language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include <stdio.h> int main(int argc, char *argv[]){ int to_be_sort[] = {3,2,5,1,6}; int i = 0; int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]); for(;i<len;i++){ int j=0; for(;j<i;j++){ if(to_be_sort[i] < to_be_sort[j]){ int temp = to_be_sort[j]; to_be_sort[j] = to_be_sort[i]; to_be_sort[i] = temp; } } } int k=0; for(;k<len;k++){ printf("%d\n", to_be_sort[k]); } return 0; }
18.05
22
(translation_unit) "#include <stdio.h>\n\nint main(int argc, char *argv[]){\n\n int to_be_sort[] = {3,2,5,1,6};\n\n int i = 0;\n int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n \n for(;i<len;i++){\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }\n }\n\n int k=0;\n for(;k<len;k++){\n printf("%d\n", to_be_sort[k]);\n }\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (function_definition) "int main(int argc, char *argv[]){\n\n int to_be_sort[] = {3,2,5,1,6};\n\n int i = 0;\n int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n \n for(;i<len;i++){\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }\n }\n\n int k=0;\n for(;k<len;k++){\n printf("%d\n", to_be_sort[k]);\n }\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\n int to_be_sort[] = {3,2,5,1,6};\n\n int i = 0;\n int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n \n for(;i<len;i++){\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }\n }\n\n int k=0;\n for(;k<len;k++){\n printf("%d\n", to_be_sort[k]);\n }\n return 0;\n}" ({) "{" (declaration) "int to_be_sort[] = {3,2,5,1,6};" (primitive_type) "int" (init_declarator) "to_be_sort[] = {3,2,5,1,6}" (array_declarator) "to_be_sort[]" (identifier) "to_be_sort" ([) "[" (]) "]" (=) "=" (initializer_list) "{3,2,5,1,6}" ({) "{" (number_literal) "3" (,) "," (number_literal) "2" (,) "," (number_literal) "5" (,) "," (number_literal) "1" (,) "," (number_literal) "6" (}) "}" (;) ";" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);" (primitive_type) "int" (init_declarator) "len = sizeof(to_be_sort) / sizeof(to_be_sort[0])" (identifier) "len" (=) "=" (binary_expression) "sizeof(to_be_sort) / sizeof(to_be_sort[0])" (sizeof_expression) "sizeof(to_be_sort)" (sizeof) "sizeof" (parenthesized_expression) "(to_be_sort)" (() "(" (identifier) "to_be_sort" ()) ")" (/) "/" (sizeof_expression) "sizeof(to_be_sort[0])" (sizeof) "sizeof" (parenthesized_expression) "(to_be_sort[0])" (() "(" (subscript_expression) "to_be_sort[0]" (identifier) "to_be_sort" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (for_statement) "for(;i<len;i++){\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }\n }" (for) "for" (() "(" (;) ";" (binary_expression) "i<len" (identifier) "i" (<) "<" (identifier) "len" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n int j=0;\n for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }\n }" ({) "{" (declaration) "int j=0;" (primitive_type) "int" (init_declarator) "j=0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(;j<i;j++){\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }" (for) "for" (() "(" (;) ";" (binary_expression) "j<i" (identifier) "j" (<) "<" (identifier) "i" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }\n }" ({) "{" (if_statement) "if(to_be_sort[i] < to_be_sort[j]){\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }" (if) "if" (parenthesized_expression) "(to_be_sort[i] < to_be_sort[j])" (() "(" (binary_expression) "to_be_sort[i] < to_be_sort[j]" (subscript_expression) "to_be_sort[i]" (identifier) "to_be_sort" ([) "[" (identifier) "i" (]) "]" (<) "<" (subscript_expression) "to_be_sort[j]" (identifier) "to_be_sort" ([) "[" (identifier) "j" (]) "]" ()) ")" (compound_statement) "{\n int temp = to_be_sort[j];\n to_be_sort[j] = to_be_sort[i];\n to_be_sort[i] = temp;\n }" ({) "{" (declaration) "int temp = to_be_sort[j];" (primitive_type) "int" (init_declarator) "temp = to_be_sort[j]" (identifier) "temp" (=) "=" (subscript_expression) "to_be_sort[j]" (identifier) "to_be_sort" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "to_be_sort[j] = to_be_sort[i];" (assignment_expression) "to_be_sort[j] = to_be_sort[i]" (subscript_expression) "to_be_sort[j]" (identifier) "to_be_sort" ([) "[" (identifier) "j" (]) "]" (=) "=" (subscript_expression) "to_be_sort[i]" (identifier) "to_be_sort" ([) "[" (identifier) "i" (]) "]" (;) ";" (expression_statement) "to_be_sort[i] = temp;" (assignment_expression) "to_be_sort[i] = temp" (subscript_expression) "to_be_sort[i]" (identifier) "to_be_sort" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "temp" (;) ";" (}) "}" (}) "}" (}) "}" (declaration) "int k=0;" (primitive_type) "int" (init_declarator) "k=0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(;k<len;k++){\n printf("%d\n", to_be_sort[k]);\n }" (for) "for" (() "(" (;) ";" (binary_expression) "k<len" (identifier) "k" (<) "<" (identifier) "len" (;) ";" (update_expression) "k++" (identifier) "k" (++) "++" ()) ")" (compound_statement) "{\n printf("%d\n", to_be_sort[k]);\n }" ({) "{" (expression_statement) "printf("%d\n", to_be_sort[k]);" (call_expression) "printf("%d\n", to_be_sort[k])" (identifier) "printf" (argument_list) "("%d\n", to_be_sort[k])" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "to_be_sort[k]" (identifier) "to_be_sort" ([) "[" (identifier) "k" (]) "]" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
217
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.05, "nodes": 128, "errors": 0, "source_hash": "726b721242d71f37bfb7a847055a4b0b153ed034dcc449eb1c3dbce60d5a68ed", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 3, "type": "function_definition", "text": "int main(int argc, char *argv[]){\n\n\tint to_be_sort[] = {3,2,5,1,6};\n\n\tint i = 0;\n\tint len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n\t\n\tfor(;i<len;i++){\n\t\tint j=0;\n\t\tfor(;j<i;j++){\n\t\t\tif(to_be_sort[i] < to_be_sort[j]){\n\t\t\t\tint temp = to_be_sort[j];\n\t\t\t\tto_be_sort[j] = to_be_sort[i];\n\t\t\t\tto_be_sort[i] = temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tint k=0;\n\tfor(;k<len;k++){\n\t\tprintf(\"%d\\n\", to_be_sort[k]);\n\t}\n\treturn 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 3, "children": [6, 7], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 32}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 5, "children": [8, 11], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 32}}, {"id": 8, "type": "parameter_declaration", "text": "int argc", "parent": 7, "children": [9, 10], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 12}}, {"id": 10, "type": "identifier", "text": "argc", "parent": 8, "children": [], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 17}}, {"id": 11, "type": "parameter_declaration", "text": "char *argv[]", "parent": 7, "children": [12, 13], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 31}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 23}}, {"id": 13, "type": "pointer_declarator", "text": "*argv[]", "parent": 11, "children": [14, 15], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 31}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 15, "type": "array_declarator", "text": "argv[]", "parent": 13, "children": [16], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 31}}, {"id": 16, "type": "identifier", "text": "argv", "parent": 15, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 29}}, {"id": 17, "type": "declaration", "text": "int to_be_sort[] = {3,2,5,1,6};", "parent": 3, "children": [18, 19], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 32}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 4}}, {"id": 19, "type": "init_declarator", "text": "to_be_sort[] = {3,2,5,1,6}", "parent": 17, "children": [20, 22, 23], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 31}}, {"id": 20, "type": "array_declarator", "text": "to_be_sort[]", "parent": 19, "children": [21], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 17}}, {"id": 21, "type": "identifier", "text": "to_be_sort", "parent": 20, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 15}}, {"id": 22, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 19}}, {"id": 23, "type": "initializer_list", "text": "{3,2,5,1,6}", "parent": 19, "children": [24, 25, 26, 27, 28], "start_point": {"row": 5, "column": 20}, "end_point": {"row": 5, "column": 31}}, {"id": 24, "type": "number_literal", "text": "3", "parent": 23, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 22}}, {"id": 25, "type": "number_literal", "text": "2", "parent": 23, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 24}}, {"id": 26, "type": "number_literal", "text": "5", "parent": 23, "children": [], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 26}}, {"id": 27, "type": "number_literal", "text": "1", "parent": 23, "children": [], "start_point": {"row": 5, "column": 27}, "end_point": {"row": 5, "column": 28}}, {"id": 28, "type": "number_literal", "text": "6", "parent": 23, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 30}}, {"id": 29, "type": "declaration", "text": "int i = 0;", "parent": 3, "children": [30, 31], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 11}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 4}}, {"id": 31, "type": "init_declarator", "text": "i = 0", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 10}}, {"id": 32, "type": "identifier", "text": "i", "parent": 31, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 6}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 8}}, {"id": 34, "type": "number_literal", "text": "0", "parent": 31, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 10}}, {"id": 35, "type": "declaration", "text": "int len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);", "parent": 3, "children": [36, 37], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 54}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 4}}, {"id": 37, "type": "init_declarator", "text": "len = sizeof(to_be_sort) / sizeof(to_be_sort[0])", "parent": 35, "children": [38, 39, 40], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 53}}, {"id": 38, "type": "identifier", "text": "len", "parent": 37, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 8}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 40, "type": "binary_expression", "text": "sizeof(to_be_sort) / sizeof(to_be_sort[0])", "parent": 37, "children": [41, 44, 45], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 53}}, {"id": 41, "type": "sizeof_expression", "text": "sizeof(to_be_sort)", "parent": 40, "children": [42], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 29}}, {"id": 42, "type": "parenthesized_expression", "text": "(to_be_sort)", "parent": 41, "children": [43], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 29}}, {"id": 43, "type": "identifier", "text": "to_be_sort", "parent": 42, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 28}}, {"id": 44, "type": "/", "text": "/", "parent": 40, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 31}}, {"id": 45, "type": "sizeof_expression", "text": "sizeof(to_be_sort[0])", "parent": 40, "children": [46], "start_point": {"row": 8, "column": 32}, "end_point": {"row": 8, "column": 53}}, {"id": 46, "type": "parenthesized_expression", "text": "(to_be_sort[0])", "parent": 45, "children": [47], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 53}}, {"id": 47, "type": "subscript_expression", "text": "to_be_sort[0]", "parent": 46, "children": [48, 49], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 52}}, {"id": 48, "type": "identifier", "text": "to_be_sort", "parent": 47, "children": [], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 49}}, {"id": 49, "type": "number_literal", "text": "0", "parent": 47, "children": [], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 51}}, {"id": 50, "type": "for_statement", "text": "for(;i<len;i++){\n\t\tint j=0;\n\t\tfor(;j<i;j++){\n\t\t\tif(to_be_sort[i] < to_be_sort[j]){\n\t\t\t\tint temp = to_be_sort[j];\n\t\t\t\tto_be_sort[j] = to_be_sort[i];\n\t\t\t\tto_be_sort[i] = temp;\n\t\t\t}\n\t\t}\n\t}", "parent": 3, "children": [51, 55], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 19, "column": 2}}, {"id": 51, "type": "binary_expression", "text": "i<len", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 52, "type": "identifier", "text": "i", "parent": 51, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 7}}, {"id": 53, "type": "<", "text": "<", "parent": 51, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 54, "type": "identifier", "text": "len", "parent": 51, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 11}}, {"id": 55, "type": "update_expression", "text": "i++", "parent": 50, "children": [56, 57], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 15}}, {"id": 56, "type": "identifier", "text": "i", "parent": 55, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 57, "type": "++", "text": "++", "parent": 55, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 15}}, {"id": 58, "type": "declaration", "text": "int j=0;", "parent": 50, "children": [59, 60], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 10}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 5}}, {"id": 60, "type": "init_declarator", "text": "j=0", "parent": 58, "children": [61, 62, 63], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 9}}, {"id": 61, "type": "identifier", "text": "j", "parent": 60, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 7}}, {"id": 62, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 9}}, {"id": 64, "type": "for_statement", "text": "for(;j<i;j++){\n\t\t\tif(to_be_sort[i] < to_be_sort[j]){\n\t\t\t\tint temp = to_be_sort[j];\n\t\t\t\tto_be_sort[j] = to_be_sort[i];\n\t\t\t\tto_be_sort[i] = temp;\n\t\t\t}\n\t\t}", "parent": 50, "children": [65, 69], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 65, "type": "binary_expression", "text": "j<i", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 10}}, {"id": 66, "type": "identifier", "text": "j", "parent": 65, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 8}}, {"id": 67, "type": "<", "text": "<", "parent": 65, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 9}}, {"id": 68, "type": "identifier", "text": "i", "parent": 65, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 69, "type": "update_expression", "text": "j++", "parent": 64, "children": [70, 71], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 14}}, {"id": 70, "type": "identifier", "text": "j", "parent": 69, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 12}}, {"id": 71, "type": "++", "text": "++", "parent": 69, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 14}}, {"id": 72, "type": "if_statement", "text": "if(to_be_sort[i] < to_be_sort[j]){\n\t\t\t\tint temp = to_be_sort[j];\n\t\t\t\tto_be_sort[j] = to_be_sort[i];\n\t\t\t\tto_be_sort[i] = temp;\n\t\t\t}", "parent": 64, "children": [73], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 17, "column": 4}}, {"id": 73, "type": "parenthesized_expression", "text": "(to_be_sort[i] < to_be_sort[j])", "parent": 72, "children": [74], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 36}}, {"id": 74, "type": "binary_expression", "text": "to_be_sort[i] < to_be_sort[j]", "parent": 73, "children": [75, 78, 79], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 35}}, {"id": 75, "type": "subscript_expression", "text": "to_be_sort[i]", "parent": 74, "children": [76, 77], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 19}}, {"id": 76, "type": "identifier", "text": "to_be_sort", "parent": 75, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 16}}, {"id": 77, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 18}}, {"id": 78, "type": "<", "text": "<", "parent": 74, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 21}}, {"id": 79, "type": "subscript_expression", "text": "to_be_sort[j]", "parent": 74, "children": [80, 81], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 35}}, {"id": 80, "type": "identifier", "text": "to_be_sort", "parent": 79, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 32}}, {"id": 81, "type": "identifier", "text": "j", "parent": 79, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 34}}, {"id": 82, "type": "declaration", "text": "int temp = to_be_sort[j];", "parent": 72, "children": [83, 84], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 29}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 84, "type": "init_declarator", "text": "temp = to_be_sort[j]", "parent": 82, "children": [85, 86, 87], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 28}}, {"id": 85, "type": "identifier", "text": "temp", "parent": 84, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 12}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 87, "type": "subscript_expression", "text": "to_be_sort[j]", "parent": 84, "children": [88, 89], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 28}}, {"id": 88, "type": "identifier", "text": "to_be_sort", "parent": 87, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 25}}, {"id": 89, "type": "identifier", "text": "j", "parent": 87, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 90, "type": "assignment_expression", "text": "to_be_sort[j] = to_be_sort[i]", "parent": 72, "children": [91, 94, 95], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 33}}, {"id": 91, "type": "subscript_expression", "text": "to_be_sort[j]", "parent": 90, "children": [92, 93], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 17}}, {"id": 92, "type": "identifier", "text": "to_be_sort", "parent": 91, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 14}}, {"id": 93, "type": "identifier", "text": "j", "parent": 91, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 94, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 95, "type": "subscript_expression", "text": "to_be_sort[i]", "parent": 90, "children": [96, 97], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 33}}, {"id": 96, "type": "identifier", "text": "to_be_sort", "parent": 95, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 30}}, {"id": 97, "type": "identifier", "text": "i", "parent": 95, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 98, "type": "assignment_expression", "text": "to_be_sort[i] = temp", "parent": 72, "children": [99, 102, 103], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 24}}, {"id": 99, "type": "subscript_expression", "text": "to_be_sort[i]", "parent": 98, "children": [100, 101], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 17}}, {"id": 100, "type": "identifier", "text": "to_be_sort", "parent": 99, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 14}}, {"id": 101, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 16}}, {"id": 102, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 103, "type": "identifier", "text": "temp", "parent": 98, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 24}}, {"id": 104, "type": "declaration", "text": "int k=0;", "parent": 3, "children": [105, 106], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 106, "type": "init_declarator", "text": "k=0", "parent": 104, "children": [107, 108, 109], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 8}}, {"id": 107, "type": "identifier", "text": "k", "parent": 106, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 6}}, {"id": 108, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 109, "type": "number_literal", "text": "0", "parent": 106, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 110, "type": "for_statement", "text": "for(;k<len;k++){\n\t\tprintf(\"%d\\n\", to_be_sort[k]);\n\t}", "parent": 3, "children": [111, 115], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 24, "column": 2}}, {"id": 111, "type": "binary_expression", "text": "k<len", "parent": 110, "children": [112, 113, 114], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 11}}, {"id": 112, "type": "identifier", "text": "k", "parent": 111, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 113, "type": "<", "text": "<", "parent": 111, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 8}}, {"id": 114, "type": "identifier", "text": "len", "parent": 111, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 11}}, {"id": 115, "type": "update_expression", "text": "k++", "parent": 110, "children": [116, 117], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 116, "type": "identifier", "text": "k", "parent": 115, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 117, "type": "++", "text": "++", "parent": 115, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 15}}, {"id": 118, "type": "call_expression", "text": "printf(\"%d\\n\", to_be_sort[k])", "parent": 110, "children": [119, 120], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 31}}, {"id": 119, "type": "identifier", "text": "printf", "parent": 118, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 120, "type": "argument_list", "text": "(\"%d\\n\", to_be_sort[k])", "parent": 118, "children": [121, 123], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 31}}, {"id": 121, "type": "string_literal", "text": "\"%d\\n\"", "parent": 120, "children": [122], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 15}}, {"id": 122, "type": "escape_sequence", "text": "\\n", "parent": 121, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 14}}, {"id": 123, "type": "subscript_expression", "text": "to_be_sort[k]", "parent": 120, "children": [124, 125], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 30}}, {"id": 124, "type": "identifier", "text": "to_be_sort", "parent": 123, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 27}}, {"id": 125, "type": "identifier", "text": "k", "parent": 123, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 29}}, {"id": 126, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [127], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 10}}, {"id": 127, "type": "number_literal", "text": "0", "parent": 126, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 9}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11, 17, 29, 35, 58, 82, 104], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [40, 41, 42, 45, 46, 47, 51, 55, 65, 69, 73, 74, 75, 79, 87, 91, 95, 99, 111, 115, 118, 123], "assignments": [90, 98], "loops": [50, 64, 110], "conditionals": [6, 10, 16, 21, 32, 38, 43, 48, 52, 54, 56, 61, 66, 68, 70, 72, 76, 77, 80, 81, 85, 88, 89, 92, 93, 96, 97, 100, 101, 103, 107, 112, 114, 116, 119, 124, 125], "returns": [126], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 24, 25, 26, 27, 28, 34, 49, 63, 109, 121, 127], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char *argv[]){\n\n\tint to_be_sort[] = {3,2,5,1,6};\n\n\tint i = 0;\n\tint len = sizeof(t"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "\n#include <stdio.h>\n\nint main(int argc, char *argv[]){\n\n\tint to_be_sort[] = {3,2,5,1,6};\n\n\tint i = 0;\n\tint len = sizeof(to_be_sort) / sizeof(to_be_sort[0]);\n\t\n\tfor(;i<len;i++){\n\t\tint j=0;\n\t\tfor(;j<i;j++){\n\t\t\tif(to_be_sort[i] < to_be_sort[j]){\n\t\t\t\tint temp = to_be_sort[j];\n\t\t\t\tto_be_sort[j] = to_be_sort[i];\n\t\t\t\tto_be_sort[i] = temp;\n\t\t\t}\n\t\t}\n\t}\n\n\tint k=0;\n\tfor(;k<len;k++){\n\t\tprintf(\"%d\\n\", to_be_sort[k]);\n\t}\n\treturn 0;\n}\n"}
80,700
c
#pragma once #include <QAbstractListModel> #include "FIleWatchList.h" class WatchListModel: public QAbstractListModel { private: FileWatchList & watchlist; public: WatchListModel(FileWatchList& w) :watchlist{ w }{} ~WatchListModel(); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; };
28.23
13
(translation_unit) "#pragma once\n#include <QAbstractListModel>\n#include "FIleWatchList.h"\n\nclass WatchListModel: public QAbstractListModel\n\n{\nprivate:\n FileWatchList & watchlist;\npublic:\n WatchListModel(FileWatchList& w) :watchlist{ w }{}\n ~WatchListModel();\n int rowCount(const QModelIndex &parent = QModelIndex()) const;\n QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <QAbstractListModel>\n" (#include) "#include" (system_lib_string) "<QAbstractListModel>" (preproc_include) "#include "FIleWatchList.h"\n" (#include) "#include" (string_literal) ""FIleWatchList.h"" (") """ (string_content) "FIleWatchList.h" (") """ (function_definition) "class WatchListModel: public QAbstractListModel\n\n{\nprivate:\n FileWatchList & watchlist;\npublic:\n WatchListModel(FileWatchList& w) :watchlist{ w }{}\n ~WatchListModel();\n int rowCount(const QModelIndex &parent = QModelIndex()) const;\n QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;\n}" (type_identifier) "class" (ERROR) "WatchListModel: public" (identifier) "WatchListModel" (:) ":" (identifier) "public" (identifier) "QAbstractListModel" (compound_statement) "{\nprivate:\n FileWatchList & watchlist;\npublic:\n WatchListModel(FileWatchList& w) :watchlist{ w }{}\n ~WatchListModel();\n int rowCount(const QModelIndex &parent = QModelIndex()) const;\n QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;\n}" ({) "{" (labeled_statement) "private:\n FileWatchList & watchlist;" (statement_identifier) "private" (:) ":" (expression_statement) "FileWatchList & watchlist;" (binary_expression) "FileWatchList & watchlist" (identifier) "FileWatchList" (&) "&" (identifier) "watchlist" (;) ";" (labeled_statement) "public:\n WatchListModel(FileWatchList& w) :watchlist{ w }" (statement_identifier) "public" (:) ":" (ERROR) "WatchListModel(FileWatchList& w) :watchlist" (call_expression) "WatchListModel(FileWatchList& w)" (identifier) "WatchListModel" (argument_list) "(FileWatchList& w)" (() "(" (binary_expression) "FileWatchList& w" (identifier) "FileWatchList" (&) "&" (identifier) "w" ()) ")" (:) ":" (identifier) "watchlist" (compound_statement) "{ w }" ({) "{" (ERROR) "w" (identifier) "w" (}) "}" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "~WatchListModel();" (unary_expression) "~WatchListModel()" (~) "~" (call_expression) "WatchListModel()" (identifier) "WatchListModel" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "int rowCount(const QModelIndex &parent = QModelIndex()) const" (primitive_type) "int" (identifier) "rowCount" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "QModelIndex" (assignment_expression) "&parent = QModelIndex()" (pointer_expression) "&parent" (&) "&" (identifier) "parent" (=) "=" (call_expression) "QModelIndex()" (identifier) "QModelIndex" (argument_list) "()" (() "(" ()) ")" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (declaration) "QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;" (type_identifier) "QVariant" (init_declarator) "data(const QModelIndex &index, int role = Qt::DisplayRole" (function_declarator) "data(const QModelIndex &index, int role" (identifier) "data" (parameter_list) "(const QModelIndex &index, int role" (() "(" (parameter_declaration) "const QModelIndex &index" (type_qualifier) "const" (const) "const" (type_identifier) "QModelIndex" (ERROR) "&" (&) "&" (identifier) "index" (,) "," (parameter_declaration) "int role" (primitive_type) "int" (identifier) "role" ()) "" (=) "=" (ERROR) "Qt::" (identifier) "Qt" (:) ":" (:) ":" (identifier) "DisplayRole" (ERROR) ") const" ()) ")" (const) "const" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
117
7
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 28.23, "nodes": 61, "errors": 0, "source_hash": "ec4f2c348092743f52e236a7dec23202fc0753b70b20972c0717fc861a6b45b0", "categorized_nodes": 41}, "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 <QAbstractListModel>\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": "<QAbstractListModel>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include \"FIleWatchList.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": "\"FIleWatchList.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 26}}, {"id": 9, "type": "function_definition", "text": "class WatchListModel: public QAbstractListModel\n\n{\nprivate:\n\tFileWatchList & watchlist;\npublic:\n\tWatchListModel(FileWatchList& w) :watchlist{ w }{}\n\t~WatchListModel();\n\tint rowCount(const QModelIndex &parent = QModelIndex()) const;\n\tQVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;\n}", "parent": null, "children": [10, 12], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 10, "type": "ERROR", "text": "WatchListModel: public", "parent": 9, "children": [11], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 28}}, {"id": 11, "type": "identifier", "text": "WatchListModel", "parent": 10, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 20}}, {"id": 12, "type": "identifier", "text": "QAbstractListModel", "parent": 9, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 47}}, {"id": 13, "type": "labeled_statement", "text": "private:\n\tFileWatchList & watchlist;", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 27}}, {"id": 14, "type": "binary_expression", "text": "FileWatchList & watchlist", "parent": 13, "children": [15, 16], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 26}}, {"id": 15, "type": "identifier", "text": "FileWatchList", "parent": 14, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 14}}, {"id": 16, "type": "identifier", "text": "watchlist", "parent": 14, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 26}}, {"id": 17, "type": "labeled_statement", "text": "public:\n\tWatchListModel(FileWatchList& w) :watchlist{ w }", "parent": 9, "children": [18], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 49}}, {"id": 18, "type": "ERROR", "text": "WatchListModel(FileWatchList& w) :watchlist", "parent": 17, "children": [19, 25], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 44}}, {"id": 19, "type": "call_expression", "text": "WatchListModel(FileWatchList& w)", "parent": 18, "children": [20, 21], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 33}}, {"id": 20, "type": "identifier", "text": "WatchListModel", "parent": 19, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 15}}, {"id": 21, "type": "argument_list", "text": "(FileWatchList& w)", "parent": 19, "children": [22], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 33}}, {"id": 22, "type": "binary_expression", "text": "FileWatchList& w", "parent": 21, "children": [23, 24], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 32}}, {"id": 23, "type": "identifier", "text": "FileWatchList", "parent": 22, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 29}}, {"id": 24, "type": "identifier", "text": "w", "parent": 22, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 32}}, {"id": 25, "type": "identifier", "text": "watchlist", "parent": 18, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 44}}, {"id": 26, "type": "ERROR", "text": "w", "parent": 17, "children": [27], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 47}}, {"id": 27, "type": "identifier", "text": "w", "parent": 26, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 47}}, {"id": 28, "type": "unary_expression", "text": "~WatchListModel()", "parent": 9, "children": [29, 30], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 18}}, {"id": 29, "type": "~", "text": "~", "parent": 28, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 2}}, {"id": 30, "type": "call_expression", "text": "WatchListModel()", "parent": 28, "children": [31, 32], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 18}}, {"id": 31, "type": "identifier", "text": "WatchListModel", "parent": 30, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 16}}, {"id": 32, "type": "argument_list", "text": "()", "parent": 30, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 18}}, {"id": 33, "type": "ERROR", "text": "int rowCount(const QModelIndex &parent = QModelIndex()) const", "parent": 9, "children": [34, 35, 36, 37], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 62}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}, {"id": 35, "type": "identifier", "text": "rowCount", "parent": 33, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 13}}, {"id": 36, "type": "type_identifier", "text": "QModelIndex", "parent": 33, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 31}}, {"id": 37, "type": "assignment_expression", "text": "&parent = QModelIndex()", "parent": 33, "children": [38, 40, 41], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 55}}, {"id": 38, "type": "pointer_expression", "text": "&parent", "parent": 37, "children": [39], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 39}}, {"id": 39, "type": "identifier", "text": "parent", "parent": 38, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 39}}, {"id": 40, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 41}}, {"id": 41, "type": "call_expression", "text": "QModelIndex()", "parent": 37, "children": [42, 43], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 55}}, {"id": 42, "type": "identifier", "text": "QModelIndex", "parent": 41, "children": [], "start_point": {"row": 12, "column": 42}, "end_point": {"row": 12, "column": 53}}, {"id": 43, "type": "argument_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 12, "column": 53}, "end_point": {"row": 12, "column": 55}}, {"id": 44, "type": "declaration", "text": "QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;", "parent": 9, "children": [45, 46, 60], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 75}}, {"id": 45, "type": "type_identifier", "text": "QVariant", "parent": 44, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 46, "type": "init_declarator", "text": "data(const QModelIndex &index, int role = Qt::DisplayRole", "parent": 44, "children": [47, 56, 57, 59], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 67}}, {"id": 47, "type": "function_declarator", "text": "data(const QModelIndex &index, int role", "parent": 46, "children": [48, 49], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 49}}, {"id": 48, "type": "identifier", "text": "data", "parent": 47, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 49, "type": "parameter_list", "text": "(const QModelIndex &index, int role", "parent": 47, "children": [50, 53], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 49}}, {"id": 50, "type": "parameter_declaration", "text": "const QModelIndex &index", "parent": 49, "children": [51, 52], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 39}}, {"id": 51, "type": "type_identifier", "text": "QModelIndex", "parent": 50, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 32}}, {"id": 52, "type": "identifier", "text": "index", "parent": 50, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 39}}, {"id": 53, "type": "parameter_declaration", "text": "int role", "parent": 49, "children": [54, 55], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 49}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 44}}, {"id": 55, "type": "identifier", "text": "role", "parent": 53, "children": [], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 49}}, {"id": 56, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 51}}, {"id": 57, "type": "ERROR", "text": "Qt::", "parent": 46, "children": [58], "start_point": {"row": 13, "column": 52}, "end_point": {"row": 13, "column": 56}}, {"id": 58, "type": "identifier", "text": "Qt", "parent": 57, "children": [], "start_point": {"row": 13, "column": 52}, "end_point": {"row": 13, "column": 54}}, {"id": 59, "type": "identifier", "text": "DisplayRole", "parent": 46, "children": [], "start_point": {"row": 13, "column": 56}, "end_point": {"row": 13, "column": 67}}, {"id": 60, "type": "ERROR", "text": ") const", "parent": 44, "children": [], "start_point": {"row": 13, "column": 67}, "end_point": {"row": 13, "column": 74}}]}, "node_categories": {"declarations": {"functions": [9, 47], "variables": [44, 50, 53], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14, 19, 22, 28, 30, 38, 41], "assignments": [37], "loops": [], "conditionals": [11, 12, 15, 16, 20, 23, 24, 25, 27, 31, 35, 36, 39, 42, 45, 48, 51, 52, 55, 58, 59], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "WatchListModel:", "text_snippet": "class WatchListModel: public QAbstractListModel\n\n{\nprivate:\n\tFileWatchList & watchlist;\npublic:\n\tWat"}, {"node_id": 47, "universal_type": "function", "name": "role", "text_snippet": "data(const QModelIndex &index, int role"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <QAbstractListModel>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"FIleWatchList.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n#include <QAbstractListModel>\n#include \"FIleWatchList.h\"\n\nclass WatchListModel: public QAbstractListModel\n\n{\nprivate:\n\tFileWatchList & watchlist;\npublic:\n\tWatchListModel(FileWatchList& w) :watchlist{ w }{}\n\t~WatchListModel();\n\tint rowCount(const QModelIndex &parent = QModelIndex()) const;\n\tQVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;\n};"}
80,701
c
// // SegmentedController.h // SegmentedController // // Created by <NAME> on 8/26/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for SegmentedController. FOUNDATION_EXPORT double SegmentedControllerVersionNumber; //! Project version string for SegmentedController. FOUNDATION_EXPORT const unsigned char SegmentedControllerVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <SegmentedController/PublicHeader.h>
41.38
13
(translation_unit) "//\n// SegmentedController.h\n// SegmentedController\n//\n// Created by <NAME> on 8/26/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for SegmentedController.\nFOUNDATION_EXPORT double SegmentedControllerVersionNumber;\n\n//! Project version string for SegmentedController.\nFOUNDATION_EXPORT const unsigned char SegmentedControllerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <SegmentedController/PublicHeader.h>\n\n\n" (comment) "//" (comment) "// SegmentedController.h" (comment) "// SegmentedController" (comment) "//" (comment) "// Created by <NAME> on 8/26/15." (comment) "// Copyright (c) 2015 <NAME>. All rights reserved." (comment) "//" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (comment) "//! Project version number for SegmentedController." (declaration) "FOUNDATION_EXPORT double SegmentedControllerVersionNumber;" (type_identifier) "FOUNDATION_EXPORT" (ERROR) "double" (identifier) "double" (identifier) "SegmentedControllerVersionNumber" (;) ";" (comment) "//! Project version string for SegmentedController." (declaration) "FOUNDATION_EXPORT const unsigned" (type_identifier) "FOUNDATION_EXPORT" (type_qualifier) "const" (const) "const" (identifier) "unsigned" (;) "" (declaration) "char SegmentedControllerVersionString[];" (primitive_type) "char" (array_declarator) "SegmentedControllerVersionString[]" (identifier) "SegmentedControllerVersionString" ([) "[" (]) "]" (;) ";" (comment) "// In this header, you should import all the public headers of your framework using statements like #import <SegmentedController/PublicHeader.h>"
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 41.38, "nodes": 15, "errors": 0, "source_hash": "dcae399b1b9ddb592ee8cd3212cbe1f0d44dd49a37367db8e91e167f33a66a49", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<UIKit/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "declaration", "text": "FOUNDATION_EXPORT double SegmentedControllerVersionNumber;", "parent": null, "children": [4, 5, 7], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 58}}, {"id": 4, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 5, "type": "ERROR", "text": "double", "parent": 3, "children": [6], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "double", "parent": 5, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 7, "type": "identifier", "text": "SegmentedControllerVersionNumber", "parent": 3, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 57}}, {"id": 8, "type": "declaration", "text": "FOUNDATION_EXPORT const unsigned", "parent": null, "children": [9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 9, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 8, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 10, "type": "identifier", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "char SegmentedControllerVersionString[];", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 73}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "SegmentedControllerVersionString[]", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 72}}, {"id": 14, "type": "identifier", "text": "SegmentedControllerVersionString", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 70}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3, 8, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 6, 7, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// SegmentedController.h\n// SegmentedController\n//\n// Created by <NAME> on 8/26/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for SegmentedController.\nFOUNDATION_EXPORT double SegmentedControllerVersionNumber;\n\n//! Project version string for SegmentedController.\nFOUNDATION_EXPORT const unsigned char SegmentedControllerVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <SegmentedController/PublicHeader.h>\n\n\n"}
80,702
c
#include "stdafx.h" typedef struct Visu_moduleData { int type; int idmod; int datasize; int GraphXPosi_X; int GraphXPosi_Y; int GraphXSize_X; int GraphXSize_Y; Connexion Connection[8]; int Mode; int scopenumber; }Visu_moduleData; class visu_module : public module { private: int IconeId; int OutputNumber; int short* BufferTemp;//Buffer traitement int unsigned short *BufferFFT; int Mode; int Flag; class Visu_dialog * BoiteDialogue; class FFT * fftanalyseur; static int sscopenumber; int scopenumber; char string1[128]; public: visu_module(int,int); ~visu_module(); void GetGraphXCord(int * X,int * Y); void SetGraphXCord(int X,int Y); int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2); int GetIconeID(); int SetConnection(int num,int module , int numconn); int GetConnection(int num,int * module , int *numconn); int PrepareProcess(int size); int CloseProcess(); int GetProcessFlag(); void SetProcessFlag(int flag); int TakeSample(short * Buffer, int Size,int Port); int GetSample(short * Buffer, int Size,int Port); int ProcessSample(int Size); int OpenConfigWindow(); int GetMissingEntryData(int * module, int * port); int GetDoorFlag(int Port); char * GetInfoTxt(); int GetMode(); void SetMode(int mode); int GetParamData(void *,int,int *); int SetParamData(void *,int,int *); void DestroyDialog(); int ScopeNumber(); };
23.58
57
(translation_unit) "#include "stdafx.h"\n\ntypedef struct Visu_moduleData\n{\n int type;\n int idmod;\n int datasize;\n\n int GraphXPosi_X;\n int GraphXPosi_Y;\n int GraphXSize_X;\n int GraphXSize_Y;\n\n Connexion Connection[8];\n\n\n int Mode;\n int scopenumber;\n\n}Visu_moduleData;\n\nclass visu_module : public module\n{\nprivate:\n int IconeId;\n int OutputNumber;\n int short* BufferTemp;//Buffer traitement\n int unsigned short *BufferFFT;\n int Mode;\n int Flag;\n class Visu_dialog * BoiteDialogue;\n class FFT * fftanalyseur;\n static int sscopenumber;\n int scopenumber;\n\n char string1[128];\npublic:\n\n visu_module(int,int);\n ~visu_module();\n\n void GetGraphXCord(int * X,int * Y);\n void SetGraphXCord(int X,int Y);\n\n int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);\n int GetIconeID();\n\n int SetConnection(int num,int module , int numconn);\n int GetConnection(int num,int * module , int *numconn);\n\n int PrepareProcess(int size);\n int CloseProcess();\n\n int GetProcessFlag();\n void SetProcessFlag(int flag);\n\n int TakeSample(short * Buffer, int Size,int Port);\n int GetSample(short * Buffer, int Size,int Port);\n int ProcessSample(int Size);\n\n int OpenConfigWindow();\n int GetMissingEntryData(int * module, int * port);\n int GetDoorFlag(int Port);\n\n char * GetInfoTxt();\n\n int GetMode();\n void SetMode(int mode);\n\n\n int GetParamData(void *,int,int *);\n int SetParamData(void *,int,int *);\n void DestroyDialog();\n int ScopeNumber();\n};\n" (preproc_include) "#include "stdafx.h"\n" (#include) "#include" (string_literal) ""stdafx.h"" (") """ (string_content) "stdafx.h" (") """ (type_definition) "typedef struct Visu_moduleData\n{\n int type;\n int idmod;\n int datasize;\n\n int GraphXPosi_X;\n int GraphXPosi_Y;\n int GraphXSize_X;\n int GraphXSize_Y;\n\n Connexion Connection[8];\n\n\n int Mode;\n int scopenumber;\n\n}Visu_moduleData;" (typedef) "typedef" (struct_specifier) "struct Visu_moduleData\n{\n int type;\n int idmod;\n int datasize;\n\n int GraphXPosi_X;\n int GraphXPosi_Y;\n int GraphXSize_X;\n int GraphXSize_Y;\n\n Connexion Connection[8];\n\n\n int Mode;\n int scopenumber;\n\n}" (struct) "struct" (type_identifier) "Visu_moduleData" (field_declaration_list) "{\n int type;\n int idmod;\n int datasize;\n\n int GraphXPosi_X;\n int GraphXPosi_Y;\n int GraphXSize_X;\n int GraphXSize_Y;\n\n Connexion Connection[8];\n\n\n int Mode;\n int scopenumber;\n\n}" ({) "{" (field_declaration) "int type;" (primitive_type) "int" (field_identifier) "type" (;) ";" (field_declaration) "int idmod;" (primitive_type) "int" (field_identifier) "idmod" (;) ";" (field_declaration) "int datasize;" (primitive_type) "int" (field_identifier) "datasize" (;) ";" (field_declaration) "int GraphXPosi_X;" (primitive_type) "int" (field_identifier) "GraphXPosi_X" (;) ";" (field_declaration) "int GraphXPosi_Y;" (primitive_type) "int" (field_identifier) "GraphXPosi_Y" (;) ";" (field_declaration) "int GraphXSize_X;" (primitive_type) "int" (field_identifier) "GraphXSize_X" (;) ";" (field_declaration) "int GraphXSize_Y;" (primitive_type) "int" (field_identifier) "GraphXSize_Y" (;) ";" (field_declaration) "Connexion Connection[8];" (type_identifier) "Connexion" (array_declarator) "Connection[8]" (field_identifier) "Connection" ([) "[" (number_literal) "8" (]) "]" (;) ";" (field_declaration) "int Mode;" (primitive_type) "int" (field_identifier) "Mode" (;) ";" (field_declaration) "int scopenumber;" (primitive_type) "int" (field_identifier) "scopenumber" (;) ";" (}) "}" (type_identifier) "Visu_moduleData" (;) ";" (function_definition) "class visu_module : public module\n{\nprivate:\n int IconeId;\n int OutputNumber;\n int short* BufferTemp;//Buffer traitement\n int unsigned short *BufferFFT;\n int Mode;\n int Flag;\n class Visu_dialog * BoiteDialogue;\n class FFT * fftanalyseur;\n static int sscopenumber;\n int scopenumber;\n\n char string1[128];\npublic:\n\n visu_module(int,int);\n ~visu_module();\n\n void GetGraphXCord(int * X,int * Y);\n void SetGraphXCord(int X,int Y);\n\n int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);\n int GetIconeID();\n\n int SetConnection(int num,int module , int numconn);\n int GetConnection(int num,int * module , int *numconn);\n\n int PrepareProcess(int size);\n int CloseProcess();\n\n int GetProcessFlag();\n void SetProcessFlag(int flag);\n\n int TakeSample(short * Buffer, int Size,int Port);\n int GetSample(short * Buffer, int Size,int Port);\n int ProcessSample(int Size);\n\n int OpenConfigWindow();\n int GetMissingEntryData(int * module, int * port);\n int GetDoorFlag(int Port);\n\n char * GetInfoTxt();\n\n int GetMode();\n void SetMode(int mode);\n\n\n int GetParamData(void *,int,int *);\n int SetParamData(void *,int,int *);\n void DestroyDialog();\n int ScopeNumber();\n}" (type_identifier) "class" (identifier) "visu_module" (ERROR) ": public module" (:) ":" (identifier) "public" (identifier) "module" (compound_statement) "{\nprivate:\n int IconeId;\n int OutputNumber;\n int short* BufferTemp;//Buffer traitement\n int unsigned short *BufferFFT;\n int Mode;\n int Flag;\n class Visu_dialog * BoiteDialogue;\n class FFT * fftanalyseur;\n static int sscopenumber;\n int scopenumber;\n\n char string1[128];\npublic:\n\n visu_module(int,int);\n ~visu_module();\n\n void GetGraphXCord(int * X,int * Y);\n void SetGraphXCord(int X,int Y);\n\n int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);\n int GetIconeID();\n\n int SetConnection(int num,int module , int numconn);\n int GetConnection(int num,int * module , int *numconn);\n\n int PrepareProcess(int size);\n int CloseProcess();\n\n int GetProcessFlag();\n void SetProcessFlag(int flag);\n\n int TakeSample(short * Buffer, int Size,int Port);\n int GetSample(short * Buffer, int Size,int Port);\n int ProcessSample(int Size);\n\n int OpenConfigWindow();\n int GetMissingEntryData(int * module, int * port);\n int GetDoorFlag(int Port);\n\n char * GetInfoTxt();\n\n int GetMode();\n void SetMode(int mode);\n\n\n int GetParamData(void *,int,int *);\n int SetParamData(void *,int,int *);\n void DestroyDialog();\n int ScopeNumber();\n}" ({) "{" (labeled_statement) "private:\n int IconeId;" (statement_identifier) "private" (:) ":" (declaration) "int IconeId;" (primitive_type) "int" (identifier) "IconeId" (;) ";" (declaration) "int OutputNumber;" (primitive_type) "int" (identifier) "OutputNumber" (;) ";" (declaration) "int short* BufferTemp;" (sized_type_specifier) "int short" (primitive_type) "int" (short) "short" (pointer_declarator) "* BufferTemp" (*) "*" (identifier) "BufferTemp" (;) ";" (comment) "//Buffer traitement" (declaration) "int unsigned short *BufferFFT;" (sized_type_specifier) "int unsigned short" (primitive_type) "int" (unsigned) "unsigned" (short) "short" (pointer_declarator) "*BufferFFT" (*) "*" (identifier) "BufferFFT" (;) ";" (declaration) "int Mode;" (primitive_type) "int" (identifier) "Mode" (;) ";" (declaration) "int Flag;" (primitive_type) "int" (identifier) "Flag" (;) ";" (declaration) "class Visu_dialog" (type_identifier) "class" (identifier) "Visu_dialog" (;) "" (expression_statement) "* BoiteDialogue;" (pointer_expression) "* BoiteDialogue" (*) "*" (identifier) "BoiteDialogue" (;) ";" (declaration) "class FFT * fftanalyseur;" (type_identifier) "class" (ERROR) "FFT" (identifier) "FFT" (pointer_declarator) "* fftanalyseur" (*) "*" (identifier) "fftanalyseur" (;) ";" (declaration) "static int sscopenumber;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "sscopenumber" (;) ";" (declaration) "int scopenumber;" (primitive_type) "int" (identifier) "scopenumber" (;) ";" (declaration) "char string1[128];" (primitive_type) "char" (array_declarator) "string1[128]" (identifier) "string1" ([) "[" (number_literal) "128" (]) "]" (;) ";" (labeled_statement) "public:\n\n visu_module(int,int);" (statement_identifier) "public" (:) ":" (expression_statement) "visu_module(int,int);" (call_expression) "visu_module(int,int)" (identifier) "visu_module" (argument_list) "(int,int)" (() "(" (identifier) "int" (,) "," (identifier) "int" ()) ")" (;) ";" (expression_statement) "~visu_module();" (unary_expression) "~visu_module()" (~) "~" (call_expression) "visu_module()" (identifier) "visu_module" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void GetGraphXCord(int * X,int * Y);" (primitive_type) "void" (function_declarator) "GetGraphXCord(int * X,int * Y)" (identifier) "GetGraphXCord" (parameter_list) "(int * X,int * Y)" (() "(" (parameter_declaration) "int * X" (primitive_type) "int" (pointer_declarator) "* X" (*) "*" (identifier) "X" (,) "," (parameter_declaration) "int * Y" (primitive_type) "int" (pointer_declarator) "* Y" (*) "*" (identifier) "Y" ()) ")" (;) ";" (declaration) "void SetGraphXCord(int X,int Y);" (primitive_type) "void" (function_declarator) "SetGraphXCord(int X,int Y)" (identifier) "SetGraphXCord" (parameter_list) "(int X,int Y)" (() "(" (parameter_declaration) "int X" (primitive_type) "int" (identifier) "X" (,) "," (parameter_declaration) "int Y" (primitive_type) "int" (identifier) "Y" ()) ")" (;) ";" (declaration) "int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);" (primitive_type) "int" (function_declarator) "GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2)" (identifier) "GetConnectionGraphXCoord" (parameter_list) "(int num,int * X1,int * Y1,int * X2,int * Y2)" (() "(" (parameter_declaration) "int num" (primitive_type) "int" (identifier) "num" (,) "," (parameter_declaration) "int * X1" (primitive_type) "int" (pointer_declarator) "* X1" (*) "*" (identifier) "X1" (,) "," (parameter_declaration) "int * Y1" (primitive_type) "int" (pointer_declarator) "* Y1" (*) "*" (identifier) "Y1" (,) "," (parameter_declaration) "int * X2" (primitive_type) "int" (pointer_declarator) "* X2" (*) "*" (identifier) "X2" (,) "," (parameter_declaration) "int * Y2" (primitive_type) "int" (pointer_declarator) "* Y2" (*) "*" (identifier) "Y2" ()) ")" (;) ";" (declaration) "int GetIconeID();" (primitive_type) "int" (function_declarator) "GetIconeID()" (identifier) "GetIconeID" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int SetConnection(int num,int module , int numconn);" (primitive_type) "int" (function_declarator) "SetConnection(int num,int module , int numconn)" (identifier) "SetConnection" (parameter_list) "(int num,int module , int numconn)" (() "(" (parameter_declaration) "int num" (primitive_type) "int" (identifier) "num" (,) "," (parameter_declaration) "int module" (primitive_type) "int" (identifier) "module" (,) "," (parameter_declaration) "int numconn" (primitive_type) "int" (identifier) "numconn" ()) ")" (;) ";" (declaration) "int GetConnection(int num,int * module , int *numconn);" (primitive_type) "int" (function_declarator) "GetConnection(int num,int * module , int *numconn)" (identifier) "GetConnection" (parameter_list) "(int num,int * module , int *numconn)" (() "(" (parameter_declaration) "int num" (primitive_type) "int" (identifier) "num" (,) "," (parameter_declaration) "int * module" (primitive_type) "int" (pointer_declarator) "* module" (*) "*" (identifier) "module" (,) "," (parameter_declaration) "int *numconn" (primitive_type) "int" (pointer_declarator) "*numconn" (*) "*" (identifier) "numconn" ()) ")" (;) ";" (declaration) "int PrepareProcess(int size);" (primitive_type) "int" (function_declarator) "PrepareProcess(int size)" (identifier) "PrepareProcess" (parameter_list) "(int size)" (() "(" (parameter_declaration) "int size" (primitive_type) "int" (identifier) "size" ()) ")" (;) ";" (declaration) "int CloseProcess();" (primitive_type) "int" (function_declarator) "CloseProcess()" (identifier) "CloseProcess" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int GetProcessFlag();" (primitive_type) "int" (function_declarator) "GetProcessFlag()" (identifier) "GetProcessFlag" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetProcessFlag(int flag);" (primitive_type) "void" (function_declarator) "SetProcessFlag(int flag)" (identifier) "SetProcessFlag" (parameter_list) "(int flag)" (() "(" (parameter_declaration) "int flag" (primitive_type) "int" (identifier) "flag" ()) ")" (;) ";" (declaration) "int TakeSample(short * Buffer, int Size,int Port);" (primitive_type) "int" (function_declarator) "TakeSample(short * Buffer, int Size,int Port)" (identifier) "TakeSample" (parameter_list) "(short * Buffer, int Size,int Port)" (() "(" (parameter_declaration) "short * Buffer" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "* Buffer" (*) "*" (identifier) "Buffer" (,) "," (parameter_declaration) "int Size" (primitive_type) "int" (identifier) "Size" (,) "," (parameter_declaration) "int Port" (primitive_type) "int" (identifier) "Port" ()) ")" (;) ";" (declaration) "int GetSample(short * Buffer, int Size,int Port);" (primitive_type) "int" (function_declarator) "GetSample(short * Buffer, int Size,int Port)" (identifier) "GetSample" (parameter_list) "(short * Buffer, int Size,int Port)" (() "(" (parameter_declaration) "short * Buffer" (sized_type_specifier) "short" (short) "short" (pointer_declarator) "* Buffer" (*) "*" (identifier) "Buffer" (,) "," (parameter_declaration) "int Size" (primitive_type) "int" (identifier) "Size" (,) "," (parameter_declaration) "int Port" (primitive_type) "int" (identifier) "Port" ()) ")" (;) ";" (declaration) "int ProcessSample(int Size);" (primitive_type) "int" (function_declarator) "ProcessSample(int Size)" (identifier) "ProcessSample" (parameter_list) "(int Size)" (() "(" (parameter_declaration) "int Size" (primitive_type) "int" (identifier) "Size" ()) ")" (;) ";" (declaration) "int OpenConfigWindow();" (primitive_type) "int" (function_declarator) "OpenConfigWindow()" (identifier) "OpenConfigWindow" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int GetMissingEntryData(int * module, int * port);" (primitive_type) "int" (function_declarator) "GetMissingEntryData(int * module, int * port)" (identifier) "GetMissingEntryData" (parameter_list) "(int * module, int * port)" (() "(" (parameter_declaration) "int * module" (primitive_type) "int" (pointer_declarator) "* module" (*) "*" (identifier) "module" (,) "," (parameter_declaration) "int * port" (primitive_type) "int" (pointer_declarator) "* port" (*) "*" (identifier) "port" ()) ")" (;) ";" (declaration) "int GetDoorFlag(int Port);" (primitive_type) "int" (function_declarator) "GetDoorFlag(int Port)" (identifier) "GetDoorFlag" (parameter_list) "(int Port)" (() "(" (parameter_declaration) "int Port" (primitive_type) "int" (identifier) "Port" ()) ")" (;) ";" (declaration) "char * GetInfoTxt();" (primitive_type) "char" (pointer_declarator) "* GetInfoTxt()" (*) "*" (function_declarator) "GetInfoTxt()" (identifier) "GetInfoTxt" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int GetMode();" (primitive_type) "int" (function_declarator) "GetMode()" (identifier) "GetMode" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetMode(int mode);" (primitive_type) "void" (function_declarator) "SetMode(int mode)" (identifier) "SetMode" (parameter_list) "(int mode)" (() "(" (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" ()) ")" (;) ";" (declaration) "int GetParamData(void *,int,int *);" (primitive_type) "int" (function_declarator) "GetParamData(void *,int,int *)" (identifier) "GetParamData" (parameter_list) "(void *,int,int *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int *" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "int SetParamData(void *,int,int *);" (primitive_type) "int" (function_declarator) "SetParamData(void *,int,int *)" (identifier) "SetParamData" (parameter_list) "(void *,int,int *)" (() "(" (parameter_declaration) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int *" (primitive_type) "int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "void DestroyDialog();" (primitive_type) "void" (function_declarator) "DestroyDialog()" (identifier) "DestroyDialog" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int ScopeNumber();" (primitive_type) "int" (function_declarator) "ScopeNumber()" (identifier) "ScopeNumber" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
502
2
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 23.58, "nodes": 353, "errors": 0, "source_hash": "83d2e9d68d35f6fa9980aa44ec64339cf8c5c73940699aef48e4c9aa48b1f2bd", "categorized_nodes": 201}, "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": "type_definition", "text": "typedef struct Visu_moduleData\n{\n\tint type;\n\tint idmod;\n\tint datasize;\n\n\tint GraphXPosi_X;\n\tint GraphXPosi_Y;\n\tint GraphXSize_X;\n\tint GraphXSize_Y;\n\n\tConnexion Connection[8];\n\n\n\tint Mode;\n\tint scopenumber;\n\n}Visu_moduleData;", "parent": null, "children": [4, 5, 40], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 19, "column": 17}}, {"id": 4, "type": "typedef", "text": "typedef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "struct_specifier", "text": "struct Visu_moduleData\n{\n\tint type;\n\tint idmod;\n\tint datasize;\n\n\tint GraphXPosi_X;\n\tint GraphXPosi_Y;\n\tint GraphXSize_X;\n\tint GraphXSize_Y;\n\n\tConnexion Connection[8];\n\n\n\tint Mode;\n\tint scopenumber;\n\n}", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 19, "column": 1}}, {"id": 6, "type": "struct", "text": "struct", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "type_identifier", "text": "Visu_moduleData", "parent": 5, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 30}}, {"id": 8, "type": "field_declaration", "text": "int type;", "parent": 5, "children": [9, 10], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 10}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 4}}, {"id": 10, "type": "field_identifier", "text": "type", "parent": 8, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 9}}, {"id": 11, "type": "field_declaration", "text": "int idmod;", "parent": 5, "children": [12, 13], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 11}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 4}}, {"id": 13, "type": "field_identifier", "text": "idmod", "parent": 11, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 10}}, {"id": 14, "type": "field_declaration", "text": "int datasize;", "parent": 5, "children": [15, 16], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 14}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 4}}, {"id": 16, "type": "field_identifier", "text": "datasize", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "field_declaration", "text": "int GraphXPosi_X;", "parent": 5, "children": [18, 19], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 18}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 4}}, {"id": 19, "type": "field_identifier", "text": "GraphXPosi_X", "parent": 17, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 17}}, {"id": 20, "type": "field_declaration", "text": "int GraphXPosi_Y;", "parent": 5, "children": [21, 22], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 18}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 4}}, {"id": 22, "type": "field_identifier", "text": "GraphXPosi_Y", "parent": 20, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 17}}, {"id": 23, "type": "field_declaration", "text": "int GraphXSize_X;", "parent": 5, "children": [24, 25], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 18}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 25, "type": "field_identifier", "text": "GraphXSize_X", "parent": 23, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 17}}, {"id": 26, "type": "field_declaration", "text": "int GraphXSize_Y;", "parent": 5, "children": [27, 28], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 18}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 4}}, {"id": 28, "type": "field_identifier", "text": "GraphXSize_Y", "parent": 26, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 17}}, {"id": 29, "type": "field_declaration", "text": "Connexion Connection[8];", "parent": 5, "children": [30, 31], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 25}}, {"id": 30, "type": "type_identifier", "text": "Connexion", "parent": 29, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 31, "type": "array_declarator", "text": "Connection[8]", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 24}}, {"id": 32, "type": "field_identifier", "text": "Connection", "parent": 31, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 21}}, {"id": 33, "type": "number_literal", "text": "8", "parent": 31, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 34, "type": "field_declaration", "text": "int Mode;", "parent": 5, "children": [35, 36], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 36, "type": "field_identifier", "text": "Mode", "parent": 34, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 9}}, {"id": 37, "type": "field_declaration", "text": "int scopenumber;", "parent": 5, "children": [38, 39], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 17}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 39, "type": "field_identifier", "text": "scopenumber", "parent": 37, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 16}}, {"id": 40, "type": "type_identifier", "text": "Visu_moduleData", "parent": 3, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 16}}, {"id": 41, "type": "function_definition", "text": "class visu_module : public module\n{\nprivate:\n\tint IconeId;\n\tint OutputNumber;\n\tint short* BufferTemp;//Buffer traitement\n\tint unsigned short *BufferFFT;\n\tint Mode;\n\tint Flag;\n\tclass Visu_dialog * BoiteDialogue;\n\tclass FFT * fftanalyseur;\n\tstatic int sscopenumber;\n\tint scopenumber;\n\n\tchar string1[128];\npublic:\n\n\tvisu_module(int,int);\n\t~visu_module();\n\n\tvoid GetGraphXCord(int * X,int * Y);\n\tvoid SetGraphXCord(int X,int Y);\n\n\tint GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);\n\tint GetIconeID();\n\n\tint SetConnection(int num,int module , int numconn);\n\tint GetConnection(int num,int * module , int *numconn);\n\n\tint PrepareProcess(int size);\n\tint CloseProcess();\n\n\tint GetProcessFlag();\n\tvoid SetProcessFlag(int flag);\n\n\tint TakeSample(short * Buffer, int Size,int Port);\n\tint GetSample(short * Buffer, int Size,int Port);\n\tint ProcessSample(int Size);\n\n\tint OpenConfigWindow();\n\tint GetMissingEntryData(int * module, int * port);\n\tint GetDoorFlag(int Port);\n\n\tchar * GetInfoTxt();\n\n\tint GetMode();\n\tvoid SetMode(int mode);\n\n\n\tint GetParamData(void *,int,int *);\n\tint SetParamData(void *,int,int *);\n\tvoid DestroyDialog();\n\tint ScopeNumber();\n}", "parent": null, "children": [42, 43], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 42, "type": "identifier", "text": "visu_module", "parent": 41, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 17}}, {"id": 43, "type": "ERROR", "text": ": public module", "parent": 41, "children": [44], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 33}}, {"id": 44, "type": "identifier", "text": "module", "parent": 43, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 33}}, {"id": 45, "type": "labeled_statement", "text": "private:\n\tint IconeId;", "parent": 41, "children": [46], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 13}}, {"id": 46, "type": "declaration", "text": "int IconeId;", "parent": 45, "children": [47, 48], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 13}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 4}}, {"id": 48, "type": "identifier", "text": "IconeId", "parent": 46, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 12}}, {"id": 49, "type": "declaration", "text": "int OutputNumber;", "parent": 41, "children": [50, 51], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 18}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 4}}, {"id": 51, "type": "identifier", "text": "OutputNumber", "parent": 49, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 17}}, {"id": 52, "type": "declaration", "text": "int short* BufferTemp;", "parent": 41, "children": [53, 56], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 23}}, {"id": 53, "type": "sized_type_specifier", "text": "int short", "parent": 52, "children": [54, 55], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 10}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}, {"id": 55, "type": "short", "text": "short", "parent": 53, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 10}}, {"id": 56, "type": "pointer_declarator", "text": "* BufferTemp", "parent": 52, "children": [57, 58], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 22}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 11}}, {"id": 58, "type": "identifier", "text": "BufferTemp", "parent": 56, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 59, "type": "declaration", "text": "int unsigned short *BufferFFT;", "parent": 41, "children": [60, 64], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 31}}, {"id": 60, "type": "sized_type_specifier", "text": "int unsigned short", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 19}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 4}}, {"id": 62, "type": "unsigned", "text": "unsigned", "parent": 60, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 13}}, {"id": 63, "type": "short", "text": "short", "parent": 60, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 19}}, {"id": 64, "type": "pointer_declarator", "text": "*BufferFFT", "parent": 59, "children": [65, 66], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 30}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 66, "type": "identifier", "text": "BufferFFT", "parent": 64, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 30}}, {"id": 67, "type": "declaration", "text": "int Mode;", "parent": 41, "children": [68, 69], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 10}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 4}}, {"id": 69, "type": "identifier", "text": "Mode", "parent": 67, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 9}}, {"id": 70, "type": "declaration", "text": "int Flag;", "parent": 41, "children": [71, 72], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 4}}, {"id": 72, "type": "identifier", "text": "Flag", "parent": 70, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 9}}, {"id": 73, "type": "declaration", "text": "class Visu_dialog", "parent": 41, "children": [74], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 18}}, {"id": 74, "type": "identifier", "text": "Visu_dialog", "parent": 73, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 18}}, {"id": 75, "type": "pointer_expression", "text": "* BoiteDialogue", "parent": 41, "children": [76, 77], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 34}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 20}}, {"id": 77, "type": "identifier", "text": "BoiteDialogue", "parent": 75, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 34}}, {"id": 78, "type": "declaration", "text": "class FFT * fftanalyseur;", "parent": 41, "children": [79, 81], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 26}}, {"id": 79, "type": "ERROR", "text": "FFT", "parent": 78, "children": [80], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 10}}, {"id": 80, "type": "identifier", "text": "FFT", "parent": 79, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 10}}, {"id": 81, "type": "pointer_declarator", "text": "* fftanalyseur", "parent": 78, "children": [82, 83], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 25}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 12}}, {"id": 83, "type": "identifier", "text": "fftanalyseur", "parent": 81, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 25}}, {"id": 84, "type": "declaration", "text": "static int sscopenumber;", "parent": 41, "children": [85, 86], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 25}}, {"id": 85, "type": "primitive_type", "text": "int", "parent": 84, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 86, "type": "identifier", "text": "sscopenumber", "parent": 84, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 24}}, {"id": 87, "type": "declaration", "text": "int scopenumber;", "parent": 41, "children": [88, 89], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 17}}, {"id": 88, "type": "primitive_type", "text": "int", "parent": 87, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 4}}, {"id": 89, "type": "identifier", "text": "scopenumber", "parent": 87, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 16}}, {"id": 90, "type": "declaration", "text": "char string1[128];", "parent": 41, "children": [91, 92], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 19}}, {"id": 91, "type": "primitive_type", "text": "char", "parent": 90, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 92, "type": "array_declarator", "text": "string1[128]", "parent": 90, "children": [93, 94], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 18}}, {"id": 93, "type": "identifier", "text": "string1", "parent": 92, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 13}}, {"id": 94, "type": "number_literal", "text": "128", "parent": 92, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 17}}, {"id": 95, "type": "labeled_statement", "text": "public:\n\n\tvisu_module(int,int);", "parent": 41, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 22}}, {"id": 96, "type": "call_expression", "text": "visu_module(int,int)", "parent": 95, "children": [97, 98], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 21}}, {"id": 97, "type": "identifier", "text": "visu_module", "parent": 96, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 12}}, {"id": 98, "type": "argument_list", "text": "(int,int)", "parent": 96, "children": [99, 100], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 21}}, {"id": 99, "type": "identifier", "text": "int", "parent": 98, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 16}}, {"id": 100, "type": "identifier", "text": "int", "parent": 98, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 20}}, {"id": 101, "type": "unary_expression", "text": "~visu_module()", "parent": 41, "children": [102, 103], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 15}}, {"id": 102, "type": "~", "text": "~", "parent": 101, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 2}}, {"id": 103, "type": "call_expression", "text": "visu_module()", "parent": 101, "children": [104, 105], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 15}}, {"id": 104, "type": "identifier", "text": "visu_module", "parent": 103, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 13}}, {"id": 105, "type": "argument_list", "text": "()", "parent": 103, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 15}}, {"id": 106, "type": "declaration", "text": "void GetGraphXCord(int * X,int * Y);", "parent": 41, "children": [107, 108], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 37}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 108, "type": "function_declarator", "text": "GetGraphXCord(int * X,int * Y)", "parent": 106, "children": [109, 110], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 36}}, {"id": 109, "type": "identifier", "text": "GetGraphXCord", "parent": 108, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 19}}, {"id": 110, "type": "parameter_list", "text": "(int * X,int * Y)", "parent": 108, "children": [111, 116], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 36}}, {"id": 111, "type": "parameter_declaration", "text": "int * X", "parent": 110, "children": [112, 113], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 27}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 113, "type": "pointer_declarator", "text": "* X", "parent": 111, "children": [114, 115], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 27}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 25}}, {"id": 115, "type": "identifier", "text": "X", "parent": 113, "children": [], "start_point": {"row": 41, "column": 26}, "end_point": {"row": 41, "column": 27}}, {"id": 116, "type": "parameter_declaration", "text": "int * Y", "parent": 110, "children": [117, 118], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 35}}, {"id": 117, "type": "primitive_type", "text": "int", "parent": 116, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 31}}, {"id": 118, "type": "pointer_declarator", "text": "* Y", "parent": 116, "children": [119, 120], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 35}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 33}}, {"id": 120, "type": "identifier", "text": "Y", "parent": 118, "children": [], "start_point": {"row": 41, "column": 34}, "end_point": {"row": 41, "column": 35}}, {"id": 121, "type": "declaration", "text": "void SetGraphXCord(int X,int Y);", "parent": 41, "children": [122, 123], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 33}}, {"id": 122, "type": "primitive_type", "text": "void", "parent": 121, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 5}}, {"id": 123, "type": "function_declarator", "text": "SetGraphXCord(int X,int Y)", "parent": 121, "children": [124, 125], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 32}}, {"id": 124, "type": "identifier", "text": "SetGraphXCord", "parent": 123, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 19}}, {"id": 125, "type": "parameter_list", "text": "(int X,int Y)", "parent": 123, "children": [126, 129], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 32}}, {"id": 126, "type": "parameter_declaration", "text": "int X", "parent": 125, "children": [127, 128], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 25}}, {"id": 127, "type": "primitive_type", "text": "int", "parent": 126, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 23}}, {"id": 128, "type": "identifier", "text": "X", "parent": 126, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 25}}, {"id": 129, "type": "parameter_declaration", "text": "int Y", "parent": 125, "children": [130, 131], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 31}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 129, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 29}}, {"id": 131, "type": "identifier", "text": "Y", "parent": 129, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 31}}, {"id": 132, "type": "declaration", "text": "int GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);", "parent": 41, "children": [133, 134], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 75}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 134, "type": "function_declarator", "text": "GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2)", "parent": 132, "children": [135, 136], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 74}}, {"id": 135, "type": "identifier", "text": "GetConnectionGraphXCoord", "parent": 134, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 29}}, {"id": 136, "type": "parameter_list", "text": "(int num,int * X1,int * Y1,int * X2,int * Y2)", "parent": 134, "children": [137, 140, 145, 150, 155], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 74}}, {"id": 137, "type": "parameter_declaration", "text": "int num", "parent": 136, "children": [138, 139], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 37}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 33}}, {"id": 139, "type": "identifier", "text": "num", "parent": 137, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 37}}, {"id": 140, "type": "parameter_declaration", "text": "int * X1", "parent": 136, "children": [141, 142], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 46}}, {"id": 141, "type": "primitive_type", "text": "int", "parent": 140, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 41}}, {"id": 142, "type": "pointer_declarator", "text": "* X1", "parent": 140, "children": [143, 144], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 46}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 43}}, {"id": 144, "type": "identifier", "text": "X1", "parent": 142, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 46}}, {"id": 145, "type": "parameter_declaration", "text": "int * Y1", "parent": 136, "children": [146, 147], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 55}}, {"id": 146, "type": "primitive_type", "text": "int", "parent": 145, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 50}}, {"id": 147, "type": "pointer_declarator", "text": "* Y1", "parent": 145, "children": [148, 149], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 55}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 52}}, {"id": 149, "type": "identifier", "text": "Y1", "parent": 147, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 44, "column": 55}}, {"id": 150, "type": "parameter_declaration", "text": "int * X2", "parent": 136, "children": [151, 152], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 64}}, {"id": 151, "type": "primitive_type", "text": "int", "parent": 150, "children": [], "start_point": {"row": 44, "column": 56}, "end_point": {"row": 44, "column": 59}}, {"id": 152, "type": "pointer_declarator", "text": "* X2", "parent": 150, "children": [153, 154], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 64}}, {"id": 153, "type": "*", "text": "*", "parent": 152, "children": [], "start_point": {"row": 44, "column": 60}, "end_point": {"row": 44, "column": 61}}, {"id": 154, "type": "identifier", "text": "X2", "parent": 152, "children": [], "start_point": {"row": 44, "column": 62}, "end_point": {"row": 44, "column": 64}}, {"id": 155, "type": "parameter_declaration", "text": "int * Y2", "parent": 136, "children": [156, 157], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 73}}, {"id": 156, "type": "primitive_type", "text": "int", "parent": 155, "children": [], "start_point": {"row": 44, "column": 65}, "end_point": {"row": 44, "column": 68}}, {"id": 157, "type": "pointer_declarator", "text": "* Y2", "parent": 155, "children": [158, 159], "start_point": {"row": 44, "column": 69}, "end_point": {"row": 44, "column": 73}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 44, "column": 69}, "end_point": {"row": 44, "column": 70}}, {"id": 159, "type": "identifier", "text": "Y2", "parent": 157, "children": [], "start_point": {"row": 44, "column": 71}, "end_point": {"row": 44, "column": 73}}, {"id": 160, "type": "declaration", "text": "int GetIconeID();", "parent": 41, "children": [161, 162], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 18}}, {"id": 161, "type": "primitive_type", "text": "int", "parent": 160, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 4}}, {"id": 162, "type": "function_declarator", "text": "GetIconeID()", "parent": 160, "children": [163, 164], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 17}}, {"id": 163, "type": "identifier", "text": "GetIconeID", "parent": 162, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 15}}, {"id": 164, "type": "parameter_list", "text": "()", "parent": 162, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 17}}, {"id": 165, "type": "declaration", "text": "int SetConnection(int num,int module , int numconn);", "parent": 41, "children": [166, 167], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 53}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 167, "type": "function_declarator", "text": "SetConnection(int num,int module , int numconn)", "parent": 165, "children": [168, 169], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 52}}, {"id": 168, "type": "identifier", "text": "SetConnection", "parent": 167, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 18}}, {"id": 169, "type": "parameter_list", "text": "(int num,int module , int numconn)", "parent": 167, "children": [170, 173, 176], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 52}}, {"id": 170, "type": "parameter_declaration", "text": "int num", "parent": 169, "children": [171, 172], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 26}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 22}}, {"id": 172, "type": "identifier", "text": "num", "parent": 170, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 26}}, {"id": 173, "type": "parameter_declaration", "text": "int module", "parent": 169, "children": [174, 175], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 37}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 30}}, {"id": 175, "type": "identifier", "text": "module", "parent": 173, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 37}}, {"id": 176, "type": "parameter_declaration", "text": "int numconn", "parent": 169, "children": [177, 178], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 51}}, {"id": 177, "type": "primitive_type", "text": "int", "parent": 176, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 43}}, {"id": 178, "type": "identifier", "text": "numconn", "parent": 176, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 51}}, {"id": 179, "type": "declaration", "text": "int GetConnection(int num,int * module , int *numconn);", "parent": 41, "children": [180, 181], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 57}}, {"id": 180, "type": "primitive_type", "text": "int", "parent": 179, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 181, "type": "function_declarator", "text": "GetConnection(int num,int * module , int *numconn)", "parent": 179, "children": [182, 183], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 56}}, {"id": 182, "type": "identifier", "text": "GetConnection", "parent": 181, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 18}}, {"id": 183, "type": "parameter_list", "text": "(int num,int * module , int *numconn)", "parent": 181, "children": [184, 187, 192], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 56}}, {"id": 184, "type": "parameter_declaration", "text": "int num", "parent": 183, "children": [185, 186], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 26}}, {"id": 185, "type": "primitive_type", "text": "int", "parent": 184, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 22}}, {"id": 186, "type": "identifier", "text": "num", "parent": 184, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 26}}, {"id": 187, "type": "parameter_declaration", "text": "int * module", "parent": 183, "children": [188, 189], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 39}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 30}}, {"id": 189, "type": "pointer_declarator", "text": "* module", "parent": 187, "children": [190, 191], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 39}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 32}}, {"id": 191, "type": "identifier", "text": "module", "parent": 189, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 39}}, {"id": 192, "type": "parameter_declaration", "text": "int *numconn", "parent": 183, "children": [193, 194], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 55}}, {"id": 193, "type": "primitive_type", "text": "int", "parent": 192, "children": [], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 45}}, {"id": 194, "type": "pointer_declarator", "text": "*numconn", "parent": 192, "children": [195, 196], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 55}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 48}}, {"id": 196, "type": "identifier", "text": "numconn", "parent": 194, "children": [], "start_point": {"row": 48, "column": 48}, "end_point": {"row": 48, "column": 55}}, {"id": 197, "type": "declaration", "text": "int PrepareProcess(int size);", "parent": 41, "children": [198, 199], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 30}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 4}}, {"id": 199, "type": "function_declarator", "text": "PrepareProcess(int size)", "parent": 197, "children": [200, 201], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 29}}, {"id": 200, "type": "identifier", "text": "PrepareProcess", "parent": 199, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 19}}, {"id": 201, "type": "parameter_list", "text": "(int size)", "parent": 199, "children": [202], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 29}}, {"id": 202, "type": "parameter_declaration", "text": "int size", "parent": 201, "children": [203, 204], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 28}}, {"id": 203, "type": "primitive_type", "text": "int", "parent": 202, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 23}}, {"id": 204, "type": "identifier", "text": "size", "parent": 202, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 28}}, {"id": 205, "type": "declaration", "text": "int CloseProcess();", "parent": 41, "children": [206, 207], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 20}}, {"id": 206, "type": "primitive_type", "text": "int", "parent": 205, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 4}}, {"id": 207, "type": "function_declarator", "text": "CloseProcess()", "parent": 205, "children": [208, 209], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 19}}, {"id": 208, "type": "identifier", "text": "CloseProcess", "parent": 207, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 17}}, {"id": 209, "type": "parameter_list", "text": "()", "parent": 207, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 19}}, {"id": 210, "type": "declaration", "text": "int GetProcessFlag();", "parent": 41, "children": [211, 212], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 22}}, {"id": 211, "type": "primitive_type", "text": "int", "parent": 210, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 4}}, {"id": 212, "type": "function_declarator", "text": "GetProcessFlag()", "parent": 210, "children": [213, 214], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 21}}, {"id": 213, "type": "identifier", "text": "GetProcessFlag", "parent": 212, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 19}}, {"id": 214, "type": "parameter_list", "text": "()", "parent": 212, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 21}}, {"id": 215, "type": "declaration", "text": "void SetProcessFlag(int flag);", "parent": 41, "children": [216, 217], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 31}}, {"id": 216, "type": "primitive_type", "text": "void", "parent": 215, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 5}}, {"id": 217, "type": "function_declarator", "text": "SetProcessFlag(int flag)", "parent": 215, "children": [218, 219], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 30}}, {"id": 218, "type": "identifier", "text": "SetProcessFlag", "parent": 217, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 20}}, {"id": 219, "type": "parameter_list", "text": "(int flag)", "parent": 217, "children": [220], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 30}}, {"id": 220, "type": "parameter_declaration", "text": "int flag", "parent": 219, "children": [221, 222], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 29}}, {"id": 221, "type": "primitive_type", "text": "int", "parent": 220, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 24}}, {"id": 222, "type": "identifier", "text": "flag", "parent": 220, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 29}}, {"id": 223, "type": "declaration", "text": "int TakeSample(short * Buffer, int Size,int Port);", "parent": 41, "children": [224, 225], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 52}}, {"id": 224, "type": "primitive_type", "text": "int", "parent": 223, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 4}}, {"id": 225, "type": "function_declarator", "text": "TakeSample(short * Buffer, int Size,int Port)", "parent": 223, "children": [226, 227], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 51}}, {"id": 226, "type": "identifier", "text": "TakeSample", "parent": 225, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 15}}, {"id": 227, "type": "parameter_list", "text": "(short * Buffer, int Size,int Port)", "parent": 225, "children": [228, 234, 237], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 51}}, {"id": 228, "type": "parameter_declaration", "text": "short * Buffer", "parent": 227, "children": [229, 231], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 31}}, {"id": 229, "type": "sized_type_specifier", "text": "short", "parent": 228, "children": [230], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 21}}, {"id": 230, "type": "short", "text": "short", "parent": 229, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 21}}, {"id": 231, "type": "pointer_declarator", "text": "* Buffer", "parent": 228, "children": [232, 233], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 31}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 24}}, {"id": 233, "type": "identifier", "text": "Buffer", "parent": 231, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 31}}, {"id": 234, "type": "parameter_declaration", "text": "int Size", "parent": 227, "children": [235, 236], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 41}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 234, "children": [], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 36}}, {"id": 236, "type": "identifier", "text": "Size", "parent": 234, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 41}}, {"id": 237, "type": "parameter_declaration", "text": "int Port", "parent": 227, "children": [238, 239], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 50}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 45}}, {"id": 239, "type": "identifier", "text": "Port", "parent": 237, "children": [], "start_point": {"row": 56, "column": 46}, "end_point": {"row": 56, "column": 50}}, {"id": 240, "type": "declaration", "text": "int GetSample(short * Buffer, int Size,int Port);", "parent": 41, "children": [241, 242], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 51}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 242, "type": "function_declarator", "text": "GetSample(short * Buffer, int Size,int Port)", "parent": 240, "children": [243, 244], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 50}}, {"id": 243, "type": "identifier", "text": "GetSample", "parent": 242, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 14}}, {"id": 244, "type": "parameter_list", "text": "(short * Buffer, int Size,int Port)", "parent": 242, "children": [245, 251, 254], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 50}}, {"id": 245, "type": "parameter_declaration", "text": "short * Buffer", "parent": 244, "children": [246, 248], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 30}}, {"id": 246, "type": "sized_type_specifier", "text": "short", "parent": 245, "children": [247], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 20}}, {"id": 247, "type": "short", "text": "short", "parent": 246, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 20}}, {"id": 248, "type": "pointer_declarator", "text": "* Buffer", "parent": 245, "children": [249, 250], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 30}}, {"id": 249, "type": "*", "text": "*", "parent": 248, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 23}}, {"id": 250, "type": "identifier", "text": "Buffer", "parent": 248, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 30}}, {"id": 251, "type": "parameter_declaration", "text": "int Size", "parent": 244, "children": [252, 253], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 40}}, {"id": 252, "type": "primitive_type", "text": "int", "parent": 251, "children": [], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 35}}, {"id": 253, "type": "identifier", "text": "Size", "parent": 251, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 40}}, {"id": 254, "type": "parameter_declaration", "text": "int Port", "parent": 244, "children": [255, 256], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 49}}, {"id": 255, "type": "primitive_type", "text": "int", "parent": 254, "children": [], "start_point": {"row": 57, "column": 41}, "end_point": {"row": 57, "column": 44}}, {"id": 256, "type": "identifier", "text": "Port", "parent": 254, "children": [], "start_point": {"row": 57, "column": 45}, "end_point": {"row": 57, "column": 49}}, {"id": 257, "type": "declaration", "text": "int ProcessSample(int Size);", "parent": 41, "children": [258, 259], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 29}}, {"id": 258, "type": "primitive_type", "text": "int", "parent": 257, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 259, "type": "function_declarator", "text": "ProcessSample(int Size)", "parent": 257, "children": [260, 261], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 28}}, {"id": 260, "type": "identifier", "text": "ProcessSample", "parent": 259, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 18}}, {"id": 261, "type": "parameter_list", "text": "(int Size)", "parent": 259, "children": [262], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 28}}, {"id": 262, "type": "parameter_declaration", "text": "int Size", "parent": 261, "children": [263, 264], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 27}}, {"id": 263, "type": "primitive_type", "text": "int", "parent": 262, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 22}}, {"id": 264, "type": "identifier", "text": "Size", "parent": 262, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 27}}, {"id": 265, "type": "declaration", "text": "int OpenConfigWindow();", "parent": 41, "children": [266, 267], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 24}}, {"id": 266, "type": "primitive_type", "text": "int", "parent": 265, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 4}}, {"id": 267, "type": "function_declarator", "text": "OpenConfigWindow()", "parent": 265, "children": [268, 269], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 23}}, {"id": 268, "type": "identifier", "text": "OpenConfigWindow", "parent": 267, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 21}}, {"id": 269, "type": "parameter_list", "text": "()", "parent": 267, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 23}}, {"id": 270, "type": "declaration", "text": "int GetMissingEntryData(int * module, int * port);", "parent": 41, "children": [271, 272], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 51}}, {"id": 271, "type": "primitive_type", "text": "int", "parent": 270, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 4}}, {"id": 272, "type": "function_declarator", "text": "GetMissingEntryData(int * module, int * port)", "parent": 270, "children": [273, 274], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 50}}, {"id": 273, "type": "identifier", "text": "GetMissingEntryData", "parent": 272, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 24}}, {"id": 274, "type": "parameter_list", "text": "(int * module, int * port)", "parent": 272, "children": [275, 280], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 50}}, {"id": 275, "type": "parameter_declaration", "text": "int * module", "parent": 274, "children": [276, 277], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 37}}, {"id": 276, "type": "primitive_type", "text": "int", "parent": 275, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 28}}, {"id": 277, "type": "pointer_declarator", "text": "* module", "parent": 275, "children": [278, 279], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 37}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 30}}, {"id": 279, "type": "identifier", "text": "module", "parent": 277, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 37}}, {"id": 280, "type": "parameter_declaration", "text": "int * port", "parent": 274, "children": [281, 282], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 49}}, {"id": 281, "type": "primitive_type", "text": "int", "parent": 280, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 42}}, {"id": 282, "type": "pointer_declarator", "text": "* port", "parent": 280, "children": [283, 284], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 49}}, {"id": 283, "type": "*", "text": "*", "parent": 282, "children": [], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 44}}, {"id": 284, "type": "identifier", "text": "port", "parent": 282, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 49}}, {"id": 285, "type": "declaration", "text": "int GetDoorFlag(int Port);", "parent": 41, "children": [286, 287], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 27}}, {"id": 286, "type": "primitive_type", "text": "int", "parent": 285, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 4}}, {"id": 287, "type": "function_declarator", "text": "GetDoorFlag(int Port)", "parent": 285, "children": [288, 289], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 26}}, {"id": 288, "type": "identifier", "text": "GetDoorFlag", "parent": 287, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 16}}, {"id": 289, "type": "parameter_list", "text": "(int Port)", "parent": 287, "children": [290], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 26}}, {"id": 290, "type": "parameter_declaration", "text": "int Port", "parent": 289, "children": [291, 292], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 25}}, {"id": 291, "type": "primitive_type", "text": "int", "parent": 290, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 20}}, {"id": 292, "type": "identifier", "text": "Port", "parent": 290, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 25}}, {"id": 293, "type": "declaration", "text": "char * GetInfoTxt();", "parent": 41, "children": [294, 295], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 21}}, {"id": 294, "type": "primitive_type", "text": "char", "parent": 293, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 5}}, {"id": 295, "type": "pointer_declarator", "text": "* GetInfoTxt()", "parent": 293, "children": [296, 297], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 20}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 7}}, {"id": 297, "type": "function_declarator", "text": "GetInfoTxt()", "parent": 295, "children": [298, 299], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 20}}, {"id": 298, "type": "identifier", "text": "GetInfoTxt", "parent": 297, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 18}}, {"id": 299, "type": "parameter_list", "text": "()", "parent": 297, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 20}}, {"id": 300, "type": "declaration", "text": "int GetMode();", "parent": 41, "children": [301, 302], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 15}}, {"id": 301, "type": "primitive_type", "text": "int", "parent": 300, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 4}}, {"id": 302, "type": "function_declarator", "text": "GetMode()", "parent": 300, "children": [303, 304], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 14}}, {"id": 303, "type": "identifier", "text": "GetMode", "parent": 302, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 12}}, {"id": 304, "type": "parameter_list", "text": "()", "parent": 302, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 14}}, {"id": 305, "type": "declaration", "text": "void SetMode(int mode);", "parent": 41, "children": [306, 307], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 24}}, {"id": 306, "type": "primitive_type", "text": "void", "parent": 305, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 5}}, {"id": 307, "type": "function_declarator", "text": "SetMode(int mode)", "parent": 305, "children": [308, 309], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 23}}, {"id": 308, "type": "identifier", "text": "SetMode", "parent": 307, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 13}}, {"id": 309, "type": "parameter_list", "text": "(int mode)", "parent": 307, "children": [310], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 23}}, {"id": 310, "type": "parameter_declaration", "text": "int mode", "parent": 309, "children": [311, 312], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 22}}, {"id": 311, "type": "primitive_type", "text": "int", "parent": 310, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 17}}, {"id": 312, "type": "identifier", "text": "mode", "parent": 310, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 22}}, {"id": 313, "type": "declaration", "text": "int GetParamData(void *,int,int *);", "parent": 41, "children": [314, 315], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 36}}, {"id": 314, "type": "primitive_type", "text": "int", "parent": 313, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 4}}, {"id": 315, "type": "function_declarator", "text": "GetParamData(void *,int,int *)", "parent": 313, "children": [316, 317], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 35}}, {"id": 316, "type": "identifier", "text": "GetParamData", "parent": 315, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 17}}, {"id": 317, "type": "parameter_list", "text": "(void *,int,int *)", "parent": 315, "children": [318, 322, 324], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 35}}, {"id": 318, "type": "parameter_declaration", "text": "void *", "parent": 317, "children": [319, 320], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 24}}, {"id": 319, "type": "primitive_type", "text": "void", "parent": 318, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 22}}, {"id": 320, "type": "abstract_pointer_declarator", "text": "*", "parent": 318, "children": [321], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 321, "type": "*", "text": "*", "parent": 320, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 322, "type": "parameter_declaration", "text": "int", "parent": 317, "children": [323], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 28}}, {"id": 323, "type": "primitive_type", "text": "int", "parent": 322, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 28}}, {"id": 324, "type": "parameter_declaration", "text": "int *", "parent": 317, "children": [325, 326], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 34}}, {"id": 325, "type": "primitive_type", "text": "int", "parent": 324, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 32}}, {"id": 326, "type": "abstract_pointer_declarator", "text": "*", "parent": 324, "children": [327], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 34}}, {"id": 327, "type": "*", "text": "*", "parent": 326, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 34}}, {"id": 328, "type": "declaration", "text": "int SetParamData(void *,int,int *);", "parent": 41, "children": [329, 330], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 36}}, {"id": 329, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 330, "type": "function_declarator", "text": "SetParamData(void *,int,int *)", "parent": 328, "children": [331, 332], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 35}}, {"id": 331, "type": "identifier", "text": "SetParamData", "parent": 330, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 17}}, {"id": 332, "type": "parameter_list", "text": "(void *,int,int *)", "parent": 330, "children": [333, 337, 339], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 35}}, {"id": 333, "type": "parameter_declaration", "text": "void *", "parent": 332, "children": [334, 335], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 24}}, {"id": 334, "type": "primitive_type", "text": "void", "parent": 333, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 22}}, {"id": 335, "type": "abstract_pointer_declarator", "text": "*", "parent": 333, "children": [336], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 24}}, {"id": 336, "type": "*", "text": "*", "parent": 335, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 24}}, {"id": 337, "type": "parameter_declaration", "text": "int", "parent": 332, "children": [338], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 338, "type": "primitive_type", "text": "int", "parent": 337, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 339, "type": "parameter_declaration", "text": "int *", "parent": 332, "children": [340, 341], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 34}}, {"id": 340, "type": "primitive_type", "text": "int", "parent": 339, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 32}}, {"id": 341, "type": "abstract_pointer_declarator", "text": "*", "parent": 339, "children": [342], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 34}}, {"id": 342, "type": "*", "text": "*", "parent": 341, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 34}}, {"id": 343, "type": "declaration", "text": "void DestroyDialog();", "parent": 41, "children": [344, 345], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 22}}, {"id": 344, "type": "primitive_type", "text": "void", "parent": 343, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 345, "type": "function_declarator", "text": "DestroyDialog()", "parent": 343, "children": [346, 347], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 21}}, {"id": 346, "type": "identifier", "text": "DestroyDialog", "parent": 345, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 19}}, {"id": 347, "type": "parameter_list", "text": "()", "parent": 345, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 21}}, {"id": 348, "type": "declaration", "text": "int ScopeNumber();", "parent": 41, "children": [349, 350], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 19}}, {"id": 349, "type": "primitive_type", "text": "int", "parent": 348, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 4}}, {"id": 350, "type": "function_declarator", "text": "ScopeNumber()", "parent": 348, "children": [351, 352], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 18}}, {"id": 351, "type": "identifier", "text": "ScopeNumber", "parent": 350, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 16}}, {"id": 352, "type": "parameter_list", "text": "()", "parent": 350, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 18}}]}, "node_categories": {"declarations": {"functions": [41, 108, 123, 134, 162, 167, 181, 199, 207, 212, 217, 225, 242, 259, 267, 272, 287, 297, 302, 307, 315, 330, 345, 350], "variables": [3, 8, 11, 14, 17, 20, 23, 26, 29, 34, 37, 46, 49, 52, 59, 67, 70, 73, 78, 84, 87, 90, 106, 111, 116, 121, 126, 129, 132, 137, 140, 145, 150, 155, 160, 165, 170, 173, 176, 179, 184, 187, 192, 197, 202, 205, 210, 215, 220, 223, 228, 234, 237, 240, 245, 251, 254, 257, 262, 265, 270, 275, 280, 285, 290, 293, 300, 305, 310, 313, 318, 322, 324, 328, 333, 337, 339, 343, 348], "classes": [5, 6], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [75, 96, 101, 103], "assignments": [], "loops": [], "conditionals": [7, 10, 13, 16, 19, 22, 25, 28, 30, 32, 36, 39, 40, 42, 44, 48, 51, 53, 58, 60, 66, 69, 72, 74, 77, 80, 83, 86, 89, 93, 97, 99, 100, 104, 109, 115, 120, 124, 128, 131, 135, 139, 144, 149, 154, 159, 163, 168, 172, 175, 178, 182, 186, 191, 196, 200, 204, 208, 213, 218, 222, 226, 229, 233, 236, 239, 243, 246, 250, 253, 256, 260, 264, 268, 273, 279, 284, 288, 292, 298, 303, 308, 312, 316, 331, 346, 351], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 33, 94], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 41, "universal_type": "function", "name": "visu_module", "text_snippet": "class visu_module : public module\n{\nprivate:\n\tint IconeId;\n\tint OutputNumber;\n\tint short* BufferTemp"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "GetGraphXCord(int * X,int * Y)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "SetGraphXCord(int X,int Y)"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2)"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "GetIconeID()"}, {"node_id": 167, "universal_type": "function", "name": "numconn)", "text_snippet": "SetConnection(int num,int module , int numconn)"}, {"node_id": 181, "universal_type": "function", "name": "*numconn)", "text_snippet": "GetConnection(int num,int * module , int *numconn)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "PrepareProcess(int size)"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "CloseProcess()"}, {"node_id": 212, "universal_type": "function", "name": "unknown", "text_snippet": "GetProcessFlag()"}, {"node_id": 217, "universal_type": "function", "name": "unknown", "text_snippet": "SetProcessFlag(int flag)"}, {"node_id": 225, "universal_type": "function", "name": "Size,int", "text_snippet": "TakeSample(short * Buffer, int Size,int Port)"}, {"node_id": 242, "universal_type": "function", "name": "Size,int", "text_snippet": "GetSample(short * Buffer, int Size,int Port)"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "ProcessSample(int Size)"}, {"node_id": 267, "universal_type": "function", "name": "unknown", "text_snippet": "OpenConfigWindow()"}, {"node_id": 272, "universal_type": "function", "name": "*", "text_snippet": "GetMissingEntryData(int * module, int * port)"}, {"node_id": 287, "universal_type": "function", "name": "unknown", "text_snippet": "GetDoorFlag(int Port)"}, {"node_id": 297, "universal_type": "function", "name": "unknown", "text_snippet": "GetInfoTxt()"}, {"node_id": 302, "universal_type": "function", "name": "unknown", "text_snippet": "GetMode()"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "SetMode(int mode)"}, {"node_id": 315, "universal_type": "function", "name": "unknown", "text_snippet": "GetParamData(void *,int,int *)"}, {"node_id": 330, "universal_type": "function", "name": "unknown", "text_snippet": "SetParamData(void *,int,int *)"}, {"node_id": 345, "universal_type": "function", "name": "unknown", "text_snippet": "DestroyDialog()"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "ScopeNumber()"}], "class_declarations": [{"node_id": 5, "universal_type": "class", "name": "Visu_moduleData", "text_snippet": "struct Visu_moduleData\n{\n\tint type;\n\tint idmod;\n\tint datasize;\n\n\tint GraphXPosi_X;\n\tint GraphXPosi_Y"}, {"node_id": 6, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"stdafx.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"stdafx.h\"\n\ntypedef struct Visu_moduleData\n{\n\tint type;\n\tint idmod;\n\tint datasize;\n\n\tint GraphXPosi_X;\n\tint GraphXPosi_Y;\n\tint GraphXSize_X;\n\tint GraphXSize_Y;\n\n\tConnexion Connection[8];\n\n\n\tint Mode;\n\tint scopenumber;\n\n}Visu_moduleData;\n\nclass visu_module : public module\n{\nprivate:\n\tint IconeId;\n\tint OutputNumber;\n\tint short* BufferTemp;//Buffer traitement\n\tint unsigned short *BufferFFT;\n\tint Mode;\n\tint Flag;\n\tclass Visu_dialog * BoiteDialogue;\n\tclass FFT * fftanalyseur;\n\tstatic int sscopenumber;\n\tint scopenumber;\n\n\tchar string1[128];\npublic:\n\n\tvisu_module(int,int);\n\t~visu_module();\n\n\tvoid GetGraphXCord(int * X,int * Y);\n\tvoid SetGraphXCord(int X,int Y);\n\n\tint GetConnectionGraphXCoord(int num,int * X1,int * Y1,int * X2,int * Y2);\n\tint GetIconeID();\n\n\tint SetConnection(int num,int module , int numconn);\n\tint GetConnection(int num,int * module , int *numconn);\n\n\tint PrepareProcess(int size);\n\tint CloseProcess();\n\n\tint GetProcessFlag();\n\tvoid SetProcessFlag(int flag);\n\n\tint TakeSample(short * Buffer, int Size,int Port);\n\tint GetSample(short * Buffer, int Size,int Port);\n\tint ProcessSample(int Size);\n\n\tint OpenConfigWindow();\n\tint GetMissingEntryData(int * module, int * port);\n\tint GetDoorFlag(int Port);\n\n\tchar * GetInfoTxt();\n\n\tint GetMode();\n\tvoid SetMode(int mode);\n\n\n\tint GetParamData(void *,int,int *);\n\tint SetParamData(void *,int,int *);\n\tvoid DestroyDialog();\n\tint ScopeNumber();\n};\n"}
80,703
c
// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s #include <lamp.h> #include <assert.h> #include "utils.h" int main() { short a = __lamp_any_i16(); int b = __lamp_any_i32(); int r = a + b; __lamp_dump(&r); // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2) }
25.27
11
(translation_unit) "// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s\n\n#include <lamp.h>\n#include <assert.h>\n\n#include "utils.h"\n\nint main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)\n}\n" (comment) "// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s" (preproc_include) "#include <lamp.h>\n" (#include) "#include" (system_lib_string) "<lamp.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" (") """ (function_definition) "int main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)\n}" ({) "{" (declaration) "short a = __lamp_any_i16();" (sized_type_specifier) "short" (short) "short" (init_declarator) "a = __lamp_any_i16()" (identifier) "a" (=) "=" (call_expression) "__lamp_any_i16()" (identifier) "__lamp_any_i16" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int b = __lamp_any_i32();" (primitive_type) "int" (init_declarator) "b = __lamp_any_i32()" (identifier) "b" (=) "=" (call_expression) "__lamp_any_i32()" (identifier) "__lamp_any_i32" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int r = a + b;" (primitive_type) "int" (init_declarator) "r = a + b" (identifier) "r" (=) "=" (binary_expression) "a + b" (identifier) "a" (+) "+" (identifier) "b" (;) ";" (expression_statement) "__lamp_dump(&r);" (call_expression) "__lamp_dump(&r)" (identifier) "__lamp_dump" (argument_list) "(&r)" (() "(" (pointer_expression) "&r" (&) "&" (identifier) "r" ()) ")" (;) ";" (comment) "// CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)" (}) "}"
68
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 25.27, "nodes": 45, "errors": 0, "source_hash": "ff5ffbbc7b21bba0d603c4b3085b36664b0e433e4bffd2dac7f7ce1d564d5b94", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <lamp.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<lamp.h>", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 3, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<assert.h>", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include \"utils.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": "\"utils.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 9, "type": "function_definition", "text": "int main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)\n}", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "main()", "parent": 9, "children": [12, 13], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 8}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 10}}, {"id": 14, "type": "declaration", "text": "short a = __lamp_any_i16();", "parent": 9, "children": [15, 17], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 31}}, {"id": 15, "type": "sized_type_specifier", "text": "short", "parent": 14, "children": [16], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 9}}, {"id": 16, "type": "short", "text": "short", "parent": 15, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 9}}, {"id": 17, "type": "init_declarator", "text": "a = __lamp_any_i16()", "parent": 14, "children": [18, 19, 20], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 30}}, {"id": 18, "type": "identifier", "text": "a", "parent": 17, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 20, "type": "call_expression", "text": "__lamp_any_i16()", "parent": 17, "children": [21, 22], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 30}}, {"id": 21, "type": "identifier", "text": "__lamp_any_i16", "parent": 20, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 28}}, {"id": 22, "type": "argument_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 30}}, {"id": 23, "type": "declaration", "text": "int b = __lamp_any_i32();", "parent": 9, "children": [24, 25], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 29}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 7}}, {"id": 25, "type": "init_declarator", "text": "b = __lamp_any_i32()", "parent": 23, "children": [26, 27, 28], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 28}}, {"id": 26, "type": "identifier", "text": "b", "parent": 25, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 11}}, {"id": 28, "type": "call_expression", "text": "__lamp_any_i32()", "parent": 25, "children": [29, 30], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 28}}, {"id": 29, "type": "identifier", "text": "__lamp_any_i32", "parent": 28, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 26}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 28}}, {"id": 31, "type": "declaration", "text": "int r = a + b;", "parent": 9, "children": [32, 33], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 18}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 33, "type": "init_declarator", "text": "r = a + b", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 17}}, {"id": 34, "type": "identifier", "text": "r", "parent": 33, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 36, "type": "binary_expression", "text": "a + b", "parent": 33, "children": [37, 38, 39], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 17}}, {"id": 37, "type": "identifier", "text": "a", "parent": 36, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 38, "type": "+", "text": "+", "parent": 36, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 39, "type": "identifier", "text": "b", "parent": 36, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 17}}, {"id": 40, "type": "call_expression", "text": "__lamp_dump(&r)", "parent": 9, "children": [41, 42], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 19}}, {"id": 41, "type": "identifier", "text": "__lamp_dump", "parent": 40, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 15}}, {"id": 42, "type": "argument_list", "text": "(&r)", "parent": 40, "children": [43], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 19}}, {"id": 43, "type": "pointer_expression", "text": "&r", "parent": 42, "children": [44], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 18}}, {"id": 44, "type": "identifier", "text": "r", "parent": 43, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [14, 23, 31], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [20, 28, 36, 40, 43], "assignments": [], "loops": [], "conditionals": [12, 15, 18, 21, 26, 29, 34, 37, 39, 41, 44], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <lamp.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <assert.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"utils.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// RUN: %testrun %lartcc term -lz3 %s -o %t | %filecheck %s\n\n#include <lamp.h>\n#include <assert.h>\n\n#include \"utils.h\"\n\nint main() {\n short a = __lamp_any_i16();\n int b = __lamp_any_i32();\n int r = a + b;\n __lamp_dump(&r);\n // CHECK: (bvadd ((_ sign_extend 16) var_1) var_2)\n}\n"}
80,704
c
/********************************************************************* * FileName: typedefs.h ********************************************************************/ #ifndef TYPEDEFS_H #define TYPEDEFS_H typedef unsigned char byte; // 8-bit typedef unsigned int word; // 16-bit typedef union _BITS { byte bits; struct { unsigned b0:1; unsigned b1:1; unsigned b2:1; unsigned b3:1; unsigned b4:1; unsigned b5:1; unsigned b6:1; unsigned b7:1; }; } BITS; typedef union _WORD { word words; struct { byte byte0; byte byte1; }; struct { byte v[2]; }; } WORD; #endif //TYPEDEFS_H
18.05
41
(translation_unit) "/********************************************************************* \n * FileName: typedefs.h \n ********************************************************************/ \n \n#ifndef TYPEDEFS_H \n#define TYPEDEFS_H \n \ntypedef unsigned char byte; // 8-bit \ntypedef unsigned int word; // 16-bit \n \ntypedef union _BITS \n{ \n byte bits; \n struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }; \n} BITS; \n \ntypedef union _WORD \n{ \n word words; \n struct \n { \n byte byte0; \n byte byte1; \n }; \n struct \n { \n byte v[2]; \n }; \n} WORD; \n \n#endif //TYPEDEFS_H \n" (comment) "/********************************************************************* \n * FileName: typedefs.h \n ********************************************************************/" (preproc_ifdef) "#ifndef TYPEDEFS_H \n#define TYPEDEFS_H \n \ntypedef unsigned char byte; // 8-bit \ntypedef unsigned int word; // 16-bit \n \ntypedef union _BITS \n{ \n byte bits; \n struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }; \n} BITS; \n \ntypedef union _WORD \n{ \n word words; \n struct \n { \n byte byte0; \n byte byte1; \n }; \n struct \n { \n byte v[2]; \n }; \n} WORD; \n \n#endif" (#ifndef) "#ifndef" (identifier) "TYPEDEFS_H" (preproc_def) "#define TYPEDEFS_H \n" (#define) "#define" (identifier) "TYPEDEFS_H" (type_definition) "typedef unsigned char byte;" (typedef) "typedef" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (type_identifier) "byte" (;) ";" (comment) "// 8-bit " (type_definition) "typedef unsigned int word;" (typedef) "typedef" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (type_identifier) "word" (;) ";" (comment) "// 16-bit " (type_definition) "typedef union _BITS \n{ \n byte bits; \n struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }; \n} BITS;" (typedef) "typedef" (union_specifier) "union _BITS \n{ \n byte bits; \n struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }; \n}" (union) "union" (type_identifier) "_BITS" (field_declaration_list) "{ \n byte bits; \n struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }; \n}" ({) "{" (field_declaration) "byte bits;" (type_identifier) "byte" (field_identifier) "bits" (;) ";" (field_declaration) "struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n };" (struct_specifier) "struct \n { \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }" (struct) "struct" (field_declaration_list) "{ \n unsigned b0:1; \n unsigned b1:1; \n unsigned b2:1; \n unsigned b3:1; \n unsigned b4:1; \n unsigned b5:1; \n unsigned b6:1; \n unsigned b7:1; \n }" ({) "{" (field_declaration) "unsigned b0:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b0" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b1:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b1" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b2:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b2" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b3:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b3" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b4:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b4" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b5:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b5" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b6:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b6" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "unsigned b7:1;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (field_identifier) "b7" (bitfield_clause) ":1" (:) ":" (number_literal) "1" (;) ";" (}) "}" (;) ";" (}) "}" (type_identifier) "BITS" (;) ";" (type_definition) "typedef union _WORD \n{ \n word words; \n struct \n { \n byte byte0; \n byte byte1; \n }; \n struct \n { \n byte v[2]; \n }; \n} WORD;" (typedef) "typedef" (union_specifier) "union _WORD \n{ \n word words; \n struct \n { \n byte byte0; \n byte byte1; \n }; \n struct \n { \n byte v[2]; \n }; \n}" (union) "union" (type_identifier) "_WORD" (field_declaration_list) "{ \n word words; \n struct \n { \n byte byte0; \n byte byte1; \n }; \n struct \n { \n byte v[2]; \n }; \n}" ({) "{" (field_declaration) "word words;" (type_identifier) "word" (field_identifier) "words" (;) ";" (field_declaration) "struct \n { \n byte byte0; \n byte byte1; \n };" (struct_specifier) "struct \n { \n byte byte0; \n byte byte1; \n }" (struct) "struct" (field_declaration_list) "{ \n byte byte0; \n byte byte1; \n }" ({) "{" (field_declaration) "byte byte0;" (type_identifier) "byte" (field_identifier) "byte0" (;) ";" (field_declaration) "byte byte1;" (type_identifier) "byte" (field_identifier) "byte1" (;) ";" (}) "}" (;) ";" (field_declaration) "struct \n { \n byte v[2]; \n };" (struct_specifier) "struct \n { \n byte v[2]; \n }" (struct) "struct" (field_declaration_list) "{ \n byte v[2]; \n }" ({) "{" (field_declaration) "byte v[2];" (type_identifier) "byte" (array_declarator) "v[2]" (field_identifier) "v" ([) "[" (number_literal) "2" (]) "]" (;) ";" (}) "}" (;) ";" (}) "}" (type_identifier) "WORD" (;) ";" (#endif) "#endif" (comment) "//TYPEDEFS_H "
155
0
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 18.05, "nodes": 105, "errors": 0, "source_hash": "f474d965cbe92baf92502b286b4d7a0af85637e6c7cd24029196fd6a6d8f3b48", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef TYPEDEFS_H\r\n#define TYPEDEFS_H\r\n\r\ntypedef unsigned char byte; // 8-bit\r\ntypedef unsigned int word; // 16-bit\r\n\r\ntypedef union _BITS\r\n{\r\n byte bits;\r\n struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n };\r\n} BITS;\r\n\r\ntypedef union _WORD\r\n{\r\n word words;\r\n struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };\r\n struct\r\n {\r\n byte v[2];\r\n };\r\n} WORD;\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 12, 18, 78, 104], "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": "TYPEDEFS_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define TYPEDEFS_H\r\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": "TYPEDEFS_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 18}}, {"id": 6, "type": "type_definition", "text": "typedef unsigned char byte;", "parent": 0, "children": [7, 8, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 29}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 8, "type": "sized_type_specifier", "text": "unsigned char", "parent": 6, "children": [9, 10], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 9, "type": "unsigned", "text": "unsigned", "parent": 8, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 16}}, {"id": 10, "type": "primitive_type", "text": "char", "parent": 8, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 21}}, {"id": 11, "type": "type_identifier", "text": "byte", "parent": 6, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 28}}, {"id": 12, "type": "type_definition", "text": "typedef unsigned int word;", "parent": 0, "children": [13, 14, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 29}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 14, "type": "sized_type_specifier", "text": "unsigned int", "parent": 12, "children": [15, 16], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 15, "type": "unsigned", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 16}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 20}}, {"id": 17, "type": "type_identifier", "text": "word", "parent": 12, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 28}}, {"id": 18, "type": "type_definition", "text": "typedef union _BITS\r\n{\r\n byte bits;\r\n struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n };\r\n} BITS;", "parent": 0, "children": [19, 20, 77], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 20, "type": "union_specifier", "text": "union _BITS\r\n{\r\n byte bits;\r\n struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n };\r\n}", "parent": 18, "children": [21, 22], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 24, "column": 1}}, {"id": 21, "type": "union", "text": "union", "parent": 20, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 13}}, {"id": 22, "type": "type_identifier", "text": "_BITS", "parent": 20, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 19}}, {"id": 23, "type": "field_declaration", "text": "byte bits;", "parent": 20, "children": [24, 25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 14}}, {"id": 24, "type": "type_identifier", "text": "byte", "parent": 23, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 8}}, {"id": 25, "type": "field_identifier", "text": "bits", "parent": 23, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 13}}, {"id": 26, "type": "field_declaration", "text": "struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n };", "parent": 20, "children": [27], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 23, "column": 6}}, {"id": 27, "type": "struct_specifier", "text": "struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n }", "parent": 26, "children": [28], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 28, "type": "struct", "text": "struct", "parent": 27, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 29, "type": "field_declaration", "text": "unsigned b0:1;", "parent": 27, "children": [30, 32, 33], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 22}}, {"id": 30, "type": "sized_type_specifier", "text": "unsigned", "parent": 29, "children": [31], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 31, "type": "unsigned", "text": "unsigned", "parent": 30, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 32, "type": "field_identifier", "text": "b0", "parent": 29, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 19}}, {"id": 33, "type": "bitfield_clause", "text": ":1", "parent": 29, "children": [34], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 21}}, {"id": 34, "type": "number_literal", "text": "1", "parent": 33, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 35, "type": "field_declaration", "text": "unsigned b1:1;", "parent": 27, "children": [36, 38, 39], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 22}}, {"id": 36, "type": "sized_type_specifier", "text": "unsigned", "parent": 35, "children": [37], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 37, "type": "unsigned", "text": "unsigned", "parent": 36, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 16}}, {"id": 38, "type": "field_identifier", "text": "b1", "parent": 35, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 19}}, {"id": 39, "type": "bitfield_clause", "text": ":1", "parent": 35, "children": [40], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 21}}, {"id": 40, "type": "number_literal", "text": "1", "parent": 39, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 41, "type": "field_declaration", "text": "unsigned b2:1;", "parent": 27, "children": [42, 44, 45], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 22}}, {"id": 42, "type": "sized_type_specifier", "text": "unsigned", "parent": 41, "children": [43], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 43, "type": "unsigned", "text": "unsigned", "parent": 42, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 16}}, {"id": 44, "type": "field_identifier", "text": "b2", "parent": 41, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 19}}, {"id": 45, "type": "bitfield_clause", "text": ":1", "parent": 41, "children": [46], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 21}}, {"id": 46, "type": "number_literal", "text": "1", "parent": 45, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 47, "type": "field_declaration", "text": "unsigned b3:1;", "parent": 27, "children": [48, 50, 51], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 22}}, {"id": 48, "type": "sized_type_specifier", "text": "unsigned", "parent": 47, "children": [49], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 16}}, {"id": 49, "type": "unsigned", "text": "unsigned", "parent": 48, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 16}}, {"id": 50, "type": "field_identifier", "text": "b3", "parent": 47, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 19}}, {"id": 51, "type": "bitfield_clause", "text": ":1", "parent": 47, "children": [52], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 21}}, {"id": 52, "type": "number_literal", "text": "1", "parent": 51, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 53, "type": "field_declaration", "text": "unsigned b4:1;", "parent": 27, "children": [54, 56, 57], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 54, "type": "sized_type_specifier", "text": "unsigned", "parent": 53, "children": [55], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 55, "type": "unsigned", "text": "unsigned", "parent": 54, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 56, "type": "field_identifier", "text": "b4", "parent": 53, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 19}}, {"id": 57, "type": "bitfield_clause", "text": ":1", "parent": 53, "children": [58], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 21}}, {"id": 58, "type": "number_literal", "text": "1", "parent": 57, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 21}}, {"id": 59, "type": "field_declaration", "text": "unsigned b5:1;", "parent": 27, "children": [60, 62, 63], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 22}}, {"id": 60, "type": "sized_type_specifier", "text": "unsigned", "parent": 59, "children": [61], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 61, "type": "unsigned", "text": "unsigned", "parent": 60, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 62, "type": "field_identifier", "text": "b5", "parent": 59, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 19}}, {"id": 63, "type": "bitfield_clause", "text": ":1", "parent": 59, "children": [64], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 21}}, {"id": 64, "type": "number_literal", "text": "1", "parent": 63, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 21}}, {"id": 65, "type": "field_declaration", "text": "unsigned b6:1;", "parent": 27, "children": [66, 68, 69], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 22}}, {"id": 66, "type": "sized_type_specifier", "text": "unsigned", "parent": 65, "children": [67], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 67, "type": "unsigned", "text": "unsigned", "parent": 66, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 68, "type": "field_identifier", "text": "b6", "parent": 65, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 19}}, {"id": 69, "type": "bitfield_clause", "text": ":1", "parent": 65, "children": [70], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 70, "type": "number_literal", "text": "1", "parent": 69, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 21}}, {"id": 71, "type": "field_declaration", "text": "unsigned b7:1;", "parent": 27, "children": [72, 74, 75], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 22}}, {"id": 72, "type": "sized_type_specifier", "text": "unsigned", "parent": 71, "children": [73], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 73, "type": "unsigned", "text": "unsigned", "parent": 72, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 74, "type": "field_identifier", "text": "b7", "parent": 71, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 19}}, {"id": 75, "type": "bitfield_clause", "text": ":1", "parent": 71, "children": [76], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 21}}, {"id": 76, "type": "number_literal", "text": "1", "parent": 75, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 77, "type": "type_identifier", "text": "BITS", "parent": 18, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 78, "type": "type_definition", "text": "typedef union _WORD\r\n{\r\n word words;\r\n struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };\r\n struct\r\n {\r\n byte v[2];\r\n };\r\n} WORD;", "parent": 0, "children": [79, 80, 103], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 79, "type": "typedef", "text": "typedef", "parent": 78, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 80, "type": "union_specifier", "text": "union _WORD\r\n{\r\n word words;\r\n struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };\r\n struct\r\n {\r\n byte v[2];\r\n };\r\n}", "parent": 78, "children": [81, 82], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 38, "column": 1}}, {"id": 81, "type": "union", "text": "union", "parent": 80, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 13}}, {"id": 82, "type": "type_identifier", "text": "_WORD", "parent": 80, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 19}}, {"id": 83, "type": "field_declaration", "text": "word words;", "parent": 80, "children": [84, 85], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 15}}, {"id": 84, "type": "type_identifier", "text": "word", "parent": 83, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 85, "type": "field_identifier", "text": "words", "parent": 83, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 14}}, {"id": 86, "type": "field_declaration", "text": "struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };", "parent": 80, "children": [87], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 33, "column": 6}}, {"id": 87, "type": "struct_specifier", "text": "struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n }", "parent": 86, "children": [88], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 33, "column": 5}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 10}}, {"id": 89, "type": "field_declaration", "text": "byte byte0;", "parent": 87, "children": [90, 91], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 19}}, {"id": 90, "type": "type_identifier", "text": "byte", "parent": 89, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 91, "type": "field_identifier", "text": "byte0", "parent": 89, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 18}}, {"id": 92, "type": "field_declaration", "text": "byte byte1;", "parent": 87, "children": [93, 94], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 19}}, {"id": 93, "type": "type_identifier", "text": "byte", "parent": 92, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 12}}, {"id": 94, "type": "field_identifier", "text": "byte1", "parent": 92, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 18}}, {"id": 95, "type": "field_declaration", "text": "struct\r\n {\r\n byte v[2];\r\n };", "parent": 80, "children": [96], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 37, "column": 6}}, {"id": 96, "type": "struct_specifier", "text": "struct\r\n {\r\n byte v[2];\r\n }", "parent": 95, "children": [97], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 37, "column": 5}}, {"id": 97, "type": "struct", "text": "struct", "parent": 96, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 98, "type": "field_declaration", "text": "byte v[2];", "parent": 96, "children": [99, 100], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 18}}, {"id": 99, "type": "type_identifier", "text": "byte", "parent": 98, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 100, "type": "array_declarator", "text": "v[2]", "parent": 98, "children": [101, 102], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 101, "type": "field_identifier", "text": "v", "parent": 100, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 102, "type": "number_literal", "text": "2", "parent": 100, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 103, "type": "type_identifier", "text": "WORD", "parent": 78, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 104, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 12, 18, 23, 26, 29, 35, 41, 47, 53, 59, 65, 71, 78, 83, 86, 89, 92, 95, 98], "classes": [20, 21, 27, 28, 80, 81, 87, 88, 96, 97], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 11, 14, 17, 22, 24, 25, 30, 32, 36, 38, 42, 44, 48, 50, 54, 56, 60, 62, 66, 68, 72, 74, 77, 82, 84, 85, 90, 91, 93, 94, 99, 101, 103, 104], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [34, 40, 46, 52, 58, 64, 70, 76, 102], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [33, 39, 45, 51, 57, 63, 69, 75]}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 20, "universal_type": "class", "name": "_BITS", "text_snippet": "union _BITS\r\n{\r\n byte bits;\r\n struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n "}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 27, "universal_type": "class", "name": "{", "text_snippet": "struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsig"}, {"node_id": 28, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 80, "universal_type": "class", "name": "_WORD", "text_snippet": "union _WORD\r\n{\r\n word words;\r\n struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };"}, {"node_id": 81, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 87, "universal_type": "class", "name": "{", "text_snippet": "struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n }"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 96, "universal_type": "class", "name": "{", "text_snippet": "struct\r\n {\r\n byte v[2];\r\n }"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/*********************************************************************\r\n * FileName: typedefs.h\r\n ********************************************************************/\r\n\r\n#ifndef TYPEDEFS_H\r\n#define TYPEDEFS_H\r\n\r\ntypedef unsigned char byte; // 8-bit\r\ntypedef unsigned int word; // 16-bit\r\n\r\ntypedef union _BITS\r\n{\r\n byte bits;\r\n struct\r\n {\r\n unsigned b0:1;\r\n unsigned b1:1;\r\n unsigned b2:1;\r\n unsigned b3:1;\r\n unsigned b4:1;\r\n unsigned b5:1;\r\n unsigned b6:1;\r\n unsigned b7:1;\r\n };\r\n} BITS;\r\n\r\ntypedef union _WORD\r\n{\r\n word words;\r\n struct\r\n {\r\n byte byte0;\r\n byte byte1;\r\n };\r\n struct\r\n {\r\n byte v[2];\r\n };\r\n} WORD;\r\n\r\n#endif //TYPEDEFS_H\r\n"}
80,705
c
#ifndef PARTICLECONTACT_H_ #define PARTICLECONTACT_H_ #include "Particle.h" #include <vector> #include <memory> namespace FME { namespace Simulation { class ParticleContact { public: ParticleContact(); virtual void Update(float deltaTime); float CalculateSeparatingVelocity() const; float GetPenetration() const { return m_penetration; }; std::shared_ptr<Particle> GetParticle(unsigned int index) const; void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; void SetPenetration(float penetration) { m_penetration = penetration; }; void SetRestitution(float restitution) { m_restitution = restitution; }; private: void resolveVelocity(float deltaTime); void resolveInterpenetration(float deltaTime); std::vector<std::shared_ptr<Particle>> m_particles; glm::vec3 m_contactNormal; float m_restitution; float m_penetration; }; } } #endif
20.41
49
(translation_unit) "#ifndef PARTICLECONTACT_H_ \n#define PARTICLECONTACT_H_ \n \n#include "Particle.h" \n#include <vector> \n#include <memory> \n \n \nnamespace FME \n{ \n namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }; \n } \n} \n \n#endif \n \n \n" (preproc_ifdef) "#ifndef PARTICLECONTACT_H_ \n#define PARTICLECONTACT_H_ \n \n#include "Particle.h" \n#include <vector> \n#include <memory> \n \n \nnamespace FME \n{ \n namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }; \n } \n} \n \n#endif" (#ifndef) "#ifndef" (identifier) "PARTICLECONTACT_H_" (preproc_def) "#define PARTICLECONTACT_H_ \n" (#define) "#define" (identifier) "PARTICLECONTACT_H_" (preproc_include) "#include "Particle.h" \n" (#include) "#include" (string_literal) ""Particle.h"" (") """ (string_content) "Particle.h" (") """ (preproc_include) "#include <vector> \n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <memory> \n" (#include) "#include" (system_lib_string) "<memory>" (function_definition) "namespace FME \n{ \n namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }; \n }" (type_identifier) "namespace" (identifier) "FME" (compound_statement) "{ \n namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }; \n }" ({) "{" (function_definition) "namespace Simulation \n { \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }" (type_identifier) "namespace" (identifier) "Simulation" (compound_statement) "{ \n class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }; \n \n std::shared_ptr<Particle> GetParticle(unsigned int index) const; \n \n void SetParticle(std::shared_ptr<Particle> particle, unsigned int index); \n \n void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }; \n \n void SetPenetration(float penetration) { m_penetration = penetration; }; \n \n void SetRestitution(float restitution) { m_restitution = restitution; }; \n \n \n private: \n \n void resolveVelocity(float deltaTime); \n void resolveInterpenetration(float deltaTime); \n \n std::vector<std::shared_ptr<Particle>> m_particles; \n glm::vec3 m_contactNormal; \n float m_restitution; \n float m_penetration; \n }" ({) "{" (function_definition) "class ParticleContact \n { \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }" (type_identifier) "class" (identifier) "ParticleContact" (compound_statement) "{ \n public: \n \n ParticleContact(); \n \n virtual void Update(float deltaTime); \n \n float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration; }" ({) "{" (labeled_statement) "public: \n \n ParticleContact();" (statement_identifier) "public" (:) ":" (expression_statement) "ParticleContact();" (call_expression) "ParticleContact()" (identifier) "ParticleContact" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void Update(float deltaTime);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Update(float deltaTime)" (identifier) "Update" (parameter_list) "(float deltaTime)" (() "(" (parameter_declaration) "float deltaTime" (primitive_type) "float" (identifier) "deltaTime" ()) ")" (;) ";" (ERROR) "float CalculateSeparatingVelocity() const; \n \n float GetPenetration() const { return m_penetration;" (primitive_type) "float" (function_declarator) "CalculateSeparatingVelocity()" (identifier) "CalculateSeparatingVelocity" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; \n \n float GetPenetration() const { return m_penetration;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "float" (ERROR) "GetPenetration() const { return" (function_declarator) "GetPenetration() const" (identifier) "GetPenetration" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "m_penetration" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "std::shared_ptr<Particle> GetParticle(unsigned int index) const;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "shared_ptr<Particle> GetParticle(unsigned int index) const;" (binary_expression) "shared_ptr<Particle> GetParticle(unsigned int index)" (binary_expression) "shared_ptr<Particle" (identifier) "shared_ptr" (<) "<" (identifier) "Particle" (>) ">" (call_expression) "GetParticle(unsigned int index)" (identifier) "GetParticle" (argument_list) "(unsigned int index)" (() "(" (identifier) "unsigned" (ERROR) "int index" (identifier) "int" (identifier) "index" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (declaration) "void SetParticle(std::shared_ptr<Particle> particle, unsigned int index);" (primitive_type) "void" (function_declarator) "SetParticle(std::shared_ptr<Particle> particle, unsigned int index)" (identifier) "SetParticle" (parameter_list) "(std::shared_ptr<Particle> particle, unsigned int index)" (() "(" (parameter_declaration) "std::shared_ptr<Particle> particle" (type_identifier) "std" (ERROR) "::shared_ptr<Particle>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Particle" (>) ">" (identifier) "particle" (,) "," (parameter_declaration) "unsigned int index" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "index" ()) ")" (;) ";" (function_definition) "void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }" (primitive_type) "void" (function_declarator) "SetContactNormal(glm::vec3 normal)" (identifier) "SetContactNormal" (parameter_list) "(glm::vec3 normal)" (() "(" (parameter_declaration) "glm::vec3 normal" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (identifier) "normal" ()) ")" (compound_statement) "{ m_contactNormal = normal; }" ({) "{" (expression_statement) "m_contactNormal = normal;" (assignment_expression) "m_contactNormal = normal" (identifier) "m_contactNormal" (=) "=" (identifier) "normal" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void SetPenetration(float penetration) { m_penetration = penetration; }" (primitive_type) "void" (function_declarator) "SetPenetration(float penetration)" (identifier) "SetPenetration" (parameter_list) "(float penetration)" (() "(" (parameter_declaration) "float penetration" (primitive_type) "float" (identifier) "penetration" ()) ")" (compound_statement) "{ m_penetration = penetration; }" ({) "{" (expression_statement) "m_penetration = penetration;" (assignment_expression) "m_penetration = penetration" (identifier) "m_penetration" (=) "=" (identifier) "penetration" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void SetRestitution(float restitution) { m_restitution = restitution; }" (primitive_type) "void" (function_declarator) "SetRestitution(float restitution)" (identifier) "SetRestitution" (parameter_list) "(float restitution)" (() "(" (parameter_declaration) "float restitution" (primitive_type) "float" (identifier) "restitution" ()) ")" (compound_statement) "{ m_restitution = restitution; }" ({) "{" (expression_statement) "m_restitution = restitution;" (assignment_expression) "m_restitution = restitution" (identifier) "m_restitution" (=) "=" (identifier) "restitution" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "private: \n \n void resolveVelocity(float deltaTime);" (statement_identifier) "private" (:) ":" (declaration) "void resolveVelocity(float deltaTime);" (primitive_type) "void" (function_declarator) "resolveVelocity(float deltaTime)" (identifier) "resolveVelocity" (parameter_list) "(float deltaTime)" (() "(" (parameter_declaration) "float deltaTime" (primitive_type) "float" (identifier) "deltaTime" ()) ")" (;) ";" (declaration) "void resolveInterpenetration(float deltaTime);" (primitive_type) "void" (function_declarator) "resolveInterpenetration(float deltaTime)" (identifier) "resolveInterpenetration" (parameter_list) "(float deltaTime)" (() "(" (parameter_declaration) "float deltaTime" (primitive_type) "float" (identifier) "deltaTime" ()) ")" (;) ";" (labeled_statement) "std::vector<std::shared_ptr<Particle>> m_particles;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "shared_ptr<Particle>> m_particles;" (binary_expression) "shared_ptr<Particle>> m_particles" (identifier) "shared_ptr" (<) "<" (binary_expression) "Particle>> m_particles" (identifier) "Particle" (>>) ">>" (identifier) "m_particles" (;) ";" (labeled_statement) "glm::vec3 m_contactNormal;" (statement_identifier) "glm" (:) ":" (ERROR) ":" (:) ":" (declaration) "vec3 m_contactNormal;" (type_identifier) "vec3" (identifier) "m_contactNormal" (;) ";" (declaration) "float m_restitution;" (primitive_type) "float" (identifier) "m_restitution" (;) ";" (declaration) "float m_penetration;" (primitive_type) "float" (identifier) "m_penetration" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (ERROR) "}" (}) "}" (#endif) "#endif"
268
12
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 20.41, "nodes": 163, "errors": 0, "source_hash": "0bc7a42e77eb560748cece1d6eb9b35d151c9b4714a67841d23784c6bdb1b2e9", "categorized_nodes": 111}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PARTICLECONTACT_H_\r\n#define PARTICLECONTACT_H_\r\n\r\n#include \"Particle.h\"\r\n#include <vector>\r\n#include <memory>\r\n\r\n\r\nnamespace FME\r\n{\r\n\tnamespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float deltaTime);\r\n\r\n\t\t\tfloat CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration; };\r\n\r\n\t\t\tstd::shared_ptr<Particle> GetParticle(unsigned int index) const;\r\n\r\n\t\t\tvoid SetParticle(std::shared_ptr<Particle> particle, unsigned int index);\r\n\r\n\t\t\tvoid SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; };\r\n\r\n\t\t\tvoid SetPenetration(float penetration) { m_penetration = penetration; };\r\n\r\n\t\t\tvoid SetRestitution(float restitution) { m_restitution = restitution; };\r\n\r\n\r\n\t\tprivate:\r\n\r\n\t\t\tvoid resolveVelocity(float deltaTime);\r\n\t\t\tvoid resolveInterpenetration(float deltaTime);\r\n\r\n\t\t\tstd::vector<std::shared_ptr<Particle>> m_particles;\r\n\t\t\tglm::vec3 m_contactNormal;\r\n\t\t\tfloat m_restitution;\r\n\t\t\tfloat m_penetration;\r\n\t\t};\r\n\t}\r\n}\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 162], "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": "PARTICLECONTACT_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define PARTICLECONTACT_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": "PARTICLECONTACT_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include \"Particle.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": "\"Particle.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\r\n", "parent": 0, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "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 <memory>\r\n", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<memory>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "function_definition", "text": "namespace FME\r\n{\r\n\tnamespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float deltaTime);\r\n\r\n\t\t\tfloat CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration; };\r\n\r\n\t\t\tstd::shared_ptr<Particle> GetParticle(unsigned int index) const;\r\n\r\n\t\t\tvoid SetParticle(std::shared_ptr<Particle> particle, unsigned int index);\r\n\r\n\t\t\tvoid SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; };\r\n\r\n\t\t\tvoid SetPenetration(float penetration) { m_penetration = penetration; };\r\n\r\n\t\t\tvoid SetRestitution(float restitution) { m_restitution = restitution; };\r\n\r\n\r\n\t\tprivate:\r\n\r\n\t\t\tvoid resolveVelocity(float deltaTime);\r\n\t\t\tvoid resolveInterpenetration(float deltaTime);\r\n\r\n\t\t\tstd::vector<std::shared_ptr<Particle>> m_particles;\r\n\t\t\tglm::vec3 m_contactNormal;\r\n\t\t\tfloat m_restitution;\r\n\t\t\tfloat m_penetration;\r\n\t\t};\r\n\t}", "parent": 0, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 45, "column": 2}}, {"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": "FME", "parent": 15, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 13}}, {"id": 18, "type": "function_definition", "text": "namespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float deltaTime);\r\n\r\n\t\t\tfloat CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration; };\r\n\r\n\t\t\tstd::shared_ptr<Particle> GetParticle(unsigned int index) const;\r\n\r\n\t\t\tvoid SetParticle(std::shared_ptr<Particle> particle, unsigned int index);\r\n\r\n\t\t\tvoid SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; };\r\n\r\n\t\t\tvoid SetPenetration(float penetration) { m_penetration = penetration; };\r\n\r\n\t\t\tvoid SetRestitution(float restitution) { m_restitution = restitution; };\r\n\r\n\r\n\t\tprivate:\r\n\r\n\t\t\tvoid resolveVelocity(float deltaTime);\r\n\t\t\tvoid resolveInterpenetration(float deltaTime);\r\n\r\n\t\t\tstd::vector<std::shared_ptr<Particle>> m_particles;\r\n\t\t\tglm::vec3 m_contactNormal;\r\n\t\t\tfloat m_restitution;\r\n\t\t\tfloat m_penetration;\r\n\t\t}", "parent": 15, "children": [19, 20], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 44, "column": 3}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 20, "type": "identifier", "text": "Simulation", "parent": 18, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 21}}, {"id": 21, "type": "function_definition", "text": "class ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float deltaTime);\r\n\r\n\t\t\tfloat CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration; }", "parent": 18, "children": [22], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 22, "column": 57}}, {"id": 22, "type": "identifier", "text": "ParticleContact", "parent": 21, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 23}}, {"id": 23, "type": "labeled_statement", "text": "public:\r\n\r\n\t\t\tParticleContact();", "parent": 21, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 16, "column": 21}}, {"id": 24, "type": "call_expression", "text": "ParticleContact()", "parent": 23, "children": [25, 26], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 20}}, {"id": 25, "type": "identifier", "text": "ParticleContact", "parent": 24, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 18}}, {"id": 26, "type": "argument_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 20}}, {"id": 27, "type": "declaration", "text": "virtual void Update(float deltaTime);", "parent": 21, "children": [28, 29, 31], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 40}}, {"id": 28, "type": "type_identifier", "text": "virtual", "parent": 27, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 10}}, {"id": 29, "type": "ERROR", "text": "void", "parent": 27, "children": [30], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 15}}, {"id": 30, "type": "identifier", "text": "void", "parent": 29, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 15}}, {"id": 31, "type": "function_declarator", "text": "Update(float deltaTime)", "parent": 27, "children": [32, 33], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 39}}, {"id": 32, "type": "identifier", "text": "Update", "parent": 31, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 22}}, {"id": 33, "type": "parameter_list", "text": "(float deltaTime)", "parent": 31, "children": [34], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 39}}, {"id": 34, "type": "parameter_declaration", "text": "float deltaTime", "parent": 33, "children": [35, 36], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 38}}, {"id": 35, "type": "primitive_type", "text": "float", "parent": 34, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 28}}, {"id": 36, "type": "identifier", "text": "deltaTime", "parent": 34, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 38}}, {"id": 37, "type": "ERROR", "text": "float CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration;", "parent": 21, "children": [38, 39, 42], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 22, "column": 55}}, {"id": 38, "type": "primitive_type", "text": "float", "parent": 37, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 8}}, {"id": 39, "type": "function_declarator", "text": "CalculateSeparatingVelocity()", "parent": 37, "children": [40, 41], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 38}}, {"id": 40, "type": "identifier", "text": "CalculateSeparatingVelocity", "parent": 39, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 36}}, {"id": 41, "type": "parameter_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 38}}, {"id": 42, "type": "declaration", "text": "const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration;", "parent": 37, "children": [43, 44, 48], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 22, "column": 55}}, {"id": 43, "type": "primitive_type", "text": "float", "parent": 42, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 8}}, {"id": 44, "type": "ERROR", "text": "GetPenetration() const { return", "parent": 42, "children": [45], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 40}}, {"id": 45, "type": "function_declarator", "text": "GetPenetration() const", "parent": 44, "children": [46, 47], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 31}}, {"id": 46, "type": "identifier", "text": "GetPenetration", "parent": 45, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 23}}, {"id": 47, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 25}}, {"id": 48, "type": "identifier", "text": "m_penetration", "parent": 42, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 54}}, {"id": 49, "type": "labeled_statement", "text": "std::shared_ptr<Particle> GetParticle(unsigned int index) const;", "parent": 18, "children": [50], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 67}}, {"id": 50, "type": "statement_identifier", "text": "std", "parent": 49, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 6}}, {"id": 51, "type": "binary_expression", "text": "shared_ptr<Particle> GetParticle(unsigned int index)", "parent": 49, "children": [52, 56, 57], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 60}}, {"id": 52, "type": "binary_expression", "text": "shared_ptr<Particle", "parent": 51, "children": [53, 54, 55], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 27}}, {"id": 53, "type": "identifier", "text": "shared_ptr", "parent": 52, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 18}}, {"id": 54, "type": "<", "text": "<", "parent": 52, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 55, "type": "identifier", "text": "Particle", "parent": 52, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 27}}, {"id": 56, "type": ">", "text": ">", "parent": 51, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 57, "type": "call_expression", "text": "GetParticle(unsigned int index)", "parent": 51, "children": [58, 59], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 60}}, {"id": 58, "type": "identifier", "text": "GetParticle", "parent": 57, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 40}}, {"id": 59, "type": "argument_list", "text": "(unsigned int index)", "parent": 57, "children": [60, 61], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 60}}, {"id": 60, "type": "identifier", "text": "unsigned", "parent": 59, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 49}}, {"id": 61, "type": "ERROR", "text": "int index", "parent": 59, "children": [62, 63], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 59}}, {"id": 62, "type": "identifier", "text": "int", "parent": 61, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 53}}, {"id": 63, "type": "identifier", "text": "index", "parent": 61, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 59}}, {"id": 64, "type": "declaration", "text": "void SetParticle(std::shared_ptr<Particle> particle, unsigned int index);", "parent": 18, "children": [65, 66], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 76}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 66, "type": "function_declarator", "text": "SetParticle(std::shared_ptr<Particle> particle, unsigned int index)", "parent": 64, "children": [67, 68], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 75}}, {"id": 67, "type": "identifier", "text": "SetParticle", "parent": 66, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 68, "type": "parameter_list", "text": "(std::shared_ptr<Particle> particle, unsigned int index)", "parent": 66, "children": [69, 77], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 75}}, {"id": 69, "type": "parameter_declaration", "text": "std::shared_ptr<Particle> particle", "parent": 68, "children": [70, 71, 76], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 54}}, {"id": 70, "type": "type_identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 23}}, {"id": 71, "type": "ERROR", "text": "::shared_ptr<Particle>", "parent": 69, "children": [72, 73, 74, 75], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 45}}, {"id": 72, "type": "identifier", "text": "shared_ptr", "parent": 71, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 35}}, {"id": 73, "type": "<", "text": "<", "parent": 71, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 36}}, {"id": 74, "type": "identifier", "text": "Particle", "parent": 71, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 44}}, {"id": 75, "type": ">", "text": ">", "parent": 71, "children": [], "start_point": {"row": 26, "column": 44}, "end_point": {"row": 26, "column": 45}}, {"id": 76, "type": "identifier", "text": "particle", "parent": 69, "children": [], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 54}}, {"id": 77, "type": "parameter_declaration", "text": "unsigned int index", "parent": 68, "children": [78, 81], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 74}}, {"id": 78, "type": "sized_type_specifier", "text": "unsigned int", "parent": 77, "children": [79, 80], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 68}}, {"id": 79, "type": "unsigned", "text": "unsigned", "parent": 78, "children": [], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 64}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 78, "children": [], "start_point": {"row": 26, "column": 65}, "end_point": {"row": 26, "column": 68}}, {"id": 81, "type": "identifier", "text": "index", "parent": 77, "children": [], "start_point": {"row": 26, "column": 69}, "end_point": {"row": 26, "column": 74}}, {"id": 82, "type": "function_definition", "text": "void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }", "parent": 18, "children": [83, 84], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 72}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 84, "type": "function_declarator", "text": "SetContactNormal(glm::vec3 normal)", "parent": 82, "children": [85, 86], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 42}}, {"id": 85, "type": "identifier", "text": "SetContactNormal", "parent": 84, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 24}}, {"id": 86, "type": "parameter_list", "text": "(glm::vec3 normal)", "parent": 84, "children": [87], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 42}}, {"id": 87, "type": "parameter_declaration", "text": "glm::vec3 normal", "parent": 86, "children": [88, 89, 91], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 41}}, {"id": 88, "type": "type_identifier", "text": "glm", "parent": 87, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 28}}, {"id": 89, "type": "ERROR", "text": "::vec3", "parent": 87, "children": [90], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 34}}, {"id": 90, "type": "identifier", "text": "vec3", "parent": 89, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 34}}, {"id": 91, "type": "identifier", "text": "normal", "parent": 87, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 41}}, {"id": 92, "type": "assignment_expression", "text": "m_contactNormal = normal", "parent": 82, "children": [93, 94, 95], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 69}}, {"id": 93, "type": "identifier", "text": "m_contactNormal", "parent": 92, "children": [], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 60}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 28, "column": 61}, "end_point": {"row": 28, "column": 62}}, {"id": 95, "type": "identifier", "text": "normal", "parent": 92, "children": [], "start_point": {"row": 28, "column": 63}, "end_point": {"row": 28, "column": 69}}, {"id": 96, "type": "function_definition", "text": "void SetPenetration(float penetration) { m_penetration = penetration; }", "parent": 18, "children": [97, 98], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 74}}, {"id": 97, "type": "primitive_type", "text": "void", "parent": 96, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 98, "type": "function_declarator", "text": "SetPenetration(float penetration)", "parent": 96, "children": [99, 100], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 41}}, {"id": 99, "type": "identifier", "text": "SetPenetration", "parent": 98, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 22}}, {"id": 100, "type": "parameter_list", "text": "(float penetration)", "parent": 98, "children": [101], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 41}}, {"id": 101, "type": "parameter_declaration", "text": "float penetration", "parent": 100, "children": [102, 103], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 40}}, {"id": 102, "type": "primitive_type", "text": "float", "parent": 101, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 28}}, {"id": 103, "type": "identifier", "text": "penetration", "parent": 101, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 40}}, {"id": 104, "type": "assignment_expression", "text": "m_penetration = penetration", "parent": 96, "children": [105, 106, 107], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 71}}, {"id": 105, "type": "identifier", "text": "m_penetration", "parent": 104, "children": [], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 57}}, {"id": 106, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 30, "column": 58}, "end_point": {"row": 30, "column": 59}}, {"id": 107, "type": "identifier", "text": "penetration", "parent": 104, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 71}}, {"id": 108, "type": "function_definition", "text": "void SetRestitution(float restitution) { m_restitution = restitution; }", "parent": 18, "children": [109, 110], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 74}}, {"id": 109, "type": "primitive_type", "text": "void", "parent": 108, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 110, "type": "function_declarator", "text": "SetRestitution(float restitution)", "parent": 108, "children": [111, 112], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 41}}, {"id": 111, "type": "identifier", "text": "SetRestitution", "parent": 110, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 22}}, {"id": 112, "type": "parameter_list", "text": "(float restitution)", "parent": 110, "children": [113], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 41}}, {"id": 113, "type": "parameter_declaration", "text": "float restitution", "parent": 112, "children": [114, 115], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 40}}, {"id": 114, "type": "primitive_type", "text": "float", "parent": 113, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 28}}, {"id": 115, "type": "identifier", "text": "restitution", "parent": 113, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 40}}, {"id": 116, "type": "assignment_expression", "text": "m_restitution = restitution", "parent": 108, "children": [117, 118, 119], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 71}}, {"id": 117, "type": "identifier", "text": "m_restitution", "parent": 116, "children": [], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 57}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 59}}, {"id": 119, "type": "identifier", "text": "restitution", "parent": 116, "children": [], "start_point": {"row": 32, "column": 60}, "end_point": {"row": 32, "column": 71}}, {"id": 120, "type": "labeled_statement", "text": "private:\r\n\r\n\t\t\tvoid resolveVelocity(float deltaTime);", "parent": 18, "children": [121], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 37, "column": 41}}, {"id": 121, "type": "declaration", "text": "void resolveVelocity(float deltaTime);", "parent": 120, "children": [122, 123], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 41}}, {"id": 122, "type": "primitive_type", "text": "void", "parent": 121, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 123, "type": "function_declarator", "text": "resolveVelocity(float deltaTime)", "parent": 121, "children": [124, 125], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 40}}, {"id": 124, "type": "identifier", "text": "resolveVelocity", "parent": 123, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 23}}, {"id": 125, "type": "parameter_list", "text": "(float deltaTime)", "parent": 123, "children": [126], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 40}}, {"id": 126, "type": "parameter_declaration", "text": "float deltaTime", "parent": 125, "children": [127, 128], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 39}}, {"id": 127, "type": "primitive_type", "text": "float", "parent": 126, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 29}}, {"id": 128, "type": "identifier", "text": "deltaTime", "parent": 126, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 39}}, {"id": 129, "type": "declaration", "text": "void resolveInterpenetration(float deltaTime);", "parent": 18, "children": [130, 131], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 49}}, {"id": 130, "type": "primitive_type", "text": "void", "parent": 129, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 131, "type": "function_declarator", "text": "resolveInterpenetration(float deltaTime)", "parent": 129, "children": [132, 133], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 48}}, {"id": 132, "type": "identifier", "text": "resolveInterpenetration", "parent": 131, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 31}}, {"id": 133, "type": "parameter_list", "text": "(float deltaTime)", "parent": 131, "children": [134], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 48}}, {"id": 134, "type": "parameter_declaration", "text": "float deltaTime", "parent": 133, "children": [135, 136], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 47}}, {"id": 135, "type": "primitive_type", "text": "float", "parent": 134, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 37}}, {"id": 136, "type": "identifier", "text": "deltaTime", "parent": 134, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 47}}, {"id": 137, "type": "labeled_statement", "text": "std::vector<std::shared_ptr<Particle>> m_particles;", "parent": 18, "children": [138, 139], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 54}}, {"id": 138, "type": "statement_identifier", "text": "std", "parent": 137, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 6}}, {"id": 139, "type": "ERROR", "text": "::vector<std:", "parent": 137, "children": [140], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 19}}, {"id": 140, "type": "binary_expression", "text": "vector<std", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 18}}, {"id": 141, "type": "identifier", "text": "vector", "parent": 140, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 14}}, {"id": 142, "type": "<", "text": "<", "parent": 140, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 143, "type": "identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 18}}, {"id": 144, "type": "binary_expression", "text": "shared_ptr<Particle>> m_particles", "parent": 137, "children": [145, 146, 147], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 53}}, {"id": 145, "type": "identifier", "text": "shared_ptr", "parent": 144, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 30}}, {"id": 146, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 147, "type": "binary_expression", "text": "Particle>> m_particles", "parent": 144, "children": [148, 149, 150], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 53}}, {"id": 148, "type": "identifier", "text": "Particle", "parent": 147, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 39}}, {"id": 149, "type": ">>", "text": ">>", "parent": 147, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 41}}, {"id": 150, "type": "identifier", "text": "m_particles", "parent": 147, "children": [], "start_point": {"row": 40, "column": 42}, "end_point": {"row": 40, "column": 53}}, {"id": 151, "type": "labeled_statement", "text": "glm::vec3 m_contactNormal;", "parent": 18, "children": [152, 153], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 29}}, {"id": 152, "type": "statement_identifier", "text": "glm", "parent": 151, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 6}}, {"id": 153, "type": "declaration", "text": "vec3 m_contactNormal;", "parent": 151, "children": [154, 155], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 29}}, {"id": 154, "type": "type_identifier", "text": "vec3", "parent": 153, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 155, "type": "identifier", "text": "m_contactNormal", "parent": 153, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 28}}, {"id": 156, "type": "declaration", "text": "float m_restitution;", "parent": 18, "children": [157, 158], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 23}}, {"id": 157, "type": "primitive_type", "text": "float", "parent": 156, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 8}}, {"id": 158, "type": "identifier", "text": "m_restitution", "parent": 156, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 22}}, {"id": 159, "type": "declaration", "text": "float m_penetration;", "parent": 18, "children": [160, 161], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 23}}, {"id": 160, "type": "primitive_type", "text": "float", "parent": 159, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 8}}, {"id": 161, "type": "identifier", "text": "m_penetration", "parent": 159, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 22}}, {"id": 162, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 21, 31, 39, 45, 66, 82, 84, 96, 98, 108, 110, 123, 131], "variables": [27, 34, 42, 64, 69, 77, 87, 101, 113, 121, 126, 129, 134, 153, 156, 159], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [24, 51, 52, 57, 140, 144, 147], "assignments": [92, 104, 116], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 20, 22, 25, 28, 30, 32, 36, 40, 46, 48, 50, 53, 55, 58, 60, 62, 63, 67, 70, 72, 74, 76, 78, 81, 85, 88, 90, 91, 93, 95, 99, 103, 105, 107, 111, 115, 117, 119, 124, 128, 132, 136, 138, 141, 143, 145, 148, 150, 152, 154, 155, 158, 161, 162], "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": "ParticleContact", "text_snippet": "namespace FME\r\n{\r\n\tnamespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticle"}, {"node_id": 18, "universal_type": "function", "name": "ParticleContact", "text_snippet": "namespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvi"}, {"node_id": 21, "universal_type": "function", "name": "ParticleContact", "text_snippet": "class ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float delt"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "Update(float deltaTime)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "CalculateSeparatingVelocity()"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "GetPenetration() const"}, {"node_id": 66, "universal_type": "function", "name": "index)", "text_snippet": "SetParticle(std::shared_ptr<Particle> particle, unsigned int index)"}, {"node_id": 82, "universal_type": "function", "name": "SetContactNormal", "text_snippet": "void SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; }"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "SetContactNormal(glm::vec3 normal)"}, {"node_id": 96, "universal_type": "function", "name": "SetPenetration", "text_snippet": "void SetPenetration(float penetration) { m_penetration = penetration; }"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "SetPenetration(float penetration)"}, {"node_id": 108, "universal_type": "function", "name": "SetRestitution", "text_snippet": "void SetRestitution(float restitution) { m_restitution = restitution; }"}, {"node_id": 110, "universal_type": "function", "name": "unknown", "text_snippet": "SetRestitution(float restitution)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "resolveVelocity(float deltaTime)"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "resolveInterpenetration(float deltaTime)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Particle.h\"\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\r\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <memory>\r\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef PARTICLECONTACT_H_\r\n#define PARTICLECONTACT_H_\r\n\r\n#include \"Particle.h\"\r\n#include <vector>\r\n#include <memory>\r\n\r\n\r\nnamespace FME\r\n{\r\n\tnamespace Simulation\r\n\t{\r\n\t\tclass ParticleContact \r\n\t\t{\r\n\t\tpublic:\r\n\r\n\t\t\tParticleContact();\r\n\r\n\t\t\tvirtual void Update(float deltaTime);\r\n\r\n\t\t\tfloat CalculateSeparatingVelocity() const;\r\n\r\n\t\t\tfloat GetPenetration() const { return m_penetration; };\r\n\r\n\t\t\tstd::shared_ptr<Particle> GetParticle(unsigned int index) const;\r\n\r\n\t\t\tvoid SetParticle(std::shared_ptr<Particle> particle, unsigned int index);\r\n\r\n\t\t\tvoid SetContactNormal(glm::vec3 normal) { m_contactNormal = normal; };\r\n\r\n\t\t\tvoid SetPenetration(float penetration) { m_penetration = penetration; };\r\n\r\n\t\t\tvoid SetRestitution(float restitution) { m_restitution = restitution; };\r\n\r\n\r\n\t\tprivate:\r\n\r\n\t\t\tvoid resolveVelocity(float deltaTime);\r\n\t\t\tvoid resolveInterpenetration(float deltaTime);\r\n\r\n\t\t\tstd::vector<std::shared_ptr<Particle>> m_particles;\r\n\t\t\tglm::vec3 m_contactNormal;\r\n\t\t\tfloat m_restitution;\r\n\t\t\tfloat m_penetration;\r\n\t\t};\r\n\t}\r\n}\r\n\r\n#endif\r\n\r\n\r\n"}
80,706
c
#ifndef __J1MAINMENU_H__ #define __J1MAINMENU_H__ #include "j1Module.h" #include "p2DynArray.h" class Button; class Label; class Image; class CheckBox; class Slider; class j1MainMenu : public j1Module { public: j1MainMenu(); // Destructor virtual ~j1MainMenu(); // Called before render is available bool Awake(pugi::xml_node& conf); // Called before the first frame bool Start(); // Called before all Updates bool PreUpdate(); // Called each loop iteration bool Update(float dt); // Called before all Updates bool PostUpdate(); // Called before quitting bool CleanUp(); void UI_Events(UIElement* element); bool Load(pugi::xml_node&); bool Save(pugi::xml_node&) const; public: uint win_width = 0; uint win_height = 0; bool can_load = false; private: p2SString lvl0; Label* title1 = nullptr; Label* title2 = nullptr; Label* press_space = nullptr; Button* new_game_btn = nullptr; Button* continue_btn = nullptr; Button* settings_btn = nullptr; Button* quit_game_btn = nullptr; Button* credits_btn = nullptr; Button* github_btn = nullptr; Button* website_btn = nullptr; Button* back_from_settings_btn = nullptr; Button* back_from_credits_btn = nullptr; Image* panel_settings = nullptr; Image* panel_credits = nullptr; Label* new_game_lbl = nullptr; Label* continue_lbl = nullptr; Label* credits_lbl = nullptr; Label* settings_lbl = nullptr; Label* sound_lbl = nullptr; Label* graphics_lbl = nullptr; Label* volume_lbl = nullptr; Label* fx_lbl = nullptr; Label* fps_lbl = nullptr; Label* full_screen_lbl = nullptr; Image* clip_credits = nullptr; Label* license_lbl = nullptr; Label* tasks_lbl = nullptr; CheckBox* option_fps = nullptr; CheckBox* option_full_screen = nullptr; Slider* volume_sld = nullptr; Slider* fx_sld = nullptr; p2DynArray<Button*> buttons; p2DynArray<Label*> labels; p2DynArray<Button*> settings; p2DynArray<Label*> settings_labels; bool move_camera_forward = false; bool move_camera_backward = false; bool move_camera_down = false; bool move_camera_up = false; int camera_limit = 0; int camera_origin = 0; int camera_step_move = 0; int button_limit = 0; int button_origin = 0; }; #endif // __j1MAINMENU_H__
24.52
86
(translation_unit) "#ifndef __J1MAINMENU_H__\n#define __J1MAINMENU_H__\n\n#include "j1Module.h"\n#include "p2DynArray.h"\n\nclass Button;\nclass Label;\nclass Image;\nclass CheckBox;\nclass Slider;\n\nclass j1MainMenu : public j1Module\n{\npublic:\n\n j1MainMenu();\n\n // Destructor\n virtual ~j1MainMenu();\n\n // Called before render is available\n bool Awake(pugi::xml_node& conf);\n\n // Called before the first frame\n bool Start();\n\n // Called before all Updates\n bool PreUpdate();\n\n // Called each loop iteration\n bool Update(float dt);\n\n // Called before all Updates\n bool PostUpdate();\n\n // Called before quitting\n bool CleanUp();\n\n void UI_Events(UIElement* element);\n\n bool Load(pugi::xml_node&);\n\n bool Save(pugi::xml_node&) const;\n\n\npublic:\n uint win_width = 0;\n uint win_height = 0;\n bool can_load = false;\n\nprivate:\n p2SString lvl0;\n\n Label* title1 = nullptr;\n Label* title2 = nullptr;\n Label* press_space = nullptr;\n\n Button* new_game_btn = nullptr;\n Button* continue_btn = nullptr;\n Button* settings_btn = nullptr;\n Button* quit_game_btn = nullptr;\n Button* credits_btn = nullptr;\n Button* github_btn = nullptr;\n Button* website_btn = nullptr;\n Button* back_from_settings_btn = nullptr;\n Button* back_from_credits_btn = nullptr;\n Image* panel_settings = nullptr;\n Image* panel_credits = nullptr;\n\n Label* new_game_lbl = nullptr;\n Label* continue_lbl = nullptr;\n Label* credits_lbl = nullptr;\n Label* settings_lbl = nullptr;\n\n Label* sound_lbl = nullptr;\n Label* graphics_lbl = nullptr;\n Label* volume_lbl = nullptr;\n Label* fx_lbl = nullptr;\n Label* fps_lbl = nullptr;\n Label* full_screen_lbl = nullptr;\n \n Image* clip_credits = nullptr;\n Label* license_lbl = nullptr;\n Label* tasks_lbl = nullptr;\n\n CheckBox* option_fps = nullptr;\n CheckBox* option_full_screen = nullptr;\n\n Slider* volume_sld = nullptr;\n Slider* fx_sld = nullptr;\n\n p2DynArray<Button*> buttons;\n p2DynArray<Label*> labels;\n p2DynArray<Button*> settings;\n p2DynArray<Label*> settings_labels;\n\n\n bool move_camera_forward = false;\n bool move_camera_backward = false;\n bool move_camera_down = false;\n bool move_camera_up = false;\n\n\n int camera_limit = 0;\n int camera_origin = 0;\n int camera_step_move = 0;\n\n int button_limit = 0;\n int button_origin = 0;\n\n};\n#endif // __j1MAINMENU_H__\n" (preproc_ifdef) "#ifndef __J1MAINMENU_H__\n#define __J1MAINMENU_H__\n\n#include "j1Module.h"\n#include "p2DynArray.h"\n\nclass Button;\nclass Label;\nclass Image;\nclass CheckBox;\nclass Slider;\n\nclass j1MainMenu : public j1Module\n{\npublic:\n\n j1MainMenu();\n\n // Destructor\n virtual ~j1MainMenu();\n\n // Called before render is available\n bool Awake(pugi::xml_node& conf);\n\n // Called before the first frame\n bool Start();\n\n // Called before all Updates\n bool PreUpdate();\n\n // Called each loop iteration\n bool Update(float dt);\n\n // Called before all Updates\n bool PostUpdate();\n\n // Called before quitting\n bool CleanUp();\n\n void UI_Events(UIElement* element);\n\n bool Load(pugi::xml_node&);\n\n bool Save(pugi::xml_node&) const;\n\n\npublic:\n uint win_width = 0;\n uint win_height = 0;\n bool can_load = false;\n\nprivate:\n p2SString lvl0;\n\n Label* title1 = nullptr;\n Label* title2 = nullptr;\n Label* press_space = nullptr;\n\n Button* new_game_btn = nullptr;\n Button* continue_btn = nullptr;\n Button* settings_btn = nullptr;\n Button* quit_game_btn = nullptr;\n Button* credits_btn = nullptr;\n Button* github_btn = nullptr;\n Button* website_btn = nullptr;\n Button* back_from_settings_btn = nullptr;\n Button* back_from_credits_btn = nullptr;\n Image* panel_settings = nullptr;\n Image* panel_credits = nullptr;\n\n Label* new_game_lbl = nullptr;\n Label* continue_lbl = nullptr;\n Label* credits_lbl = nullptr;\n Label* settings_lbl = nullptr;\n\n Label* sound_lbl = nullptr;\n Label* graphics_lbl = nullptr;\n Label* volume_lbl = nullptr;\n Label* fx_lbl = nullptr;\n Label* fps_lbl = nullptr;\n Label* full_screen_lbl = nullptr;\n \n Image* clip_credits = nullptr;\n Label* license_lbl = nullptr;\n Label* tasks_lbl = nullptr;\n\n CheckBox* option_fps = nullptr;\n CheckBox* option_full_screen = nullptr;\n\n Slider* volume_sld = nullptr;\n Slider* fx_sld = nullptr;\n\n p2DynArray<Button*> buttons;\n p2DynArray<Label*> labels;\n p2DynArray<Button*> settings;\n p2DynArray<Label*> settings_labels;\n\n\n bool move_camera_forward = false;\n bool move_camera_backward = false;\n bool move_camera_down = false;\n bool move_camera_up = false;\n\n\n int camera_limit = 0;\n int camera_origin = 0;\n int camera_step_move = 0;\n\n int button_limit = 0;\n int button_origin = 0;\n\n};\n#endif" (#ifndef) "#ifndef" (identifier) "__J1MAINMENU_H__" (preproc_def) "#define __J1MAINMENU_H__\n" (#define) "#define" (identifier) "__J1MAINMENU_H__" (preproc_include) "#include "j1Module.h"\n" (#include) "#include" (string_literal) ""j1Module.h"" (") """ (string_content) "j1Module.h" (") """ (preproc_include) "#include "p2DynArray.h"\n" (#include) "#include" (string_literal) ""p2DynArray.h"" (") """ (string_content) "p2DynArray.h" (") """ (declaration) "class Button;" (type_identifier) "class" (identifier) "Button" (;) ";" (declaration) "class Label;" (type_identifier) "class" (identifier) "Label" (;) ";" (declaration) "class Image;" (type_identifier) "class" (identifier) "Image" (;) ";" (declaration) "class CheckBox;" (type_identifier) "class" (identifier) "CheckBox" (;) ";" (declaration) "class Slider;" (type_identifier) "class" (identifier) "Slider" (;) ";" (function_definition) "class j1MainMenu : public j1Module\n{\npublic:\n\n j1MainMenu();\n\n // Destructor\n virtual ~j1MainMenu();\n\n // Called before render is available\n bool Awake(pugi::xml_node& conf);\n\n // Called before the first frame\n bool Start();\n\n // Called before all Updates\n bool PreUpdate();\n\n // Called each loop iteration\n bool Update(float dt);\n\n // Called before all Updates\n bool PostUpdate();\n\n // Called before quitting\n bool CleanUp();\n\n void UI_Events(UIElement* element);\n\n bool Load(pugi::xml_node&);\n\n bool Save(pugi::xml_node&) const;\n\n\npublic:\n uint win_width = 0;\n uint win_height = 0;\n bool can_load = false;\n\nprivate:\n p2SString lvl0;\n\n Label* title1 = nullptr;\n Label* title2 = nullptr;\n Label* press_space = nullptr;\n\n Button* new_game_btn = nullptr;\n Button* continue_btn = nullptr;\n Button* settings_btn = nullptr;\n Button* quit_game_btn = nullptr;\n Button* credits_btn = nullptr;\n Button* github_btn = nullptr;\n Button* website_btn = nullptr;\n Button* back_from_settings_btn = nullptr;\n Button* back_from_credits_btn = nullptr;\n Image* panel_settings = nullptr;\n Image* panel_credits = nullptr;\n\n Label* new_game_lbl = nullptr;\n Label* continue_lbl = nullptr;\n Label* credits_lbl = nullptr;\n Label* settings_lbl = nullptr;\n\n Label* sound_lbl = nullptr;\n Label* graphics_lbl = nullptr;\n Label* volume_lbl = nullptr;\n Label* fx_lbl = nullptr;\n Label* fps_lbl = nullptr;\n Label* full_screen_lbl = nullptr;\n \n Image* clip_credits = nullptr;\n Label* license_lbl = nullptr;\n Label* tasks_lbl = nullptr;\n\n CheckBox* option_fps = nullptr;\n CheckBox* option_full_screen = nullptr;\n\n Slider* volume_sld = nullptr;\n Slider* fx_sld = nullptr;\n\n p2DynArray<Button*> buttons;\n p2DynArray<Label*> labels;\n p2DynArray<Button*> settings;\n p2DynArray<Label*> settings_labels;\n\n\n bool move_camera_forward = false;\n bool move_camera_backward = false;\n bool move_camera_down = false;\n bool move_camera_up = false;\n\n\n int camera_limit = 0;\n int camera_origin = 0;\n int camera_step_move = 0;\n\n int button_limit = 0;\n int button_origin = 0;\n\n}" (type_identifier) "class" (identifier) "j1MainMenu" (ERROR) ": public j1Module" (:) ":" (identifier) "public" (identifier) "j1Module" (compound_statement) "{\npublic:\n\n j1MainMenu();\n\n // Destructor\n virtual ~j1MainMenu();\n\n // Called before render is available\n bool Awake(pugi::xml_node& conf);\n\n // Called before the first frame\n bool Start();\n\n // Called before all Updates\n bool PreUpdate();\n\n // Called each loop iteration\n bool Update(float dt);\n\n // Called before all Updates\n bool PostUpdate();\n\n // Called before quitting\n bool CleanUp();\n\n void UI_Events(UIElement* element);\n\n bool Load(pugi::xml_node&);\n\n bool Save(pugi::xml_node&) const;\n\n\npublic:\n uint win_width = 0;\n uint win_height = 0;\n bool can_load = false;\n\nprivate:\n p2SString lvl0;\n\n Label* title1 = nullptr;\n Label* title2 = nullptr;\n Label* press_space = nullptr;\n\n Button* new_game_btn = nullptr;\n Button* continue_btn = nullptr;\n Button* settings_btn = nullptr;\n Button* quit_game_btn = nullptr;\n Button* credits_btn = nullptr;\n Button* github_btn = nullptr;\n Button* website_btn = nullptr;\n Button* back_from_settings_btn = nullptr;\n Button* back_from_credits_btn = nullptr;\n Image* panel_settings = nullptr;\n Image* panel_credits = nullptr;\n\n Label* new_game_lbl = nullptr;\n Label* continue_lbl = nullptr;\n Label* credits_lbl = nullptr;\n Label* settings_lbl = nullptr;\n\n Label* sound_lbl = nullptr;\n Label* graphics_lbl = nullptr;\n Label* volume_lbl = nullptr;\n Label* fx_lbl = nullptr;\n Label* fps_lbl = nullptr;\n Label* full_screen_lbl = nullptr;\n \n Image* clip_credits = nullptr;\n Label* license_lbl = nullptr;\n Label* tasks_lbl = nullptr;\n\n CheckBox* option_fps = nullptr;\n CheckBox* option_full_screen = nullptr;\n\n Slider* volume_sld = nullptr;\n Slider* fx_sld = nullptr;\n\n p2DynArray<Button*> buttons;\n p2DynArray<Label*> labels;\n p2DynArray<Button*> settings;\n p2DynArray<Label*> settings_labels;\n\n\n bool move_camera_forward = false;\n bool move_camera_backward = false;\n bool move_camera_down = false;\n bool move_camera_up = false;\n\n\n int camera_limit = 0;\n int camera_origin = 0;\n int camera_step_move = 0;\n\n int button_limit = 0;\n int button_origin = 0;\n\n}" ({) "{" (labeled_statement) "public:\n\n j1MainMenu();" (statement_identifier) "public" (:) ":" (expression_statement) "j1MainMenu();" (call_expression) "j1MainMenu()" (identifier) "j1MainMenu" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Destructor" (declaration) "virtual ~j1MainMenu();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "j1MainMenu()" (identifier) "j1MainMenu" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Called before render is available" (declaration) "bool Awake(pugi::xml_node& conf);" (primitive_type) "bool" (function_declarator) "Awake(pugi::xml_node& conf)" (identifier) "Awake" (parameter_list) "(pugi::xml_node& conf)" (() "(" (parameter_declaration) "pugi::xml_node& conf" (type_identifier) "pugi" (ERROR) "::xml_node&" (:) ":" (:) ":" (identifier) "xml_node" (&) "&" (identifier) "conf" ()) ")" (;) ";" (comment) "// Called before the first frame" (declaration) "bool Start();" (primitive_type) "bool" (function_declarator) "Start()" (identifier) "Start" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Called before all Updates" (declaration) "bool PreUpdate();" (primitive_type) "bool" (function_declarator) "PreUpdate()" (identifier) "PreUpdate" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Called each loop iteration" (declaration) "bool Update(float dt);" (primitive_type) "bool" (function_declarator) "Update(float dt)" (identifier) "Update" (parameter_list) "(float dt)" (() "(" (parameter_declaration) "float dt" (primitive_type) "float" (identifier) "dt" ()) ")" (;) ";" (comment) "// Called before all Updates" (declaration) "bool PostUpdate();" (primitive_type) "bool" (function_declarator) "PostUpdate()" (identifier) "PostUpdate" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Called before quitting" (declaration) "bool CleanUp();" (primitive_type) "bool" (function_declarator) "CleanUp()" (identifier) "CleanUp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void UI_Events(UIElement* element);" (primitive_type) "void" (function_declarator) "UI_Events(UIElement* element)" (identifier) "UI_Events" (parameter_list) "(UIElement* element)" (() "(" (parameter_declaration) "UIElement* element" (type_identifier) "UIElement" (pointer_declarator) "* element" (*) "*" (identifier) "element" ()) ")" (;) ";" (declaration) "bool Load(pugi::xml_node&);" (primitive_type) "bool" (function_declarator) "Load(pugi::xml_node&)" (identifier) "Load" (parameter_list) "(pugi::xml_node&)" (() "(" (parameter_declaration) "pugi::xml_node" (type_identifier) "pugi" (ERROR) "::" (:) ":" (:) ":" (identifier) "xml_node" (ERROR) "&" (&) "&" ()) ")" (;) ";" (ERROR) "bool Save(pugi::xml_node&) const" (primitive_type) "bool" (function_declarator) "Save(pugi::xml_node&) const" (identifier) "Save" (parameter_list) "(pugi::xml_node&)" (() "(" (parameter_declaration) "pugi::xml_node" (type_identifier) "pugi" (ERROR) "::" (:) ":" (:) ":" (identifier) "xml_node" (ERROR) "&" (&) "&" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "public:\n uint win_width = 0;" (statement_identifier) "public" (:) ":" (declaration) "uint win_width = 0;" (type_identifier) "uint" (init_declarator) "win_width = 0" (identifier) "win_width" (=) "=" (number_literal) "0" (;) ";" (declaration) "uint win_height = 0;" (type_identifier) "uint" (init_declarator) "win_height = 0" (identifier) "win_height" (=) "=" (number_literal) "0" (;) ";" (declaration) "bool can_load = false;" (primitive_type) "bool" (init_declarator) "can_load = false" (identifier) "can_load" (=) "=" (false) "false" (;) ";" (labeled_statement) "private:\n p2SString lvl0;" (statement_identifier) "private" (:) ":" (declaration) "p2SString lvl0;" (type_identifier) "p2SString" (identifier) "lvl0" (;) ";" (declaration) "Label* title1 = nullptr;" (type_identifier) "Label" (init_declarator) "* title1 = nullptr" (pointer_declarator) "* title1" (*) "*" (identifier) "title1" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* title2 = nullptr;" (type_identifier) "Label" (init_declarator) "* title2 = nullptr" (pointer_declarator) "* title2" (*) "*" (identifier) "title2" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* press_space = nullptr;" (type_identifier) "Label" (init_declarator) "* press_space = nullptr" (pointer_declarator) "* press_space" (*) "*" (identifier) "press_space" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* new_game_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* new_game_btn = nullptr" (pointer_declarator) "* new_game_btn" (*) "*" (identifier) "new_game_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* continue_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* continue_btn = nullptr" (pointer_declarator) "* continue_btn" (*) "*" (identifier) "continue_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* settings_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* settings_btn = nullptr" (pointer_declarator) "* settings_btn" (*) "*" (identifier) "settings_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* quit_game_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* quit_game_btn = nullptr" (pointer_declarator) "* quit_game_btn" (*) "*" (identifier) "quit_game_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* credits_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* credits_btn = nullptr" (pointer_declarator) "* credits_btn" (*) "*" (identifier) "credits_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* github_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* github_btn = nullptr" (pointer_declarator) "* github_btn" (*) "*" (identifier) "github_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* website_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* website_btn = nullptr" (pointer_declarator) "* website_btn" (*) "*" (identifier) "website_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* back_from_settings_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* back_from_settings_btn = nullptr" (pointer_declarator) "* back_from_settings_btn" (*) "*" (identifier) "back_from_settings_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Button* back_from_credits_btn = nullptr;" (type_identifier) "Button" (init_declarator) "* back_from_credits_btn = nullptr" (pointer_declarator) "* back_from_credits_btn" (*) "*" (identifier) "back_from_credits_btn" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Image* panel_settings = nullptr;" (type_identifier) "Image" (init_declarator) "* panel_settings = nullptr" (pointer_declarator) "* panel_settings" (*) "*" (identifier) "panel_settings" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Image* panel_credits = nullptr;" (type_identifier) "Image" (init_declarator) "* panel_credits = nullptr" (pointer_declarator) "* panel_credits" (*) "*" (identifier) "panel_credits" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* new_game_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* new_game_lbl = nullptr" (pointer_declarator) "* new_game_lbl" (*) "*" (identifier) "new_game_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* continue_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* continue_lbl = nullptr" (pointer_declarator) "* continue_lbl" (*) "*" (identifier) "continue_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* credits_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* credits_lbl = nullptr" (pointer_declarator) "* credits_lbl" (*) "*" (identifier) "credits_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* settings_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* settings_lbl = nullptr" (pointer_declarator) "* settings_lbl" (*) "*" (identifier) "settings_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* sound_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* sound_lbl = nullptr" (pointer_declarator) "* sound_lbl" (*) "*" (identifier) "sound_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* graphics_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* graphics_lbl = nullptr" (pointer_declarator) "* graphics_lbl" (*) "*" (identifier) "graphics_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* volume_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* volume_lbl = nullptr" (pointer_declarator) "* volume_lbl" (*) "*" (identifier) "volume_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* fx_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* fx_lbl = nullptr" (pointer_declarator) "* fx_lbl" (*) "*" (identifier) "fx_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* fps_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* fps_lbl = nullptr" (pointer_declarator) "* fps_lbl" (*) "*" (identifier) "fps_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* full_screen_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* full_screen_lbl = nullptr" (pointer_declarator) "* full_screen_lbl" (*) "*" (identifier) "full_screen_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Image* clip_credits = nullptr;" (type_identifier) "Image" (init_declarator) "* clip_credits = nullptr" (pointer_declarator) "* clip_credits" (*) "*" (identifier) "clip_credits" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* license_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* license_lbl = nullptr" (pointer_declarator) "* license_lbl" (*) "*" (identifier) "license_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Label* tasks_lbl = nullptr;" (type_identifier) "Label" (init_declarator) "* tasks_lbl = nullptr" (pointer_declarator) "* tasks_lbl" (*) "*" (identifier) "tasks_lbl" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "CheckBox* option_fps = nullptr;" (type_identifier) "CheckBox" (init_declarator) "* option_fps = nullptr" (pointer_declarator) "* option_fps" (*) "*" (identifier) "option_fps" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "CheckBox* option_full_screen = nullptr;" (type_identifier) "CheckBox" (init_declarator) "* option_full_screen = nullptr" (pointer_declarator) "* option_full_screen" (*) "*" (identifier) "option_full_screen" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Slider* volume_sld = nullptr;" (type_identifier) "Slider" (init_declarator) "* volume_sld = nullptr" (pointer_declarator) "* volume_sld" (*) "*" (identifier) "volume_sld" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (declaration) "Slider* fx_sld = nullptr;" (type_identifier) "Slider" (init_declarator) "* fx_sld = nullptr" (pointer_declarator) "* fx_sld" (*) "*" (identifier) "fx_sld" (=) "=" (null) "nullptr" (nullptr) "nullptr" (;) ";" (expression_statement) "p2DynArray<Button*> buttons;" (binary_expression) "p2DynArray<Button*> buttons" (binary_expression) "p2DynArray<Button" (identifier) "p2DynArray" (<) "<" (identifier) "Button" (ERROR) "*" (*) "*" (>) ">" (identifier) "buttons" (;) ";" (expression_statement) "p2DynArray<Label*> labels;" (binary_expression) "p2DynArray<Label*> labels" (binary_expression) "p2DynArray<Label" (identifier) "p2DynArray" (<) "<" (identifier) "Label" (ERROR) "*" (*) "*" (>) ">" (identifier) "labels" (;) ";" (expression_statement) "p2DynArray<Button*> settings;" (binary_expression) "p2DynArray<Button*> settings" (binary_expression) "p2DynArray<Button" (identifier) "p2DynArray" (<) "<" (identifier) "Button" (ERROR) "*" (*) "*" (>) ">" (identifier) "settings" (;) ";" (expression_statement) "p2DynArray<Label*> settings_labels;" (binary_expression) "p2DynArray<Label*> settings_labels" (binary_expression) "p2DynArray<Label" (identifier) "p2DynArray" (<) "<" (identifier) "Label" (ERROR) "*" (*) "*" (>) ">" (identifier) "settings_labels" (;) ";" (declaration) "bool move_camera_forward = false;" (primitive_type) "bool" (init_declarator) "move_camera_forward = false" (identifier) "move_camera_forward" (=) "=" (false) "false" (;) ";" (declaration) "bool move_camera_backward = false;" (primitive_type) "bool" (init_declarator) "move_camera_backward = false" (identifier) "move_camera_backward" (=) "=" (false) "false" (;) ";" (declaration) "bool move_camera_down = false;" (primitive_type) "bool" (init_declarator) "move_camera_down = false" (identifier) "move_camera_down" (=) "=" (false) "false" (;) ";" (declaration) "bool move_camera_up = false;" (primitive_type) "bool" (init_declarator) "move_camera_up = false" (identifier) "move_camera_up" (=) "=" (false) "false" (;) ";" (declaration) "int camera_limit = 0;" (primitive_type) "int" (init_declarator) "camera_limit = 0" (identifier) "camera_limit" (=) "=" (number_literal) "0" (;) ";" (declaration) "int camera_origin = 0;" (primitive_type) "int" (init_declarator) "camera_origin = 0" (identifier) "camera_origin" (=) "=" (number_literal) "0" (;) ";" (declaration) "int camera_step_move = 0;" (primitive_type) "int" (init_declarator) "camera_step_move = 0" (identifier) "camera_step_move" (=) "=" (number_literal) "0" (;) ";" (declaration) "int button_limit = 0;" (primitive_type) "int" (init_declarator) "button_limit = 0" (identifier) "button_limit" (=) "=" (number_literal) "0" (;) ";" (declaration) "int button_origin = 0;" (primitive_type) "int" (init_declarator) "button_origin = 0" (identifier) "button_origin" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// __j1MAINMENU_H__"
634
12
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 24.52, "nodes": 494, "errors": 0, "source_hash": "8f03acfb7405597ba40969e07590b1bbcbb4937aa48cabfde3dee33b0c16c716", "categorized_nodes": 220}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __J1MAINMENU_H__\n#define __J1MAINMENU_H__\n\n#include \"j1Module.h\"\n#include \"p2DynArray.h\"\n\nclass Button;\nclass Label;\nclass Image;\nclass CheckBox;\nclass Slider;\n\nclass j1MainMenu : public j1Module\n{\npublic:\n\n\tj1MainMenu();\n\n\t// Destructor\n\tvirtual ~j1MainMenu();\n\n\t// Called before render is available\n\tbool Awake(pugi::xml_node& conf);\n\n\t// Called before the first frame\n\tbool Start();\n\n\t// Called before all Updates\n\tbool PreUpdate();\n\n\t// Called each loop iteration\n\tbool Update(float dt);\n\n\t// Called before all Updates\n\tbool PostUpdate();\n\n\t// Called before quitting\n\tbool CleanUp();\n\n\tvoid UI_Events(UIElement* element);\n\n\tbool Load(pugi::xml_node&);\n\n\tbool Save(pugi::xml_node&) const;\n\n\npublic:\n\tuint win_width = 0;\n\tuint win_height = 0;\n\tbool can_load = false;\n\nprivate:\n\tp2SString lvl0;\n\n\tLabel* title1 = nullptr;\n\tLabel* title2 = nullptr;\n\tLabel* press_space = nullptr;\n\n\tButton* new_game_btn = nullptr;\n\tButton* continue_btn = nullptr;\n\tButton* settings_btn = nullptr;\n\tButton* quit_game_btn = nullptr;\n\tButton* credits_btn = nullptr;\n\tButton* github_btn = nullptr;\n\tButton* website_btn = nullptr;\n\tButton* back_from_settings_btn = nullptr;\n\tButton* back_from_credits_btn = nullptr;\n\tImage* panel_settings = nullptr;\n\tImage* panel_credits = nullptr;\n\n\tLabel* new_game_lbl = nullptr;\n\tLabel* continue_lbl = nullptr;\n\tLabel* credits_lbl = nullptr;\n\tLabel* settings_lbl = nullptr;\n\n\tLabel* sound_lbl = nullptr;\n\tLabel* graphics_lbl = nullptr;\n\tLabel* volume_lbl = nullptr;\n\tLabel* fx_lbl = nullptr;\n\tLabel* fps_lbl = nullptr;\n\tLabel* full_screen_lbl = nullptr;\n\t\n\tImage* clip_credits = nullptr;\n\tLabel* license_lbl = nullptr;\n\tLabel* tasks_lbl = nullptr;\n\n\tCheckBox* option_fps = nullptr;\n\tCheckBox* option_full_screen = nullptr;\n\n\tSlider* volume_sld = nullptr;\n\tSlider* fx_sld = nullptr;\n\n\tp2DynArray<Button*> buttons;\n\tp2DynArray<Label*> labels;\n\tp2DynArray<Button*> settings;\n\tp2DynArray<Label*> settings_labels;\n\n\n\tbool move_camera_forward = false;\n\tbool move_camera_backward = false;\n\tbool move_camera_down = false;\n\tbool move_camera_up = false;\n\n\n\tint camera_limit = 0;\n\tint camera_origin = 0;\n\tint camera_step_move = 0;\n\n\tint button_limit = 0;\n\tint button_origin = 0;\n\n};\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 14, 16, 18, 20, 22, 493], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 112, "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": "__J1MAINMENU_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define __J1MAINMENU_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": "__J1MAINMENU_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"j1Module.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": "\"j1Module.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"p2DynArray.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": "\"p2DynArray.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 23}}, {"id": 12, "type": "declaration", "text": "class Button;", "parent": 0, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 13}}, {"id": 13, "type": "identifier", "text": "Button", "parent": 12, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 12}}, {"id": 14, "type": "declaration", "text": "class Label;", "parent": 0, "children": [15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 12}}, {"id": 15, "type": "identifier", "text": "Label", "parent": 14, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 11}}, {"id": 16, "type": "declaration", "text": "class Image;", "parent": 0, "children": [17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 12}}, {"id": 17, "type": "identifier", "text": "Image", "parent": 16, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 11}}, {"id": 18, "type": "declaration", "text": "class CheckBox;", "parent": 0, "children": [19], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 15}}, {"id": 19, "type": "identifier", "text": "CheckBox", "parent": 18, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 14}}, {"id": 20, "type": "declaration", "text": "class Slider;", "parent": 0, "children": [21], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 13}}, {"id": 21, "type": "identifier", "text": "Slider", "parent": 20, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 22, "type": "function_definition", "text": "class j1MainMenu : public j1Module\n{\npublic:\n\n\tj1MainMenu();\n\n\t// Destructor\n\tvirtual ~j1MainMenu();\n\n\t// Called before render is available\n\tbool Awake(pugi::xml_node& conf);\n\n\t// Called before the first frame\n\tbool Start();\n\n\t// Called before all Updates\n\tbool PreUpdate();\n\n\t// Called each loop iteration\n\tbool Update(float dt);\n\n\t// Called before all Updates\n\tbool PostUpdate();\n\n\t// Called before quitting\n\tbool CleanUp();\n\n\tvoid UI_Events(UIElement* element);\n\n\tbool Load(pugi::xml_node&);\n\n\tbool Save(pugi::xml_node&) const;\n\n\npublic:\n\tuint win_width = 0;\n\tuint win_height = 0;\n\tbool can_load = false;\n\nprivate:\n\tp2SString lvl0;\n\n\tLabel* title1 = nullptr;\n\tLabel* title2 = nullptr;\n\tLabel* press_space = nullptr;\n\n\tButton* new_game_btn = nullptr;\n\tButton* continue_btn = nullptr;\n\tButton* settings_btn = nullptr;\n\tButton* quit_game_btn = nullptr;\n\tButton* credits_btn = nullptr;\n\tButton* github_btn = nullptr;\n\tButton* website_btn = nullptr;\n\tButton* back_from_settings_btn = nullptr;\n\tButton* back_from_credits_btn = nullptr;\n\tImage* panel_settings = nullptr;\n\tImage* panel_credits = nullptr;\n\n\tLabel* new_game_lbl = nullptr;\n\tLabel* continue_lbl = nullptr;\n\tLabel* credits_lbl = nullptr;\n\tLabel* settings_lbl = nullptr;\n\n\tLabel* sound_lbl = nullptr;\n\tLabel* graphics_lbl = nullptr;\n\tLabel* volume_lbl = nullptr;\n\tLabel* fx_lbl = nullptr;\n\tLabel* fps_lbl = nullptr;\n\tLabel* full_screen_lbl = nullptr;\n\t\n\tImage* clip_credits = nullptr;\n\tLabel* license_lbl = nullptr;\n\tLabel* tasks_lbl = nullptr;\n\n\tCheckBox* option_fps = nullptr;\n\tCheckBox* option_full_screen = nullptr;\n\n\tSlider* volume_sld = nullptr;\n\tSlider* fx_sld = nullptr;\n\n\tp2DynArray<Button*> buttons;\n\tp2DynArray<Label*> labels;\n\tp2DynArray<Button*> settings;\n\tp2DynArray<Label*> settings_labels;\n\n\n\tbool move_camera_forward = false;\n\tbool move_camera_backward = false;\n\tbool move_camera_down = false;\n\tbool move_camera_up = false;\n\n\n\tint camera_limit = 0;\n\tint camera_origin = 0;\n\tint camera_step_move = 0;\n\n\tint button_limit = 0;\n\tint button_origin = 0;\n\n}", "parent": 0, "children": [23, 24], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 23, "type": "identifier", "text": "j1MainMenu", "parent": 22, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 16}}, {"id": 24, "type": "ERROR", "text": ": public j1Module", "parent": 22, "children": [25], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 34}}, {"id": 25, "type": "identifier", "text": "j1Module", "parent": 24, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 34}}, {"id": 26, "type": "labeled_statement", "text": "public:\n\n\tj1MainMenu();", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 16, "column": 14}}, {"id": 27, "type": "call_expression", "text": "j1MainMenu()", "parent": 26, "children": [28, 29], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 13}}, {"id": 28, "type": "identifier", "text": "j1MainMenu", "parent": 27, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 11}}, {"id": 29, "type": "argument_list", "text": "()", "parent": 27, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 13}}, {"id": 30, "type": "declaration", "text": "virtual ~j1MainMenu();", "parent": 22, "children": [31, 32, 34], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 23}}, {"id": 31, "type": "type_identifier", "text": "virtual", "parent": 30, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 32, "type": "ERROR", "text": "~", "parent": 30, "children": [33], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 33, "type": "~", "text": "~", "parent": 32, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 10}}, {"id": 34, "type": "function_declarator", "text": "j1MainMenu()", "parent": 30, "children": [35, 36], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 22}}, {"id": 35, "type": "identifier", "text": "j1MainMenu", "parent": 34, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 20}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 22}}, {"id": 37, "type": "declaration", "text": "bool Awake(pugi::xml_node& conf);", "parent": 22, "children": [38, 39], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 34}}, {"id": 38, "type": "primitive_type", "text": "bool", "parent": 37, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 5}}, {"id": 39, "type": "function_declarator", "text": "Awake(pugi::xml_node& conf)", "parent": 37, "children": [40, 41], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 33}}, {"id": 40, "type": "identifier", "text": "Awake", "parent": 39, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 11}}, {"id": 41, "type": "parameter_list", "text": "(pugi::xml_node& conf)", "parent": 39, "children": [42], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 33}}, {"id": 42, "type": "parameter_declaration", "text": "pugi::xml_node& conf", "parent": 41, "children": [43, 44, 46], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 32}}, {"id": 43, "type": "type_identifier", "text": "pugi", "parent": 42, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 16}}, {"id": 44, "type": "ERROR", "text": "::xml_node&", "parent": 42, "children": [45], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 27}}, {"id": 45, "type": "identifier", "text": "xml_node", "parent": 44, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 26}}, {"id": 46, "type": "identifier", "text": "conf", "parent": 42, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 32}}, {"id": 47, "type": "declaration", "text": "bool Start();", "parent": 22, "children": [48, 49], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 14}}, {"id": 48, "type": "primitive_type", "text": "bool", "parent": 47, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 49, "type": "function_declarator", "text": "Start()", "parent": 47, "children": [50, 51], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 13}}, {"id": 50, "type": "identifier", "text": "Start", "parent": 49, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 11}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 13}}, {"id": 52, "type": "declaration", "text": "bool PreUpdate();", "parent": 22, "children": [53, 54], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 18}}, {"id": 53, "type": "primitive_type", "text": "bool", "parent": 52, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 5}}, {"id": 54, "type": "function_declarator", "text": "PreUpdate()", "parent": 52, "children": [55, 56], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 17}}, {"id": 55, "type": "identifier", "text": "PreUpdate", "parent": 54, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 15}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 17}}, {"id": 57, "type": "declaration", "text": "bool Update(float dt);", "parent": 22, "children": [58, 59], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 23}}, {"id": 58, "type": "primitive_type", "text": "bool", "parent": 57, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 59, "type": "function_declarator", "text": "Update(float dt)", "parent": 57, "children": [60, 61], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 22}}, {"id": 60, "type": "identifier", "text": "Update", "parent": 59, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 12}}, {"id": 61, "type": "parameter_list", "text": "(float dt)", "parent": 59, "children": [62], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 22}}, {"id": 62, "type": "parameter_declaration", "text": "float dt", "parent": 61, "children": [63, 64], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 63, "type": "primitive_type", "text": "float", "parent": 62, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 18}}, {"id": 64, "type": "identifier", "text": "dt", "parent": 62, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 21}}, {"id": 65, "type": "declaration", "text": "bool PostUpdate();", "parent": 22, "children": [66, 67], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 19}}, {"id": 66, "type": "primitive_type", "text": "bool", "parent": 65, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 67, "type": "function_declarator", "text": "PostUpdate()", "parent": 65, "children": [68, 69], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 18}}, {"id": 68, "type": "identifier", "text": "PostUpdate", "parent": 67, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 16}}, {"id": 69, "type": "parameter_list", "text": "()", "parent": 67, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 18}}, {"id": 70, "type": "declaration", "text": "bool CleanUp();", "parent": 22, "children": [71, 72], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 16}}, {"id": 71, "type": "primitive_type", "text": "bool", "parent": 70, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 72, "type": "function_declarator", "text": "CleanUp()", "parent": 70, "children": [73, 74], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 15}}, {"id": 73, "type": "identifier", "text": "CleanUp", "parent": 72, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 13}}, {"id": 74, "type": "parameter_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 15}}, {"id": 75, "type": "declaration", "text": "void UI_Events(UIElement* element);", "parent": 22, "children": [76, 77], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 36}}, {"id": 76, "type": "primitive_type", "text": "void", "parent": 75, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 77, "type": "function_declarator", "text": "UI_Events(UIElement* element)", "parent": 75, "children": [78, 79], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 35}}, {"id": 78, "type": "identifier", "text": "UI_Events", "parent": 77, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 15}}, {"id": 79, "type": "parameter_list", "text": "(UIElement* element)", "parent": 77, "children": [80], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 35}}, {"id": 80, "type": "parameter_declaration", "text": "UIElement* element", "parent": 79, "children": [81, 82], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 34}}, {"id": 81, "type": "type_identifier", "text": "UIElement", "parent": 80, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 25}}, {"id": 82, "type": "pointer_declarator", "text": "* element", "parent": 80, "children": [83, 84], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 34}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 84, "type": "identifier", "text": "element", "parent": 82, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 34}}, {"id": 85, "type": "declaration", "text": "bool Load(pugi::xml_node&);", "parent": 22, "children": [86, 87], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 28}}, {"id": 86, "type": "primitive_type", "text": "bool", "parent": 85, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 87, "type": "function_declarator", "text": "Load(pugi::xml_node&)", "parent": 85, "children": [88, 89], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 27}}, {"id": 88, "type": "identifier", "text": "Load", "parent": 87, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 10}}, {"id": 89, "type": "parameter_list", "text": "(pugi::xml_node&)", "parent": 87, "children": [90], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 27}}, {"id": 90, "type": "parameter_declaration", "text": "pugi::xml_node", "parent": 89, "children": [91, 92], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 25}}, {"id": 91, "type": "type_identifier", "text": "pugi", "parent": 90, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 15}}, {"id": 92, "type": "identifier", "text": "xml_node", "parent": 90, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 25}}, {"id": 93, "type": "ERROR", "text": "bool Save(pugi::xml_node&) const", "parent": 22, "children": [94, 95], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 33}}, {"id": 94, "type": "primitive_type", "text": "bool", "parent": 93, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 95, "type": "function_declarator", "text": "Save(pugi::xml_node&) const", "parent": 93, "children": [96, 97], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 33}}, {"id": 96, "type": "identifier", "text": "Save", "parent": 95, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 10}}, {"id": 97, "type": "parameter_list", "text": "(pugi::xml_node&)", "parent": 95, "children": [98], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 27}}, {"id": 98, "type": "parameter_declaration", "text": "pugi::xml_node", "parent": 97, "children": [99, 100], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 25}}, {"id": 99, "type": "type_identifier", "text": "pugi", "parent": 98, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 15}}, {"id": 100, "type": "identifier", "text": "xml_node", "parent": 98, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 25}}, {"id": 101, "type": "labeled_statement", "text": "public:\n\tuint win_width = 0;", "parent": 22, "children": [102], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 20}}, {"id": 102, "type": "declaration", "text": "uint win_width = 0;", "parent": 101, "children": [103, 104], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 20}}, {"id": 103, "type": "type_identifier", "text": "uint", "parent": 102, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 5}}, {"id": 104, "type": "init_declarator", "text": "win_width = 0", "parent": 102, "children": [105, 106, 107], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 19}}, {"id": 105, "type": "identifier", "text": "win_width", "parent": 104, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 15}}, {"id": 106, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 104, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 108, "type": "declaration", "text": "uint win_height = 0;", "parent": 22, "children": [109, 110], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 21}}, {"id": 109, "type": "type_identifier", "text": "uint", "parent": 108, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 5}}, {"id": 110, "type": "init_declarator", "text": "win_height = 0", "parent": 108, "children": [111, 112, 113], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 20}}, {"id": 111, "type": "identifier", "text": "win_height", "parent": 110, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 16}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 113, "type": "number_literal", "text": "0", "parent": 110, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 114, "type": "declaration", "text": "bool can_load = false;", "parent": 22, "children": [115, 116], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 23}}, {"id": 115, "type": "primitive_type", "text": "bool", "parent": 114, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 116, "type": "init_declarator", "text": "can_load = false", "parent": 114, "children": [117, 118, 119], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 22}}, {"id": 117, "type": "identifier", "text": "can_load", "parent": 116, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 14}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 16}}, {"id": 119, "type": "false", "text": "false", "parent": 116, "children": [], "start_point": {"row": 49, "column": 17}, "end_point": {"row": 49, "column": 22}}, {"id": 120, "type": "labeled_statement", "text": "private:\n\tp2SString lvl0;", "parent": 22, "children": [121], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 16}}, {"id": 121, "type": "declaration", "text": "p2SString lvl0;", "parent": 120, "children": [122, 123], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 16}}, {"id": 122, "type": "type_identifier", "text": "p2SString", "parent": 121, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 10}}, {"id": 123, "type": "identifier", "text": "lvl0", "parent": 121, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 15}}, {"id": 124, "type": "declaration", "text": "Label* title1 = nullptr;", "parent": 22, "children": [125, 126], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 25}}, {"id": 125, "type": "type_identifier", "text": "Label", "parent": 124, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 6}}, {"id": 126, "type": "init_declarator", "text": "* title1 = nullptr", "parent": 124, "children": [127, 130, 131], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 24}}, {"id": 127, "type": "pointer_declarator", "text": "* title1", "parent": 126, "children": [128, 129], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 14}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 7}}, {"id": 129, "type": "identifier", "text": "title1", "parent": 127, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 130, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 16}}, {"id": 131, "type": "null", "text": "nullptr", "parent": 126, "children": [132], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 24}}, {"id": 132, "type": "nullptr", "text": "nullptr", "parent": 131, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 24}}, {"id": 133, "type": "declaration", "text": "Label* title2 = nullptr;", "parent": 22, "children": [134, 135], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 25}}, {"id": 134, "type": "type_identifier", "text": "Label", "parent": 133, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 6}}, {"id": 135, "type": "init_declarator", "text": "* title2 = nullptr", "parent": 133, "children": [136, 139, 140], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 24}}, {"id": 136, "type": "pointer_declarator", "text": "* title2", "parent": 135, "children": [137, 138], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 14}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 7}}, {"id": 138, "type": "identifier", "text": "title2", "parent": 136, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 14}}, {"id": 139, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 16}}, {"id": 140, "type": "null", "text": "nullptr", "parent": 135, "children": [141], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 24}}, {"id": 141, "type": "nullptr", "text": "nullptr", "parent": 140, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 24}}, {"id": 142, "type": "declaration", "text": "Label* press_space = nullptr;", "parent": 22, "children": [143, 144], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 30}}, {"id": 143, "type": "type_identifier", "text": "Label", "parent": 142, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 6}}, {"id": 144, "type": "init_declarator", "text": "* press_space = nullptr", "parent": 142, "children": [145, 148, 149], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 29}}, {"id": 145, "type": "pointer_declarator", "text": "* press_space", "parent": 144, "children": [146, 147], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 19}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 7}}, {"id": 147, "type": "identifier", "text": "press_space", "parent": 145, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 19}}, {"id": 148, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 21}}, {"id": 149, "type": "null", "text": "nullptr", "parent": 144, "children": [150], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 29}}, {"id": 150, "type": "nullptr", "text": "nullptr", "parent": 149, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 29}}, {"id": 151, "type": "declaration", "text": "Button* new_game_btn = nullptr;", "parent": 22, "children": [152, 153], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 32}}, {"id": 152, "type": "type_identifier", "text": "Button", "parent": 151, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 7}}, {"id": 153, "type": "init_declarator", "text": "* new_game_btn = nullptr", "parent": 151, "children": [154, 157, 158], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 31}}, {"id": 154, "type": "pointer_declarator", "text": "* new_game_btn", "parent": 153, "children": [155, 156], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 21}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 8}}, {"id": 156, "type": "identifier", "text": "new_game_btn", "parent": 154, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 21}}, {"id": 157, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 23}}, {"id": 158, "type": "null", "text": "nullptr", "parent": 153, "children": [159], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 31}}, {"id": 159, "type": "nullptr", "text": "nullptr", "parent": 158, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 31}}, {"id": 160, "type": "declaration", "text": "Button* continue_btn = nullptr;", "parent": 22, "children": [161, 162], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 32}}, {"id": 161, "type": "type_identifier", "text": "Button", "parent": 160, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 162, "type": "init_declarator", "text": "* continue_btn = nullptr", "parent": 160, "children": [163, 166, 167], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 31}}, {"id": 163, "type": "pointer_declarator", "text": "* continue_btn", "parent": 162, "children": [164, 165], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 21}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 165, "type": "identifier", "text": "continue_btn", "parent": 163, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 21}}, {"id": 166, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 23}}, {"id": 167, "type": "null", "text": "nullptr", "parent": 162, "children": [168], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 31}}, {"id": 168, "type": "nullptr", "text": "nullptr", "parent": 167, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 31}}, {"id": 169, "type": "declaration", "text": "Button* settings_btn = nullptr;", "parent": 22, "children": [170, 171], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 32}}, {"id": 170, "type": "type_identifier", "text": "Button", "parent": 169, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 7}}, {"id": 171, "type": "init_declarator", "text": "* settings_btn = nullptr", "parent": 169, "children": [172, 175, 176], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 31}}, {"id": 172, "type": "pointer_declarator", "text": "* settings_btn", "parent": 171, "children": [173, 174], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 21}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 8}}, {"id": 174, "type": "identifier", "text": "settings_btn", "parent": 172, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 21}}, {"id": 175, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 176, "type": "null", "text": "nullptr", "parent": 171, "children": [177], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 31}}, {"id": 177, "type": "nullptr", "text": "nullptr", "parent": 176, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 31}}, {"id": 178, "type": "declaration", "text": "Button* quit_game_btn = nullptr;", "parent": 22, "children": [179, 180], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 33}}, {"id": 179, "type": "type_identifier", "text": "Button", "parent": 178, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 7}}, {"id": 180, "type": "init_declarator", "text": "* quit_game_btn = nullptr", "parent": 178, "children": [181, 184, 185], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 32}}, {"id": 181, "type": "pointer_declarator", "text": "* quit_game_btn", "parent": 180, "children": [182, 183], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 22}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 183, "type": "identifier", "text": "quit_game_btn", "parent": 181, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 22}}, {"id": 184, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 185, "type": "null", "text": "nullptr", "parent": 180, "children": [186], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 32}}, {"id": 186, "type": "nullptr", "text": "nullptr", "parent": 185, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 32}}, {"id": 187, "type": "declaration", "text": "Button* credits_btn = nullptr;", "parent": 22, "children": [188, 189], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 31}}, {"id": 188, "type": "type_identifier", "text": "Button", "parent": 187, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 7}}, {"id": 189, "type": "init_declarator", "text": "* credits_btn = nullptr", "parent": 187, "children": [190, 193, 194], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 30}}, {"id": 190, "type": "pointer_declarator", "text": "* credits_btn", "parent": 189, "children": [191, 192], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 20}}, {"id": 191, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 8}}, {"id": 192, "type": "identifier", "text": "credits_btn", "parent": 190, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 20}}, {"id": 193, "type": "=", "text": "=", "parent": 189, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 194, "type": "null", "text": "nullptr", "parent": 189, "children": [195], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 30}}, {"id": 195, "type": "nullptr", "text": "nullptr", "parent": 194, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 30}}, {"id": 196, "type": "declaration", "text": "Button* github_btn = nullptr;", "parent": 22, "children": [197, 198], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 30}}, {"id": 197, "type": "type_identifier", "text": "Button", "parent": 196, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 198, "type": "init_declarator", "text": "* github_btn = nullptr", "parent": 196, "children": [199, 202, 203], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 29}}, {"id": 199, "type": "pointer_declarator", "text": "* github_btn", "parent": 198, "children": [200, 201], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 19}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 8}}, {"id": 201, "type": "identifier", "text": "github_btn", "parent": 199, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 19}}, {"id": 202, "type": "=", "text": "=", "parent": 198, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 203, "type": "null", "text": "nullptr", "parent": 198, "children": [204], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 29}}, {"id": 204, "type": "nullptr", "text": "nullptr", "parent": 203, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 29}}, {"id": 205, "type": "declaration", "text": "Button* website_btn = nullptr;", "parent": 22, "children": [206, 207], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 31}}, {"id": 206, "type": "type_identifier", "text": "Button", "parent": 205, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 207, "type": "init_declarator", "text": "* website_btn = nullptr", "parent": 205, "children": [208, 211, 212], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 30}}, {"id": 208, "type": "pointer_declarator", "text": "* website_btn", "parent": 207, "children": [209, 210], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 20}}, {"id": 209, "type": "*", "text": "*", "parent": 208, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 8}}, {"id": 210, "type": "identifier", "text": "website_btn", "parent": 208, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 20}}, {"id": 211, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 22}}, {"id": 212, "type": "null", "text": "nullptr", "parent": 207, "children": [213], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 30}}, {"id": 213, "type": "nullptr", "text": "nullptr", "parent": 212, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 30}}, {"id": 214, "type": "declaration", "text": "Button* back_from_settings_btn = nullptr;", "parent": 22, "children": [215, 216], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 42}}, {"id": 215, "type": "type_identifier", "text": "Button", "parent": 214, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 7}}, {"id": 216, "type": "init_declarator", "text": "* back_from_settings_btn = nullptr", "parent": 214, "children": [217, 220, 221], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 41}}, {"id": 217, "type": "pointer_declarator", "text": "* back_from_settings_btn", "parent": 216, "children": [218, 219], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 31}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 8}}, {"id": 219, "type": "identifier", "text": "back_from_settings_btn", "parent": 217, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 31}}, {"id": 220, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 33}}, {"id": 221, "type": "null", "text": "nullptr", "parent": 216, "children": [222], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 41}}, {"id": 222, "type": "nullptr", "text": "nullptr", "parent": 221, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 41}}, {"id": 223, "type": "declaration", "text": "Button* back_from_credits_btn = nullptr;", "parent": 22, "children": [224, 225], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 41}}, {"id": 224, "type": "type_identifier", "text": "Button", "parent": 223, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 7}}, {"id": 225, "type": "init_declarator", "text": "* back_from_credits_btn = nullptr", "parent": 223, "children": [226, 229, 230], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 40}}, {"id": 226, "type": "pointer_declarator", "text": "* back_from_credits_btn", "parent": 225, "children": [227, 228], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 30}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 8}}, {"id": 228, "type": "identifier", "text": "back_from_credits_btn", "parent": 226, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 30}}, {"id": 229, "type": "=", "text": "=", "parent": 225, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 32}}, {"id": 230, "type": "null", "text": "nullptr", "parent": 225, "children": [231], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 40}}, {"id": 231, "type": "nullptr", "text": "nullptr", "parent": 230, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 40}}, {"id": 232, "type": "declaration", "text": "Image* panel_settings = nullptr;", "parent": 22, "children": [233, 234], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 33}}, {"id": 233, "type": "type_identifier", "text": "Image", "parent": 232, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 6}}, {"id": 234, "type": "init_declarator", "text": "* panel_settings = nullptr", "parent": 232, "children": [235, 238, 239], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 32}}, {"id": 235, "type": "pointer_declarator", "text": "* panel_settings", "parent": 234, "children": [236, 237], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 22}}, {"id": 236, "type": "*", "text": "*", "parent": 235, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 237, "type": "identifier", "text": "panel_settings", "parent": 235, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 22}}, {"id": 238, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 24}}, {"id": 239, "type": "null", "text": "nullptr", "parent": 234, "children": [240], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 32}}, {"id": 240, "type": "nullptr", "text": "nullptr", "parent": 239, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 32}}, {"id": 241, "type": "declaration", "text": "Image* panel_credits = nullptr;", "parent": 22, "children": [242, 243], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 32}}, {"id": 242, "type": "type_identifier", "text": "Image", "parent": 241, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 6}}, {"id": 243, "type": "init_declarator", "text": "* panel_credits = nullptr", "parent": 241, "children": [244, 247, 248], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 31}}, {"id": 244, "type": "pointer_declarator", "text": "* panel_credits", "parent": 243, "children": [245, 246], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 21}}, {"id": 245, "type": "*", "text": "*", "parent": 244, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 246, "type": "identifier", "text": "panel_credits", "parent": 244, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 21}}, {"id": 247, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 248, "type": "null", "text": "nullptr", "parent": 243, "children": [249], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 31}}, {"id": 249, "type": "nullptr", "text": "nullptr", "parent": 248, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 31}}, {"id": 250, "type": "declaration", "text": "Label* new_game_lbl = nullptr;", "parent": 22, "children": [251, 252], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 31}}, {"id": 251, "type": "type_identifier", "text": "Label", "parent": 250, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 6}}, {"id": 252, "type": "init_declarator", "text": "* new_game_lbl = nullptr", "parent": 250, "children": [253, 256, 257], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 30}}, {"id": 253, "type": "pointer_declarator", "text": "* new_game_lbl", "parent": 252, "children": [254, 255], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 20}}, {"id": 254, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 255, "type": "identifier", "text": "new_game_lbl", "parent": 253, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 20}}, {"id": 256, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 257, "type": "null", "text": "nullptr", "parent": 252, "children": [258], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 30}}, {"id": 258, "type": "nullptr", "text": "nullptr", "parent": 257, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 30}}, {"id": 259, "type": "declaration", "text": "Label* continue_lbl = nullptr;", "parent": 22, "children": [260, 261], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 31}}, {"id": 260, "type": "type_identifier", "text": "Label", "parent": 259, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 6}}, {"id": 261, "type": "init_declarator", "text": "* continue_lbl = nullptr", "parent": 259, "children": [262, 265, 266], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 30}}, {"id": 262, "type": "pointer_declarator", "text": "* continue_lbl", "parent": 261, "children": [263, 264], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 20}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 7}}, {"id": 264, "type": "identifier", "text": "continue_lbl", "parent": 262, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 20}}, {"id": 265, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 22}}, {"id": 266, "type": "null", "text": "nullptr", "parent": 261, "children": [267], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 30}}, {"id": 267, "type": "nullptr", "text": "nullptr", "parent": 266, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 30}}, {"id": 268, "type": "declaration", "text": "Label* credits_lbl = nullptr;", "parent": 22, "children": [269, 270], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 30}}, {"id": 269, "type": "type_identifier", "text": "Label", "parent": 268, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 6}}, {"id": 270, "type": "init_declarator", "text": "* credits_lbl = nullptr", "parent": 268, "children": [271, 274, 275], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 29}}, {"id": 271, "type": "pointer_declarator", "text": "* credits_lbl", "parent": 270, "children": [272, 273], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 19}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 7}}, {"id": 273, "type": "identifier", "text": "credits_lbl", "parent": 271, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 19}}, {"id": 274, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 21}}, {"id": 275, "type": "null", "text": "nullptr", "parent": 270, "children": [276], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 29}}, {"id": 276, "type": "nullptr", "text": "nullptr", "parent": 275, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 29}}, {"id": 277, "type": "declaration", "text": "Label* settings_lbl = nullptr;", "parent": 22, "children": [278, 279], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 31}}, {"id": 278, "type": "type_identifier", "text": "Label", "parent": 277, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 6}}, {"id": 279, "type": "init_declarator", "text": "* settings_lbl = nullptr", "parent": 277, "children": [280, 283, 284], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 30}}, {"id": 280, "type": "pointer_declarator", "text": "* settings_lbl", "parent": 279, "children": [281, 282], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 20}}, {"id": 281, "type": "*", "text": "*", "parent": 280, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 7}}, {"id": 282, "type": "identifier", "text": "settings_lbl", "parent": 280, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 20}}, {"id": 283, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 22}}, {"id": 284, "type": "null", "text": "nullptr", "parent": 279, "children": [285], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 30}}, {"id": 285, "type": "nullptr", "text": "nullptr", "parent": 284, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 30}}, {"id": 286, "type": "declaration", "text": "Label* sound_lbl = nullptr;", "parent": 22, "children": [287, 288], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 28}}, {"id": 287, "type": "type_identifier", "text": "Label", "parent": 286, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 6}}, {"id": 288, "type": "init_declarator", "text": "* sound_lbl = nullptr", "parent": 286, "children": [289, 292, 293], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 27}}, {"id": 289, "type": "pointer_declarator", "text": "* sound_lbl", "parent": 288, "children": [290, 291], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 17}}, {"id": 290, "type": "*", "text": "*", "parent": 289, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 7}}, {"id": 291, "type": "identifier", "text": "sound_lbl", "parent": 289, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 17}}, {"id": 292, "type": "=", "text": "=", "parent": 288, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 19}}, {"id": 293, "type": "null", "text": "nullptr", "parent": 288, "children": [294], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 27}}, {"id": 294, "type": "nullptr", "text": "nullptr", "parent": 293, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 27}}, {"id": 295, "type": "declaration", "text": "Label* graphics_lbl = nullptr;", "parent": 22, "children": [296, 297], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 31}}, {"id": 296, "type": "type_identifier", "text": "Label", "parent": 295, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 6}}, {"id": 297, "type": "init_declarator", "text": "* graphics_lbl = nullptr", "parent": 295, "children": [298, 301, 302], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 30}}, {"id": 298, "type": "pointer_declarator", "text": "* graphics_lbl", "parent": 297, "children": [299, 300], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 20}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 7}}, {"id": 300, "type": "identifier", "text": "graphics_lbl", "parent": 298, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 20}}, {"id": 301, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 302, "type": "null", "text": "nullptr", "parent": 297, "children": [303], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 30}}, {"id": 303, "type": "nullptr", "text": "nullptr", "parent": 302, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 30}}, {"id": 304, "type": "declaration", "text": "Label* volume_lbl = nullptr;", "parent": 22, "children": [305, 306], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 29}}, {"id": 305, "type": "type_identifier", "text": "Label", "parent": 304, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 6}}, {"id": 306, "type": "init_declarator", "text": "* volume_lbl = nullptr", "parent": 304, "children": [307, 310, 311], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 28}}, {"id": 307, "type": "pointer_declarator", "text": "* volume_lbl", "parent": 306, "children": [308, 309], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 18}}, {"id": 308, "type": "*", "text": "*", "parent": 307, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 7}}, {"id": 309, "type": "identifier", "text": "volume_lbl", "parent": 307, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 18}}, {"id": 310, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 20}}, {"id": 311, "type": "null", "text": "nullptr", "parent": 306, "children": [312], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 28}}, {"id": 312, "type": "nullptr", "text": "nullptr", "parent": 311, "children": [], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 28}}, {"id": 313, "type": "declaration", "text": "Label* fx_lbl = nullptr;", "parent": 22, "children": [314, 315], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 25}}, {"id": 314, "type": "type_identifier", "text": "Label", "parent": 313, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 6}}, {"id": 315, "type": "init_declarator", "text": "* fx_lbl = nullptr", "parent": 313, "children": [316, 319, 320], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 24}}, {"id": 316, "type": "pointer_declarator", "text": "* fx_lbl", "parent": 315, "children": [317, 318], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 14}}, {"id": 317, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 7}}, {"id": 318, "type": "identifier", "text": "fx_lbl", "parent": 316, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 14}}, {"id": 319, "type": "=", "text": "=", "parent": 315, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 16}}, {"id": 320, "type": "null", "text": "nullptr", "parent": 315, "children": [321], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 24}}, {"id": 321, "type": "nullptr", "text": "nullptr", "parent": 320, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 24}}, {"id": 322, "type": "declaration", "text": "Label* fps_lbl = nullptr;", "parent": 22, "children": [323, 324], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 26}}, {"id": 323, "type": "type_identifier", "text": "Label", "parent": 322, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 6}}, {"id": 324, "type": "init_declarator", "text": "* fps_lbl = nullptr", "parent": 322, "children": [325, 328, 329], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 25}}, {"id": 325, "type": "pointer_declarator", "text": "* fps_lbl", "parent": 324, "children": [326, 327], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 15}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 7}}, {"id": 327, "type": "identifier", "text": "fps_lbl", "parent": 325, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 15}}, {"id": 328, "type": "=", "text": "=", "parent": 324, "children": [], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 17}}, {"id": 329, "type": "null", "text": "nullptr", "parent": 324, "children": [330], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 25}}, {"id": 330, "type": "nullptr", "text": "nullptr", "parent": 329, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 25}}, {"id": 331, "type": "declaration", "text": "Label* full_screen_lbl = nullptr;", "parent": 22, "children": [332, 333], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 34}}, {"id": 332, "type": "type_identifier", "text": "Label", "parent": 331, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 6}}, {"id": 333, "type": "init_declarator", "text": "* full_screen_lbl = nullptr", "parent": 331, "children": [334, 337, 338], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 33}}, {"id": 334, "type": "pointer_declarator", "text": "* full_screen_lbl", "parent": 333, "children": [335, 336], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 23}}, {"id": 335, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 7}}, {"id": 336, "type": "identifier", "text": "full_screen_lbl", "parent": 334, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 23}}, {"id": 337, "type": "=", "text": "=", "parent": 333, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 25}}, {"id": 338, "type": "null", "text": "nullptr", "parent": 333, "children": [339], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 33}}, {"id": 339, "type": "nullptr", "text": "nullptr", "parent": 338, "children": [], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 33}}, {"id": 340, "type": "declaration", "text": "Image* clip_credits = nullptr;", "parent": 22, "children": [341, 342], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 31}}, {"id": 341, "type": "type_identifier", "text": "Image", "parent": 340, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 6}}, {"id": 342, "type": "init_declarator", "text": "* clip_credits = nullptr", "parent": 340, "children": [343, 346, 347], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 30}}, {"id": 343, "type": "pointer_declarator", "text": "* clip_credits", "parent": 342, "children": [344, 345], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 20}}, {"id": 344, "type": "*", "text": "*", "parent": 343, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 7}}, {"id": 345, "type": "identifier", "text": "clip_credits", "parent": 343, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 20}}, {"id": 346, "type": "=", "text": "=", "parent": 342, "children": [], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 22}}, {"id": 347, "type": "null", "text": "nullptr", "parent": 342, "children": [348], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 30}}, {"id": 348, "type": "nullptr", "text": "nullptr", "parent": 347, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 30}}, {"id": 349, "type": "declaration", "text": "Label* license_lbl = nullptr;", "parent": 22, "children": [350, 351], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 30}}, {"id": 350, "type": "type_identifier", "text": "Label", "parent": 349, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 6}}, {"id": 351, "type": "init_declarator", "text": "* license_lbl = nullptr", "parent": 349, "children": [352, 355, 356], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 29}}, {"id": 352, "type": "pointer_declarator", "text": "* license_lbl", "parent": 351, "children": [353, 354], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 19}}, {"id": 353, "type": "*", "text": "*", "parent": 352, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 7}}, {"id": 354, "type": "identifier", "text": "license_lbl", "parent": 352, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 19}}, {"id": 355, "type": "=", "text": "=", "parent": 351, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 356, "type": "null", "text": "nullptr", "parent": 351, "children": [357], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 29}}, {"id": 357, "type": "nullptr", "text": "nullptr", "parent": 356, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 29}}, {"id": 358, "type": "declaration", "text": "Label* tasks_lbl = nullptr;", "parent": 22, "children": [359, 360], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 28}}, {"id": 359, "type": "type_identifier", "text": "Label", "parent": 358, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 6}}, {"id": 360, "type": "init_declarator", "text": "* tasks_lbl = nullptr", "parent": 358, "children": [361, 364, 365], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 27}}, {"id": 361, "type": "pointer_declarator", "text": "* tasks_lbl", "parent": 360, "children": [362, 363], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 17}}, {"id": 362, "type": "*", "text": "*", "parent": 361, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 7}}, {"id": 363, "type": "identifier", "text": "tasks_lbl", "parent": 361, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 17}}, {"id": 364, "type": "=", "text": "=", "parent": 360, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 19}}, {"id": 365, "type": "null", "text": "nullptr", "parent": 360, "children": [366], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 27}}, {"id": 366, "type": "nullptr", "text": "nullptr", "parent": 365, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 27}}, {"id": 367, "type": "declaration", "text": "CheckBox* option_fps = nullptr;", "parent": 22, "children": [368, 369], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 32}}, {"id": 368, "type": "type_identifier", "text": "CheckBox", "parent": 367, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 9}}, {"id": 369, "type": "init_declarator", "text": "* option_fps = nullptr", "parent": 367, "children": [370, 373, 374], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 31}}, {"id": 370, "type": "pointer_declarator", "text": "* option_fps", "parent": 369, "children": [371, 372], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 21}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 10}}, {"id": 372, "type": "identifier", "text": "option_fps", "parent": 370, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 21}}, {"id": 373, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 23}}, {"id": 374, "type": "null", "text": "nullptr", "parent": 369, "children": [375], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 31}}, {"id": 375, "type": "nullptr", "text": "nullptr", "parent": 374, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 31}}, {"id": 376, "type": "declaration", "text": "CheckBox* option_full_screen = nullptr;", "parent": 22, "children": [377, 378], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 40}}, {"id": 377, "type": "type_identifier", "text": "CheckBox", "parent": 376, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 9}}, {"id": 378, "type": "init_declarator", "text": "* option_full_screen = nullptr", "parent": 376, "children": [379, 382, 383], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 39}}, {"id": 379, "type": "pointer_declarator", "text": "* option_full_screen", "parent": 378, "children": [380, 381], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 29}}, {"id": 380, "type": "*", "text": "*", "parent": 379, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 10}}, {"id": 381, "type": "identifier", "text": "option_full_screen", "parent": 379, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 29}}, {"id": 382, "type": "=", "text": "=", "parent": 378, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 31}}, {"id": 383, "type": "null", "text": "nullptr", "parent": 378, "children": [384], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 39}}, {"id": 384, "type": "nullptr", "text": "nullptr", "parent": 383, "children": [], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 39}}, {"id": 385, "type": "declaration", "text": "Slider* volume_sld = nullptr;", "parent": 22, "children": [386, 387], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 30}}, {"id": 386, "type": "type_identifier", "text": "Slider", "parent": 385, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 7}}, {"id": 387, "type": "init_declarator", "text": "* volume_sld = nullptr", "parent": 385, "children": [388, 391, 392], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 29}}, {"id": 388, "type": "pointer_declarator", "text": "* volume_sld", "parent": 387, "children": [389, 390], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 19}}, {"id": 389, "type": "*", "text": "*", "parent": 388, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 8}}, {"id": 390, "type": "identifier", "text": "volume_sld", "parent": 388, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 19}}, {"id": 391, "type": "=", "text": "=", "parent": 387, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 21}}, {"id": 392, "type": "null", "text": "nullptr", "parent": 387, "children": [393], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 29}}, {"id": 393, "type": "nullptr", "text": "nullptr", "parent": 392, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 29}}, {"id": 394, "type": "declaration", "text": "Slider* fx_sld = nullptr;", "parent": 22, "children": [395, 396], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 26}}, {"id": 395, "type": "type_identifier", "text": "Slider", "parent": 394, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 7}}, {"id": 396, "type": "init_declarator", "text": "* fx_sld = nullptr", "parent": 394, "children": [397, 400, 401], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 25}}, {"id": 397, "type": "pointer_declarator", "text": "* fx_sld", "parent": 396, "children": [398, 399], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 15}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 8}}, {"id": 399, "type": "identifier", "text": "fx_sld", "parent": 397, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 15}}, {"id": 400, "type": "=", "text": "=", "parent": 396, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 17}}, {"id": 401, "type": "null", "text": "nullptr", "parent": 396, "children": [402], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 25}}, {"id": 402, "type": "nullptr", "text": "nullptr", "parent": 401, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 25}}, {"id": 403, "type": "binary_expression", "text": "p2DynArray<Button*> buttons", "parent": 22, "children": [404, 408, 410, 411], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 28}}, {"id": 404, "type": "binary_expression", "text": "p2DynArray<Button", "parent": 403, "children": [405, 406, 407], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 18}}, {"id": 405, "type": "identifier", "text": "p2DynArray", "parent": 404, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 11}}, {"id": 406, "type": "<", "text": "<", "parent": 404, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 12}}, {"id": 407, "type": "identifier", "text": "Button", "parent": 404, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 18}}, {"id": 408, "type": "ERROR", "text": "*", "parent": 403, "children": [409], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 19}}, {"id": 409, "type": "*", "text": "*", "parent": 408, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 19}}, {"id": 410, "type": ">", "text": ">", "parent": 403, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 20}}, {"id": 411, "type": "identifier", "text": "buttons", "parent": 403, "children": [], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 28}}, {"id": 412, "type": "binary_expression", "text": "p2DynArray<Label*> labels", "parent": 22, "children": [413, 417, 419, 420], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 26}}, {"id": 413, "type": "binary_expression", "text": "p2DynArray<Label", "parent": 412, "children": [414, 415, 416], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 17}}, {"id": 414, "type": "identifier", "text": "p2DynArray", "parent": 413, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 11}}, {"id": 415, "type": "<", "text": "<", "parent": 413, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 12}}, {"id": 416, "type": "identifier", "text": "Label", "parent": 413, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 17}}, {"id": 417, "type": "ERROR", "text": "*", "parent": 412, "children": [418], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 18}}, {"id": 418, "type": "*", "text": "*", "parent": 417, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 18}}, {"id": 419, "type": ">", "text": ">", "parent": 412, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 19}}, {"id": 420, "type": "identifier", "text": "labels", "parent": 412, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 26}}, {"id": 421, "type": "binary_expression", "text": "p2DynArray<Button*> settings", "parent": 22, "children": [422, 426, 428, 429], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 29}}, {"id": 422, "type": "binary_expression", "text": "p2DynArray<Button", "parent": 421, "children": [423, 424, 425], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 18}}, {"id": 423, "type": "identifier", "text": "p2DynArray", "parent": 422, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 11}}, {"id": 424, "type": "<", "text": "<", "parent": 422, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 12}}, {"id": 425, "type": "identifier", "text": "Button", "parent": 422, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 18}}, {"id": 426, "type": "ERROR", "text": "*", "parent": 421, "children": [427], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 19}}, {"id": 427, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 19}}, {"id": 428, "type": ">", "text": ">", "parent": 421, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 20}}, {"id": 429, "type": "identifier", "text": "settings", "parent": 421, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 29}}, {"id": 430, "type": "binary_expression", "text": "p2DynArray<Label*> settings_labels", "parent": 22, "children": [431, 435, 437, 438], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 35}}, {"id": 431, "type": "binary_expression", "text": "p2DynArray<Label", "parent": 430, "children": [432, 433, 434], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 17}}, {"id": 432, "type": "identifier", "text": "p2DynArray", "parent": 431, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 11}}, {"id": 433, "type": "<", "text": "<", "parent": 431, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 12}}, {"id": 434, "type": "identifier", "text": "Label", "parent": 431, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 17}}, {"id": 435, "type": "ERROR", "text": "*", "parent": 430, "children": [436], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 18}}, {"id": 436, "type": "*", "text": "*", "parent": 435, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 18}}, {"id": 437, "type": ">", "text": ">", "parent": 430, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 19}}, {"id": 438, "type": "identifier", "text": "settings_labels", "parent": 430, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 35}}, {"id": 439, "type": "declaration", "text": "bool move_camera_forward = false;", "parent": 22, "children": [440, 441], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 34}}, {"id": 440, "type": "primitive_type", "text": "bool", "parent": 439, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 5}}, {"id": 441, "type": "init_declarator", "text": "move_camera_forward = false", "parent": 439, "children": [442, 443, 444], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 33}}, {"id": 442, "type": "identifier", "text": "move_camera_forward", "parent": 441, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 25}}, {"id": 443, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 27}}, {"id": 444, "type": "false", "text": "false", "parent": 441, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 33}}, {"id": 445, "type": "declaration", "text": "bool move_camera_backward = false;", "parent": 22, "children": [446, 447], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 35}}, {"id": 446, "type": "primitive_type", "text": "bool", "parent": 445, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 5}}, {"id": 447, "type": "init_declarator", "text": "move_camera_backward = false", "parent": 445, "children": [448, 449, 450], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 34}}, {"id": 448, "type": "identifier", "text": "move_camera_backward", "parent": 447, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 26}}, {"id": 449, "type": "=", "text": "=", "parent": 447, "children": [], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 28}}, {"id": 450, "type": "false", "text": "false", "parent": 447, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 34}}, {"id": 451, "type": "declaration", "text": "bool move_camera_down = false;", "parent": 22, "children": [452, 453], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 31}}, {"id": 452, "type": "primitive_type", "text": "bool", "parent": 451, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 5}}, {"id": 453, "type": "init_declarator", "text": "move_camera_down = false", "parent": 451, "children": [454, 455, 456], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 30}}, {"id": 454, "type": "identifier", "text": "move_camera_down", "parent": 453, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 22}}, {"id": 455, "type": "=", "text": "=", "parent": 453, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 24}}, {"id": 456, "type": "false", "text": "false", "parent": 453, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 30}}, {"id": 457, "type": "declaration", "text": "bool move_camera_up = false;", "parent": 22, "children": [458, 459], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 29}}, {"id": 458, "type": "primitive_type", "text": "bool", "parent": 457, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 5}}, {"id": 459, "type": "init_declarator", "text": "move_camera_up = false", "parent": 457, "children": [460, 461, 462], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 28}}, {"id": 460, "type": "identifier", "text": "move_camera_up", "parent": 459, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 20}}, {"id": 461, "type": "=", "text": "=", "parent": 459, "children": [], "start_point": {"row": 101, "column": 21}, "end_point": {"row": 101, "column": 22}}, {"id": 462, "type": "false", "text": "false", "parent": 459, "children": [], "start_point": {"row": 101, "column": 23}, "end_point": {"row": 101, "column": 28}}, {"id": 463, "type": "declaration", "text": "int camera_limit = 0;", "parent": 22, "children": [464, 465], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 22}}, {"id": 464, "type": "primitive_type", "text": "int", "parent": 463, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 4}}, {"id": 465, "type": "init_declarator", "text": "camera_limit = 0", "parent": 463, "children": [466, 467, 468], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 21}}, {"id": 466, "type": "identifier", "text": "camera_limit", "parent": 465, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 17}}, {"id": 467, "type": "=", "text": "=", "parent": 465, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 468, "type": "number_literal", "text": "0", "parent": 465, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 469, "type": "declaration", "text": "int camera_origin = 0;", "parent": 22, "children": [470, 471], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 23}}, {"id": 470, "type": "primitive_type", "text": "int", "parent": 469, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 4}}, {"id": 471, "type": "init_declarator", "text": "camera_origin = 0", "parent": 469, "children": [472, 473, 474], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 22}}, {"id": 472, "type": "identifier", "text": "camera_origin", "parent": 471, "children": [], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 18}}, {"id": 473, "type": "=", "text": "=", "parent": 471, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 474, "type": "number_literal", "text": "0", "parent": 471, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 22}}, {"id": 475, "type": "declaration", "text": "int camera_step_move = 0;", "parent": 22, "children": [476, 477], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 26}}, {"id": 476, "type": "primitive_type", "text": "int", "parent": 475, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 4}}, {"id": 477, "type": "init_declarator", "text": "camera_step_move = 0", "parent": 475, "children": [478, 479, 480], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 25}}, {"id": 478, "type": "identifier", "text": "camera_step_move", "parent": 477, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 21}}, {"id": 479, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 480, "type": "number_literal", "text": "0", "parent": 477, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 481, "type": "declaration", "text": "int button_limit = 0;", "parent": 22, "children": [482, 483], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 22}}, {"id": 482, "type": "primitive_type", "text": "int", "parent": 481, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 4}}, {"id": 483, "type": "init_declarator", "text": "button_limit = 0", "parent": 481, "children": [484, 485, 486], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 21}}, {"id": 484, "type": "identifier", "text": "button_limit", "parent": 483, "children": [], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 17}}, {"id": 485, "type": "=", "text": "=", "parent": 483, "children": [], "start_point": {"row": 108, "column": 18}, "end_point": {"row": 108, "column": 19}}, {"id": 486, "type": "number_literal", "text": "0", "parent": 483, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 21}}, {"id": 487, "type": "declaration", "text": "int button_origin = 0;", "parent": 22, "children": [488, 489], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 23}}, {"id": 488, "type": "primitive_type", "text": "int", "parent": 487, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 4}}, {"id": 489, "type": "init_declarator", "text": "button_origin = 0", "parent": 487, "children": [490, 491, 492], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 22}}, {"id": 490, "type": "identifier", "text": "button_origin", "parent": 489, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 18}}, {"id": 491, "type": "=", "text": "=", "parent": 489, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 20}}, {"id": 492, "type": "number_literal", "text": "0", "parent": 489, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 22}}, {"id": 493, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 6}}]}, "node_categories": {"declarations": {"functions": [22, 34, 39, 49, 54, 59, 67, 72, 77, 87, 95], "variables": [12, 14, 16, 18, 20, 30, 37, 42, 47, 52, 57, 62, 65, 70, 75, 80, 85, 90, 98, 102, 108, 114, 121, 124, 133, 142, 151, 160, 169, 178, 187, 196, 205, 214, 223, 232, 241, 250, 259, 268, 277, 286, 295, 304, 313, 322, 331, 340, 349, 358, 367, 376, 385, 394, 439, 445, 451, 457, 463, 469, 475, 481, 487], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [27, 403, 404, 412, 413, 421, 422, 430, 431], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 17, 19, 21, 23, 25, 28, 31, 35, 40, 43, 45, 46, 50, 55, 60, 64, 68, 73, 78, 81, 84, 88, 91, 92, 96, 99, 100, 103, 105, 109, 111, 117, 122, 123, 125, 129, 134, 138, 143, 147, 152, 156, 161, 165, 170, 174, 179, 183, 188, 192, 197, 201, 206, 210, 215, 219, 224, 228, 233, 237, 242, 246, 251, 255, 260, 264, 269, 273, 278, 282, 287, 291, 296, 300, 305, 309, 314, 318, 323, 327, 332, 336, 341, 345, 350, 354, 359, 363, 368, 372, 377, 381, 386, 390, 395, 399, 405, 407, 411, 414, 416, 420, 423, 425, 429, 432, 434, 438, 442, 448, 454, 460, 466, 472, 478, 484, 490, 493], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 107, 113, 468, 474, 480, 486, 492], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "j1MainMenu", "text_snippet": "class j1MainMenu : public j1Module\n{\npublic:\n\n\tj1MainMenu();\n\n\t// Destructor\n\tvirtual ~j1MainMenu();"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "j1MainMenu()"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "Awake(pugi::xml_node& conf)"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Start()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "PreUpdate()"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "Update(float dt)"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "PostUpdate()"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "CleanUp()"}, {"node_id": 77, "universal_type": "function", "name": "unknown", "text_snippet": "UI_Events(UIElement* element)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "Load(pugi::xml_node&)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "Save(pugi::xml_node&) const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"j1Module.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"p2DynArray.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef __J1MAINMENU_H__\n#define __J1MAINMENU_H__\n\n#include \"j1Module.h\"\n#include \"p2DynArray.h\"\n\nclass Button;\nclass Label;\nclass Image;\nclass CheckBox;\nclass Slider;\n\nclass j1MainMenu : public j1Module\n{\npublic:\n\n\tj1MainMenu();\n\n\t// Destructor\n\tvirtual ~j1MainMenu();\n\n\t// Called before render is available\n\tbool Awake(pugi::xml_node& conf);\n\n\t// Called before the first frame\n\tbool Start();\n\n\t// Called before all Updates\n\tbool PreUpdate();\n\n\t// Called each loop iteration\n\tbool Update(float dt);\n\n\t// Called before all Updates\n\tbool PostUpdate();\n\n\t// Called before quitting\n\tbool CleanUp();\n\n\tvoid UI_Events(UIElement* element);\n\n\tbool Load(pugi::xml_node&);\n\n\tbool Save(pugi::xml_node&) const;\n\n\npublic:\n\tuint win_width = 0;\n\tuint win_height = 0;\n\tbool can_load = false;\n\nprivate:\n\tp2SString lvl0;\n\n\tLabel* title1 = nullptr;\n\tLabel* title2 = nullptr;\n\tLabel* press_space = nullptr;\n\n\tButton* new_game_btn = nullptr;\n\tButton* continue_btn = nullptr;\n\tButton* settings_btn = nullptr;\n\tButton* quit_game_btn = nullptr;\n\tButton* credits_btn = nullptr;\n\tButton* github_btn = nullptr;\n\tButton* website_btn = nullptr;\n\tButton* back_from_settings_btn = nullptr;\n\tButton* back_from_credits_btn = nullptr;\n\tImage* panel_settings = nullptr;\n\tImage* panel_credits = nullptr;\n\n\tLabel* new_game_lbl = nullptr;\n\tLabel* continue_lbl = nullptr;\n\tLabel* credits_lbl = nullptr;\n\tLabel* settings_lbl = nullptr;\n\n\tLabel* sound_lbl = nullptr;\n\tLabel* graphics_lbl = nullptr;\n\tLabel* volume_lbl = nullptr;\n\tLabel* fx_lbl = nullptr;\n\tLabel* fps_lbl = nullptr;\n\tLabel* full_screen_lbl = nullptr;\n\t\n\tImage* clip_credits = nullptr;\n\tLabel* license_lbl = nullptr;\n\tLabel* tasks_lbl = nullptr;\n\n\tCheckBox* option_fps = nullptr;\n\tCheckBox* option_full_screen = nullptr;\n\n\tSlider* volume_sld = nullptr;\n\tSlider* fx_sld = nullptr;\n\n\tp2DynArray<Button*> buttons;\n\tp2DynArray<Label*> labels;\n\tp2DynArray<Button*> settings;\n\tp2DynArray<Label*> settings_labels;\n\n\n\tbool move_camera_forward = false;\n\tbool move_camera_backward = false;\n\tbool move_camera_down = false;\n\tbool move_camera_up = false;\n\n\n\tint camera_limit = 0;\n\tint camera_origin = 0;\n\tint camera_step_move = 0;\n\n\tint button_limit = 0;\n\tint button_origin = 0;\n\n};\n#endif // __j1MAINMENU_H__\n"}
80,707
c
/**************************************************************************** * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The * ASF licenses this file to you 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 __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H #define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H /**************************************************************************** * Included Files ****************************************************************************/ #include <nuttx/config.h> #include <nuttx/compiler.h> #include <stdint.h> #include "stm32l4_gpio.h" /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ /* Configuration ************************************************************/ #define HAVE_PROC 1 #define HAVE_RTC_DRIVER 1 #define HAVE_USERLED_DRIVER 1 #if !defined(CONFIG_FS_PROCFS) # undef HAVE_PROC #endif #if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT) # warning Mountpoints disabled. No procfs support # undef HAVE_PROC #endif /* Check if we can support the RTC driver */ #if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER) # undef HAVE_RTC_DRIVER #endif /* Check if we have the LED driver */ #if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER) # undef HAVE_USERLED_DRIVER #endif /* LEDs. * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention, * used to indicate the Reference Moto Mod battery state of charge, and the * other is available for you to use in your applications. * * 1. The red LED on PD7. Part of the (rear-firing) red/green LED. * 2. The green LED on PE7. Part of the (rear-firing) red/green LED. * 3. The white (top-firing) LED on PE8 * * When the I/O is HIGH value, the LED is OFF. * When the I/O is LOW, the LED is ON. */ #define GPIO_LED_RED \ (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \ GPIO_PULLUP | GPIO_SPEED_50MHz) #define GPIO_LED_GREEN \ (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \ GPIO_PULLUP | GPIO_SPEED_50MHz) #define GPIO_LED_WHITE \ (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \ GPIO_PULLUP | GPIO_SPEED_50MHz) /* BUTTONS -- NOTE that all have EXTI interrupts configured */ #define MIN_IRQBUTTON BUTTON_POWER #define MAX_IRQBUTTON BUTTON_POWER #define NUM_IRQBUTTONS 1 #define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2) /* SPI1 off */ #define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \ GPIO_PORTE | GPIO_PIN15) #define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \ GPIO_PORTE | GPIO_PIN14) #define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \ GPIO_PORTE | GPIO_PIN13) #define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \ GPIO_PORTE | GPIO_PIN12) /* Devices on the onboard I2C bus. * * Note that these are unshifted addresses. */ /**************************************************************************** * Public Data ****************************************************************************/ /* Global driver instances */ #ifdef CONFIG_STM32_SPI1 extern struct spi_dev_s *g_spi1; #endif #ifdef CONFIG_STM32_SPI2 extern struct spi_dev_s *g_spi2; #endif /**************************************************************************** * Public Functions Definitions ****************************************************************************/ /**************************************************************************** * Name: stm32_bringup * * Description: * Perform architecture-specific initialization * * CONFIG_BOARD_LATE_INITIALIZE=y : * Called from board_late_initialize(). * * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y : * Called from the NSH library * ****************************************************************************/ int stm32_bringup(void); /**************************************************************************** * Name: stm32_spiinitialize * * Description: * Called to configure SPI chip select GPIO pins. * ****************************************************************************/ void stm32_spiinitialize(void); #endif /* __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H */
44.82
119
(translation_unit) "/****************************************************************************\n * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership. The\n * ASF licenses this file to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n *\n ****************************************************************************/\n\n#ifndef __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n\n/****************************************************************************\n * Included Files\n ****************************************************************************/\n\n#include <nuttx/config.h>\n#include <nuttx/compiler.h>\n\n#include <stdint.h>\n\n#include "stm32l4_gpio.h"\n\n/****************************************************************************\n * Pre-processor Definitions\n ****************************************************************************/\n\n/* Configuration ************************************************************/\n\n#define HAVE_PROC 1\n#define HAVE_RTC_DRIVER 1\n#define HAVE_USERLED_DRIVER 1\n\n#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif\n\n#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif\n\n/* Check if we can support the RTC driver */\n\n#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif\n\n/* Check if we have the LED driver */\n\n#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif\n\n/* LEDs.\n * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention,\n * used to indicate the Reference Moto Mod battery state of charge, and the\n * other is available for you to use in your applications.\n *\n * 1. The red LED on PD7. Part of the (rear-firing) red/green LED.\n * 2. The green LED on PE7. Part of the (rear-firing) red/green LED.\n * 3. The white (top-firing) LED on PE8\n *\n * When the I/O is HIGH value, the LED is OFF.\n * When the I/O is LOW, the LED is ON.\n */\n\n#define GPIO_LED_RED \\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_GREEN \\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_WHITE \\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n/* BUTTONS -- NOTE that all have EXTI interrupts configured */\n\n#define MIN_IRQBUTTON BUTTON_POWER\n#define MAX_IRQBUTTON BUTTON_POWER\n#define NUM_IRQBUTTONS 1\n\n#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n\n/* SPI1 off */\n\n#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN15)\n#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN14)\n#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN13)\n#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN12)\n\n/* Devices on the onboard I2C bus.\n *\n * Note that these are unshifted addresses.\n */\n\n/****************************************************************************\n * Public Data\n ****************************************************************************/\n\n/* Global driver instances */\n\n#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif\n#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif\n\n/****************************************************************************\n * Public Functions Definitions\n ****************************************************************************/\n\n/****************************************************************************\n * Name: stm32_bringup\n *\n * Description:\n * Perform architecture-specific initialization\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y :\n * Called from board_late_initialize().\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y :\n * Called from the NSH library\n *\n ****************************************************************************/\n\nint stm32_bringup(void);\n\n/****************************************************************************\n * Name: stm32_spiinitialize\n *\n * Description:\n * Called to configure SPI chip select GPIO pins.\n *\n ****************************************************************************/\n\nvoid stm32_spiinitialize(void);\n\n#endif /* __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H */\n" (comment) "/****************************************************************************\n * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership. The\n * ASF licenses this file to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n *\n ****************************************************************************/" (preproc_ifdef) "#ifndef __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n\n/****************************************************************************\n * Included Files\n ****************************************************************************/\n\n#include <nuttx/config.h>\n#include <nuttx/compiler.h>\n\n#include <stdint.h>\n\n#include "stm32l4_gpio.h"\n\n/****************************************************************************\n * Pre-processor Definitions\n ****************************************************************************/\n\n/* Configuration ************************************************************/\n\n#define HAVE_PROC 1\n#define HAVE_RTC_DRIVER 1\n#define HAVE_USERLED_DRIVER 1\n\n#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif\n\n#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif\n\n/* Check if we can support the RTC driver */\n\n#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif\n\n/* Check if we have the LED driver */\n\n#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif\n\n/* LEDs.\n * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention,\n * used to indicate the Reference Moto Mod battery state of charge, and the\n * other is available for you to use in your applications.\n *\n * 1. The red LED on PD7. Part of the (rear-firing) red/green LED.\n * 2. The green LED on PE7. Part of the (rear-firing) red/green LED.\n * 3. The white (top-firing) LED on PE8\n *\n * When the I/O is HIGH value, the LED is OFF.\n * When the I/O is LOW, the LED is ON.\n */\n\n#define GPIO_LED_RED \\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_GREEN \\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_WHITE \\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n/* BUTTONS -- NOTE that all have EXTI interrupts configured */\n\n#define MIN_IRQBUTTON BUTTON_POWER\n#define MAX_IRQBUTTON BUTTON_POWER\n#define NUM_IRQBUTTONS 1\n\n#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n\n/* SPI1 off */\n\n#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN15)\n#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN14)\n#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN13)\n#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN12)\n\n/* Devices on the onboard I2C bus.\n *\n * Note that these are unshifted addresses.\n */\n\n/****************************************************************************\n * Public Data\n ****************************************************************************/\n\n/* Global driver instances */\n\n#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif\n#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif\n\n/****************************************************************************\n * Public Functions Definitions\n ****************************************************************************/\n\n/****************************************************************************\n * Name: stm32_bringup\n *\n * Description:\n * Perform architecture-specific initialization\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y :\n * Called from board_late_initialize().\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y :\n * Called from the NSH library\n *\n ****************************************************************************/\n\nint stm32_bringup(void);\n\n/****************************************************************************\n * Name: stm32_spiinitialize\n *\n * Description:\n * Called to configure SPI chip select GPIO pins.\n *\n ****************************************************************************/\n\nvoid stm32_spiinitialize(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H" (preproc_def) "#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n" (#define) "#define" (identifier) "__BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H" (comment) "/****************************************************************************\n * Included Files\n ****************************************************************************/" (preproc_include) "#include <nuttx/config.h>\n" (#include) "#include" (system_lib_string) "<nuttx/config.h>" (preproc_include) "#include <nuttx/compiler.h>\n" (#include) "#include" (system_lib_string) "<nuttx/compiler.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include "stm32l4_gpio.h"\n" (#include) "#include" (string_literal) ""stm32l4_gpio.h"" (") """ (string_content) "stm32l4_gpio.h" (") """ (comment) "/****************************************************************************\n * Pre-processor Definitions\n ****************************************************************************/" (comment) "/* Configuration ************************************************************/" (preproc_def) "#define HAVE_PROC 1\n" (#define) "#define" (identifier) "HAVE_PROC" (preproc_arg) "1" (preproc_def) "#define HAVE_RTC_DRIVER 1\n" (#define) "#define" (identifier) "HAVE_RTC_DRIVER" (preproc_arg) "1" (preproc_def) "#define HAVE_USERLED_DRIVER 1\n" (#define) "#define" (identifier) "HAVE_USERLED_DRIVER" (preproc_arg) "1" (preproc_if) "#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif" (#if) "#if" (unary_expression) "!defined(CONFIG_FS_PROCFS)" (!) "!" (preproc_defined) "defined(CONFIG_FS_PROCFS)" (defined) "defined" (() "(" (identifier) "CONFIG_FS_PROCFS" ()) ")" ( ) "\n" (preproc_call) "# undef HAVE_PROC\n" (preproc_directive) "# undef" (preproc_arg) "HAVE_PROC" (#endif) "#endif" (preproc_if) "#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif" (#if) "#if" (binary_expression) "defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)" (preproc_defined) "defined(HAVE_PROC)" (defined) "defined" (() "(" (identifier) "HAVE_PROC" ()) ")" (&&) "&&" (preproc_defined) "defined(CONFIG_DISABLE_MOUNTPOINT)" (defined) "defined" (() "(" (identifier) "CONFIG_DISABLE_MOUNTPOINT" ()) ")" ( ) "\n" (preproc_call) "# warning Mountpoints disabled. No procfs support\n" (preproc_directive) "# warning" (preproc_arg) "Mountpoints disabled. No procfs support" (preproc_call) "# undef HAVE_PROC\n" (preproc_directive) "# undef" (preproc_arg) "HAVE_PROC" (#endif) "#endif" (comment) "/* Check if we can support the RTC driver */" (preproc_if) "#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif" (#if) "#if" (binary_expression) "!defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)" (unary_expression) "!defined(CONFIG_RTC)" (!) "!" (preproc_defined) "defined(CONFIG_RTC)" (defined) "defined" (() "(" (identifier) "CONFIG_RTC" ()) ")" (||) "||" (unary_expression) "!defined(CONFIG_RTC_DRIVER)" (!) "!" (preproc_defined) "defined(CONFIG_RTC_DRIVER)" (defined) "defined" (() "(" (identifier) "CONFIG_RTC_DRIVER" ()) ")" ( ) "\n" (preproc_call) "# undef HAVE_RTC_DRIVER\n" (preproc_directive) "# undef" (preproc_arg) "HAVE_RTC_DRIVER" (#endif) "#endif" (comment) "/* Check if we have the LED driver */" (preproc_if) "#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif" (#if) "#if" (binary_expression) "!defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)" (unary_expression) "!defined(CONFIG_USERLED)" (!) "!" (preproc_defined) "defined(CONFIG_USERLED)" (defined) "defined" (() "(" (identifier) "CONFIG_USERLED" ()) ")" (||) "||" (unary_expression) "!defined(CONFIG_USERLED_LOWER)" (!) "!" (preproc_defined) "defined(CONFIG_USERLED_LOWER)" (defined) "defined" (() "(" (identifier) "CONFIG_USERLED_LOWER" ()) ")" ( ) "\n" (preproc_call) "# undef HAVE_USERLED_DRIVER\n" (preproc_directive) "# undef" (preproc_arg) "HAVE_USERLED_DRIVER" (#endif) "#endif" (comment) "/* LEDs.\n * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention,\n * used to indicate the Reference Moto Mod battery state of charge, and the\n * other is available for you to use in your applications.\n *\n * 1. The red LED on PD7. Part of the (rear-firing) red/green LED.\n * 2. The green LED on PE7. Part of the (rear-firing) red/green LED.\n * 3. The white (top-firing) LED on PE8\n *\n * When the I/O is HIGH value, the LED is OFF.\n * When the I/O is LOW, the LED is ON.\n */" (preproc_def) "#define GPIO_LED_RED \\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n" (#define) "#define" (identifier) "GPIO_LED_RED" (preproc_arg) "(GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)" (preproc_def) "#define GPIO_LED_GREEN \\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n" (#define) "#define" (identifier) "GPIO_LED_GREEN" (preproc_arg) "(GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)" (preproc_def) "#define GPIO_LED_WHITE \\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n" (#define) "#define" (identifier) "GPIO_LED_WHITE" (preproc_arg) "(GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\n GPIO_PULLUP | GPIO_SPEED_50MHz)" (comment) "/* BUTTONS -- NOTE that all have EXTI interrupts configured */" (preproc_def) "#define MIN_IRQBUTTON BUTTON_POWER\n" (#define) "#define" (identifier) "MIN_IRQBUTTON" (preproc_arg) "BUTTON_POWER" (preproc_def) "#define MAX_IRQBUTTON BUTTON_POWER\n" (#define) "#define" (identifier) "MAX_IRQBUTTON" (preproc_arg) "BUTTON_POWER" (preproc_def) "#define NUM_IRQBUTTONS 1\n" (#define) "#define" (identifier) "NUM_IRQBUTTONS" (preproc_arg) "1" (preproc_def) "#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n" (#define) "#define" (identifier) "GPIO_BTN_POWER" (preproc_arg) "(GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)" (comment) "/* SPI1 off */" (preproc_def) "#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN15)\n" (#define) "#define" (identifier) "GPIO_SPI1_MOSI_OFF" (preproc_arg) "(GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN15)" (preproc_def) "#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN14)\n" (#define) "#define" (identifier) "GPIO_SPI1_MISO_OFF" (preproc_arg) "(GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN14)" (preproc_def) "#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN13)\n" (#define) "#define" (identifier) "GPIO_SPI1_SCK_OFF" (preproc_arg) "(GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN13)" (preproc_def) "#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN12)\n" (#define) "#define" (identifier) "GPIO_SPI1_NSS_OFF" (preproc_arg) "(GPIO_INPUT | GPIO_PULLDOWN | \\n GPIO_PORTE | GPIO_PIN12)" (comment) "/* Devices on the onboard I2C bus.\n *\n * Note that these are unshifted addresses.\n */" (comment) "/****************************************************************************\n * Public Data\n ****************************************************************************/" (comment) "/* Global driver instances */" (preproc_ifdef) "#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_STM32_SPI1" (declaration) "extern struct spi_dev_s *g_spi1;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct spi_dev_s" (struct) "struct" (type_identifier) "spi_dev_s" (pointer_declarator) "*g_spi1" (*) "*" (identifier) "g_spi1" (;) ";" (#endif) "#endif" (preproc_ifdef) "#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_STM32_SPI2" (declaration) "extern struct spi_dev_s *g_spi2;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct spi_dev_s" (struct) "struct" (type_identifier) "spi_dev_s" (pointer_declarator) "*g_spi2" (*) "*" (identifier) "g_spi2" (;) ";" (#endif) "#endif" (comment) "/****************************************************************************\n * Public Functions Definitions\n ****************************************************************************/" (comment) "/****************************************************************************\n * Name: stm32_bringup\n *\n * Description:\n * Perform architecture-specific initialization\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y :\n * Called from board_late_initialize().\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y :\n * Called from the NSH library\n *\n ****************************************************************************/" (declaration) "int stm32_bringup(void);" (primitive_type) "int" (function_declarator) "stm32_bringup(void)" (identifier) "stm32_bringup" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/****************************************************************************\n * Name: stm32_spiinitialize\n *\n * Description:\n * Called to configure SPI chip select GPIO pins.\n *\n ****************************************************************************/" (declaration) "void stm32_spiinitialize(void);" (primitive_type) "void" (function_declarator) "stm32_spiinitialize(void)" (identifier) "stm32_spiinitialize" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H */"
225
0
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 44.82, "nodes": 183, "errors": 0, "source_hash": "a31dce21be4ab4f488fc9e110c9a78509a3196c7cc055508ead86ac325b1d998", "categorized_nodes": 91}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n\n/****************************************************************************\n * Included Files\n ****************************************************************************/\n\n#include <nuttx/config.h>\n#include <nuttx/compiler.h>\n\n#include <stdint.h>\n\n#include \"stm32l4_gpio.h\"\n\n/****************************************************************************\n * Pre-processor Definitions\n ****************************************************************************/\n\n/* Configuration ************************************************************/\n\n#define HAVE_PROC 1\n#define HAVE_RTC_DRIVER 1\n#define HAVE_USERLED_DRIVER 1\n\n#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif\n\n#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif\n\n/* Check if we can support the RTC driver */\n\n#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif\n\n/* Check if we have the LED driver */\n\n#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif\n\n/* LEDs.\n * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention,\n * used to indicate the Reference Moto Mod battery state of charge, and the\n * other is available for you to use in your applications.\n *\n * 1. The red LED on PD7. Part of the (rear-firing) red/green LED.\n * 2. The green LED on PE7. Part of the (rear-firing) red/green LED.\n * 3. The white (top-firing) LED on PE8\n *\n * When the I/O is HIGH value, the LED is OFF.\n * When the I/O is LOW, the LED is ON.\n */\n\n#define GPIO_LED_RED \\\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_GREEN \\\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_WHITE \\\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n/* BUTTONS -- NOTE that all have EXTI interrupts configured */\n\n#define MIN_IRQBUTTON BUTTON_POWER\n#define MAX_IRQBUTTON BUTTON_POWER\n#define NUM_IRQBUTTONS 1\n\n#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n\n/* SPI1 off */\n\n#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN15)\n#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN14)\n#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN13)\n#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN12)\n\n/* Devices on the onboard I2C bus.\n *\n * Note that these are unshifted addresses.\n */\n\n/****************************************************************************\n * Public Data\n ****************************************************************************/\n\n/* Global driver instances */\n\n#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif\n#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif\n\n/****************************************************************************\n * Public Functions Definitions\n ****************************************************************************/\n\n/****************************************************************************\n * Name: stm32_bringup\n *\n * Description:\n * Perform architecture-specific initialization\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y :\n * Called from board_late_initialize().\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y :\n * Called from the NSH library\n *\n ****************************************************************************/\n\nint stm32_bringup(void);\n\n/****************************************************************************\n * Name: stm32_spiinitialize\n *\n * Description:\n * Called to configure SPI chip select GPIO pins.\n *\n ****************************************************************************/\n\nvoid stm32_spiinitialize(void);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 22, 26, 30, 42, 60, 79, 98, 102, 106, 110, 114, 118, 122, 126, 130, 134, 138, 142, 155, 168, 175, 182], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 157, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 2, "type": "identifier", "text": "__BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H", "parent": 0, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 62}}, {"id": 3, "type": "preproc_def", "text": "#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 5, "type": "identifier", "text": "__BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H", "parent": 3, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 62}}, {"id": 6, "type": "preproc_include", "text": "#include <nuttx/config.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<nuttx/config.h>", "parent": 6, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <nuttx/compiler.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<nuttx/compiler.h>", "parent": 9, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "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": "system_lib_string", "text": "<stdint.h>", "parent": 12, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"stm32l4_gpio.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"stm32l4_gpio.h\"", "parent": 15, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 25}}, {"id": 18, "type": "preproc_def", "text": "#define HAVE_PROC 1\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 20, "type": "identifier", "text": "HAVE_PROC", "parent": 18, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 17}}, {"id": 21, "type": "preproc_arg", "text": "1", "parent": 18, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 22, "type": "preproc_def", "text": "#define HAVE_RTC_DRIVER 1\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 24, "type": "identifier", "text": "HAVE_RTC_DRIVER", "parent": 22, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 23}}, {"id": 25, "type": "preproc_arg", "text": "1", "parent": 22, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 31}}, {"id": 26, "type": "preproc_def", "text": "#define HAVE_USERLED_DRIVER 1\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 28, "type": "identifier", "text": "HAVE_USERLED_DRIVER", "parent": 26, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 27}}, {"id": 29, "type": "preproc_arg", "text": "1", "parent": 26, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 31}}, {"id": 30, "type": "preproc_if", "text": "#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif", "parent": 0, "children": [31, 32, 37, 38, 41], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 31, "type": "#if", "text": "#if", "parent": 30, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 3}}, {"id": 32, "type": "unary_expression", "text": "!defined(CONFIG_FS_PROCFS)", "parent": 30, "children": [33, 34], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 30}}, {"id": 33, "type": "!", "text": "!", "parent": 32, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 5}}, {"id": 34, "type": "preproc_defined", "text": "defined(CONFIG_FS_PROCFS)", "parent": 32, "children": [35, 36], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 30}}, {"id": 35, "type": "defined", "text": "defined", "parent": 34, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 12}}, {"id": 36, "type": "identifier", "text": "CONFIG_FS_PROCFS", "parent": 34, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 29}}, {"id": 37, "type": "\n", "text": "\n", "parent": 30, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 45, "column": 0}}, {"id": 38, "type": "preproc_call", "text": "# undef HAVE_PROC\n", "parent": 30, "children": [39, 40], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 39, "type": "preproc_directive", "text": "# undef", "parent": 38, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 40, "type": "preproc_arg", "text": "HAVE_PROC", "parent": 38, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 18}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 30, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 6}}, {"id": 42, "type": "preproc_if", "text": "#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif", "parent": 0, "children": [43, 44, 52, 53, 56, 59], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 43, "type": "#if", "text": "#if", "parent": 42, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 3}}, {"id": 44, "type": "binary_expression", "text": "defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)", "parent": 42, "children": [45, 48, 49], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 60}}, {"id": 45, "type": "preproc_defined", "text": "defined(HAVE_PROC)", "parent": 44, "children": [46, 47], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 22}}, {"id": 46, "type": "defined", "text": "defined", "parent": 45, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 11}}, {"id": 47, "type": "identifier", "text": "HAVE_PROC", "parent": 45, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 21}}, {"id": 48, "type": "&&", "text": "&&", "parent": 44, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 25}}, {"id": 49, "type": "preproc_defined", "text": "defined(CONFIG_DISABLE_MOUNTPOINT)", "parent": 44, "children": [50, 51], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 60}}, {"id": 50, "type": "defined", "text": "defined", "parent": 49, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 33}}, {"id": 51, "type": "identifier", "text": "CONFIG_DISABLE_MOUNTPOINT", "parent": 49, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 59}}, {"id": 52, "type": "\n", "text": "\n", "parent": 42, "children": [], "start_point": {"row": 48, "column": 60}, "end_point": {"row": 49, "column": 0}}, {"id": 53, "type": "preproc_call", "text": "# warning Mountpoints disabled. No procfs support\n", "parent": 42, "children": [54, 55], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 54, "type": "preproc_directive", "text": "# warning", "parent": 53, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 10}}, {"id": 55, "type": "preproc_arg", "text": "Mountpoints disabled. No procfs support", "parent": 53, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 51}}, {"id": 56, "type": "preproc_call", "text": "# undef HAVE_PROC\n", "parent": 42, "children": [57, 58], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 57, "type": "preproc_directive", "text": "# undef", "parent": 56, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 8}}, {"id": 58, "type": "preproc_arg", "text": "HAVE_PROC", "parent": 56, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 18}}, {"id": 59, "type": "#endif", "text": "#endif", "parent": 42, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 60, "type": "preproc_if", "text": "#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif", "parent": 0, "children": [61, 62, 74, 75, 78], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 61, "type": "#if", "text": "#if", "parent": 60, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 3}}, {"id": 62, "type": "binary_expression", "text": "!defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)", "parent": 60, "children": [63, 68, 69], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 55}}, {"id": 63, "type": "unary_expression", "text": "!defined(CONFIG_RTC)", "parent": 62, "children": [64, 65], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 24}}, {"id": 64, "type": "!", "text": "!", "parent": 63, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 65, "type": "preproc_defined", "text": "defined(CONFIG_RTC)", "parent": 63, "children": [66, 67], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 24}}, {"id": 66, "type": "defined", "text": "defined", "parent": 65, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 12}}, {"id": 67, "type": "identifier", "text": "CONFIG_RTC", "parent": 65, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 23}}, {"id": 68, "type": "||", "text": "||", "parent": 62, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 27}}, {"id": 69, "type": "unary_expression", "text": "!defined(CONFIG_RTC_DRIVER)", "parent": 62, "children": [70, 71], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 55}}, {"id": 70, "type": "!", "text": "!", "parent": 69, "children": [], "start_point": {"row": 55, "column": 28}, "end_point": {"row": 55, "column": 29}}, {"id": 71, "type": "preproc_defined", "text": "defined(CONFIG_RTC_DRIVER)", "parent": 69, "children": [72, 73], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 55}}, {"id": 72, "type": "defined", "text": "defined", "parent": 71, "children": [], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 55, "column": 36}}, {"id": 73, "type": "identifier", "text": "CONFIG_RTC_DRIVER", "parent": 71, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 54}}, {"id": 74, "type": "\n", "text": "\n", "parent": 60, "children": [], "start_point": {"row": 55, "column": 55}, "end_point": {"row": 56, "column": 0}}, {"id": 75, "type": "preproc_call", "text": "# undef HAVE_RTC_DRIVER\n", "parent": 60, "children": [76, 77], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 76, "type": "preproc_directive", "text": "# undef", "parent": 75, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 8}}, {"id": 77, "type": "preproc_arg", "text": "HAVE_RTC_DRIVER", "parent": 75, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 24}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 60, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 79, "type": "preproc_if", "text": "#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif", "parent": 0, "children": [80, 81, 93, 94, 97], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 80, "type": "#if", "text": "#if", "parent": 79, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 3}}, {"id": 81, "type": "binary_expression", "text": "!defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)", "parent": 79, "children": [82, 87, 88], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 62}}, {"id": 82, "type": "unary_expression", "text": "!defined(CONFIG_USERLED)", "parent": 81, "children": [83, 84], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 28}}, {"id": 83, "type": "!", "text": "!", "parent": 82, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 84, "type": "preproc_defined", "text": "defined(CONFIG_USERLED)", "parent": 82, "children": [85, 86], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 28}}, {"id": 85, "type": "defined", "text": "defined", "parent": 84, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 12}}, {"id": 86, "type": "identifier", "text": "CONFIG_USERLED", "parent": 84, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 27}}, {"id": 87, "type": "||", "text": "||", "parent": 81, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 31}}, {"id": 88, "type": "unary_expression", "text": "!defined(CONFIG_USERLED_LOWER)", "parent": 81, "children": [89, 90], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 62}}, {"id": 89, "type": "!", "text": "!", "parent": 88, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 33}}, {"id": 90, "type": "preproc_defined", "text": "defined(CONFIG_USERLED_LOWER)", "parent": 88, "children": [91, 92], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 62}}, {"id": 91, "type": "defined", "text": "defined", "parent": 90, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 40}}, {"id": 92, "type": "identifier", "text": "CONFIG_USERLED_LOWER", "parent": 90, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 61}}, {"id": 93, "type": "\n", "text": "\n", "parent": 79, "children": [], "start_point": {"row": 61, "column": 62}, "end_point": {"row": 62, "column": 0}}, {"id": 94, "type": "preproc_call", "text": "# undef HAVE_USERLED_DRIVER\n", "parent": 79, "children": [95, 96], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 95, "type": "preproc_directive", "text": "# undef", "parent": 94, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 8}}, {"id": 96, "type": "preproc_arg", "text": "HAVE_USERLED_DRIVER", "parent": 94, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 28}}, {"id": 97, "type": "#endif", "text": "#endif", "parent": 79, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 98, "type": "preproc_def", "text": "#define GPIO_LED_RED \\\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n", "parent": 0, "children": [99, 100, 101], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 81, "column": 0}}, {"id": 99, "type": "#define", "text": "#define", "parent": 98, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 7}}, {"id": 100, "type": "identifier", "text": "GPIO_LED_RED", "parent": 98, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 20}}, {"id": 101, "type": "preproc_arg", "text": "(GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)", "parent": 98, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 80, "column": 34}}, {"id": 102, "type": "preproc_def", "text": "#define GPIO_LED_GREEN \\\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n", "parent": 0, "children": [103, 104, 105], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 85, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 7}}, {"id": 104, "type": "identifier", "text": "GPIO_LED_GREEN", "parent": 102, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 22}}, {"id": 105, "type": "preproc_arg", "text": "(GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)", "parent": 102, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 84, "column": 34}}, {"id": 106, "type": "preproc_def", "text": "#define GPIO_LED_WHITE \\\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n", "parent": 0, "children": [107, 108, 109], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 107, "type": "#define", "text": "#define", "parent": 106, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 7}}, {"id": 108, "type": "identifier", "text": "GPIO_LED_WHITE", "parent": 106, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 22}}, {"id": 109, "type": "preproc_arg", "text": "(GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)", "parent": 106, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 88, "column": 34}}, {"id": 110, "type": "preproc_def", "text": "#define MIN_IRQBUTTON BUTTON_POWER\n", "parent": 0, "children": [111, 112, 113], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 0}}, {"id": 111, "type": "#define", "text": "#define", "parent": 110, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 112, "type": "identifier", "text": "MIN_IRQBUTTON", "parent": 110, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 21}}, {"id": 113, "type": "preproc_arg", "text": "BUTTON_POWER", "parent": 110, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 36}}, {"id": 114, "type": "preproc_def", "text": "#define MAX_IRQBUTTON BUTTON_POWER\n", "parent": 0, "children": [115, 116, 117], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 115, "type": "#define", "text": "#define", "parent": 114, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 116, "type": "identifier", "text": "MAX_IRQBUTTON", "parent": 114, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 21}}, {"id": 117, "type": "preproc_arg", "text": "BUTTON_POWER", "parent": 114, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 36}}, {"id": 118, "type": "preproc_def", "text": "#define NUM_IRQBUTTONS 1\n", "parent": 0, "children": [119, 120, 121], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 119, "type": "#define", "text": "#define", "parent": 118, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 120, "type": "identifier", "text": "NUM_IRQBUTTONS", "parent": 118, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 22}}, {"id": 121, "type": "preproc_arg", "text": "1", "parent": 118, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 25}}, {"id": 122, "type": "preproc_def", "text": "#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n", "parent": 0, "children": [123, 124, 125], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 123, "type": "#define", "text": "#define", "parent": 122, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 124, "type": "identifier", "text": "GPIO_BTN_POWER", "parent": 122, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 22}}, {"id": 125, "type": "preproc_arg", "text": "(GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)", "parent": 122, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 78}}, {"id": 126, "type": "preproc_def", "text": "#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN15)\n", "parent": 0, "children": [127, 128, 129], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 102, "column": 0}}, {"id": 127, "type": "#define", "text": "#define", "parent": 126, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 7}}, {"id": 128, "type": "identifier", "text": "GPIO_SPI1_MOSI_OFF", "parent": 126, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 26}}, {"id": 129, "type": "preproc_arg", "text": "(GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN15)", "parent": 126, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 101, "column": 52}}, {"id": 130, "type": "preproc_def", "text": "#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN14)\n", "parent": 0, "children": [131, 132, 133], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 104, "column": 0}}, {"id": 131, "type": "#define", "text": "#define", "parent": 130, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 132, "type": "identifier", "text": "GPIO_SPI1_MISO_OFF", "parent": 130, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 26}}, {"id": 133, "type": "preproc_arg", "text": "(GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN14)", "parent": 130, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 103, "column": 52}}, {"id": 134, "type": "preproc_def", "text": "#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN13)\n", "parent": 0, "children": [135, 136, 137], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 135, "type": "#define", "text": "#define", "parent": 134, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 136, "type": "identifier", "text": "GPIO_SPI1_SCK_OFF", "parent": 134, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 25}}, {"id": 137, "type": "preproc_arg", "text": "(GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN13)", "parent": 134, "children": [], "start_point": {"row": 104, "column": 27}, "end_point": {"row": 105, "column": 52}}, {"id": 138, "type": "preproc_def", "text": "#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN12)\n", "parent": 0, "children": [139, 140, 141], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 108, "column": 0}}, {"id": 139, "type": "#define", "text": "#define", "parent": 138, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 140, "type": "identifier", "text": "GPIO_SPI1_NSS_OFF", "parent": 138, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 25}}, {"id": 141, "type": "preproc_arg", "text": "(GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN12)", "parent": 138, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 107, "column": 52}}, {"id": 142, "type": "preproc_ifdef", "text": "#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif", "parent": 0, "children": [143, 144, 145, 154], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 122, "column": 6}}, {"id": 143, "type": "#ifdef", "text": "#ifdef", "parent": 142, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 144, "type": "identifier", "text": "CONFIG_STM32_SPI1", "parent": 142, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 24}}, {"id": 145, "type": "declaration", "text": "extern struct spi_dev_s *g_spi1;", "parent": 142, "children": [146, 148, 151], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 32}}, {"id": 146, "type": "storage_class_specifier", "text": "extern", "parent": 145, "children": [147], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 147, "type": "extern", "text": "extern", "parent": 146, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 148, "type": "struct_specifier", "text": "struct spi_dev_s", "parent": 145, "children": [149, 150], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 23}}, {"id": 149, "type": "struct", "text": "struct", "parent": 148, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 13}}, {"id": 150, "type": "type_identifier", "text": "spi_dev_s", "parent": 148, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 23}}, {"id": 151, "type": "pointer_declarator", "text": "*g_spi1", "parent": 145, "children": [152, 153], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 31}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 25}}, {"id": 153, "type": "identifier", "text": "g_spi1", "parent": 151, "children": [], "start_point": {"row": 121, "column": 25}, "end_point": {"row": 121, "column": 31}}, {"id": 154, "type": "#endif", "text": "#endif", "parent": 142, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 6}}, {"id": 155, "type": "preproc_ifdef", "text": "#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif", "parent": 0, "children": [156, 157, 158, 167], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 125, "column": 6}}, {"id": 156, "type": "#ifdef", "text": "#ifdef", "parent": 155, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 157, "type": "identifier", "text": "CONFIG_STM32_SPI2", "parent": 155, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 24}}, {"id": 158, "type": "declaration", "text": "extern struct spi_dev_s *g_spi2;", "parent": 155, "children": [159, 161, 164], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 32}}, {"id": 159, "type": "storage_class_specifier", "text": "extern", "parent": 158, "children": [160], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 6}}, {"id": 160, "type": "extern", "text": "extern", "parent": 159, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 6}}, {"id": 161, "type": "struct_specifier", "text": "struct spi_dev_s", "parent": 158, "children": [162, 163], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 23}}, {"id": 162, "type": "struct", "text": "struct", "parent": 161, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 13}}, {"id": 163, "type": "type_identifier", "text": "spi_dev_s", "parent": 161, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 23}}, {"id": 164, "type": "pointer_declarator", "text": "*g_spi2", "parent": 158, "children": [165, 166], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 31}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 25}}, {"id": 166, "type": "identifier", "text": "g_spi2", "parent": 164, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 31}}, {"id": 167, "type": "#endif", "text": "#endif", "parent": 155, "children": [], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 125, "column": 6}}, {"id": 168, "type": "declaration", "text": "int stm32_bringup(void);", "parent": 0, "children": [169, 170], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 24}}, {"id": 169, "type": "primitive_type", "text": "int", "parent": 168, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 3}}, {"id": 170, "type": "function_declarator", "text": "stm32_bringup(void)", "parent": 168, "children": [171, 172], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 23}}, {"id": 171, "type": "identifier", "text": "stm32_bringup", "parent": 170, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 17}}, {"id": 172, "type": "parameter_list", "text": "(void)", "parent": 170, "children": [173], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 23}}, {"id": 173, "type": "parameter_declaration", "text": "void", "parent": 172, "children": [174], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 22}}, {"id": 174, "type": "primitive_type", "text": "void", "parent": 173, "children": [], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 22}}, {"id": 175, "type": "declaration", "text": "void stm32_spiinitialize(void);", "parent": 0, "children": [176, 177], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 31}}, {"id": 176, "type": "primitive_type", "text": "void", "parent": 175, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 4}}, {"id": 177, "type": "function_declarator", "text": "stm32_spiinitialize(void)", "parent": 175, "children": [178, 179], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 30}}, {"id": 178, "type": "identifier", "text": "stm32_spiinitialize", "parent": 177, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 24}}, {"id": 179, "type": "parameter_list", "text": "(void)", "parent": 177, "children": [180], "start_point": {"row": 155, "column": 24}, "end_point": {"row": 155, "column": 30}}, {"id": 180, "type": "parameter_declaration", "text": "void", "parent": 179, "children": [181], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 29}}, {"id": 181, "type": "primitive_type", "text": "void", "parent": 180, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 29}}, {"id": 182, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 6}}]}, "node_categories": {"declarations": {"functions": [170, 177], "variables": [145, 158, 168, 173, 175, 180], "classes": [146, 148, 149, 159, 161, 162], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [32, 44, 62, 63, 69, 81, 82, 88], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 20, 24, 28, 30, 31, 36, 41, 42, 43, 47, 51, 59, 60, 61, 67, 73, 78, 79, 80, 86, 92, 97, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 142, 143, 144, 150, 153, 154, 155, 156, 157, 163, 166, 167, 171, 178, 182], "returns": [], "exceptions": []}, "expressions": {"calls": [38, 53, 56, 75, 94], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "stm32_bringup(void)"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "stm32_spiinitialize(void)"}], "class_declarations": [{"node_id": 146, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 148, "universal_type": "class", "name": "spi_dev_s", "text_snippet": "struct spi_dev_s"}, {"node_id": 149, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 161, "universal_type": "class", "name": "spi_dev_s", "text_snippet": "struct spi_dev_s"}, {"node_id": 162, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <nuttx/config.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <nuttx/compiler.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <stdint.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"stm32l4_gpio.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/****************************************************************************\n * boards/arm/stm32l4/stm32l476-mdk/src/stm32l476-mdk.h\n *\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership. The\n * ASF licenses this file to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations\n * under the License.\n *\n ****************************************************************************/\n\n#ifndef __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n#define __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H\n\n/****************************************************************************\n * Included Files\n ****************************************************************************/\n\n#include <nuttx/config.h>\n#include <nuttx/compiler.h>\n\n#include <stdint.h>\n\n#include \"stm32l4_gpio.h\"\n\n/****************************************************************************\n * Pre-processor Definitions\n ****************************************************************************/\n\n/* Configuration ************************************************************/\n\n#define HAVE_PROC 1\n#define HAVE_RTC_DRIVER 1\n#define HAVE_USERLED_DRIVER 1\n\n#if !defined(CONFIG_FS_PROCFS)\n# undef HAVE_PROC\n#endif\n\n#if defined(HAVE_PROC) && defined(CONFIG_DISABLE_MOUNTPOINT)\n# warning Mountpoints disabled. No procfs support\n# undef HAVE_PROC\n#endif\n\n/* Check if we can support the RTC driver */\n\n#if !defined(CONFIG_RTC) || !defined(CONFIG_RTC_DRIVER)\n# undef HAVE_RTC_DRIVER\n#endif\n\n/* Check if we have the LED driver */\n\n#if !defined(CONFIG_USERLED) || !defined(CONFIG_USERLED_LOWER)\n# undef HAVE_USERLED_DRIVER\n#endif\n\n/* LEDs.\n * The Reference Moto Mod contains three LEDs. Two LEDs, are by convention,\n * used to indicate the Reference Moto Mod battery state of charge, and the\n * other is available for you to use in your applications.\n *\n * 1. The red LED on PD7. Part of the (rear-firing) red/green LED.\n * 2. The green LED on PE7. Part of the (rear-firing) red/green LED.\n * 3. The white (top-firing) LED on PE8\n *\n * When the I/O is HIGH value, the LED is OFF.\n * When the I/O is LOW, the LED is ON.\n */\n\n#define GPIO_LED_RED \\\n (GPIO_PORTD | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_GREEN \\\n (GPIO_PORTE | GPIO_PIN7 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n#define GPIO_LED_WHITE \\\n (GPIO_PORTE | GPIO_PIN8 | GPIO_OUTPUT_SET | GPIO_OUTPUT | GPIO_PUSHPULL | \\\n GPIO_PULLUP | GPIO_SPEED_50MHz)\n\n/* BUTTONS -- NOTE that all have EXTI interrupts configured */\n\n#define MIN_IRQBUTTON BUTTON_POWER\n#define MAX_IRQBUTTON BUTTON_POWER\n#define NUM_IRQBUTTONS 1\n\n#define GPIO_BTN_POWER (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN2)\n\n/* SPI1 off */\n\n#define GPIO_SPI1_MOSI_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN15)\n#define GPIO_SPI1_MISO_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN14)\n#define GPIO_SPI1_SCK_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN13)\n#define GPIO_SPI1_NSS_OFF (GPIO_INPUT | GPIO_PULLDOWN | \\\n GPIO_PORTE | GPIO_PIN12)\n\n/* Devices on the onboard I2C bus.\n *\n * Note that these are unshifted addresses.\n */\n\n/****************************************************************************\n * Public Data\n ****************************************************************************/\n\n/* Global driver instances */\n\n#ifdef CONFIG_STM32_SPI1\nextern struct spi_dev_s *g_spi1;\n#endif\n#ifdef CONFIG_STM32_SPI2\nextern struct spi_dev_s *g_spi2;\n#endif\n\n/****************************************************************************\n * Public Functions Definitions\n ****************************************************************************/\n\n/****************************************************************************\n * Name: stm32_bringup\n *\n * Description:\n * Perform architecture-specific initialization\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y :\n * Called from board_late_initialize().\n *\n * CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_BOARDCTL=y :\n * Called from the NSH library\n *\n ****************************************************************************/\n\nint stm32_bringup(void);\n\n/****************************************************************************\n * Name: stm32_spiinitialize\n *\n * Description:\n * Called to configure SPI chip select GPIO pins.\n *\n ****************************************************************************/\n\nvoid stm32_spiinitialize(void);\n\n#endif /* __BOARDS_ARM_STM32L4_STM32L476_MDK_SRC_STM32L476_MDK_H */\n"}
80,708
c
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // System.Char[] struct CharU5BU5D_t3324145743; #include "mscorlib_System_ValueType1744280289.h" #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t2862688501 : public ValueType_t1744280289 { public: public: }; struct Enum_t2862688501_StaticFields { public: // System.Char[] System.Enum::split_char CharU5BU5D_t3324145743* ___split_char_0; public: inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); } inline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; } inline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; } inline void set_split_char_0(CharU5BU5D_t3324145743* value) { ___split_char_0 = value; Il2CppCodeGenWriteBarrier(&___split_char_0, value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif
27.68
40
(translation_unit) "ragma once\n\n#include "il2cpp-config.h"\n\n#ifndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n#include <stdint.h>\n\n// System.Char[]\nstruct CharU5BU5D_t3324145743;\n\n#include "mscorlib_System_ValueType1744280289.h"\n\n#ifdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Winvalid-offsetof"\n#pragma clang diagnostic ignored "-Wunused-variable"\n#endif\n\n// System.Enum\nstruct Enum_t2862688501 : public ValueType_t1744280289\n{\npublic:\n\npublic:\n};\n\nstruct Enum_t2862688501_StaticFields\n{\npublic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n inline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n inline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n inline void set_split_char_0(CharU5BU5D_t3324145743* value)\n {\n ___split_char_0 = value;\n Il2CppCodeGenWriteBarrier(&___split_char_0, value);\n }\n};\n\n#ifdef __clang__\n#pragma clang diagnostic pop\n#endif\n" (preproc_call) "ragma once\n\n#" (preproc_directive) "ragma o" (preproc_arg) "ce\n\n" (preproc_include) "nclude "il2cpp-config.h"\n\n#" (#include) "nclude "" (string_literal) "l2cpp-config.h"\n\n" (") "l" (string_content) "2cpp-config.h"\n" (") "\n" (preproc_ifdef) "fndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n" (#ifndef) "fndef _" (identifier) "SC_VER\n#" (preproc_include) "include <alloca.h>\n#e" (#include) "include <" (system_lib_string) "lloca.h>\n#" (preproc_else) "lse\n# include <malloc.h>\n#e" (#else) "lse\n#" (preproc_include) "include <malloc.h>\n#e" (#include) "include <" (system_lib_string) "alloc.h>\n#" (#endif) "ndif\n\n" (preproc_include) "nclude <stdint.h>\n\n/" (#include) "nclude <" (system_lib_string) "tdint.h>\n\n" (comment) " System.Char[]\ns" (struct_specifier) "ruct CharU5BU5D_t3324145743;\n" (struct) "ruct C" (type_identifier) "arU5BU5D_t3324145743;\n" (;) "\n" (preproc_include) "nclude "mscorlib_System_ValueType1744280289.h"\n\n#" (#include) "nclude "" (string_literal) "scorlib_System_ValueType1744280289.h"\n\n" (") "s" (string_content) "corlib_System_ValueType1744280289.h"\n" (") "\n" (preproc_ifdef) "fdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Winvalid-offsetof"\n#pragma clang diagnostic ignored "-Wunused-variable"\n#endif\n\n" (#ifdef) "fdef _" (identifier) "clang__\n#" (preproc_call) "ragma clang diagnostic push\n#p" (preproc_directive) "ragma c" (preproc_arg) "ang diagnostic push\n#" (preproc_call) "ragma clang diagnostic ignored "-Winvalid-offsetof"\n#p" (preproc_directive) "ragma c" (preproc_arg) "ang diagnostic ignored "-Winvalid-offsetof"\n#" (preproc_call) "ragma clang diagnostic ignored "-Wunused-variable"\n#e" (preproc_directive) "ragma c" (preproc_arg) "ang diagnostic ignored "-Wunused-variable"\n#" (#endif) "ndif\n\n" (comment) " System.Enum\ns" (function_definition) "ruct Enum_t2862688501 : public ValueType_t1744280289\n{\npublic:\n\npublic:\n};\n\nstruct Enum_t2862688501_StaticFields\n{\npublic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n inline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n inline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n inline void set_split_char_0(CharU5BU5D_t3324145743* value)\n {\n ___split_char_0 = value;\n Il2CppCodeGenWriteBarrier(&___split_char_0, value);\n }\n};\n" (struct_specifier) "ruct Enum_t2862688501 " (struct) "ruct " (type_identifier) "um_t2862688501 " (ERROR) "public V" (:) "p" (identifier) "blic V" (identifier) "lueType_t1744280289\n{" (compound_statement) "public:\n\npublic:\n};\n\nstruct Enum_t2862688501_StaticFields\n{\npublic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n inline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n inline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n inline void set_split_char_0(CharU5BU5D_t3324145743* value)\n {\n ___split_char_0 = value;\n Il2CppCodeGenWriteBarrier(&___split_char_0, value);\n }\n};\n" ({) "p" (labeled_statement) "blic:\n\npublic:\n};\n\n" (statement_identifier) "blic:\n" (:) "\n" (labeled_statement) "blic:\n};\n\n" (statement_identifier) "blic:\n" (:) "}" (ERROR) "\n" (}) "\n" (expression_statement) "\n" (;) "\n" (function_definition) "ruct Enum_t2862688501_StaticFields\n{\npublic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n inline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n " (struct_specifier) "ruct Enum_t2862688501_StaticFields\n{\npublic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n " (struct) "ruct E" (type_identifier) "um_t2862688501_StaticFields\n{" (field_declaration_list) "public:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n " ({) "p" (field_declaration) "blic:\n // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n\n" (type_identifier) "blic:\n" (field_identifier) "" (bitfield_clause) " // System.Char[] System.Enum::split_char\n CharU5BU5D_t3324145743* ___split_char_0;\n" (:) " " (comment) " System.Char[] System.Enum::split_char\n " (binary_expression) "arU5BU5D_t3324145743* ___split_char_0;\n" (identifier) "arU5BU5D_t3324145743* " (*) "_" (identifier) "_split_char_0;\n" (;) "\n" (field_declaration) "blic:\n inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }" (type_identifier) "blic:\n" (ERROR) " " (:) " " (storage_class_specifier) "line s" (inline) "line s" (storage_class_specifier) "atic i" (static) "atic i" (ERROR) "t32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(En" (field_identifier) "t32_t g" (function_declarator) "t_offset_of_split_char_0() {" (field_identifier) "t_offset_of_split_char_0()" (parameter_list) " {" (() " " ()) "{" ({) "r" (return) "turn s" (field_identifier) "atic_cast<i" (<) "n" (primitive_type) "t32_t>(" (>) "o" (() "f" (offsetof) "fsetof(E" (() "n" (field_identifier) "um_t2862688501_StaticFields, " (,) "_" (field_identifier) "_split_char_0))" (ERROR) "; " ()) ";" ()) " " (;) "}" (}) " " (storage_class_specifier) "line C" (inline) "line C" (ERROR) "arU5BU5D_t3324145743* " (identifier) "arU5BU5D_t3324145743* " (pointer_declarator) "get_split_char_0() const {" (*) "g" (function_declarator) "t_split_char_0() const {" (identifier) "t_split_char_0()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst {" (compound_statement) "return ___split_char_0; }\n " ({) "r" (return_statement) "turn ___split_char_0; }" (return) "turn _" (identifier) "_split_char_0; " (;) "}" (}) " " (function_definition) "line CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n " (storage_class_specifier) "line C" (inline) "line C" (type_identifier) "arU5BU5D_t3324145743**" (pointer_declarator) " get_address_of_split_char_0() {" (*) " " (pointer_declarator) "get_address_of_split_char_0() {" (*) "g" (function_declarator) "t_address_of_split_char_0() {" (identifier) "t_address_of_split_char_0()" (parameter_list) " {" (() " " ()) "{" (compound_statement) "return &___split_char_0; }\n " ({) "r" (return_statement) "turn &___split_char_0; }" (return) "turn &" (pointer_expression) "__split_char_0; " (&) "_" (identifier) "_split_char_0; " (;) "}" (}) " " (function_definition) "line void set_split_char_0(CharU5BU5D_t3324145743* value)\n {\n ___split_char_0 = value;\n Il2CppCodeGenWriteBarrier(&___split_char_0, value);\n }\n}" (storage_class_specifier) "line v" (inline) "line v" (primitive_type) "id s" (function_declarator) "t_split_char_0(CharU5BU5D_t3324145743* value)\n " (identifier) "t_split_char_0(C" (parameter_list) "harU5BU5D_t3324145743* value)\n " (() "h" (parameter_declaration) "arU5BU5D_t3324145743* value)\n" (type_identifier) "arU5BU5D_t3324145743* " (pointer_declarator) "value)\n" (*) "v" (identifier) "lue)\n" ()) " " (compound_statement) " ___split_char_0 = value;\n Il2CppCodeGenWriteBarrier(&___split_char_0, value);\n }\n}" ({) " " (expression_statement) "_split_char_0 = value;\n " (assignment_expression) "_split_char_0 = value;\n" (identifier) "_split_char_0 =" (=) "v" (identifier) "lue;\n" (;) " " (expression_statement) "2CppCodeGenWriteBarrier(&___split_char_0, value);\n " (call_expression) "2CppCodeGenWriteBarrier(&___split_char_0, value);\n" (identifier) "2CppCodeGenWriteBarrier(&" (argument_list) "___split_char_0, value);\n" (() "_" (pointer_expression) "__split_char_0, " (&) "_" (identifier) "_split_char_0, " (,) "v" (identifier) "lue);" ()) "\n" (;) " " (}) "}" (}) "\n" (expression_statement) "\n" (;) "\n" (preproc_ifdef) "fdef __clang__\n#pragma clang diagnostic pop\n#endif\n" (#ifdef) "fdef _" (identifier) "clang__\n#" (preproc_call) "ragma clang diagnostic pop\n#e" (preproc_directive) "ragma c" (preproc_arg) "ang diagnostic pop\n#" (#endif) "ndif\n"
205
6
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.68, "nodes": 137, "errors": 0, "source_hash": "0108b36a6e5eea23d5e90dbb152fe27d73a5ed91890ec77b241ef20d973dd2a0", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n\n#", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "preproc_arg", "text": "ce\n\n", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "nclude \"il2cpp-config.h\"\n\n#", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude \"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "string_literal", "text": "l2cpp-config.h\"\n\n", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "preproc_ifdef", "text": "fndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n", "parent": null, "children": [7, 8, 9, 12, 17], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 7, "type": "#ifndef", "text": "fndef _", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 8, "type": "identifier", "text": "SC_VER\n#", "parent": 6, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "include <alloca.h>\n#e", "parent": 6, "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": 9}}, {"id": 11, "type": "system_lib_string", "text": "lloca.h>\n#", "parent": 9, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 20}}, {"id": 12, "type": "preproc_else", "text": "lse\n# include <malloc.h>\n#e", "parent": 6, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#else", "text": "lse\n#", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 5}}, {"id": 14, "type": "preproc_include", "text": "include <malloc.h>\n#e", "parent": 12, "children": [15, 16], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 15, "type": "#include", "text": "include <", "parent": 14, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 16, "type": "system_lib_string", "text": "alloc.h>\n#", "parent": 14, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 20}}, {"id": 17, "type": "#endif", "text": "ndif\n\n", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 18, "type": "preproc_include", "text": "nclude <stdint.h>\n\n/", "parent": null, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 19, "type": "#include", "text": "nclude <", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "tdint.h>\n\n", "parent": 18, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 21, "type": "struct_specifier", "text": "ruct CharU5BU5D_t3324145743;\n", "parent": null, "children": [22, 23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 29}}, {"id": 22, "type": "struct", "text": "ruct C", "parent": 21, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 23, "type": "type_identifier", "text": "arU5BU5D_t3324145743;\n", "parent": 21, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 29}}, {"id": 24, "type": "preproc_include", "text": "nclude \"mscorlib_System_ValueType1744280289.h\"\n\n#", "parent": null, "children": [25, 26], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 25, "type": "#include", "text": "nclude \"", "parent": 24, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 26, "type": "string_literal", "text": "scorlib_System_ValueType1744280289.h\"\n\n", "parent": 24, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 48}}, {"id": 27, "type": "preproc_ifdef", "text": "fdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Winvalid-offsetof\"\n#pragma clang diagnostic ignored \"-Wunused-variable\"\n#endif\n\n", "parent": null, "children": [28, 29, 30, 33, 36, 39], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 28, "type": "#ifdef", "text": "fdef _", "parent": 27, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 29, "type": "identifier", "text": "clang__\n#", "parent": 27, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 30, "type": "preproc_call", "text": "ragma clang diagnostic push\n#p", "parent": 27, "children": [31, 32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 31, "type": "preproc_directive", "text": "ragma c", "parent": 30, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 32, "type": "preproc_arg", "text": "ang diagnostic push\n#", "parent": 30, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 29}}, {"id": 33, "type": "preproc_call", "text": "ragma clang diagnostic ignored \"-Winvalid-offsetof\"\n#p", "parent": 27, "children": [34, 35], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 34, "type": "preproc_directive", "text": "ragma c", "parent": 33, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 35, "type": "preproc_arg", "text": "ang diagnostic ignored \"-Winvalid-offsetof\"\n#", "parent": 33, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 53}}, {"id": 36, "type": "preproc_call", "text": "ragma clang diagnostic ignored \"-Wunused-variable\"\n#e", "parent": 27, "children": [37, 38], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 37, "type": "preproc_directive", "text": "ragma c", "parent": 36, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 38, "type": "preproc_arg", "text": "ang diagnostic ignored \"-Wunused-variable\"\n#", "parent": 36, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 52}}, {"id": 39, "type": "#endif", "text": "ndif\n\n", "parent": 27, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 40, "type": "function_definition", "text": "ruct Enum_t2862688501 : public ValueType_t1744280289\n{\npublic:\n\npublic:\n};\n\nstruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n\tinline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n\tinline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n\tinline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n\tinline void set_split_char_0(CharU5BU5D_t3324145743* value)\n\t{\n\t\t___split_char_0 = value;\n\t\tIl2CppCodeGenWriteBarrier(&___split_char_0, value);\n\t}\n};\n", "parent": null, "children": [41, 44, 46], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 41, "type": "struct_specifier", "text": "ruct Enum_t2862688501 ", "parent": 40, "children": [42, 43], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 24}}, {"id": 42, "type": "struct", "text": "ruct ", "parent": 41, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 43, "type": "type_identifier", "text": "um_t2862688501 ", "parent": 41, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 24}}, {"id": 44, "type": "ERROR", "text": "public V", "parent": 40, "children": [45], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 34}}, {"id": 45, "type": "identifier", "text": "blic V", "parent": 44, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 34}}, {"id": 46, "type": "identifier", "text": "lueType_t1744280289\n{", "parent": 40, "children": [], "start_point": {"row": 24, "column": 35}, "end_point": {"row": 24, "column": 56}}, {"id": 47, "type": "labeled_statement", "text": "blic:\n\npublic:\n};\n\n", "parent": 40, "children": [48, 49], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 29, "column": 2}}, {"id": 48, "type": "statement_identifier", "text": "blic:\n", "parent": 47, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}, {"id": 49, "type": "labeled_statement", "text": "blic:\n};\n\n", "parent": 47, "children": [50, 51], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 2}}, {"id": 50, "type": "statement_identifier", "text": "blic:\n", "parent": 49, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 51, "type": "ERROR", "text": "\n", "parent": 49, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 52, "type": "function_definition", "text": "ruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n\tinline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n\tinline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n\t", "parent": 40, "children": [53, 81, 83, 85], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 39, "column": 84}}, {"id": 53, "type": "struct_specifier", "text": "ruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n\tinline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n\t", "parent": 52, "children": [54, 55], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 38, "column": 142}}, {"id": 54, "type": "struct", "text": "ruct E", "parent": 53, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 55, "type": "type_identifier", "text": "um_t2862688501_StaticFields\n{", "parent": 53, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 36}}, {"id": 56, "type": "field_declaration", "text": "blic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n\n", "parent": 53, "children": [57, 58, 59], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 35, "column": 41}}, {"id": 57, "type": "type_identifier", "text": "blic:\n", "parent": 56, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 6}}, {"id": 58, "type": "field_identifier", "text": "", "parent": 56, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 6}}, {"id": 59, "type": "bitfield_clause", "text": "\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n", "parent": 56, "children": [60], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 35, "column": 40}}, {"id": 60, "type": "binary_expression", "text": "arU5BU5D_t3324145743* ___split_char_0;\n", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 40}}, {"id": 61, "type": "identifier", "text": "arU5BU5D_t3324145743* ", "parent": 60, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 23}}, {"id": 62, "type": "*", "text": "_", "parent": 60, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 63, "type": "identifier", "text": "_split_char_0;\n", "parent": 60, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 40}}, {"id": 64, "type": "field_declaration", "text": "blic:\n\tinline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }", "parent": 53, "children": [65, 66, 67, 69, 70, 79, 80], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 140}}, {"id": 65, "type": "type_identifier", "text": "blic:\n", "parent": 64, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 66, "type": "ERROR", "text": "\t", "parent": 64, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 7}}, {"id": 67, "type": "storage_class_specifier", "text": "line s", "parent": 64, "children": [68], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 7}}, {"id": 68, "type": "inline", "text": "line s", "parent": 67, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 7}}, {"id": 69, "type": "storage_class_specifier", "text": "atic i", "parent": 64, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 14}}, {"id": 70, "type": "ERROR", "text": "t32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(En", "parent": 64, "children": [71, 72, 74, 75, 76, 77, 78], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 91}}, {"id": 71, "type": "field_identifier", "text": "t32_t g", "parent": 70, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 22}}, {"id": 72, "type": "function_declarator", "text": "t_offset_of_split_char_0() {", "parent": 70, "children": [73], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 51}}, {"id": 73, "type": "field_identifier", "text": "t_offset_of_split_char_0()", "parent": 72, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 49}}, {"id": 74, "type": "field_identifier", "text": "atic_cast<i", "parent": 70, "children": [], "start_point": {"row": 38, "column": 61}, "end_point": {"row": 38, "column": 72}}, {"id": 75, "type": "<", "text": "n", "parent": 70, "children": [], "start_point": {"row": 38, "column": 72}, "end_point": {"row": 38, "column": 73}}, {"id": 76, "type": "primitive_type", "text": "t32_t>(", "parent": 70, "children": [], "start_point": {"row": 38, "column": 73}, "end_point": {"row": 38, "column": 80}}, {"id": 77, "type": ">", "text": "o", "parent": 70, "children": [], "start_point": {"row": 38, "column": 80}, "end_point": {"row": 38, "column": 81}}, {"id": 78, "type": "offsetof", "text": "fsetof(E", "parent": 70, "children": [], "start_point": {"row": 38, "column": 82}, "end_point": {"row": 38, "column": 90}}, {"id": 79, "type": "field_identifier", "text": "um_t2862688501_StaticFields, ", "parent": 64, "children": [], "start_point": {"row": 38, "column": 91}, "end_point": {"row": 38, "column": 120}}, {"id": 80, "type": "field_identifier", "text": "_split_char_0))", "parent": 64, "children": [], "start_point": {"row": 38, "column": 122}, "end_point": {"row": 38, "column": 137}}, {"id": 81, "type": "storage_class_specifier", "text": "line C", "parent": 52, "children": [82], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 82, "type": "inline", "text": "line C", "parent": 81, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 83, "type": "ERROR", "text": "arU5BU5D_t3324145743* ", "parent": 52, "children": [84], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 30}}, {"id": 84, "type": "identifier", "text": "arU5BU5D_t3324145743* ", "parent": 83, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 30}}, {"id": 85, "type": "pointer_declarator", "text": "get_split_char_0() const {", "parent": 52, "children": [86, 87], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 56}}, {"id": 86, "type": "*", "text": "g", "parent": 85, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 31}}, {"id": 87, "type": "function_declarator", "text": "t_split_char_0() const {", "parent": 85, "children": [88, 89, 90], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 56}}, {"id": 88, "type": "identifier", "text": "t_split_char_0()", "parent": 87, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 48}}, {"id": 89, "type": "parameter_list", "text": " c", "parent": 87, "children": [], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 50}}, {"id": 90, "type": "identifier", "text": "nst {", "parent": 87, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 56}}, {"id": 91, "type": "return_statement", "text": "turn ___split_char_0; }", "parent": 52, "children": [92], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 82}}, {"id": 92, "type": "identifier", "text": "_split_char_0; ", "parent": 91, "children": [], "start_point": {"row": 39, "column": 66}, "end_point": {"row": 39, "column": 81}}, {"id": 93, "type": "function_definition", "text": "line CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n\t", "parent": 40, "children": [94, 96, 97], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 91}}, {"id": 94, "type": "storage_class_specifier", "text": "line C", "parent": 93, "children": [95], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 7}}, {"id": 95, "type": "inline", "text": "line C", "parent": 94, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 7}}, {"id": 96, "type": "type_identifier", "text": "arU5BU5D_t3324145743**", "parent": 93, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 30}}, {"id": 97, "type": "pointer_declarator", "text": " get_address_of_split_char_0() {", "parent": 93, "children": [98, 99], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 62}}, {"id": 98, "type": "*", "text": " ", "parent": 97, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 31}}, {"id": 99, "type": "pointer_declarator", "text": "get_address_of_split_char_0() {", "parent": 97, "children": [100, 101], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 62}}, {"id": 100, "type": "*", "text": "g", "parent": 99, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 32}}, {"id": 101, "type": "function_declarator", "text": "t_address_of_split_char_0() {", "parent": 99, "children": [102], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 62}}, {"id": 102, "type": "identifier", "text": "t_address_of_split_char_0()", "parent": 101, "children": [], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 60}}, {"id": 103, "type": "return_statement", "text": "turn &___split_char_0; }", "parent": 93, "children": [104], "start_point": {"row": 40, "column": 65}, "end_point": {"row": 40, "column": 89}}, {"id": 104, "type": "pointer_expression", "text": "__split_char_0; ", "parent": 103, "children": [105, 106], "start_point": {"row": 40, "column": 72}, "end_point": {"row": 40, "column": 88}}, {"id": 105, "type": "&", "text": "_", "parent": 104, "children": [], "start_point": {"row": 40, "column": 72}, "end_point": {"row": 40, "column": 73}}, {"id": 106, "type": "identifier", "text": "_split_char_0; ", "parent": 104, "children": [], "start_point": {"row": 40, "column": 73}, "end_point": {"row": 40, "column": 88}}, {"id": 107, "type": "function_definition", "text": "line void set_split_char_0(CharU5BU5D_t3324145743* value)\n\t{\n\t\t___split_char_0 = value;\n\t\tIl2CppCodeGenWriteBarrier(&___split_char_0, value);\n\t}\n}", "parent": 40, "children": [108, 110, 111], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 45, "column": 2}}, {"id": 108, "type": "storage_class_specifier", "text": "line v", "parent": 107, "children": [109], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 109, "type": "inline", "text": "line v", "parent": 108, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 110, "type": "primitive_type", "text": "id s", "parent": 107, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 111, "type": "function_declarator", "text": "t_split_char_0(CharU5BU5D_t3324145743* value)\n\t", "parent": 107, "children": [112, 113], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 60}}, {"id": 112, "type": "identifier", "text": "t_split_char_0(C", "parent": 111, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 29}}, {"id": 113, "type": "parameter_list", "text": "harU5BU5D_t3324145743* value)\n\t", "parent": 111, "children": [114], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 60}}, {"id": 114, "type": "parameter_declaration", "text": "arU5BU5D_t3324145743* value)\n", "parent": 113, "children": [115, 116], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 59}}, {"id": 115, "type": "type_identifier", "text": "arU5BU5D_t3324145743* ", "parent": 114, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 52}}, {"id": 116, "type": "pointer_declarator", "text": "value)\n", "parent": 114, "children": [117, 118], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 59}}, {"id": 117, "type": "*", "text": "v", "parent": 116, "children": [], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 53}}, {"id": 118, "type": "identifier", "text": "lue)\n", "parent": 116, "children": [], "start_point": {"row": 41, "column": 54}, "end_point": {"row": 41, "column": 59}}, {"id": 119, "type": "assignment_expression", "text": "_split_char_0 = value;\n", "parent": 107, "children": [120, 121, 122], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 25}}, {"id": 120, "type": "identifier", "text": "_split_char_0 =", "parent": 119, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 17}}, {"id": 121, "type": "=", "text": "v", "parent": 119, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 122, "type": "identifier", "text": "lue;\n", "parent": 119, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 25}}, {"id": 123, "type": "call_expression", "text": "2CppCodeGenWriteBarrier(&___split_char_0, value);\n", "parent": 107, "children": [124, 125], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 52}}, {"id": 124, "type": "identifier", "text": "2CppCodeGenWriteBarrier(&", "parent": 123, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 27}}, {"id": 125, "type": "argument_list", "text": "___split_char_0, value);\n", "parent": 123, "children": [126, 129], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 52}}, {"id": 126, "type": "pointer_expression", "text": "__split_char_0, ", "parent": 125, "children": [127, 128], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 44}}, {"id": 127, "type": "&", "text": "_", "parent": 126, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 29}}, {"id": 128, "type": "identifier", "text": "_split_char_0, ", "parent": 126, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 44}}, {"id": 129, "type": "identifier", "text": "lue);", "parent": 125, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 51}}, {"id": 130, "type": "preproc_ifdef", "text": "fdef __clang__\n#pragma clang diagnostic pop\n#endif\n", "parent": null, "children": [131, 132, 133, 136], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 131, "type": "#ifdef", "text": "fdef _", "parent": 130, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 132, "type": "identifier", "text": "clang__\n#", "parent": 130, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 16}}, {"id": 133, "type": "preproc_call", "text": "ragma clang diagnostic pop\n#e", "parent": 130, "children": [134, 135], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 134, "type": "preproc_directive", "text": "ragma c", "parent": 133, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 135, "type": "preproc_arg", "text": "ang diagnostic pop\n#", "parent": 133, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 28}}, {"id": 136, "type": "#endif", "text": "ndif\n", "parent": 130, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}]}, "node_categories": {"declarations": {"functions": [40, 52, 72, 87, 93, 101, 107, 111], "variables": [56, 64, 114], "classes": [21, 22, 41, 42, 53, 54, 67, 69, 81, 94, 108], "imports": [3, 4, 9, 10, 14, 15, 18, 19, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [60, 104, 123, 126], "assignments": [119], "loops": [], "conditionals": [6, 7, 8, 17, 23, 27, 28, 29, 39, 43, 45, 46, 48, 50, 55, 57, 58, 61, 63, 65, 71, 73, 74, 79, 80, 84, 88, 90, 92, 96, 102, 106, 112, 115, 118, 120, 122, 124, 128, 129, 130, 131, 132, 136], "returns": [91, 103], "exceptions": []}, "expressions": {"calls": [0, 30, 33, 36, 133], "literals": [5, 11, 16, 20, 26], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [59]}}, "cross_language_map": {"function_declarations": [{"node_id": 40, "universal_type": "function", "name": "Enum_t2862688501_StaticFields", "text_snippet": "ruct Enum_t2862688501 : public ValueType_t1744280289\n{\npublic:\n\npublic:\n};\n\nstruct Enum_t286268850"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "ruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t"}, {"node_id": 72, "universal_type": "function", "name": "unknown", "text_snippet": "t_offset_of_split_char_0() {"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "t_split_char_0() const {"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "line CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n\t"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "t_address_of_split_char_0() {"}, {"node_id": 107, "universal_type": "function", "name": "set_split_char_0", "text_snippet": "line void set_split_char_0(CharU5BU5D_t3324145743* value)\n\t{\n\t\t___split_char_0 = value;\n\t\tIl2CppCode"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "t_split_char_0(CharU5BU5D_t3324145743* value)\n\t"}], "class_declarations": [{"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "ruct CharU5BU5D_t3324145743;\n"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "ruct C"}, {"node_id": 41, "universal_type": "class", "name": "unknown", "text_snippet": "ruct Enum_t2862688501 "}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "ruct "}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "ruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t"}, {"node_id": 54, "universal_type": "class", "name": "unknown", "text_snippet": "ruct E"}, {"node_id": 67, "universal_type": "class", "name": "unknown", "text_snippet": "line s"}, {"node_id": 69, "universal_type": "class", "name": "unknown", "text_snippet": "atic i"}, {"node_id": 81, "universal_type": "class", "name": "unknown", "text_snippet": "line C"}, {"node_id": 94, "universal_type": "class", "name": "unknown", "text_snippet": "line C"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "line v"}], "import_statements": [{"node_id": 3, "text": "nclude \"il2cpp-config.h\"\n\n#"}, {"node_id": 4, "text": "nclude \""}, {"node_id": 9, "text": "include <alloca.h>\n#e"}, {"node_id": 10, "text": "include <"}, {"node_id": 14, "text": "include <malloc.h>\n#e"}, {"node_id": 15, "text": "include <"}, {"node_id": 18, "text": "nclude <stdint.h>\n\n/"}, {"node_id": 19, "text": "nclude <"}, {"node_id": 24, "text": "nclude \"mscorlib_System_ValueType1744280289.h\"\n\n#"}, {"node_id": 25, "text": "nclude \""}]}, "original_source_code": "\ufeff#pragma once\n\n#include \"il2cpp-config.h\"\n\n#ifndef _MSC_VER\n# include <alloca.h>\n#else\n# include <malloc.h>\n#endif\n\n#include <stdint.h>\n\n// System.Char[]\nstruct CharU5BU5D_t3324145743;\n\n#include \"mscorlib_System_ValueType1744280289.h\"\n\n#ifdef __clang__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Winvalid-offsetof\"\n#pragma clang diagnostic ignored \"-Wunused-variable\"\n#endif\n\n// System.Enum\nstruct Enum_t2862688501 : public ValueType_t1744280289\n{\npublic:\n\npublic:\n};\n\nstruct Enum_t2862688501_StaticFields\n{\npublic:\n\t// System.Char[] System.Enum::split_char\n\tCharU5BU5D_t3324145743* ___split_char_0;\n\npublic:\n\tinline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t2862688501_StaticFields, ___split_char_0)); }\n\tinline CharU5BU5D_t3324145743* get_split_char_0() const { return ___split_char_0; }\n\tinline CharU5BU5D_t3324145743** get_address_of_split_char_0() { return &___split_char_0; }\n\tinline void set_split_char_0(CharU5BU5D_t3324145743* value)\n\t{\n\t\t___split_char_0 = value;\n\t\tIl2CppCodeGenWriteBarrier(&___split_char_0, value);\n\t}\n};\n\n#ifdef __clang__\n#pragma clang diagnostic pop\n#endif\n"}
80,709
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" @class NSMutableDictionary, NSMutableString; @interface APMidasCommonCGIParamsContructor : NSObject { NSMutableDictionary *bodyDict; NSMutableDictionary *encryptDict; NSMutableString *rawPostMessage; } - (void)constructAll; - (void)constructBody; - (void)constructEncrypt; - (void)dealloc; - (id)init; - (void)setEnCryptParam:(id)arg1 key:(id)arg2; - (void)setNeedDeviceInfo:(_Bool)arg1; - (void)setParam:(id)arg1 key:(id)arg2; - (void)setSessionToken:(id)arg1; @end
26.48
23
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n@class NSMutableDictionary, NSMutableString;\n\n@interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyDict;\n NSMutableDictionary *encryptDict;\n NSMutableString *rawPostMessage;\n}\n\n- (void)constructAll;\n- (void)constructBody;\n- (void)constructEncrypt;\n- (void)dealloc;\n- (id)init;\n- (void)setEnCryptParam:(id)arg1 key:(id)arg2;\n- (void)setNeedDeviceInfo:(_Bool)arg1;\n- (void)setParam:(id)arg1 key:(id)arg2;\n- (void)setSessionToken:(id)arg1;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>." (comment) "//" (preproc_call) "#import "NSObject.h"\n" (preproc_directive) "#import" (preproc_arg) ""NSObject.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSMutableDictionary, NSMutableString;" (type_identifier) "class" (identifier) "NSMutableDictionary" (,) "," (identifier) "NSMutableString" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyDict;\n NSMutableDictionary *encryptDict;\n NSMutableString *rawPostMessage;\n}" (type_identifier) "interface" (identifier) "APMidasCommonCGIParamsContructor" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n NSMutableDictionary *bodyDict;\n NSMutableDictionary *encryptDict;\n NSMutableString *rawPostMessage;\n}" ({) "{" (declaration) "NSMutableDictionary *bodyDict;" (type_identifier) "NSMutableDictionary" (pointer_declarator) "*bodyDict" (*) "*" (identifier) "bodyDict" (;) ";" (declaration) "NSMutableDictionary *encryptDict;" (type_identifier) "NSMutableDictionary" (pointer_declarator) "*encryptDict" (*) "*" (identifier) "encryptDict" (;) ";" (declaration) "NSMutableString *rawPostMessage;" (type_identifier) "NSMutableString" (pointer_declarator) "*rawPostMessage" (*) "*" (identifier) "rawPostMessage" (;) ";" (}) "}" (expression_statement) "- (void)constructAll;" (unary_expression) "- (void)constructAll" (-) "-" (cast_expression) "(void)constructAll" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "constructAll" (;) ";" (expression_statement) "- (void)constructBody;" (unary_expression) "- (void)constructBody" (-) "-" (cast_expression) "(void)constructBody" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "constructBody" (;) ";" (expression_statement) "- (void)constructEncrypt;" (unary_expression) "- (void)constructEncrypt" (-) "-" (cast_expression) "(void)constructEncrypt" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "constructEncrypt" (;) ";" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (ERROR) "- (void)setEnCryptParam:(id)" (unary_expression) "- (void)setEnCryptParam" (-) "-" (cast_expression) "(void)setEnCryptParam" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setEnCryptParam" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 key:(id)arg2;" (type_identifier) "arg1" (ERROR) "key:(id)" (identifier) "key" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (void)setNeedDeviceInfo:(_Bool)arg1;" (unary_expression) "- (void)setNeedDeviceInfo" (-) "-" (cast_expression) "(void)setNeedDeviceInfo" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setNeedDeviceInfo" (ERROR) ":(_Bool)arg1" (:) ":" (() "(" (identifier) "_Bool" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)setParam:(id)" (unary_expression) "- (void)setParam" (-) "-" (cast_expression) "(void)setParam" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setParam" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 key:(id)arg2;" (type_identifier) "arg1" (ERROR) "key:(id)" (identifier) "key" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (void)setSessionToken:(id)arg1;" (unary_expression) "- (void)setSessionToken" (-) "-" (cast_expression) "(void)setSessionToken" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setSessionToken" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
179
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 26.48, "nodes": 108, "errors": 0, "source_hash": "024d4376f94008ba26a675507b3ecd26bb95c21796b0afc1e49a370f77de1d5c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"NSObject.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\"NSObject.h\"", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 20}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "declaration", "text": "class NSMutableDictionary, NSMutableString;", "parent": null, "children": [6, 7], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 44}}, {"id": 6, "type": "identifier", "text": "NSMutableDictionary", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 26}}, {"id": 7, "type": "identifier", "text": "NSMutableString", "parent": 5, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 43}}, {"id": 8, "type": "ERROR", "text": "@", "parent": null, "children": [9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "function_definition", "text": "interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyDict;\n NSMutableDictionary *encryptDict;\n NSMutableString *rawPostMessage;\n}", "parent": null, "children": [11, 12, 13], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 15, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "interface", "parent": 10, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 12, "type": "identifier", "text": "APMidasCommonCGIParamsContructor", "parent": 10, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 43}}, {"id": 13, "type": "ERROR", "text": ": NSObject", "parent": 10, "children": [14], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 54}}, {"id": 14, "type": "identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 10, "column": 46}, "end_point": {"row": 10, "column": 54}}, {"id": 15, "type": "declaration", "text": "NSMutableDictionary *bodyDict;", "parent": 10, "children": [16, 17], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 34}}, {"id": 16, "type": "type_identifier", "text": "NSMutableDictionary", "parent": 15, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 23}}, {"id": 17, "type": "pointer_declarator", "text": "*bodyDict", "parent": 15, "children": [18, 19], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 33}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 25}}, {"id": 19, "type": "identifier", "text": "bodyDict", "parent": 17, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 33}}, {"id": 20, "type": "declaration", "text": "NSMutableDictionary *encryptDict;", "parent": 10, "children": [21, 22], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 37}}, {"id": 21, "type": "type_identifier", "text": "NSMutableDictionary", "parent": 20, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 23}}, {"id": 22, "type": "pointer_declarator", "text": "*encryptDict", "parent": 20, "children": [23, 24], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 36}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 25}}, {"id": 24, "type": "identifier", "text": "encryptDict", "parent": 22, "children": [], "start_point": {"row": 13, "column": 25}, "end_point": {"row": 13, "column": 36}}, {"id": 25, "type": "declaration", "text": "NSMutableString *rawPostMessage;", "parent": 10, "children": [26, 27], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 36}}, {"id": 26, "type": "type_identifier", "text": "NSMutableString", "parent": 25, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 19}}, {"id": 27, "type": "pointer_declarator", "text": "*rawPostMessage", "parent": 25, "children": [28, 29], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 35}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 29, "type": "identifier", "text": "rawPostMessage", "parent": 27, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 35}}, {"id": 30, "type": "unary_expression", "text": "- (void)constructAll", "parent": null, "children": [31, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 20}}, {"id": 31, "type": "-", "text": "-", "parent": 30, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 32, "type": "cast_expression", "text": "(void)constructAll", "parent": 30, "children": [33, 35], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 20}}, {"id": 33, "type": "type_descriptor", "text": "void", "parent": 32, "children": [34], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 35, "type": "identifier", "text": "constructAll", "parent": 32, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 20}}, {"id": 36, "type": "unary_expression", "text": "- (void)constructBody", "parent": null, "children": [37, 38], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 21}}, {"id": 37, "type": "-", "text": "-", "parent": 36, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 38, "type": "cast_expression", "text": "(void)constructBody", "parent": 36, "children": [39, 41], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 21}}, {"id": 39, "type": "type_descriptor", "text": "void", "parent": 38, "children": [40], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 7}}, {"id": 41, "type": "identifier", "text": "constructBody", "parent": 38, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 21}}, {"id": 42, "type": "unary_expression", "text": "- (void)constructEncrypt", "parent": null, "children": [43, 44], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 24}}, {"id": 43, "type": "-", "text": "-", "parent": 42, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 44, "type": "cast_expression", "text": "(void)constructEncrypt", "parent": 42, "children": [45, 47], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 24}}, {"id": 45, "type": "type_descriptor", "text": "void", "parent": 44, "children": [46], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 47, "type": "identifier", "text": "constructEncrypt", "parent": 44, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 24}}, {"id": 48, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [49, 50], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 15}}, {"id": 49, "type": "-", "text": "-", "parent": 48, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 50, "type": "cast_expression", "text": "(void)dealloc", "parent": 48, "children": [51, 53], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 15}}, {"id": 51, "type": "type_descriptor", "text": "void", "parent": 50, "children": [52], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 53, "type": "identifier", "text": "dealloc", "parent": 50, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 54, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [55, 56], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 10}}, {"id": 55, "type": "-", "text": "-", "parent": 54, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 56, "type": "cast_expression", "text": "(id)init", "parent": 54, "children": [57, 59], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 10}}, {"id": 57, "type": "type_descriptor", "text": "id", "parent": 56, "children": [58], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 58, "type": "type_identifier", "text": "id", "parent": 57, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 59, "type": "identifier", "text": "init", "parent": 56, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 10}}, {"id": 60, "type": "ERROR", "text": "- (void)setEnCryptParam:(id)", "parent": null, "children": [61, 67], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 28}}, {"id": 61, "type": "unary_expression", "text": "- (void)setEnCryptParam", "parent": 60, "children": [62, 63], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 23}}, {"id": 62, "type": "-", "text": "-", "parent": 61, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 63, "type": "cast_expression", "text": "(void)setEnCryptParam", "parent": 61, "children": [64, 66], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 23}}, {"id": 64, "type": "type_descriptor", "text": "void", "parent": 63, "children": [65], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 66, "type": "identifier", "text": "setEnCryptParam", "parent": 63, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 23}}, {"id": 67, "type": "identifier", "text": "id", "parent": 60, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 27}}, {"id": 68, "type": "declaration", "text": "arg1 key:(id)arg2;", "parent": null, "children": [69, 70, 73], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 46}}, {"id": 69, "type": "type_identifier", "text": "arg1", "parent": 68, "children": [], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 32}}, {"id": 70, "type": "ERROR", "text": "key:(id)", "parent": 68, "children": [71, 72], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 41}}, {"id": 71, "type": "identifier", "text": "key", "parent": 70, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 36}}, {"id": 72, "type": "identifier", "text": "id", "parent": 70, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 40}}, {"id": 73, "type": "identifier", "text": "arg2", "parent": 68, "children": [], "start_point": {"row": 22, "column": 41}, "end_point": {"row": 22, "column": 45}}, {"id": 74, "type": "unary_expression", "text": "- (void)setNeedDeviceInfo", "parent": null, "children": [75, 76], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 25}}, {"id": 75, "type": "-", "text": "-", "parent": 74, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 76, "type": "cast_expression", "text": "(void)setNeedDeviceInfo", "parent": 74, "children": [77, 79], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 25}}, {"id": 77, "type": "type_descriptor", "text": "void", "parent": 76, "children": [78], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 79, "type": "identifier", "text": "setNeedDeviceInfo", "parent": 76, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 25}}, {"id": 80, "type": "ERROR", "text": ":(_Bool)arg1", "parent": null, "children": [81, 82], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 37}}, {"id": 81, "type": "identifier", "text": "_Bool", "parent": 80, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 32}}, {"id": 82, "type": "identifier", "text": "arg1", "parent": 80, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 37}}, {"id": 83, "type": "ERROR", "text": "- (void)setParam:(id)", "parent": null, "children": [84, 90], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 21}}, {"id": 84, "type": "unary_expression", "text": "- (void)setParam", "parent": 83, "children": [85, 86], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 16}}, {"id": 85, "type": "-", "text": "-", "parent": 84, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 86, "type": "cast_expression", "text": "(void)setParam", "parent": 84, "children": [87, 89], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 16}}, {"id": 87, "type": "type_descriptor", "text": "void", "parent": 86, "children": [88], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 88, "type": "primitive_type", "text": "void", "parent": 87, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 89, "type": "identifier", "text": "setParam", "parent": 86, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 16}}, {"id": 90, "type": "identifier", "text": "id", "parent": 83, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 91, "type": "declaration", "text": "arg1 key:(id)arg2;", "parent": null, "children": [92, 93, 96], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 39}}, {"id": 92, "type": "type_identifier", "text": "arg1", "parent": 91, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 25}}, {"id": 93, "type": "ERROR", "text": "key:(id)", "parent": 91, "children": [94, 95], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 34}}, {"id": 94, "type": "identifier", "text": "key", "parent": 93, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 29}}, {"id": 95, "type": "identifier", "text": "id", "parent": 93, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 96, "type": "identifier", "text": "arg2", "parent": 91, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 38}}, {"id": 97, "type": "unary_expression", "text": "- (void)setSessionToken", "parent": null, "children": [98, 99], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 23}}, {"id": 98, "type": "-", "text": "-", "parent": 97, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 99, "type": "cast_expression", "text": "(void)setSessionToken", "parent": 97, "children": [100, 102], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 23}}, {"id": 100, "type": "type_descriptor", "text": "void", "parent": 99, "children": [101], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 101, "type": "primitive_type", "text": "void", "parent": 100, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 7}}, {"id": 102, "type": "identifier", "text": "setSessionToken", "parent": 99, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 23}}, {"id": 103, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [104, 105], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 32}}, {"id": 104, "type": "identifier", "text": "id", "parent": 103, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 27}}, {"id": 105, "type": "identifier", "text": "arg1", "parent": 103, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 106, "type": "ERROR", "text": "@", "parent": null, "children": [107], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 107, "type": "ERROR", "text": "@", "parent": 106, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}]}, "node_categories": {"declarations": {"functions": [10], "variables": [5, 15, 20, 25, 68, 91], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [30, 32, 36, 38, 42, 44, 48, 50, 54, 56, 61, 63, 74, 76, 84, 86, 97, 99], "assignments": [], "loops": [], "conditionals": [6, 7, 11, 12, 14, 16, 19, 21, 24, 26, 29, 35, 41, 47, 53, 58, 59, 66, 67, 69, 71, 72, 73, 79, 81, 82, 89, 90, 92, 94, 95, 96, 102, 104, 105], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "APMidasCommonCGIParamsContructor", "text_snippet": "interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyDict;\n NSMut"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import \"NSObject.h\"\n\n@class NSMutableDictionary, NSMutableString;\n\n@interface APMidasCommonCGIParamsContructor : NSObject\n{\n NSMutableDictionary *bodyDict;\n NSMutableDictionary *encryptDict;\n NSMutableString *rawPostMessage;\n}\n\n- (void)constructAll;\n- (void)constructBody;\n- (void)constructEncrypt;\n- (void)dealloc;\n- (id)init;\n- (void)setEnCryptParam:(id)arg1 key:(id)arg2;\n- (void)setNeedDeviceInfo:(_Bool)arg1;\n- (void)setParam:(id)arg1 key:(id)arg2;\n- (void)setSessionToken:(id)arg1;\n\n@end\n\n"}
80,710
c
// // TCSController.h // TomcatSlapper // // Created by <NAME> on 9/20/04. // Copyright 2004 Fivesquare Software, LLC. All rights reserved. // #import <Cocoa/Cocoa.h> @class TCSToolbarDelegate; @class TCSCatSlapper; @class TCSPrefController; @class TCSConsoleView; @class TCSKitty; @interface TCSController : NSObject { //interface BOOL infoIsClosed; BOOL consoleIsClosed; NSSize minSizeClosed; NSSize minSizeOpen; IBOutlet NSWindow *mainWin; IBOutlet NSWindow *entryWin; IBOutlet NSWindow *licensePanel; IBOutlet NSWindow *registrationPanel; IBOutlet NSWindow *newVersionPanel; IBOutlet NSTextView *licenseTextView; IBOutlet NSMenuItem *toggleControllerMenuItem; IBOutlet NSMenuItem *toggleInstallerMenuItem; IBOutlet NSWindow *enableACLsPanel; IBOutlet NSWindow *okToRunPrivilegedPanel; IBOutlet NSWindow *okToRepairPermissionsPanel; IBOutlet NSToolbar *toolbar; IBOutlet TCSToolbarDelegate *toolbarDelegate; IBOutlet NSTabView *tabView; IBOutlet TCSConsoleView *consoleView; IBOutlet NSScrollView *consoleScrollView; IBOutlet NSTextField *catalinaOptsField; IBOutlet NSTextField *entryField; IBOutlet NSButton *toggleUseDefaultsSwitch; //model objects IBOutlet TCSCatSlapper *slapper; IBOutlet NSArrayController *kittyController; NSMenu *dockMenu; // alerts NSAlert *badRegInfoAlert; NSAlert *latestVersionAlert; NSAlert *cantUseSytemDaemonsAlert; NSAlert *enablingACLsFailedAlert; NSAlert *syncingLaunchDaemonsFailedAlert; NSAlert *repairingPermissionsFailedAlert; } - (void) drawBackground; - (void) drawOpenInto:(NSImage *)bg; - (void) drawClosedInto:(NSImage *)bg; - (IBAction) clearConsole:(id)sender; - (IBAction) showPreferences:(id)sender; - (IBAction) displayServerConfigErrors:(id)sender; - (IBAction) selectServerTab:(id)sender; - (IBAction) selectEnvironmentTab:(id)sender; - (IBAction) selectComponentsTab:(id)sender; - (IBAction) browse:(id)sender; - (IBAction) editOpts:(id)sender; - (IBAction) didEndEditOpts:(id)sender; - (IBAction) toggleController:(id)sender; - (IBAction) toggleInstaller:(id)sender; - (IBAction) toggleInfo:(id)sender; - (IBAction) toggleConsole:(id)sender; - (IBAction) askUserIfWeCanInstallACLs:(id)sender; - (IBAction) cancelACLInstall:(id)sender; - (IBAction) proceedWithACLInstall:(id)sender; - (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender; - (IBAction) warnUserThatEnablingACLsFailed:(id)sender; - (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ; - (IBAction) askUserIfWeCanRunPrivileged:(id)sender; - (IBAction) cancelRunPrivileged:(id)sender; - (IBAction) proceedToRunPrivileged:(id)sender; - (IBAction) askUserIfWeCanRepairPermissions:(id)sender; - (IBAction) cancelRepairPermissions:(id)sender; - (IBAction) proceedToRepairPermissions:(id)sender; - (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender; - (BOOL) MacOSPantherOrBetter; - (BOOL) MacOSTigerOrBetter; - (void) shutdownUnsupportedPlatform; - (void) meow; - (void) checkForNewVersion:(BOOL)forced; - (void) signalNotification:(NSNotification *)notification; - (IBAction) visitFivesquare:(id)sender; - (IBAction) displayManagerHelp:(id)sender; - (IBAction) displayACLHelp:(id)sender; - (IBAction) displayRunningPrivilegedHelp:(id)sender; - (IBAction) displayRepairPermissionsHelp:(id)sender; - (IBAction) openAcknowledgements:(id)sender; - (IBAction) openLicense:(id)sender; - (IBAction) openTomcatDocs:(id)sender; - (IBAction) openRunningTomcat:(id)sender; - (IBAction) openTomcatWebsite:(id)sender; - (IBAction) sendCatSlapperFeedback:(id)sender; - (IBAction) newVersionCheck:(id)sender; - (IBAction) askUserIfWeCanGetNewVersion:(id)sender; - (IBAction) cancelGetNewVersion:(id)sender; - (IBAction) getNewVersion:(id)sender; - (void) registerObservations; - (void) removeObservations; @end
35.04
109
(translation_unit) "//\n// TCSController.h\n// TomcatSlapper\n//\n// Created by <NAME> on 9/20/04.\n// Copyright 2004 Fivesquare Software, LLC. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class TCSToolbarDelegate;\n@class TCSCatSlapper;\n@class TCSPrefController;\n@class TCSConsoleView;\n@class TCSKitty;\n\n@interface TCSController : NSObject {\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsClosed; \n NSSize minSizeClosed;\n NSSize minSizeOpen;\n\n IBOutlet NSWindow *mainWin;\n IBOutlet NSWindow *entryWin;\n IBOutlet NSWindow *licensePanel;\n IBOutlet NSWindow *registrationPanel;\n IBOutlet NSWindow *newVersionPanel;\n IBOutlet NSTextView *licenseTextView;\n IBOutlet NSMenuItem *toggleControllerMenuItem;\n IBOutlet NSMenuItem *toggleInstallerMenuItem;\n IBOutlet NSWindow *enableACLsPanel;\n IBOutlet NSWindow *okToRunPrivilegedPanel;\n IBOutlet NSWindow *okToRepairPermissionsPanel;\n\n IBOutlet NSToolbar *toolbar;\n IBOutlet TCSToolbarDelegate *toolbarDelegate;\n \n IBOutlet NSTabView *tabView;\n IBOutlet TCSConsoleView *consoleView;\n IBOutlet NSScrollView *consoleScrollView;\n \n IBOutlet NSTextField *catalinaOptsField;\n IBOutlet NSTextField *entryField;\n IBOutlet NSButton *toggleUseDefaultsSwitch;\n \n //model objects\n IBOutlet TCSCatSlapper *slapper;\n IBOutlet NSArrayController *kittyController;\n\n NSMenu *dockMenu;\n \n // alerts\n NSAlert *badRegInfoAlert;\n NSAlert *latestVersionAlert;\n NSAlert *cantUseSytemDaemonsAlert;\n NSAlert *enablingACLsFailedAlert;\n NSAlert *syncingLaunchDaemonsFailedAlert;\n NSAlert *repairingPermissionsFailedAlert;\n \n}\n\n- (void) drawBackground;\n- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter;\n- (BOOL) MacOSTigerOrBetter;\n- (void) shutdownUnsupportedPlatform;\n- (void) meow;\n- (void) checkForNewVersion:(BOOL)forced;\n- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations;\n- (void) removeObservations; \n\n@end\n" (comment) "//" (comment) "// TCSController.h" (comment) "// TomcatSlapper" (comment) "//" (comment) "// Created by <NAME> on 9/20/04." (comment) "// Copyright 2004 Fivesquare Software, LLC. All rights reserved." (comment) "//" (preproc_call) "#import <Cocoa/Cocoa.h>\n" (preproc_directive) "#import" (preproc_arg) "<Cocoa/Cocoa.h>" (ERROR) "@" (ERROR) "@" (declaration) "class TCSToolbarDelegate;" (type_identifier) "class" (identifier) "TCSToolbarDelegate" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "class TCSCatSlapper;" (type_identifier) "class" (identifier) "TCSCatSlapper" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "class TCSPrefController;" (type_identifier) "class" (identifier) "TCSPrefController" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "class TCSConsoleView;" (type_identifier) "class" (identifier) "TCSConsoleView" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "class TCSKitty;" (type_identifier) "class" (identifier) "TCSKitty" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface TCSController : NSObject {\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsClosed; \n NSSize minSizeClosed;\n NSSize minSizeOpen;\n\n IBOutlet NSWindow *mainWin;\n IBOutlet NSWindow *entryWin;\n IBOutlet NSWindow *licensePanel;\n IBOutlet NSWindow *registrationPanel;\n IBOutlet NSWindow *newVersionPanel;\n IBOutlet NSTextView *licenseTextView;\n IBOutlet NSMenuItem *toggleControllerMenuItem;\n IBOutlet NSMenuItem *toggleInstallerMenuItem;\n IBOutlet NSWindow *enableACLsPanel;\n IBOutlet NSWindow *okToRunPrivilegedPanel;\n IBOutlet NSWindow *okToRepairPermissionsPanel;\n\n IBOutlet NSToolbar *toolbar;\n IBOutlet TCSToolbarDelegate *toolbarDelegate;\n \n IBOutlet NSTabView *tabView;\n IBOutlet TCSConsoleView *consoleView;\n IBOutlet NSScrollView *consoleScrollView;\n \n IBOutlet NSTextField *catalinaOptsField;\n IBOutlet NSTextField *entryField;\n IBOutlet NSButton *toggleUseDefaultsSwitch;\n \n //model objects\n IBOutlet TCSCatSlapper *slapper;\n IBOutlet NSArrayController *kittyController;\n\n NSMenu *dockMenu;\n \n // alerts\n NSAlert *badRegInfoAlert;\n NSAlert *latestVersionAlert;\n NSAlert *cantUseSytemDaemonsAlert;\n NSAlert *enablingACLsFailedAlert;\n NSAlert *syncingLaunchDaemonsFailedAlert;\n NSAlert *repairingPermissionsFailedAlert;\n \n}" (type_identifier) "interface" (identifier) "TCSController" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsClosed; \n NSSize minSizeClosed;\n NSSize minSizeOpen;\n\n IBOutlet NSWindow *mainWin;\n IBOutlet NSWindow *entryWin;\n IBOutlet NSWindow *licensePanel;\n IBOutlet NSWindow *registrationPanel;\n IBOutlet NSWindow *newVersionPanel;\n IBOutlet NSTextView *licenseTextView;\n IBOutlet NSMenuItem *toggleControllerMenuItem;\n IBOutlet NSMenuItem *toggleInstallerMenuItem;\n IBOutlet NSWindow *enableACLsPanel;\n IBOutlet NSWindow *okToRunPrivilegedPanel;\n IBOutlet NSWindow *okToRepairPermissionsPanel;\n\n IBOutlet NSToolbar *toolbar;\n IBOutlet TCSToolbarDelegate *toolbarDelegate;\n \n IBOutlet NSTabView *tabView;\n IBOutlet TCSConsoleView *consoleView;\n IBOutlet NSScrollView *consoleScrollView;\n \n IBOutlet NSTextField *catalinaOptsField;\n IBOutlet NSTextField *entryField;\n IBOutlet NSButton *toggleUseDefaultsSwitch;\n \n //model objects\n IBOutlet TCSCatSlapper *slapper;\n IBOutlet NSArrayController *kittyController;\n\n NSMenu *dockMenu;\n \n // alerts\n NSAlert *badRegInfoAlert;\n NSAlert *latestVersionAlert;\n NSAlert *cantUseSytemDaemonsAlert;\n NSAlert *enablingACLsFailedAlert;\n NSAlert *syncingLaunchDaemonsFailedAlert;\n NSAlert *repairingPermissionsFailedAlert;\n \n}" ({) "{" (comment) "//interface" (declaration) "BOOL infoIsClosed;" (type_identifier) "BOOL" (identifier) "infoIsClosed" (;) ";" (declaration) "BOOL consoleIsClosed;" (type_identifier) "BOOL" (identifier) "consoleIsClosed" (;) ";" (declaration) "NSSize minSizeClosed;" (type_identifier) "NSSize" (identifier) "minSizeClosed" (;) ";" (declaration) "NSSize minSizeOpen;" (type_identifier) "NSSize" (identifier) "minSizeOpen" (;) ";" (declaration) "IBOutlet NSWindow *mainWin;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*mainWin" (*) "*" (identifier) "mainWin" (;) ";" (declaration) "IBOutlet NSWindow *entryWin;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*entryWin" (*) "*" (identifier) "entryWin" (;) ";" (declaration) "IBOutlet NSWindow *licensePanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*licensePanel" (*) "*" (identifier) "licensePanel" (;) ";" (declaration) "IBOutlet NSWindow *registrationPanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*registrationPanel" (*) "*" (identifier) "registrationPanel" (;) ";" (declaration) "IBOutlet NSWindow *newVersionPanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*newVersionPanel" (*) "*" (identifier) "newVersionPanel" (;) ";" (declaration) "IBOutlet NSTextView *licenseTextView;" (type_identifier) "IBOutlet" (ERROR) "NSTextView" (identifier) "NSTextView" (pointer_declarator) "*licenseTextView" (*) "*" (identifier) "licenseTextView" (;) ";" (declaration) "IBOutlet NSMenuItem *toggleControllerMenuItem;" (type_identifier) "IBOutlet" (ERROR) "NSMenuItem" (identifier) "NSMenuItem" (pointer_declarator) "*toggleControllerMenuItem" (*) "*" (identifier) "toggleControllerMenuItem" (;) ";" (declaration) "IBOutlet NSMenuItem *toggleInstallerMenuItem;" (type_identifier) "IBOutlet" (ERROR) "NSMenuItem" (identifier) "NSMenuItem" (pointer_declarator) "*toggleInstallerMenuItem" (*) "*" (identifier) "toggleInstallerMenuItem" (;) ";" (declaration) "IBOutlet NSWindow *enableACLsPanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*enableACLsPanel" (*) "*" (identifier) "enableACLsPanel" (;) ";" (declaration) "IBOutlet NSWindow *okToRunPrivilegedPanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*okToRunPrivilegedPanel" (*) "*" (identifier) "okToRunPrivilegedPanel" (;) ";" (declaration) "IBOutlet NSWindow *okToRepairPermissionsPanel;" (type_identifier) "IBOutlet" (ERROR) "NSWindow" (identifier) "NSWindow" (pointer_declarator) "*okToRepairPermissionsPanel" (*) "*" (identifier) "okToRepairPermissionsPanel" (;) ";" (declaration) "IBOutlet NSToolbar *toolbar;" (type_identifier) "IBOutlet" (ERROR) "NSToolbar" (identifier) "NSToolbar" (pointer_declarator) "*toolbar" (*) "*" (identifier) "toolbar" (;) ";" (declaration) "IBOutlet TCSToolbarDelegate" (type_identifier) "IBOutlet" (identifier) "TCSToolbarDelegate" (;) "" (expression_statement) "*toolbarDelegate;" (pointer_expression) "*toolbarDelegate" (*) "*" (identifier) "toolbarDelegate" (;) ";" (declaration) "IBOutlet NSTabView *tabView;" (type_identifier) "IBOutlet" (ERROR) "NSTabView" (identifier) "NSTabView" (pointer_declarator) "*tabView" (*) "*" (identifier) "tabView" (;) ";" (declaration) "IBOutlet TCSConsoleView" (type_identifier) "IBOutlet" (identifier) "TCSConsoleView" (;) "" (expression_statement) "*consoleView;" (pointer_expression) "*consoleView" (*) "*" (identifier) "consoleView" (;) ";" (declaration) "IBOutlet NSScrollView" (type_identifier) "IBOutlet" (identifier) "NSScrollView" (;) "" (expression_statement) "*consoleScrollView;" (pointer_expression) "*consoleScrollView" (*) "*" (identifier) "consoleScrollView" (;) ";" (declaration) "IBOutlet NSTextField" (type_identifier) "IBOutlet" (identifier) "NSTextField" (;) "" (expression_statement) "*catalinaOptsField;" (pointer_expression) "*catalinaOptsField" (*) "*" (identifier) "catalinaOptsField" (;) ";" (declaration) "IBOutlet NSTextField" (type_identifier) "IBOutlet" (identifier) "NSTextField" (;) "" (expression_statement) "*entryField;" (pointer_expression) "*entryField" (*) "*" (identifier) "entryField" (;) ";" (declaration) "IBOutlet NSButton *toggleUseDefaultsSwitch;" (type_identifier) "IBOutlet" (ERROR) "NSButton" (identifier) "NSButton" (pointer_declarator) "*toggleUseDefaultsSwitch" (*) "*" (identifier) "toggleUseDefaultsSwitch" (;) ";" (comment) "//model objects" (declaration) "IBOutlet TCSCatSlapper" (type_identifier) "IBOutlet" (identifier) "TCSCatSlapper" (;) "" (expression_statement) "*slapper;" (pointer_expression) "*slapper" (*) "*" (identifier) "slapper" (;) ";" (declaration) "IBOutlet NSArrayController" (type_identifier) "IBOutlet" (identifier) "NSArrayController" (;) "" (expression_statement) "*kittyController;" (pointer_expression) "*kittyController" (*) "*" (identifier) "kittyController" (;) ";" (declaration) "NSMenu *dockMenu;" (type_identifier) "NSMenu" (pointer_declarator) "*dockMenu" (*) "*" (identifier) "dockMenu" (;) ";" (comment) "// alerts" (declaration) "NSAlert *badRegInfoAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*badRegInfoAlert" (*) "*" (identifier) "badRegInfoAlert" (;) ";" (declaration) "NSAlert *latestVersionAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*latestVersionAlert" (*) "*" (identifier) "latestVersionAlert" (;) ";" (declaration) "NSAlert *cantUseSytemDaemonsAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*cantUseSytemDaemonsAlert" (*) "*" (identifier) "cantUseSytemDaemonsAlert" (;) ";" (declaration) "NSAlert *enablingACLsFailedAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*enablingACLsFailedAlert" (*) "*" (identifier) "enablingACLsFailedAlert" (;) ";" (declaration) "NSAlert *syncingLaunchDaemonsFailedAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*syncingLaunchDaemonsFailedAlert" (*) "*" (identifier) "syncingLaunchDaemonsFailedAlert" (;) ";" (declaration) "NSAlert *repairingPermissionsFailedAlert;" (type_identifier) "NSAlert" (pointer_declarator) "*repairingPermissionsFailedAlert" (*) "*" (identifier) "repairingPermissionsFailedAlert" (;) ";" (}) "}" (expression_statement) "- (void) drawBackground;" (unary_expression) "- (void) drawBackground" (-) "-" (cast_expression) "(void) drawBackground" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "drawBackground" (;) ";" (expression_statement) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter;" (update_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto" (binary_expression) "- (void) drawOpenInto:(NSImage *)bg" (unary_expression) "- (void) drawOpenInto" (-) "-" (cast_expression) "(void) drawOpenInto" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "drawOpenInto" (ERROR) ":(NSImage" (:) ":" (() "(" (identifier) "NSImage" (*) "*" (ERROR) ")" ()) ")" (identifier) "bg" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(void) drawClosedInto" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "drawClosedInto" (ERROR) ":(NSImage" (:) ":" (() "(" (identifier) "NSImage" (*) "*" (ERROR) ")" ()) ")" (identifier) "bg" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(IBAction) clearConsole" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "clearConsole" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) showPreferences" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "showPreferences" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) displayServerConfigErrors" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "displayServerConfigErrors" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) selectServerTab" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "selectServerTab" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) selectEnvironmentTab" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "selectEnvironmentTab" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) selectComponentsTab" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "selectComponentsTab" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) browse" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "browse" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) editOpts" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "editOpts" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) didEndEditOpts" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "didEndEditOpts" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) toggleController" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "toggleController" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) toggleInstaller" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "toggleInstaller" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) toggleInfo" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "toggleInfo" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) toggleConsole" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "toggleConsole" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) askUserIfWeCanInstallACLs" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "askUserIfWeCanInstallACLs" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) cancelACLInstall" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "cancelACLInstall" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) proceedWithACLInstall" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "proceedWithACLInstall" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) warnUserTheyCantUseSystemDaemons" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "warnUserTheyCantUseSystemDaemons" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) warnUserThatEnablingACLsFailed" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "warnUserThatEnablingACLsFailed" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) warnUserThatSyncingLaunchDaemonsFailed" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "warnUserThatSyncingLaunchDaemonsFailed" (ERROR) ":(id)sender ;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) askUserIfWeCanRunPrivileged" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "askUserIfWeCanRunPrivileged" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) cancelRunPrivileged" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "cancelRunPrivileged" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) proceedToRunPrivileged" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "proceedToRunPrivileged" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) askUserIfWeCanRepairPermissions" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "askUserIfWeCanRepairPermissions" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) cancelRepairPermissions" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "cancelRepairPermissions" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) proceedToRepairPermissions" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "proceedToRepairPermissions" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) warnUserThatRepairingPermissionsFailed" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "warnUserThatRepairingPermissionsFailed" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(BOOL) MacOSPantherOrBetter" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "MacOSPantherOrBetter" (--) "" (;) ";" (expression_statement) "- (BOOL) MacOSTigerOrBetter;" (unary_expression) "- (BOOL) MacOSTigerOrBetter" (-) "-" (cast_expression) "(BOOL) MacOSTigerOrBetter" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "MacOSTigerOrBetter" (;) ";" (expression_statement) "- (void) shutdownUnsupportedPlatform;" (unary_expression) "- (void) shutdownUnsupportedPlatform" (-) "-" (cast_expression) "(void) shutdownUnsupportedPlatform" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "shutdownUnsupportedPlatform" (;) ";" (expression_statement) "- (void) meow;" (unary_expression) "- (void) meow" (-) "-" (cast_expression) "(void) meow" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "meow" (;) ";" (expression_statement) "- (void) checkForNewVersion:(BOOL)forced;" (unary_expression) "- (void) checkForNewVersion" (-) "-" (cast_expression) "(void) checkForNewVersion" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "checkForNewVersion" (ERROR) ":(BOOL)forced" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "forced" (;) ";" (expression_statement) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations;" (update_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp" (binary_expression) "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare" (binary_expression) "- (void) signalNotification:(NSNotification *)notification" (unary_expression) "- (void) signalNotification" (-) "-" (cast_expression) "(void) signalNotification" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "signalNotification" (ERROR) ":(NSNotification" (:) ":" (() "(" (identifier) "NSNotification" (*) "*" (ERROR) ")" ()) ")" (identifier) "notification" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(IBAction) visitFivesquare" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "visitFivesquare" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) displayManagerHelp" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "displayManagerHelp" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) displayACLHelp" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "displayACLHelp" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) displayRunningPrivilegedHelp" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "displayRunningPrivilegedHelp" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) displayRepairPermissionsHelp" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "displayRepairPermissionsHelp" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) openAcknowledgements" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "openAcknowledgements" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) openLicense" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "openLicense" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) openTomcatDocs" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "openTomcatDocs" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) openRunningTomcat" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "openRunningTomcat" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) openTomcatWebsite" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "openTomcatWebsite" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) sendCatSlapperFeedback" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "sendCatSlapperFeedback" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) newVersionCheck" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "newVersionCheck" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) askUserIfWeCanGetNewVersion" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "askUserIfWeCanGetNewVersion" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) cancelGetNewVersion" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "cancelGetNewVersion" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(IBAction) getNewVersion" (() "(" (type_descriptor) "IBAction" (type_identifier) "IBAction" ()) ")" (identifier) "getNewVersion" (ERROR) ":(id)sender;" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "sender" (;) ";" (-) "-" (cast_expression) "(void) registerObservations" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "registerObservations" (--) "" (;) ";" (expression_statement) "- (void) removeObservations;" (unary_expression) "- (void) removeObservations" (-) "-" (cast_expression) "(void) removeObservations" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "removeObservations" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
1,055
80
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 35.04, "nodes": 676, "errors": 0, "source_hash": "b74033aa4bcef5a8302189a7aa91f0314a64e8d9277b9bb7db3cba1fa3d1eec9", "categorized_nodes": 433}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Cocoa/Cocoa.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": "<Cocoa/Cocoa.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "class TCSToolbarDelegate;", "parent": null, "children": [6], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 26}}, {"id": 6, "type": "identifier", "text": "TCSToolbarDelegate", "parent": 5, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 25}}, {"id": 7, "type": "ERROR", "text": "@", "parent": null, "children": [8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 8, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 9, "type": "declaration", "text": "class TCSCatSlapper;", "parent": null, "children": [10], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 21}}, {"id": 10, "type": "identifier", "text": "TCSCatSlapper", "parent": 9, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 20}}, {"id": 11, "type": "ERROR", "text": "@", "parent": null, "children": [12], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 12, "type": "ERROR", "text": "@", "parent": 11, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 13, "type": "declaration", "text": "class TCSPrefController;", "parent": null, "children": [14], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 25}}, {"id": 14, "type": "identifier", "text": "TCSPrefController", "parent": 13, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 24}}, {"id": 15, "type": "ERROR", "text": "@", "parent": null, "children": [16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 17, "type": "declaration", "text": "class TCSConsoleView;", "parent": null, "children": [18], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 22}}, {"id": 18, "type": "identifier", "text": "TCSConsoleView", "parent": 17, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 21}}, {"id": 19, "type": "ERROR", "text": "@", "parent": null, "children": [20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "ERROR", "text": "@", "parent": 19, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 21, "type": "declaration", "text": "class TCSKitty;", "parent": null, "children": [22], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 16}}, {"id": 22, "type": "identifier", "text": "TCSKitty", "parent": 21, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 15}}, {"id": 23, "type": "ERROR", "text": "@", "parent": null, "children": [24], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 24, "type": "ERROR", "text": "@", "parent": 23, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 25, "type": "function_definition", "text": "interface TCSController : NSObject {\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsClosed; \n NSSize minSizeClosed;\n NSSize minSizeOpen;\n\n IBOutlet NSWindow *mainWin;\n IBOutlet NSWindow *entryWin;\n IBOutlet NSWindow *licensePanel;\n IBOutlet NSWindow *registrationPanel;\n IBOutlet NSWindow *newVersionPanel;\n IBOutlet NSTextView *licenseTextView;\n IBOutlet NSMenuItem *toggleControllerMenuItem;\n IBOutlet NSMenuItem *toggleInstallerMenuItem;\n IBOutlet NSWindow *enableACLsPanel;\n IBOutlet NSWindow *okToRunPrivilegedPanel;\n IBOutlet NSWindow *okToRepairPermissionsPanel;\n\n IBOutlet NSToolbar *toolbar;\n IBOutlet TCSToolbarDelegate *toolbarDelegate;\n \n IBOutlet NSTabView *tabView;\n IBOutlet TCSConsoleView *consoleView;\n IBOutlet NSScrollView *consoleScrollView;\n \n IBOutlet NSTextField *catalinaOptsField;\n IBOutlet NSTextField *entryField;\n IBOutlet NSButton *toggleUseDefaultsSwitch;\n \n //model objects\n IBOutlet TCSCatSlapper *slapper;\n IBOutlet NSArrayController *kittyController;\n\n NSMenu *dockMenu;\n \n // alerts\n NSAlert *badRegInfoAlert;\n NSAlert *latestVersionAlert;\n NSAlert *cantUseSytemDaemonsAlert;\n NSAlert *enablingACLsFailedAlert;\n NSAlert *syncingLaunchDaemonsFailedAlert;\n NSAlert *repairingPermissionsFailedAlert;\n \n}", "parent": null, "children": [26, 27, 28], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 60, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "interface", "parent": 25, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 27, "type": "identifier", "text": "TCSController", "parent": 25, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 24}}, {"id": 28, "type": "ERROR", "text": ": NSObject", "parent": 25, "children": [29], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 35}}, {"id": 29, "type": "identifier", "text": "NSObject", "parent": 28, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 35}}, {"id": 30, "type": "declaration", "text": "BOOL infoIsClosed;", "parent": 25, "children": [31, 32], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 22}}, {"id": 31, "type": "type_identifier", "text": "BOOL", "parent": 30, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 32, "type": "identifier", "text": "infoIsClosed", "parent": 30, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 21}}, {"id": 33, "type": "declaration", "text": "BOOL consoleIsClosed;", "parent": 25, "children": [34, 35], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 25}}, {"id": 34, "type": "type_identifier", "text": "BOOL", "parent": 33, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 35, "type": "identifier", "text": "consoleIsClosed", "parent": 33, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 24}}, {"id": 36, "type": "declaration", "text": "NSSize minSizeClosed;", "parent": 25, "children": [37, 38], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 25}}, {"id": 37, "type": "type_identifier", "text": "NSSize", "parent": 36, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 38, "type": "identifier", "text": "minSizeClosed", "parent": 36, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 24}}, {"id": 39, "type": "declaration", "text": "NSSize minSizeOpen;", "parent": 25, "children": [40, 41], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 23}}, {"id": 40, "type": "type_identifier", "text": "NSSize", "parent": 39, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 41, "type": "identifier", "text": "minSizeOpen", "parent": 39, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 22}}, {"id": 42, "type": "declaration", "text": "IBOutlet NSWindow *mainWin;", "parent": 25, "children": [43, 44, 46], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 31}}, {"id": 43, "type": "type_identifier", "text": "IBOutlet", "parent": 42, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 12}}, {"id": 44, "type": "ERROR", "text": "NSWindow", "parent": 42, "children": [45], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 21}}, {"id": 45, "type": "identifier", "text": "NSWindow", "parent": 44, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 21}}, {"id": 46, "type": "pointer_declarator", "text": "*mainWin", "parent": 42, "children": [47, 48], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 30}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 23}}, {"id": 48, "type": "identifier", "text": "mainWin", "parent": 46, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 30}}, {"id": 49, "type": "declaration", "text": "IBOutlet NSWindow *entryWin;", "parent": 25, "children": [50, 51, 53], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 32}}, {"id": 50, "type": "type_identifier", "text": "IBOutlet", "parent": 49, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 51, "type": "ERROR", "text": "NSWindow", "parent": 49, "children": [52], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 52, "type": "identifier", "text": "NSWindow", "parent": 51, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 53, "type": "pointer_declarator", "text": "*entryWin", "parent": 49, "children": [54, 55], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 31}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 55, "type": "identifier", "text": "entryWin", "parent": 53, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 31}}, {"id": 56, "type": "declaration", "text": "IBOutlet NSWindow *licensePanel;", "parent": 25, "children": [57, 58, 60], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 36}}, {"id": 57, "type": "type_identifier", "text": "IBOutlet", "parent": 56, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 58, "type": "ERROR", "text": "NSWindow", "parent": 56, "children": [59], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 21}}, {"id": 59, "type": "identifier", "text": "NSWindow", "parent": 58, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 21}}, {"id": 60, "type": "pointer_declarator", "text": "*licensePanel", "parent": 56, "children": [61, 62], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 35}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 23}}, {"id": 62, "type": "identifier", "text": "licensePanel", "parent": 60, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 35}}, {"id": 63, "type": "declaration", "text": "IBOutlet NSWindow *registrationPanel;", "parent": 25, "children": [64, 65, 67], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 41}}, {"id": 64, "type": "type_identifier", "text": "IBOutlet", "parent": 63, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 12}}, {"id": 65, "type": "ERROR", "text": "NSWindow", "parent": 63, "children": [66], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 21}}, {"id": 66, "type": "identifier", "text": "NSWindow", "parent": 65, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 21}}, {"id": 67, "type": "pointer_declarator", "text": "*registrationPanel", "parent": 63, "children": [68, 69], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 40}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 69, "type": "identifier", "text": "registrationPanel", "parent": 67, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 40}}, {"id": 70, "type": "declaration", "text": "IBOutlet NSWindow *newVersionPanel;", "parent": 25, "children": [71, 72, 74], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 39}}, {"id": 71, "type": "type_identifier", "text": "IBOutlet", "parent": 70, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 72, "type": "ERROR", "text": "NSWindow", "parent": 70, "children": [73], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 21}}, {"id": 73, "type": "identifier", "text": "NSWindow", "parent": 72, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 21}}, {"id": 74, "type": "pointer_declarator", "text": "*newVersionPanel", "parent": 70, "children": [75, 76], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 38}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 76, "type": "identifier", "text": "newVersionPanel", "parent": 74, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 38}}, {"id": 77, "type": "declaration", "text": "IBOutlet NSTextView *licenseTextView;", "parent": 25, "children": [78, 79, 81], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 41}}, {"id": 78, "type": "type_identifier", "text": "IBOutlet", "parent": 77, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 12}}, {"id": 79, "type": "ERROR", "text": "NSTextView", "parent": 77, "children": [80], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 23}}, {"id": 80, "type": "identifier", "text": "NSTextView", "parent": 79, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 23}}, {"id": 81, "type": "pointer_declarator", "text": "*licenseTextView", "parent": 77, "children": [82, 83], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 40}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 83, "type": "identifier", "text": "licenseTextView", "parent": 81, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 40}}, {"id": 84, "type": "declaration", "text": "IBOutlet NSMenuItem *toggleControllerMenuItem;", "parent": 25, "children": [85, 86, 88], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 50}}, {"id": 85, "type": "type_identifier", "text": "IBOutlet", "parent": 84, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 12}}, {"id": 86, "type": "ERROR", "text": "NSMenuItem", "parent": 84, "children": [87], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 23}}, {"id": 87, "type": "identifier", "text": "NSMenuItem", "parent": 86, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 23}}, {"id": 88, "type": "pointer_declarator", "text": "*toggleControllerMenuItem", "parent": 84, "children": [89, 90], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 49}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 90, "type": "identifier", "text": "toggleControllerMenuItem", "parent": 88, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 49}}, {"id": 91, "type": "declaration", "text": "IBOutlet NSMenuItem *toggleInstallerMenuItem;", "parent": 25, "children": [92, 93, 95], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 49}}, {"id": 92, "type": "type_identifier", "text": "IBOutlet", "parent": 91, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 12}}, {"id": 93, "type": "ERROR", "text": "NSMenuItem", "parent": 91, "children": [94], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 94, "type": "identifier", "text": "NSMenuItem", "parent": 93, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 23}}, {"id": 95, "type": "pointer_declarator", "text": "*toggleInstallerMenuItem", "parent": 91, "children": [96, 97], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 48}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 97, "type": "identifier", "text": "toggleInstallerMenuItem", "parent": 95, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 48}}, {"id": 98, "type": "declaration", "text": "IBOutlet NSWindow *enableACLsPanel;", "parent": 25, "children": [99, 100, 102], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 39}}, {"id": 99, "type": "type_identifier", "text": "IBOutlet", "parent": 98, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 12}}, {"id": 100, "type": "ERROR", "text": "NSWindow", "parent": 98, "children": [101], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 101, "type": "identifier", "text": "NSWindow", "parent": 100, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 21}}, {"id": 102, "type": "pointer_declarator", "text": "*enableACLsPanel", "parent": 98, "children": [103, 104], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 38}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 23}}, {"id": 104, "type": "identifier", "text": "enableACLsPanel", "parent": 102, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 38}}, {"id": 105, "type": "declaration", "text": "IBOutlet NSWindow *okToRunPrivilegedPanel;", "parent": 25, "children": [106, 107, 109], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 46}}, {"id": 106, "type": "type_identifier", "text": "IBOutlet", "parent": 105, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 12}}, {"id": 107, "type": "ERROR", "text": "NSWindow", "parent": 105, "children": [108], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 21}}, {"id": 108, "type": "identifier", "text": "NSWindow", "parent": 107, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 21}}, {"id": 109, "type": "pointer_declarator", "text": "*okToRunPrivilegedPanel", "parent": 105, "children": [110, 111], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 45}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 23}}, {"id": 111, "type": "identifier", "text": "okToRunPrivilegedPanel", "parent": 109, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 45}}, {"id": 112, "type": "declaration", "text": "IBOutlet NSWindow *okToRepairPermissionsPanel;", "parent": 25, "children": [113, 114, 116], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 50}}, {"id": 113, "type": "type_identifier", "text": "IBOutlet", "parent": 112, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 12}}, {"id": 114, "type": "ERROR", "text": "NSWindow", "parent": 112, "children": [115], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 21}}, {"id": 115, "type": "identifier", "text": "NSWindow", "parent": 114, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 21}}, {"id": 116, "type": "pointer_declarator", "text": "*okToRepairPermissionsPanel", "parent": 112, "children": [117, 118], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 49}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 23}}, {"id": 118, "type": "identifier", "text": "okToRepairPermissionsPanel", "parent": 116, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 49}}, {"id": 119, "type": "declaration", "text": "IBOutlet NSToolbar *toolbar;", "parent": 25, "children": [120, 121, 123], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 32}}, {"id": 120, "type": "type_identifier", "text": "IBOutlet", "parent": 119, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 12}}, {"id": 121, "type": "ERROR", "text": "NSToolbar", "parent": 119, "children": [122], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 22}}, {"id": 122, "type": "identifier", "text": "NSToolbar", "parent": 121, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 22}}, {"id": 123, "type": "pointer_declarator", "text": "*toolbar", "parent": 119, "children": [124, 125], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 31}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 24}}, {"id": 125, "type": "identifier", "text": "toolbar", "parent": 123, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 31}}, {"id": 126, "type": "declaration", "text": "IBOutlet TCSToolbarDelegate", "parent": 25, "children": [127, 128], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 31}}, {"id": 127, "type": "type_identifier", "text": "IBOutlet", "parent": 126, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 128, "type": "identifier", "text": "TCSToolbarDelegate", "parent": 126, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 31}}, {"id": 129, "type": "pointer_expression", "text": "*toolbarDelegate", "parent": 25, "children": [130, 131], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 48}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 33}}, {"id": 131, "type": "identifier", "text": "toolbarDelegate", "parent": 129, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 48}}, {"id": 132, "type": "declaration", "text": "IBOutlet NSTabView *tabView;", "parent": 25, "children": [133, 134, 136], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 32}}, {"id": 133, "type": "type_identifier", "text": "IBOutlet", "parent": 132, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 12}}, {"id": 134, "type": "ERROR", "text": "NSTabView", "parent": 132, "children": [135], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 22}}, {"id": 135, "type": "identifier", "text": "NSTabView", "parent": 134, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 22}}, {"id": 136, "type": "pointer_declarator", "text": "*tabView", "parent": 132, "children": [137, 138], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 31}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 138, "type": "identifier", "text": "tabView", "parent": 136, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 31}}, {"id": 139, "type": "declaration", "text": "IBOutlet TCSConsoleView", "parent": 25, "children": [140, 141], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 27}}, {"id": 140, "type": "type_identifier", "text": "IBOutlet", "parent": 139, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 12}}, {"id": 141, "type": "identifier", "text": "TCSConsoleView", "parent": 139, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 27}}, {"id": 142, "type": "pointer_expression", "text": "*consoleView", "parent": 25, "children": [143, 144], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 40}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 29}}, {"id": 144, "type": "identifier", "text": "consoleView", "parent": 142, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 40}}, {"id": 145, "type": "declaration", "text": "IBOutlet NSScrollView", "parent": 25, "children": [146, 147], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 25}}, {"id": 146, "type": "type_identifier", "text": "IBOutlet", "parent": 145, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 12}}, {"id": 147, "type": "identifier", "text": "NSScrollView", "parent": 145, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 25}}, {"id": 148, "type": "pointer_expression", "text": "*consoleScrollView", "parent": 25, "children": [149, 150], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 44}}, {"id": 149, "type": "*", "text": "*", "parent": 148, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 27}}, {"id": 150, "type": "identifier", "text": "consoleScrollView", "parent": 148, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 44}}, {"id": 151, "type": "declaration", "text": "IBOutlet NSTextField", "parent": 25, "children": [152, 153], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 24}}, {"id": 152, "type": "type_identifier", "text": "IBOutlet", "parent": 151, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 153, "type": "identifier", "text": "NSTextField", "parent": 151, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 24}}, {"id": 154, "type": "pointer_expression", "text": "*catalinaOptsField", "parent": 25, "children": [155, 156], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 43}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 26}}, {"id": 156, "type": "identifier", "text": "catalinaOptsField", "parent": 154, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 43}}, {"id": 157, "type": "declaration", "text": "IBOutlet NSTextField", "parent": 25, "children": [158, 159], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 24}}, {"id": 158, "type": "type_identifier", "text": "IBOutlet", "parent": 157, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 12}}, {"id": 159, "type": "identifier", "text": "NSTextField", "parent": 157, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 24}}, {"id": 160, "type": "pointer_expression", "text": "*entryField", "parent": 25, "children": [161, 162], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 36}}, {"id": 161, "type": "*", "text": "*", "parent": 160, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 26}}, {"id": 162, "type": "identifier", "text": "entryField", "parent": 160, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 36}}, {"id": 163, "type": "declaration", "text": "IBOutlet NSButton *toggleUseDefaultsSwitch;", "parent": 25, "children": [164, 165, 167], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 47}}, {"id": 164, "type": "type_identifier", "text": "IBOutlet", "parent": 163, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 165, "type": "ERROR", "text": "NSButton", "parent": 163, "children": [166], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 21}}, {"id": 166, "type": "identifier", "text": "NSButton", "parent": 165, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 21}}, {"id": 167, "type": "pointer_declarator", "text": "*toggleUseDefaultsSwitch", "parent": 163, "children": [168, 169], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 46}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 169, "type": "identifier", "text": "toggleUseDefaultsSwitch", "parent": 167, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 46}}, {"id": 170, "type": "declaration", "text": "IBOutlet TCSCatSlapper", "parent": 25, "children": [171, 172], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 26}}, {"id": 171, "type": "type_identifier", "text": "IBOutlet", "parent": 170, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 12}}, {"id": 172, "type": "identifier", "text": "TCSCatSlapper", "parent": 170, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 26}}, {"id": 173, "type": "pointer_expression", "text": "*slapper", "parent": 25, "children": [174, 175], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 35}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 28}}, {"id": 175, "type": "identifier", "text": "slapper", "parent": 173, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 35}}, {"id": 176, "type": "declaration", "text": "IBOutlet NSArrayController", "parent": 25, "children": [177, 178], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 30}}, {"id": 177, "type": "type_identifier", "text": "IBOutlet", "parent": 176, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 12}}, {"id": 178, "type": "identifier", "text": "NSArrayController", "parent": 176, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 30}}, {"id": 179, "type": "pointer_expression", "text": "*kittyController", "parent": 25, "children": [180, 181], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 47}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 32}}, {"id": 181, "type": "identifier", "text": "kittyController", "parent": 179, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 47}}, {"id": 182, "type": "declaration", "text": "NSMenu *dockMenu;", "parent": 25, "children": [183, 184], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 21}}, {"id": 183, "type": "type_identifier", "text": "NSMenu", "parent": 182, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 10}}, {"id": 184, "type": "pointer_declarator", "text": "*dockMenu", "parent": 182, "children": [185, 186], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 20}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 12}}, {"id": 186, "type": "identifier", "text": "dockMenu", "parent": 184, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 20}}, {"id": 187, "type": "declaration", "text": "NSAlert *badRegInfoAlert;", "parent": 25, "children": [188, 189], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 29}}, {"id": 188, "type": "type_identifier", "text": "NSAlert", "parent": 187, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 189, "type": "pointer_declarator", "text": "*badRegInfoAlert", "parent": 187, "children": [190, 191], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 28}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 191, "type": "identifier", "text": "badRegInfoAlert", "parent": 189, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 28}}, {"id": 192, "type": "declaration", "text": "NSAlert *latestVersionAlert;", "parent": 25, "children": [193, 194], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 32}}, {"id": 193, "type": "type_identifier", "text": "NSAlert", "parent": 192, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 194, "type": "pointer_declarator", "text": "*latestVersionAlert", "parent": 192, "children": [195, 196], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 31}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 196, "type": "identifier", "text": "latestVersionAlert", "parent": 194, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 31}}, {"id": 197, "type": "declaration", "text": "NSAlert *cantUseSytemDaemonsAlert;", "parent": 25, "children": [198, 199], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 38}}, {"id": 198, "type": "type_identifier", "text": "NSAlert", "parent": 197, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 11}}, {"id": 199, "type": "pointer_declarator", "text": "*cantUseSytemDaemonsAlert", "parent": 197, "children": [200, 201], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 37}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 201, "type": "identifier", "text": "cantUseSytemDaemonsAlert", "parent": 199, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 37}}, {"id": 202, "type": "declaration", "text": "NSAlert *enablingACLsFailedAlert;", "parent": 25, "children": [203, 204], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 37}}, {"id": 203, "type": "type_identifier", "text": "NSAlert", "parent": 202, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 204, "type": "pointer_declarator", "text": "*enablingACLsFailedAlert", "parent": 202, "children": [205, 206], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 36}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 206, "type": "identifier", "text": "enablingACLsFailedAlert", "parent": 204, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 36}}, {"id": 207, "type": "declaration", "text": "NSAlert *syncingLaunchDaemonsFailedAlert;", "parent": 25, "children": [208, 209], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 45}}, {"id": 208, "type": "type_identifier", "text": "NSAlert", "parent": 207, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 209, "type": "pointer_declarator", "text": "*syncingLaunchDaemonsFailedAlert", "parent": 207, "children": [210, 211], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 44}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 13}}, {"id": 211, "type": "identifier", "text": "syncingLaunchDaemonsFailedAlert", "parent": 209, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 44}}, {"id": 212, "type": "declaration", "text": "NSAlert *repairingPermissionsFailedAlert;", "parent": 25, "children": [213, 214], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 45}}, {"id": 213, "type": "type_identifier", "text": "NSAlert", "parent": 212, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 11}}, {"id": 214, "type": "pointer_declarator", "text": "*repairingPermissionsFailedAlert", "parent": 212, "children": [215, 216], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 44}}, {"id": 215, "type": "*", "text": "*", "parent": 214, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 216, "type": "identifier", "text": "repairingPermissionsFailedAlert", "parent": 214, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 44}}, {"id": 217, "type": "unary_expression", "text": "- (void) drawBackground", "parent": null, "children": [218, 219], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 23}}, {"id": 218, "type": "-", "text": "-", "parent": 217, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 219, "type": "cast_expression", "text": "(void) drawBackground", "parent": 217, "children": [220, 222], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 23}}, {"id": 220, "type": "type_descriptor", "text": "void", "parent": 219, "children": [221], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 221, "type": "primitive_type", "text": "void", "parent": 220, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 222, "type": "identifier", "text": "drawBackground", "parent": 219, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 23}}, {"id": 223, "type": "update_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter", "parent": null, "children": [224, 486], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 95, "column": 29}}, {"id": 224, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter", "parent": 223, "children": [225, 478, 481, 482], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 95, "column": 29}}, {"id": 225, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed", "parent": 224, "children": [226, 470, 473, 474], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 93, "column": 51}}, {"id": 226, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions", "parent": 225, "children": [227, 462, 465, 466], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 92, "column": 39}}, {"id": 227, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions", "parent": 226, "children": [228, 454, 457, 458], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 91, "column": 36}}, {"id": 228, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions", "parent": 227, "children": [229, 446, 449, 450], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 90, "column": 44}}, {"id": 229, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged", "parent": 228, "children": [230, 438, 441, 442], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 89, "column": 35}}, {"id": 230, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged", "parent": 229, "children": [231, 430, 433, 434], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 88, "column": 32}}, {"id": 231, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged", "parent": 230, "children": [232, 422, 425, 426], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 87, "column": 40}}, {"id": 232, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed", "parent": 231, "children": [233, 414, 417, 418], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 86, "column": 51}}, {"id": 233, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed", "parent": 232, "children": [234, 406, 409, 410], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 85, "column": 43}}, {"id": 234, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons", "parent": 233, "children": [235, 398, 401, 402], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 84, "column": 45}}, {"id": 235, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall", "parent": 234, "children": [236, 390, 393, 394], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 83, "column": 34}}, {"id": 236, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall", "parent": 235, "children": [237, 382, 385, 386], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 82, "column": 29}}, {"id": 237, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs", "parent": 236, "children": [238, 374, 377, 378], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 81, "column": 38}}, {"id": 238, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole", "parent": 237, "children": [239, 366, 369, 370], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 80, "column": 26}}, {"id": 239, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo", "parent": 238, "children": [240, 358, 361, 362], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 79, "column": 23}}, {"id": 240, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller", "parent": 239, "children": [241, 350, 353, 354], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 77, "column": 28}}, {"id": 241, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController", "parent": 240, "children": [242, 342, 345, 346], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 76, "column": 29}}, {"id": 242, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts", "parent": 241, "children": [243, 334, 337, 338], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 75, "column": 27}}, {"id": 243, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts", "parent": 242, "children": [244, 326, 329, 330], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 74, "column": 21}}, {"id": 244, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse", "parent": 243, "children": [245, 318, 321, 322], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 73, "column": 19}}, {"id": 245, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab", "parent": 244, "children": [246, 310, 313, 314], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 71, "column": 32}}, {"id": 246, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab", "parent": 245, "children": [247, 302, 305, 306], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 70, "column": 33}}, {"id": 247, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab", "parent": 246, "children": [248, 294, 297, 298], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 69, "column": 28}}, {"id": 248, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors", "parent": 247, "children": [249, 286, 289, 290], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 68, "column": 38}}, {"id": 249, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences", "parent": 248, "children": [250, 278, 281, 282], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 67, "column": 28}}, {"id": 250, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole", "parent": 249, "children": [251, 273, 274], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 66, "column": 25}}, {"id": 251, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg", "parent": 250, "children": [252, 269, 271, 272], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 37}}, {"id": 252, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto", "parent": 251, "children": [253, 264, 265], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 23}}, {"id": 253, "type": "binary_expression", "text": "- (void) drawOpenInto:(NSImage *)bg", "parent": 252, "children": [254, 260, 262, 263], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 35}}, {"id": 254, "type": "unary_expression", "text": "- (void) drawOpenInto", "parent": 253, "children": [255, 256], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 21}}, {"id": 255, "type": "-", "text": "-", "parent": 254, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 256, "type": "cast_expression", "text": "(void) drawOpenInto", "parent": 254, "children": [257, 259], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 21}}, {"id": 257, "type": "type_descriptor", "text": "void", "parent": 256, "children": [258], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 7}}, {"id": 258, "type": "primitive_type", "text": "void", "parent": 257, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 7}}, {"id": 259, "type": "identifier", "text": "drawOpenInto", "parent": 256, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 21}}, {"id": 260, "type": "ERROR", "text": ":(NSImage", "parent": 253, "children": [261], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 30}}, {"id": 261, "type": "identifier", "text": "NSImage", "parent": 260, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 30}}, {"id": 262, "type": "*", "text": "*", "parent": 253, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 32}}, {"id": 263, "type": "identifier", "text": "bg", "parent": 253, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 35}}, {"id": 264, "type": "-", "text": "-", "parent": 252, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 265, "type": "cast_expression", "text": "(void) drawClosedInto", "parent": 252, "children": [266, 268], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 23}}, {"id": 266, "type": "type_descriptor", "text": "void", "parent": 265, "children": [267], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 267, "type": "primitive_type", "text": "void", "parent": 266, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 268, "type": "identifier", "text": "drawClosedInto", "parent": 265, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 23}}, {"id": 269, "type": "ERROR", "text": ":(NSImage", "parent": 251, "children": [270], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 32}}, {"id": 270, "type": "identifier", "text": "NSImage", "parent": 269, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 32}}, {"id": 271, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 34}}, {"id": 272, "type": "identifier", "text": "bg", "parent": 251, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 37}}, {"id": 273, "type": "-", "text": "-", "parent": 250, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 274, "type": "cast_expression", "text": "(IBAction) clearConsole", "parent": 250, "children": [275, 277], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 25}}, {"id": 275, "type": "type_descriptor", "text": "IBAction", "parent": 274, "children": [276], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 11}}, {"id": 276, "type": "type_identifier", "text": "IBAction", "parent": 275, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 11}}, {"id": 277, "type": "identifier", "text": "clearConsole", "parent": 274, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 25}}, {"id": 278, "type": "ERROR", "text": ":(id)sender;", "parent": 249, "children": [279, 280], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 37}}, {"id": 279, "type": "identifier", "text": "id", "parent": 278, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 29}}, {"id": 280, "type": "identifier", "text": "sender", "parent": 278, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 36}}, {"id": 281, "type": "-", "text": "-", "parent": 249, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 282, "type": "cast_expression", "text": "(IBAction) showPreferences", "parent": 249, "children": [283, 285], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 28}}, {"id": 283, "type": "type_descriptor", "text": "IBAction", "parent": 282, "children": [284], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 11}}, {"id": 284, "type": "type_identifier", "text": "IBAction", "parent": 283, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 11}}, {"id": 285, "type": "identifier", "text": "showPreferences", "parent": 282, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 28}}, {"id": 286, "type": "ERROR", "text": ":(id)sender;", "parent": 248, "children": [287, 288], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 40}}, {"id": 287, "type": "identifier", "text": "id", "parent": 286, "children": [], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 32}}, {"id": 288, "type": "identifier", "text": "sender", "parent": 286, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 39}}, {"id": 289, "type": "-", "text": "-", "parent": 248, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 290, "type": "cast_expression", "text": "(IBAction) displayServerConfigErrors", "parent": 248, "children": [291, 293], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 38}}, {"id": 291, "type": "type_descriptor", "text": "IBAction", "parent": 290, "children": [292], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 11}}, {"id": 292, "type": "type_identifier", "text": "IBAction", "parent": 291, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 11}}, {"id": 293, "type": "identifier", "text": "displayServerConfigErrors", "parent": 290, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 38}}, {"id": 294, "type": "ERROR", "text": ":(id)sender;", "parent": 247, "children": [295, 296], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 50}}, {"id": 295, "type": "identifier", "text": "id", "parent": 294, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 42}}, {"id": 296, "type": "identifier", "text": "sender", "parent": 294, "children": [], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 49}}, {"id": 297, "type": "-", "text": "-", "parent": 247, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 298, "type": "cast_expression", "text": "(IBAction) selectServerTab", "parent": 247, "children": [299, 301], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 28}}, {"id": 299, "type": "type_descriptor", "text": "IBAction", "parent": 298, "children": [300], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 11}}, {"id": 300, "type": "type_identifier", "text": "IBAction", "parent": 299, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 11}}, {"id": 301, "type": "identifier", "text": "selectServerTab", "parent": 298, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 28}}, {"id": 302, "type": "ERROR", "text": ":(id)sender;", "parent": 246, "children": [303, 304], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 40}}, {"id": 303, "type": "identifier", "text": "id", "parent": 302, "children": [], "start_point": {"row": 69, "column": 30}, "end_point": {"row": 69, "column": 32}}, {"id": 304, "type": "identifier", "text": "sender", "parent": 302, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 39}}, {"id": 305, "type": "-", "text": "-", "parent": 246, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 306, "type": "cast_expression", "text": "(IBAction) selectEnvironmentTab", "parent": 246, "children": [307, 309], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 33}}, {"id": 307, "type": "type_descriptor", "text": "IBAction", "parent": 306, "children": [308], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 11}}, {"id": 308, "type": "type_identifier", "text": "IBAction", "parent": 307, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 11}}, {"id": 309, "type": "identifier", "text": "selectEnvironmentTab", "parent": 306, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 33}}, {"id": 310, "type": "ERROR", "text": ":(id)sender;", "parent": 245, "children": [311, 312], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 45}}, {"id": 311, "type": "identifier", "text": "id", "parent": 310, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 37}}, {"id": 312, "type": "identifier", "text": "sender", "parent": 310, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 44}}, {"id": 313, "type": "-", "text": "-", "parent": 245, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 314, "type": "cast_expression", "text": "(IBAction) selectComponentsTab", "parent": 245, "children": [315, 317], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 32}}, {"id": 315, "type": "type_descriptor", "text": "IBAction", "parent": 314, "children": [316], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 11}}, {"id": 316, "type": "type_identifier", "text": "IBAction", "parent": 315, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 11}}, {"id": 317, "type": "identifier", "text": "selectComponentsTab", "parent": 314, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 32}}, {"id": 318, "type": "ERROR", "text": ":(id)sender;", "parent": 244, "children": [319, 320], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 44}}, {"id": 319, "type": "identifier", "text": "id", "parent": 318, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 36}}, {"id": 320, "type": "identifier", "text": "sender", "parent": 318, "children": [], "start_point": {"row": 71, "column": 37}, "end_point": {"row": 71, "column": 43}}, {"id": 321, "type": "-", "text": "-", "parent": 244, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 322, "type": "cast_expression", "text": "(IBAction) browse", "parent": 244, "children": [323, 325], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 19}}, {"id": 323, "type": "type_descriptor", "text": "IBAction", "parent": 322, "children": [324], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 11}}, {"id": 324, "type": "type_identifier", "text": "IBAction", "parent": 323, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 11}}, {"id": 325, "type": "identifier", "text": "browse", "parent": 322, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 19}}, {"id": 326, "type": "ERROR", "text": ":(id)sender;", "parent": 243, "children": [327, 328], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 31}}, {"id": 327, "type": "identifier", "text": "id", "parent": 326, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 23}}, {"id": 328, "type": "identifier", "text": "sender", "parent": 326, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 30}}, {"id": 329, "type": "-", "text": "-", "parent": 243, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 330, "type": "cast_expression", "text": "(IBAction) editOpts", "parent": 243, "children": [331, 333], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 21}}, {"id": 331, "type": "type_descriptor", "text": "IBAction", "parent": 330, "children": [332], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 11}}, {"id": 332, "type": "type_identifier", "text": "IBAction", "parent": 331, "children": [], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 11}}, {"id": 333, "type": "identifier", "text": "editOpts", "parent": 330, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 21}}, {"id": 334, "type": "ERROR", "text": ":(id)sender;", "parent": 242, "children": [335, 336], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 33}}, {"id": 335, "type": "identifier", "text": "id", "parent": 334, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 25}}, {"id": 336, "type": "identifier", "text": "sender", "parent": 334, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 32}}, {"id": 337, "type": "-", "text": "-", "parent": 242, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 338, "type": "cast_expression", "text": "(IBAction) didEndEditOpts", "parent": 242, "children": [339, 341], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 27}}, {"id": 339, "type": "type_descriptor", "text": "IBAction", "parent": 338, "children": [340], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 11}}, {"id": 340, "type": "type_identifier", "text": "IBAction", "parent": 339, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 11}}, {"id": 341, "type": "identifier", "text": "didEndEditOpts", "parent": 338, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 27}}, {"id": 342, "type": "ERROR", "text": ":(id)sender;", "parent": 241, "children": [343, 344], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 39}}, {"id": 343, "type": "identifier", "text": "id", "parent": 342, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 31}}, {"id": 344, "type": "identifier", "text": "sender", "parent": 342, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 38}}, {"id": 345, "type": "-", "text": "-", "parent": 241, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 346, "type": "cast_expression", "text": "(IBAction) toggleController", "parent": 241, "children": [347, 349], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 29}}, {"id": 347, "type": "type_descriptor", "text": "IBAction", "parent": 346, "children": [348], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 11}}, {"id": 348, "type": "type_identifier", "text": "IBAction", "parent": 347, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 11}}, {"id": 349, "type": "identifier", "text": "toggleController", "parent": 346, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 29}}, {"id": 350, "type": "ERROR", "text": ":(id)sender;", "parent": 240, "children": [351, 352], "start_point": {"row": 76, "column": 29}, "end_point": {"row": 76, "column": 41}}, {"id": 351, "type": "identifier", "text": "id", "parent": 350, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 33}}, {"id": 352, "type": "identifier", "text": "sender", "parent": 350, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 40}}, {"id": 353, "type": "-", "text": "-", "parent": 240, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 354, "type": "cast_expression", "text": "(IBAction) toggleInstaller", "parent": 240, "children": [355, 357], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 28}}, {"id": 355, "type": "type_descriptor", "text": "IBAction", "parent": 354, "children": [356], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 11}}, {"id": 356, "type": "type_identifier", "text": "IBAction", "parent": 355, "children": [], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 11}}, {"id": 357, "type": "identifier", "text": "toggleInstaller", "parent": 354, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 28}}, {"id": 358, "type": "ERROR", "text": ":(id)sender;", "parent": 239, "children": [359, 360], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 40}}, {"id": 359, "type": "identifier", "text": "id", "parent": 358, "children": [], "start_point": {"row": 77, "column": 30}, "end_point": {"row": 77, "column": 32}}, {"id": 360, "type": "identifier", "text": "sender", "parent": 358, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 39}}, {"id": 361, "type": "-", "text": "-", "parent": 239, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 362, "type": "cast_expression", "text": "(IBAction) toggleInfo", "parent": 239, "children": [363, 365], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 23}}, {"id": 363, "type": "type_descriptor", "text": "IBAction", "parent": 362, "children": [364], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 11}}, {"id": 364, "type": "type_identifier", "text": "IBAction", "parent": 363, "children": [], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 11}}, {"id": 365, "type": "identifier", "text": "toggleInfo", "parent": 362, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 23}}, {"id": 366, "type": "ERROR", "text": ":(id)sender;", "parent": 238, "children": [367, 368], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 35}}, {"id": 367, "type": "identifier", "text": "id", "parent": 366, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 27}}, {"id": 368, "type": "identifier", "text": "sender", "parent": 366, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 34}}, {"id": 369, "type": "-", "text": "-", "parent": 238, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 1}}, {"id": 370, "type": "cast_expression", "text": "(IBAction) toggleConsole", "parent": 238, "children": [371, 373], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 26}}, {"id": 371, "type": "type_descriptor", "text": "IBAction", "parent": 370, "children": [372], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 11}}, {"id": 372, "type": "type_identifier", "text": "IBAction", "parent": 371, "children": [], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 11}}, {"id": 373, "type": "identifier", "text": "toggleConsole", "parent": 370, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 26}}, {"id": 374, "type": "ERROR", "text": ":(id)sender;", "parent": 237, "children": [375, 376], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 38}}, {"id": 375, "type": "identifier", "text": "id", "parent": 374, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 30}}, {"id": 376, "type": "identifier", "text": "sender", "parent": 374, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 37}}, {"id": 377, "type": "-", "text": "-", "parent": 237, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 378, "type": "cast_expression", "text": "(IBAction) askUserIfWeCanInstallACLs", "parent": 237, "children": [379, 381], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 38}}, {"id": 379, "type": "type_descriptor", "text": "IBAction", "parent": 378, "children": [380], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 11}}, {"id": 380, "type": "type_identifier", "text": "IBAction", "parent": 379, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 11}}, {"id": 381, "type": "identifier", "text": "askUserIfWeCanInstallACLs", "parent": 378, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 38}}, {"id": 382, "type": "ERROR", "text": ":(id)sender;", "parent": 236, "children": [383, 384], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 50}}, {"id": 383, "type": "identifier", "text": "id", "parent": 382, "children": [], "start_point": {"row": 81, "column": 40}, "end_point": {"row": 81, "column": 42}}, {"id": 384, "type": "identifier", "text": "sender", "parent": 382, "children": [], "start_point": {"row": 81, "column": 43}, "end_point": {"row": 81, "column": 49}}, {"id": 385, "type": "-", "text": "-", "parent": 236, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 386, "type": "cast_expression", "text": "(IBAction) cancelACLInstall", "parent": 236, "children": [387, 389], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 29}}, {"id": 387, "type": "type_descriptor", "text": "IBAction", "parent": 386, "children": [388], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 11}}, {"id": 388, "type": "type_identifier", "text": "IBAction", "parent": 387, "children": [], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 11}}, {"id": 389, "type": "identifier", "text": "cancelACLInstall", "parent": 386, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 29}}, {"id": 390, "type": "ERROR", "text": ":(id)sender;", "parent": 235, "children": [391, 392], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 41}}, {"id": 391, "type": "identifier", "text": "id", "parent": 390, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 33}}, {"id": 392, "type": "identifier", "text": "sender", "parent": 390, "children": [], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 40}}, {"id": 393, "type": "-", "text": "-", "parent": 235, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 394, "type": "cast_expression", "text": "(IBAction) proceedWithACLInstall", "parent": 235, "children": [395, 397], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 34}}, {"id": 395, "type": "type_descriptor", "text": "IBAction", "parent": 394, "children": [396], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 11}}, {"id": 396, "type": "type_identifier", "text": "IBAction", "parent": 395, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 11}}, {"id": 397, "type": "identifier", "text": "proceedWithACLInstall", "parent": 394, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 34}}, {"id": 398, "type": "ERROR", "text": ":(id)sender;", "parent": 234, "children": [399, 400], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 46}}, {"id": 399, "type": "identifier", "text": "id", "parent": 398, "children": [], "start_point": {"row": 83, "column": 36}, "end_point": {"row": 83, "column": 38}}, {"id": 400, "type": "identifier", "text": "sender", "parent": 398, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 45}}, {"id": 401, "type": "-", "text": "-", "parent": 234, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 402, "type": "cast_expression", "text": "(IBAction) warnUserTheyCantUseSystemDaemons", "parent": 234, "children": [403, 405], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 45}}, {"id": 403, "type": "type_descriptor", "text": "IBAction", "parent": 402, "children": [404], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 11}}, {"id": 404, "type": "type_identifier", "text": "IBAction", "parent": 403, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 11}}, {"id": 405, "type": "identifier", "text": "warnUserTheyCantUseSystemDaemons", "parent": 402, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 45}}, {"id": 406, "type": "ERROR", "text": ":(id)sender;", "parent": 233, "children": [407, 408], "start_point": {"row": 84, "column": 45}, "end_point": {"row": 84, "column": 57}}, {"id": 407, "type": "identifier", "text": "id", "parent": 406, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 49}}, {"id": 408, "type": "identifier", "text": "sender", "parent": 406, "children": [], "start_point": {"row": 84, "column": 50}, "end_point": {"row": 84, "column": 56}}, {"id": 409, "type": "-", "text": "-", "parent": 233, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 410, "type": "cast_expression", "text": "(IBAction) warnUserThatEnablingACLsFailed", "parent": 233, "children": [411, 413], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 43}}, {"id": 411, "type": "type_descriptor", "text": "IBAction", "parent": 410, "children": [412], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 11}}, {"id": 412, "type": "type_identifier", "text": "IBAction", "parent": 411, "children": [], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 85, "column": 11}}, {"id": 413, "type": "identifier", "text": "warnUserThatEnablingACLsFailed", "parent": 410, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 43}}, {"id": 414, "type": "ERROR", "text": ":(id)sender;", "parent": 232, "children": [415, 416], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 55}}, {"id": 415, "type": "identifier", "text": "id", "parent": 414, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 47}}, {"id": 416, "type": "identifier", "text": "sender", "parent": 414, "children": [], "start_point": {"row": 85, "column": 48}, "end_point": {"row": 85, "column": 54}}, {"id": 417, "type": "-", "text": "-", "parent": 232, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 1}}, {"id": 418, "type": "cast_expression", "text": "(IBAction) warnUserThatSyncingLaunchDaemonsFailed", "parent": 232, "children": [419, 421], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 51}}, {"id": 419, "type": "type_descriptor", "text": "IBAction", "parent": 418, "children": [420], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 11}}, {"id": 420, "type": "type_identifier", "text": "IBAction", "parent": 419, "children": [], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 11}}, {"id": 421, "type": "identifier", "text": "warnUserThatSyncingLaunchDaemonsFailed", "parent": 418, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 51}}, {"id": 422, "type": "ERROR", "text": ":(id)sender ;", "parent": 231, "children": [423, 424], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 64}}, {"id": 423, "type": "identifier", "text": "id", "parent": 422, "children": [], "start_point": {"row": 86, "column": 53}, "end_point": {"row": 86, "column": 55}}, {"id": 424, "type": "identifier", "text": "sender", "parent": 422, "children": [], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 62}}, {"id": 425, "type": "-", "text": "-", "parent": 231, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 426, "type": "cast_expression", "text": "(IBAction) askUserIfWeCanRunPrivileged", "parent": 231, "children": [427, 429], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 40}}, {"id": 427, "type": "type_descriptor", "text": "IBAction", "parent": 426, "children": [428], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 11}}, {"id": 428, "type": "type_identifier", "text": "IBAction", "parent": 427, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 11}}, {"id": 429, "type": "identifier", "text": "askUserIfWeCanRunPrivileged", "parent": 426, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 40}}, {"id": 430, "type": "ERROR", "text": ":(id)sender;", "parent": 230, "children": [431, 432], "start_point": {"row": 87, "column": 40}, "end_point": {"row": 87, "column": 52}}, {"id": 431, "type": "identifier", "text": "id", "parent": 430, "children": [], "start_point": {"row": 87, "column": 42}, "end_point": {"row": 87, "column": 44}}, {"id": 432, "type": "identifier", "text": "sender", "parent": 430, "children": [], "start_point": {"row": 87, "column": 45}, "end_point": {"row": 87, "column": 51}}, {"id": 433, "type": "-", "text": "-", "parent": 230, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 434, "type": "cast_expression", "text": "(IBAction) cancelRunPrivileged", "parent": 230, "children": [435, 437], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 32}}, {"id": 435, "type": "type_descriptor", "text": "IBAction", "parent": 434, "children": [436], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 11}}, {"id": 436, "type": "type_identifier", "text": "IBAction", "parent": 435, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 11}}, {"id": 437, "type": "identifier", "text": "cancelRunPrivileged", "parent": 434, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 32}}, {"id": 438, "type": "ERROR", "text": ":(id)sender;", "parent": 229, "children": [439, 440], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 44}}, {"id": 439, "type": "identifier", "text": "id", "parent": 438, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 36}}, {"id": 440, "type": "identifier", "text": "sender", "parent": 438, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 43}}, {"id": 441, "type": "-", "text": "-", "parent": 229, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 442, "type": "cast_expression", "text": "(IBAction) proceedToRunPrivileged", "parent": 229, "children": [443, 445], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 35}}, {"id": 443, "type": "type_descriptor", "text": "IBAction", "parent": 442, "children": [444], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 11}}, {"id": 444, "type": "type_identifier", "text": "IBAction", "parent": 443, "children": [], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 11}}, {"id": 445, "type": "identifier", "text": "proceedToRunPrivileged", "parent": 442, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 35}}, {"id": 446, "type": "ERROR", "text": ":(id)sender;", "parent": 228, "children": [447, 448], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 47}}, {"id": 447, "type": "identifier", "text": "id", "parent": 446, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 39}}, {"id": 448, "type": "identifier", "text": "sender", "parent": 446, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 46}}, {"id": 449, "type": "-", "text": "-", "parent": 228, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 1}}, {"id": 450, "type": "cast_expression", "text": "(IBAction) askUserIfWeCanRepairPermissions", "parent": 228, "children": [451, 453], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 44}}, {"id": 451, "type": "type_descriptor", "text": "IBAction", "parent": 450, "children": [452], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 11}}, {"id": 452, "type": "type_identifier", "text": "IBAction", "parent": 451, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 11}}, {"id": 453, "type": "identifier", "text": "askUserIfWeCanRepairPermissions", "parent": 450, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 44}}, {"id": 454, "type": "ERROR", "text": ":(id)sender;", "parent": 227, "children": [455, 456], "start_point": {"row": 90, "column": 44}, "end_point": {"row": 90, "column": 56}}, {"id": 455, "type": "identifier", "text": "id", "parent": 454, "children": [], "start_point": {"row": 90, "column": 46}, "end_point": {"row": 90, "column": 48}}, {"id": 456, "type": "identifier", "text": "sender", "parent": 454, "children": [], "start_point": {"row": 90, "column": 49}, "end_point": {"row": 90, "column": 55}}, {"id": 457, "type": "-", "text": "-", "parent": 227, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 1}}, {"id": 458, "type": "cast_expression", "text": "(IBAction) cancelRepairPermissions", "parent": 227, "children": [459, 461], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 36}}, {"id": 459, "type": "type_descriptor", "text": "IBAction", "parent": 458, "children": [460], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 11}}, {"id": 460, "type": "type_identifier", "text": "IBAction", "parent": 459, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 11}}, {"id": 461, "type": "identifier", "text": "cancelRepairPermissions", "parent": 458, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 36}}, {"id": 462, "type": "ERROR", "text": ":(id)sender;", "parent": 226, "children": [463, 464], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 48}}, {"id": 463, "type": "identifier", "text": "id", "parent": 462, "children": [], "start_point": {"row": 91, "column": 38}, "end_point": {"row": 91, "column": 40}}, {"id": 464, "type": "identifier", "text": "sender", "parent": 462, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 47}}, {"id": 465, "type": "-", "text": "-", "parent": 226, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 466, "type": "cast_expression", "text": "(IBAction) proceedToRepairPermissions", "parent": 226, "children": [467, 469], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 39}}, {"id": 467, "type": "type_descriptor", "text": "IBAction", "parent": 466, "children": [468], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 11}}, {"id": 468, "type": "type_identifier", "text": "IBAction", "parent": 467, "children": [], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 11}}, {"id": 469, "type": "identifier", "text": "proceedToRepairPermissions", "parent": 466, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 39}}, {"id": 470, "type": "ERROR", "text": ":(id)sender;", "parent": 225, "children": [471, 472], "start_point": {"row": 92, "column": 39}, "end_point": {"row": 92, "column": 51}}, {"id": 471, "type": "identifier", "text": "id", "parent": 470, "children": [], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 43}}, {"id": 472, "type": "identifier", "text": "sender", "parent": 470, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 50}}, {"id": 473, "type": "-", "text": "-", "parent": 225, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 474, "type": "cast_expression", "text": "(IBAction) warnUserThatRepairingPermissionsFailed", "parent": 225, "children": [475, 477], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 51}}, {"id": 475, "type": "type_descriptor", "text": "IBAction", "parent": 474, "children": [476], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 11}}, {"id": 476, "type": "type_identifier", "text": "IBAction", "parent": 475, "children": [], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 11}}, {"id": 477, "type": "identifier", "text": "warnUserThatRepairingPermissionsFailed", "parent": 474, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 51}}, {"id": 478, "type": "ERROR", "text": ":(id)sender;", "parent": 224, "children": [479, 480], "start_point": {"row": 93, "column": 51}, "end_point": {"row": 93, "column": 63}}, {"id": 479, "type": "identifier", "text": "id", "parent": 478, "children": [], "start_point": {"row": 93, "column": 53}, "end_point": {"row": 93, "column": 55}}, {"id": 480, "type": "identifier", "text": "sender", "parent": 478, "children": [], "start_point": {"row": 93, "column": 56}, "end_point": {"row": 93, "column": 62}}, {"id": 481, "type": "-", "text": "-", "parent": 224, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 482, "type": "cast_expression", "text": "(BOOL) MacOSPantherOrBetter", "parent": 224, "children": [483, 485], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 29}}, {"id": 483, "type": "type_descriptor", "text": "BOOL", "parent": 482, "children": [484], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 7}}, {"id": 484, "type": "type_identifier", "text": "BOOL", "parent": 483, "children": [], "start_point": {"row": 95, "column": 3}, "end_point": {"row": 95, "column": 7}}, {"id": 485, "type": "identifier", "text": "MacOSPantherOrBetter", "parent": 482, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 29}}, {"id": 486, "type": "--", "text": "", "parent": 223, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 29}}, {"id": 487, "type": "unary_expression", "text": "- (BOOL) MacOSTigerOrBetter", "parent": null, "children": [488, 489], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 27}}, {"id": 488, "type": "-", "text": "-", "parent": 487, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 489, "type": "cast_expression", "text": "(BOOL) MacOSTigerOrBetter", "parent": 487, "children": [490, 492], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 27}}, {"id": 490, "type": "type_descriptor", "text": "BOOL", "parent": 489, "children": [491], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 7}}, {"id": 491, "type": "type_identifier", "text": "BOOL", "parent": 490, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 7}}, {"id": 492, "type": "identifier", "text": "MacOSTigerOrBetter", "parent": 489, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 27}}, {"id": 493, "type": "unary_expression", "text": "- (void) shutdownUnsupportedPlatform", "parent": null, "children": [494, 495], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 36}}, {"id": 494, "type": "-", "text": "-", "parent": 493, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 495, "type": "cast_expression", "text": "(void) shutdownUnsupportedPlatform", "parent": 493, "children": [496, 498], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 36}}, {"id": 496, "type": "type_descriptor", "text": "void", "parent": 495, "children": [497], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 7}}, {"id": 497, "type": "primitive_type", "text": "void", "parent": 496, "children": [], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 7}}, {"id": 498, "type": "identifier", "text": "shutdownUnsupportedPlatform", "parent": 495, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 36}}, {"id": 499, "type": "unary_expression", "text": "- (void) meow", "parent": null, "children": [500, 501], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 13}}, {"id": 500, "type": "-", "text": "-", "parent": 499, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 501, "type": "cast_expression", "text": "(void) meow", "parent": 499, "children": [502, 504], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 13}}, {"id": 502, "type": "type_descriptor", "text": "void", "parent": 501, "children": [503], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 7}}, {"id": 503, "type": "primitive_type", "text": "void", "parent": 502, "children": [], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 7}}, {"id": 504, "type": "identifier", "text": "meow", "parent": 501, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 13}}, {"id": 505, "type": "unary_expression", "text": "- (void) checkForNewVersion", "parent": null, "children": [506, 507], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 27}}, {"id": 506, "type": "-", "text": "-", "parent": 505, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 507, "type": "cast_expression", "text": "(void) checkForNewVersion", "parent": 505, "children": [508, 510], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 27}}, {"id": 508, "type": "type_descriptor", "text": "void", "parent": 507, "children": [509], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 7}}, {"id": 509, "type": "primitive_type", "text": "void", "parent": 508, "children": [], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 7}}, {"id": 510, "type": "identifier", "text": "checkForNewVersion", "parent": 507, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 27}}, {"id": 511, "type": "ERROR", "text": ":(BOOL)forced", "parent": null, "children": [512, 513], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 40}}, {"id": 512, "type": "identifier", "text": "BOOL", "parent": 511, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 33}}, {"id": 513, "type": "identifier", "text": "forced", "parent": 511, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 40}}, {"id": 514, "type": "update_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations", "parent": null, "children": [515, 667], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 120, "column": 29}}, {"id": 515, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations", "parent": 514, "children": [516, 659, 662, 663], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 120, "column": 29}}, {"id": 516, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion", "parent": 515, "children": [517, 651, 654, 655], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 117, "column": 26}}, {"id": 517, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion", "parent": 516, "children": [518, 643, 646, 647], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 116, "column": 32}}, {"id": 518, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion", "parent": 517, "children": [519, 635, 638, 639], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 115, "column": 40}}, {"id": 519, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck", "parent": 518, "children": [520, 627, 630, 631], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 114, "column": 28}}, {"id": 520, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback", "parent": 519, "children": [521, 619, 622, 623], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 112, "column": 35}}, {"id": 521, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite", "parent": 520, "children": [522, 611, 614, 615], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 111, "column": 30}}, {"id": 522, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat", "parent": 521, "children": [523, 603, 606, 607], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 110, "column": 30}}, {"id": 523, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs", "parent": 522, "children": [524, 595, 598, 599], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 109, "column": 27}}, {"id": 524, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense", "parent": 523, "children": [525, 587, 590, 591], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 108, "column": 24}}, {"id": 525, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements", "parent": 524, "children": [526, 579, 582, 583], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 107, "column": 33}}, {"id": 526, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp", "parent": 525, "children": [527, 571, 574, 575], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 106, "column": 41}}, {"id": 527, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp", "parent": 526, "children": [528, 563, 566, 567], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 105, "column": 41}}, {"id": 528, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp", "parent": 527, "children": [529, 555, 558, 559], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 104, "column": 27}}, {"id": 529, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp", "parent": 528, "children": [530, 547, 550, 551], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 103, "column": 31}}, {"id": 530, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare", "parent": 529, "children": [531, 542, 543], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 102, "column": 28}}, {"id": 531, "type": "binary_expression", "text": "- (void) signalNotification:(NSNotification *)notification", "parent": 530, "children": [532, 538, 540, 541], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 58}}, {"id": 532, "type": "unary_expression", "text": "- (void) signalNotification", "parent": 531, "children": [533, 534], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 27}}, {"id": 533, "type": "-", "text": "-", "parent": 532, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 534, "type": "cast_expression", "text": "(void) signalNotification", "parent": 532, "children": [535, 537], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 27}}, {"id": 535, "type": "type_descriptor", "text": "void", "parent": 534, "children": [536], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 7}}, {"id": 536, "type": "primitive_type", "text": "void", "parent": 535, "children": [], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 7}}, {"id": 537, "type": "identifier", "text": "signalNotification", "parent": 534, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 27}}, {"id": 538, "type": "ERROR", "text": ":(NSNotification", "parent": 531, "children": [539], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 43}}, {"id": 539, "type": "identifier", "text": "NSNotification", "parent": 538, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 43}}, {"id": 540, "type": "*", "text": "*", "parent": 531, "children": [], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 45}}, {"id": 541, "type": "identifier", "text": "notification", "parent": 531, "children": [], "start_point": {"row": 100, "column": 46}, "end_point": {"row": 100, "column": 58}}, {"id": 542, "type": "-", "text": "-", "parent": 530, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 1}}, {"id": 543, "type": "cast_expression", "text": "(IBAction) visitFivesquare", "parent": 530, "children": [544, 546], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 28}}, {"id": 544, "type": "type_descriptor", "text": "IBAction", "parent": 543, "children": [545], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 11}}, {"id": 545, "type": "type_identifier", "text": "IBAction", "parent": 544, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 11}}, {"id": 546, "type": "identifier", "text": "visitFivesquare", "parent": 543, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 28}}, {"id": 547, "type": "ERROR", "text": ":(id)sender;", "parent": 529, "children": [548, 549], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 40}}, {"id": 548, "type": "identifier", "text": "id", "parent": 547, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 32}}, {"id": 549, "type": "identifier", "text": "sender", "parent": 547, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 39}}, {"id": 550, "type": "-", "text": "-", "parent": 529, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 1}}, {"id": 551, "type": "cast_expression", "text": "(IBAction) displayManagerHelp", "parent": 529, "children": [552, 554], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 31}}, {"id": 552, "type": "type_descriptor", "text": "IBAction", "parent": 551, "children": [553], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 11}}, {"id": 553, "type": "type_identifier", "text": "IBAction", "parent": 552, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 11}}, {"id": 554, "type": "identifier", "text": "displayManagerHelp", "parent": 551, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 31}}, {"id": 555, "type": "ERROR", "text": ":(id)sender;", "parent": 528, "children": [556, 557], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 43}}, {"id": 556, "type": "identifier", "text": "id", "parent": 555, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 35}}, {"id": 557, "type": "identifier", "text": "sender", "parent": 555, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 42}}, {"id": 558, "type": "-", "text": "-", "parent": 528, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 1}}, {"id": 559, "type": "cast_expression", "text": "(IBAction) displayACLHelp", "parent": 528, "children": [560, 562], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 27}}, {"id": 560, "type": "type_descriptor", "text": "IBAction", "parent": 559, "children": [561], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 11}}, {"id": 561, "type": "type_identifier", "text": "IBAction", "parent": 560, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 11}}, {"id": 562, "type": "identifier", "text": "displayACLHelp", "parent": 559, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 27}}, {"id": 563, "type": "ERROR", "text": ":(id)sender;", "parent": 527, "children": [564, 565], "start_point": {"row": 104, "column": 27}, "end_point": {"row": 104, "column": 39}}, {"id": 564, "type": "identifier", "text": "id", "parent": 563, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 31}}, {"id": 565, "type": "identifier", "text": "sender", "parent": 563, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 38}}, {"id": 566, "type": "-", "text": "-", "parent": 527, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 567, "type": "cast_expression", "text": "(IBAction) displayRunningPrivilegedHelp", "parent": 527, "children": [568, 570], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 41}}, {"id": 568, "type": "type_descriptor", "text": "IBAction", "parent": 567, "children": [569], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 11}}, {"id": 569, "type": "type_identifier", "text": "IBAction", "parent": 568, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 11}}, {"id": 570, "type": "identifier", "text": "displayRunningPrivilegedHelp", "parent": 567, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 41}}, {"id": 571, "type": "ERROR", "text": ":(id)sender;", "parent": 526, "children": [572, 573], "start_point": {"row": 105, "column": 41}, "end_point": {"row": 105, "column": 53}}, {"id": 572, "type": "identifier", "text": "id", "parent": 571, "children": [], "start_point": {"row": 105, "column": 43}, "end_point": {"row": 105, "column": 45}}, {"id": 573, "type": "identifier", "text": "sender", "parent": 571, "children": [], "start_point": {"row": 105, "column": 46}, "end_point": {"row": 105, "column": 52}}, {"id": 574, "type": "-", "text": "-", "parent": 526, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 575, "type": "cast_expression", "text": "(IBAction) displayRepairPermissionsHelp", "parent": 526, "children": [576, 578], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 41}}, {"id": 576, "type": "type_descriptor", "text": "IBAction", "parent": 575, "children": [577], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 11}}, {"id": 577, "type": "type_identifier", "text": "IBAction", "parent": 576, "children": [], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 11}}, {"id": 578, "type": "identifier", "text": "displayRepairPermissionsHelp", "parent": 575, "children": [], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 41}}, {"id": 579, "type": "ERROR", "text": ":(id)sender;", "parent": 525, "children": [580, 581], "start_point": {"row": 106, "column": 41}, "end_point": {"row": 106, "column": 53}}, {"id": 580, "type": "identifier", "text": "id", "parent": 579, "children": [], "start_point": {"row": 106, "column": 43}, "end_point": {"row": 106, "column": 45}}, {"id": 581, "type": "identifier", "text": "sender", "parent": 579, "children": [], "start_point": {"row": 106, "column": 46}, "end_point": {"row": 106, "column": 52}}, {"id": 582, "type": "-", "text": "-", "parent": 525, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 583, "type": "cast_expression", "text": "(IBAction) openAcknowledgements", "parent": 525, "children": [584, 586], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 33}}, {"id": 584, "type": "type_descriptor", "text": "IBAction", "parent": 583, "children": [585], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 11}}, {"id": 585, "type": "type_identifier", "text": "IBAction", "parent": 584, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 11}}, {"id": 586, "type": "identifier", "text": "openAcknowledgements", "parent": 583, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 33}}, {"id": 587, "type": "ERROR", "text": ":(id)sender;", "parent": 524, "children": [588, 589], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 45}}, {"id": 588, "type": "identifier", "text": "id", "parent": 587, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 37}}, {"id": 589, "type": "identifier", "text": "sender", "parent": 587, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 44}}, {"id": 590, "type": "-", "text": "-", "parent": 524, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 591, "type": "cast_expression", "text": "(IBAction) openLicense", "parent": 524, "children": [592, 594], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 24}}, {"id": 592, "type": "type_descriptor", "text": "IBAction", "parent": 591, "children": [593], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 11}}, {"id": 593, "type": "type_identifier", "text": "IBAction", "parent": 592, "children": [], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 11}}, {"id": 594, "type": "identifier", "text": "openLicense", "parent": 591, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 24}}, {"id": 595, "type": "ERROR", "text": ":(id)sender;", "parent": 523, "children": [596, 597], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 36}}, {"id": 596, "type": "identifier", "text": "id", "parent": 595, "children": [], "start_point": {"row": 108, "column": 26}, "end_point": {"row": 108, "column": 28}}, {"id": 597, "type": "identifier", "text": "sender", "parent": 595, "children": [], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 35}}, {"id": 598, "type": "-", "text": "-", "parent": 523, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 599, "type": "cast_expression", "text": "(IBAction) openTomcatDocs", "parent": 523, "children": [600, 602], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 27}}, {"id": 600, "type": "type_descriptor", "text": "IBAction", "parent": 599, "children": [601], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 11}}, {"id": 601, "type": "type_identifier", "text": "IBAction", "parent": 600, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 11}}, {"id": 602, "type": "identifier", "text": "openTomcatDocs", "parent": 599, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 27}}, {"id": 603, "type": "ERROR", "text": ":(id)sender;", "parent": 522, "children": [604, 605], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 39}}, {"id": 604, "type": "identifier", "text": "id", "parent": 603, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 31}}, {"id": 605, "type": "identifier", "text": "sender", "parent": 603, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 38}}, {"id": 606, "type": "-", "text": "-", "parent": 522, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 1}}, {"id": 607, "type": "cast_expression", "text": "(IBAction) openRunningTomcat", "parent": 522, "children": [608, 610], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 30}}, {"id": 608, "type": "type_descriptor", "text": "IBAction", "parent": 607, "children": [609], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 11}}, {"id": 609, "type": "type_identifier", "text": "IBAction", "parent": 608, "children": [], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 11}}, {"id": 610, "type": "identifier", "text": "openRunningTomcat", "parent": 607, "children": [], "start_point": {"row": 110, "column": 13}, "end_point": {"row": 110, "column": 30}}, {"id": 611, "type": "ERROR", "text": ":(id)sender;", "parent": 521, "children": [612, 613], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 42}}, {"id": 612, "type": "identifier", "text": "id", "parent": 611, "children": [], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 34}}, {"id": 613, "type": "identifier", "text": "sender", "parent": 611, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 41}}, {"id": 614, "type": "-", "text": "-", "parent": 521, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 1}}, {"id": 615, "type": "cast_expression", "text": "(IBAction) openTomcatWebsite", "parent": 521, "children": [616, 618], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 30}}, {"id": 616, "type": "type_descriptor", "text": "IBAction", "parent": 615, "children": [617], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 11}}, {"id": 617, "type": "type_identifier", "text": "IBAction", "parent": 616, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 11}}, {"id": 618, "type": "identifier", "text": "openTomcatWebsite", "parent": 615, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 30}}, {"id": 619, "type": "ERROR", "text": ":(id)sender;", "parent": 520, "children": [620, 621], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 42}}, {"id": 620, "type": "identifier", "text": "id", "parent": 619, "children": [], "start_point": {"row": 111, "column": 32}, "end_point": {"row": 111, "column": 34}}, {"id": 621, "type": "identifier", "text": "sender", "parent": 619, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 41}}, {"id": 622, "type": "-", "text": "-", "parent": 520, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 623, "type": "cast_expression", "text": "(IBAction) sendCatSlapperFeedback", "parent": 520, "children": [624, 626], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 35}}, {"id": 624, "type": "type_descriptor", "text": "IBAction", "parent": 623, "children": [625], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 11}}, {"id": 625, "type": "type_identifier", "text": "IBAction", "parent": 624, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 11}}, {"id": 626, "type": "identifier", "text": "sendCatSlapperFeedback", "parent": 623, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 35}}, {"id": 627, "type": "ERROR", "text": ":(id)sender;", "parent": 519, "children": [628, 629], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 47}}, {"id": 628, "type": "identifier", "text": "id", "parent": 627, "children": [], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 39}}, {"id": 629, "type": "identifier", "text": "sender", "parent": 627, "children": [], "start_point": {"row": 112, "column": 40}, "end_point": {"row": 112, "column": 46}}, {"id": 630, "type": "-", "text": "-", "parent": 519, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 631, "type": "cast_expression", "text": "(IBAction) newVersionCheck", "parent": 519, "children": [632, 634], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 28}}, {"id": 632, "type": "type_descriptor", "text": "IBAction", "parent": 631, "children": [633], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 11}}, {"id": 633, "type": "type_identifier", "text": "IBAction", "parent": 632, "children": [], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 11}}, {"id": 634, "type": "identifier", "text": "newVersionCheck", "parent": 631, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 28}}, {"id": 635, "type": "ERROR", "text": ":(id)sender;", "parent": 518, "children": [636, 637], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 40}}, {"id": 636, "type": "identifier", "text": "id", "parent": 635, "children": [], "start_point": {"row": 114, "column": 30}, "end_point": {"row": 114, "column": 32}}, {"id": 637, "type": "identifier", "text": "sender", "parent": 635, "children": [], "start_point": {"row": 114, "column": 33}, "end_point": {"row": 114, "column": 39}}, {"id": 638, "type": "-", "text": "-", "parent": 518, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 639, "type": "cast_expression", "text": "(IBAction) askUserIfWeCanGetNewVersion", "parent": 518, "children": [640, 642], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 40}}, {"id": 640, "type": "type_descriptor", "text": "IBAction", "parent": 639, "children": [641], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 11}}, {"id": 641, "type": "type_identifier", "text": "IBAction", "parent": 640, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 11}}, {"id": 642, "type": "identifier", "text": "askUserIfWeCanGetNewVersion", "parent": 639, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 40}}, {"id": 643, "type": "ERROR", "text": ":(id)sender;", "parent": 517, "children": [644, 645], "start_point": {"row": 115, "column": 40}, "end_point": {"row": 115, "column": 52}}, {"id": 644, "type": "identifier", "text": "id", "parent": 643, "children": [], "start_point": {"row": 115, "column": 42}, "end_point": {"row": 115, "column": 44}}, {"id": 645, "type": "identifier", "text": "sender", "parent": 643, "children": [], "start_point": {"row": 115, "column": 45}, "end_point": {"row": 115, "column": 51}}, {"id": 646, "type": "-", "text": "-", "parent": 517, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 1}}, {"id": 647, "type": "cast_expression", "text": "(IBAction) cancelGetNewVersion", "parent": 517, "children": [648, 650], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 32}}, {"id": 648, "type": "type_descriptor", "text": "IBAction", "parent": 647, "children": [649], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 11}}, {"id": 649, "type": "type_identifier", "text": "IBAction", "parent": 648, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 11}}, {"id": 650, "type": "identifier", "text": "cancelGetNewVersion", "parent": 647, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 32}}, {"id": 651, "type": "ERROR", "text": ":(id)sender;", "parent": 516, "children": [652, 653], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 44}}, {"id": 652, "type": "identifier", "text": "id", "parent": 651, "children": [], "start_point": {"row": 116, "column": 34}, "end_point": {"row": 116, "column": 36}}, {"id": 653, "type": "identifier", "text": "sender", "parent": 651, "children": [], "start_point": {"row": 116, "column": 37}, "end_point": {"row": 116, "column": 43}}, {"id": 654, "type": "-", "text": "-", "parent": 516, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 1}}, {"id": 655, "type": "cast_expression", "text": "(IBAction) getNewVersion", "parent": 516, "children": [656, 658], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 26}}, {"id": 656, "type": "type_descriptor", "text": "IBAction", "parent": 655, "children": [657], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 11}}, {"id": 657, "type": "type_identifier", "text": "IBAction", "parent": 656, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 11}}, {"id": 658, "type": "identifier", "text": "getNewVersion", "parent": 655, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 26}}, {"id": 659, "type": "ERROR", "text": ":(id)sender;", "parent": 515, "children": [660, 661], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 38}}, {"id": 660, "type": "identifier", "text": "id", "parent": 659, "children": [], "start_point": {"row": 117, "column": 28}, "end_point": {"row": 117, "column": 30}}, {"id": 661, "type": "identifier", "text": "sender", "parent": 659, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 37}}, {"id": 662, "type": "-", "text": "-", "parent": 515, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 663, "type": "cast_expression", "text": "(void) registerObservations", "parent": 515, "children": [664, 666], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 29}}, {"id": 664, "type": "type_descriptor", "text": "void", "parent": 663, "children": [665], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 7}}, {"id": 665, "type": "primitive_type", "text": "void", "parent": 664, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 7}}, {"id": 666, "type": "identifier", "text": "registerObservations", "parent": 663, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 29}}, {"id": 667, "type": "--", "text": "", "parent": 514, "children": [], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 29}}, {"id": 668, "type": "unary_expression", "text": "- (void) removeObservations", "parent": null, "children": [669, 670], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 27}}, {"id": 669, "type": "-", "text": "-", "parent": 668, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 670, "type": "cast_expression", "text": "(void) removeObservations", "parent": 668, "children": [671, 673], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 27}}, {"id": 671, "type": "type_descriptor", "text": "void", "parent": 670, "children": [672], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 7}}, {"id": 672, "type": "primitive_type", "text": "void", "parent": 671, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 7}}, {"id": 673, "type": "identifier", "text": "removeObservations", "parent": 670, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 27}}, {"id": 674, "type": "ERROR", "text": "@", "parent": null, "children": [675], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 1}}, {"id": 675, "type": "ERROR", "text": "@", "parent": 674, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 1}}]}, "node_categories": {"declarations": {"functions": [25], "variables": [5, 9, 13, 17, 21, 30, 33, 36, 39, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105, 112, 119, 126, 132, 139, 145, 151, 157, 163, 170, 176, 182, 187, 192, 197, 202, 207, 212], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [129, 142, 148, 154, 160, 173, 179, 217, 219, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 256, 265, 274, 282, 290, 298, 306, 314, 322, 330, 338, 346, 354, 362, 370, 378, 386, 394, 402, 410, 418, 426, 434, 442, 450, 458, 466, 474, 482, 487, 489, 493, 495, 499, 501, 505, 507, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 534, 543, 551, 559, 567, 575, 583, 591, 599, 607, 615, 623, 631, 639, 647, 655, 663, 668, 670], "assignments": [], "loops": [], "conditionals": [6, 10, 14, 18, 22, 26, 27, 29, 31, 32, 34, 35, 37, 38, 40, 41, 43, 45, 48, 50, 52, 55, 57, 59, 62, 64, 66, 69, 71, 73, 76, 78, 80, 83, 85, 87, 90, 92, 94, 97, 99, 101, 104, 106, 108, 111, 113, 115, 118, 120, 122, 125, 127, 128, 131, 133, 135, 138, 140, 141, 144, 146, 147, 150, 152, 153, 156, 158, 159, 162, 164, 166, 169, 171, 172, 175, 177, 178, 181, 183, 186, 188, 191, 193, 196, 198, 201, 203, 206, 208, 211, 213, 216, 222, 259, 261, 263, 268, 270, 272, 276, 277, 279, 280, 284, 285, 287, 288, 292, 293, 295, 296, 300, 301, 303, 304, 308, 309, 311, 312, 316, 317, 319, 320, 324, 325, 327, 328, 332, 333, 335, 336, 340, 341, 343, 344, 348, 349, 351, 352, 356, 357, 359, 360, 364, 365, 367, 368, 372, 373, 375, 376, 380, 381, 383, 384, 388, 389, 391, 392, 396, 397, 399, 400, 404, 405, 407, 408, 412, 413, 415, 416, 420, 421, 423, 424, 428, 429, 431, 432, 436, 437, 439, 440, 444, 445, 447, 448, 452, 453, 455, 456, 460, 461, 463, 464, 468, 469, 471, 472, 476, 477, 479, 480, 484, 485, 491, 492, 498, 504, 510, 512, 513, 537, 539, 541, 545, 546, 548, 549, 553, 554, 556, 557, 561, 562, 564, 565, 569, 570, 572, 573, 577, 578, 580, 581, 585, 586, 588, 589, 593, 594, 596, 597, 601, 602, 604, 605, 609, 610, 612, 613, 617, 618, 620, 621, 625, 626, 628, 629, 633, 634, 636, 637, 641, 642, 644, 645, 649, 650, 652, 653, 657, 658, 660, 661, 666, 673], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "TCSController", "text_snippet": "interface TCSController : NSObject {\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsCl"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// TCSController.h\n// TomcatSlapper\n//\n// Created by <NAME> on 9/20/04.\n// Copyright 2004 Fivesquare Software, LLC. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@class TCSToolbarDelegate;\n@class TCSCatSlapper;\n@class TCSPrefController;\n@class TCSConsoleView;\n@class TCSKitty;\n\n@interface TCSController : NSObject {\n //interface\n BOOL infoIsClosed; \n BOOL consoleIsClosed; \n NSSize minSizeClosed;\n NSSize minSizeOpen;\n\n IBOutlet NSWindow *mainWin;\n IBOutlet NSWindow *entryWin;\n IBOutlet NSWindow *licensePanel;\n IBOutlet NSWindow *registrationPanel;\n IBOutlet NSWindow *newVersionPanel;\n IBOutlet NSTextView *licenseTextView;\n IBOutlet NSMenuItem *toggleControllerMenuItem;\n IBOutlet NSMenuItem *toggleInstallerMenuItem;\n IBOutlet NSWindow *enableACLsPanel;\n IBOutlet NSWindow *okToRunPrivilegedPanel;\n IBOutlet NSWindow *okToRepairPermissionsPanel;\n\n IBOutlet NSToolbar *toolbar;\n IBOutlet TCSToolbarDelegate *toolbarDelegate;\n \n IBOutlet NSTabView *tabView;\n IBOutlet TCSConsoleView *consoleView;\n IBOutlet NSScrollView *consoleScrollView;\n \n IBOutlet NSTextField *catalinaOptsField;\n IBOutlet NSTextField *entryField;\n IBOutlet NSButton *toggleUseDefaultsSwitch;\n \n //model objects\n IBOutlet TCSCatSlapper *slapper;\n IBOutlet NSArrayController *kittyController;\n\n NSMenu *dockMenu;\n \n // alerts\n NSAlert *badRegInfoAlert;\n NSAlert *latestVersionAlert;\n NSAlert *cantUseSytemDaemonsAlert;\n NSAlert *enablingACLsFailedAlert;\n NSAlert *syncingLaunchDaemonsFailedAlert;\n NSAlert *repairingPermissionsFailedAlert;\n \n}\n\n- (void) drawBackground;\n- (void) drawOpenInto:(NSImage *)bg;\n- (void) drawClosedInto:(NSImage *)bg; \n\n- (IBAction) clearConsole:(id)sender;\n- (IBAction) showPreferences:(id)sender;\n- (IBAction) displayServerConfigErrors:(id)sender;\n- (IBAction) selectServerTab:(id)sender;\n- (IBAction) selectEnvironmentTab:(id)sender;\n- (IBAction) selectComponentsTab:(id)sender;\n\n- (IBAction) browse:(id)sender;\n- (IBAction) editOpts:(id)sender;\n- (IBAction) didEndEditOpts:(id)sender;\n- (IBAction) toggleController:(id)sender;\n- (IBAction) toggleInstaller:(id)sender;\n\n- (IBAction) toggleInfo:(id)sender;\n- (IBAction) toggleConsole:(id)sender;\n- (IBAction) askUserIfWeCanInstallACLs:(id)sender;\n- (IBAction) cancelACLInstall:(id)sender;\n- (IBAction) proceedWithACLInstall:(id)sender;\n- (IBAction) warnUserTheyCantUseSystemDaemons:(id)sender;\n- (IBAction) warnUserThatEnablingACLsFailed:(id)sender;\n- (IBAction) warnUserThatSyncingLaunchDaemonsFailed:(id)sender ;\n- (IBAction) askUserIfWeCanRunPrivileged:(id)sender;\n- (IBAction) cancelRunPrivileged:(id)sender;\n- (IBAction) proceedToRunPrivileged:(id)sender;\n- (IBAction) askUserIfWeCanRepairPermissions:(id)sender;\n- (IBAction) cancelRepairPermissions:(id)sender;\n- (IBAction) proceedToRepairPermissions:(id)sender;\n- (IBAction) warnUserThatRepairingPermissionsFailed:(id)sender;\n\n- (BOOL) MacOSPantherOrBetter;\n- (BOOL) MacOSTigerOrBetter;\n- (void) shutdownUnsupportedPlatform;\n- (void) meow;\n- (void) checkForNewVersion:(BOOL)forced;\n- (void) signalNotification:(NSNotification *)notification;\n\n- (IBAction) visitFivesquare:(id)sender;\n- (IBAction) displayManagerHelp:(id)sender;\n- (IBAction) displayACLHelp:(id)sender; \n- (IBAction) displayRunningPrivilegedHelp:(id)sender;\n- (IBAction) displayRepairPermissionsHelp:(id)sender;\n- (IBAction) openAcknowledgements:(id)sender;\n- (IBAction) openLicense:(id)sender;\n- (IBAction) openTomcatDocs:(id)sender;\n- (IBAction) openRunningTomcat:(id)sender;\n- (IBAction) openTomcatWebsite:(id)sender;\n- (IBAction) sendCatSlapperFeedback:(id)sender;\n\n- (IBAction) newVersionCheck:(id)sender;\n- (IBAction) askUserIfWeCanGetNewVersion:(id)sender;\n- (IBAction) cancelGetNewVersion:(id)sender;\n- (IBAction) getNewVersion:(id)sender;\n \n\n- (void) registerObservations;\n- (void) removeObservations; \n\n@end\n"}
80,711
c
/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments. * For more information visit http://www.chaibio.com * * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>> * * 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 _QPCRSERVER_H_ #define _QPCRSERVER_H_ #include "watchdog.h" #include <Poco/Util/ServerApplication.h> #include <signal.h> #include <atomic> #include <memory> #include <exception> class IControl; class IThreadControl; class DBControl; class ExperimentController; class WirelessManager; class TimeChecker; class UpdateManager; // Class QPCRApplication class QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable { public: class MachineSettings { public: class Device { public: Device() { opticsChannels = 1; fanChange = false; } public: std::size_t opticsChannels; std::string serialNumber; std::string modelNumber; bool fanChange; }device; class Configuration { public: Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {} public: std::string version; std::string platform; float lidMaxTemp; float heatBlockMinTemp; float heatBlockMaxTemp; unsigned long dataSpaceSoftLimit; unsigned long dataSpaceHardLimit; }configuration; }; QPCRApplication(); inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); } inline bool isWorking() const { return _workState.load(); } inline void close() { _workState = false; } inline const MachineSettings& settings() const { return _settings; } inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; } inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; } inline void setException(std::exception_ptr exception) { _exception = exception; } void stopExperiment(const std::string &message); bool isMachinePaused() const; int getUserId(const std::string &token) const; protected: //from ServerApplication void defineOptions(Poco::Util::OptionSet &options); void handleOption(const std::string &name, const std::string &value); void initialize(Poco::Util::Application &self); int main(const std::vector<std::string> &args); private: void waitFlag(); void readDeviceFile(); void readConfigurationFile(); void initSignals(); bool waitSignal() const; private: sigset_t _signalsSet; std::atomic<bool> _workState; MachineSettings _settings; std::vector<std::shared_ptr<IControl>> _controlUnits; std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits; std::shared_ptr<DBControl> _dbControl; std::shared_ptr<ExperimentController> _experimentController; std::shared_ptr<WirelessManager> _wirelessManager; std::shared_ptr<TimeChecker> _timeChecker; std::shared_ptr<UpdateManager> _updateManager; std::exception_ptr _exception; }; #define qpcrApp QPCRApplication::getInstance() #endif
36.21
101
(translation_unit) "/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.\n * For more information visit http://www.chaibio.com\n *\n * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>\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 _QPCRSERVER_H_\n#define _QPCRSERVER_H_\n\n#include "watchdog.h"\n\n#include <Poco/Util/ServerApplication.h>\n\n#include <signal.h>\n#include <atomic>\n#include <memory>\n#include <exception>\n\nclass IControl;\nclass IThreadControl;\nclass DBControl;\nclass ExperimentController;\nclass WirelessManager;\nclass TimeChecker;\nclass UpdateManager;\n\n// Class QPCRApplication\nclass QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1; fanChange = false; }\n\n public:\n std::size_t opticsChannels;\n\n std::string serialNumber;\n std::string modelNumber;\n\n bool fanChange;\n }device;\n\n class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }configuration;\n };\n\n QPCRApplication();\n\n inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }\n\n inline bool isWorking() const { return _workState.load(); }\n inline void close() { _workState = false; }\n\n inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }\n\n inline void setException(std::exception_ptr exception) { _exception = exception; }\n\n void stopExperiment(const std::string &message);\n\n bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n //from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()\n\n#endif\n" (comment) "/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.\n * For more information visit http://www.chaibio.com\n *\n * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>\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 _QPCRSERVER_H_\n#define _QPCRSERVER_H_\n\n#include "watchdog.h"\n\n#include <Poco/Util/ServerApplication.h>\n\n#include <signal.h>\n#include <atomic>\n#include <memory>\n#include <exception>\n\nclass IControl;\nclass IThreadControl;\nclass DBControl;\nclass ExperimentController;\nclass WirelessManager;\nclass TimeChecker;\nclass UpdateManager;\n\n// Class QPCRApplication\nclass QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1; fanChange = false; }\n\n public:\n std::size_t opticsChannels;\n\n std::string serialNumber;\n std::string modelNumber;\n\n bool fanChange;\n }device;\n\n class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }configuration;\n };\n\n QPCRApplication();\n\n inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }\n\n inline bool isWorking() const { return _workState.load(); }\n inline void close() { _workState = false; }\n\n inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }\n\n inline void setException(std::exception_ptr exception) { _exception = exception; }\n\n void stopExperiment(const std::string &message);\n\n bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n //from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()\n\n#endif" (#ifndef) "#ifndef" (identifier) "_QPCRSERVER_H_" (preproc_def) "#define _QPCRSERVER_H_\n" (#define) "#define" (identifier) "_QPCRSERVER_H_" (preproc_include) "#include "watchdog.h"\n" (#include) "#include" (string_literal) ""watchdog.h"" (") """ (string_content) "watchdog.h" (") """ (preproc_include) "#include <Poco/Util/ServerApplication.h>\n" (#include) "#include" (system_lib_string) "<Poco/Util/ServerApplication.h>" (preproc_include) "#include <signal.h>\n" (#include) "#include" (system_lib_string) "<signal.h>" (preproc_include) "#include <atomic>\n" (#include) "#include" (system_lib_string) "<atomic>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <exception>\n" (#include) "#include" (system_lib_string) "<exception>" (declaration) "class IControl;" (type_identifier) "class" (identifier) "IControl" (;) ";" (declaration) "class IThreadControl;" (type_identifier) "class" (identifier) "IThreadControl" (;) ";" (declaration) "class DBControl;" (type_identifier) "class" (identifier) "DBControl" (;) ";" (declaration) "class ExperimentController;" (type_identifier) "class" (identifier) "ExperimentController" (;) ";" (declaration) "class WirelessManager;" (type_identifier) "class" (identifier) "WirelessManager" (;) ";" (declaration) "class TimeChecker;" (type_identifier) "class" (identifier) "TimeChecker" (;) ";" (declaration) "class UpdateManager;" (type_identifier) "class" (identifier) "UpdateManager" (;) ";" (comment) "// Class QPCRApplication" (declaration) "class QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1;" (type_identifier) "class" (ERROR) "QPCRApplication: public Poco::Util::" (identifier) "QPCRApplication" (:) ":" (identifier) "public" (identifier) "Poco" (:) ":" (:) ":" (identifier) "Util" (:) ":" (:) ":" (identifier) "ServerApplication" (,) "," (ERROR) "public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() {" (identifier) "public" (identifier) "Watchdog" (:) ":" (:) ":" (identifier) "Watchable" ({) "{" (identifier) "public" (:) ":" (identifier) "class" (identifier) "MachineSettings" ({) "{" (identifier) "public" (:) ":" (identifier) "class" (identifier) "Device" ({) "{" (identifier) "public" (:) ":" (function_declarator) "Device()" (identifier) "Device" (parameter_list) "()" (() "(" ()) ")" ({) "{" (init_declarator) "opticsChannels = 1" (identifier) "opticsChannels" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "fanChange = false;" (assignment_expression) "fanChange = false" (identifier) "fanChange" (=) "=" (false) "false" (;) ";" (ERROR) "}" (}) "}" (labeled_statement) "public:\n std::size_t opticsChannels;" (statement_identifier) "public" (:) ":" (labeled_statement) "std::size_t opticsChannels;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "size_t opticsChannels;" (primitive_type) "size_t" (identifier) "opticsChannels" (;) ";" (labeled_statement) "std::string serialNumber;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string serialNumber;" (type_identifier) "string" (identifier) "serialNumber" (;) ";" (labeled_statement) "std::string modelNumber;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string modelNumber;" (type_identifier) "string" (identifier) "modelNumber" (;) ";" (declaration) "bool fanChange;" (primitive_type) "bool" (identifier) "fanChange" (;) ";" (ERROR) "}" (}) "}" (expression_statement) "device;" (identifier) "device" (;) ";" (function_definition) "class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }" (type_identifier) "class" (identifier) "Configuration" (compound_statement) "{\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }" ({) "{" (labeled_statement) "public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (statement_identifier) "public" (:) ":" (ERROR) "Configuration():" (call_expression) "Configuration()" (identifier) "Configuration" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (comma_expression) "lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (call_expression) "lidMaxTemp(0)" (identifier) "lidMaxTemp" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (call_expression) "heatBlockMinTemp(0)" (identifier) "heatBlockMinTemp" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (call_expression) "heatBlockMaxTemp(0)" (identifier) "heatBlockMaxTemp" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (comma_expression) "dataSpaceSoftLimit(0), dataSpaceHardLimit(0)" (call_expression) "dataSpaceSoftLimit(0)" (identifier) "dataSpaceSoftLimit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (call_expression) "dataSpaceHardLimit(0)" (identifier) "dataSpaceHardLimit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (labeled_statement) "public:\n std::string version;" (statement_identifier) "public" (:) ":" (labeled_statement) "std::string version;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string version;" (type_identifier) "string" (identifier) "version" (;) ";" (labeled_statement) "std::string platform;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string platform;" (type_identifier) "string" (identifier) "platform" (;) ";" (declaration) "float lidMaxTemp;" (primitive_type) "float" (identifier) "lidMaxTemp" (;) ";" (declaration) "float heatBlockMinTemp;" (primitive_type) "float" (identifier) "heatBlockMinTemp" (;) ";" (declaration) "float heatBlockMaxTemp;" (primitive_type) "float" (identifier) "heatBlockMaxTemp" (;) ";" (declaration) "unsigned long dataSpaceSoftLimit;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "dataSpaceSoftLimit" (;) ";" (declaration) "unsigned long dataSpaceHardLimit;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "dataSpaceHardLimit" (;) ";" (}) "}" (expression_statement) "configuration;" (identifier) "configuration" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "QPCRApplication();" (call_expression) "QPCRApplication()" (identifier) "QPCRApplication" (argument_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }" (storage_class_specifier) "inline" (inline) "inline" (storage_class_specifier) "static" (static) "static" (type_identifier) "QPCRApplication" (ERROR) "&" (&) "&" (function_declarator) "getInstance()" (identifier) "getInstance" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return static_cast<QPCRApplication&>(instance()); }" ({) "{" (return_statement) "return static_cast<QPCRApplication&>(instance());" (return) "return" (binary_expression) "static_cast<QPCRApplication&>(instance())" (binary_expression) "static_cast<QPCRApplication" (identifier) "static_cast" (<) "<" (identifier) "QPCRApplication" (ERROR) "&" (&) "&" (>) ">" (parenthesized_expression) "(instance())" (() "(" (call_expression) "instance()" (identifier) "instance" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (ERROR) "inline bool isWorking() const" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "bool" (function_declarator) "isWorking()" (identifier) "isWorking" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return _workState.load(); }" ({) "{" (return_statement) "return _workState.load();" (return) "return" (call_expression) "_workState.load()" (field_expression) "_workState.load" (identifier) "_workState" (.) "." (field_identifier) "load" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (function_definition) "inline void close() { _workState = false; }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "close()" (identifier) "close" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ _workState = false; }" ({) "{" (expression_statement) "_workState = false;" (assignment_expression) "_workState = false" (identifier) "_workState" (=) "=" (false) "false" (;) ";" (}) "}" (function_definition) "inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }" (storage_class_specifier) "inline" (inline) "inline" (type_qualifier) "const" (const) "const" (type_identifier) "MachineSettings" (ERROR) "&" (&) "&" (function_declarator) "settings()" (identifier) "settings" (parameter_list) "()" (() "(" ()) ")" (declaration) "const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager;" (type_qualifier) "const" (const) "const" (ERROR) "{ return" ({) "{" (return) "return" (type_identifier) "_settings" (ERROR) "; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return" (;) ";" (}) "}" (inline) "inline" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "WirelessManager" (>) ">" (function_declarator) "wirelessManager() const" (identifier) "wirelessManager" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "_wirelessManager" (;) ";" (ERROR) "}\n inline std::shared_ptr<UpdateManager> updateManager() const" (}) "}" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "std" (ERROR) "::shared_ptr<UpdateManager>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "UpdateManager" (>) ">" (function_declarator) "updateManager() const" (identifier) "updateManager" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return _updateManager; }" ({) "{" (return_statement) "return _updateManager;" (return) "return" (identifier) "_updateManager" (;) ";" (}) "}" (function_definition) "inline void setException(std::exception_ptr exception) { _exception = exception; }" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "setException(std::exception_ptr exception)" (identifier) "setException" (parameter_list) "(std::exception_ptr exception)" (() "(" (parameter_declaration) "std::exception_ptr exception" (type_identifier) "std" (ERROR) "::exception_ptr" (:) ":" (:) ":" (identifier) "exception_ptr" (identifier) "exception" ()) ")" (compound_statement) "{ _exception = exception; }" ({) "{" (expression_statement) "_exception = exception;" (assignment_expression) "_exception = exception" (identifier) "_exception" (=) "=" (identifier) "exception" (;) ";" (}) "}" (declaration) "void stopExperiment(const std::string &message);" (primitive_type) "void" (function_declarator) "stopExperiment(const std::string &message)" (identifier) "stopExperiment" (parameter_list) "(const std::string &message)" (() "(" (parameter_declaration) "const std::string &message" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "message" ()) ")" (;) ";" (ERROR) "bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n //from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()" (primitive_type) "bool" (function_declarator) "isMachinePaused()" (identifier) "isMachinePaused" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n int getUserId(const std::string &token) const;\n\nprotected:\n //from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "int" (ERROR) "getUserId(const std::string &token) const;\n\nprotected:\n //from ServerApplication\n void" (function_declarator) "getUserId(const std::string &token) const" (identifier) "getUserId" (parameter_list) "(const std::string &token)" (() "(" (parameter_declaration) "const std::string &token" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "token" ()) ")" (identifier) "const" (;) ";" (identifier) "protected" (:) ":" (comment) "//from ServerApplication" (primitive_type) "void" (function_declarator) "defineOptions(Poco::Util::OptionSet &options)" (identifier) "defineOptions" (parameter_list) "(Poco::Util::OptionSet &options)" (() "(" (parameter_declaration) "Poco::Util::OptionSet &options" (type_identifier) "Poco" (ERROR) "::Util::OptionSet &" (:) ":" (:) ":" (identifier) "Util" (:) ":" (:) ":" (identifier) "OptionSet" (&) "&" (identifier) "options" ()) ")" (;) ";" (declaration) "void handleOption(const std::string &name, const std::string &value);" (primitive_type) "void" (function_declarator) "handleOption(const std::string &name, const std::string &value)" (identifier) "handleOption" (parameter_list) "(const std::string &name, const std::string &value)" (() "(" (parameter_declaration) "const std::string &name" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "name" (,) "," (parameter_declaration) "const std::string &value" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "value" ()) ")" (;) ";" (declaration) "void initialize(Poco::Util::Application &self);" (primitive_type) "void" (function_declarator) "initialize(Poco::Util::Application &self)" (identifier) "initialize" (parameter_list) "(Poco::Util::Application &self)" (() "(" (parameter_declaration) "Poco::Util::Application &self" (type_identifier) "Poco" (ERROR) "::Util::Application &" (:) ":" (:) ":" (identifier) "Util" (:) ":" (:) ":" (identifier) "Application" (&) "&" (identifier) "self" ()) ")" (;) ";" (declaration) "int main(const std::vector<std::string> &args);" (primitive_type) "int" (function_declarator) "main(const std::vector<std::string> &args)" (identifier) "main" (parameter_list) "(const std::vector<std::string> &args)" (() "(" (parameter_declaration) "const std::vector<std::string> &args" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<std::string> &" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "args" ()) ")" (;) ";" (ERROR) "private:" (type_identifier) "private" (:) ":" (declaration) "void waitFlag();" (primitive_type) "void" (function_declarator) "waitFlag()" (identifier) "waitFlag" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void readDeviceFile();" (primitive_type) "void" (function_declarator) "readDeviceFile()" (identifier) "readDeviceFile" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void readConfigurationFile();" (primitive_type) "void" (function_declarator) "readConfigurationFile()" (identifier) "readConfigurationFile" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void initSignals();" (primitive_type) "void" (function_declarator) "initSignals()" (identifier) "initSignals" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;" (primitive_type) "bool" (ERROR) "waitSignal() const;\n\nprivate:\n sigset_t" (function_declarator) "waitSignal() const" (identifier) "waitSignal" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "private" (:) ":" (identifier) "sigset_t" (identifier) "_signalsSet" (;) ";" (declaration) "std::atomic<bool> _workState;" (type_identifier) "std" (ERROR) "::atomic<bool>" (:) ":" (:) ":" (identifier) "atomic" (<) "<" (primitive_type) "bool" (>) ">" (identifier) "_workState" (;) ";" (declaration) "MachineSettings _settings;" (type_identifier) "MachineSettings" (identifier) "_settings" (;) ";" (declaration) "std::vector<std::shared_ptr<IControl>> _controlUnits;" (type_identifier) "std" (ERROR) "::vector<std::shared_ptr<IControl>>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "IControl" (>>) ">>" (identifier) "_controlUnits" (;) ";" (declaration) "std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;" (type_identifier) "std" (ERROR) "::vector<std::shared_ptr<IThreadControl>>" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "IThreadControl" (>>) ">>" (identifier) "_threadControlUnits" (;) ";" (declaration) "std::shared_ptr<DBControl> _dbControl;" (type_identifier) "std" (ERROR) "::shared_ptr<DBControl>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "DBControl" (>) ">" (identifier) "_dbControl" (;) ";" (declaration) "std::shared_ptr<ExperimentController> _experimentController;" (type_identifier) "std" (ERROR) "::shared_ptr<ExperimentController>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "ExperimentController" (>) ">" (identifier) "_experimentController" (;) ";" (declaration) "std::shared_ptr<WirelessManager> _wirelessManager;" (type_identifier) "std" (ERROR) "::shared_ptr<WirelessManager>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "WirelessManager" (>) ">" (identifier) "_wirelessManager" (;) ";" (declaration) "std::shared_ptr<TimeChecker> _timeChecker;" (type_identifier) "std" (ERROR) "::shared_ptr<TimeChecker>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "TimeChecker" (>) ">" (identifier) "_timeChecker" (;) ";" (declaration) "std::shared_ptr<UpdateManager> _updateManager;" (type_identifier) "std" (ERROR) "::shared_ptr<UpdateManager>" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "UpdateManager" (>) ">" (identifier) "_updateManager" (;) ";" (declaration) "std::exception_ptr _exception;" (type_identifier) "std" (ERROR) "::exception_ptr" (:) ":" (:) ":" (identifier) "exception_ptr" (identifier) "_exception" (;) ";" (ERROR) "};\n\n#define" (}) "}" (;) ";" (#define) "#define" (type_identifier) "qpcrApp" (ERROR) "QPCRApplication::" (identifier) "QPCRApplication" (:) ":" (:) ":" (function_declarator) "getInstance()" (identifier) "getInstance" (parameter_list) "()" (() "(" ()) ")" (#endif) "#endif"
753
43
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 36.21, "nodes": 430, "errors": 0, "source_hash": "916a81ecdfba272e1551cd8e412ae1894f6c03d33f492a56f06c89a4c6957153", "categorized_nodes": 293}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _QPCRSERVER_H_\n#define _QPCRSERVER_H_\n\n#include \"watchdog.h\"\n\n#include <Poco/Util/ServerApplication.h>\n\n#include <signal.h>\n#include <atomic>\n#include <memory>\n#include <exception>\n\nclass IControl;\nclass IThreadControl;\nclass DBControl;\nclass ExperimentController;\nclass WirelessManager;\nclass TimeChecker;\nclass UpdateManager;\n\n// Class QPCRApplication\nclass QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1; fanChange = false; }\n\n public:\n std::size_t opticsChannels;\n\n std::string serialNumber;\n std::string modelNumber;\n\n bool fanChange;\n }device;\n\n class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }configuration;\n };\n\n QPCRApplication();\n\n inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }\n\n inline bool isWorking() const { return _workState.load(); }\n inline void close() { _workState = false; }\n\n inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }\n\n inline void setException(std::exception_ptr exception) { _exception = exception; }\n\n void stopExperiment(const std::string &message);\n\n bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n\t//from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 26, 28, 30, 32, 34, 36, 38, 60, 66, 71, 76, 80, 145, 163, 176, 187, 222, 238, 248, 429], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 133, "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": "_QPCRSERVER_H_", "parent": 0, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define _QPCRSERVER_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": "_QPCRSERVER_H_", "parent": 3, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"watchdog.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"watchdog.h\"", "parent": 6, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <Poco/Util/ServerApplication.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<Poco/Util/ServerApplication.h>", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 40}}, {"id": 12, "type": "preproc_include", "text": "#include <signal.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<signal.h>", "parent": 12, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <atomic>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<atomic>", "parent": 15, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 17}}, {"id": 18, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<memory>", "parent": 18, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 17}}, {"id": 21, "type": "preproc_include", "text": "#include <exception>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<exception>", "parent": 21, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 20}}, {"id": 24, "type": "declaration", "text": "class IControl;", "parent": 0, "children": [25], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 15}}, {"id": 25, "type": "identifier", "text": "IControl", "parent": 24, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 14}}, {"id": 26, "type": "declaration", "text": "class IThreadControl;", "parent": 0, "children": [27], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 21}}, {"id": 27, "type": "identifier", "text": "IThreadControl", "parent": 26, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 20}}, {"id": 28, "type": "declaration", "text": "class DBControl;", "parent": 0, "children": [29], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 16}}, {"id": 29, "type": "identifier", "text": "DBControl", "parent": 28, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 15}}, {"id": 30, "type": "declaration", "text": "class ExperimentController;", "parent": 0, "children": [31], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 27}}, {"id": 31, "type": "identifier", "text": "ExperimentController", "parent": 30, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 26}}, {"id": 32, "type": "declaration", "text": "class WirelessManager;", "parent": 0, "children": [33], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 22}}, {"id": 33, "type": "identifier", "text": "WirelessManager", "parent": 32, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 21}}, {"id": 34, "type": "declaration", "text": "class TimeChecker;", "parent": 0, "children": [35], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 18}}, {"id": 35, "type": "identifier", "text": "TimeChecker", "parent": 34, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 17}}, {"id": 36, "type": "declaration", "text": "class UpdateManager;", "parent": 0, "children": [37], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 20}}, {"id": 37, "type": "identifier", "text": "UpdateManager", "parent": 36, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 19}}, {"id": 38, "type": "declaration", "text": "class QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1;", "parent": 0, "children": [39, 43, 44, 52], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 48, "column": 42}}, {"id": 39, "type": "ERROR", "text": "QPCRApplication: public Poco::Util::", "parent": 38, "children": [40, 41, 42], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 42}}, {"id": 40, "type": "identifier", "text": "QPCRApplication", "parent": 39, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 21}}, {"id": 41, "type": "identifier", "text": "Poco", "parent": 39, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 42, "type": "identifier", "text": "Util", "parent": 39, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 40}}, {"id": 43, "type": "identifier", "text": "ServerApplication", "parent": 38, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 59}}, {"id": 44, "type": "ERROR", "text": "public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() {", "parent": 38, "children": [45, 46, 47, 48, 49], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 48, "column": 22}}, {"id": 45, "type": "identifier", "text": "Watchdog", "parent": 44, "children": [], "start_point": {"row": 39, "column": 68}, "end_point": {"row": 39, "column": 76}}, {"id": 46, "type": "identifier", "text": "Watchable", "parent": 44, "children": [], "start_point": {"row": 39, "column": 78}, "end_point": {"row": 39, "column": 87}}, {"id": 47, "type": "identifier", "text": "MachineSettings", "parent": 44, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 25}}, {"id": 48, "type": "identifier", "text": "Device", "parent": 44, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 20}}, {"id": 49, "type": "function_declarator", "text": "Device()", "parent": 44, "children": [50, 51], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 20}}, {"id": 50, "type": "identifier", "text": "Device", "parent": 49, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 20}}, {"id": 52, "type": "init_declarator", "text": "opticsChannels = 1", "parent": 38, "children": [53, 54, 55], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 41}}, {"id": 53, "type": "identifier", "text": "opticsChannels", "parent": 52, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 37}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 48, "column": 38}, "end_point": {"row": 48, "column": 39}}, {"id": 55, "type": "number_literal", "text": "1", "parent": 52, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 41}}, {"id": 56, "type": "assignment_expression", "text": "fanChange = false", "parent": 0, "children": [57, 58, 59], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 60}}, {"id": 57, "type": "identifier", "text": "fanChange", "parent": 56, "children": [], "start_point": {"row": 48, "column": 43}, "end_point": {"row": 48, "column": 52}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 54}}, {"id": 59, "type": "false", "text": "false", "parent": 56, "children": [], "start_point": {"row": 48, "column": 55}, "end_point": {"row": 48, "column": 60}}, {"id": 60, "type": "labeled_statement", "text": "public:\n std::size_t opticsChannels;", "parent": 0, "children": [61], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 51, "column": 39}}, {"id": 61, "type": "labeled_statement", "text": "std::size_t opticsChannels;", "parent": 60, "children": [62, 63], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 39}}, {"id": 62, "type": "statement_identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 15}}, {"id": 63, "type": "declaration", "text": "size_t opticsChannels;", "parent": 61, "children": [64, 65], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 39}}, {"id": 64, "type": "primitive_type", "text": "size_t", "parent": 63, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 23}}, {"id": 65, "type": "identifier", "text": "opticsChannels", "parent": 63, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 38}}, {"id": 66, "type": "labeled_statement", "text": "std::string serialNumber;", "parent": 0, "children": [67, 68], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 37}}, {"id": 67, "type": "statement_identifier", "text": "std", "parent": 66, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 15}}, {"id": 68, "type": "declaration", "text": "string serialNumber;", "parent": 66, "children": [69, 70], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 37}}, {"id": 69, "type": "type_identifier", "text": "string", "parent": 68, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 23}}, {"id": 70, "type": "identifier", "text": "serialNumber", "parent": 68, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 36}}, {"id": 71, "type": "labeled_statement", "text": "std::string modelNumber;", "parent": 0, "children": [72, 73], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 36}}, {"id": 72, "type": "statement_identifier", "text": "std", "parent": 71, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 15}}, {"id": 73, "type": "declaration", "text": "string modelNumber;", "parent": 71, "children": [74, 75], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 36}}, {"id": 74, "type": "type_identifier", "text": "string", "parent": 73, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 23}}, {"id": 75, "type": "identifier", "text": "modelNumber", "parent": 73, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 35}}, {"id": 76, "type": "declaration", "text": "bool fanChange;", "parent": 0, "children": [77, 78], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 27}}, {"id": 77, "type": "primitive_type", "text": "bool", "parent": 76, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 16}}, {"id": 78, "type": "identifier", "text": "fanChange", "parent": 76, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 26}}, {"id": 79, "type": "identifier", "text": "device", "parent": 0, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 15}}, {"id": 80, "type": "function_definition", "text": "class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }", "parent": 0, "children": [81], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 81, "type": "identifier", "text": "Configuration", "parent": 80, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 27}}, {"id": 82, "type": "labeled_statement", "text": "public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)", "parent": 80, "children": [83], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 62, "column": 130}}, {"id": 83, "type": "ERROR", "text": "Configuration():", "parent": 82, "children": [84], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 28}}, {"id": 84, "type": "call_expression", "text": "Configuration()", "parent": 83, "children": [85, 86], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 27}}, {"id": 85, "type": "identifier", "text": "Configuration", "parent": 84, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 25}}, {"id": 86, "type": "argument_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 27}}, {"id": 87, "type": "comma_expression", "text": "lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)", "parent": 82, "children": [88, 92], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 130}}, {"id": 88, "type": "call_expression", "text": "lidMaxTemp(0)", "parent": 87, "children": [89, 90], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 42}}, {"id": 89, "type": "identifier", "text": "lidMaxTemp", "parent": 88, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 39}}, {"id": 90, "type": "argument_list", "text": "(0)", "parent": 88, "children": [91], "start_point": {"row": 62, "column": 39}, "end_point": {"row": 62, "column": 42}}, {"id": 91, "type": "number_literal", "text": "0", "parent": 90, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 41}}, {"id": 92, "type": "comma_expression", "text": "heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)", "parent": 87, "children": [93, 97], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 130}}, {"id": 93, "type": "call_expression", "text": "heatBlockMinTemp(0)", "parent": 92, "children": [94, 95], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 63}}, {"id": 94, "type": "identifier", "text": "heatBlockMinTemp", "parent": 93, "children": [], "start_point": {"row": 62, "column": 44}, "end_point": {"row": 62, "column": 60}}, {"id": 95, "type": "argument_list", "text": "(0)", "parent": 93, "children": [96], "start_point": {"row": 62, "column": 60}, "end_point": {"row": 62, "column": 63}}, {"id": 96, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 62, "column": 61}, "end_point": {"row": 62, "column": 62}}, {"id": 97, "type": "comma_expression", "text": "heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0)", "parent": 92, "children": [98, 102], "start_point": {"row": 62, "column": 65}, "end_point": {"row": 62, "column": 130}}, {"id": 98, "type": "call_expression", "text": "heatBlockMaxTemp(0)", "parent": 97, "children": [99, 100], "start_point": {"row": 62, "column": 65}, "end_point": {"row": 62, "column": 84}}, {"id": 99, "type": "identifier", "text": "heatBlockMaxTemp", "parent": 98, "children": [], "start_point": {"row": 62, "column": 65}, "end_point": {"row": 62, "column": 81}}, {"id": 100, "type": "argument_list", "text": "(0)", "parent": 98, "children": [101], "start_point": {"row": 62, "column": 81}, "end_point": {"row": 62, "column": 84}}, {"id": 101, "type": "number_literal", "text": "0", "parent": 100, "children": [], "start_point": {"row": 62, "column": 82}, "end_point": {"row": 62, "column": 83}}, {"id": 102, "type": "comma_expression", "text": "dataSpaceSoftLimit(0), dataSpaceHardLimit(0)", "parent": 97, "children": [103, 107], "start_point": {"row": 62, "column": 86}, "end_point": {"row": 62, "column": 130}}, {"id": 103, "type": "call_expression", "text": "dataSpaceSoftLimit(0)", "parent": 102, "children": [104, 105], "start_point": {"row": 62, "column": 86}, "end_point": {"row": 62, "column": 107}}, {"id": 104, "type": "identifier", "text": "dataSpaceSoftLimit", "parent": 103, "children": [], "start_point": {"row": 62, "column": 86}, "end_point": {"row": 62, "column": 104}}, {"id": 105, "type": "argument_list", "text": "(0)", "parent": 103, "children": [106], "start_point": {"row": 62, "column": 104}, "end_point": {"row": 62, "column": 107}}, {"id": 106, "type": "number_literal", "text": "0", "parent": 105, "children": [], "start_point": {"row": 62, "column": 105}, "end_point": {"row": 62, "column": 106}}, {"id": 107, "type": "call_expression", "text": "dataSpaceHardLimit(0)", "parent": 102, "children": [108, 109], "start_point": {"row": 62, "column": 109}, "end_point": {"row": 62, "column": 130}}, {"id": 108, "type": "identifier", "text": "dataSpaceHardLimit", "parent": 107, "children": [], "start_point": {"row": 62, "column": 109}, "end_point": {"row": 62, "column": 127}}, {"id": 109, "type": "argument_list", "text": "(0)", "parent": 107, "children": [110], "start_point": {"row": 62, "column": 127}, "end_point": {"row": 62, "column": 130}}, {"id": 110, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 62, "column": 128}, "end_point": {"row": 62, "column": 129}}, {"id": 111, "type": "labeled_statement", "text": "public:\n std::string version;", "parent": 80, "children": [112], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 65, "column": 32}}, {"id": 112, "type": "labeled_statement", "text": "std::string version;", "parent": 111, "children": [113, 114], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 32}}, {"id": 113, "type": "statement_identifier", "text": "std", "parent": 112, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 15}}, {"id": 114, "type": "declaration", "text": "string version;", "parent": 112, "children": [115, 116], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 32}}, {"id": 115, "type": "type_identifier", "text": "string", "parent": 114, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 23}}, {"id": 116, "type": "identifier", "text": "version", "parent": 114, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 31}}, {"id": 117, "type": "labeled_statement", "text": "std::string platform;", "parent": 80, "children": [118, 119], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 33}}, {"id": 118, "type": "statement_identifier", "text": "std", "parent": 117, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 15}}, {"id": 119, "type": "declaration", "text": "string platform;", "parent": 117, "children": [120, 121], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 33}}, {"id": 120, "type": "type_identifier", "text": "string", "parent": 119, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 23}}, {"id": 121, "type": "identifier", "text": "platform", "parent": 119, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 32}}, {"id": 122, "type": "declaration", "text": "float lidMaxTemp;", "parent": 80, "children": [123, 124], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 29}}, {"id": 123, "type": "primitive_type", "text": "float", "parent": 122, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 17}}, {"id": 124, "type": "identifier", "text": "lidMaxTemp", "parent": 122, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 28}}, {"id": 125, "type": "declaration", "text": "float heatBlockMinTemp;", "parent": 80, "children": [126, 127], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 35}}, {"id": 126, "type": "primitive_type", "text": "float", "parent": 125, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 17}}, {"id": 127, "type": "identifier", "text": "heatBlockMinTemp", "parent": 125, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 34}}, {"id": 128, "type": "declaration", "text": "float heatBlockMaxTemp;", "parent": 80, "children": [129, 130], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 35}}, {"id": 129, "type": "primitive_type", "text": "float", "parent": 128, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 17}}, {"id": 130, "type": "identifier", "text": "heatBlockMaxTemp", "parent": 128, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 34}}, {"id": 131, "type": "declaration", "text": "unsigned long dataSpaceSoftLimit;", "parent": 80, "children": [132, 135], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 45}}, {"id": 132, "type": "sized_type_specifier", "text": "unsigned long", "parent": 131, "children": [133, 134], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 25}}, {"id": 133, "type": "unsigned", "text": "unsigned", "parent": 132, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 20}}, {"id": 134, "type": "long", "text": "long", "parent": 132, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 25}}, {"id": 135, "type": "identifier", "text": "dataSpaceSoftLimit", "parent": 131, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 44}}, {"id": 136, "type": "declaration", "text": "unsigned long dataSpaceHardLimit;", "parent": 80, "children": [137, 140], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 45}}, {"id": 137, "type": "sized_type_specifier", "text": "unsigned long", "parent": 136, "children": [138, 139], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 25}}, {"id": 138, "type": "unsigned", "text": "unsigned", "parent": 137, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 20}}, {"id": 139, "type": "long", "text": "long", "parent": 137, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 25}}, {"id": 140, "type": "identifier", "text": "dataSpaceHardLimit", "parent": 136, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 44}}, {"id": 141, "type": "identifier", "text": "configuration", "parent": 0, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 22}}, {"id": 142, "type": "call_expression", "text": "QPCRApplication()", "parent": 0, "children": [143, 144], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 21}}, {"id": 143, "type": "identifier", "text": "QPCRApplication", "parent": 142, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 19}}, {"id": 144, "type": "argument_list", "text": "()", "parent": 142, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 21}}, {"id": 145, "type": "function_definition", "text": "inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }", "parent": 0, "children": [146, 148, 149], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 102}}, {"id": 146, "type": "storage_class_specifier", "text": "inline", "parent": 145, "children": [147], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 10}}, {"id": 147, "type": "inline", "text": "inline", "parent": 146, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 10}}, {"id": 148, "type": "type_identifier", "text": "QPCRApplication", "parent": 145, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 33}}, {"id": 149, "type": "function_declarator", "text": "getInstance()", "parent": 145, "children": [150, 151], "start_point": {"row": 80, "column": 35}, "end_point": {"row": 80, "column": 48}}, {"id": 150, "type": "identifier", "text": "getInstance", "parent": 149, "children": [], "start_point": {"row": 80, "column": 35}, "end_point": {"row": 80, "column": 46}}, {"id": 151, "type": "parameter_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 80, "column": 46}, "end_point": {"row": 80, "column": 48}}, {"id": 152, "type": "return_statement", "text": "return static_cast<QPCRApplication&>(instance());", "parent": 145, "children": [153], "start_point": {"row": 80, "column": 51}, "end_point": {"row": 80, "column": 100}}, {"id": 153, "type": "binary_expression", "text": "static_cast<QPCRApplication&>(instance())", "parent": 152, "children": [154, 158, 159], "start_point": {"row": 80, "column": 58}, "end_point": {"row": 80, "column": 99}}, {"id": 154, "type": "binary_expression", "text": "static_cast<QPCRApplication", "parent": 153, "children": [155, 156, 157], "start_point": {"row": 80, "column": 58}, "end_point": {"row": 80, "column": 85}}, {"id": 155, "type": "identifier", "text": "static_cast", "parent": 154, "children": [], "start_point": {"row": 80, "column": 58}, "end_point": {"row": 80, "column": 69}}, {"id": 156, "type": "<", "text": "<", "parent": 154, "children": [], "start_point": {"row": 80, "column": 69}, "end_point": {"row": 80, "column": 70}}, {"id": 157, "type": "identifier", "text": "QPCRApplication", "parent": 154, "children": [], "start_point": {"row": 80, "column": 70}, "end_point": {"row": 80, "column": 85}}, {"id": 158, "type": ">", "text": ">", "parent": 153, "children": [], "start_point": {"row": 80, "column": 86}, "end_point": {"row": 80, "column": 87}}, {"id": 159, "type": "parenthesized_expression", "text": "(instance())", "parent": 153, "children": [160], "start_point": {"row": 80, "column": 87}, "end_point": {"row": 80, "column": 99}}, {"id": 160, "type": "call_expression", "text": "instance()", "parent": 159, "children": [161, 162], "start_point": {"row": 80, "column": 88}, "end_point": {"row": 80, "column": 98}}, {"id": 161, "type": "identifier", "text": "instance", "parent": 160, "children": [], "start_point": {"row": 80, "column": 88}, "end_point": {"row": 80, "column": 96}}, {"id": 162, "type": "argument_list", "text": "()", "parent": 160, "children": [], "start_point": {"row": 80, "column": 96}, "end_point": {"row": 80, "column": 98}}, {"id": 163, "type": "ERROR", "text": "inline bool isWorking() const", "parent": 0, "children": [164, 166, 167], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 33}}, {"id": 164, "type": "storage_class_specifier", "text": "inline", "parent": 163, "children": [165], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 10}}, {"id": 165, "type": "inline", "text": "inline", "parent": 164, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 10}}, {"id": 166, "type": "primitive_type", "text": "bool", "parent": 163, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 15}}, {"id": 167, "type": "function_declarator", "text": "isWorking()", "parent": 163, "children": [168, 169], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 27}}, {"id": 168, "type": "identifier", "text": "isWorking", "parent": 167, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 25}}, {"id": 169, "type": "parameter_list", "text": "()", "parent": 167, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 27}}, {"id": 170, "type": "return_statement", "text": "return _workState.load();", "parent": 0, "children": [171], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 61}}, {"id": 171, "type": "call_expression", "text": "_workState.load()", "parent": 170, "children": [172, 175], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 60}}, {"id": 172, "type": "field_expression", "text": "_workState.load", "parent": 171, "children": [173, 174], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 58}}, {"id": 173, "type": "identifier", "text": "_workState", "parent": 172, "children": [], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 53}}, {"id": 174, "type": "field_identifier", "text": "load", "parent": 172, "children": [], "start_point": {"row": 82, "column": 54}, "end_point": {"row": 82, "column": 58}}, {"id": 175, "type": "argument_list", "text": "()", "parent": 171, "children": [], "start_point": {"row": 82, "column": 58}, "end_point": {"row": 82, "column": 60}}, {"id": 176, "type": "function_definition", "text": "inline void close() { _workState = false; }", "parent": 0, "children": [177, 179, 180], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 47}}, {"id": 177, "type": "storage_class_specifier", "text": "inline", "parent": 176, "children": [178], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 178, "type": "inline", "text": "inline", "parent": 177, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 179, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 15}}, {"id": 180, "type": "function_declarator", "text": "close()", "parent": 176, "children": [181, 182], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 23}}, {"id": 181, "type": "identifier", "text": "close", "parent": 180, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 21}}, {"id": 182, "type": "parameter_list", "text": "()", "parent": 180, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 23}}, {"id": 183, "type": "assignment_expression", "text": "_workState = false", "parent": 176, "children": [184, 185, 186], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 44}}, {"id": 184, "type": "identifier", "text": "_workState", "parent": 183, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 36}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 38}}, {"id": 186, "type": "false", "text": "false", "parent": 183, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 44}}, {"id": 187, "type": "function_definition", "text": "inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }", "parent": 0, "children": [188, 190, 191, 194, 208], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 88, "column": 90}}, {"id": 188, "type": "storage_class_specifier", "text": "inline", "parent": 187, "children": [189], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 189, "type": "inline", "text": "inline", "parent": 188, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 190, "type": "type_identifier", "text": "MachineSettings", "parent": 187, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 32}}, {"id": 191, "type": "function_declarator", "text": "settings()", "parent": 187, "children": [192, 193], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 44}}, {"id": 192, "type": "identifier", "text": "settings", "parent": 191, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 42}}, {"id": 193, "type": "parameter_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 44}}, {"id": 194, "type": "declaration", "text": "const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager;", "parent": 187, "children": [195, 196, 197, 207], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 87, "column": 94}}, {"id": 195, "type": "ERROR", "text": "{ return", "parent": 194, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 59}}, {"id": 196, "type": "type_identifier", "text": "_settings", "parent": 194, "children": [], "start_point": {"row": 85, "column": 60}, "end_point": {"row": 85, "column": 69}}, {"id": 197, "type": "ERROR", "text": "; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return", "parent": 194, "children": [198, 199, 200, 201, 202, 203, 204], "start_point": {"row": 85, "column": 69}, "end_point": {"row": 87, "column": 76}}, {"id": 198, "type": "inline", "text": "inline", "parent": 197, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 10}}, {"id": 199, "type": "identifier", "text": "std", "parent": 197, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 14}}, {"id": 200, "type": "identifier", "text": "shared_ptr", "parent": 197, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 26}}, {"id": 201, "type": "<", "text": "<", "parent": 197, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 27}}, {"id": 202, "type": "identifier", "text": "WirelessManager", "parent": 197, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 42}}, {"id": 203, "type": ">", "text": ">", "parent": 197, "children": [], "start_point": {"row": 87, "column": 42}, "end_point": {"row": 87, "column": 43}}, {"id": 204, "type": "function_declarator", "text": "wirelessManager() const", "parent": 197, "children": [205, 206], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 67}}, {"id": 205, "type": "identifier", "text": "wirelessManager", "parent": 204, "children": [], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 59}}, {"id": 206, "type": "parameter_list", "text": "()", "parent": 204, "children": [], "start_point": {"row": 87, "column": 59}, "end_point": {"row": 87, "column": 61}}, {"id": 207, "type": "identifier", "text": "_wirelessManager", "parent": 194, "children": [], "start_point": {"row": 87, "column": 77}, "end_point": {"row": 87, "column": 93}}, {"id": 208, "type": "ERROR", "text": "}\n inline std::shared_ptr<UpdateManager> updateManager() const", "parent": 187, "children": [209, 211, 212, 217], "start_point": {"row": 87, "column": 95}, "end_point": {"row": 88, "column": 63}}, {"id": 209, "type": "storage_class_specifier", "text": "inline", "parent": 208, "children": [210], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 10}}, {"id": 210, "type": "inline", "text": "inline", "parent": 209, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 10}}, {"id": 211, "type": "type_identifier", "text": "std", "parent": 208, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 14}}, {"id": 212, "type": "ERROR", "text": "::shared_ptr<UpdateManager>", "parent": 208, "children": [213, 214, 215, 216], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 41}}, {"id": 213, "type": "identifier", "text": "shared_ptr", "parent": 212, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 26}}, {"id": 214, "type": "<", "text": "<", "parent": 212, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 27}}, {"id": 215, "type": "identifier", "text": "UpdateManager", "parent": 212, "children": [], "start_point": {"row": 88, "column": 27}, "end_point": {"row": 88, "column": 40}}, {"id": 216, "type": ">", "text": ">", "parent": 212, "children": [], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 41}}, {"id": 217, "type": "function_declarator", "text": "updateManager() const", "parent": 208, "children": [218, 219], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 63}}, {"id": 218, "type": "identifier", "text": "updateManager", "parent": 217, "children": [], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 55}}, {"id": 219, "type": "parameter_list", "text": "()", "parent": 217, "children": [], "start_point": {"row": 88, "column": 55}, "end_point": {"row": 88, "column": 57}}, {"id": 220, "type": "return_statement", "text": "return _updateManager;", "parent": 187, "children": [221], "start_point": {"row": 88, "column": 66}, "end_point": {"row": 88, "column": 88}}, {"id": 221, "type": "identifier", "text": "_updateManager", "parent": 220, "children": [], "start_point": {"row": 88, "column": 73}, "end_point": {"row": 88, "column": 87}}, {"id": 222, "type": "function_definition", "text": "inline void setException(std::exception_ptr exception) { _exception = exception; }", "parent": 0, "children": [223, 225, 226], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 86}}, {"id": 223, "type": "storage_class_specifier", "text": "inline", "parent": 222, "children": [224], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 10}}, {"id": 224, "type": "inline", "text": "inline", "parent": 223, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 10}}, {"id": 225, "type": "primitive_type", "text": "void", "parent": 222, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 15}}, {"id": 226, "type": "function_declarator", "text": "setException(std::exception_ptr exception)", "parent": 222, "children": [227, 228], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 58}}, {"id": 227, "type": "identifier", "text": "setException", "parent": 226, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 28}}, {"id": 228, "type": "parameter_list", "text": "(std::exception_ptr exception)", "parent": 226, "children": [229], "start_point": {"row": 90, "column": 28}, "end_point": {"row": 90, "column": 58}}, {"id": 229, "type": "parameter_declaration", "text": "std::exception_ptr exception", "parent": 228, "children": [230, 231, 233], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 57}}, {"id": 230, "type": "type_identifier", "text": "std", "parent": 229, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 32}}, {"id": 231, "type": "ERROR", "text": "::exception_ptr", "parent": 229, "children": [232], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 47}}, {"id": 232, "type": "identifier", "text": "exception_ptr", "parent": 231, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 47}}, {"id": 233, "type": "identifier", "text": "exception", "parent": 229, "children": [], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 57}}, {"id": 234, "type": "assignment_expression", "text": "_exception = exception", "parent": 222, "children": [235, 236, 237], "start_point": {"row": 90, "column": 61}, "end_point": {"row": 90, "column": 83}}, {"id": 235, "type": "identifier", "text": "_exception", "parent": 234, "children": [], "start_point": {"row": 90, "column": 61}, "end_point": {"row": 90, "column": 71}}, {"id": 236, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 90, "column": 72}, "end_point": {"row": 90, "column": 73}}, {"id": 237, "type": "identifier", "text": "exception", "parent": 234, "children": [], "start_point": {"row": 90, "column": 74}, "end_point": {"row": 90, "column": 83}}, {"id": 238, "type": "declaration", "text": "void stopExperiment(const std::string &message);", "parent": 0, "children": [239, 240], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 52}}, {"id": 239, "type": "primitive_type", "text": "void", "parent": 238, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 8}}, {"id": 240, "type": "function_declarator", "text": "stopExperiment(const std::string &message)", "parent": 238, "children": [241, 242], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 51}}, {"id": 241, "type": "identifier", "text": "stopExperiment", "parent": 240, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 23}}, {"id": 242, "type": "parameter_list", "text": "(const std::string &message)", "parent": 240, "children": [243], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 51}}, {"id": 243, "type": "parameter_declaration", "text": "const std::string &message", "parent": 242, "children": [244, 245, 247], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 50}}, {"id": 244, "type": "type_identifier", "text": "std", "parent": 243, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 33}}, {"id": 245, "type": "ERROR", "text": "::string &", "parent": 243, "children": [246], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 43}}, {"id": 246, "type": "identifier", "text": "string", "parent": 245, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 41}}, {"id": 247, "type": "identifier", "text": "message", "parent": 243, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 50}}, {"id": 248, "type": "ERROR", "text": "bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n\t//from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()", "parent": 0, "children": [249, 250, 253, 274, 289, 300, 314, 315, 320, 325, 330, 335, 343, 351, 354, 365, 376, 384, 392, 400, 408, 416, 421, 423, 424, 426], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 131, "column": 46}}, {"id": 249, "type": "primitive_type", "text": "bool", "parent": 248, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 8}}, {"id": 250, "type": "function_declarator", "text": "isMachinePaused()", "parent": 248, "children": [251, 252], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 26}}, {"id": 251, "type": "identifier", "text": "isMachinePaused", "parent": 250, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 24}}, {"id": 252, "type": "parameter_list", "text": "()", "parent": 250, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 26}}, {"id": 253, "type": "declaration", "text": "const;\n int getUserId(const std::string &token) const;\n\nprotected:\n\t//from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);", "parent": 248, "children": [254, 255, 265], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 99, "column": 55}}, {"id": 254, "type": "primitive_type", "text": "int", "parent": 253, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 7}}, {"id": 255, "type": "ERROR", "text": "getUserId(const std::string &token) const;\n\nprotected:\n\t//from ServerApplication\n void", "parent": 253, "children": [256, 264], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 99, "column": 8}}, {"id": 256, "type": "function_declarator", "text": "getUserId(const std::string &token) const", "parent": 255, "children": [257, 258], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 49}}, {"id": 257, "type": "identifier", "text": "getUserId", "parent": 256, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 17}}, {"id": 258, "type": "parameter_list", "text": "(const std::string &token)", "parent": 256, "children": [259], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 43}}, {"id": 259, "type": "parameter_declaration", "text": "const std::string &token", "parent": 258, "children": [260, 261, 263], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 42}}, {"id": 260, "type": "type_identifier", "text": "std", "parent": 259, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 27}}, {"id": 261, "type": "ERROR", "text": "::string &", "parent": 259, "children": [262], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 37}}, {"id": 262, "type": "identifier", "text": "string", "parent": 261, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 35}}, {"id": 263, "type": "identifier", "text": "token", "parent": 259, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 42}}, {"id": 264, "type": "primitive_type", "text": "void", "parent": 255, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 8}}, {"id": 265, "type": "function_declarator", "text": "defineOptions(Poco::Util::OptionSet &options)", "parent": 253, "children": [266, 267], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 54}}, {"id": 266, "type": "identifier", "text": "defineOptions", "parent": 265, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 22}}, {"id": 267, "type": "parameter_list", "text": "(Poco::Util::OptionSet &options)", "parent": 265, "children": [268], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 54}}, {"id": 268, "type": "parameter_declaration", "text": "Poco::Util::OptionSet &options", "parent": 267, "children": [269, 270, 273], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 53}}, {"id": 269, "type": "type_identifier", "text": "Poco", "parent": 268, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 27}}, {"id": 270, "type": "ERROR", "text": "::Util::OptionSet &", "parent": 268, "children": [271, 272], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 46}}, {"id": 271, "type": "identifier", "text": "Util", "parent": 270, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 33}}, {"id": 272, "type": "identifier", "text": "OptionSet", "parent": 270, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 44}}, {"id": 273, "type": "identifier", "text": "options", "parent": 268, "children": [], "start_point": {"row": 99, "column": 46}, "end_point": {"row": 99, "column": 53}}, {"id": 274, "type": "declaration", "text": "void handleOption(const std::string &name, const std::string &value);", "parent": 248, "children": [275, 276], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 73}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 8}}, {"id": 276, "type": "function_declarator", "text": "handleOption(const std::string &name, const std::string &value)", "parent": 274, "children": [277, 278], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 72}}, {"id": 277, "type": "identifier", "text": "handleOption", "parent": 276, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 21}}, {"id": 278, "type": "parameter_list", "text": "(const std::string &name, const std::string &value)", "parent": 276, "children": [279, 284], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 72}}, {"id": 279, "type": "parameter_declaration", "text": "const std::string &name", "parent": 278, "children": [280, 281, 283], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 45}}, {"id": 280, "type": "type_identifier", "text": "std", "parent": 279, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 31}}, {"id": 281, "type": "ERROR", "text": "::string &", "parent": 279, "children": [282], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 41}}, {"id": 282, "type": "identifier", "text": "string", "parent": 281, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 39}}, {"id": 283, "type": "identifier", "text": "name", "parent": 279, "children": [], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 45}}, {"id": 284, "type": "parameter_declaration", "text": "const std::string &value", "parent": 278, "children": [285, 286, 288], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 71}}, {"id": 285, "type": "type_identifier", "text": "std", "parent": 284, "children": [], "start_point": {"row": 100, "column": 53}, "end_point": {"row": 100, "column": 56}}, {"id": 286, "type": "ERROR", "text": "::string &", "parent": 284, "children": [287], "start_point": {"row": 100, "column": 56}, "end_point": {"row": 100, "column": 66}}, {"id": 287, "type": "identifier", "text": "string", "parent": 286, "children": [], "start_point": {"row": 100, "column": 58}, "end_point": {"row": 100, "column": 64}}, {"id": 288, "type": "identifier", "text": "value", "parent": 284, "children": [], "start_point": {"row": 100, "column": 66}, "end_point": {"row": 100, "column": 71}}, {"id": 289, "type": "declaration", "text": "void initialize(Poco::Util::Application &self);", "parent": 248, "children": [290, 291], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 51}}, {"id": 290, "type": "primitive_type", "text": "void", "parent": 289, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 8}}, {"id": 291, "type": "function_declarator", "text": "initialize(Poco::Util::Application &self)", "parent": 289, "children": [292, 293], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 50}}, {"id": 292, "type": "identifier", "text": "initialize", "parent": 291, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 19}}, {"id": 293, "type": "parameter_list", "text": "(Poco::Util::Application &self)", "parent": 291, "children": [294], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 50}}, {"id": 294, "type": "parameter_declaration", "text": "Poco::Util::Application &self", "parent": 293, "children": [295, 296, 299], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 49}}, {"id": 295, "type": "type_identifier", "text": "Poco", "parent": 294, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 24}}, {"id": 296, "type": "ERROR", "text": "::Util::Application &", "parent": 294, "children": [297, 298], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 45}}, {"id": 297, "type": "identifier", "text": "Util", "parent": 296, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 30}}, {"id": 298, "type": "identifier", "text": "Application", "parent": 296, "children": [], "start_point": {"row": 102, "column": 32}, "end_point": {"row": 102, "column": 43}}, {"id": 299, "type": "identifier", "text": "self", "parent": 294, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 49}}, {"id": 300, "type": "declaration", "text": "int main(const std::vector<std::string> &args);", "parent": 248, "children": [301, 302], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 51}}, {"id": 301, "type": "primitive_type", "text": "int", "parent": 300, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 7}}, {"id": 302, "type": "function_declarator", "text": "main(const std::vector<std::string> &args)", "parent": 300, "children": [303, 304], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 50}}, {"id": 303, "type": "identifier", "text": "main", "parent": 302, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 12}}, {"id": 304, "type": "parameter_list", "text": "(const std::vector<std::string> &args)", "parent": 302, "children": [305], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 50}}, {"id": 305, "type": "parameter_declaration", "text": "const std::vector<std::string> &args", "parent": 304, "children": [306, 307, 313], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 49}}, {"id": 306, "type": "type_identifier", "text": "std", "parent": 305, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 22}}, {"id": 307, "type": "ERROR", "text": "::vector<std::string> &", "parent": 305, "children": [308, 309, 310, 311, 312], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 45}}, {"id": 308, "type": "identifier", "text": "vector", "parent": 307, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 30}}, {"id": 309, "type": "<", "text": "<", "parent": 307, "children": [], "start_point": {"row": 103, "column": 30}, "end_point": {"row": 103, "column": 31}}, {"id": 310, "type": "identifier", "text": "std", "parent": 307, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 34}}, {"id": 311, "type": "identifier", "text": "string", "parent": 307, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 42}}, {"id": 312, "type": ">", "text": ">", "parent": 307, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 43}}, {"id": 313, "type": "identifier", "text": "args", "parent": 305, "children": [], "start_point": {"row": 103, "column": 45}, "end_point": {"row": 103, "column": 49}}, {"id": 314, "type": "ERROR", "text": "private:", "parent": 248, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 8}}, {"id": 315, "type": "declaration", "text": "void waitFlag();", "parent": 248, "children": [316, 317], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 20}}, {"id": 316, "type": "primitive_type", "text": "void", "parent": 315, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 8}}, {"id": 317, "type": "function_declarator", "text": "waitFlag()", "parent": 315, "children": [318, 319], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 19}}, {"id": 318, "type": "identifier", "text": "waitFlag", "parent": 317, "children": [], "start_point": {"row": 106, "column": 9}, "end_point": {"row": 106, "column": 17}}, {"id": 319, "type": "parameter_list", "text": "()", "parent": 317, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 19}}, {"id": 320, "type": "declaration", "text": "void readDeviceFile();", "parent": 248, "children": [321, 322], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 26}}, {"id": 321, "type": "primitive_type", "text": "void", "parent": 320, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 322, "type": "function_declarator", "text": "readDeviceFile()", "parent": 320, "children": [323, 324], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 25}}, {"id": 323, "type": "identifier", "text": "readDeviceFile", "parent": 322, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 23}}, {"id": 324, "type": "parameter_list", "text": "()", "parent": 322, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 25}}, {"id": 325, "type": "declaration", "text": "void readConfigurationFile();", "parent": 248, "children": [326, 327], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 33}}, {"id": 326, "type": "primitive_type", "text": "void", "parent": 325, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 327, "type": "function_declarator", "text": "readConfigurationFile()", "parent": 325, "children": [328, 329], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 32}}, {"id": 328, "type": "identifier", "text": "readConfigurationFile", "parent": 327, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 30}}, {"id": 329, "type": "parameter_list", "text": "()", "parent": 327, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 32}}, {"id": 330, "type": "declaration", "text": "void initSignals();", "parent": 248, "children": [331, 332], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 23}}, {"id": 331, "type": "primitive_type", "text": "void", "parent": 330, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 8}}, {"id": 332, "type": "function_declarator", "text": "initSignals()", "parent": 330, "children": [333, 334], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 22}}, {"id": 333, "type": "identifier", "text": "initSignals", "parent": 332, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 20}}, {"id": 334, "type": "parameter_list", "text": "()", "parent": 332, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 22}}, {"id": 335, "type": "declaration", "text": "bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;", "parent": 248, "children": [336, 337, 342], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 114, "column": 25}}, {"id": 336, "type": "primitive_type", "text": "bool", "parent": 335, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 8}}, {"id": 337, "type": "ERROR", "text": "waitSignal() const;\n\nprivate:\n sigset_t", "parent": 335, "children": [338, 341], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 114, "column": 12}}, {"id": 338, "type": "function_declarator", "text": "waitSignal() const", "parent": 337, "children": [339, 340], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 27}}, {"id": 339, "type": "identifier", "text": "waitSignal", "parent": 338, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 19}}, {"id": 340, "type": "parameter_list", "text": "()", "parent": 338, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 21}}, {"id": 341, "type": "identifier", "text": "sigset_t", "parent": 337, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 12}}, {"id": 342, "type": "identifier", "text": "_signalsSet", "parent": 335, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 24}}, {"id": 343, "type": "declaration", "text": "std::atomic<bool> _workState;", "parent": 248, "children": [344, 345, 350], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 33}}, {"id": 344, "type": "type_identifier", "text": "std", "parent": 343, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 7}}, {"id": 345, "type": "ERROR", "text": "::atomic<bool>", "parent": 343, "children": [346, 347, 348, 349], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 21}}, {"id": 346, "type": "identifier", "text": "atomic", "parent": 345, "children": [], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 15}}, {"id": 347, "type": "<", "text": "<", "parent": 345, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 16}}, {"id": 348, "type": "primitive_type", "text": "bool", "parent": 345, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 20}}, {"id": 349, "type": ">", "text": ">", "parent": 345, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 21}}, {"id": 350, "type": "identifier", "text": "_workState", "parent": 343, "children": [], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 32}}, {"id": 351, "type": "declaration", "text": "MachineSettings _settings;", "parent": 248, "children": [352, 353], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 30}}, {"id": 352, "type": "type_identifier", "text": "MachineSettings", "parent": 351, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 19}}, {"id": 353, "type": "identifier", "text": "_settings", "parent": 351, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 29}}, {"id": 354, "type": "declaration", "text": "std::vector<std::shared_ptr<IControl>> _controlUnits;", "parent": 248, "children": [355, 356, 364], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 57}}, {"id": 355, "type": "type_identifier", "text": "std", "parent": 354, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 7}}, {"id": 356, "type": "ERROR", "text": "::vector<std::shared_ptr<IControl>>", "parent": 354, "children": [357, 358, 359, 360, 361, 362, 363], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 42}}, {"id": 357, "type": "identifier", "text": "vector", "parent": 356, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 15}}, {"id": 358, "type": "<", "text": "<", "parent": 356, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 16}}, {"id": 359, "type": "identifier", "text": "std", "parent": 356, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 19}}, {"id": 360, "type": "identifier", "text": "shared_ptr", "parent": 356, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 31}}, {"id": 361, "type": "<", "text": "<", "parent": 356, "children": [], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 32}}, {"id": 362, "type": "identifier", "text": "IControl", "parent": 356, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 40}}, {"id": 363, "type": ">>", "text": ">>", "parent": 356, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 42}}, {"id": 364, "type": "identifier", "text": "_controlUnits", "parent": 354, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 56}}, {"id": 365, "type": "declaration", "text": "std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;", "parent": 248, "children": [366, 367, 375], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 69}}, {"id": 366, "type": "type_identifier", "text": "std", "parent": 365, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 7}}, {"id": 367, "type": "ERROR", "text": "::vector<std::shared_ptr<IThreadControl>>", "parent": 365, "children": [368, 369, 370, 371, 372, 373, 374], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 48}}, {"id": 368, "type": "identifier", "text": "vector", "parent": 367, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 15}}, {"id": 369, "type": "<", "text": "<", "parent": 367, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 16}}, {"id": 370, "type": "identifier", "text": "std", "parent": 367, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 19}}, {"id": 371, "type": "identifier", "text": "shared_ptr", "parent": 367, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 31}}, {"id": 372, "type": "<", "text": "<", "parent": 367, "children": [], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 32}}, {"id": 373, "type": "identifier", "text": "IThreadControl", "parent": 367, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 46}}, {"id": 374, "type": ">>", "text": ">>", "parent": 367, "children": [], "start_point": {"row": 121, "column": 46}, "end_point": {"row": 121, "column": 48}}, {"id": 375, "type": "identifier", "text": "_threadControlUnits", "parent": 365, "children": [], "start_point": {"row": 121, "column": 49}, "end_point": {"row": 121, "column": 68}}, {"id": 376, "type": "declaration", "text": "std::shared_ptr<DBControl> _dbControl;", "parent": 248, "children": [377, 378, 383], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 42}}, {"id": 377, "type": "type_identifier", "text": "std", "parent": 376, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 7}}, {"id": 378, "type": "ERROR", "text": "::shared_ptr<DBControl>", "parent": 376, "children": [379, 380, 381, 382], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 30}}, {"id": 379, "type": "identifier", "text": "shared_ptr", "parent": 378, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 19}}, {"id": 380, "type": "<", "text": "<", "parent": 378, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 20}}, {"id": 381, "type": "identifier", "text": "DBControl", "parent": 378, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 29}}, {"id": 382, "type": ">", "text": ">", "parent": 378, "children": [], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 122, "column": 30}}, {"id": 383, "type": "identifier", "text": "_dbControl", "parent": 376, "children": [], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 41}}, {"id": 384, "type": "declaration", "text": "std::shared_ptr<ExperimentController> _experimentController;", "parent": 248, "children": [385, 386, 391], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 64}}, {"id": 385, "type": "type_identifier", "text": "std", "parent": 384, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 7}}, {"id": 386, "type": "ERROR", "text": "::shared_ptr<ExperimentController>", "parent": 384, "children": [387, 388, 389, 390], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 41}}, {"id": 387, "type": "identifier", "text": "shared_ptr", "parent": 386, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 19}}, {"id": 388, "type": "<", "text": "<", "parent": 386, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 20}}, {"id": 389, "type": "identifier", "text": "ExperimentController", "parent": 386, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 40}}, {"id": 390, "type": ">", "text": ">", "parent": 386, "children": [], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 41}}, {"id": 391, "type": "identifier", "text": "_experimentController", "parent": 384, "children": [], "start_point": {"row": 123, "column": 42}, "end_point": {"row": 123, "column": 63}}, {"id": 392, "type": "declaration", "text": "std::shared_ptr<WirelessManager> _wirelessManager;", "parent": 248, "children": [393, 394, 399], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 54}}, {"id": 393, "type": "type_identifier", "text": "std", "parent": 392, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 7}}, {"id": 394, "type": "ERROR", "text": "::shared_ptr<WirelessManager>", "parent": 392, "children": [395, 396, 397, 398], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 36}}, {"id": 395, "type": "identifier", "text": "shared_ptr", "parent": 394, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 19}}, {"id": 396, "type": "<", "text": "<", "parent": 394, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 20}}, {"id": 397, "type": "identifier", "text": "WirelessManager", "parent": 394, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 35}}, {"id": 398, "type": ">", "text": ">", "parent": 394, "children": [], "start_point": {"row": 124, "column": 35}, "end_point": {"row": 124, "column": 36}}, {"id": 399, "type": "identifier", "text": "_wirelessManager", "parent": 392, "children": [], "start_point": {"row": 124, "column": 37}, "end_point": {"row": 124, "column": 53}}, {"id": 400, "type": "declaration", "text": "std::shared_ptr<TimeChecker> _timeChecker;", "parent": 248, "children": [401, 402, 407], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 46}}, {"id": 401, "type": "type_identifier", "text": "std", "parent": 400, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 7}}, {"id": 402, "type": "ERROR", "text": "::shared_ptr<TimeChecker>", "parent": 400, "children": [403, 404, 405, 406], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 32}}, {"id": 403, "type": "identifier", "text": "shared_ptr", "parent": 402, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 19}}, {"id": 404, "type": "<", "text": "<", "parent": 402, "children": [], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 20}}, {"id": 405, "type": "identifier", "text": "TimeChecker", "parent": 402, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 31}}, {"id": 406, "type": ">", "text": ">", "parent": 402, "children": [], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 32}}, {"id": 407, "type": "identifier", "text": "_timeChecker", "parent": 400, "children": [], "start_point": {"row": 125, "column": 33}, "end_point": {"row": 125, "column": 45}}, {"id": 408, "type": "declaration", "text": "std::shared_ptr<UpdateManager> _updateManager;", "parent": 248, "children": [409, 410, 415], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 50}}, {"id": 409, "type": "type_identifier", "text": "std", "parent": 408, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 7}}, {"id": 410, "type": "ERROR", "text": "::shared_ptr<UpdateManager>", "parent": 408, "children": [411, 412, 413, 414], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 34}}, {"id": 411, "type": "identifier", "text": "shared_ptr", "parent": 410, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 19}}, {"id": 412, "type": "<", "text": "<", "parent": 410, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 20}}, {"id": 413, "type": "identifier", "text": "UpdateManager", "parent": 410, "children": [], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 33}}, {"id": 414, "type": ">", "text": ">", "parent": 410, "children": [], "start_point": {"row": 126, "column": 33}, "end_point": {"row": 126, "column": 34}}, {"id": 415, "type": "identifier", "text": "_updateManager", "parent": 408, "children": [], "start_point": {"row": 126, "column": 35}, "end_point": {"row": 126, "column": 49}}, {"id": 416, "type": "declaration", "text": "std::exception_ptr _exception;", "parent": 248, "children": [417, 418, 420], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 34}}, {"id": 417, "type": "type_identifier", "text": "std", "parent": 416, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 7}}, {"id": 418, "type": "ERROR", "text": "::exception_ptr", "parent": 416, "children": [419], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 22}}, {"id": 419, "type": "identifier", "text": "exception_ptr", "parent": 418, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 22}}, {"id": 420, "type": "identifier", "text": "_exception", "parent": 416, "children": [], "start_point": {"row": 128, "column": 23}, "end_point": {"row": 128, "column": 33}}, {"id": 421, "type": "ERROR", "text": "};\n\n#define", "parent": 248, "children": [422], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 131, "column": 7}}, {"id": 422, "type": "#define", "text": "#define", "parent": 421, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 7}}, {"id": 423, "type": "type_identifier", "text": "qpcrApp", "parent": 248, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 15}}, {"id": 424, "type": "ERROR", "text": "QPCRApplication::", "parent": 248, "children": [425], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 33}}, {"id": 425, "type": "identifier", "text": "QPCRApplication", "parent": 424, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 31}}, {"id": 426, "type": "function_declarator", "text": "getInstance()", "parent": 248, "children": [427, 428], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 46}}, {"id": 427, "type": "identifier", "text": "getInstance", "parent": 426, "children": [], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 44}}, {"id": 428, "type": "parameter_list", "text": "()", "parent": 426, "children": [], "start_point": {"row": 131, "column": 44}, "end_point": {"row": 131, "column": 46}}, {"id": 429, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 6}}]}, "node_categories": {"declarations": {"functions": [49, 80, 145, 149, 167, 176, 180, 187, 191, 204, 217, 222, 226, 240, 250, 256, 265, 276, 291, 302, 317, 322, 327, 332, 338, 426], "variables": [24, 26, 28, 30, 32, 34, 36, 38, 63, 68, 73, 76, 114, 119, 122, 125, 128, 131, 136, 194, 229, 238, 243, 253, 259, 268, 274, 279, 284, 289, 294, 300, 305, 315, 320, 325, 330, 335, 343, 351, 354, 365, 376, 384, 392, 400, 408, 416], "classes": [146, 164, 177, 188, 209, 223], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [84, 87, 88, 92, 93, 97, 98, 102, 103, 107, 142, 153, 154, 159, 160, 171, 172], "assignments": [56, 183, 234], "loops": [], "conditionals": [0, 1, 2, 5, 25, 27, 29, 31, 33, 35, 37, 40, 41, 42, 43, 45, 46, 47, 48, 50, 53, 57, 62, 65, 67, 69, 70, 72, 74, 75, 78, 79, 81, 85, 89, 94, 99, 104, 108, 113, 115, 116, 118, 120, 121, 124, 127, 130, 132, 135, 137, 140, 141, 143, 148, 150, 155, 157, 161, 168, 173, 174, 181, 184, 190, 192, 196, 199, 200, 202, 205, 207, 211, 213, 215, 218, 221, 227, 230, 232, 233, 235, 237, 241, 244, 246, 247, 251, 257, 260, 262, 263, 266, 269, 271, 272, 273, 277, 280, 282, 283, 285, 287, 288, 292, 295, 297, 298, 299, 303, 306, 308, 310, 311, 313, 318, 323, 328, 333, 339, 341, 342, 344, 346, 350, 352, 353, 355, 357, 359, 360, 362, 364, 366, 368, 370, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 420, 423, 425, 427, 429], "returns": [152, 170, 220], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 55, 91, 96, 101, 106, 110], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Device()"}, {"node_id": 80, "universal_type": "function", "name": "Configuration", "text_snippet": "class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockM"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "getInstance()"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "isWorking()"}, {"node_id": 176, "universal_type": "function", "name": "close", "text_snippet": "inline void close() { _workState = false; }"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "close()"}, {"node_id": 187, "universal_type": "function", "name": "unknown", "text_snippet": "inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<Wir"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "settings()"}, {"node_id": 204, "universal_type": "function", "name": "unknown", "text_snippet": "wirelessManager() const"}, {"node_id": 217, "universal_type": "function", "name": "unknown", "text_snippet": "updateManager() const"}, {"node_id": 222, "universal_type": "function", "name": "setException", "text_snippet": "inline void setException(std::exception_ptr exception) { _exception = exception; }"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "setException(std::exception_ptr exception)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "stopExperiment(const std::string &message)"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "isMachinePaused()"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "getUserId(const std::string &token) const"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "defineOptions(Poco::Util::OptionSet &options)"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "handleOption(const std::string &name, const std::string &value)"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "initialize(Poco::Util::Application &self)"}, {"node_id": 302, "universal_type": "function", "name": "unknown", "text_snippet": "main(const std::vector<std::string> &args)"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "waitFlag()"}, {"node_id": 322, "universal_type": "function", "name": "unknown", "text_snippet": "readDeviceFile()"}, {"node_id": 327, "universal_type": "function", "name": "unknown", "text_snippet": "readConfigurationFile()"}, {"node_id": 332, "universal_type": "function", "name": "unknown", "text_snippet": "initSignals()"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "waitSignal() const"}, {"node_id": 426, "universal_type": "function", "name": "unknown", "text_snippet": "getInstance()"}], "class_declarations": [{"node_id": 146, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 164, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 177, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 188, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 209, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 223, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"watchdog.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Poco/Util/ServerApplication.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <signal.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <atomic>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <memory>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <exception>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.\n * For more information visit http://www.chaibio.com\n *\n * Copyright 2016 Chai Biotechnologies Inc. <<EMAIL>>\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 _QPCRSERVER_H_\n#define _QPCRSERVER_H_\n\n#include \"watchdog.h\"\n\n#include <Poco/Util/ServerApplication.h>\n\n#include <signal.h>\n#include <atomic>\n#include <memory>\n#include <exception>\n\nclass IControl;\nclass IThreadControl;\nclass DBControl;\nclass ExperimentController;\nclass WirelessManager;\nclass TimeChecker;\nclass UpdateManager;\n\n// Class QPCRApplication\nclass QPCRApplication: public Poco::Util::ServerApplication, public Watchdog::Watchable\n{\npublic:\n class MachineSettings\n {\n public:\n class Device\n {\n public:\n Device() { opticsChannels = 1; fanChange = false; }\n\n public:\n std::size_t opticsChannels;\n\n std::string serialNumber;\n std::string modelNumber;\n\n bool fanChange;\n }device;\n\n class Configuration\n {\n public:\n Configuration(): lidMaxTemp(0), heatBlockMinTemp(0), heatBlockMaxTemp(0), dataSpaceSoftLimit(0), dataSpaceHardLimit(0) {}\n\n public:\n std::string version;\n std::string platform;\n\n float lidMaxTemp;\n\n float heatBlockMinTemp;\n float heatBlockMaxTemp;\n\n unsigned long dataSpaceSoftLimit;\n unsigned long dataSpaceHardLimit;\n }configuration;\n };\n\n QPCRApplication();\n\n inline static QPCRApplication& getInstance() { return static_cast<QPCRApplication&>(instance()); }\n\n inline bool isWorking() const { return _workState.load(); }\n inline void close() { _workState = false; }\n\n inline const MachineSettings& settings() const { return _settings; }\n\n inline std::shared_ptr<WirelessManager> wirelessManager() const { return _wirelessManager; }\n inline std::shared_ptr<UpdateManager> updateManager() const { return _updateManager; }\n\n inline void setException(std::exception_ptr exception) { _exception = exception; }\n\n void stopExperiment(const std::string &message);\n\n bool isMachinePaused() const;\n int getUserId(const std::string &token) const;\n\nprotected:\n\t//from ServerApplication\n void defineOptions(Poco::Util::OptionSet &options);\n void handleOption(const std::string &name, const std::string &value);\n\n void initialize(Poco::Util::Application &self);\n int main(const std::vector<std::string> &args);\n\nprivate:\n void waitFlag();\n void readDeviceFile();\n void readConfigurationFile();\n\n void initSignals();\n bool waitSignal() const;\n\nprivate:\n sigset_t _signalsSet;\n\n std::atomic<bool> _workState;\n\n MachineSettings _settings;\n\n std::vector<std::shared_ptr<IControl>> _controlUnits;\n std::vector<std::shared_ptr<IThreadControl>> _threadControlUnits;\n std::shared_ptr<DBControl> _dbControl;\n std::shared_ptr<ExperimentController> _experimentController;\n std::shared_ptr<WirelessManager> _wirelessManager;\n std::shared_ptr<TimeChecker> _timeChecker;\n std::shared_ptr<UpdateManager> _updateManager;\n\n std::exception_ptr _exception;\n};\n\n#define qpcrApp QPCRApplication::getInstance()\n\n#endif\n"}
80,712
c
#ifndef _FRACTION_H_ #define _FRACTION_H_ #include "types.h" typedef struct { ull_t p; ull_t q; } fraction; fraction* fract_reduce(fraction *f); #endif
16.78
9
(translation_unit) "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include "types.h"\n\ntypedef struct {\n ull_t p;\n ull_t q;\n} fraction;\n\nfraction* fract_reduce(fraction *f);\n\n#endif\n" (preproc_ifdef) "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include "types.h"\n\ntypedef struct {\n ull_t p;\n ull_t q;\n} fraction;\n\nfraction* fract_reduce(fraction *f);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_FRACTION_H_" (preproc_def) "#define _FRACTION_H_\n" (#define) "#define" (identifier) "_FRACTION_H_" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_content) "types.h" (") """ (type_definition) "typedef struct {\n ull_t p;\n ull_t q;\n} fraction;" (typedef) "typedef" (struct_specifier) "struct {\n ull_t p;\n ull_t q;\n}" (struct) "struct" (field_declaration_list) "{\n ull_t p;\n ull_t q;\n}" ({) "{" (field_declaration) "ull_t p;" (type_identifier) "ull_t" (field_identifier) "p" (;) ";" (field_declaration) "ull_t q;" (type_identifier) "ull_t" (field_identifier) "q" (;) ";" (}) "}" (type_identifier) "fraction" (;) ";" (declaration) "fraction* fract_reduce(fraction *f);" (type_identifier) "fraction" (pointer_declarator) "* fract_reduce(fraction *f)" (*) "*" (function_declarator) "fract_reduce(fraction *f)" (identifier) "fract_reduce" (parameter_list) "(fraction *f)" (() "(" (parameter_declaration) "fraction *f" (type_identifier) "fraction" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (;) ";" (#endif) "#endif"
46
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 16.78, "nodes": 33, "errors": 0, "source_hash": "9c8f498f9020f517a2f9618db595af2e0400d42b3e8663bb1390ebf39cbfdd69", "categorized_nodes": 25}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include \"types.h\"\n\ntypedef struct {\n ull_t p;\n ull_t q;\n} fraction;\n\nfraction* fract_reduce(fraction *f);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 20, 32], "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": "_FRACTION_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define _FRACTION_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": "_FRACTION_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"types.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": "\"types.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "type_definition", "text": "typedef struct {\n ull_t p;\n ull_t q;\n} fraction;", "parent": 0, "children": [10, 11, 19], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "column": 11}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "struct_specifier", "text": "struct {\n ull_t p;\n ull_t q;\n}", "parent": 9, "children": [12], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 8, "column": 1}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 13, "type": "field_declaration", "text": "ull_t p;", "parent": 11, "children": [14, 15], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 12}}, {"id": 14, "type": "type_identifier", "text": "ull_t", "parent": 13, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 9}}, {"id": 15, "type": "field_identifier", "text": "p", "parent": 13, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 11}}, {"id": 16, "type": "field_declaration", "text": "ull_t q;", "parent": 11, "children": [17, 18], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 12}}, {"id": 17, "type": "type_identifier", "text": "ull_t", "parent": 16, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 9}}, {"id": 18, "type": "field_identifier", "text": "q", "parent": 16, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 11}}, {"id": 19, "type": "type_identifier", "text": "fraction", "parent": 9, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 10}}, {"id": 20, "type": "declaration", "text": "fraction* fract_reduce(fraction *f);", "parent": 0, "children": [21, 22], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 36}}, {"id": 21, "type": "type_identifier", "text": "fraction", "parent": 20, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 22, "type": "pointer_declarator", "text": "* fract_reduce(fraction *f)", "parent": 20, "children": [23, 24], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 35}}, {"id": 23, "type": "*", "text": "*", "parent": 22, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}, {"id": 24, "type": "function_declarator", "text": "fract_reduce(fraction *f)", "parent": 22, "children": [25, 26], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 35}}, {"id": 25, "type": "identifier", "text": "fract_reduce", "parent": 24, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 22}}, {"id": 26, "type": "parameter_list", "text": "(fraction *f)", "parent": 24, "children": [27], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 35}}, {"id": 27, "type": "parameter_declaration", "text": "fraction *f", "parent": 26, "children": [28, 29], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 34}}, {"id": 28, "type": "type_identifier", "text": "fraction", "parent": 27, "children": [], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 31}}, {"id": 29, "type": "pointer_declarator", "text": "*f", "parent": 27, "children": [30, 31], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 34}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 33}}, {"id": 31, "type": "identifier", "text": "f", "parent": 29, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 34}}, {"id": 32, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [24], "variables": [9, 13, 16, 20, 27], "classes": [11, 12], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 14, 15, 17, 18, 19, 21, 25, 28, 31, 32], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "fract_reduce(fraction *f)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "{", "text_snippet": "struct {\n ull_t p;\n ull_t q;\n}"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"types.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _FRACTION_H_\n#define _FRACTION_H_\n\n#include \"types.h\"\n\ntypedef struct {\n ull_t p;\n ull_t q;\n} fraction;\n\nfraction* fract_reduce(fraction *f);\n\n#endif\n"}
80,713
c
/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2015 <NAME> <<EMAIL>> * * */ bool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame); bool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);
27.18
11
(translation_unit) "/* SPDX-License-Identifier: LGPL-2.1-or-later */\n/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2015 <NAME> <<EMAIL>>\n *\n *\n */\n\nbool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);\n\nbool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);\n" (comment) "/* SPDX-License-Identifier: LGPL-2.1-or-later */" (comment) "/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2015 <NAME> <<EMAIL>>\n *\n *\n */" (declaration) "bool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);" (primitive_type) "bool" (function_declarator) "a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)" (identifier) "a2dp_codec_cap" (parameter_list) "(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)" (() "(" (parameter_declaration) "uint8_t codec" (primitive_type) "uint8_t" (identifier) "codec" (,) "," (parameter_declaration) "uint8_t losc" (primitive_type) "uint8_t" (identifier) "losc" (,) "," (parameter_declaration) "struct l2cap_frame *frame" (struct_specifier) "struct l2cap_frame" (struct) "struct" (type_identifier) "l2cap_frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (;) ";" (declaration) "bool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);" (primitive_type) "bool" (function_declarator) "a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)" (identifier) "a2dp_codec_cfg" (parameter_list) "(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)" (() "(" (parameter_declaration) "uint8_t codec" (primitive_type) "uint8_t" (identifier) "codec" (,) "," (parameter_declaration) "uint8_t losc" (primitive_type) "uint8_t" (identifier) "losc" (,) "," (parameter_declaration) "struct l2cap_frame *frame" (struct_specifier) "struct l2cap_frame" (struct) "struct" (type_identifier) "l2cap_frame" (pointer_declarator) "*frame" (*) "*" (identifier) "frame" ()) ")" (;) ";"
49
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.18, "nodes": 36, "errors": 0, "source_hash": "72be64ceb502bf7a4708e37155067016bcff11f0fdf6396ec9908386d68339c1", "categorized_nodes": 24}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "bool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);", "parent": null, "children": [1, 2], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 76}}, {"id": 1, "type": "primitive_type", "text": "bool", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)", "parent": 0, "children": [3, 4], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 75}}, {"id": 3, "type": "identifier", "text": "a2dp_codec_cap", "parent": 2, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 19}}, {"id": 4, "type": "parameter_list", "text": "(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)", "parent": 2, "children": [5, 8, 11], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 75}}, {"id": 5, "type": "parameter_declaration", "text": "uint8_t codec", "parent": 4, "children": [6, 7], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 33}}, {"id": 6, "type": "primitive_type", "text": "uint8_t", "parent": 5, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 27}}, {"id": 7, "type": "identifier", "text": "codec", "parent": 5, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 33}}, {"id": 8, "type": "parameter_declaration", "text": "uint8_t losc", "parent": 4, "children": [9, 10], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 47}}, {"id": 9, "type": "primitive_type", "text": "uint8_t", "parent": 8, "children": [], "start_point": {"row": 10, "column": 35}, "end_point": {"row": 10, "column": 42}}, {"id": 10, "type": "identifier", "text": "losc", "parent": 8, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 47}}, {"id": 11, "type": "parameter_declaration", "text": "struct l2cap_frame *frame", "parent": 4, "children": [12, 15], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 74}}, {"id": 12, "type": "struct_specifier", "text": "struct l2cap_frame", "parent": 11, "children": [13, 14], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 67}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 10, "column": 49}, "end_point": {"row": 10, "column": 55}}, {"id": 14, "type": "type_identifier", "text": "l2cap_frame", "parent": 12, "children": [], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 67}}, {"id": 15, "type": "pointer_declarator", "text": "*frame", "parent": 11, "children": [16, 17], "start_point": {"row": 10, "column": 68}, "end_point": {"row": 10, "column": 74}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 10, "column": 68}, "end_point": {"row": 10, "column": 69}}, {"id": 17, "type": "identifier", "text": "frame", "parent": 15, "children": [], "start_point": {"row": 10, "column": 69}, "end_point": {"row": 10, "column": 74}}, {"id": 18, "type": "declaration", "text": "bool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);", "parent": null, "children": [19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 76}}, {"id": 19, "type": "primitive_type", "text": "bool", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 20, "type": "function_declarator", "text": "a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)", "parent": 18, "children": [21, 22], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 75}}, {"id": 21, "type": "identifier", "text": "a2dp_codec_cfg", "parent": 20, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 19}}, {"id": 22, "type": "parameter_list", "text": "(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)", "parent": 20, "children": [23, 26, 29], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 75}}, {"id": 23, "type": "parameter_declaration", "text": "uint8_t codec", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 33}}, {"id": 24, "type": "primitive_type", "text": "uint8_t", "parent": 23, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 27}}, {"id": 25, "type": "identifier", "text": "codec", "parent": 23, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 33}}, {"id": 26, "type": "parameter_declaration", "text": "uint8_t losc", "parent": 22, "children": [27, 28], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 47}}, {"id": 27, "type": "primitive_type", "text": "uint8_t", "parent": 26, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 42}}, {"id": 28, "type": "identifier", "text": "losc", "parent": 26, "children": [], "start_point": {"row": 12, "column": 43}, "end_point": {"row": 12, "column": 47}}, {"id": 29, "type": "parameter_declaration", "text": "struct l2cap_frame *frame", "parent": 22, "children": [30, 33], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 74}}, {"id": 30, "type": "struct_specifier", "text": "struct l2cap_frame", "parent": 29, "children": [31, 32], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 67}}, {"id": 31, "type": "struct", "text": "struct", "parent": 30, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 55}}, {"id": 32, "type": "type_identifier", "text": "l2cap_frame", "parent": 30, "children": [], "start_point": {"row": 12, "column": 56}, "end_point": {"row": 12, "column": 67}}, {"id": 33, "type": "pointer_declarator", "text": "*frame", "parent": 29, "children": [34, 35], "start_point": {"row": 12, "column": 68}, "end_point": {"row": 12, "column": 74}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 12, "column": 68}, "end_point": {"row": 12, "column": 69}}, {"id": 35, "type": "identifier", "text": "frame", "parent": 33, "children": [], "start_point": {"row": 12, "column": 69}, "end_point": {"row": 12, "column": 74}}]}, "node_categories": {"declarations": {"functions": [2, 20], "variables": [0, 5, 8, 11, 18, 23, 26, 29], "classes": [12, 13, 30, 31], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 7, 10, 14, 17, 21, 25, 28, 32, 35], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 2, "universal_type": "function", "name": "l2cap_frame", "text_snippet": "a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)"}, {"node_id": 20, "universal_type": "function", "name": "l2cap_frame", "text_snippet": "a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame)"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "l2cap_frame", "text_snippet": "struct l2cap_frame"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 30, "universal_type": "class", "name": "l2cap_frame", "text_snippet": "struct l2cap_frame"}, {"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/* SPDX-License-Identifier: LGPL-2.1-or-later */\n/*\n *\n * BlueZ - Bluetooth protocol stack for Linux\n *\n * Copyright (C) 2015 <NAME> <<EMAIL>>\n *\n *\n */\n\nbool a2dp_codec_cap(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);\n\nbool a2dp_codec_cfg(uint8_t codec, uint8_t losc, struct l2cap_frame *frame);\n"}
80,714
c
/** * <NAME>'s Average Shell (Akash) * * A totally average shell program that * is an acronym and only coincidentally * also the name of a man * * Author: <NAME> * Created: 3 - 24 - 2019 */ #include "tokenizer.h" #include "debug.h" #include <stdio.h> #include <stdlib.h> #include <string.h> // Debug function #ifdef DEBUG_PARSE_TOKENIZER DEBUG_ON("\e[35m[parse:tokenizer]\e[0m") #else DEBUG_OFF #endif // Regex strings const char* shell_string = "^\\s*!"; const char* shcmd_string = "^\\s*\\w+"; const char* file_string = "^\\s*(\\w|[\\.-~])+(/(\\w|[\\.-])+)*"; const char* arg_string = "^\\s*[^ \t\\|<>&]+"; const char* pipe_string = "^\\s*\\|"; const char* file_in_string = "^\\s*<"; const char* file_out_string = "^\\s*>"; const char* background_string = "&"; const char* whitespace_string = "^\\s*"; // Whitespace token regex_t whitespace; // ---------------------------- TOKEN SETUP ------------------------------ /** * Initialize parser */ void tokenizer_init() { __debug__printf("Initialize...\n"); regcomp(&shell, shell_string, REG_EXTENDED); regcomp(&shcmd, shcmd_string, REG_EXTENDED); regcomp(&file, file_string, REG_EXTENDED); regcomp(&arg, arg_string, REG_EXTENDED); regcomp(&piper, pipe_string, REG_EXTENDED); regcomp(&file_in, file_in_string, REG_EXTENDED); regcomp(&file_out, file_out_string, REG_EXTENDED); regcomp(&background, background_string, REG_EXTENDED); regcomp(&whitespace, whitespace_string, REG_EXTENDED); } /** * Deinitialize parser */ void tokenizer_deinit() { __debug__printf("Deinitialize...\n"); regfree(&shell); regfree(&shcmd); regfree(&file); regfree(&arg); regfree(&piper); regfree(&file_in); regfree(&file_out); regfree(&background); regfree(&whitespace); } // --------------------------- TOKEN HELPERS ----------------------------- /** * Print tokenizer error for regex * * @param error error code * @param regex regex causing error */ void print_token_error(int error, regex_t* regex) { size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0); char* errbuf = (char*)malloc(errbuf_size*sizeof(char)); regerror(error, regex, errbuf, errbuf_size); printf("ERROR: %s\n", errbuf); } /** * Get match string from cmdline using match array * * @param cmdline cmdline string * @param index index of match * @param match match offset buffer * * @return matched string */ char* get_match_string(char* cmdline, int* index, regmatch_t match[1]) { int start = match[0].rm_so; int end = match[0].rm_eo; regmatch_t wmatch[1]; int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0); if (error) { print_token_error(error, &whitespace); } else { start += wmatch[0].rm_eo; } return strndup(&cmdline[*index + start], end - start); } // -------------------------- TOKEN PARSE ---------------------------- /** * Consume token * * @param token regex token * @param cmdline command input line * @param index starting index of input to check (updates) * @param output output buffer to set to token value * * @return true if token was consumed */ int consume(regex_t* token, char* cmdline, int* index, char** output) { regmatch_t match[1]; int error = regexec(token, &cmdline[*index], 1, match, 0); switch (error) { case 0: // Set output if given if (output) { *output = get_match_string(cmdline, index, match); } // Add end offset to index *index += match[0].rm_eo; break; case REG_NOMATCH: break; default: // Handle token error print_token_error(error, token); break; } return error; } /** * Lookahead for next token * * @param token token regex * @param cmdline command input line * @param index starting index of input to check (does not update) * * @return lookahead result */ int lookahead(regex_t* token, char* cmdline, int* index) { int error = regexec(&arg, &cmdline[*index], 0, NULL, 0); if (error != 0 && error != REG_NOMATCH) { print_token_error(error, token); } return error; }
26.27
146
(translation_unit) "/**\n * <NAME>'s Average Shell (Akash)\n *\n * A totally average shell program that\n * is an acronym and only coincidentally\n * also the name of a man\n *\n * Author: <NAME>\n * Created: 3 - 24 - 2019\n */\n#include "tokenizer.h"\n#include "debug.h"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n// Debug function\n#ifdef DEBUG_PARSE_TOKENIZER\nDEBUG_ON("\e[35m[parse:tokenizer]\e[0m")\n#else\nDEBUG_OFF\n#endif\n\n// Regex strings\nconst char* shell_string = "^\\s*!";\nconst char* shcmd_string = "^\\s*\\w+";\nconst char* file_string = "^\\s*(\\w|[\\.-~])+(/(\\w|[\\.-])+)*";\nconst char* arg_string = "^\\s*[^ \t\\|<>&]+";\nconst char* pipe_string = "^\\s*\\|";\nconst char* file_in_string = "^\\s*<";\nconst char* file_out_string = "^\\s*>";\nconst char* background_string = "&";\nconst char* whitespace_string = "^\\s*";\n\n// Whitespace token\nregex_t whitespace;\n\n// ---------------------------- TOKEN SETUP ------------------------------\n\n/**\n * Initialize parser\n */\nvoid tokenizer_init() {\n __debug__printf("Initialize...\n");\n regcomp(&shell, shell_string, REG_EXTENDED);\n regcomp(&shcmd, shcmd_string, REG_EXTENDED);\n regcomp(&file, file_string, REG_EXTENDED);\n regcomp(&arg, arg_string, REG_EXTENDED);\n regcomp(&piper, pipe_string, REG_EXTENDED);\n regcomp(&file_in, file_in_string, REG_EXTENDED);\n regcomp(&file_out, file_out_string, REG_EXTENDED);\n regcomp(&background, background_string, REG_EXTENDED);\n regcomp(&whitespace, whitespace_string, REG_EXTENDED);\n}\n\n/**\n * Deinitialize parser\n */\nvoid tokenizer_deinit() {\n __debug__printf("Deinitialize...\n");\n regfree(&shell);\n regfree(&shcmd);\n regfree(&file);\n regfree(&arg);\n regfree(&piper);\n regfree(&file_in);\n regfree(&file_out);\n regfree(&background);\n regfree(&whitespace);\n}\n\n// --------------------------- TOKEN HELPERS -----------------------------\n\n/**\n * Print tokenizer error for regex\n *\n * @param error error code\n * @param regex regex causing error\n */\nvoid print_token_error(int error, regex_t* regex) {\n size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);\n char* errbuf = (char*)malloc(errbuf_size*sizeof(char));\n regerror(error, regex, errbuf, errbuf_size);\n printf("ERROR: %s\n", errbuf);\n}\n\n/**\n * Get match string from cmdline using match array\n * \n * @param cmdline cmdline string\n * @param index index of match\n * @param match match offset buffer\n *\n * @return matched string\n */\nchar* get_match_string(char* cmdline, int* index, regmatch_t match[1]) {\n int start = match[0].rm_so;\n int end = match[0].rm_eo;\n regmatch_t wmatch[1];\n int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);\n if (error) {\n print_token_error(error, &whitespace);\n } else {\n start += wmatch[0].rm_eo;\n } \n return strndup(&cmdline[*index + start], end - start);\n}\n\n// -------------------------- TOKEN PARSE ----------------------------\n\n/**\n * Consume token\n * \n * @param token regex token\n * @param cmdline command input line\n * @param index starting index of input to check (updates)\n * @param output output buffer to set to token value\n *\n * @return true if token was consumed\n */\nint consume(regex_t* token, char* cmdline, int* index, char** output) {\n regmatch_t match[1];\n int error = regexec(token, &cmdline[*index], 1, match, 0);\n switch (error) {\n case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;\n case REG_NOMATCH:\n break;\n default:\n // Handle token error\n print_token_error(error, token);\n break;\n }\n return error;\n}\n\n/**\n * Lookahead for next token\n *\n * @param token token regex\n * @param cmdline command input line\n * @param index starting index of input to check (does not update)\n *\n * @return lookahead result\n */\nint lookahead(regex_t* token, char* cmdline, int* index) {\n int error = regexec(&arg, &cmdline[*index], 0, NULL, 0);\n if (error != 0 && error != REG_NOMATCH) {\n print_token_error(error, token);\n }\n return error;\n}\n" (comment) "/**\n * <NAME>'s Average Shell (Akash)\n *\n * A totally average shell program that\n * is an acronym and only coincidentally\n * also the name of a man\n *\n * Author: <NAME>\n * Created: 3 - 24 - 2019\n */" (preproc_include) "#include "tokenizer.h"\n" (#include) "#include" (string_literal) ""tokenizer.h"" (") """ (string_content) "tokenizer.h" (") """ (preproc_include) "#include "debug.h"\n" (#include) "#include" (string_literal) ""debug.h"" (") """ (string_content) "debug.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>" (comment) "// Debug function" (preproc_ifdef) "#ifdef DEBUG_PARSE_TOKENIZER\nDEBUG_ON("\e[35m[parse:tokenizer]\e[0m")\n#else\nDEBUG_OFF\n#endif" (#ifdef) "#ifdef" (identifier) "DEBUG_PARSE_TOKENIZER" (expression_statement) "DEBUG_ON("\e[35m[parse:tokenizer]\e[0m")" (call_expression) "DEBUG_ON("\e[35m[parse:tokenizer]\e[0m")" (identifier) "DEBUG_ON" (argument_list) "("\e[35m[parse:tokenizer]\e[0m")" (() "(" (string_literal) ""\e[35m[parse:tokenizer]\e[0m"" (") """ (escape_sequence) "\e" (string_content) "[35m[parse:tokenizer]" (escape_sequence) "\e" (string_content) "[0m" (") """ ()) ")" (;) "" (preproc_else) "#else" (#else) "#else" (ERROR) "DEBUG_OFF" (identifier) "DEBUG_OFF" (#endif) "#endif" (comment) "// Regex strings" (declaration) "const char* shell_string = "^\\s*!";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* shell_string = "^\\s*!"" (pointer_declarator) "* shell_string" (*) "*" (identifier) "shell_string" (=) "=" (string_literal) ""^\\s*!"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*!" (") """ (;) ";" (declaration) "const char* shcmd_string = "^\\s*\\w+";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* shcmd_string = "^\\s*\\w+"" (pointer_declarator) "* shcmd_string" (*) "*" (identifier) "shcmd_string" (=) "=" (string_literal) ""^\\s*\\w+"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*" (escape_sequence) "\\" (string_content) "w+" (") """ (;) ";" (declaration) "const char* file_string = "^\\s*(\\w|[\\.-~])+(/(\\w|[\\.-])+)*";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* file_string = "^\\s*(\\w|[\\.-~])+(/(\\w|[\\.-])+)*"" (pointer_declarator) "* file_string" (*) "*" (identifier) "file_string" (=) "=" (string_literal) ""^\\s*(\\w|[\\.-~])+(/(\\w|[\\.-])+)*"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*(" (escape_sequence) "\\" (string_content) "w|[" (escape_sequence) "\\" (string_content) ".-~])+(/(" (escape_sequence) "\\" (string_content) "w|[" (escape_sequence) "\\" (string_content) ".-])+)*" (") """ (;) ";" (declaration) "const char* arg_string = "^\\s*[^ \t\\|<>&]+";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* arg_string = "^\\s*[^ \t\\|<>&]+"" (pointer_declarator) "* arg_string" (*) "*" (identifier) "arg_string" (=) "=" (string_literal) ""^\\s*[^ \t\\|<>&]+"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*[^ " (escape_sequence) "\t" (escape_sequence) "\\" (string_content) "|<>&]+" (") """ (;) ";" (declaration) "const char* pipe_string = "^\\s*\\|";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* pipe_string = "^\\s*\\|"" (pointer_declarator) "* pipe_string" (*) "*" (identifier) "pipe_string" (=) "=" (string_literal) ""^\\s*\\|"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*" (escape_sequence) "\\" (string_content) "|" (") """ (;) ";" (declaration) "const char* file_in_string = "^\\s*<";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* file_in_string = "^\\s*<"" (pointer_declarator) "* file_in_string" (*) "*" (identifier) "file_in_string" (=) "=" (string_literal) ""^\\s*<"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*<" (") """ (;) ";" (declaration) "const char* file_out_string = "^\\s*>";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* file_out_string = "^\\s*>"" (pointer_declarator) "* file_out_string" (*) "*" (identifier) "file_out_string" (=) "=" (string_literal) ""^\\s*>"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*>" (") """ (;) ";" (declaration) "const char* background_string = "&";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* background_string = "&"" (pointer_declarator) "* background_string" (*) "*" (identifier) "background_string" (=) "=" (string_literal) ""&"" (") """ (string_content) "&" (") """ (;) ";" (declaration) "const char* whitespace_string = "^\\s*";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* whitespace_string = "^\\s*"" (pointer_declarator) "* whitespace_string" (*) "*" (identifier) "whitespace_string" (=) "=" (string_literal) ""^\\s*"" (") """ (string_content) "^" (escape_sequence) "\\" (string_content) "s*" (") """ (;) ";" (comment) "// Whitespace token" (declaration) "regex_t whitespace;" (type_identifier) "regex_t" (identifier) "whitespace" (;) ";" (comment) "// ---------------------------- TOKEN SETUP ------------------------------" (comment) "/**\n * Initialize parser\n */" (function_definition) "void tokenizer_init() {\n __debug__printf("Initialize...\n");\n regcomp(&shell, shell_string, REG_EXTENDED);\n regcomp(&shcmd, shcmd_string, REG_EXTENDED);\n regcomp(&file, file_string, REG_EXTENDED);\n regcomp(&arg, arg_string, REG_EXTENDED);\n regcomp(&piper, pipe_string, REG_EXTENDED);\n regcomp(&file_in, file_in_string, REG_EXTENDED);\n regcomp(&file_out, file_out_string, REG_EXTENDED);\n regcomp(&background, background_string, REG_EXTENDED);\n regcomp(&whitespace, whitespace_string, REG_EXTENDED);\n}" (primitive_type) "void" (function_declarator) "tokenizer_init()" (identifier) "tokenizer_init" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n __debug__printf("Initialize...\n");\n regcomp(&shell, shell_string, REG_EXTENDED);\n regcomp(&shcmd, shcmd_string, REG_EXTENDED);\n regcomp(&file, file_string, REG_EXTENDED);\n regcomp(&arg, arg_string, REG_EXTENDED);\n regcomp(&piper, pipe_string, REG_EXTENDED);\n regcomp(&file_in, file_in_string, REG_EXTENDED);\n regcomp(&file_out, file_out_string, REG_EXTENDED);\n regcomp(&background, background_string, REG_EXTENDED);\n regcomp(&whitespace, whitespace_string, REG_EXTENDED);\n}" ({) "{" (expression_statement) "__debug__printf("Initialize...\n");" (call_expression) "__debug__printf("Initialize...\n")" (identifier) "__debug__printf" (argument_list) "("Initialize...\n")" (() "(" (string_literal) ""Initialize...\n"" (") """ (string_content) "Initialize..." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "regcomp(&shell, shell_string, REG_EXTENDED);" (call_expression) "regcomp(&shell, shell_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&shell, shell_string, REG_EXTENDED)" (() "(" (pointer_expression) "&shell" (&) "&" (identifier) "shell" (,) "," (identifier) "shell_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&shcmd, shcmd_string, REG_EXTENDED);" (call_expression) "regcomp(&shcmd, shcmd_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&shcmd, shcmd_string, REG_EXTENDED)" (() "(" (pointer_expression) "&shcmd" (&) "&" (identifier) "shcmd" (,) "," (identifier) "shcmd_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&file, file_string, REG_EXTENDED);" (call_expression) "regcomp(&file, file_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&file, file_string, REG_EXTENDED)" (() "(" (pointer_expression) "&file" (&) "&" (identifier) "file" (,) "," (identifier) "file_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&arg, arg_string, REG_EXTENDED);" (call_expression) "regcomp(&arg, arg_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&arg, arg_string, REG_EXTENDED)" (() "(" (pointer_expression) "&arg" (&) "&" (identifier) "arg" (,) "," (identifier) "arg_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&piper, pipe_string, REG_EXTENDED);" (call_expression) "regcomp(&piper, pipe_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&piper, pipe_string, REG_EXTENDED)" (() "(" (pointer_expression) "&piper" (&) "&" (identifier) "piper" (,) "," (identifier) "pipe_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&file_in, file_in_string, REG_EXTENDED);" (call_expression) "regcomp(&file_in, file_in_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&file_in, file_in_string, REG_EXTENDED)" (() "(" (pointer_expression) "&file_in" (&) "&" (identifier) "file_in" (,) "," (identifier) "file_in_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&file_out, file_out_string, REG_EXTENDED);" (call_expression) "regcomp(&file_out, file_out_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&file_out, file_out_string, REG_EXTENDED)" (() "(" (pointer_expression) "&file_out" (&) "&" (identifier) "file_out" (,) "," (identifier) "file_out_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&background, background_string, REG_EXTENDED);" (call_expression) "regcomp(&background, background_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&background, background_string, REG_EXTENDED)" (() "(" (pointer_expression) "&background" (&) "&" (identifier) "background" (,) "," (identifier) "background_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (expression_statement) "regcomp(&whitespace, whitespace_string, REG_EXTENDED);" (call_expression) "regcomp(&whitespace, whitespace_string, REG_EXTENDED)" (identifier) "regcomp" (argument_list) "(&whitespace, whitespace_string, REG_EXTENDED)" (() "(" (pointer_expression) "&whitespace" (&) "&" (identifier) "whitespace" (,) "," (identifier) "whitespace_string" (,) "," (identifier) "REG_EXTENDED" ()) ")" (;) ";" (}) "}" (comment) "/**\n * Deinitialize parser\n */" (function_definition) "void tokenizer_deinit() {\n __debug__printf("Deinitialize...\n");\n regfree(&shell);\n regfree(&shcmd);\n regfree(&file);\n regfree(&arg);\n regfree(&piper);\n regfree(&file_in);\n regfree(&file_out);\n regfree(&background);\n regfree(&whitespace);\n}" (primitive_type) "void" (function_declarator) "tokenizer_deinit()" (identifier) "tokenizer_deinit" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n __debug__printf("Deinitialize...\n");\n regfree(&shell);\n regfree(&shcmd);\n regfree(&file);\n regfree(&arg);\n regfree(&piper);\n regfree(&file_in);\n regfree(&file_out);\n regfree(&background);\n regfree(&whitespace);\n}" ({) "{" (expression_statement) "__debug__printf("Deinitialize...\n");" (call_expression) "__debug__printf("Deinitialize...\n")" (identifier) "__debug__printf" (argument_list) "("Deinitialize...\n")" (() "(" (string_literal) ""Deinitialize...\n"" (") """ (string_content) "Deinitialize..." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "regfree(&shell);" (call_expression) "regfree(&shell)" (identifier) "regfree" (argument_list) "(&shell)" (() "(" (pointer_expression) "&shell" (&) "&" (identifier) "shell" ()) ")" (;) ";" (expression_statement) "regfree(&shcmd);" (call_expression) "regfree(&shcmd)" (identifier) "regfree" (argument_list) "(&shcmd)" (() "(" (pointer_expression) "&shcmd" (&) "&" (identifier) "shcmd" ()) ")" (;) ";" (expression_statement) "regfree(&file);" (call_expression) "regfree(&file)" (identifier) "regfree" (argument_list) "(&file)" (() "(" (pointer_expression) "&file" (&) "&" (identifier) "file" ()) ")" (;) ";" (expression_statement) "regfree(&arg);" (call_expression) "regfree(&arg)" (identifier) "regfree" (argument_list) "(&arg)" (() "(" (pointer_expression) "&arg" (&) "&" (identifier) "arg" ()) ")" (;) ";" (expression_statement) "regfree(&piper);" (call_expression) "regfree(&piper)" (identifier) "regfree" (argument_list) "(&piper)" (() "(" (pointer_expression) "&piper" (&) "&" (identifier) "piper" ()) ")" (;) ";" (expression_statement) "regfree(&file_in);" (call_expression) "regfree(&file_in)" (identifier) "regfree" (argument_list) "(&file_in)" (() "(" (pointer_expression) "&file_in" (&) "&" (identifier) "file_in" ()) ")" (;) ";" (expression_statement) "regfree(&file_out);" (call_expression) "regfree(&file_out)" (identifier) "regfree" (argument_list) "(&file_out)" (() "(" (pointer_expression) "&file_out" (&) "&" (identifier) "file_out" ()) ")" (;) ";" (expression_statement) "regfree(&background);" (call_expression) "regfree(&background)" (identifier) "regfree" (argument_list) "(&background)" (() "(" (pointer_expression) "&background" (&) "&" (identifier) "background" ()) ")" (;) ";" (expression_statement) "regfree(&whitespace);" (call_expression) "regfree(&whitespace)" (identifier) "regfree" (argument_list) "(&whitespace)" (() "(" (pointer_expression) "&whitespace" (&) "&" (identifier) "whitespace" ()) ")" (;) ";" (}) "}" (comment) "// --------------------------- TOKEN HELPERS -----------------------------" (comment) "/**\n * Print tokenizer error for regex\n *\n * @param error error code\n * @param regex regex causing error\n */" (function_definition) "void print_token_error(int error, regex_t* regex) {\n size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);\n char* errbuf = (char*)malloc(errbuf_size*sizeof(char));\n regerror(error, regex, errbuf, errbuf_size);\n printf("ERROR: %s\n", errbuf);\n}" (primitive_type) "void" (function_declarator) "print_token_error(int error, regex_t* regex)" (identifier) "print_token_error" (parameter_list) "(int error, regex_t* regex)" (() "(" (parameter_declaration) "int error" (primitive_type) "int" (identifier) "error" (,) "," (parameter_declaration) "regex_t* regex" (type_identifier) "regex_t" (pointer_declarator) "* regex" (*) "*" (identifier) "regex" ()) ")" (compound_statement) "{\n size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);\n char* errbuf = (char*)malloc(errbuf_size*sizeof(char));\n regerror(error, regex, errbuf, errbuf_size);\n printf("ERROR: %s\n", errbuf);\n}" ({) "{" (declaration) "size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);" (primitive_type) "size_t" (init_declarator) "errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0)" (identifier) "errbuf_size" (=) "=" (call_expression) "regerror(error, regex, (char*)NULL, (size_t)0)" (identifier) "regerror" (argument_list) "(error, regex, (char*)NULL, (size_t)0)" (() "(" (identifier) "error" (,) "," (identifier) "regex" (,) "," (cast_expression) "(char*)NULL" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" (,) "," (cast_expression) "(size_t)0" (() "(" (type_descriptor) "size_t" (primitive_type) "size_t" ()) ")" (number_literal) "0" ()) ")" (;) ";" (declaration) "char* errbuf = (char*)malloc(errbuf_size*sizeof(char));" (primitive_type) "char" (init_declarator) "* errbuf = (char*)malloc(errbuf_size*sizeof(char))" (pointer_declarator) "* errbuf" (*) "*" (identifier) "errbuf" (=) "=" (cast_expression) "(char*)malloc(errbuf_size*sizeof(char))" (() "(" (type_descriptor) "char*" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(errbuf_size*sizeof(char))" (identifier) "malloc" (argument_list) "(errbuf_size*sizeof(char))" (() "(" (binary_expression) "errbuf_size*sizeof(char)" (identifier) "errbuf_size" (*) "*" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" ()) ")" (;) ";" (expression_statement) "regerror(error, regex, errbuf, errbuf_size);" (call_expression) "regerror(error, regex, errbuf, errbuf_size)" (identifier) "regerror" (argument_list) "(error, regex, errbuf, errbuf_size)" (() "(" (identifier) "error" (,) "," (identifier) "regex" (,) "," (identifier) "errbuf" (,) "," (identifier) "errbuf_size" ()) ")" (;) ";" (expression_statement) "printf("ERROR: %s\n", errbuf);" (call_expression) "printf("ERROR: %s\n", errbuf)" (identifier) "printf" (argument_list) "("ERROR: %s\n", errbuf)" (() "(" (string_literal) ""ERROR: %s\n"" (") """ (string_content) "ERROR: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "errbuf" ()) ")" (;) ";" (}) "}" (comment) "/**\n * Get match string from cmdline using match array\n * \n * @param cmdline cmdline string\n * @param index index of match\n * @param match match offset buffer\n *\n * @return matched string\n */" (function_definition) "char* get_match_string(char* cmdline, int* index, regmatch_t match[1]) {\n int start = match[0].rm_so;\n int end = match[0].rm_eo;\n regmatch_t wmatch[1];\n int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);\n if (error) {\n print_token_error(error, &whitespace);\n } else {\n start += wmatch[0].rm_eo;\n } \n return strndup(&cmdline[*index + start], end - start);\n}" (primitive_type) "char" (pointer_declarator) "* get_match_string(char* cmdline, int* index, regmatch_t match[1])" (*) "*" (function_declarator) "get_match_string(char* cmdline, int* index, regmatch_t match[1])" (identifier) "get_match_string" (parameter_list) "(char* cmdline, int* index, regmatch_t match[1])" (() "(" (parameter_declaration) "char* cmdline" (primitive_type) "char" (pointer_declarator) "* cmdline" (*) "*" (identifier) "cmdline" (,) "," (parameter_declaration) "int* index" (primitive_type) "int" (pointer_declarator) "* index" (*) "*" (identifier) "index" (,) "," (parameter_declaration) "regmatch_t match[1]" (type_identifier) "regmatch_t" (array_declarator) "match[1]" (identifier) "match" ([) "[" (number_literal) "1" (]) "]" ()) ")" (compound_statement) "{\n int start = match[0].rm_so;\n int end = match[0].rm_eo;\n regmatch_t wmatch[1];\n int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);\n if (error) {\n print_token_error(error, &whitespace);\n } else {\n start += wmatch[0].rm_eo;\n } \n return strndup(&cmdline[*index + start], end - start);\n}" ({) "{" (declaration) "int start = match[0].rm_so;" (primitive_type) "int" (init_declarator) "start = match[0].rm_so" (identifier) "start" (=) "=" (field_expression) "match[0].rm_so" (subscript_expression) "match[0]" (identifier) "match" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "rm_so" (;) ";" (declaration) "int end = match[0].rm_eo;" (primitive_type) "int" (init_declarator) "end = match[0].rm_eo" (identifier) "end" (=) "=" (field_expression) "match[0].rm_eo" (subscript_expression) "match[0]" (identifier) "match" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "rm_eo" (;) ";" (declaration) "regmatch_t wmatch[1];" (type_identifier) "regmatch_t" (array_declarator) "wmatch[1]" (identifier) "wmatch" ([) "[" (number_literal) "1" (]) "]" (;) ";" (declaration) "int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);" (primitive_type) "int" (init_declarator) "error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0)" (identifier) "error" (=) "=" (call_expression) "regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0)" (identifier) "regexec" (argument_list) "(&whitespace, &cmdline[*index + start], 1, wmatch, 0)" (() "(" (pointer_expression) "&whitespace" (&) "&" (identifier) "whitespace" (,) "," (pointer_expression) "&cmdline[*index + start]" (&) "&" (subscript_expression) "cmdline[*index + start]" (identifier) "cmdline" ([) "[" (binary_expression) "*index + start" (pointer_expression) "*index" (*) "*" (identifier) "index" (+) "+" (identifier) "start" (]) "]" (,) "," (number_literal) "1" (,) "," (identifier) "wmatch" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (error) {\n print_token_error(error, &whitespace);\n } else {\n start += wmatch[0].rm_eo;\n }" (if) "if" (parenthesized_expression) "(error)" (() "(" (identifier) "error" ()) ")" (compound_statement) "{\n print_token_error(error, &whitespace);\n }" ({) "{" (expression_statement) "print_token_error(error, &whitespace);" (call_expression) "print_token_error(error, &whitespace)" (identifier) "print_token_error" (argument_list) "(error, &whitespace)" (() "(" (identifier) "error" (,) "," (pointer_expression) "&whitespace" (&) "&" (identifier) "whitespace" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n start += wmatch[0].rm_eo;\n }" (else) "else" (compound_statement) "{\n start += wmatch[0].rm_eo;\n }" ({) "{" (expression_statement) "start += wmatch[0].rm_eo;" (assignment_expression) "start += wmatch[0].rm_eo" (identifier) "start" (+=) "+=" (field_expression) "wmatch[0].rm_eo" (subscript_expression) "wmatch[0]" (identifier) "wmatch" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "rm_eo" (;) ";" (}) "}" (return_statement) "return strndup(&cmdline[*index + start], end - start);" (return) "return" (call_expression) "strndup(&cmdline[*index + start], end - start)" (identifier) "strndup" (argument_list) "(&cmdline[*index + start], end - start)" (() "(" (pointer_expression) "&cmdline[*index + start]" (&) "&" (subscript_expression) "cmdline[*index + start]" (identifier) "cmdline" ([) "[" (binary_expression) "*index + start" (pointer_expression) "*index" (*) "*" (identifier) "index" (+) "+" (identifier) "start" (]) "]" (,) "," (binary_expression) "end - start" (identifier) "end" (-) "-" (identifier) "start" ()) ")" (;) ";" (}) "}" (comment) "// -------------------------- TOKEN PARSE ----------------------------" (comment) "/**\n * Consume token\n * \n * @param token regex token\n * @param cmdline command input line\n * @param index starting index of input to check (updates)\n * @param output output buffer to set to token value\n *\n * @return true if token was consumed\n */" (function_definition) "int consume(regex_t* token, char* cmdline, int* index, char** output) {\n regmatch_t match[1];\n int error = regexec(token, &cmdline[*index], 1, match, 0);\n switch (error) {\n case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;\n case REG_NOMATCH:\n break;\n default:\n // Handle token error\n print_token_error(error, token);\n break;\n }\n return error;\n}" (primitive_type) "int" (function_declarator) "consume(regex_t* token, char* cmdline, int* index, char** output)" (identifier) "consume" (parameter_list) "(regex_t* token, char* cmdline, int* index, char** output)" (() "(" (parameter_declaration) "regex_t* token" (type_identifier) "regex_t" (pointer_declarator) "* token" (*) "*" (identifier) "token" (,) "," (parameter_declaration) "char* cmdline" (primitive_type) "char" (pointer_declarator) "* cmdline" (*) "*" (identifier) "cmdline" (,) "," (parameter_declaration) "int* index" (primitive_type) "int" (pointer_declarator) "* index" (*) "*" (identifier) "index" (,) "," (parameter_declaration) "char** output" (primitive_type) "char" (pointer_declarator) "** output" (*) "*" (pointer_declarator) "* output" (*) "*" (identifier) "output" ()) ")" (compound_statement) "{\n regmatch_t match[1];\n int error = regexec(token, &cmdline[*index], 1, match, 0);\n switch (error) {\n case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;\n case REG_NOMATCH:\n break;\n default:\n // Handle token error\n print_token_error(error, token);\n break;\n }\n return error;\n}" ({) "{" (declaration) "regmatch_t match[1];" (type_identifier) "regmatch_t" (array_declarator) "match[1]" (identifier) "match" ([) "[" (number_literal) "1" (]) "]" (;) ";" (declaration) "int error = regexec(token, &cmdline[*index], 1, match, 0);" (primitive_type) "int" (init_declarator) "error = regexec(token, &cmdline[*index], 1, match, 0)" (identifier) "error" (=) "=" (call_expression) "regexec(token, &cmdline[*index], 1, match, 0)" (identifier) "regexec" (argument_list) "(token, &cmdline[*index], 1, match, 0)" (() "(" (identifier) "token" (,) "," (pointer_expression) "&cmdline[*index]" (&) "&" (subscript_expression) "cmdline[*index]" (identifier) "cmdline" ([) "[" (pointer_expression) "*index" (*) "*" (identifier) "index" (]) "]" (,) "," (number_literal) "1" (,) "," (identifier) "match" (,) "," (number_literal) "0" ()) ")" (;) ";" (switch_statement) "switch (error) {\n case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;\n case REG_NOMATCH:\n break;\n default:\n // Handle token error\n print_token_error(error, token);\n break;\n }" (switch) "switch" (parenthesized_expression) "(error)" (() "(" (identifier) "error" ()) ")" (compound_statement) "{\n case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;\n case REG_NOMATCH:\n break;\n default:\n // Handle token error\n print_token_error(error, token);\n break;\n }" ({) "{" (case_statement) "case 0:\n // Set output if given\n if (output) {\n *output = get_match_string(cmdline, index, match);\n }\n\n // Add end offset to index\n *index += match[0].rm_eo;\n break;" (case) "case" (number_literal) "0" (:) ":" (comment) "// Set output if given" (if_statement) "if (output) {\n *output = get_match_string(cmdline, index, match);\n }" (if) "if" (parenthesized_expression) "(output)" (() "(" (identifier) "output" ()) ")" (compound_statement) "{\n *output = get_match_string(cmdline, index, match);\n }" ({) "{" (expression_statement) "*output = get_match_string(cmdline, index, match);" (assignment_expression) "*output = get_match_string(cmdline, index, match)" (pointer_expression) "*output" (*) "*" (identifier) "output" (=) "=" (call_expression) "get_match_string(cmdline, index, match)" (identifier) "get_match_string" (argument_list) "(cmdline, index, match)" (() "(" (identifier) "cmdline" (,) "," (identifier) "index" (,) "," (identifier) "match" ()) ")" (;) ";" (}) "}" (comment) "// Add end offset to index" (expression_statement) "*index += match[0].rm_eo;" (assignment_expression) "*index += match[0].rm_eo" (pointer_expression) "*index" (*) "*" (identifier) "index" (+=) "+=" (field_expression) "match[0].rm_eo" (subscript_expression) "match[0]" (identifier) "match" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "rm_eo" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case REG_NOMATCH:\n break;" (case) "case" (identifier) "REG_NOMATCH" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n // Handle token error\n print_token_error(error, token);\n break;" (default) "default" (:) ":" (comment) "// Handle token error" (expression_statement) "print_token_error(error, token);" (call_expression) "print_token_error(error, token)" (identifier) "print_token_error" (argument_list) "(error, token)" (() "(" (identifier) "error" (,) "," (identifier) "token" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return error;" (return) "return" (identifier) "error" (;) ";" (}) "}" (comment) "/**\n * Lookahead for next token\n *\n * @param token token regex\n * @param cmdline command input line\n * @param index starting index of input to check (does not update)\n *\n * @return lookahead result\n */" (function_definition) "int lookahead(regex_t* token, char* cmdline, int* index) {\n int error = regexec(&arg, &cmdline[*index], 0, NULL, 0);\n if (error != 0 && error != REG_NOMATCH) {\n print_token_error(error, token);\n }\n return error;\n}" (primitive_type) "int" (function_declarator) "lookahead(regex_t* token, char* cmdline, int* index)" (identifier) "lookahead" (parameter_list) "(regex_t* token, char* cmdline, int* index)" (() "(" (parameter_declaration) "regex_t* token" (type_identifier) "regex_t" (pointer_declarator) "* token" (*) "*" (identifier) "token" (,) "," (parameter_declaration) "char* cmdline" (primitive_type) "char" (pointer_declarator) "* cmdline" (*) "*" (identifier) "cmdline" (,) "," (parameter_declaration) "int* index" (primitive_type) "int" (pointer_declarator) "* index" (*) "*" (identifier) "index" ()) ")" (compound_statement) "{\n int error = regexec(&arg, &cmdline[*index], 0, NULL, 0);\n if (error != 0 && error != REG_NOMATCH) {\n print_token_error(error, token);\n }\n return error;\n}" ({) "{" (declaration) "int error = regexec(&arg, &cmdline[*index], 0, NULL, 0);" (primitive_type) "int" (init_declarator) "error = regexec(&arg, &cmdline[*index], 0, NULL, 0)" (identifier) "error" (=) "=" (call_expression) "regexec(&arg, &cmdline[*index], 0, NULL, 0)" (identifier) "regexec" (argument_list) "(&arg, &cmdline[*index], 0, NULL, 0)" (() "(" (pointer_expression) "&arg" (&) "&" (identifier) "arg" (,) "," (pointer_expression) "&cmdline[*index]" (&) "&" (subscript_expression) "cmdline[*index]" (identifier) "cmdline" ([) "[" (pointer_expression) "*index" (*) "*" (identifier) "index" (]) "]" (,) "," (number_literal) "0" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (error != 0 && error != REG_NOMATCH) {\n print_token_error(error, token);\n }" (if) "if" (parenthesized_expression) "(error != 0 && error != REG_NOMATCH)" (() "(" (binary_expression) "error != 0 && error != REG_NOMATCH" (binary_expression) "error != 0" (identifier) "error" (!=) "!=" (number_literal) "0" (&&) "&&" (binary_expression) "error != REG_NOMATCH" (identifier) "error" (!=) "!=" (identifier) "REG_NOMATCH" ()) ")" (compound_statement) "{\n print_token_error(error, token);\n }" ({) "{" (expression_statement) "print_token_error(error, token);" (call_expression) "print_token_error(error, token)" (identifier) "print_token_error" (argument_list) "(error, token)" (() "(" (identifier) "error" (,) "," (identifier) "token" ()) ")" (;) ";" (}) "}" (return_statement) "return error;" (return) "return" (identifier) "error" (;) ";" (}) "}"
997
1
{"language": "c", "success": true, "metadata": {"lines": 146, "avg_line_length": 26.27, "nodes": 576, "errors": 0, "source_hash": "55802108955ef78cf12893d078ef9b582098888db2b110d813793925a352b82b", "categorized_nodes": 364}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"tokenizer.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"tokenizer.h\"", "parent": 0, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 22}}, {"id": 3, "type": "preproc_include", "text": "#include \"debug.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"debug.h\"", "parent": 3, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 9, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<string.h>", "parent": 12, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 15, "type": "preproc_ifdef", "text": "#ifdef DEBUG_PARSE_TOKENIZER\nDEBUG_ON(\"\\e[35m[parse:tokenizer]\\e[0m\")\n#else\nDEBUG_OFF\n#endif", "parent": null, "children": [16, 17, 24, 26, 28], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 16, "type": "#ifdef", "text": "#ifdef", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 17, "type": "identifier", "text": "DEBUG_PARSE_TOKENIZER", "parent": 15, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 28}}, {"id": 18, "type": "call_expression", "text": "DEBUG_ON(\"\\e[35m[parse:tokenizer]\\e[0m\")", "parent": 15, "children": [19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 40}}, {"id": 19, "type": "identifier", "text": "DEBUG_ON", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 20, "type": "argument_list", "text": "(\"\\e[35m[parse:tokenizer]\\e[0m\")", "parent": 18, "children": [21], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 40}}, {"id": 21, "type": "string_literal", "text": "\"\\e[35m[parse:tokenizer]\\e[0m\"", "parent": 20, "children": [22, 23], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 39}}, {"id": 22, "type": "escape_sequence", "text": "\\e", "parent": 21, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 12}}, {"id": 23, "type": "escape_sequence", "text": "\\e", "parent": 21, "children": [], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 35}}, {"id": 24, "type": "preproc_else", "text": "#else", "parent": 15, "children": [25], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 5}}, {"id": 25, "type": "#else", "text": "#else", "parent": 24, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 5}}, {"id": 26, "type": "ERROR", "text": "DEBUG_OFF", "parent": 15, "children": [27], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 27, "type": "identifier", "text": "DEBUG_OFF", "parent": 26, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 9}}, {"id": 28, "type": "#endif", "text": "#endif", "parent": 15, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 29, "type": "declaration", "text": "const char* shell_string = \"^\\\\s*!\";", "parent": null, "children": [30, 31], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 36}}, {"id": 30, "type": "primitive_type", "text": "char", "parent": 29, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 31, "type": "init_declarator", "text": "* shell_string = \"^\\\\s*!\"", "parent": 29, "children": [32, 35, 36], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 35}}, {"id": 32, "type": "pointer_declarator", "text": "* shell_string", "parent": 31, "children": [33, 34], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 24}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 34, "type": "identifier", "text": "shell_string", "parent": 32, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 24}}, {"id": 35, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 26}}, {"id": 36, "type": "string_literal", "text": "\"^\\\\s*!\"", "parent": 31, "children": [37], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 35}}, {"id": 37, "type": "escape_sequence", "text": "\\\\", "parent": 36, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 38, "type": "declaration", "text": "const char* shcmd_string = \"^\\\\s*\\\\w+\";", "parent": null, "children": [39, 40], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 39}}, {"id": 39, "type": "primitive_type", "text": "char", "parent": 38, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 40, "type": "init_declarator", "text": "* shcmd_string = \"^\\\\s*\\\\w+\"", "parent": 38, "children": [41, 44, 45], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 38}}, {"id": 41, "type": "pointer_declarator", "text": "* shcmd_string", "parent": 40, "children": [42, 43], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 24}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 43, "type": "identifier", "text": "shcmd_string", "parent": 41, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 24}}, {"id": 44, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 45, "type": "string_literal", "text": "\"^\\\\s*\\\\w+\"", "parent": 40, "children": [46, 47], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 38}}, {"id": 46, "type": "escape_sequence", "text": "\\\\", "parent": 45, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 47, "type": "escape_sequence", "text": "\\\\", "parent": 45, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 35}}, {"id": 48, "type": "declaration", "text": "const char* file_string = \"^\\\\s*(\\\\w|[\\\\.-~])+(/(\\\\w|[\\\\.-])+)*\";", "parent": null, "children": [49, 50], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 65}}, {"id": 49, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 10}}, {"id": 50, "type": "init_declarator", "text": "* file_string = \"^\\\\s*(\\\\w|[\\\\.-~])+(/(\\\\w|[\\\\.-])+)*\"", "parent": 48, "children": [51, 54, 55], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 64}}, {"id": 51, "type": "pointer_declarator", "text": "* file_string", "parent": 50, "children": [52, 53], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 23}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 11}}, {"id": 53, "type": "identifier", "text": "file_string", "parent": 51, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 23}}, {"id": 54, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 25}}, {"id": 55, "type": "string_literal", "text": "\"^\\\\s*(\\\\w|[\\\\.-~])+(/(\\\\w|[\\\\.-])+)*\"", "parent": 50, "children": [56, 57, 58, 59, 60], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 64}}, {"id": 56, "type": "escape_sequence", "text": "\\\\", "parent": 55, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 30}}, {"id": 57, "type": "escape_sequence", "text": "\\\\", "parent": 55, "children": [], "start_point": {"row": 26, "column": 33}, "end_point": {"row": 26, "column": 35}}, {"id": 58, "type": "escape_sequence", "text": "\\\\", "parent": 55, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 40}}, {"id": 59, "type": "escape_sequence", "text": "\\\\", "parent": 55, "children": [], "start_point": {"row": 26, "column": 49}, "end_point": {"row": 26, "column": 51}}, {"id": 60, "type": "escape_sequence", "text": "\\\\", "parent": 55, "children": [], "start_point": {"row": 26, "column": 54}, "end_point": {"row": 26, "column": 56}}, {"id": 61, "type": "declaration", "text": "const char* arg_string = \"^\\\\s*[^ \\t\\\\|<>&]+\";", "parent": null, "children": [62, 63], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 46}}, {"id": 62, "type": "primitive_type", "text": "char", "parent": 61, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 10}}, {"id": 63, "type": "init_declarator", "text": "* arg_string = \"^\\\\s*[^ \\t\\\\|<>&]+\"", "parent": 61, "children": [64, 67, 68], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 45}}, {"id": 64, "type": "pointer_declarator", "text": "* arg_string", "parent": 63, "children": [65, 66], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 22}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 11}}, {"id": 66, "type": "identifier", "text": "arg_string", "parent": 64, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 22}}, {"id": 67, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 68, "type": "string_literal", "text": "\"^\\\\s*[^ \\t\\\\|<>&]+\"", "parent": 63, "children": [69, 70, 71], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 45}}, {"id": 69, "type": "escape_sequence", "text": "\\\\", "parent": 68, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 29}}, {"id": 70, "type": "escape_sequence", "text": "\\t", "parent": 68, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 36}}, {"id": 71, "type": "escape_sequence", "text": "\\\\", "parent": 68, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 38}}, {"id": 72, "type": "declaration", "text": "const char* pipe_string = \"^\\\\s*\\\\|\";", "parent": null, "children": [73, 74], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 37}}, {"id": 73, "type": "primitive_type", "text": "char", "parent": 72, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 10}}, {"id": 74, "type": "init_declarator", "text": "* pipe_string = \"^\\\\s*\\\\|\"", "parent": 72, "children": [75, 78, 79], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 36}}, {"id": 75, "type": "pointer_declarator", "text": "* pipe_string", "parent": 74, "children": [76, 77], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 23}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 11}}, {"id": 77, "type": "identifier", "text": "pipe_string", "parent": 75, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 23}}, {"id": 78, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 79, "type": "string_literal", "text": "\"^\\\\s*\\\\|\"", "parent": 74, "children": [80, 81], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 36}}, {"id": 80, "type": "escape_sequence", "text": "\\\\", "parent": 79, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 30}}, {"id": 81, "type": "escape_sequence", "text": "\\\\", "parent": 79, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 82, "type": "declaration", "text": "const char* file_in_string = \"^\\\\s*<\";", "parent": null, "children": [83, 84], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 38}}, {"id": 83, "type": "primitive_type", "text": "char", "parent": 82, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 10}}, {"id": 84, "type": "init_declarator", "text": "* file_in_string = \"^\\\\s*<\"", "parent": 82, "children": [85, 88, 89], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 37}}, {"id": 85, "type": "pointer_declarator", "text": "* file_in_string", "parent": 84, "children": [86, 87], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 26}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 87, "type": "identifier", "text": "file_in_string", "parent": 85, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 26}}, {"id": 88, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 28}}, {"id": 89, "type": "string_literal", "text": "\"^\\\\s*<\"", "parent": 84, "children": [90], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 37}}, {"id": 90, "type": "escape_sequence", "text": "\\\\", "parent": 89, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 33}}, {"id": 91, "type": "declaration", "text": "const char* file_out_string = \"^\\\\s*>\";", "parent": null, "children": [92, 93], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 39}}, {"id": 92, "type": "primitive_type", "text": "char", "parent": 91, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 10}}, {"id": 93, "type": "init_declarator", "text": "* file_out_string = \"^\\\\s*>\"", "parent": 91, "children": [94, 97, 98], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 38}}, {"id": 94, "type": "pointer_declarator", "text": "* file_out_string", "parent": 93, "children": [95, 96], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 27}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 11}}, {"id": 96, "type": "identifier", "text": "file_out_string", "parent": 94, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 27}}, {"id": 97, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 29}}, {"id": 98, "type": "string_literal", "text": "\"^\\\\s*>\"", "parent": 93, "children": [99], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 38}}, {"id": 99, "type": "escape_sequence", "text": "\\\\", "parent": 98, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 34}}, {"id": 100, "type": "declaration", "text": "const char* background_string = \"&\";", "parent": null, "children": [101, 102], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 36}}, {"id": 101, "type": "primitive_type", "text": "char", "parent": 100, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 10}}, {"id": 102, "type": "init_declarator", "text": "* background_string = \"&\"", "parent": 100, "children": [103, 106, 107], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 35}}, {"id": 103, "type": "pointer_declarator", "text": "* background_string", "parent": 102, "children": [104, 105], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 29}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 11}}, {"id": 105, "type": "identifier", "text": "background_string", "parent": 103, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 29}}, {"id": 106, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 31}}, {"id": 107, "type": "string_literal", "text": "\"&\"", "parent": 102, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 35}}, {"id": 108, "type": "declaration", "text": "const char* whitespace_string = \"^\\\\s*\";", "parent": null, "children": [109, 110], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 40}}, {"id": 109, "type": "primitive_type", "text": "char", "parent": 108, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 10}}, {"id": 110, "type": "init_declarator", "text": "* whitespace_string = \"^\\\\s*\"", "parent": 108, "children": [111, 114, 115], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 39}}, {"id": 111, "type": "pointer_declarator", "text": "* whitespace_string", "parent": 110, "children": [112, 113], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 29}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 11}}, {"id": 113, "type": "identifier", "text": "whitespace_string", "parent": 111, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 29}}, {"id": 114, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 31}}, {"id": 115, "type": "string_literal", "text": "\"^\\\\s*\"", "parent": 110, "children": [116], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 39}}, {"id": 116, "type": "escape_sequence", "text": "\\\\", "parent": 115, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 36}}, {"id": 117, "type": "declaration", "text": "regex_t whitespace;", "parent": null, "children": [118, 119], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 19}}, {"id": 118, "type": "type_identifier", "text": "regex_t", "parent": 117, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 119, "type": "identifier", "text": "whitespace", "parent": 117, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 18}}, {"id": 120, "type": "function_definition", "text": "void tokenizer_init() {\n\t__debug__printf(\"Initialize...\\n\");\n\tregcomp(&shell, shell_string, REG_EXTENDED);\n\tregcomp(&shcmd, shcmd_string, REG_EXTENDED);\n\tregcomp(&file, file_string, REG_EXTENDED);\n\tregcomp(&arg, arg_string, REG_EXTENDED);\n\tregcomp(&piper, pipe_string, REG_EXTENDED);\n\tregcomp(&file_in, file_in_string, REG_EXTENDED);\n\tregcomp(&file_out, file_out_string, REG_EXTENDED);\n\tregcomp(&background, background_string, REG_EXTENDED);\n\tregcomp(&whitespace, whitespace_string, REG_EXTENDED);\n}", "parent": null, "children": [121, 122], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 121, "type": "primitive_type", "text": "void", "parent": 120, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 122, "type": "function_declarator", "text": "tokenizer_init()", "parent": 120, "children": [123, 124], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 21}}, {"id": 123, "type": "identifier", "text": "tokenizer_init", "parent": 122, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 19}}, {"id": 124, "type": "parameter_list", "text": "()", "parent": 122, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 21}}, {"id": 125, "type": "call_expression", "text": "__debug__printf(\"Initialize...\\n\")", "parent": 120, "children": [126, 127], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 35}}, {"id": 126, "type": "identifier", "text": "__debug__printf", "parent": 125, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 16}}, {"id": 127, "type": "argument_list", "text": "(\"Initialize...\\n\")", "parent": 125, "children": [128], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 35}}, {"id": 128, "type": "string_literal", "text": "\"Initialize...\\n\"", "parent": 127, "children": [129], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 34}}, {"id": 129, "type": "escape_sequence", "text": "\\n", "parent": 128, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 33}}, {"id": 130, "type": "call_expression", "text": "regcomp(&shell, shell_string, REG_EXTENDED)", "parent": 120, "children": [131, 132], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 44}}, {"id": 131, "type": "identifier", "text": "regcomp", "parent": 130, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 132, "type": "argument_list", "text": "(&shell, shell_string, REG_EXTENDED)", "parent": 130, "children": [133, 135, 136], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 44}}, {"id": 133, "type": "pointer_expression", "text": "&shell", "parent": 132, "children": [134], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 15}}, {"id": 134, "type": "identifier", "text": "shell", "parent": 133, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 15}}, {"id": 135, "type": "identifier", "text": "shell_string", "parent": 132, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 29}}, {"id": 136, "type": "identifier", "text": "REG_EXTENDED", "parent": 132, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 43}}, {"id": 137, "type": "call_expression", "text": "regcomp(&shcmd, shcmd_string, REG_EXTENDED)", "parent": 120, "children": [138, 139], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 44}}, {"id": 138, "type": "identifier", "text": "regcomp", "parent": 137, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 8}}, {"id": 139, "type": "argument_list", "text": "(&shcmd, shcmd_string, REG_EXTENDED)", "parent": 137, "children": [140, 142, 143], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 44}}, {"id": 140, "type": "pointer_expression", "text": "&shcmd", "parent": 139, "children": [141], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 15}}, {"id": 141, "type": "identifier", "text": "shcmd", "parent": 140, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 15}}, {"id": 142, "type": "identifier", "text": "shcmd_string", "parent": 139, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 29}}, {"id": 143, "type": "identifier", "text": "REG_EXTENDED", "parent": 139, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 43}}, {"id": 144, "type": "call_expression", "text": "regcomp(&file, file_string, REG_EXTENDED)", "parent": 120, "children": [145, 146], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 42}}, {"id": 145, "type": "identifier", "text": "regcomp", "parent": 144, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 146, "type": "argument_list", "text": "(&file, file_string, REG_EXTENDED)", "parent": 144, "children": [147, 149, 150], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 42}}, {"id": 147, "type": "pointer_expression", "text": "&file", "parent": 146, "children": [148], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 14}}, {"id": 148, "type": "identifier", "text": "file", "parent": 147, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 14}}, {"id": 149, "type": "identifier", "text": "file_string", "parent": 146, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 27}}, {"id": 150, "type": "identifier", "text": "REG_EXTENDED", "parent": 146, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 41}}, {"id": 151, "type": "call_expression", "text": "regcomp(&arg, arg_string, REG_EXTENDED)", "parent": 120, "children": [152, 153], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 40}}, {"id": 152, "type": "identifier", "text": "regcomp", "parent": 151, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 153, "type": "argument_list", "text": "(&arg, arg_string, REG_EXTENDED)", "parent": 151, "children": [154, 156, 157], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 40}}, {"id": 154, "type": "pointer_expression", "text": "&arg", "parent": 153, "children": [155], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 13}}, {"id": 155, "type": "identifier", "text": "arg", "parent": 154, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 13}}, {"id": 156, "type": "identifier", "text": "arg_string", "parent": 153, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 25}}, {"id": 157, "type": "identifier", "text": "REG_EXTENDED", "parent": 153, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 39}}, {"id": 158, "type": "call_expression", "text": "regcomp(&piper, pipe_string, REG_EXTENDED)", "parent": 120, "children": [159, 160], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 43}}, {"id": 159, "type": "identifier", "text": "regcomp", "parent": 158, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 160, "type": "argument_list", "text": "(&piper, pipe_string, REG_EXTENDED)", "parent": 158, "children": [161, 163, 164], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 43}}, {"id": 161, "type": "pointer_expression", "text": "&piper", "parent": 160, "children": [162], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 15}}, {"id": 162, "type": "identifier", "text": "piper", "parent": 161, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 15}}, {"id": 163, "type": "identifier", "text": "pipe_string", "parent": 160, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 28}}, {"id": 164, "type": "identifier", "text": "REG_EXTENDED", "parent": 160, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 42}}, {"id": 165, "type": "call_expression", "text": "regcomp(&file_in, file_in_string, REG_EXTENDED)", "parent": 120, "children": [166, 167], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 48}}, {"id": 166, "type": "identifier", "text": "regcomp", "parent": 165, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 8}}, {"id": 167, "type": "argument_list", "text": "(&file_in, file_in_string, REG_EXTENDED)", "parent": 165, "children": [168, 170, 171], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 48}}, {"id": 168, "type": "pointer_expression", "text": "&file_in", "parent": 167, "children": [169], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 17}}, {"id": 169, "type": "identifier", "text": "file_in", "parent": 168, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 17}}, {"id": 170, "type": "identifier", "text": "file_in_string", "parent": 167, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 33}}, {"id": 171, "type": "identifier", "text": "REG_EXTENDED", "parent": 167, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 47}}, {"id": 172, "type": "call_expression", "text": "regcomp(&file_out, file_out_string, REG_EXTENDED)", "parent": 120, "children": [173, 174], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 50}}, {"id": 173, "type": "identifier", "text": "regcomp", "parent": 172, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 174, "type": "argument_list", "text": "(&file_out, file_out_string, REG_EXTENDED)", "parent": 172, "children": [175, 177, 178], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 50}}, {"id": 175, "type": "pointer_expression", "text": "&file_out", "parent": 174, "children": [176], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 18}}, {"id": 176, "type": "identifier", "text": "file_out", "parent": 175, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 18}}, {"id": 177, "type": "identifier", "text": "file_out_string", "parent": 174, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 35}}, {"id": 178, "type": "identifier", "text": "REG_EXTENDED", "parent": 174, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 49}}, {"id": 179, "type": "call_expression", "text": "regcomp(&background, background_string, REG_EXTENDED)", "parent": 120, "children": [180, 181], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 54}}, {"id": 180, "type": "identifier", "text": "regcomp", "parent": 179, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 8}}, {"id": 181, "type": "argument_list", "text": "(&background, background_string, REG_EXTENDED)", "parent": 179, "children": [182, 184, 185], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 54}}, {"id": 182, "type": "pointer_expression", "text": "&background", "parent": 181, "children": [183], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 20}}, {"id": 183, "type": "identifier", "text": "background", "parent": 182, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 20}}, {"id": 184, "type": "identifier", "text": "background_string", "parent": 181, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 39}}, {"id": 185, "type": "identifier", "text": "REG_EXTENDED", "parent": 181, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 53}}, {"id": 186, "type": "call_expression", "text": "regcomp(&whitespace, whitespace_string, REG_EXTENDED)", "parent": 120, "children": [187, 188], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 54}}, {"id": 187, "type": "identifier", "text": "regcomp", "parent": 186, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 8}}, {"id": 188, "type": "argument_list", "text": "(&whitespace, whitespace_string, REG_EXTENDED)", "parent": 186, "children": [189, 191, 192], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 54}}, {"id": 189, "type": "pointer_expression", "text": "&whitespace", "parent": 188, "children": [190], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 20}}, {"id": 190, "type": "identifier", "text": "whitespace", "parent": 189, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 20}}, {"id": 191, "type": "identifier", "text": "whitespace_string", "parent": 188, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 39}}, {"id": 192, "type": "identifier", "text": "REG_EXTENDED", "parent": 188, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 53}}, {"id": 193, "type": "function_definition", "text": "void tokenizer_deinit() {\n\t__debug__printf(\"Deinitialize...\\n\");\n\tregfree(&shell);\n\tregfree(&shcmd);\n\tregfree(&file);\n\tregfree(&arg);\n\tregfree(&piper);\n\tregfree(&file_in);\n\tregfree(&file_out);\n\tregfree(&background);\n\tregfree(&whitespace);\n}", "parent": null, "children": [194, 195], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 194, "type": "primitive_type", "text": "void", "parent": 193, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 195, "type": "function_declarator", "text": "tokenizer_deinit()", "parent": 193, "children": [196, 197], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 23}}, {"id": 196, "type": "identifier", "text": "tokenizer_deinit", "parent": 195, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 21}}, {"id": 197, "type": "parameter_list", "text": "()", "parent": 195, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 23}}, {"id": 198, "type": "call_expression", "text": "__debug__printf(\"Deinitialize...\\n\")", "parent": 193, "children": [199, 200], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 37}}, {"id": 199, "type": "identifier", "text": "__debug__printf", "parent": 198, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 16}}, {"id": 200, "type": "argument_list", "text": "(\"Deinitialize...\\n\")", "parent": 198, "children": [201], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 37}}, {"id": 201, "type": "string_literal", "text": "\"Deinitialize...\\n\"", "parent": 200, "children": [202], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 36}}, {"id": 202, "type": "escape_sequence", "text": "\\n", "parent": 201, "children": [], "start_point": {"row": 59, "column": 33}, "end_point": {"row": 59, "column": 35}}, {"id": 203, "type": "call_expression", "text": "regfree(&shell)", "parent": 193, "children": [204, 205], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 16}}, {"id": 204, "type": "identifier", "text": "regfree", "parent": 203, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 8}}, {"id": 205, "type": "argument_list", "text": "(&shell)", "parent": 203, "children": [206], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 16}}, {"id": 206, "type": "pointer_expression", "text": "&shell", "parent": 205, "children": [207], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 15}}, {"id": 207, "type": "identifier", "text": "shell", "parent": 206, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 15}}, {"id": 208, "type": "call_expression", "text": "regfree(&shcmd)", "parent": 193, "children": [209, 210], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 16}}, {"id": 209, "type": "identifier", "text": "regfree", "parent": 208, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 8}}, {"id": 210, "type": "argument_list", "text": "(&shcmd)", "parent": 208, "children": [211], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 16}}, {"id": 211, "type": "pointer_expression", "text": "&shcmd", "parent": 210, "children": [212], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 15}}, {"id": 212, "type": "identifier", "text": "shcmd", "parent": 211, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 15}}, {"id": 213, "type": "call_expression", "text": "regfree(&file)", "parent": 193, "children": [214, 215], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 15}}, {"id": 214, "type": "identifier", "text": "regfree", "parent": 213, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 8}}, {"id": 215, "type": "argument_list", "text": "(&file)", "parent": 213, "children": [216], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 15}}, {"id": 216, "type": "pointer_expression", "text": "&file", "parent": 215, "children": [217], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 14}}, {"id": 217, "type": "identifier", "text": "file", "parent": 216, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 14}}, {"id": 218, "type": "call_expression", "text": "regfree(&arg)", "parent": 193, "children": [219, 220], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 14}}, {"id": 219, "type": "identifier", "text": "regfree", "parent": 218, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 8}}, {"id": 220, "type": "argument_list", "text": "(&arg)", "parent": 218, "children": [221], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 221, "type": "pointer_expression", "text": "&arg", "parent": 220, "children": [222], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 13}}, {"id": 222, "type": "identifier", "text": "arg", "parent": 221, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 13}}, {"id": 223, "type": "call_expression", "text": "regfree(&piper)", "parent": 193, "children": [224, 225], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 16}}, {"id": 224, "type": "identifier", "text": "regfree", "parent": 223, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 8}}, {"id": 225, "type": "argument_list", "text": "(&piper)", "parent": 223, "children": [226], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 16}}, {"id": 226, "type": "pointer_expression", "text": "&piper", "parent": 225, "children": [227], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 15}}, {"id": 227, "type": "identifier", "text": "piper", "parent": 226, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 15}}, {"id": 228, "type": "call_expression", "text": "regfree(&file_in)", "parent": 193, "children": [229, 230], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 18}}, {"id": 229, "type": "identifier", "text": "regfree", "parent": 228, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 8}}, {"id": 230, "type": "argument_list", "text": "(&file_in)", "parent": 228, "children": [231], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 18}}, {"id": 231, "type": "pointer_expression", "text": "&file_in", "parent": 230, "children": [232], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 17}}, {"id": 232, "type": "identifier", "text": "file_in", "parent": 231, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 17}}, {"id": 233, "type": "call_expression", "text": "regfree(&file_out)", "parent": 193, "children": [234, 235], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 19}}, {"id": 234, "type": "identifier", "text": "regfree", "parent": 233, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 8}}, {"id": 235, "type": "argument_list", "text": "(&file_out)", "parent": 233, "children": [236], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 19}}, {"id": 236, "type": "pointer_expression", "text": "&file_out", "parent": 235, "children": [237], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 18}}, {"id": 237, "type": "identifier", "text": "file_out", "parent": 236, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 18}}, {"id": 238, "type": "call_expression", "text": "regfree(&background)", "parent": 193, "children": [239, 240], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 21}}, {"id": 239, "type": "identifier", "text": "regfree", "parent": 238, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 8}}, {"id": 240, "type": "argument_list", "text": "(&background)", "parent": 238, "children": [241], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 21}}, {"id": 241, "type": "pointer_expression", "text": "&background", "parent": 240, "children": [242], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 20}}, {"id": 242, "type": "identifier", "text": "background", "parent": 241, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 20}}, {"id": 243, "type": "call_expression", "text": "regfree(&whitespace)", "parent": 193, "children": [244, 245], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 21}}, {"id": 244, "type": "identifier", "text": "regfree", "parent": 243, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 8}}, {"id": 245, "type": "argument_list", "text": "(&whitespace)", "parent": 243, "children": [246], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 21}}, {"id": 246, "type": "pointer_expression", "text": "&whitespace", "parent": 245, "children": [247], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 20}}, {"id": 247, "type": "identifier", "text": "whitespace", "parent": 246, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 20}}, {"id": 248, "type": "function_definition", "text": "void print_token_error(int error, regex_t* regex) {\n\tsize_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);\n\tchar* errbuf = (char*)malloc(errbuf_size*sizeof(char));\n\tregerror(error, regex, errbuf, errbuf_size);\n\tprintf(\"ERROR: %s\\n\", errbuf);\n}", "parent": null, "children": [249, 250], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 249, "type": "primitive_type", "text": "void", "parent": 248, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 4}}, {"id": 250, "type": "function_declarator", "text": "print_token_error(int error, regex_t* regex)", "parent": 248, "children": [251, 252], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 49}}, {"id": 251, "type": "identifier", "text": "print_token_error", "parent": 250, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 22}}, {"id": 252, "type": "parameter_list", "text": "(int error, regex_t* regex)", "parent": 250, "children": [253, 256], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 49}}, {"id": 253, "type": "parameter_declaration", "text": "int error", "parent": 252, "children": [254, 255], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 32}}, {"id": 254, "type": "primitive_type", "text": "int", "parent": 253, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 26}}, {"id": 255, "type": "identifier", "text": "error", "parent": 253, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 32}}, {"id": 256, "type": "parameter_declaration", "text": "regex_t* regex", "parent": 252, "children": [257, 258], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 48}}, {"id": 257, "type": "type_identifier", "text": "regex_t", "parent": 256, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 41}}, {"id": 258, "type": "pointer_declarator", "text": "* regex", "parent": 256, "children": [259, 260], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 48}}, {"id": 259, "type": "*", "text": "*", "parent": 258, "children": [], "start_point": {"row": 79, "column": 41}, "end_point": {"row": 79, "column": 42}}, {"id": 260, "type": "identifier", "text": "regex", "parent": 258, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 48}}, {"id": 261, "type": "declaration", "text": "size_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);", "parent": 248, "children": [262, 263], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 69}}, {"id": 262, "type": "primitive_type", "text": "size_t", "parent": 261, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 7}}, {"id": 263, "type": "init_declarator", "text": "errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0)", "parent": 261, "children": [264, 265, 266], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 68}}, {"id": 264, "type": "identifier", "text": "errbuf_size", "parent": 263, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 19}}, {"id": 265, "type": "=", "text": "=", "parent": 263, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 21}}, {"id": 266, "type": "call_expression", "text": "regerror(error, regex, (char*)NULL, (size_t)0)", "parent": 263, "children": [267, 268], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 68}}, {"id": 267, "type": "identifier", "text": "regerror", "parent": 266, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 30}}, {"id": 268, "type": "argument_list", "text": "(error, regex, (char*)NULL, (size_t)0)", "parent": 266, "children": [269, 270, 271, 278], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 68}}, {"id": 269, "type": "identifier", "text": "error", "parent": 268, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 36}}, {"id": 270, "type": "identifier", "text": "regex", "parent": 268, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 43}}, {"id": 271, "type": "cast_expression", "text": "(char*)NULL", "parent": 268, "children": [272, 276], "start_point": {"row": 80, "column": 45}, "end_point": {"row": 80, "column": 56}}, {"id": 272, "type": "type_descriptor", "text": "char*", "parent": 271, "children": [273, 274], "start_point": {"row": 80, "column": 46}, "end_point": {"row": 80, "column": 51}}, {"id": 273, "type": "primitive_type", "text": "char", "parent": 272, "children": [], "start_point": {"row": 80, "column": 46}, "end_point": {"row": 80, "column": 50}}, {"id": 274, "type": "abstract_pointer_declarator", "text": "*", "parent": 272, "children": [275], "start_point": {"row": 80, "column": 50}, "end_point": {"row": 80, "column": 51}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 80, "column": 50}, "end_point": {"row": 80, "column": 51}}, {"id": 276, "type": "null", "text": "NULL", "parent": 271, "children": [277], "start_point": {"row": 80, "column": 52}, "end_point": {"row": 80, "column": 56}}, {"id": 277, "type": "NULL", "text": "NULL", "parent": 276, "children": [], "start_point": {"row": 80, "column": 52}, "end_point": {"row": 80, "column": 56}}, {"id": 278, "type": "cast_expression", "text": "(size_t)0", "parent": 268, "children": [279, 281], "start_point": {"row": 80, "column": 58}, "end_point": {"row": 80, "column": 67}}, {"id": 279, "type": "type_descriptor", "text": "size_t", "parent": 278, "children": [280], "start_point": {"row": 80, "column": 59}, "end_point": {"row": 80, "column": 65}}, {"id": 280, "type": "primitive_type", "text": "size_t", "parent": 279, "children": [], "start_point": {"row": 80, "column": 59}, "end_point": {"row": 80, "column": 65}}, {"id": 281, "type": "number_literal", "text": "0", "parent": 278, "children": [], "start_point": {"row": 80, "column": 66}, "end_point": {"row": 80, "column": 67}}, {"id": 282, "type": "declaration", "text": "char* errbuf = (char*)malloc(errbuf_size*sizeof(char));", "parent": 248, "children": [283, 284], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 56}}, {"id": 283, "type": "primitive_type", "text": "char", "parent": 282, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 284, "type": "init_declarator", "text": "* errbuf = (char*)malloc(errbuf_size*sizeof(char))", "parent": 282, "children": [285, 288, 289], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 55}}, {"id": 285, "type": "pointer_declarator", "text": "* errbuf", "parent": 284, "children": [286, 287], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 13}}, {"id": 286, "type": "*", "text": "*", "parent": 285, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 6}}, {"id": 287, "type": "identifier", "text": "errbuf", "parent": 285, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 13}}, {"id": 288, "type": "=", "text": "=", "parent": 284, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 15}}, {"id": 289, "type": "cast_expression", "text": "(char*)malloc(errbuf_size*sizeof(char))", "parent": 284, "children": [290, 294], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 55}}, {"id": 290, "type": "type_descriptor", "text": "char*", "parent": 289, "children": [291, 292], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 22}}, {"id": 291, "type": "primitive_type", "text": "char", "parent": 290, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 21}}, {"id": 292, "type": "abstract_pointer_declarator", "text": "*", "parent": 290, "children": [293], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 22}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 22}}, {"id": 294, "type": "call_expression", "text": "malloc(errbuf_size*sizeof(char))", "parent": 289, "children": [295, 296], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 55}}, {"id": 295, "type": "identifier", "text": "malloc", "parent": 294, "children": [], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 29}}, {"id": 296, "type": "argument_list", "text": "(errbuf_size*sizeof(char))", "parent": 294, "children": [297], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 55}}, {"id": 297, "type": "binary_expression", "text": "errbuf_size*sizeof(char)", "parent": 296, "children": [298, 299, 300], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 54}}, {"id": 298, "type": "identifier", "text": "errbuf_size", "parent": 297, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 41}}, {"id": 299, "type": "*", "text": "*", "parent": 297, "children": [], "start_point": {"row": 81, "column": 41}, "end_point": {"row": 81, "column": 42}}, {"id": 300, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 297, "children": [301], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 54}}, {"id": 301, "type": "type_descriptor", "text": "char", "parent": 300, "children": [302], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 53}}, {"id": 302, "type": "primitive_type", "text": "char", "parent": 301, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 53}}, {"id": 303, "type": "call_expression", "text": "regerror(error, regex, errbuf, errbuf_size)", "parent": 248, "children": [304, 305], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 44}}, {"id": 304, "type": "identifier", "text": "regerror", "parent": 303, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 9}}, {"id": 305, "type": "argument_list", "text": "(error, regex, errbuf, errbuf_size)", "parent": 303, "children": [306, 307, 308, 309], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 44}}, {"id": 306, "type": "identifier", "text": "error", "parent": 305, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 15}}, {"id": 307, "type": "identifier", "text": "regex", "parent": 305, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 22}}, {"id": 308, "type": "identifier", "text": "errbuf", "parent": 305, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 30}}, {"id": 309, "type": "identifier", "text": "errbuf_size", "parent": 305, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 43}}, {"id": 310, "type": "call_expression", "text": "printf(\"ERROR: %s\\n\", errbuf)", "parent": 248, "children": [311, 312], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 30}}, {"id": 311, "type": "identifier", "text": "printf", "parent": 310, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 7}}, {"id": 312, "type": "argument_list", "text": "(\"ERROR: %s\\n\", errbuf)", "parent": 310, "children": [313, 315], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 30}}, {"id": 313, "type": "string_literal", "text": "\"ERROR: %s\\n\"", "parent": 312, "children": [314], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 21}}, {"id": 314, "type": "escape_sequence", "text": "\\n", "parent": 313, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 20}}, {"id": 315, "type": "identifier", "text": "errbuf", "parent": 312, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 29}}, {"id": 316, "type": "function_definition", "text": "char* get_match_string(char* cmdline, int* index, regmatch_t match[1]) {\n\tint start = match[0].rm_so;\n\tint end = match[0].rm_eo;\n\tregmatch_t wmatch[1];\n\tint error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);\n\tif (error) {\n\t\tprint_token_error(error, &whitespace);\n\t} else {\n\t\tstart += wmatch[0].rm_eo;\n\t}\t\n\treturn strndup(&cmdline[*index + start], end - start);\n}", "parent": null, "children": [317, 318], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 106, "column": 1}}, {"id": 317, "type": "primitive_type", "text": "char", "parent": 316, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 4}}, {"id": 318, "type": "pointer_declarator", "text": "* get_match_string(char* cmdline, int* index, regmatch_t match[1])", "parent": 316, "children": [319, 320], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 70}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 320, "type": "function_declarator", "text": "get_match_string(char* cmdline, int* index, regmatch_t match[1])", "parent": 318, "children": [321, 322], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 70}}, {"id": 321, "type": "identifier", "text": "get_match_string", "parent": 320, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 22}}, {"id": 322, "type": "parameter_list", "text": "(char* cmdline, int* index, regmatch_t match[1])", "parent": 320, "children": [323, 328, 333], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 70}}, {"id": 323, "type": "parameter_declaration", "text": "char* cmdline", "parent": 322, "children": [324, 325], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 36}}, {"id": 324, "type": "primitive_type", "text": "char", "parent": 323, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 27}}, {"id": 325, "type": "pointer_declarator", "text": "* cmdline", "parent": 323, "children": [326, 327], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 36}}, {"id": 326, "type": "*", "text": "*", "parent": 325, "children": [], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 28}}, {"id": 327, "type": "identifier", "text": "cmdline", "parent": 325, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 36}}, {"id": 328, "type": "parameter_declaration", "text": "int* index", "parent": 322, "children": [329, 330], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 48}}, {"id": 329, "type": "primitive_type", "text": "int", "parent": 328, "children": [], "start_point": {"row": 95, "column": 38}, "end_point": {"row": 95, "column": 41}}, {"id": 330, "type": "pointer_declarator", "text": "* index", "parent": 328, "children": [331, 332], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 48}}, {"id": 331, "type": "*", "text": "*", "parent": 330, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 42}}, {"id": 332, "type": "identifier", "text": "index", "parent": 330, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 48}}, {"id": 333, "type": "parameter_declaration", "text": "regmatch_t match[1]", "parent": 322, "children": [334, 335], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 69}}, {"id": 334, "type": "type_identifier", "text": "regmatch_t", "parent": 333, "children": [], "start_point": {"row": 95, "column": 50}, "end_point": {"row": 95, "column": 60}}, {"id": 335, "type": "array_declarator", "text": "match[1]", "parent": 333, "children": [336, 337], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 69}}, {"id": 336, "type": "identifier", "text": "match", "parent": 335, "children": [], "start_point": {"row": 95, "column": 61}, "end_point": {"row": 95, "column": 66}}, {"id": 337, "type": "number_literal", "text": "1", "parent": 335, "children": [], "start_point": {"row": 95, "column": 67}, "end_point": {"row": 95, "column": 68}}, {"id": 338, "type": "declaration", "text": "int start = match[0].rm_so;", "parent": 316, "children": [339, 340], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 28}}, {"id": 339, "type": "primitive_type", "text": "int", "parent": 338, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 340, "type": "init_declarator", "text": "start = match[0].rm_so", "parent": 338, "children": [341, 342, 343], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 27}}, {"id": 341, "type": "identifier", "text": "start", "parent": 340, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 10}}, {"id": 342, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 12}}, {"id": 343, "type": "field_expression", "text": "match[0].rm_so", "parent": 340, "children": [344, 347], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 27}}, {"id": 344, "type": "subscript_expression", "text": "match[0]", "parent": 343, "children": [345, 346], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 21}}, {"id": 345, "type": "identifier", "text": "match", "parent": 344, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 18}}, {"id": 346, "type": "number_literal", "text": "0", "parent": 344, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 347, "type": "field_identifier", "text": "rm_so", "parent": 343, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 27}}, {"id": 348, "type": "declaration", "text": "int end = match[0].rm_eo;", "parent": 316, "children": [349, 350], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 26}}, {"id": 349, "type": "primitive_type", "text": "int", "parent": 348, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 4}}, {"id": 350, "type": "init_declarator", "text": "end = match[0].rm_eo", "parent": 348, "children": [351, 352], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 25}}, {"id": 351, "type": "=", "text": "=", "parent": 350, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 352, "type": "field_expression", "text": "match[0].rm_eo", "parent": 350, "children": [353, 356], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 25}}, {"id": 353, "type": "subscript_expression", "text": "match[0]", "parent": 352, "children": [354, 355], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 19}}, {"id": 354, "type": "identifier", "text": "match", "parent": 353, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 16}}, {"id": 355, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 18}}, {"id": 356, "type": "field_identifier", "text": "rm_eo", "parent": 352, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 25}}, {"id": 357, "type": "declaration", "text": "regmatch_t wmatch[1];", "parent": 316, "children": [358, 359], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 22}}, {"id": 358, "type": "type_identifier", "text": "regmatch_t", "parent": 357, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 11}}, {"id": 359, "type": "array_declarator", "text": "wmatch[1]", "parent": 357, "children": [360, 361], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 21}}, {"id": 360, "type": "identifier", "text": "wmatch", "parent": 359, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 18}}, {"id": 361, "type": "number_literal", "text": "1", "parent": 359, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 20}}, {"id": 362, "type": "declaration", "text": "int error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);", "parent": 316, "children": [363, 364], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 74}}, {"id": 363, "type": "primitive_type", "text": "int", "parent": 362, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 4}}, {"id": 364, "type": "init_declarator", "text": "error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0)", "parent": 362, "children": [365, 366, 367], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 73}}, {"id": 365, "type": "identifier", "text": "error", "parent": 364, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 10}}, {"id": 366, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 12}}, {"id": 367, "type": "call_expression", "text": "regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0)", "parent": 364, "children": [368, 369], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 73}}, {"id": 368, "type": "identifier", "text": "regexec", "parent": 367, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 20}}, {"id": 369, "type": "argument_list", "text": "(&whitespace, &cmdline[*index + start], 1, wmatch, 0)", "parent": 367, "children": [370, 372, 381, 382, 383], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 73}}, {"id": 370, "type": "pointer_expression", "text": "&whitespace", "parent": 369, "children": [371], "start_point": {"row": 99, "column": 21}, "end_point": {"row": 99, "column": 32}}, {"id": 371, "type": "identifier", "text": "whitespace", "parent": 370, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 32}}, {"id": 372, "type": "pointer_expression", "text": "&cmdline[*index + start]", "parent": 369, "children": [373], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 58}}, {"id": 373, "type": "subscript_expression", "text": "cmdline[*index + start]", "parent": 372, "children": [374, 375], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 58}}, {"id": 374, "type": "identifier", "text": "cmdline", "parent": 373, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 42}}, {"id": 375, "type": "binary_expression", "text": "*index + start", "parent": 373, "children": [376, 379, 380], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 57}}, {"id": 376, "type": "pointer_expression", "text": "*index", "parent": 375, "children": [377, 378], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 49}}, {"id": 377, "type": "*", "text": "*", "parent": 376, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 44}}, {"id": 378, "type": "identifier", "text": "index", "parent": 376, "children": [], "start_point": {"row": 99, "column": 44}, "end_point": {"row": 99, "column": 49}}, {"id": 379, "type": "+", "text": "+", "parent": 375, "children": [], "start_point": {"row": 99, "column": 50}, "end_point": {"row": 99, "column": 51}}, {"id": 380, "type": "identifier", "text": "start", "parent": 375, "children": [], "start_point": {"row": 99, "column": 52}, "end_point": {"row": 99, "column": 57}}, {"id": 381, "type": "number_literal", "text": "1", "parent": 369, "children": [], "start_point": {"row": 99, "column": 60}, "end_point": {"row": 99, "column": 61}}, {"id": 382, "type": "identifier", "text": "wmatch", "parent": 369, "children": [], "start_point": {"row": 99, "column": 63}, "end_point": {"row": 99, "column": 69}}, {"id": 383, "type": "number_literal", "text": "0", "parent": 369, "children": [], "start_point": {"row": 99, "column": 71}, "end_point": {"row": 99, "column": 72}}, {"id": 384, "type": "if_statement", "text": "if (error) {\n\t\tprint_token_error(error, &whitespace);\n\t} else {\n\t\tstart += wmatch[0].rm_eo;\n\t}", "parent": 316, "children": [385, 393], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 104, "column": 2}}, {"id": 385, "type": "parenthesized_expression", "text": "(error)", "parent": 384, "children": [386], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 11}}, {"id": 386, "type": "identifier", "text": "error", "parent": 385, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 10}}, {"id": 387, "type": "call_expression", "text": "print_token_error(error, &whitespace)", "parent": 384, "children": [388, 389], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 39}}, {"id": 388, "type": "identifier", "text": "print_token_error", "parent": 387, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 19}}, {"id": 389, "type": "argument_list", "text": "(error, &whitespace)", "parent": 387, "children": [390, 391], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 39}}, {"id": 390, "type": "identifier", "text": "error", "parent": 389, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 25}}, {"id": 391, "type": "pointer_expression", "text": "&whitespace", "parent": 389, "children": [392], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 38}}, {"id": 392, "type": "identifier", "text": "whitespace", "parent": 391, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 38}}, {"id": 393, "type": "else_clause", "text": "else {\n\t\tstart += wmatch[0].rm_eo;\n\t}", "parent": 384, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 104, "column": 2}}, {"id": 394, "type": "assignment_expression", "text": "start += wmatch[0].rm_eo", "parent": 393, "children": [395, 396, 397], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 26}}, {"id": 395, "type": "identifier", "text": "start", "parent": 394, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 7}}, {"id": 396, "type": "+=", "text": "+=", "parent": 394, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 10}}, {"id": 397, "type": "field_expression", "text": "wmatch[0].rm_eo", "parent": 394, "children": [398, 401], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 26}}, {"id": 398, "type": "subscript_expression", "text": "wmatch[0]", "parent": 397, "children": [399, 400], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 20}}, {"id": 399, "type": "identifier", "text": "wmatch", "parent": 398, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 17}}, {"id": 400, "type": "number_literal", "text": "0", "parent": 398, "children": [], "start_point": {"row": 103, "column": 18}, "end_point": {"row": 103, "column": 19}}, {"id": 401, "type": "field_identifier", "text": "rm_eo", "parent": 397, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 26}}, {"id": 402, "type": "return_statement", "text": "return strndup(&cmdline[*index + start], end - start);", "parent": 316, "children": [403], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 55}}, {"id": 403, "type": "call_expression", "text": "strndup(&cmdline[*index + start], end - start)", "parent": 402, "children": [404, 405], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 54}}, {"id": 404, "type": "identifier", "text": "strndup", "parent": 403, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 15}}, {"id": 405, "type": "argument_list", "text": "(&cmdline[*index + start], end - start)", "parent": 403, "children": [406, 415], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 54}}, {"id": 406, "type": "pointer_expression", "text": "&cmdline[*index + start]", "parent": 405, "children": [407], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 40}}, {"id": 407, "type": "subscript_expression", "text": "cmdline[*index + start]", "parent": 406, "children": [408, 409], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 40}}, {"id": 408, "type": "identifier", "text": "cmdline", "parent": 407, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 24}}, {"id": 409, "type": "binary_expression", "text": "*index + start", "parent": 407, "children": [410, 413, 414], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 39}}, {"id": 410, "type": "pointer_expression", "text": "*index", "parent": 409, "children": [411, 412], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 31}}, {"id": 411, "type": "*", "text": "*", "parent": 410, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 26}}, {"id": 412, "type": "identifier", "text": "index", "parent": 410, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 31}}, {"id": 413, "type": "+", "text": "+", "parent": 409, "children": [], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 33}}, {"id": 414, "type": "identifier", "text": "start", "parent": 409, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 39}}, {"id": 415, "type": "binary_expression", "text": "end - start", "parent": 405, "children": [416, 417], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 53}}, {"id": 416, "type": "-", "text": "-", "parent": 415, "children": [], "start_point": {"row": 105, "column": 46}, "end_point": {"row": 105, "column": 47}}, {"id": 417, "type": "identifier", "text": "start", "parent": 415, "children": [], "start_point": {"row": 105, "column": 48}, "end_point": {"row": 105, "column": 53}}, {"id": 418, "type": "function_definition", "text": "int consume(regex_t* token, char* cmdline, int* index, char** output) {\n\tregmatch_t match[1];\n\tint error = regexec(token, &cmdline[*index], 1, match, 0);\n\tswitch (error) {\n\t\tcase 0:\n\t\t\t// Set output if given\n\t\t\tif (output) {\n\t\t\t\t*output = get_match_string(cmdline, index, match);\n\t\t\t}\n\n\t\t\t// Add end offset to index\n\t\t\t*index += match[0].rm_eo;\n\t\t\tbreak;\n\t\tcase REG_NOMATCH:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Handle token error\n\t\t\tprint_token_error(error, token);\n\t\t\tbreak;\n\t}\n\treturn error;\n}", "parent": null, "children": [419, 420], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 419, "type": "primitive_type", "text": "int", "parent": 418, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 3}}, {"id": 420, "type": "function_declarator", "text": "consume(regex_t* token, char* cmdline, int* index, char** output)", "parent": 418, "children": [421, 422], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 69}}, {"id": 421, "type": "identifier", "text": "consume", "parent": 420, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 11}}, {"id": 422, "type": "parameter_list", "text": "(regex_t* token, char* cmdline, int* index, char** output)", "parent": 420, "children": [423, 428, 433, 438], "start_point": {"row": 120, "column": 11}, "end_point": {"row": 120, "column": 69}}, {"id": 423, "type": "parameter_declaration", "text": "regex_t* token", "parent": 422, "children": [424, 425], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 26}}, {"id": 424, "type": "type_identifier", "text": "regex_t", "parent": 423, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 19}}, {"id": 425, "type": "pointer_declarator", "text": "* token", "parent": 423, "children": [426, 427], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 26}}, {"id": 426, "type": "*", "text": "*", "parent": 425, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 20}}, {"id": 427, "type": "identifier", "text": "token", "parent": 425, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 26}}, {"id": 428, "type": "parameter_declaration", "text": "char* cmdline", "parent": 422, "children": [429, 430], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 41}}, {"id": 429, "type": "primitive_type", "text": "char", "parent": 428, "children": [], "start_point": {"row": 120, "column": 28}, "end_point": {"row": 120, "column": 32}}, {"id": 430, "type": "pointer_declarator", "text": "* cmdline", "parent": 428, "children": [431, 432], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 41}}, {"id": 431, "type": "*", "text": "*", "parent": 430, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 33}}, {"id": 432, "type": "identifier", "text": "cmdline", "parent": 430, "children": [], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 41}}, {"id": 433, "type": "parameter_declaration", "text": "int* index", "parent": 422, "children": [434, 435], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 53}}, {"id": 434, "type": "primitive_type", "text": "int", "parent": 433, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 46}}, {"id": 435, "type": "pointer_declarator", "text": "* index", "parent": 433, "children": [436, 437], "start_point": {"row": 120, "column": 46}, "end_point": {"row": 120, "column": 53}}, {"id": 436, "type": "*", "text": "*", "parent": 435, "children": [], "start_point": {"row": 120, "column": 46}, "end_point": {"row": 120, "column": 47}}, {"id": 437, "type": "identifier", "text": "index", "parent": 435, "children": [], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 53}}, {"id": 438, "type": "parameter_declaration", "text": "char** output", "parent": 422, "children": [439, 440], "start_point": {"row": 120, "column": 55}, "end_point": {"row": 120, "column": 68}}, {"id": 439, "type": "primitive_type", "text": "char", "parent": 438, "children": [], "start_point": {"row": 120, "column": 55}, "end_point": {"row": 120, "column": 59}}, {"id": 440, "type": "pointer_declarator", "text": "** output", "parent": 438, "children": [441, 442], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 68}}, {"id": 441, "type": "*", "text": "*", "parent": 440, "children": [], "start_point": {"row": 120, "column": 59}, "end_point": {"row": 120, "column": 60}}, {"id": 442, "type": "pointer_declarator", "text": "* output", "parent": 440, "children": [443, 444], "start_point": {"row": 120, "column": 60}, "end_point": {"row": 120, "column": 68}}, {"id": 443, "type": "*", "text": "*", "parent": 442, "children": [], "start_point": {"row": 120, "column": 60}, "end_point": {"row": 120, "column": 61}}, {"id": 444, "type": "identifier", "text": "output", "parent": 442, "children": [], "start_point": {"row": 120, "column": 62}, "end_point": {"row": 120, "column": 68}}, {"id": 445, "type": "declaration", "text": "regmatch_t match[1];", "parent": 418, "children": [446, 447], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 21}}, {"id": 446, "type": "type_identifier", "text": "regmatch_t", "parent": 445, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 11}}, {"id": 447, "type": "array_declarator", "text": "match[1]", "parent": 445, "children": [448, 449], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 20}}, {"id": 448, "type": "identifier", "text": "match", "parent": 447, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 17}}, {"id": 449, "type": "number_literal", "text": "1", "parent": 447, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 19}}, {"id": 450, "type": "declaration", "text": "int error = regexec(token, &cmdline[*index], 1, match, 0);", "parent": 418, "children": [451, 452], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 59}}, {"id": 451, "type": "primitive_type", "text": "int", "parent": 450, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 4}}, {"id": 452, "type": "init_declarator", "text": "error = regexec(token, &cmdline[*index], 1, match, 0)", "parent": 450, "children": [453, 454, 455], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 58}}, {"id": 453, "type": "identifier", "text": "error", "parent": 452, "children": [], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 10}}, {"id": 454, "type": "=", "text": "=", "parent": 452, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 12}}, {"id": 455, "type": "call_expression", "text": "regexec(token, &cmdline[*index], 1, match, 0)", "parent": 452, "children": [456, 457], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 58}}, {"id": 456, "type": "identifier", "text": "regexec", "parent": 455, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 20}}, {"id": 457, "type": "argument_list", "text": "(token, &cmdline[*index], 1, match, 0)", "parent": 455, "children": [458, 459, 465, 466, 467], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 58}}, {"id": 458, "type": "identifier", "text": "token", "parent": 457, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 26}}, {"id": 459, "type": "pointer_expression", "text": "&cmdline[*index]", "parent": 457, "children": [460], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 44}}, {"id": 460, "type": "subscript_expression", "text": "cmdline[*index]", "parent": 459, "children": [461, 462], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 122, "column": 44}}, {"id": 461, "type": "identifier", "text": "cmdline", "parent": 460, "children": [], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 122, "column": 36}}, {"id": 462, "type": "pointer_expression", "text": "*index", "parent": 460, "children": [463, 464], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 43}}, {"id": 463, "type": "*", "text": "*", "parent": 462, "children": [], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 38}}, {"id": 464, "type": "identifier", "text": "index", "parent": 462, "children": [], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 43}}, {"id": 465, "type": "number_literal", "text": "1", "parent": 457, "children": [], "start_point": {"row": 122, "column": 46}, "end_point": {"row": 122, "column": 47}}, {"id": 466, "type": "identifier", "text": "match", "parent": 457, "children": [], "start_point": {"row": 122, "column": 49}, "end_point": {"row": 122, "column": 54}}, {"id": 467, "type": "number_literal", "text": "0", "parent": 457, "children": [], "start_point": {"row": 122, "column": 56}, "end_point": {"row": 122, "column": 57}}, {"id": 468, "type": "switch_statement", "text": "switch (error) {\n\t\tcase 0:\n\t\t\t// Set output if given\n\t\t\tif (output) {\n\t\t\t\t*output = get_match_string(cmdline, index, match);\n\t\t\t}\n\n\t\t\t// Add end offset to index\n\t\t\t*index += match[0].rm_eo;\n\t\t\tbreak;\n\t\tcase REG_NOMATCH:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Handle token error\n\t\t\tprint_token_error(error, token);\n\t\t\tbreak;\n\t}", "parent": 418, "children": [469, 470], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 139, "column": 2}}, {"id": 469, "type": "switch", "text": "switch", "parent": 468, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 7}}, {"id": 470, "type": "parenthesized_expression", "text": "(error)", "parent": 468, "children": [471], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 15}}, {"id": 471, "type": "identifier", "text": "error", "parent": 470, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 14}}, {"id": 472, "type": "case_statement", "text": "case 0:\n\t\t\t// Set output if given\n\t\t\tif (output) {\n\t\t\t\t*output = get_match_string(cmdline, index, match);\n\t\t\t}\n\n\t\t\t// Add end offset to index\n\t\t\t*index += match[0].rm_eo;\n\t\t\tbreak;", "parent": 468, "children": [473, 474, 475, 499], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 132, "column": 9}}, {"id": 473, "type": "case", "text": "case", "parent": 472, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 6}}, {"id": 474, "type": "number_literal", "text": "0", "parent": 472, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 8}}, {"id": 475, "type": "if_statement", "text": "if (output) {\n\t\t\t\t*output = get_match_string(cmdline, index, match);\n\t\t\t}", "parent": 472, "children": [476], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 128, "column": 4}}, {"id": 476, "type": "parenthesized_expression", "text": "(output)", "parent": 475, "children": [477], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 14}}, {"id": 477, "type": "identifier", "text": "output", "parent": 476, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 478, "type": "assignment_expression", "text": "*output = get_match_string(cmdline, index, match)", "parent": 475, "children": [479, 482, 483], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 53}}, {"id": 479, "type": "pointer_expression", "text": "*output", "parent": 478, "children": [480, 481], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 11}}, {"id": 480, "type": "*", "text": "*", "parent": 479, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 5}}, {"id": 481, "type": "identifier", "text": "output", "parent": 479, "children": [], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 11}}, {"id": 482, "type": "=", "text": "=", "parent": 478, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 13}}, {"id": 483, "type": "call_expression", "text": "get_match_string(cmdline, index, match)", "parent": 478, "children": [484, 485], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 53}}, {"id": 484, "type": "identifier", "text": "get_match_string", "parent": 483, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 30}}, {"id": 485, "type": "argument_list", "text": "(cmdline, index, match)", "parent": 483, "children": [486, 487, 488], "start_point": {"row": 127, "column": 30}, "end_point": {"row": 127, "column": 53}}, {"id": 486, "type": "identifier", "text": "cmdline", "parent": 485, "children": [], "start_point": {"row": 127, "column": 31}, "end_point": {"row": 127, "column": 38}}, {"id": 487, "type": "identifier", "text": "index", "parent": 485, "children": [], "start_point": {"row": 127, "column": 40}, "end_point": {"row": 127, "column": 45}}, {"id": 488, "type": "identifier", "text": "match", "parent": 485, "children": [], "start_point": {"row": 127, "column": 47}, "end_point": {"row": 127, "column": 52}}, {"id": 489, "type": "assignment_expression", "text": "*index += match[0].rm_eo", "parent": 472, "children": [490, 493, 494], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 27}}, {"id": 490, "type": "pointer_expression", "text": "*index", "parent": 489, "children": [491, 492], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 9}}, {"id": 491, "type": "*", "text": "*", "parent": 490, "children": [], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 4}}, {"id": 492, "type": "identifier", "text": "index", "parent": 490, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 9}}, {"id": 493, "type": "+=", "text": "+=", "parent": 489, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 12}}, {"id": 494, "type": "field_expression", "text": "match[0].rm_eo", "parent": 489, "children": [495, 498], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 27}}, {"id": 495, "type": "subscript_expression", "text": "match[0]", "parent": 494, "children": [496, 497], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 21}}, {"id": 496, "type": "identifier", "text": "match", "parent": 495, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 18}}, {"id": 497, "type": "number_literal", "text": "0", "parent": 495, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 20}}, {"id": 498, "type": "field_identifier", "text": "rm_eo", "parent": 494, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 27}}, {"id": 499, "type": "break_statement", "text": "break;", "parent": 472, "children": [500], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 9}}, {"id": 500, "type": "break", "text": "break", "parent": 499, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 8}}, {"id": 501, "type": "case_statement", "text": "case REG_NOMATCH:\n\t\t\tbreak;", "parent": 468, "children": [502, 503, 504], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 134, "column": 9}}, {"id": 502, "type": "case", "text": "case", "parent": 501, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 6}}, {"id": 503, "type": "identifier", "text": "REG_NOMATCH", "parent": 501, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 18}}, {"id": 504, "type": "break_statement", "text": "break;", "parent": 501, "children": [505], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 9}}, {"id": 505, "type": "break", "text": "break", "parent": 504, "children": [], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 8}}, {"id": 506, "type": "case_statement", "text": "default:\n\t\t\t// Handle token error\n\t\t\tprint_token_error(error, token);\n\t\t\tbreak;", "parent": 468, "children": [507, 513], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 138, "column": 9}}, {"id": 507, "type": "default", "text": "default", "parent": 506, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 9}}, {"id": 508, "type": "call_expression", "text": "print_token_error(error, token)", "parent": 506, "children": [509, 510], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 34}}, {"id": 509, "type": "identifier", "text": "print_token_error", "parent": 508, "children": [], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 20}}, {"id": 510, "type": "argument_list", "text": "(error, token)", "parent": 508, "children": [511, 512], "start_point": {"row": 137, "column": 20}, "end_point": {"row": 137, "column": 34}}, {"id": 511, "type": "identifier", "text": "error", "parent": 510, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 26}}, {"id": 512, "type": "identifier", "text": "token", "parent": 510, "children": [], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 33}}, {"id": 513, "type": "break_statement", "text": "break;", "parent": 506, "children": [514], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 9}}, {"id": 514, "type": "break", "text": "break", "parent": 513, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 8}}, {"id": 515, "type": "return_statement", "text": "return error;", "parent": 418, "children": [516], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 14}}, {"id": 516, "type": "identifier", "text": "error", "parent": 515, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 13}}, {"id": 517, "type": "function_definition", "text": "int lookahead(regex_t* token, char* cmdline, int* index) {\n\tint error = regexec(&arg, &cmdline[*index], 0, NULL, 0);\n\tif (error != 0 && error != REG_NOMATCH) {\n\t\tprint_token_error(error, token);\n\t}\n\treturn error;\n}", "parent": null, "children": [518, 519], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 158, "column": 1}}, {"id": 518, "type": "primitive_type", "text": "int", "parent": 517, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 3}}, {"id": 519, "type": "function_declarator", "text": "lookahead(regex_t* token, char* cmdline, int* index)", "parent": 517, "children": [520, 521], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 56}}, {"id": 520, "type": "identifier", "text": "lookahead", "parent": 519, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 13}}, {"id": 521, "type": "parameter_list", "text": "(regex_t* token, char* cmdline, int* index)", "parent": 519, "children": [522, 527, 532], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 56}}, {"id": 522, "type": "parameter_declaration", "text": "regex_t* token", "parent": 521, "children": [523, 524], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 28}}, {"id": 523, "type": "type_identifier", "text": "regex_t", "parent": 522, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 21}}, {"id": 524, "type": "pointer_declarator", "text": "* token", "parent": 522, "children": [525, 526], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 28}}, {"id": 525, "type": "*", "text": "*", "parent": 524, "children": [], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 22}}, {"id": 526, "type": "identifier", "text": "token", "parent": 524, "children": [], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 28}}, {"id": 527, "type": "parameter_declaration", "text": "char* cmdline", "parent": 521, "children": [528, 529], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 43}}, {"id": 528, "type": "primitive_type", "text": "char", "parent": 527, "children": [], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 34}}, {"id": 529, "type": "pointer_declarator", "text": "* cmdline", "parent": 527, "children": [530, 531], "start_point": {"row": 152, "column": 34}, "end_point": {"row": 152, "column": 43}}, {"id": 530, "type": "*", "text": "*", "parent": 529, "children": [], "start_point": {"row": 152, "column": 34}, "end_point": {"row": 152, "column": 35}}, {"id": 531, "type": "identifier", "text": "cmdline", "parent": 529, "children": [], "start_point": {"row": 152, "column": 36}, "end_point": {"row": 152, "column": 43}}, {"id": 532, "type": "parameter_declaration", "text": "int* index", "parent": 521, "children": [533, 534], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 55}}, {"id": 533, "type": "primitive_type", "text": "int", "parent": 532, "children": [], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 48}}, {"id": 534, "type": "pointer_declarator", "text": "* index", "parent": 532, "children": [535, 536], "start_point": {"row": 152, "column": 48}, "end_point": {"row": 152, "column": 55}}, {"id": 535, "type": "*", "text": "*", "parent": 534, "children": [], "start_point": {"row": 152, "column": 48}, "end_point": {"row": 152, "column": 49}}, {"id": 536, "type": "identifier", "text": "index", "parent": 534, "children": [], "start_point": {"row": 152, "column": 50}, "end_point": {"row": 152, "column": 55}}, {"id": 537, "type": "declaration", "text": "int error = regexec(&arg, &cmdline[*index], 0, NULL, 0);", "parent": 517, "children": [538, 539], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 57}}, {"id": 538, "type": "primitive_type", "text": "int", "parent": 537, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 4}}, {"id": 539, "type": "init_declarator", "text": "error = regexec(&arg, &cmdline[*index], 0, NULL, 0)", "parent": 537, "children": [540, 541, 542], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 56}}, {"id": 540, "type": "identifier", "text": "error", "parent": 539, "children": [], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 10}}, {"id": 541, "type": "=", "text": "=", "parent": 539, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 12}}, {"id": 542, "type": "call_expression", "text": "regexec(&arg, &cmdline[*index], 0, NULL, 0)", "parent": 539, "children": [543, 544], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 56}}, {"id": 543, "type": "identifier", "text": "regexec", "parent": 542, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 20}}, {"id": 544, "type": "argument_list", "text": "(&arg, &cmdline[*index], 0, NULL, 0)", "parent": 542, "children": [545, 547, 553, 554, 556], "start_point": {"row": 153, "column": 20}, "end_point": {"row": 153, "column": 56}}, {"id": 545, "type": "pointer_expression", "text": "&arg", "parent": 544, "children": [546], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 25}}, {"id": 546, "type": "identifier", "text": "arg", "parent": 545, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 25}}, {"id": 547, "type": "pointer_expression", "text": "&cmdline[*index]", "parent": 544, "children": [548], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 43}}, {"id": 548, "type": "subscript_expression", "text": "cmdline[*index]", "parent": 547, "children": [549, 550], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 43}}, {"id": 549, "type": "identifier", "text": "cmdline", "parent": 548, "children": [], "start_point": {"row": 153, "column": 28}, "end_point": {"row": 153, "column": 35}}, {"id": 550, "type": "pointer_expression", "text": "*index", "parent": 548, "children": [551, 552], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 42}}, {"id": 551, "type": "*", "text": "*", "parent": 550, "children": [], "start_point": {"row": 153, "column": 36}, "end_point": {"row": 153, "column": 37}}, {"id": 552, "type": "identifier", "text": "index", "parent": 550, "children": [], "start_point": {"row": 153, "column": 37}, "end_point": {"row": 153, "column": 42}}, {"id": 553, "type": "number_literal", "text": "0", "parent": 544, "children": [], "start_point": {"row": 153, "column": 45}, "end_point": {"row": 153, "column": 46}}, {"id": 554, "type": "null", "text": "NULL", "parent": 544, "children": [555], "start_point": {"row": 153, "column": 48}, "end_point": {"row": 153, "column": 52}}, {"id": 555, "type": "NULL", "text": "NULL", "parent": 554, "children": [], "start_point": {"row": 153, "column": 48}, "end_point": {"row": 153, "column": 52}}, {"id": 556, "type": "number_literal", "text": "0", "parent": 544, "children": [], "start_point": {"row": 153, "column": 54}, "end_point": {"row": 153, "column": 55}}, {"id": 557, "type": "if_statement", "text": "if (error != 0 && error != REG_NOMATCH) {\n\t\tprint_token_error(error, token);\n\t}", "parent": 517, "children": [558], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 156, "column": 2}}, {"id": 558, "type": "parenthesized_expression", "text": "(error != 0 && error != REG_NOMATCH)", "parent": 557, "children": [559], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 40}}, {"id": 559, "type": "binary_expression", "text": "error != 0 && error != REG_NOMATCH", "parent": 558, "children": [560, 564, 565], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 39}}, {"id": 560, "type": "binary_expression", "text": "error != 0", "parent": 559, "children": [561, 562, 563], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 15}}, {"id": 561, "type": "identifier", "text": "error", "parent": 560, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 10}}, {"id": 562, "type": "!=", "text": "!=", "parent": 560, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 13}}, {"id": 563, "type": "number_literal", "text": "0", "parent": 560, "children": [], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 15}}, {"id": 564, "type": "&&", "text": "&&", "parent": 559, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 18}}, {"id": 565, "type": "binary_expression", "text": "error != REG_NOMATCH", "parent": 559, "children": [566, 567, 568], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 39}}, {"id": 566, "type": "identifier", "text": "error", "parent": 565, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 24}}, {"id": 567, "type": "!=", "text": "!=", "parent": 565, "children": [], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 27}}, {"id": 568, "type": "identifier", "text": "REG_NOMATCH", "parent": 565, "children": [], "start_point": {"row": 154, "column": 28}, "end_point": {"row": 154, "column": 39}}, {"id": 569, "type": "call_expression", "text": "print_token_error(error, token)", "parent": 557, "children": [570, 571], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 33}}, {"id": 570, "type": "identifier", "text": "print_token_error", "parent": 569, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 19}}, {"id": 571, "type": "argument_list", "text": "(error, token)", "parent": 569, "children": [572, 573], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 33}}, {"id": 572, "type": "identifier", "text": "error", "parent": 571, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 25}}, {"id": 573, "type": "identifier", "text": "token", "parent": 571, "children": [], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 32}}, {"id": 574, "type": "return_statement", "text": "return error;", "parent": 517, "children": [575], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 14}}, {"id": 575, "type": "identifier", "text": "error", "parent": 574, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 13}}]}, "node_categories": {"declarations": {"functions": [120, 122, 193, 195, 248, 250, 316, 320, 418, 420, 517, 519], "variables": [29, 38, 48, 61, 72, 82, 91, 100, 108, 117, 253, 256, 261, 282, 323, 328, 333, 338, 348, 357, 362, 423, 428, 433, 438, 445, 450, 522, 527, 532, 537], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [18, 125, 130, 133, 137, 140, 144, 147, 151, 154, 158, 161, 165, 168, 172, 175, 179, 182, 186, 189, 198, 203, 206, 208, 211, 213, 216, 218, 221, 223, 226, 228, 231, 233, 236, 238, 241, 243, 246, 266, 271, 278, 289, 294, 297, 300, 303, 310, 343, 344, 352, 353, 367, 370, 372, 373, 375, 376, 385, 387, 391, 397, 398, 403, 406, 407, 409, 410, 415, 455, 459, 460, 462, 470, 476, 479, 483, 490, 494, 495, 508, 542, 545, 547, 548, 550, 558, 559, 560, 565, 569], "assignments": [394, 478, 489], "loops": [], "conditionals": [15, 16, 17, 19, 27, 28, 34, 43, 53, 66, 77, 87, 96, 105, 113, 118, 119, 123, 126, 131, 134, 135, 136, 138, 141, 142, 143, 145, 148, 149, 150, 152, 155, 156, 157, 159, 162, 163, 164, 166, 169, 170, 171, 173, 176, 177, 178, 180, 183, 184, 185, 187, 190, 191, 192, 196, 199, 204, 207, 209, 212, 214, 217, 219, 222, 224, 227, 229, 232, 234, 237, 239, 242, 244, 247, 251, 255, 257, 260, 264, 267, 269, 270, 287, 295, 298, 304, 306, 307, 308, 309, 311, 315, 321, 327, 332, 334, 336, 341, 345, 347, 354, 356, 358, 360, 365, 368, 371, 374, 378, 380, 382, 384, 386, 388, 390, 392, 395, 399, 401, 404, 408, 412, 414, 417, 421, 424, 427, 432, 437, 444, 446, 448, 453, 456, 458, 461, 464, 466, 468, 469, 471, 472, 473, 475, 477, 481, 484, 486, 487, 488, 492, 496, 498, 501, 502, 503, 506, 509, 511, 512, 516, 520, 523, 526, 531, 536, 540, 543, 546, 549, 552, 557, 561, 566, 568, 570, 572, 573, 575], "returns": [402, 515, 574], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 21, 36, 45, 55, 68, 79, 89, 98, 107, 115, 128, 201, 281, 313, 337, 346, 355, 361, 381, 383, 400, 449, 465, 467, 474, 497, 553, 556, 563], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 120, "universal_type": "function", "name": "tokenizer_init", "text_snippet": "void tokenizer_init() {\n\t__debug__printf(\"Initialize...\\n\");\n\tregcomp(&shell, shell_string, REG_EXTE"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "tokenizer_init()"}, {"node_id": 193, "universal_type": "function", "name": "tokenizer_deinit", "text_snippet": "void tokenizer_deinit() {\n\t__debug__printf(\"Deinitialize...\\n\");\n\tregfree(&shell);\n\tregfree(&shcmd);"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "tokenizer_deinit()"}, {"node_id": 248, "universal_type": "function", "name": "print_token_error", "text_snippet": "void print_token_error(int error, regex_t* regex) {\n\tsize_t errbuf_size = regerror(error, regex, (ch"}, {"node_id": 250, "universal_type": "function", "name": "unknown", "text_snippet": "print_token_error(int error, regex_t* regex)"}, {"node_id": 316, "universal_type": "function", "name": "start", "text_snippet": "char* get_match_string(char* cmdline, int* index, regmatch_t match[1]) {\n\tint start = match[0].rm_so"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "get_match_string(char* cmdline, int* index, regmatch_t match[1])"}, {"node_id": 418, "universal_type": "function", "name": "consume", "text_snippet": "int consume(regex_t* token, char* cmdline, int* index, char** output) {\n\tregmatch_t match[1];\n\tint e"}, {"node_id": 420, "universal_type": "function", "name": "unknown", "text_snippet": "consume(regex_t* token, char* cmdline, int* index, char** output)"}, {"node_id": 517, "universal_type": "function", "name": "lookahead", "text_snippet": "int lookahead(regex_t* token, char* cmdline, int* index) {\n\tint error = regexec(&arg, &cmdline[*inde"}, {"node_id": 519, "universal_type": "function", "name": "unknown", "text_snippet": "lookahead(regex_t* token, char* cmdline, int* index)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"tokenizer.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"debug.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdlib.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/**\n * <NAME>'s Average Shell (Akash)\n *\n * A totally average shell program that\n * is an acronym and only coincidentally\n * also the name of a man\n *\n * Author: <NAME>\n * Created: 3 - 24 - 2019\n */\n#include \"tokenizer.h\"\n#include \"debug.h\"\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n// Debug function\n#ifdef DEBUG_PARSE_TOKENIZER\nDEBUG_ON(\"\\e[35m[parse:tokenizer]\\e[0m\")\n#else\nDEBUG_OFF\n#endif\n\n// Regex strings\nconst char* shell_string = \"^\\\\s*!\";\nconst char* shcmd_string = \"^\\\\s*\\\\w+\";\nconst char* file_string = \"^\\\\s*(\\\\w|[\\\\.-~])+(/(\\\\w|[\\\\.-])+)*\";\nconst char* arg_string = \"^\\\\s*[^ \\t\\\\|<>&]+\";\nconst char* pipe_string = \"^\\\\s*\\\\|\";\nconst char* file_in_string = \"^\\\\s*<\";\nconst char* file_out_string = \"^\\\\s*>\";\nconst char* background_string = \"&\";\nconst char* whitespace_string = \"^\\\\s*\";\n\n// Whitespace token\nregex_t whitespace;\n\n// ---------------------------- TOKEN SETUP ------------------------------\n\n/**\n * Initialize parser\n */\nvoid tokenizer_init() {\n\t__debug__printf(\"Initialize...\\n\");\n\tregcomp(&shell, shell_string, REG_EXTENDED);\n\tregcomp(&shcmd, shcmd_string, REG_EXTENDED);\n\tregcomp(&file, file_string, REG_EXTENDED);\n\tregcomp(&arg, arg_string, REG_EXTENDED);\n\tregcomp(&piper, pipe_string, REG_EXTENDED);\n\tregcomp(&file_in, file_in_string, REG_EXTENDED);\n\tregcomp(&file_out, file_out_string, REG_EXTENDED);\n\tregcomp(&background, background_string, REG_EXTENDED);\n\tregcomp(&whitespace, whitespace_string, REG_EXTENDED);\n}\n\n/**\n * Deinitialize parser\n */\nvoid tokenizer_deinit() {\n\t__debug__printf(\"Deinitialize...\\n\");\n\tregfree(&shell);\n\tregfree(&shcmd);\n\tregfree(&file);\n\tregfree(&arg);\n\tregfree(&piper);\n\tregfree(&file_in);\n\tregfree(&file_out);\n\tregfree(&background);\n\tregfree(&whitespace);\n}\n\n// --------------------------- TOKEN HELPERS -----------------------------\n\n/**\n * Print tokenizer error for regex\n *\n * @param error error code\n * @param regex regex causing error\n */\nvoid print_token_error(int error, regex_t* regex) {\n\tsize_t errbuf_size = regerror(error, regex, (char*)NULL, (size_t)0);\n\tchar* errbuf = (char*)malloc(errbuf_size*sizeof(char));\n\tregerror(error, regex, errbuf, errbuf_size);\n\tprintf(\"ERROR: %s\\n\", errbuf);\n}\n\n/**\n * Get match string from cmdline using match array\n * \n * @param cmdline cmdline string\n * @param index index of match\n * @param match match offset buffer\n *\n * @return matched string\n */\nchar* get_match_string(char* cmdline, int* index, regmatch_t match[1]) {\n\tint start = match[0].rm_so;\n\tint end = match[0].rm_eo;\n\tregmatch_t wmatch[1];\n\tint error = regexec(&whitespace, &cmdline[*index + start], 1, wmatch, 0);\n\tif (error) {\n\t\tprint_token_error(error, &whitespace);\n\t} else {\n\t\tstart += wmatch[0].rm_eo;\n\t}\t\n\treturn strndup(&cmdline[*index + start], end - start);\n}\n\n// -------------------------- TOKEN PARSE ----------------------------\n\n/**\n * Consume token\n * \n * @param token regex token\n * @param cmdline command input line\n * @param index starting index of input to check (updates)\n * @param output output buffer to set to token value\n *\n * @return true if token was consumed\n */\nint consume(regex_t* token, char* cmdline, int* index, char** output) {\n\tregmatch_t match[1];\n\tint error = regexec(token, &cmdline[*index], 1, match, 0);\n\tswitch (error) {\n\t\tcase 0:\n\t\t\t// Set output if given\n\t\t\tif (output) {\n\t\t\t\t*output = get_match_string(cmdline, index, match);\n\t\t\t}\n\n\t\t\t// Add end offset to index\n\t\t\t*index += match[0].rm_eo;\n\t\t\tbreak;\n\t\tcase REG_NOMATCH:\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Handle token error\n\t\t\tprint_token_error(error, token);\n\t\t\tbreak;\n\t}\n\treturn error;\n}\n\n/**\n * Lookahead for next token\n *\n * @param token token regex\n * @param cmdline command input line\n * @param index starting index of input to check (does not update)\n *\n * @return lookahead result\n */\nint lookahead(regex_t* token, char* cmdline, int* index) {\n\tint error = regexec(&arg, &cmdline[*index], 0, NULL, 0);\n\tif (error != 0 && error != REG_NOMATCH) {\n\t\tprint_token_error(error, token);\n\t}\n\treturn error;\n}\n"}
80,715
c
#ifndef __STM32F1xx_IT_H #define __STM32F1xx_IT_H #ifdef __cplusplus extern "C" { #endif void NMI_Handler(void); void HardFault_Handler(void); void MemManage_Handler(void); void BusFault_Handler(void); void UsageFault_Handler(void); void SVC_Handler(void); void DebugMon_Handler(void); void PendSV_Handler(void); void SysTick_Handler(void); void DMA1_Channel1_IRQHandler(void); void ADC1_2_IRQHandler(void); void USB_LP_CAN1_RX0_IRQHandler(void); void EXTI15_10_IRQHandler(void); void TIM6_IRQHandler(void); #ifdef __cplusplus } #endif #endif
22.7
23
(translation_unit) "#ifndef __STM32F1xx_IT_H\n#define __STM32F1xx_IT_H\n\n#ifdef __cplusplus\n extern "C" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif \n\n" (preproc_ifdef) "#ifndef __STM32F1xx_IT_H\n#define __STM32F1xx_IT_H\n\n#ifdef __cplusplus\n extern "C" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "__STM32F1xx_IT_H" (preproc_def) "#define __STM32F1xx_IT_H\n" (#define) "#define" (identifier) "__STM32F1xx_IT_H" (preproc_ifdef) "#ifdef __cplusplus\n extern "C" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif \n\nvoid NMI_Handler(void);\n" (preproc_directive) "#endif" (preproc_arg) "void NMI_Handler(void);" (declaration) "void HardFault_Handler(void);" (primitive_type) "void" (function_declarator) "HardFault_Handler(void)" (identifier) "HardFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void MemManage_Handler(void);" (primitive_type) "void" (function_declarator) "MemManage_Handler(void)" (identifier) "MemManage_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void BusFault_Handler(void);" (primitive_type) "void" (function_declarator) "BusFault_Handler(void)" (identifier) "BusFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void UsageFault_Handler(void);" (primitive_type) "void" (function_declarator) "UsageFault_Handler(void)" (identifier) "UsageFault_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void SVC_Handler(void);" (primitive_type) "void" (function_declarator) "SVC_Handler(void)" (identifier) "SVC_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void DebugMon_Handler(void);" (primitive_type) "void" (function_declarator) "DebugMon_Handler(void)" (identifier) "DebugMon_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void PendSV_Handler(void);" (primitive_type) "void" (function_declarator) "PendSV_Handler(void)" (identifier) "PendSV_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void SysTick_Handler(void);" (primitive_type) "void" (function_declarator) "SysTick_Handler(void)" (identifier) "SysTick_Handler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void DMA1_Channel1_IRQHandler(void);" (primitive_type) "void" (function_declarator) "DMA1_Channel1_IRQHandler(void)" (identifier) "DMA1_Channel1_IRQHandler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void ADC1_2_IRQHandler(void);" (primitive_type) "void" (function_declarator) "ADC1_2_IRQHandler(void)" (identifier) "ADC1_2_IRQHandler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void USB_LP_CAN1_RX0_IRQHandler(void);" (primitive_type) "void" (function_declarator) "USB_LP_CAN1_RX0_IRQHandler(void)" (identifier) "USB_LP_CAN1_RX0_IRQHandler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void EXTI15_10_IRQHandler(void);" (primitive_type) "void" (function_declarator) "EXTI15_10_IRQHandler(void)" (identifier) "EXTI15_10_IRQHandler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void TIM6_IRQHandler(void);" (primitive_type) "void" (function_declarator) "TIM6_IRQHandler(void)" (identifier) "TIM6_IRQHandler" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif"
158
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 22.7, "nodes": 112, "errors": 0, "source_hash": "40a7aef637510fd09bf342ed8b6e5d533a80ab6677bca67d0b70dbb6962cc5c4", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __STM32F1xx_IT_H\n#define __STM32F1xx_IT_H\n\n#ifdef __cplusplus\n extern \"C\" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 111], "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": "__STM32F1xx_IT_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define __STM32F1xx_IT_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": "__STM32F1xx_IT_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\n extern \"C\" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 110], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 23, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 11}}, {"id": 12, "type": "preproc_call", "text": "#endif \n\nvoid NMI_Handler(void);\n", "parent": 9, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 14, "type": "preproc_arg", "text": "void NMI_Handler(void);", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 23}}, {"id": 15, "type": "declaration", "text": "void HardFault_Handler(void);", "parent": 9, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 29}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "HardFault_Handler(void)", "parent": 15, "children": [18, 19], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 28}}, {"id": 18, "type": "identifier", "text": "HardFault_Handler", "parent": 17, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 22}}, {"id": 19, "type": "parameter_list", "text": "(void)", "parent": 17, "children": [20], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 28}}, {"id": 20, "type": "parameter_declaration", "text": "void", "parent": 19, "children": [21], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 27}}, {"id": 21, "type": "primitive_type", "text": "void", "parent": 20, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 27}}, {"id": 22, "type": "declaration", "text": "void MemManage_Handler(void);", "parent": 9, "children": [23, 24], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 29}}, {"id": 23, "type": "primitive_type", "text": "void", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 24, "type": "function_declarator", "text": "MemManage_Handler(void)", "parent": 22, "children": [25, 26], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 28}}, {"id": 25, "type": "identifier", "text": "MemManage_Handler", "parent": 24, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 22}}, {"id": 26, "type": "parameter_list", "text": "(void)", "parent": 24, "children": [27], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 28}}, {"id": 27, "type": "parameter_declaration", "text": "void", "parent": 26, "children": [28], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 27}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 27}}, {"id": 29, "type": "declaration", "text": "void BusFault_Handler(void);", "parent": 9, "children": [30, 31], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 28}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 31, "type": "function_declarator", "text": "BusFault_Handler(void)", "parent": 29, "children": [32, 33], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 27}}, {"id": 32, "type": "identifier", "text": "BusFault_Handler", "parent": 31, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 21}}, {"id": 33, "type": "parameter_list", "text": "(void)", "parent": 31, "children": [34], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 27}}, {"id": 34, "type": "parameter_declaration", "text": "void", "parent": 33, "children": [35], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 26}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 26}}, {"id": 36, "type": "declaration", "text": "void UsageFault_Handler(void);", "parent": 9, "children": [37, 38], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 30}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 38, "type": "function_declarator", "text": "UsageFault_Handler(void)", "parent": 36, "children": [39, 40], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 29}}, {"id": 39, "type": "identifier", "text": "UsageFault_Handler", "parent": 38, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 23}}, {"id": 40, "type": "parameter_list", "text": "(void)", "parent": 38, "children": [41], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 41, "type": "parameter_declaration", "text": "void", "parent": 40, "children": [42], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 28}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 28}}, {"id": 43, "type": "declaration", "text": "void SVC_Handler(void);", "parent": 9, "children": [44, 45], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 23}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 45, "type": "function_declarator", "text": "SVC_Handler(void)", "parent": 43, "children": [46, 47], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 22}}, {"id": 46, "type": "identifier", "text": "SVC_Handler", "parent": 45, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 16}}, {"id": 47, "type": "parameter_list", "text": "(void)", "parent": 45, "children": [48], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 22}}, {"id": 48, "type": "parameter_declaration", "text": "void", "parent": 47, "children": [49], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 21}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 21}}, {"id": 50, "type": "declaration", "text": "void DebugMon_Handler(void);", "parent": 9, "children": [51, 52], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 28}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 52, "type": "function_declarator", "text": "DebugMon_Handler(void)", "parent": 50, "children": [53, 54], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 27}}, {"id": 53, "type": "identifier", "text": "DebugMon_Handler", "parent": 52, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 21}}, {"id": 54, "type": "parameter_list", "text": "(void)", "parent": 52, "children": [55], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 27}}, {"id": 55, "type": "parameter_declaration", "text": "void", "parent": 54, "children": [56], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 26}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 26}}, {"id": 57, "type": "declaration", "text": "void PendSV_Handler(void);", "parent": 9, "children": [58, 59], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 26}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 59, "type": "function_declarator", "text": "PendSV_Handler(void)", "parent": 57, "children": [60, 61], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 25}}, {"id": 60, "type": "identifier", "text": "PendSV_Handler", "parent": 59, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 19}}, {"id": 61, "type": "parameter_list", "text": "(void)", "parent": 59, "children": [62], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 25}}, {"id": 62, "type": "parameter_declaration", "text": "void", "parent": 61, "children": [63], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 24}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 24}}, {"id": 64, "type": "declaration", "text": "void SysTick_Handler(void);", "parent": 9, "children": [65, 66], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 27}}, {"id": 65, "type": "primitive_type", "text": "void", "parent": 64, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 66, "type": "function_declarator", "text": "SysTick_Handler(void)", "parent": 64, "children": [67, 68], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 26}}, {"id": 67, "type": "identifier", "text": "SysTick_Handler", "parent": 66, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 20}}, {"id": 68, "type": "parameter_list", "text": "(void)", "parent": 66, "children": [69], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 26}}, {"id": 69, "type": "parameter_declaration", "text": "void", "parent": 68, "children": [70], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 71, "type": "declaration", "text": "void DMA1_Channel1_IRQHandler(void);", "parent": 9, "children": [72, 73], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 36}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 73, "type": "function_declarator", "text": "DMA1_Channel1_IRQHandler(void)", "parent": 71, "children": [74, 75], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 35}}, {"id": 74, "type": "identifier", "text": "DMA1_Channel1_IRQHandler", "parent": 73, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 29}}, {"id": 75, "type": "parameter_list", "text": "(void)", "parent": 73, "children": [76], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 35}}, {"id": 76, "type": "parameter_declaration", "text": "void", "parent": 75, "children": [77], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 34}}, {"id": 77, "type": "primitive_type", "text": "void", "parent": 76, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 34}}, {"id": 78, "type": "declaration", "text": "void ADC1_2_IRQHandler(void);", "parent": 9, "children": [79, 80], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 29}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 80, "type": "function_declarator", "text": "ADC1_2_IRQHandler(void)", "parent": 78, "children": [81, 82], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 28}}, {"id": 81, "type": "identifier", "text": "ADC1_2_IRQHandler", "parent": 80, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 22}}, {"id": 82, "type": "parameter_list", "text": "(void)", "parent": 80, "children": [83], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 83, "type": "parameter_declaration", "text": "void", "parent": 82, "children": [84], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 27}}, {"id": 84, "type": "primitive_type", "text": "void", "parent": 83, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 27}}, {"id": 85, "type": "declaration", "text": "void USB_LP_CAN1_RX0_IRQHandler(void);", "parent": 9, "children": [86, 87], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 38}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 87, "type": "function_declarator", "text": "USB_LP_CAN1_RX0_IRQHandler(void)", "parent": 85, "children": [88, 89], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 37}}, {"id": 88, "type": "identifier", "text": "USB_LP_CAN1_RX0_IRQHandler", "parent": 87, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 31}}, {"id": 89, "type": "parameter_list", "text": "(void)", "parent": 87, "children": [90], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 37}}, {"id": 90, "type": "parameter_declaration", "text": "void", "parent": 89, "children": [91], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 36}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 36}}, {"id": 92, "type": "declaration", "text": "void EXTI15_10_IRQHandler(void);", "parent": 9, "children": [93, 94], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 32}}, {"id": 93, "type": "primitive_type", "text": "void", "parent": 92, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 94, "type": "function_declarator", "text": "EXTI15_10_IRQHandler(void)", "parent": 92, "children": [95, 96], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 31}}, {"id": 95, "type": "identifier", "text": "EXTI15_10_IRQHandler", "parent": 94, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 25}}, {"id": 96, "type": "parameter_list", "text": "(void)", "parent": 94, "children": [97], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 31}}, {"id": 97, "type": "parameter_declaration", "text": "void", "parent": 96, "children": [98], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 30}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 30}}, {"id": 99, "type": "declaration", "text": "void TIM6_IRQHandler(void);", "parent": 9, "children": [100, 101], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 27}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 101, "type": "function_declarator", "text": "TIM6_IRQHandler(void)", "parent": 99, "children": [102, 103], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 26}}, {"id": 102, "type": "identifier", "text": "TIM6_IRQHandler", "parent": 101, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 20}}, {"id": 103, "type": "parameter_list", "text": "(void)", "parent": 101, "children": [104], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 104, "type": "parameter_declaration", "text": "void", "parent": 103, "children": [105], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 25}}, {"id": 105, "type": "primitive_type", "text": "void", "parent": 104, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 25}}, {"id": 106, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [107, 108, 109], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 18}}, {"id": 107, "type": "#ifdef", "text": "#ifdef", "parent": 106, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 108, "type": "identifier", "text": "__cplusplus", "parent": 106, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 18}}, {"id": 109, "type": "#endif", "text": "", "parent": 106, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 18}}, {"id": 110, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 111, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17, 24, 31, 38, 45, 52, 59, 66, 73, 80, 87, 94, 101], "variables": [15, 20, 22, 27, 29, 34, 36, 41, 43, 48, 50, 55, 57, 62, 64, 69, 71, 76, 78, 83, 85, 90, 92, 97, 99, 104], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 18, 25, 32, 39, 46, 53, 60, 67, 74, 81, 88, 95, 102, 106, 107, 108, 109, 110, 111], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "HardFault_Handler(void)"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "MemManage_Handler(void)"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "BusFault_Handler(void)"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "UsageFault_Handler(void)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "SVC_Handler(void)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "DebugMon_Handler(void)"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "PendSV_Handler(void)"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "SysTick_Handler(void)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "DMA1_Channel1_IRQHandler(void)"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "ADC1_2_IRQHandler(void)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "USB_LP_CAN1_RX0_IRQHandler(void)"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "EXTI15_10_IRQHandler(void)"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "TIM6_IRQHandler(void)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef __STM32F1xx_IT_H\n#define __STM32F1xx_IT_H\n\n#ifdef __cplusplus\n extern \"C\" {\n#endif \n\nvoid NMI_Handler(void);\nvoid HardFault_Handler(void);\nvoid MemManage_Handler(void);\nvoid BusFault_Handler(void);\nvoid UsageFault_Handler(void);\nvoid SVC_Handler(void);\nvoid DebugMon_Handler(void);\nvoid PendSV_Handler(void);\nvoid SysTick_Handler(void);\nvoid DMA1_Channel1_IRQHandler(void);\nvoid ADC1_2_IRQHandler(void);\nvoid USB_LP_CAN1_RX0_IRQHandler(void);\nvoid EXTI15_10_IRQHandler(void);\nvoid TIM6_IRQHandler(void);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif \n\n"}
80,716
c
// // Created by Jihun on 6/24/2020. // #ifndef CPEWPEW_JIHUN_41_H #define CPEWPEW_JIHUN_41_H class Jihun_41 { public: Jihun_41(); // ~ is the deconstructor ~Jihun_41(); }; #endif //CPEWPEW_JIHUN_41_H
12.76
17
(translation_unit) "// \n// Created by Jihun on 6/24/2020. \n// \n \n#ifndef CPEWPEW_JIHUN_41_H \n#define CPEWPEW_JIHUN_41_H \n \n \nclass Jihun_41 { \npublic: \n Jihun_41(); \n // ~ is the deconstructor \n ~Jihun_41(); \n}; \n \n \n#endif //CPEWPEW_JIHUN_41_H \n" (comment) "// " (comment) "// Created by Jihun on 6/24/2020. " (comment) "// " (preproc_ifdef) "#ifndef CPEWPEW_JIHUN_41_H \n#define CPEWPEW_JIHUN_41_H \n \n \nclass Jihun_41 { \npublic: \n Jihun_41(); \n // ~ is the deconstructor \n ~Jihun_41(); \n}; \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "CPEWPEW_JIHUN_41_H" (preproc_def) "#define CPEWPEW_JIHUN_41_H \n" (#define) "#define" (identifier) "CPEWPEW_JIHUN_41_H" (function_definition) "class Jihun_41 { \npublic: \n Jihun_41(); \n // ~ is the deconstructor \n ~Jihun_41(); \n}" (type_identifier) "class" (identifier) "Jihun_41" (compound_statement) "{ \npublic: \n Jihun_41(); \n // ~ is the deconstructor \n ~Jihun_41(); \n}" ({) "{" (labeled_statement) "public: \n Jihun_41();" (statement_identifier) "public" (:) ":" (expression_statement) "Jihun_41();" (call_expression) "Jihun_41()" (identifier) "Jihun_41" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// ~ is the deconstructor " (expression_statement) "~Jihun_41();" (unary_expression) "~Jihun_41()" (~) "~" (call_expression) "Jihun_41()" (identifier) "Jihun_41" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "//CPEWPEW_JIHUN_41_H "
40
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 12.76, "nodes": 18, "errors": 0, "source_hash": "66f7725f1347f3eb3ee22a71dfb6e4cb562a6b4f2248c9d80216d84b54470bf9", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CPEWPEW_JIHUN_41_H\r\n#define CPEWPEW_JIHUN_41_H\r\n\r\n\r\nclass Jihun_41 {\r\npublic:\r\n Jihun_41();\r\n // ~ is the deconstructor\r\n ~Jihun_41();\r\n};\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 17], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 16, "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": "CPEWPEW_JIHUN_41_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define CPEWPEW_JIHUN_41_H\r\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": "CPEWPEW_JIHUN_41_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 26}}, {"id": 6, "type": "function_definition", "text": "class Jihun_41 {\r\npublic:\r\n Jihun_41();\r\n // ~ is the deconstructor\r\n ~Jihun_41();\r\n}", "parent": 0, "children": [7], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 7, "type": "identifier", "text": "Jihun_41", "parent": 6, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 14}}, {"id": 8, "type": "labeled_statement", "text": "public:\r\n Jihun_41();", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 15}}, {"id": 9, "type": "call_expression", "text": "Jihun_41()", "parent": 8, "children": [10, 11], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 14}}, {"id": 10, "type": "identifier", "text": "Jihun_41", "parent": 9, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 11, "type": "argument_list", "text": "()", "parent": 9, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 14}}, {"id": 12, "type": "unary_expression", "text": "~Jihun_41()", "parent": 6, "children": [13, 14], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 15}}, {"id": 13, "type": "~", "text": "~", "parent": 12, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 5}}, {"id": 14, "type": "call_expression", "text": "Jihun_41()", "parent": 12, "children": [15, 16], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 15}}, {"id": 15, "type": "identifier", "text": "Jihun_41", "parent": 14, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 13}}, {"id": 16, "type": "argument_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 15}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [9, 12, 14], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 10, 15, 17], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "Jihun_41", "text_snippet": "class Jihun_41 {\r\npublic:\r\n Jihun_41();\r\n // ~ is the deconstructor\r\n ~Jihun_41();\r\n}"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\r\n// Created by Jihun on 6/24/2020.\r\n//\r\n\r\n#ifndef CPEWPEW_JIHUN_41_H\r\n#define CPEWPEW_JIHUN_41_H\r\n\r\n\r\nclass Jihun_41 {\r\npublic:\r\n Jihun_41();\r\n // ~ is the deconstructor\r\n ~Jihun_41();\r\n};\r\n\r\n\r\n#endif //CPEWPEW_JIHUN_41_H\r\n"}
80,717
c
#pragma once #if MYDLL_EXPORTS #define DLL_API __declspec(dllexport) #else #define DLL_API __declspec(dllimport) #endif #if MYDLL_EXPORTS #define CLASS_API __declspec(dllexport) #else #define CLASS_API __declspec(dllimport) #endif DLL_API int addFunc(int, int); DLL_API int minusFunc(int, int); DLL_API int divFunc(int, int); DLL_API int multiFunc(int, int); class CLASS_API MyClass { public: int additionFunc(); private: int MyFunc(); virtual int MyNewFunc(int); int m_i; };
18.04
26
(translation_unit) "#pragma once\n#if MYDLL_EXPORTS\n#define DLL_API __declspec(dllexport)\n#else\n#define DLL_API __declspec(dllimport)\n#endif\n\n\n#if MYDLL_EXPORTS\n#define CLASS_API __declspec(dllexport)\n#else\n#define CLASS_API __declspec(dllimport)\n#endif\n\n\nDLL_API int addFunc(int, int);\nDLL_API int minusFunc(int, int);\nDLL_API int divFunc(int, int);\nDLL_API int multiFunc(int, int);\n\n\nclass CLASS_API MyClass {\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int MyNewFunc(int);\n int m_i;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_if) "#if MYDLL_EXPORTS\n#define DLL_API __declspec(dllexport)\n#else\n#define DLL_API __declspec(dllimport)\n#endif" (#if) "#if" (identifier) "MYDLL_EXPORTS" ( ) "\n" (preproc_def) "#define DLL_API __declspec(dllexport)\n" (#define) "#define" (identifier) "DLL_API" (preproc_arg) "__declspec(dllexport)" (preproc_else) "#else\n#define DLL_API __declspec(dllimport)\n" (#else) "#else" (preproc_def) "#define DLL_API __declspec(dllimport)\n" (#define) "#define" (identifier) "DLL_API" (preproc_arg) "__declspec(dllimport)" (#endif) "#endif" (preproc_if) "#if MYDLL_EXPORTS\n#define CLASS_API __declspec(dllexport)\n#else\n#define CLASS_API __declspec(dllimport)\n#endif" (#if) "#if" (identifier) "MYDLL_EXPORTS" ( ) "\n" (preproc_def) "#define CLASS_API __declspec(dllexport)\n" (#define) "#define" (identifier) "CLASS_API" (preproc_arg) "__declspec(dllexport)" (preproc_else) "#else\n#define CLASS_API __declspec(dllimport)\n" (#else) "#else" (preproc_def) "#define CLASS_API __declspec(dllimport)\n" (#define) "#define" (identifier) "CLASS_API" (preproc_arg) "__declspec(dllimport)" (#endif) "#endif" (declaration) "DLL_API int addFunc(int, int);" (type_identifier) "DLL_API" (ERROR) "int" (identifier) "int" (function_declarator) "addFunc(int, int)" (identifier) "addFunc" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (declaration) "DLL_API int minusFunc(int, int);" (type_identifier) "DLL_API" (ERROR) "int" (identifier) "int" (function_declarator) "minusFunc(int, int)" (identifier) "minusFunc" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (declaration) "DLL_API int divFunc(int, int);" (type_identifier) "DLL_API" (ERROR) "int" (identifier) "int" (function_declarator) "divFunc(int, int)" (identifier) "divFunc" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (declaration) "DLL_API int multiFunc(int, int);" (type_identifier) "DLL_API" (ERROR) "int" (identifier) "int" (function_declarator) "multiFunc(int, int)" (identifier) "multiFunc" (parameter_list) "(int, int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" (,) "," (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (function_definition) "class CLASS_API MyClass {\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int MyNewFunc(int);\n int m_i;\n}" (type_identifier) "class" (identifier) "CLASS_API" (ERROR) "MyClass" (identifier) "MyClass" (compound_statement) "{\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int MyNewFunc(int);\n int m_i;\n}" ({) "{" (labeled_statement) "public:\n int additionFunc();" (statement_identifier) "public" (:) ":" (declaration) "int additionFunc();" (primitive_type) "int" (function_declarator) "additionFunc()" (identifier) "additionFunc" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n int MyFunc();" (statement_identifier) "private" (:) ":" (declaration) "int MyFunc();" (primitive_type) "int" (function_declarator) "MyFunc()" (identifier) "MyFunc" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual int MyNewFunc(int);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "MyNewFunc(int)" (identifier) "MyNewFunc" (parameter_list) "(int)" (() "(" (parameter_declaration) "int" (primitive_type) "int" ()) ")" (;) ";" (declaration) "int m_i;" (primitive_type) "int" (identifier) "m_i" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
142
6
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 18.04, "nodes": 105, "errors": 0, "source_hash": "56a953b595086d62d078930eacffa96f94b975c3a8d6346bc9ab5cbc58a6eb76", "categorized_nodes": 58}, "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_if", "text": "#if MYDLL_EXPORTS\n#define DLL_API\t__declspec(dllexport)\n#else\n#define DLL_API __declspec(dllimport)\n#endif", "parent": null, "children": [4, 5, 6, 7, 11, 17], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 3}}, {"id": 5, "type": "identifier", "text": "MYDLL_EXPORTS", "parent": 3, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "\n", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 1, "column": 17}, "end_point": {"row": 2, "column": 0}}, {"id": 7, "type": "preproc_def", "text": "#define DLL_API\t__declspec(dllexport)\n", "parent": 3, "children": [8, 9, 10], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 9, "type": "identifier", "text": "DLL_API", "parent": 7, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 15}}, {"id": 10, "type": "preproc_arg", "text": "__declspec(dllexport)", "parent": 7, "children": [], "start_point": {"row": 2, "column": 16}, "end_point": {"row": 2, "column": 37}}, {"id": 11, "type": "preproc_else", "text": "#else\n#define DLL_API __declspec(dllimport)\n", "parent": 3, "children": [12, 13], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 12, "type": "#else", "text": "#else", "parent": 11, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 5}}, {"id": 13, "type": "preproc_def", "text": "#define DLL_API __declspec(dllimport)\n", "parent": 11, "children": [14, 15, 16], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 15, "type": "identifier", "text": "DLL_API", "parent": 13, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 15}}, {"id": 16, "type": "preproc_arg", "text": "__declspec(dllimport)", "parent": 13, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 37}}, {"id": 17, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 18, "type": "preproc_if", "text": "#if MYDLL_EXPORTS\n#define CLASS_API __declspec(dllexport)\n#else\n#define CLASS_API __declspec(dllimport)\n#endif", "parent": null, "children": [19, 20, 21, 22, 26, 32], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 19, "type": "#if", "text": "#if", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 20, "type": "identifier", "text": "MYDLL_EXPORTS", "parent": 18, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 17}}, {"id": 21, "type": "\n", "text": "\n", "parent": 18, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "preproc_def", "text": "#define CLASS_API __declspec(dllexport)\n", "parent": 18, "children": [23, 24, 25], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 24, "type": "identifier", "text": "CLASS_API", "parent": 22, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 17}}, {"id": 25, "type": "preproc_arg", "text": "__declspec(dllexport)", "parent": 22, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 39}}, {"id": 26, "type": "preproc_else", "text": "#else\n#define CLASS_API __declspec(dllimport)\n", "parent": 18, "children": [27, 28], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 27, "type": "#else", "text": "#else", "parent": 26, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 5}}, {"id": 28, "type": "preproc_def", "text": "#define CLASS_API __declspec(dllimport)\n", "parent": 26, "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": "CLASS_API", "parent": 28, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 17}}, {"id": 31, "type": "preproc_arg", "text": "__declspec(dllimport)", "parent": 28, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 39}}, {"id": 32, "type": "#endif", "text": "#endif", "parent": 18, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 33, "type": "declaration", "text": "DLL_API int addFunc(int, int);", "parent": null, "children": [34, 35, 37], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 30}}, {"id": 34, "type": "type_identifier", "text": "DLL_API", "parent": 33, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 35, "type": "ERROR", "text": "int", "parent": 33, "children": [36], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 11}}, {"id": 36, "type": "identifier", "text": "int", "parent": 35, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 11}}, {"id": 37, "type": "function_declarator", "text": "addFunc(int, int)", "parent": 33, "children": [38, 39], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 29}}, {"id": 38, "type": "identifier", "text": "addFunc", "parent": 37, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 19}}, {"id": 39, "type": "parameter_list", "text": "(int, int)", "parent": 37, "children": [40, 42], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 29}}, {"id": 40, "type": "parameter_declaration", "text": "int", "parent": 39, "children": [41], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 42, "type": "parameter_declaration", "text": "int", "parent": 39, "children": [43], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 28}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 28}}, {"id": 44, "type": "declaration", "text": "DLL_API int minusFunc(int, int);", "parent": null, "children": [45, 46, 48], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 32}}, {"id": 45, "type": "type_identifier", "text": "DLL_API", "parent": 44, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 46, "type": "ERROR", "text": "int", "parent": 44, "children": [47], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 11}}, {"id": 47, "type": "identifier", "text": "int", "parent": 46, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 11}}, {"id": 48, "type": "function_declarator", "text": "minusFunc(int, int)", "parent": 44, "children": [49, 50], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 31}}, {"id": 49, "type": "identifier", "text": "minusFunc", "parent": 48, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 21}}, {"id": 50, "type": "parameter_list", "text": "(int, int)", "parent": 48, "children": [51, 53], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 31}}, {"id": 51, "type": "parameter_declaration", "text": "int", "parent": 50, "children": [52], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 25}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 25}}, {"id": 53, "type": "parameter_declaration", "text": "int", "parent": 50, "children": [54], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 30}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 30}}, {"id": 55, "type": "declaration", "text": "DLL_API int divFunc(int, int);", "parent": null, "children": [56, 57, 59], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 30}}, {"id": 56, "type": "type_identifier", "text": "DLL_API", "parent": 55, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 57, "type": "ERROR", "text": "int", "parent": 55, "children": [58], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 58, "type": "identifier", "text": "int", "parent": 57, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 59, "type": "function_declarator", "text": "divFunc(int, int)", "parent": 55, "children": [60, 61], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 29}}, {"id": 60, "type": "identifier", "text": "divFunc", "parent": 59, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 19}}, {"id": 61, "type": "parameter_list", "text": "(int, int)", "parent": 59, "children": [62, 64], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 29}}, {"id": 62, "type": "parameter_declaration", "text": "int", "parent": 61, "children": [63], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 23}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 23}}, {"id": 64, "type": "parameter_declaration", "text": "int", "parent": 61, "children": [65], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 28}}, {"id": 65, "type": "primitive_type", "text": "int", "parent": 64, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 28}}, {"id": 66, "type": "declaration", "text": "DLL_API int multiFunc(int, int);", "parent": null, "children": [67, 68, 70], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 32}}, {"id": 67, "type": "type_identifier", "text": "DLL_API", "parent": 66, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 68, "type": "ERROR", "text": "int", "parent": 66, "children": [69], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 69, "type": "identifier", "text": "int", "parent": 68, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 70, "type": "function_declarator", "text": "multiFunc(int, int)", "parent": 66, "children": [71, 72], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 31}}, {"id": 71, "type": "identifier", "text": "multiFunc", "parent": 70, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 21}}, {"id": 72, "type": "parameter_list", "text": "(int, int)", "parent": 70, "children": [73, 75], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 31}}, {"id": 73, "type": "parameter_declaration", "text": "int", "parent": 72, "children": [74], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 25}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 25}}, {"id": 75, "type": "parameter_declaration", "text": "int", "parent": 72, "children": [76], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 30}}, {"id": 76, "type": "primitive_type", "text": "int", "parent": 75, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 30}}, {"id": 77, "type": "function_definition", "text": "class CLASS_API MyClass {\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int MyNewFunc(int);\n int m_i;\n}", "parent": null, "children": [78, 79], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 78, "type": "identifier", "text": "CLASS_API", "parent": 77, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 15}}, {"id": 79, "type": "ERROR", "text": "MyClass", "parent": 77, "children": [80], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 23}}, {"id": 80, "type": "identifier", "text": "MyClass", "parent": 79, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 23}}, {"id": 81, "type": "labeled_statement", "text": "public:\n int additionFunc();", "parent": 77, "children": [82], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 23}}, {"id": 82, "type": "declaration", "text": "int additionFunc();", "parent": 81, "children": [83, 84], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 23}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 7}}, {"id": 84, "type": "function_declarator", "text": "additionFunc()", "parent": 82, "children": [85, 86], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 22}}, {"id": 85, "type": "identifier", "text": "additionFunc", "parent": 84, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 20}}, {"id": 86, "type": "parameter_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 22}}, {"id": 87, "type": "labeled_statement", "text": "private:\n int MyFunc();", "parent": 77, "children": [88], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 17}}, {"id": 88, "type": "declaration", "text": "int MyFunc();", "parent": 87, "children": [89, 90], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 17}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 90, "type": "function_declarator", "text": "MyFunc()", "parent": 88, "children": [91, 92], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 16}}, {"id": 91, "type": "identifier", "text": "MyFunc", "parent": 90, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 14}}, {"id": 92, "type": "parameter_list", "text": "()", "parent": 90, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 16}}, {"id": 93, "type": "declaration", "text": "virtual int MyNewFunc(int);", "parent": 77, "children": [94, 95, 97], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 31}}, {"id": 94, "type": "type_identifier", "text": "virtual", "parent": 93, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 95, "type": "ERROR", "text": "int", "parent": 93, "children": [96], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 15}}, {"id": 96, "type": "identifier", "text": "int", "parent": 95, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 15}}, {"id": 97, "type": "function_declarator", "text": "MyNewFunc(int)", "parent": 93, "children": [98, 99], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 30}}, {"id": 98, "type": "identifier", "text": "MyNewFunc", "parent": 97, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 25}}, {"id": 99, "type": "parameter_list", "text": "(int)", "parent": 97, "children": [100], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 30}}, {"id": 100, "type": "parameter_declaration", "text": "int", "parent": 99, "children": [101], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 29}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 26, "column": 26}, "end_point": {"row": 26, "column": 29}}, {"id": 102, "type": "declaration", "text": "int m_i;", "parent": 77, "children": [103, 104], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 103, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 104, "type": "identifier", "text": "m_i", "parent": 102, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 11}}]}, "node_categories": {"declarations": {"functions": [37, 48, 59, 70, 77, 84, 90, 97], "variables": [33, 40, 42, 44, 51, 53, 55, 62, 64, 66, 73, 75, 82, 88, 93, 100, 102], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 9, 15, 17, 18, 19, 20, 24, 30, 32, 34, 36, 38, 45, 47, 49, 56, 58, 60, 67, 69, 71, 78, 80, 85, 91, 94, 96, 98, 104], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "addFunc(int, int)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "minusFunc(int, int)"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "divFunc(int, int)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "multiFunc(int, int)"}, {"node_id": 77, "universal_type": "function", "name": "CLASS_API", "text_snippet": "class CLASS_API MyClass {\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "additionFunc()"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "MyFunc()"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "MyNewFunc(int)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n#if MYDLL_EXPORTS\n#define DLL_API\t__declspec(dllexport)\n#else\n#define DLL_API __declspec(dllimport)\n#endif\n\n\n#if MYDLL_EXPORTS\n#define CLASS_API __declspec(dllexport)\n#else\n#define CLASS_API __declspec(dllimport)\n#endif\n\n\nDLL_API int addFunc(int, int);\nDLL_API int minusFunc(int, int);\nDLL_API int divFunc(int, int);\nDLL_API int multiFunc(int, int);\n\n\nclass CLASS_API MyClass {\npublic:\n int additionFunc();\nprivate:\n int MyFunc();\n virtual int MyNewFunc(int);\n int m_i;\n};"}
80,718
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35). // // Copyright (C) 1997-2019 <NAME>. // #import <MIO/MIOObject.h> @class MIORADPluginManager, NSMutableArray, NSUndoManager; @interface MIORADManager : MIOObject { NSMutableArray *_volumes; NSMutableArray *_radVolumes; NSMutableArray *_archiveVolumes; NSMutableArray *_fileSystemVolumes; NSMutableArray *_flatClipsArray; NSMutableArray *_spannedClips; NSUndoManager *_undoManager; MIORADPluginManager *_pluginManager; BOOL _shouldAddVolumesSynchronously; } + (void)flushRADManager; + (void)releaseSharedRADManager; + (id)sharedRADManager; + (void)initialize; - (id)metadataDefinitionsFromPlugins; - (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4; - (id)arrayProxyForVolume:(id)arg1; - (BOOL)shouldAddVolumesSynchronously; - (void)setShouldAddVolumesSynchronously:(BOOL)arg1; - (void)setPluginManager:(id)arg1; - (id)undoManager; - (void)setUndoManager:(id)arg1; - (void)removeListOfSpannedClips; - (void)pluginVolumesInvalid:(id)arg1; - (void)addPluginVolumes:(id)arg1; - (void)volumeDidUnmount:(id)arg1; - (void)volumeWillUnmount:(id)arg1; - (void)volumeDidMount:(id)arg1; - (void)iOSDeviceDidUnmount:(id)arg1; - (void)iOSDeviceDidMount:(id)arg1; - (void)_broadcastToPluginsWithName:(id)arg1 path:(id)arg2; - (void)iOSDeviceMountingFailed:(id)arg1; - (unsigned int)volumeCount; - (unsigned int)volumeIndex:(id)arg1; - (id)volumeAtIndex:(unsigned int)arg1; - (id)spannedClips; - (id)clips; - (id)volumes; - (void)removeListOfRADVolumes; - (BOOL)removeVolume:(id)arg1; - (void)mountiOSDevicesSynchronously; - (void)scanForiOSDevices; - (void)removeClipFromFlatClipsArray:(id)arg1; - (void)postVolumeFailedToMount:(id)arg1; - (void)postVolumeNotRecognized:(id)arg1; - (void)postVolumeExists:(id)arg1; - (void)replaceTempVolumeWithVolume:(id)arg1; - (BOOL)addVolume:(id)arg1; - (BOOL)replaceVolume:(id)arg1 withVolume:(id)arg2; - (void)removeTempVolumeForPath:(id)arg1; - (void)addTempVolume:(id)arg1; - (void)addVolumesForPaths:(id)arg1; - (void)addVolumeForPath:(id)arg1; - (BOOL)pathIsValidVolume:(id)arg1; - (BOOL)doesPath:(id)arg1 containSomeOfClipsWithUIDs:(id)arg2; - (BOOL)volumeExistsAtPath:(id)arg1 checkMountingVolumes:(BOOL)arg2 withPluginID:(id)arg3; - (id)extendedClipProperties; - (BOOL)shouldMountSynchronously; - (id)clipForInProgressSubSegment:(id)arg1; - (id)clipForUID:(id)arg1; - (id)description; - (void)dealloc; - (BOOL)createVolumeListWithPath:(id)arg1; - (void)loadRADPlugins:(id)arg1 andValidate:(id)arg2; - (id)init; @end
33.99
75
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <MIO/MIOObject.h>\n\n@class MIORADPluginManager, NSMutableArray, NSUndoManager;\n\n@interface MIORADManager : MIOObject\n{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;\n NSMutableArray *_archiveVolumes;\n NSMutableArray *_fileSystemVolumes;\n NSMutableArray *_flatClipsArray;\n NSMutableArray *_spannedClips;\n NSUndoManager *_undoManager;\n MIORADPluginManager *_pluginManager;\n BOOL _shouldAddVolumesSynchronously;\n}\n\n+ (void)flushRADManager;\n+ (void)releaseSharedRADManager;\n+ (id)sharedRADManager;\n+ (void)initialize;\n- (id)metadataDefinitionsFromPlugins;\n- (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4;\n- (id)arrayProxyForVolume:(id)arg1;\n- (BOOL)shouldAddVolumesSynchronously;\n- (void)setShouldAddVolumesSynchronously:(BOOL)arg1;\n- (void)setPluginManager:(id)arg1;\n- (id)undoManager;\n- (void)setUndoManager:(id)arg1;\n- (void)removeListOfSpannedClips;\n- (void)pluginVolumesInvalid:(id)arg1;\n- (void)addPluginVolumes:(id)arg1;\n- (void)volumeDidUnmount:(id)arg1;\n- (void)volumeWillUnmount:(id)arg1;\n- (void)volumeDidMount:(id)arg1;\n- (void)iOSDeviceDidUnmount:(id)arg1;\n- (void)iOSDeviceDidMount:(id)arg1;\n- (void)_broadcastToPluginsWithName:(id)arg1 path:(id)arg2;\n- (void)iOSDeviceMountingFailed:(id)arg1;\n- (unsigned int)volumeCount;\n- (unsigned int)volumeIndex:(id)arg1;\n- (id)volumeAtIndex:(unsigned int)arg1;\n- (id)spannedClips;\n- (id)clips;\n- (id)volumes;\n- (void)removeListOfRADVolumes;\n- (BOOL)removeVolume:(id)arg1;\n- (void)mountiOSDevicesSynchronously;\n- (void)scanForiOSDevices;\n- (void)removeClipFromFlatClipsArray:(id)arg1;\n- (void)postVolumeFailedToMount:(id)arg1;\n- (void)postVolumeNotRecognized:(id)arg1;\n- (void)postVolumeExists:(id)arg1;\n- (void)replaceTempVolumeWithVolume:(id)arg1;\n- (BOOL)addVolume:(id)arg1;\n- (BOOL)replaceVolume:(id)arg1 withVolume:(id)arg2;\n- (void)removeTempVolumeForPath:(id)arg1;\n- (void)addTempVolume:(id)arg1;\n- (void)addVolumesForPaths:(id)arg1;\n- (void)addVolumeForPath:(id)arg1;\n- (BOOL)pathIsValidVolume:(id)arg1;\n- (BOOL)doesPath:(id)arg1 containSomeOfClipsWithUIDs:(id)arg2;\n- (BOOL)volumeExistsAtPath:(id)arg1 checkMountingVolumes:(BOOL)arg2 withPluginID:(id)arg3;\n- (id)extendedClipProperties;\n- (BOOL)shouldMountSynchronously;\n- (id)clipForInProgressSubSegment:(id)arg1;\n- (id)clipForUID:(id)arg1;\n- (id)description;\n- (void)dealloc;\n- (BOOL)createVolumeListWithPath:(id)arg1;\n- (void)loadRADPlugins:(id)arg1 andValidate:(id)arg2;\n- (id)init;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35)." (comment) "//" (comment) "// Copyright (C) 1997-2019 <NAME>." (comment) "//" (preproc_call) "#import <MIO/MIOObject.h>\n" (preproc_directive) "#import" (preproc_arg) "<MIO/MIOObject.h>" (ERROR) "@" (ERROR) "@" (declaration) "class MIORADPluginManager, NSMutableArray, NSUndoManager;" (type_identifier) "class" (identifier) "MIORADPluginManager" (,) "," (identifier) "NSMutableArray" (,) "," (identifier) "NSUndoManager" (;) ";" (ERROR) "@" (ERROR) "@" (function_definition) "interface MIORADManager : MIOObject\n{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;\n NSMutableArray *_archiveVolumes;\n NSMutableArray *_fileSystemVolumes;\n NSMutableArray *_flatClipsArray;\n NSMutableArray *_spannedClips;\n NSUndoManager *_undoManager;\n MIORADPluginManager *_pluginManager;\n BOOL _shouldAddVolumesSynchronously;\n}" (type_identifier) "interface" (identifier) "MIORADManager" (ERROR) ": MIOObject" (:) ":" (identifier) "MIOObject" (compound_statement) "{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;\n NSMutableArray *_archiveVolumes;\n NSMutableArray *_fileSystemVolumes;\n NSMutableArray *_flatClipsArray;\n NSMutableArray *_spannedClips;\n NSUndoManager *_undoManager;\n MIORADPluginManager *_pluginManager;\n BOOL _shouldAddVolumesSynchronously;\n}" ({) "{" (declaration) "NSMutableArray *_volumes;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_volumes" (*) "*" (identifier) "_volumes" (;) ";" (declaration) "NSMutableArray *_radVolumes;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_radVolumes" (*) "*" (identifier) "_radVolumes" (;) ";" (declaration) "NSMutableArray *_archiveVolumes;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_archiveVolumes" (*) "*" (identifier) "_archiveVolumes" (;) ";" (declaration) "NSMutableArray *_fileSystemVolumes;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_fileSystemVolumes" (*) "*" (identifier) "_fileSystemVolumes" (;) ";" (declaration) "NSMutableArray *_flatClipsArray;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_flatClipsArray" (*) "*" (identifier) "_flatClipsArray" (;) ";" (declaration) "NSMutableArray *_spannedClips;" (type_identifier) "NSMutableArray" (pointer_declarator) "*_spannedClips" (*) "*" (identifier) "_spannedClips" (;) ";" (declaration) "NSUndoManager *_undoManager;" (type_identifier) "NSUndoManager" (pointer_declarator) "*_undoManager" (*) "*" (identifier) "_undoManager" (;) ";" (declaration) "MIORADPluginManager *_pluginManager;" (type_identifier) "MIORADPluginManager" (pointer_declarator) "*_pluginManager" (*) "*" (identifier) "_pluginManager" (;) ";" (declaration) "BOOL _shouldAddVolumesSynchronously;" (type_identifier) "BOOL" (identifier) "_shouldAddVolumesSynchronously" (;) ";" (}) "}" (expression_statement) "+ (void)flushRADManager;" (unary_expression) "+ (void)flushRADManager" (+) "+" (cast_expression) "(void)flushRADManager" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "flushRADManager" (;) ";" (expression_statement) "+ (void)releaseSharedRADManager;" (unary_expression) "+ (void)releaseSharedRADManager" (+) "+" (cast_expression) "(void)releaseSharedRADManager" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "releaseSharedRADManager" (;) ";" (expression_statement) "+ (id)sharedRADManager;" (unary_expression) "+ (id)sharedRADManager" (+) "+" (cast_expression) "(id)sharedRADManager" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "sharedRADManager" (;) ";" (expression_statement) "+ (void)initialize;" (unary_expression) "+ (void)initialize" (+) "+" (cast_expression) "(void)initialize" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "initialize" (;) ";" (expression_statement) "- (id)metadataDefinitionsFromPlugins;" (unary_expression) "- (id)metadataDefinitionsFromPlugins" (-) "-" (cast_expression) "(id)metadataDefinitionsFromPlugins" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "metadataDefinitionsFromPlugins" (;) ";" (ERROR) "- (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(" (unary_expression) "- (void)observeValueForKeyPath" (-) "-" (cast_expression) "(void)observeValueForKeyPath" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "observeValueForKeyPath" (:) ":" (() "(" (identifier) "id" ()) ")" (type_identifier) "arg1" (identifier) "ofObject" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "change" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (identifier) "context" (:) ":" (() "(" (declaration) "void *)arg4;" (primitive_type) "void" (pointer_declarator) "*)arg4" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg4" (;) ";" (expression_statement) "- (id)arrayProxyForVolume:(id)arg1;" (unary_expression) "- (id)arrayProxyForVolume" (-) "-" (cast_expression) "(id)arrayProxyForVolume" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "arrayProxyForVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (BOOL)shouldAddVolumesSynchronously;" (unary_expression) "- (BOOL)shouldAddVolumesSynchronously" (-) "-" (cast_expression) "(BOOL)shouldAddVolumesSynchronously" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "shouldAddVolumesSynchronously" (;) ";" (expression_statement) "- (void)setShouldAddVolumesSynchronously:(BOOL)arg1;" (unary_expression) "- (void)setShouldAddVolumesSynchronously" (-) "-" (cast_expression) "(void)setShouldAddVolumesSynchronously" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setShouldAddVolumesSynchronously" (ERROR) ":(BOOL)arg1" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)setPluginManager:(id)arg1;" (unary_expression) "- (void)setPluginManager" (-) "-" (cast_expression) "(void)setPluginManager" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setPluginManager" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)undoManager;" (unary_expression) "- (id)undoManager" (-) "-" (cast_expression) "(id)undoManager" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "undoManager" (;) ";" (expression_statement) "- (void)setUndoManager:(id)arg1;" (unary_expression) "- (void)setUndoManager" (-) "-" (cast_expression) "(void)setUndoManager" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "setUndoManager" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)removeListOfSpannedClips;" (unary_expression) "- (void)removeListOfSpannedClips" (-) "-" (cast_expression) "(void)removeListOfSpannedClips" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "removeListOfSpannedClips" (;) ";" (expression_statement) "- (void)pluginVolumesInvalid:(id)arg1;" (unary_expression) "- (void)pluginVolumesInvalid" (-) "-" (cast_expression) "(void)pluginVolumesInvalid" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "pluginVolumesInvalid" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)addPluginVolumes:(id)arg1;" (unary_expression) "- (void)addPluginVolumes" (-) "-" (cast_expression) "(void)addPluginVolumes" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addPluginVolumes" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)volumeDidUnmount:(id)arg1;" (unary_expression) "- (void)volumeDidUnmount" (-) "-" (cast_expression) "(void)volumeDidUnmount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "volumeDidUnmount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)volumeWillUnmount:(id)arg1;" (unary_expression) "- (void)volumeWillUnmount" (-) "-" (cast_expression) "(void)volumeWillUnmount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "volumeWillUnmount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)volumeDidMount:(id)arg1;" (unary_expression) "- (void)volumeDidMount" (-) "-" (cast_expression) "(void)volumeDidMount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "volumeDidMount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)iOSDeviceDidUnmount:(id)arg1;" (unary_expression) "- (void)iOSDeviceDidUnmount" (-) "-" (cast_expression) "(void)iOSDeviceDidUnmount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "iOSDeviceDidUnmount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)iOSDeviceDidMount:(id)arg1;" (unary_expression) "- (void)iOSDeviceDidMount" (-) "-" (cast_expression) "(void)iOSDeviceDidMount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "iOSDeviceDidMount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)_broadcastToPluginsWithName:(id)" (unary_expression) "- (void)_broadcastToPluginsWithName" (-) "-" (cast_expression) "(void)_broadcastToPluginsWithName" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "_broadcastToPluginsWithName" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 path:(id)arg2;" (type_identifier) "arg1" (identifier) "path" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (void)iOSDeviceMountingFailed:(id)arg1;" (unary_expression) "- (void)iOSDeviceMountingFailed" (-) "-" (cast_expression) "(void)iOSDeviceMountingFailed" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "iOSDeviceMountingFailed" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (unsigned int)volumeCount;" (unary_expression) "- (unsigned int)volumeCount" (-) "-" (cast_expression) "(unsigned int)volumeCount" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "volumeCount" (;) ";" (expression_statement) "- (unsigned int)volumeIndex:(id)arg1;" (unary_expression) "- (unsigned int)volumeIndex" (-) "-" (cast_expression) "(unsigned int)volumeIndex" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "volumeIndex" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (id)volumeAtIndex:(" (unary_expression) "- (id)volumeAtIndex" (-) "-" (cast_expression) "(id)volumeAtIndex" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "volumeAtIndex" (:) ":" (() "(" (declaration) "unsigned int)arg1;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)spannedClips;" (unary_expression) "- (id)spannedClips" (-) "-" (cast_expression) "(id)spannedClips" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "spannedClips" (;) ";" (expression_statement) "- (id)clips;" (unary_expression) "- (id)clips" (-) "-" (cast_expression) "(id)clips" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "clips" (;) ";" (expression_statement) "- (id)volumes;" (unary_expression) "- (id)volumes" (-) "-" (cast_expression) "(id)volumes" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "volumes" (;) ";" (expression_statement) "- (void)removeListOfRADVolumes;" (unary_expression) "- (void)removeListOfRADVolumes" (-) "-" (cast_expression) "(void)removeListOfRADVolumes" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "removeListOfRADVolumes" (;) ";" (expression_statement) "- (BOOL)removeVolume:(id)arg1;" (unary_expression) "- (BOOL)removeVolume" (-) "-" (cast_expression) "(BOOL)removeVolume" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "removeVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)mountiOSDevicesSynchronously;" (unary_expression) "- (void)mountiOSDevicesSynchronously" (-) "-" (cast_expression) "(void)mountiOSDevicesSynchronously" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "mountiOSDevicesSynchronously" (;) ";" (expression_statement) "- (void)scanForiOSDevices;" (unary_expression) "- (void)scanForiOSDevices" (-) "-" (cast_expression) "(void)scanForiOSDevices" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "scanForiOSDevices" (;) ";" (expression_statement) "- (void)removeClipFromFlatClipsArray:(id)arg1;" (unary_expression) "- (void)removeClipFromFlatClipsArray" (-) "-" (cast_expression) "(void)removeClipFromFlatClipsArray" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "removeClipFromFlatClipsArray" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)postVolumeFailedToMount:(id)arg1;" (unary_expression) "- (void)postVolumeFailedToMount" (-) "-" (cast_expression) "(void)postVolumeFailedToMount" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "postVolumeFailedToMount" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)postVolumeNotRecognized:(id)arg1;" (unary_expression) "- (void)postVolumeNotRecognized" (-) "-" (cast_expression) "(void)postVolumeNotRecognized" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "postVolumeNotRecognized" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)postVolumeExists:(id)arg1;" (unary_expression) "- (void)postVolumeExists" (-) "-" (cast_expression) "(void)postVolumeExists" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "postVolumeExists" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)replaceTempVolumeWithVolume:(id)arg1;" (unary_expression) "- (void)replaceTempVolumeWithVolume" (-) "-" (cast_expression) "(void)replaceTempVolumeWithVolume" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "replaceTempVolumeWithVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (BOOL)addVolume:(id)arg1;" (unary_expression) "- (BOOL)addVolume" (-) "-" (cast_expression) "(BOOL)addVolume" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "addVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (BOOL)replaceVolume:(id)" (unary_expression) "- (BOOL)replaceVolume" (-) "-" (cast_expression) "(BOOL)replaceVolume" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "replaceVolume" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 withVolume:(id)arg2;" (type_identifier) "arg1" (identifier) "withVolume" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (void)removeTempVolumeForPath:(id)arg1;" (unary_expression) "- (void)removeTempVolumeForPath" (-) "-" (cast_expression) "(void)removeTempVolumeForPath" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "removeTempVolumeForPath" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)addTempVolume:(id)arg1;" (unary_expression) "- (void)addTempVolume" (-) "-" (cast_expression) "(void)addTempVolume" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addTempVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)addVolumesForPaths:(id)arg1;" (unary_expression) "- (void)addVolumesForPaths" (-) "-" (cast_expression) "(void)addVolumesForPaths" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addVolumesForPaths" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)addVolumeForPath:(id)arg1;" (unary_expression) "- (void)addVolumeForPath" (-) "-" (cast_expression) "(void)addVolumeForPath" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "addVolumeForPath" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (BOOL)pathIsValidVolume:(id)arg1;" (unary_expression) "- (BOOL)pathIsValidVolume" (-) "-" (cast_expression) "(BOOL)pathIsValidVolume" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "pathIsValidVolume" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (BOOL)doesPath:(id)" (unary_expression) "- (BOOL)doesPath" (-) "-" (cast_expression) "(BOOL)doesPath" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "doesPath" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 containSomeOfClipsWithUIDs:(id)arg2;" (type_identifier) "arg1" (identifier) "containSomeOfClipsWithUIDs" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "- (BOOL)volumeExistsAtPath:(id)" (unary_expression) "- (BOOL)volumeExistsAtPath" (-) "-" (cast_expression) "(BOOL)volumeExistsAtPath" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "volumeExistsAtPath" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 checkMountingVolumes:(BOOL)arg2 withPluginID:(id)arg3;" (type_identifier) "arg1" (ERROR) "checkMountingVolumes:(BOOL)arg2 withPluginID:(id)" (identifier) "checkMountingVolumes" (:) ":" (() "(" (identifier) "BOOL" ()) ")" (identifier) "arg2" (identifier) "withPluginID" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (;) ";" (expression_statement) "- (id)extendedClipProperties;" (unary_expression) "- (id)extendedClipProperties" (-) "-" (cast_expression) "(id)extendedClipProperties" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "extendedClipProperties" (;) ";" (expression_statement) "- (BOOL)shouldMountSynchronously;" (unary_expression) "- (BOOL)shouldMountSynchronously" (-) "-" (cast_expression) "(BOOL)shouldMountSynchronously" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "shouldMountSynchronously" (;) ";" (expression_statement) "- (id)clipForInProgressSubSegment:(id)arg1;" (unary_expression) "- (id)clipForInProgressSubSegment" (-) "-" (cast_expression) "(id)clipForInProgressSubSegment" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "clipForInProgressSubSegment" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)clipForUID:(id)arg1;" (unary_expression) "- (id)clipForUID" (-) "-" (cast_expression) "(id)clipForUID" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "clipForUID" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (id)description;" (unary_expression) "- (id)description" (-) "-" (cast_expression) "(id)description" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "description" (;) ";" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (expression_statement) "- (BOOL)createVolumeListWithPath:(id)arg1;" (unary_expression) "- (BOOL)createVolumeListWithPath" (-) "-" (cast_expression) "(BOOL)createVolumeListWithPath" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "createVolumeListWithPath" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (void)loadRADPlugins:(id)" (unary_expression) "- (void)loadRADPlugins" (-) "-" (cast_expression) "(void)loadRADPlugins" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "loadRADPlugins" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 andValidate:(id)arg2;" (type_identifier) "arg1" (identifier) "andValidate" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "- (id)init;" (unary_expression) "- (id)init" (-) "-" (cast_expression) "(id)init" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "init" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
916
49
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 33.99, "nodes": 543, "errors": 0, "source_hash": "0c392b61d1fea7fa47ec05ae2139b2f0c3b6dbe8938a124f263f45a0ffdcabe6", "categorized_nodes": 328}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <MIO/MIOObject.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": "<MIO/MIOObject.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 25}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "declaration", "text": "class MIORADPluginManager, NSMutableArray, NSUndoManager;", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 58}}, {"id": 6, "type": "identifier", "text": "MIORADPluginManager", "parent": 5, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 26}}, {"id": 7, "type": "identifier", "text": "NSMutableArray", "parent": 5, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 42}}, {"id": 8, "type": "identifier", "text": "NSUndoManager", "parent": 5, "children": [], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 57}}, {"id": 9, "type": "ERROR", "text": "@", "parent": null, "children": [10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 11, "type": "function_definition", "text": "interface MIORADManager : MIOObject\n{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;\n NSMutableArray *_archiveVolumes;\n NSMutableArray *_fileSystemVolumes;\n NSMutableArray *_flatClipsArray;\n NSMutableArray *_spannedClips;\n NSUndoManager *_undoManager;\n MIORADPluginManager *_pluginManager;\n BOOL _shouldAddVolumesSynchronously;\n}", "parent": null, "children": [12, 13, 14], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 21, "column": 1}}, {"id": 12, "type": "type_identifier", "text": "interface", "parent": 11, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 13, "type": "identifier", "text": "MIORADManager", "parent": 11, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 24}}, {"id": 14, "type": "ERROR", "text": ": MIOObject", "parent": 11, "children": [15], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 36}}, {"id": 15, "type": "identifier", "text": "MIOObject", "parent": 14, "children": [], "start_point": {"row": 10, "column": 27}, "end_point": {"row": 10, "column": 36}}, {"id": 16, "type": "declaration", "text": "NSMutableArray *_volumes;", "parent": 11, "children": [17, 18], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 29}}, {"id": 17, "type": "type_identifier", "text": "NSMutableArray", "parent": 16, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 18}}, {"id": 18, "type": "pointer_declarator", "text": "*_volumes", "parent": 16, "children": [19, 20], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 28}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 20, "type": "identifier", "text": "_volumes", "parent": 18, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 28}}, {"id": 21, "type": "declaration", "text": "NSMutableArray *_radVolumes;", "parent": 11, "children": [22, 23], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 32}}, {"id": 22, "type": "type_identifier", "text": "NSMutableArray", "parent": 21, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 18}}, {"id": 23, "type": "pointer_declarator", "text": "*_radVolumes", "parent": 21, "children": [24, 25], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 31}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 25, "type": "identifier", "text": "_radVolumes", "parent": 23, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 31}}, {"id": 26, "type": "declaration", "text": "NSMutableArray *_archiveVolumes;", "parent": 11, "children": [27, 28], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 36}}, {"id": 27, "type": "type_identifier", "text": "NSMutableArray", "parent": 26, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 18}}, {"id": 28, "type": "pointer_declarator", "text": "*_archiveVolumes", "parent": 26, "children": [29, 30], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 35}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 20}}, {"id": 30, "type": "identifier", "text": "_archiveVolumes", "parent": 28, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 35}}, {"id": 31, "type": "declaration", "text": "NSMutableArray *_fileSystemVolumes;", "parent": 11, "children": [32, 33], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 39}}, {"id": 32, "type": "type_identifier", "text": "NSMutableArray", "parent": 31, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 18}}, {"id": 33, "type": "pointer_declarator", "text": "*_fileSystemVolumes", "parent": 31, "children": [34, 35], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 38}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 35, "type": "identifier", "text": "_fileSystemVolumes", "parent": 33, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 38}}, {"id": 36, "type": "declaration", "text": "NSMutableArray *_flatClipsArray;", "parent": 11, "children": [37, 38], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 36}}, {"id": 37, "type": "type_identifier", "text": "NSMutableArray", "parent": 36, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 18}}, {"id": 38, "type": "pointer_declarator", "text": "*_flatClipsArray", "parent": 36, "children": [39, 40], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 35}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 20}}, {"id": 40, "type": "identifier", "text": "_flatClipsArray", "parent": 38, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 35}}, {"id": 41, "type": "declaration", "text": "NSMutableArray *_spannedClips;", "parent": 11, "children": [42, 43], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 34}}, {"id": 42, "type": "type_identifier", "text": "NSMutableArray", "parent": 41, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 18}}, {"id": 43, "type": "pointer_declarator", "text": "*_spannedClips", "parent": 41, "children": [44, 45], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 33}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 20}}, {"id": 45, "type": "identifier", "text": "_spannedClips", "parent": 43, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 33}}, {"id": 46, "type": "declaration", "text": "NSUndoManager *_undoManager;", "parent": 11, "children": [47, 48], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 32}}, {"id": 47, "type": "type_identifier", "text": "NSUndoManager", "parent": 46, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 17}}, {"id": 48, "type": "pointer_declarator", "text": "*_undoManager", "parent": 46, "children": [49, 50], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 31}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 50, "type": "identifier", "text": "_undoManager", "parent": 48, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 31}}, {"id": 51, "type": "declaration", "text": "MIORADPluginManager *_pluginManager;", "parent": 11, "children": [52, 53], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 40}}, {"id": 52, "type": "type_identifier", "text": "MIORADPluginManager", "parent": 51, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 23}}, {"id": 53, "type": "pointer_declarator", "text": "*_pluginManager", "parent": 51, "children": [54, 55], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 39}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 55, "type": "identifier", "text": "_pluginManager", "parent": 53, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 39}}, {"id": 56, "type": "declaration", "text": "BOOL _shouldAddVolumesSynchronously;", "parent": 11, "children": [57, 58], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 40}}, {"id": 57, "type": "type_identifier", "text": "BOOL", "parent": 56, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 58, "type": "identifier", "text": "_shouldAddVolumesSynchronously", "parent": 56, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 39}}, {"id": 59, "type": "unary_expression", "text": "+ (void)flushRADManager", "parent": null, "children": [60, 61], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 23}}, {"id": 60, "type": "+", "text": "+", "parent": 59, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 61, "type": "cast_expression", "text": "(void)flushRADManager", "parent": 59, "children": [62, 64], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 23}}, {"id": 62, "type": "type_descriptor", "text": "void", "parent": 61, "children": [63], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 64, "type": "identifier", "text": "flushRADManager", "parent": 61, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 23}}, {"id": 65, "type": "unary_expression", "text": "+ (void)releaseSharedRADManager", "parent": null, "children": [66, 67], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 31}}, {"id": 66, "type": "+", "text": "+", "parent": 65, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 67, "type": "cast_expression", "text": "(void)releaseSharedRADManager", "parent": 65, "children": [68, 70], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 31}}, {"id": 68, "type": "type_descriptor", "text": "void", "parent": 67, "children": [69], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 7}}, {"id": 70, "type": "identifier", "text": "releaseSharedRADManager", "parent": 67, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 31}}, {"id": 71, "type": "unary_expression", "text": "+ (id)sharedRADManager", "parent": null, "children": [72, 73], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 22}}, {"id": 72, "type": "+", "text": "+", "parent": 71, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 73, "type": "cast_expression", "text": "(id)sharedRADManager", "parent": 71, "children": [74, 76], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 22}}, {"id": 74, "type": "type_descriptor", "text": "id", "parent": 73, "children": [75], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 75, "type": "type_identifier", "text": "id", "parent": 74, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 5}}, {"id": 76, "type": "identifier", "text": "sharedRADManager", "parent": 73, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 22}}, {"id": 77, "type": "unary_expression", "text": "+ (void)initialize", "parent": null, "children": [78, 79], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 18}}, {"id": 78, "type": "+", "text": "+", "parent": 77, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 79, "type": "cast_expression", "text": "(void)initialize", "parent": 77, "children": [80, 82], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 18}}, {"id": 80, "type": "type_descriptor", "text": "void", "parent": 79, "children": [81], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 82, "type": "identifier", "text": "initialize", "parent": 79, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 18}}, {"id": 83, "type": "unary_expression", "text": "- (id)metadataDefinitionsFromPlugins", "parent": null, "children": [84, 85], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 36}}, {"id": 84, "type": "-", "text": "-", "parent": 83, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 85, "type": "cast_expression", "text": "(id)metadataDefinitionsFromPlugins", "parent": 83, "children": [86, 88], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 36}}, {"id": 86, "type": "type_descriptor", "text": "id", "parent": 85, "children": [87], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 87, "type": "type_identifier", "text": "id", "parent": 86, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 88, "type": "identifier", "text": "metadataDefinitionsFromPlugins", "parent": 85, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 36}}, {"id": 89, "type": "ERROR", "text": "- (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(", "parent": null, "children": [90, 96, 97, 98, 99, 100, 101, 102, 103, 104], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 83}}, {"id": 90, "type": "unary_expression", "text": "- (void)observeValueForKeyPath", "parent": 89, "children": [91, 92], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 30}}, {"id": 91, "type": "-", "text": "-", "parent": 90, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 92, "type": "cast_expression", "text": "(void)observeValueForKeyPath", "parent": 90, "children": [93, 95], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 30}}, {"id": 93, "type": "type_descriptor", "text": "void", "parent": 92, "children": [94], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 94, "type": "primitive_type", "text": "void", "parent": 93, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 7}}, {"id": 95, "type": "identifier", "text": "observeValueForKeyPath", "parent": 92, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 30}}, {"id": 96, "type": "identifier", "text": "id", "parent": 89, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 34}}, {"id": 97, "type": "type_identifier", "text": "arg1", "parent": 89, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 39}}, {"id": 98, "type": "identifier", "text": "ofObject", "parent": 89, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 48}}, {"id": 99, "type": "identifier", "text": "id", "parent": 89, "children": [], "start_point": {"row": 28, "column": 50}, "end_point": {"row": 28, "column": 52}}, {"id": 100, "type": "identifier", "text": "arg2", "parent": 89, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 57}}, {"id": 101, "type": "identifier", "text": "change", "parent": 89, "children": [], "start_point": {"row": 28, "column": 58}, "end_point": {"row": 28, "column": 64}}, {"id": 102, "type": "identifier", "text": "id", "parent": 89, "children": [], "start_point": {"row": 28, "column": 66}, "end_point": {"row": 28, "column": 68}}, {"id": 103, "type": "identifier", "text": "arg3", "parent": 89, "children": [], "start_point": {"row": 28, "column": 69}, "end_point": {"row": 28, "column": 73}}, {"id": 104, "type": "identifier", "text": "context", "parent": 89, "children": [], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 81}}, {"id": 105, "type": "declaration", "text": "void *)arg4;", "parent": null, "children": [106, 107], "start_point": {"row": 28, "column": 83}, "end_point": {"row": 28, "column": 95}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 28, "column": 83}, "end_point": {"row": 28, "column": 87}}, {"id": 107, "type": "pointer_declarator", "text": "*)arg4", "parent": 105, "children": [108, 109], "start_point": {"row": 28, "column": 88}, "end_point": {"row": 28, "column": 94}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 28, "column": 88}, "end_point": {"row": 28, "column": 89}}, {"id": 109, "type": "identifier", "text": "arg4", "parent": 107, "children": [], "start_point": {"row": 28, "column": 90}, "end_point": {"row": 28, "column": 94}}, {"id": 110, "type": "unary_expression", "text": "- (id)arrayProxyForVolume", "parent": null, "children": [111, 112], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 25}}, {"id": 111, "type": "-", "text": "-", "parent": 110, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 112, "type": "cast_expression", "text": "(id)arrayProxyForVolume", "parent": 110, "children": [113, 115], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 25}}, {"id": 113, "type": "type_descriptor", "text": "id", "parent": 112, "children": [114], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 114, "type": "type_identifier", "text": "id", "parent": 113, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 115, "type": "identifier", "text": "arrayProxyForVolume", "parent": 112, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 25}}, {"id": 116, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [117, 118], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 34}}, {"id": 117, "type": "identifier", "text": "id", "parent": 116, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 29}}, {"id": 118, "type": "identifier", "text": "arg1", "parent": 116, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 34}}, {"id": 119, "type": "unary_expression", "text": "- (BOOL)shouldAddVolumesSynchronously", "parent": null, "children": [120, 121], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 37}}, {"id": 120, "type": "-", "text": "-", "parent": 119, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 121, "type": "cast_expression", "text": "(BOOL)shouldAddVolumesSynchronously", "parent": 119, "children": [122, 124], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 37}}, {"id": 122, "type": "type_descriptor", "text": "BOOL", "parent": 121, "children": [123], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 123, "type": "type_identifier", "text": "BOOL", "parent": 122, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 7}}, {"id": 124, "type": "identifier", "text": "shouldAddVolumesSynchronously", "parent": 121, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 37}}, {"id": 125, "type": "unary_expression", "text": "- (void)setShouldAddVolumesSynchronously", "parent": null, "children": [126, 127], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 40}}, {"id": 126, "type": "-", "text": "-", "parent": 125, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 127, "type": "cast_expression", "text": "(void)setShouldAddVolumesSynchronously", "parent": 125, "children": [128, 130], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 40}}, {"id": 128, "type": "type_descriptor", "text": "void", "parent": 127, "children": [129], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 7}}, {"id": 130, "type": "identifier", "text": "setShouldAddVolumesSynchronously", "parent": 127, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 40}}, {"id": 131, "type": "ERROR", "text": ":(BOOL)arg1", "parent": null, "children": [132, 133], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 51}}, {"id": 132, "type": "identifier", "text": "BOOL", "parent": 131, "children": [], "start_point": {"row": 31, "column": 42}, "end_point": {"row": 31, "column": 46}}, {"id": 133, "type": "identifier", "text": "arg1", "parent": 131, "children": [], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 51}}, {"id": 134, "type": "unary_expression", "text": "- (void)setPluginManager", "parent": null, "children": [135, 136], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 24}}, {"id": 135, "type": "-", "text": "-", "parent": 134, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 136, "type": "cast_expression", "text": "(void)setPluginManager", "parent": 134, "children": [137, 139], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 24}}, {"id": 137, "type": "type_descriptor", "text": "void", "parent": 136, "children": [138], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 138, "type": "primitive_type", "text": "void", "parent": 137, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 7}}, {"id": 139, "type": "identifier", "text": "setPluginManager", "parent": 136, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 24}}, {"id": 140, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [141, 142], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 33}}, {"id": 141, "type": "identifier", "text": "id", "parent": 140, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 28}}, {"id": 142, "type": "identifier", "text": "arg1", "parent": 140, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 33}}, {"id": 143, "type": "unary_expression", "text": "- (id)undoManager", "parent": null, "children": [144, 145], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 17}}, {"id": 144, "type": "-", "text": "-", "parent": 143, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 145, "type": "cast_expression", "text": "(id)undoManager", "parent": 143, "children": [146, 148], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 17}}, {"id": 146, "type": "type_descriptor", "text": "id", "parent": 145, "children": [147], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 147, "type": "type_identifier", "text": "id", "parent": 146, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 5}}, {"id": 148, "type": "identifier", "text": "undoManager", "parent": 145, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 17}}, {"id": 149, "type": "unary_expression", "text": "- (void)setUndoManager", "parent": null, "children": [150, 151], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 22}}, {"id": 150, "type": "-", "text": "-", "parent": 149, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 151, "type": "cast_expression", "text": "(void)setUndoManager", "parent": 149, "children": [152, 154], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 22}}, {"id": 152, "type": "type_descriptor", "text": "void", "parent": 151, "children": [153], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 154, "type": "identifier", "text": "setUndoManager", "parent": 151, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 22}}, {"id": 155, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [156, 157], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 31}}, {"id": 156, "type": "identifier", "text": "id", "parent": 155, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 26}}, {"id": 157, "type": "identifier", "text": "arg1", "parent": 155, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 31}}, {"id": 158, "type": "unary_expression", "text": "- (void)removeListOfSpannedClips", "parent": null, "children": [159, 160], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 32}}, {"id": 159, "type": "-", "text": "-", "parent": 158, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 160, "type": "cast_expression", "text": "(void)removeListOfSpannedClips", "parent": 158, "children": [161, 163], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 32}}, {"id": 161, "type": "type_descriptor", "text": "void", "parent": 160, "children": [162], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 162, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 163, "type": "identifier", "text": "removeListOfSpannedClips", "parent": 160, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 32}}, {"id": 164, "type": "unary_expression", "text": "- (void)pluginVolumesInvalid", "parent": null, "children": [165, 166], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 28}}, {"id": 165, "type": "-", "text": "-", "parent": 164, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 166, "type": "cast_expression", "text": "(void)pluginVolumesInvalid", "parent": 164, "children": [167, 169], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 28}}, {"id": 167, "type": "type_descriptor", "text": "void", "parent": 166, "children": [168], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 168, "type": "primitive_type", "text": "void", "parent": 167, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 169, "type": "identifier", "text": "pluginVolumesInvalid", "parent": 166, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 28}}, {"id": 170, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [171, 172], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 37}}, {"id": 171, "type": "identifier", "text": "id", "parent": 170, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 32}}, {"id": 172, "type": "identifier", "text": "arg1", "parent": 170, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 37}}, {"id": 173, "type": "unary_expression", "text": "- (void)addPluginVolumes", "parent": null, "children": [174, 175], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 24}}, {"id": 174, "type": "-", "text": "-", "parent": 173, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 175, "type": "cast_expression", "text": "(void)addPluginVolumes", "parent": 173, "children": [176, 178], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 24}}, {"id": 176, "type": "type_descriptor", "text": "void", "parent": 175, "children": [177], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 177, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 37, "column": 3}, "end_point": {"row": 37, "column": 7}}, {"id": 178, "type": "identifier", "text": "addPluginVolumes", "parent": 175, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 24}}, {"id": 179, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [180, 181], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 33}}, {"id": 180, "type": "identifier", "text": "id", "parent": 179, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 28}}, {"id": 181, "type": "identifier", "text": "arg1", "parent": 179, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 33}}, {"id": 182, "type": "unary_expression", "text": "- (void)volumeDidUnmount", "parent": null, "children": [183, 184], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 24}}, {"id": 183, "type": "-", "text": "-", "parent": 182, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 184, "type": "cast_expression", "text": "(void)volumeDidUnmount", "parent": 182, "children": [185, 187], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 24}}, {"id": 185, "type": "type_descriptor", "text": "void", "parent": 184, "children": [186], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 186, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 187, "type": "identifier", "text": "volumeDidUnmount", "parent": 184, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 24}}, {"id": 188, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [189, 190], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 33}}, {"id": 189, "type": "identifier", "text": "id", "parent": 188, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 28}}, {"id": 190, "type": "identifier", "text": "arg1", "parent": 188, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 33}}, {"id": 191, "type": "unary_expression", "text": "- (void)volumeWillUnmount", "parent": null, "children": [192, 193], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 25}}, {"id": 192, "type": "-", "text": "-", "parent": 191, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 193, "type": "cast_expression", "text": "(void)volumeWillUnmount", "parent": 191, "children": [194, 196], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 25}}, {"id": 194, "type": "type_descriptor", "text": "void", "parent": 193, "children": [195], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 7}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 39, "column": 3}, "end_point": {"row": 39, "column": 7}}, {"id": 196, "type": "identifier", "text": "volumeWillUnmount", "parent": 193, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 25}}, {"id": 197, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [198, 199], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 34}}, {"id": 198, "type": "identifier", "text": "id", "parent": 197, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 29}}, {"id": 199, "type": "identifier", "text": "arg1", "parent": 197, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 200, "type": "unary_expression", "text": "- (void)volumeDidMount", "parent": null, "children": [201, 202], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 22}}, {"id": 201, "type": "-", "text": "-", "parent": 200, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 202, "type": "cast_expression", "text": "(void)volumeDidMount", "parent": 200, "children": [203, 205], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 22}}, {"id": 203, "type": "type_descriptor", "text": "void", "parent": 202, "children": [204], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 204, "type": "primitive_type", "text": "void", "parent": 203, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 205, "type": "identifier", "text": "volumeDidMount", "parent": 202, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 22}}, {"id": 206, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [207, 208], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 31}}, {"id": 207, "type": "identifier", "text": "id", "parent": 206, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 26}}, {"id": 208, "type": "identifier", "text": "arg1", "parent": 206, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 31}}, {"id": 209, "type": "unary_expression", "text": "- (void)iOSDeviceDidUnmount", "parent": null, "children": [210, 211], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 27}}, {"id": 210, "type": "-", "text": "-", "parent": 209, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 211, "type": "cast_expression", "text": "(void)iOSDeviceDidUnmount", "parent": 209, "children": [212, 214], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 27}}, {"id": 212, "type": "type_descriptor", "text": "void", "parent": 211, "children": [213], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 7}}, {"id": 213, "type": "primitive_type", "text": "void", "parent": 212, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 7}}, {"id": 214, "type": "identifier", "text": "iOSDeviceDidUnmount", "parent": 211, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 27}}, {"id": 215, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [216, 217], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 36}}, {"id": 216, "type": "identifier", "text": "id", "parent": 215, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 31}}, {"id": 217, "type": "identifier", "text": "arg1", "parent": 215, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 36}}, {"id": 218, "type": "unary_expression", "text": "- (void)iOSDeviceDidMount", "parent": null, "children": [219, 220], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 25}}, {"id": 219, "type": "-", "text": "-", "parent": 218, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 220, "type": "cast_expression", "text": "(void)iOSDeviceDidMount", "parent": 218, "children": [221, 223], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 25}}, {"id": 221, "type": "type_descriptor", "text": "void", "parent": 220, "children": [222], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 7}}, {"id": 222, "type": "primitive_type", "text": "void", "parent": 221, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 7}}, {"id": 223, "type": "identifier", "text": "iOSDeviceDidMount", "parent": 220, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 25}}, {"id": 224, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [225, 226], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 34}}, {"id": 225, "type": "identifier", "text": "id", "parent": 224, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 29}}, {"id": 226, "type": "identifier", "text": "arg1", "parent": 224, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 34}}, {"id": 227, "type": "ERROR", "text": "- (void)_broadcastToPluginsWithName:(id)", "parent": null, "children": [228, 234], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 40}}, {"id": 228, "type": "unary_expression", "text": "- (void)_broadcastToPluginsWithName", "parent": 227, "children": [229, 230], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 35}}, {"id": 229, "type": "-", "text": "-", "parent": 228, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 230, "type": "cast_expression", "text": "(void)_broadcastToPluginsWithName", "parent": 228, "children": [231, 233], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 35}}, {"id": 231, "type": "type_descriptor", "text": "void", "parent": 230, "children": [232], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 7}}, {"id": 232, "type": "primitive_type", "text": "void", "parent": 231, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 7}}, {"id": 233, "type": "identifier", "text": "_broadcastToPluginsWithName", "parent": 230, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 35}}, {"id": 234, "type": "identifier", "text": "id", "parent": 227, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 39}}, {"id": 235, "type": "declaration", "text": "arg1 path:(id)arg2;", "parent": null, "children": [236, 237, 238], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 59}}, {"id": 236, "type": "type_identifier", "text": "arg1", "parent": 235, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 44}}, {"id": 237, "type": "identifier", "text": "path", "parent": 235, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 49}}, {"id": 238, "type": "ERROR", "text": ":(id)arg2", "parent": 235, "children": [239, 240], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 58}}, {"id": 239, "type": "identifier", "text": "id", "parent": 238, "children": [], "start_point": {"row": 43, "column": 51}, "end_point": {"row": 43, "column": 53}}, {"id": 240, "type": "identifier", "text": "arg2", "parent": 238, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 58}}, {"id": 241, "type": "unary_expression", "text": "- (void)iOSDeviceMountingFailed", "parent": null, "children": [242, 243], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 31}}, {"id": 242, "type": "-", "text": "-", "parent": 241, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 243, "type": "cast_expression", "text": "(void)iOSDeviceMountingFailed", "parent": 241, "children": [244, 246], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 31}}, {"id": 244, "type": "type_descriptor", "text": "void", "parent": 243, "children": [245], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 245, "type": "primitive_type", "text": "void", "parent": 244, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 246, "type": "identifier", "text": "iOSDeviceMountingFailed", "parent": 243, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 31}}, {"id": 247, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [248, 249], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 40}}, {"id": 248, "type": "identifier", "text": "id", "parent": 247, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 35}}, {"id": 249, "type": "identifier", "text": "arg1", "parent": 247, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 40}}, {"id": 250, "type": "unary_expression", "text": "- (unsigned int)volumeCount", "parent": null, "children": [251, 252], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 27}}, {"id": 251, "type": "-", "text": "-", "parent": 250, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 252, "type": "cast_expression", "text": "(unsigned int)volumeCount", "parent": 250, "children": [253, 257], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 27}}, {"id": 253, "type": "type_descriptor", "text": "unsigned int", "parent": 252, "children": [254], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 15}}, {"id": 254, "type": "sized_type_specifier", "text": "unsigned int", "parent": 253, "children": [255, 256], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 15}}, {"id": 255, "type": "unsigned", "text": "unsigned", "parent": 254, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 11}}, {"id": 256, "type": "primitive_type", "text": "int", "parent": 254, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 15}}, {"id": 257, "type": "identifier", "text": "volumeCount", "parent": 252, "children": [], "start_point": {"row": 45, "column": 16}, "end_point": {"row": 45, "column": 27}}, {"id": 258, "type": "unary_expression", "text": "- (unsigned int)volumeIndex", "parent": null, "children": [259, 260], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 27}}, {"id": 259, "type": "-", "text": "-", "parent": 258, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 260, "type": "cast_expression", "text": "(unsigned int)volumeIndex", "parent": 258, "children": [261, 265], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 27}}, {"id": 261, "type": "type_descriptor", "text": "unsigned int", "parent": 260, "children": [262], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 15}}, {"id": 262, "type": "sized_type_specifier", "text": "unsigned int", "parent": 261, "children": [263, 264], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 15}}, {"id": 263, "type": "unsigned", "text": "unsigned", "parent": 262, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 11}}, {"id": 264, "type": "primitive_type", "text": "int", "parent": 262, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 15}}, {"id": 265, "type": "identifier", "text": "volumeIndex", "parent": 260, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 27}}, {"id": 266, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [267, 268], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 36}}, {"id": 267, "type": "identifier", "text": "id", "parent": 266, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 31}}, {"id": 268, "type": "identifier", "text": "arg1", "parent": 266, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 36}}, {"id": 269, "type": "ERROR", "text": "- (id)volumeAtIndex:(", "parent": null, "children": [270], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 21}}, {"id": 270, "type": "unary_expression", "text": "- (id)volumeAtIndex", "parent": 269, "children": [271, 272], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 19}}, {"id": 271, "type": "-", "text": "-", "parent": 270, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 272, "type": "cast_expression", "text": "(id)volumeAtIndex", "parent": 270, "children": [273, 275], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 19}}, {"id": 273, "type": "type_descriptor", "text": "id", "parent": 272, "children": [274], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 5}}, {"id": 274, "type": "type_identifier", "text": "id", "parent": 273, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 5}}, {"id": 275, "type": "identifier", "text": "volumeAtIndex", "parent": 272, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 19}}, {"id": 276, "type": "declaration", "text": "unsigned int)arg1;", "parent": null, "children": [277, 280], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 39}}, {"id": 277, "type": "sized_type_specifier", "text": "unsigned int", "parent": 276, "children": [278, 279], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 33}}, {"id": 278, "type": "unsigned", "text": "unsigned", "parent": 277, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 29}}, {"id": 279, "type": "primitive_type", "text": "int", "parent": 277, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 33}}, {"id": 280, "type": "identifier", "text": "arg1", "parent": 276, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 38}}, {"id": 281, "type": "unary_expression", "text": "- (id)spannedClips", "parent": null, "children": [282, 283], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 18}}, {"id": 282, "type": "-", "text": "-", "parent": 281, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 283, "type": "cast_expression", "text": "(id)spannedClips", "parent": 281, "children": [284, 286], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 18}}, {"id": 284, "type": "type_descriptor", "text": "id", "parent": 283, "children": [285], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 5}}, {"id": 285, "type": "type_identifier", "text": "id", "parent": 284, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 5}}, {"id": 286, "type": "identifier", "text": "spannedClips", "parent": 283, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 18}}, {"id": 287, "type": "unary_expression", "text": "- (id)clips", "parent": null, "children": [288, 289], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 11}}, {"id": 288, "type": "-", "text": "-", "parent": 287, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 289, "type": "cast_expression", "text": "(id)clips", "parent": 287, "children": [290, 292], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 11}}, {"id": 290, "type": "type_descriptor", "text": "id", "parent": 289, "children": [291], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 5}}, {"id": 291, "type": "type_identifier", "text": "id", "parent": 290, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 5}}, {"id": 292, "type": "identifier", "text": "clips", "parent": 289, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 11}}, {"id": 293, "type": "unary_expression", "text": "- (id)volumes", "parent": null, "children": [294, 295], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 13}}, {"id": 294, "type": "-", "text": "-", "parent": 293, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 295, "type": "cast_expression", "text": "(id)volumes", "parent": 293, "children": [296, 298], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 13}}, {"id": 296, "type": "type_descriptor", "text": "id", "parent": 295, "children": [297], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 5}}, {"id": 297, "type": "type_identifier", "text": "id", "parent": 296, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 5}}, {"id": 298, "type": "identifier", "text": "volumes", "parent": 295, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 13}}, {"id": 299, "type": "unary_expression", "text": "- (void)removeListOfRADVolumes", "parent": null, "children": [300, 301], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 30}}, {"id": 300, "type": "-", "text": "-", "parent": 299, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 301, "type": "cast_expression", "text": "(void)removeListOfRADVolumes", "parent": 299, "children": [302, 304], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 30}}, {"id": 302, "type": "type_descriptor", "text": "void", "parent": 301, "children": [303], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 303, "type": "primitive_type", "text": "void", "parent": 302, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 304, "type": "identifier", "text": "removeListOfRADVolumes", "parent": 301, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 30}}, {"id": 305, "type": "unary_expression", "text": "- (BOOL)removeVolume", "parent": null, "children": [306, 307], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 20}}, {"id": 306, "type": "-", "text": "-", "parent": 305, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 307, "type": "cast_expression", "text": "(BOOL)removeVolume", "parent": 305, "children": [308, 310], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 20}}, {"id": 308, "type": "type_descriptor", "text": "BOOL", "parent": 307, "children": [309], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 309, "type": "type_identifier", "text": "BOOL", "parent": 308, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 310, "type": "identifier", "text": "removeVolume", "parent": 307, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 20}}, {"id": 311, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [312, 313], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 29}}, {"id": 312, "type": "identifier", "text": "id", "parent": 311, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 24}}, {"id": 313, "type": "identifier", "text": "arg1", "parent": 311, "children": [], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 29}}, {"id": 314, "type": "unary_expression", "text": "- (void)mountiOSDevicesSynchronously", "parent": null, "children": [315, 316], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 36}}, {"id": 315, "type": "-", "text": "-", "parent": 314, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 316, "type": "cast_expression", "text": "(void)mountiOSDevicesSynchronously", "parent": 314, "children": [317, 319], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 36}}, {"id": 317, "type": "type_descriptor", "text": "void", "parent": 316, "children": [318], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 318, "type": "primitive_type", "text": "void", "parent": 317, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 319, "type": "identifier", "text": "mountiOSDevicesSynchronously", "parent": 316, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 36}}, {"id": 320, "type": "unary_expression", "text": "- (void)scanForiOSDevices", "parent": null, "children": [321, 322], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 25}}, {"id": 321, "type": "-", "text": "-", "parent": 320, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 322, "type": "cast_expression", "text": "(void)scanForiOSDevices", "parent": 320, "children": [323, 325], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 25}}, {"id": 323, "type": "type_descriptor", "text": "void", "parent": 322, "children": [324], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 324, "type": "primitive_type", "text": "void", "parent": 323, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 325, "type": "identifier", "text": "scanForiOSDevices", "parent": 322, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 25}}, {"id": 326, "type": "unary_expression", "text": "- (void)removeClipFromFlatClipsArray", "parent": null, "children": [327, 328], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 36}}, {"id": 327, "type": "-", "text": "-", "parent": 326, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 328, "type": "cast_expression", "text": "(void)removeClipFromFlatClipsArray", "parent": 326, "children": [329, 331], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 36}}, {"id": 329, "type": "type_descriptor", "text": "void", "parent": 328, "children": [330], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 330, "type": "primitive_type", "text": "void", "parent": 329, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 331, "type": "identifier", "text": "removeClipFromFlatClipsArray", "parent": 328, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 36}}, {"id": 332, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [333, 334], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 45}}, {"id": 333, "type": "identifier", "text": "id", "parent": 332, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 40}}, {"id": 334, "type": "identifier", "text": "arg1", "parent": 332, "children": [], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 45}}, {"id": 335, "type": "unary_expression", "text": "- (void)postVolumeFailedToMount", "parent": null, "children": [336, 337], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 31}}, {"id": 336, "type": "-", "text": "-", "parent": 335, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 1}}, {"id": 337, "type": "cast_expression", "text": "(void)postVolumeFailedToMount", "parent": 335, "children": [338, 340], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 31}}, {"id": 338, "type": "type_descriptor", "text": "void", "parent": 337, "children": [339], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 7}}, {"id": 339, "type": "primitive_type", "text": "void", "parent": 338, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 7}}, {"id": 340, "type": "identifier", "text": "postVolumeFailedToMount", "parent": 337, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 31}}, {"id": 341, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [342, 343], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 40}}, {"id": 342, "type": "identifier", "text": "id", "parent": 341, "children": [], "start_point": {"row": 56, "column": 33}, "end_point": {"row": 56, "column": 35}}, {"id": 343, "type": "identifier", "text": "arg1", "parent": 341, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 40}}, {"id": 344, "type": "unary_expression", "text": "- (void)postVolumeNotRecognized", "parent": null, "children": [345, 346], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 31}}, {"id": 345, "type": "-", "text": "-", "parent": 344, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 346, "type": "cast_expression", "text": "(void)postVolumeNotRecognized", "parent": 344, "children": [347, 349], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 31}}, {"id": 347, "type": "type_descriptor", "text": "void", "parent": 346, "children": [348], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 348, "type": "primitive_type", "text": "void", "parent": 347, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 349, "type": "identifier", "text": "postVolumeNotRecognized", "parent": 346, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 31}}, {"id": 350, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [351, 352], "start_point": {"row": 57, "column": 31}, "end_point": {"row": 57, "column": 40}}, {"id": 351, "type": "identifier", "text": "id", "parent": 350, "children": [], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 35}}, {"id": 352, "type": "identifier", "text": "arg1", "parent": 350, "children": [], "start_point": {"row": 57, "column": 36}, "end_point": {"row": 57, "column": 40}}, {"id": 353, "type": "unary_expression", "text": "- (void)postVolumeExists", "parent": null, "children": [354, 355], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 24}}, {"id": 354, "type": "-", "text": "-", "parent": 353, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 355, "type": "cast_expression", "text": "(void)postVolumeExists", "parent": 353, "children": [356, 358], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 24}}, {"id": 356, "type": "type_descriptor", "text": "void", "parent": 355, "children": [357], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 7}}, {"id": 357, "type": "primitive_type", "text": "void", "parent": 356, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 7}}, {"id": 358, "type": "identifier", "text": "postVolumeExists", "parent": 355, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 24}}, {"id": 359, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [360, 361], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 33}}, {"id": 360, "type": "identifier", "text": "id", "parent": 359, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 28}}, {"id": 361, "type": "identifier", "text": "arg1", "parent": 359, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 33}}, {"id": 362, "type": "unary_expression", "text": "- (void)replaceTempVolumeWithVolume", "parent": null, "children": [363, 364], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 35}}, {"id": 363, "type": "-", "text": "-", "parent": 362, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 364, "type": "cast_expression", "text": "(void)replaceTempVolumeWithVolume", "parent": 362, "children": [365, 367], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 35}}, {"id": 365, "type": "type_descriptor", "text": "void", "parent": 364, "children": [366], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 7}}, {"id": 366, "type": "primitive_type", "text": "void", "parent": 365, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 7}}, {"id": 367, "type": "identifier", "text": "replaceTempVolumeWithVolume", "parent": 364, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 35}}, {"id": 368, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [369, 370], "start_point": {"row": 59, "column": 35}, "end_point": {"row": 59, "column": 44}}, {"id": 369, "type": "identifier", "text": "id", "parent": 368, "children": [], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 39}}, {"id": 370, "type": "identifier", "text": "arg1", "parent": 368, "children": [], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 44}}, {"id": 371, "type": "unary_expression", "text": "- (BOOL)addVolume", "parent": null, "children": [372, 373], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 17}}, {"id": 372, "type": "-", "text": "-", "parent": 371, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 373, "type": "cast_expression", "text": "(BOOL)addVolume", "parent": 371, "children": [374, 376], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 17}}, {"id": 374, "type": "type_descriptor", "text": "BOOL", "parent": 373, "children": [375], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 7}}, {"id": 375, "type": "type_identifier", "text": "BOOL", "parent": 374, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 7}}, {"id": 376, "type": "identifier", "text": "addVolume", "parent": 373, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 17}}, {"id": 377, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [378, 379], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 26}}, {"id": 378, "type": "identifier", "text": "id", "parent": 377, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 21}}, {"id": 379, "type": "identifier", "text": "arg1", "parent": 377, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 26}}, {"id": 380, "type": "ERROR", "text": "- (BOOL)replaceVolume:(id)", "parent": null, "children": [381, 387], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 26}}, {"id": 381, "type": "unary_expression", "text": "- (BOOL)replaceVolume", "parent": 380, "children": [382, 383], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 21}}, {"id": 382, "type": "-", "text": "-", "parent": 381, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 383, "type": "cast_expression", "text": "(BOOL)replaceVolume", "parent": 381, "children": [384, 386], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 21}}, {"id": 384, "type": "type_descriptor", "text": "BOOL", "parent": 383, "children": [385], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 7}}, {"id": 385, "type": "type_identifier", "text": "BOOL", "parent": 384, "children": [], "start_point": {"row": 61, "column": 3}, "end_point": {"row": 61, "column": 7}}, {"id": 386, "type": "identifier", "text": "replaceVolume", "parent": 383, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 21}}, {"id": 387, "type": "identifier", "text": "id", "parent": 380, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 25}}, {"id": 388, "type": "declaration", "text": "arg1 withVolume:(id)arg2;", "parent": null, "children": [389, 390, 391], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 51}}, {"id": 389, "type": "type_identifier", "text": "arg1", "parent": 388, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 30}}, {"id": 390, "type": "identifier", "text": "withVolume", "parent": 388, "children": [], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 41}}, {"id": 391, "type": "ERROR", "text": ":(id)arg2", "parent": 388, "children": [392, 393], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 50}}, {"id": 392, "type": "identifier", "text": "id", "parent": 391, "children": [], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 45}}, {"id": 393, "type": "identifier", "text": "arg2", "parent": 391, "children": [], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 50}}, {"id": 394, "type": "unary_expression", "text": "- (void)removeTempVolumeForPath", "parent": null, "children": [395, 396], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 31}}, {"id": 395, "type": "-", "text": "-", "parent": 394, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 396, "type": "cast_expression", "text": "(void)removeTempVolumeForPath", "parent": 394, "children": [397, 399], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 31}}, {"id": 397, "type": "type_descriptor", "text": "void", "parent": 396, "children": [398], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 398, "type": "primitive_type", "text": "void", "parent": 397, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 399, "type": "identifier", "text": "removeTempVolumeForPath", "parent": 396, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 31}}, {"id": 400, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [401, 402], "start_point": {"row": 62, "column": 31}, "end_point": {"row": 62, "column": 40}}, {"id": 401, "type": "identifier", "text": "id", "parent": 400, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 35}}, {"id": 402, "type": "identifier", "text": "arg1", "parent": 400, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 40}}, {"id": 403, "type": "unary_expression", "text": "- (void)addTempVolume", "parent": null, "children": [404, 405], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 21}}, {"id": 404, "type": "-", "text": "-", "parent": 403, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 405, "type": "cast_expression", "text": "(void)addTempVolume", "parent": 403, "children": [406, 408], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 21}}, {"id": 406, "type": "type_descriptor", "text": "void", "parent": 405, "children": [407], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 7}}, {"id": 407, "type": "primitive_type", "text": "void", "parent": 406, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 7}}, {"id": 408, "type": "identifier", "text": "addTempVolume", "parent": 405, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 21}}, {"id": 409, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [410, 411], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 30}}, {"id": 410, "type": "identifier", "text": "id", "parent": 409, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 25}}, {"id": 411, "type": "identifier", "text": "arg1", "parent": 409, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 30}}, {"id": 412, "type": "unary_expression", "text": "- (void)addVolumesForPaths", "parent": null, "children": [413, 414], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 26}}, {"id": 413, "type": "-", "text": "-", "parent": 412, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 414, "type": "cast_expression", "text": "(void)addVolumesForPaths", "parent": 412, "children": [415, 417], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 26}}, {"id": 415, "type": "type_descriptor", "text": "void", "parent": 414, "children": [416], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 416, "type": "primitive_type", "text": "void", "parent": 415, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 417, "type": "identifier", "text": "addVolumesForPaths", "parent": 414, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 26}}, {"id": 418, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [419, 420], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 35}}, {"id": 419, "type": "identifier", "text": "id", "parent": 418, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 30}}, {"id": 420, "type": "identifier", "text": "arg1", "parent": 418, "children": [], "start_point": {"row": 64, "column": 31}, "end_point": {"row": 64, "column": 35}}, {"id": 421, "type": "unary_expression", "text": "- (void)addVolumeForPath", "parent": null, "children": [422, 423], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 24}}, {"id": 422, "type": "-", "text": "-", "parent": 421, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 423, "type": "cast_expression", "text": "(void)addVolumeForPath", "parent": 421, "children": [424, 426], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 24}}, {"id": 424, "type": "type_descriptor", "text": "void", "parent": 423, "children": [425], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 425, "type": "primitive_type", "text": "void", "parent": 424, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 426, "type": "identifier", "text": "addVolumeForPath", "parent": 423, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 24}}, {"id": 427, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [428, 429], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 33}}, {"id": 428, "type": "identifier", "text": "id", "parent": 427, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 28}}, {"id": 429, "type": "identifier", "text": "arg1", "parent": 427, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 33}}, {"id": 430, "type": "unary_expression", "text": "- (BOOL)pathIsValidVolume", "parent": null, "children": [431, 432], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 25}}, {"id": 431, "type": "-", "text": "-", "parent": 430, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 432, "type": "cast_expression", "text": "(BOOL)pathIsValidVolume", "parent": 430, "children": [433, 435], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 25}}, {"id": 433, "type": "type_descriptor", "text": "BOOL", "parent": 432, "children": [434], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 7}}, {"id": 434, "type": "type_identifier", "text": "BOOL", "parent": 433, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 7}}, {"id": 435, "type": "identifier", "text": "pathIsValidVolume", "parent": 432, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 25}}, {"id": 436, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [437, 438], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 34}}, {"id": 437, "type": "identifier", "text": "id", "parent": 436, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 29}}, {"id": 438, "type": "identifier", "text": "arg1", "parent": 436, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 34}}, {"id": 439, "type": "ERROR", "text": "- (BOOL)doesPath:(id)", "parent": null, "children": [440, 446], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 21}}, {"id": 440, "type": "unary_expression", "text": "- (BOOL)doesPath", "parent": 439, "children": [441, 442], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 16}}, {"id": 441, "type": "-", "text": "-", "parent": 440, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 442, "type": "cast_expression", "text": "(BOOL)doesPath", "parent": 440, "children": [443, 445], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 16}}, {"id": 443, "type": "type_descriptor", "text": "BOOL", "parent": 442, "children": [444], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 7}}, {"id": 444, "type": "type_identifier", "text": "BOOL", "parent": 443, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 7}}, {"id": 445, "type": "identifier", "text": "doesPath", "parent": 442, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 16}}, {"id": 446, "type": "identifier", "text": "id", "parent": 439, "children": [], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 20}}, {"id": 447, "type": "declaration", "text": "arg1 containSomeOfClipsWithUIDs:(id)arg2;", "parent": null, "children": [448, 449, 450], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 62}}, {"id": 448, "type": "type_identifier", "text": "arg1", "parent": 447, "children": [], "start_point": {"row": 67, "column": 21}, "end_point": {"row": 67, "column": 25}}, {"id": 449, "type": "identifier", "text": "containSomeOfClipsWithUIDs", "parent": 447, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 52}}, {"id": 450, "type": "ERROR", "text": ":(id)arg2", "parent": 447, "children": [451, 452], "start_point": {"row": 67, "column": 52}, "end_point": {"row": 67, "column": 61}}, {"id": 451, "type": "identifier", "text": "id", "parent": 450, "children": [], "start_point": {"row": 67, "column": 54}, "end_point": {"row": 67, "column": 56}}, {"id": 452, "type": "identifier", "text": "arg2", "parent": 450, "children": [], "start_point": {"row": 67, "column": 57}, "end_point": {"row": 67, "column": 61}}, {"id": 453, "type": "ERROR", "text": "- (BOOL)volumeExistsAtPath:(id)", "parent": null, "children": [454, 460], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 31}}, {"id": 454, "type": "unary_expression", "text": "- (BOOL)volumeExistsAtPath", "parent": 453, "children": [455, 456], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 26}}, {"id": 455, "type": "-", "text": "-", "parent": 454, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 456, "type": "cast_expression", "text": "(BOOL)volumeExistsAtPath", "parent": 454, "children": [457, 459], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 26}}, {"id": 457, "type": "type_descriptor", "text": "BOOL", "parent": 456, "children": [458], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 7}}, {"id": 458, "type": "type_identifier", "text": "BOOL", "parent": 457, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 7}}, {"id": 459, "type": "identifier", "text": "volumeExistsAtPath", "parent": 456, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 26}}, {"id": 460, "type": "identifier", "text": "id", "parent": 453, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 30}}, {"id": 461, "type": "declaration", "text": "arg1 checkMountingVolumes:(BOOL)arg2 withPluginID:(id)arg3;", "parent": null, "children": [462, 463, 469], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 90}}, {"id": 462, "type": "type_identifier", "text": "arg1", "parent": 461, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 35}}, {"id": 463, "type": "ERROR", "text": "checkMountingVolumes:(BOOL)arg2 withPluginID:(id)", "parent": 461, "children": [464, 465, 466, 467, 468], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 85}}, {"id": 464, "type": "identifier", "text": "checkMountingVolumes", "parent": 463, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 56}}, {"id": 465, "type": "identifier", "text": "BOOL", "parent": 463, "children": [], "start_point": {"row": 68, "column": 58}, "end_point": {"row": 68, "column": 62}}, {"id": 466, "type": "identifier", "text": "arg2", "parent": 463, "children": [], "start_point": {"row": 68, "column": 63}, "end_point": {"row": 68, "column": 67}}, {"id": 467, "type": "identifier", "text": "withPluginID", "parent": 463, "children": [], "start_point": {"row": 68, "column": 68}, "end_point": {"row": 68, "column": 80}}, {"id": 468, "type": "identifier", "text": "id", "parent": 463, "children": [], "start_point": {"row": 68, "column": 82}, "end_point": {"row": 68, "column": 84}}, {"id": 469, "type": "identifier", "text": "arg3", "parent": 461, "children": [], "start_point": {"row": 68, "column": 85}, "end_point": {"row": 68, "column": 89}}, {"id": 470, "type": "unary_expression", "text": "- (id)extendedClipProperties", "parent": null, "children": [471, 472], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 28}}, {"id": 471, "type": "-", "text": "-", "parent": 470, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 472, "type": "cast_expression", "text": "(id)extendedClipProperties", "parent": 470, "children": [473, 475], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 28}}, {"id": 473, "type": "type_descriptor", "text": "id", "parent": 472, "children": [474], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 5}}, {"id": 474, "type": "type_identifier", "text": "id", "parent": 473, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 5}}, {"id": 475, "type": "identifier", "text": "extendedClipProperties", "parent": 472, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 28}}, {"id": 476, "type": "unary_expression", "text": "- (BOOL)shouldMountSynchronously", "parent": null, "children": [477, 478], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 32}}, {"id": 477, "type": "-", "text": "-", "parent": 476, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 478, "type": "cast_expression", "text": "(BOOL)shouldMountSynchronously", "parent": 476, "children": [479, 481], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 32}}, {"id": 479, "type": "type_descriptor", "text": "BOOL", "parent": 478, "children": [480], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 7}}, {"id": 480, "type": "type_identifier", "text": "BOOL", "parent": 479, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 7}}, {"id": 481, "type": "identifier", "text": "shouldMountSynchronously", "parent": 478, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 32}}, {"id": 482, "type": "unary_expression", "text": "- (id)clipForInProgressSubSegment", "parent": null, "children": [483, 484], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 33}}, {"id": 483, "type": "-", "text": "-", "parent": 482, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 484, "type": "cast_expression", "text": "(id)clipForInProgressSubSegment", "parent": 482, "children": [485, 487], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 33}}, {"id": 485, "type": "type_descriptor", "text": "id", "parent": 484, "children": [486], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 5}}, {"id": 486, "type": "type_identifier", "text": "id", "parent": 485, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 5}}, {"id": 487, "type": "identifier", "text": "clipForInProgressSubSegment", "parent": 484, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 33}}, {"id": 488, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [489, 490], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 42}}, {"id": 489, "type": "identifier", "text": "id", "parent": 488, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 37}}, {"id": 490, "type": "identifier", "text": "arg1", "parent": 488, "children": [], "start_point": {"row": 71, "column": 38}, "end_point": {"row": 71, "column": 42}}, {"id": 491, "type": "unary_expression", "text": "- (id)clipForUID", "parent": null, "children": [492, 493], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 16}}, {"id": 492, "type": "-", "text": "-", "parent": 491, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 493, "type": "cast_expression", "text": "(id)clipForUID", "parent": 491, "children": [494, 496], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 16}}, {"id": 494, "type": "type_descriptor", "text": "id", "parent": 493, "children": [495], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 5}}, {"id": 495, "type": "type_identifier", "text": "id", "parent": 494, "children": [], "start_point": {"row": 72, "column": 3}, "end_point": {"row": 72, "column": 5}}, {"id": 496, "type": "identifier", "text": "clipForUID", "parent": 493, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 16}}, {"id": 497, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [498, 499], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 25}}, {"id": 498, "type": "identifier", "text": "id", "parent": 497, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 20}}, {"id": 499, "type": "identifier", "text": "arg1", "parent": 497, "children": [], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 25}}, {"id": 500, "type": "unary_expression", "text": "- (id)description", "parent": null, "children": [501, 502], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 17}}, {"id": 501, "type": "-", "text": "-", "parent": 500, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 502, "type": "cast_expression", "text": "(id)description", "parent": 500, "children": [503, 505], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 17}}, {"id": 503, "type": "type_descriptor", "text": "id", "parent": 502, "children": [504], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 5}}, {"id": 504, "type": "type_identifier", "text": "id", "parent": 503, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 5}}, {"id": 505, "type": "identifier", "text": "description", "parent": 502, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 17}}, {"id": 506, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [507, 508], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 15}}, {"id": 507, "type": "-", "text": "-", "parent": 506, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 508, "type": "cast_expression", "text": "(void)dealloc", "parent": 506, "children": [509, 511], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 15}}, {"id": 509, "type": "type_descriptor", "text": "void", "parent": 508, "children": [510], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 7}}, {"id": 510, "type": "primitive_type", "text": "void", "parent": 509, "children": [], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 7}}, {"id": 511, "type": "identifier", "text": "dealloc", "parent": 508, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 15}}, {"id": 512, "type": "unary_expression", "text": "- (BOOL)createVolumeListWithPath", "parent": null, "children": [513, 514], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 32}}, {"id": 513, "type": "-", "text": "-", "parent": 512, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 514, "type": "cast_expression", "text": "(BOOL)createVolumeListWithPath", "parent": 512, "children": [515, 517], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 32}}, {"id": 515, "type": "type_descriptor", "text": "BOOL", "parent": 514, "children": [516], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 7}}, {"id": 516, "type": "type_identifier", "text": "BOOL", "parent": 515, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 7}}, {"id": 517, "type": "identifier", "text": "createVolumeListWithPath", "parent": 514, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 32}}, {"id": 518, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [519, 520], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 41}}, {"id": 519, "type": "identifier", "text": "id", "parent": 518, "children": [], "start_point": {"row": 75, "column": 34}, "end_point": {"row": 75, "column": 36}}, {"id": 520, "type": "identifier", "text": "arg1", "parent": 518, "children": [], "start_point": {"row": 75, "column": 37}, "end_point": {"row": 75, "column": 41}}, {"id": 521, "type": "ERROR", "text": "- (void)loadRADPlugins:(id)", "parent": null, "children": [522, 528], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 27}}, {"id": 522, "type": "unary_expression", "text": "- (void)loadRADPlugins", "parent": 521, "children": [523, 524], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 22}}, {"id": 523, "type": "-", "text": "-", "parent": 522, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 1}}, {"id": 524, "type": "cast_expression", "text": "(void)loadRADPlugins", "parent": 522, "children": [525, 527], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 22}}, {"id": 525, "type": "type_descriptor", "text": "void", "parent": 524, "children": [526], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 7}}, {"id": 526, "type": "primitive_type", "text": "void", "parent": 525, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 7}}, {"id": 527, "type": "identifier", "text": "loadRADPlugins", "parent": 524, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 22}}, {"id": 528, "type": "identifier", "text": "id", "parent": 521, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 26}}, {"id": 529, "type": "declaration", "text": "arg1 andValidate:(id)arg2;", "parent": null, "children": [530, 531, 532], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 53}}, {"id": 530, "type": "type_identifier", "text": "arg1", "parent": 529, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 31}}, {"id": 531, "type": "identifier", "text": "andValidate", "parent": 529, "children": [], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 43}}, {"id": 532, "type": "ERROR", "text": ":(id)arg2", "parent": 529, "children": [533, 534], "start_point": {"row": 76, "column": 43}, "end_point": {"row": 76, "column": 52}}, {"id": 533, "type": "identifier", "text": "id", "parent": 532, "children": [], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 47}}, {"id": 534, "type": "identifier", "text": "arg2", "parent": 532, "children": [], "start_point": {"row": 76, "column": 48}, "end_point": {"row": 76, "column": 52}}, {"id": 535, "type": "unary_expression", "text": "- (id)init", "parent": null, "children": [536, 537], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 10}}, {"id": 536, "type": "-", "text": "-", "parent": 535, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 1}}, {"id": 537, "type": "cast_expression", "text": "(id)init", "parent": 535, "children": [538, 540], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 10}}, {"id": 538, "type": "type_descriptor", "text": "id", "parent": 537, "children": [539], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 5}}, {"id": 539, "type": "type_identifier", "text": "id", "parent": 538, "children": [], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 5}}, {"id": 540, "type": "identifier", "text": "init", "parent": 537, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 10}}, {"id": 541, "type": "ERROR", "text": "@", "parent": null, "children": [542], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 542, "type": "ERROR", "text": "@", "parent": 541, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 1}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [5, 16, 21, 26, 31, 36, 41, 46, 51, 56, 105, 235, 276, 388, 447, 461, 529], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [59, 61, 65, 67, 71, 73, 77, 79, 83, 85, 90, 92, 110, 112, 119, 121, 125, 127, 134, 136, 143, 145, 149, 151, 158, 160, 164, 166, 173, 175, 182, 184, 191, 193, 200, 202, 209, 211, 218, 220, 228, 230, 241, 243, 250, 252, 258, 260, 270, 272, 281, 283, 287, 289, 293, 295, 299, 301, 305, 307, 314, 316, 320, 322, 326, 328, 335, 337, 344, 346, 353, 355, 362, 364, 371, 373, 381, 383, 394, 396, 403, 405, 412, 414, 421, 423, 430, 432, 440, 442, 454, 456, 470, 472, 476, 478, 482, 484, 491, 493, 500, 502, 506, 508, 512, 514, 522, 524, 535, 537], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 12, 13, 15, 17, 20, 22, 25, 27, 30, 32, 35, 37, 40, 42, 45, 47, 50, 52, 55, 57, 58, 64, 70, 75, 76, 82, 87, 88, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 109, 114, 115, 117, 118, 123, 124, 130, 132, 133, 139, 141, 142, 147, 148, 154, 156, 157, 163, 169, 171, 172, 178, 180, 181, 187, 189, 190, 196, 198, 199, 205, 207, 208, 214, 216, 217, 223, 225, 226, 233, 234, 236, 237, 239, 240, 246, 248, 249, 254, 257, 262, 265, 267, 268, 274, 275, 277, 280, 285, 286, 291, 292, 297, 298, 304, 309, 310, 312, 313, 319, 325, 331, 333, 334, 340, 342, 343, 349, 351, 352, 358, 360, 361, 367, 369, 370, 375, 376, 378, 379, 385, 386, 387, 389, 390, 392, 393, 399, 401, 402, 408, 410, 411, 417, 419, 420, 426, 428, 429, 434, 435, 437, 438, 444, 445, 446, 448, 449, 451, 452, 458, 459, 460, 462, 464, 465, 466, 467, 468, 469, 474, 475, 480, 481, 486, 487, 489, 490, 495, 496, 498, 499, 504, 505, 511, 516, 517, 519, 520, 527, 528, 530, 531, 533, 534, 539, 540], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "MIORADManager", "text_snippet": "interface MIORADManager : MIOObject\n{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 11 2021 20:53:35).\n//\n// Copyright (C) 1997-2019 <NAME>.\n//\n\n#import <MIO/MIOObject.h>\n\n@class MIORADPluginManager, NSMutableArray, NSUndoManager;\n\n@interface MIORADManager : MIOObject\n{\n NSMutableArray *_volumes;\n NSMutableArray *_radVolumes;\n NSMutableArray *_archiveVolumes;\n NSMutableArray *_fileSystemVolumes;\n NSMutableArray *_flatClipsArray;\n NSMutableArray *_spannedClips;\n NSUndoManager *_undoManager;\n MIORADPluginManager *_pluginManager;\n BOOL _shouldAddVolumesSynchronously;\n}\n\n+ (void)flushRADManager;\n+ (void)releaseSharedRADManager;\n+ (id)sharedRADManager;\n+ (void)initialize;\n- (id)metadataDefinitionsFromPlugins;\n- (void)observeValueForKeyPath:(id)arg1 ofObject:(id)arg2 change:(id)arg3 context:(void *)arg4;\n- (id)arrayProxyForVolume:(id)arg1;\n- (BOOL)shouldAddVolumesSynchronously;\n- (void)setShouldAddVolumesSynchronously:(BOOL)arg1;\n- (void)setPluginManager:(id)arg1;\n- (id)undoManager;\n- (void)setUndoManager:(id)arg1;\n- (void)removeListOfSpannedClips;\n- (void)pluginVolumesInvalid:(id)arg1;\n- (void)addPluginVolumes:(id)arg1;\n- (void)volumeDidUnmount:(id)arg1;\n- (void)volumeWillUnmount:(id)arg1;\n- (void)volumeDidMount:(id)arg1;\n- (void)iOSDeviceDidUnmount:(id)arg1;\n- (void)iOSDeviceDidMount:(id)arg1;\n- (void)_broadcastToPluginsWithName:(id)arg1 path:(id)arg2;\n- (void)iOSDeviceMountingFailed:(id)arg1;\n- (unsigned int)volumeCount;\n- (unsigned int)volumeIndex:(id)arg1;\n- (id)volumeAtIndex:(unsigned int)arg1;\n- (id)spannedClips;\n- (id)clips;\n- (id)volumes;\n- (void)removeListOfRADVolumes;\n- (BOOL)removeVolume:(id)arg1;\n- (void)mountiOSDevicesSynchronously;\n- (void)scanForiOSDevices;\n- (void)removeClipFromFlatClipsArray:(id)arg1;\n- (void)postVolumeFailedToMount:(id)arg1;\n- (void)postVolumeNotRecognized:(id)arg1;\n- (void)postVolumeExists:(id)arg1;\n- (void)replaceTempVolumeWithVolume:(id)arg1;\n- (BOOL)addVolume:(id)arg1;\n- (BOOL)replaceVolume:(id)arg1 withVolume:(id)arg2;\n- (void)removeTempVolumeForPath:(id)arg1;\n- (void)addTempVolume:(id)arg1;\n- (void)addVolumesForPaths:(id)arg1;\n- (void)addVolumeForPath:(id)arg1;\n- (BOOL)pathIsValidVolume:(id)arg1;\n- (BOOL)doesPath:(id)arg1 containSomeOfClipsWithUIDs:(id)arg2;\n- (BOOL)volumeExistsAtPath:(id)arg1 checkMountingVolumes:(BOOL)arg2 withPluginID:(id)arg3;\n- (id)extendedClipProperties;\n- (BOOL)shouldMountSynchronously;\n- (id)clipForInProgressSubSegment:(id)arg1;\n- (id)clipForUID:(id)arg1;\n- (id)description;\n- (void)dealloc;\n- (BOOL)createVolumeListWithPath:(id)arg1;\n- (void)loadRADPlugins:(id)arg1 andValidate:(id)arg2;\n- (id)init;\n\n@end\n\n"}
80,719
c
//////////////////////////////////////////////////// // Copyright (c) 2012 ICRL // See the file LICENSE.txt for copying permission. // // Original Author: <NAME> // Date: 7/21/2012 // Contact: <EMAIL> //////////////////////////////////////////////////// #include "ActionList.h" #include "EntityManager.h" #include "EntityFactory.h" // Static class variables and data static const char *CLASS_NAME = NULL; // // ClassCOM_PROC // Purpose: Component procedure for this component type. Dispatches messages // recieved in the appropriate manner. // void ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 ) { switch(msg) { // GENERAL case EM_CLSINIT: ActionListInit( (const char *)var1 ); break; case EM_CREATE: ActionListCreate( self ); break; case EM_UPDATE: ActionListUpdate( self, (float *)var1 ); break; case EM_DESTROY: ActionListDestroy( self ); break; // ACTIONLIST case EM_ALADDACT: ActionListAddAction( self, (ALD *)var1 ); break; case EM_ALREMACT: ActionListRemoveAction( (AL_NODE *)var1 ); break; } } // // ClassCreate // Purpose: Acts as a constructor for this class. Initializes the // data and dynamically allocates any extra space needed, and // initializes the allocated space with data. // void ActionListCreate( AL *self ) { self->actionList = NULL; self->base.CLASS_NAME = CLASS_NAME; } // // ClassInit // Purpose: One-time initialization of the class. Use this function to load resources from disk, // set up static class variables, or anything else. // void ActionListInit( const char *className ) { CLASS_NAME = (const char *)malloc( strlen( className ) + 1 ); strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className ); } // // ActionListUpdate // Purpose: Updates the action list. // void ActionListUpdate( AL *self, float *dt ) { AL_NODE *scan = self->actionList; // Cycle through each action and call its Update function // If find a blocking action, stop the cycle if(scan) { do { int flag = scan->flag; scan->Update( scan, dt ); if(flag & BLOCKING) break; if(!scan) break; } while(scan->next); } } // // ActionListDestroy // Purpose: Frees an action list's actions. // void ActionListDestroy( AL *self ) { AL_NODE *scan = self->actionList; // Cycle through each action and free it from memory while(scan) { AL_NODE *temp = NULL; if(scan->next) temp = scan->next; ActionListRemoveAction( scan ); scan = temp; } } // // ActionListAddAction // Purpose: Adds a specific action and allows customized flag to be set, to an actionList // on a game object. // void ActionListAddAction( AL *self, ALD *data ) { AL_NODE *node = NULL; switch(data->ID) { case ALT_PAUSE: case ALT_DESTROY: case ALT_SET_PROPERTIES: case ALT_CREATE_ENTITY: case ALT_SET_VEL: // Set data from provided ALD pointer node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); memset( node, 0, sizeof( AL_NODE ) ); // Initialize data node->ownerComp = self; node->flag = data->flag; node->timerEnd = data->timerEnd; node->var1 = data->var1; node->var2 = data->var2; node->var3 = data->var3; node->ID = data->ID; node->dt = data->dt; // Assign individualized data switch(node->ID) { case ALT_PAUSE: node->Update = ActionListPause; break; case ALT_DESTROY: node->Update = ActionListDestroySelf; break; case ALT_SET_PROPERTIES: node->Update = ActionListSetProperties; break; case ALT_CREATE_ENTITY: node->Update = ActionListCreateEntity; break; case ALT_SET_VEL: node->Update = ActionListSetVel; } break; default: return; } // Add action to the actionList if(node) { AL_NODE *scan = self->actionList; if(scan) { while(scan->next) { scan = scan->next; } scan->next = node; node->prev = scan; } else { self->actionList = node; } } } // // ActionListRemoveAction // Purpose: Removes a specific action from an actionList. // void ActionListRemoveAction( AL_NODE *self ) { // Disconnect from list if(self) { if(self->prev) { self->prev->next = self->next; if(self->next) { self->next->prev = self->prev; } } else { if(self->next) { self->next->prev = NULL; self->ownerComp->actionList = self->next; } else { self->ownerComp->actionList = NULL; } } } free( self ); } // // ActionListPause // Purpose: Creates a blocking pause for an amount of seconds. // void ActionListPause( AL_NODE *self, float *dt ) { self->dt += *dt; if(self->dt > self->timerEnd) { ActionListRemoveAction( self ); } } // // ActionListSetProperties // Purpose: Sets the properties of an entity to the flags data member with |= // to the value of var1. // void ActionListSetProperties( AL_NODE *self, float *dt ) { self->ownerComp->base.owner->properties |= self->var1; ActionListRemoveAction( self ); } // // ActionListDestroySelf // Purpose: Sends an EM_DESTROY message to the owner entity. // void ActionListDestroySelf( AL_NODE *self, float *dt ) { SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 ); } // // ActionListCreateEntity // Purpose: Creates an entity. // void ActionListCreateEntity( AL_NODE *self, float *dt ) { CreateEntity( (const char *)self->var1, self->var2, self->var3 ); ActionListRemoveAction( self ); } // // ActionListSetVel // Purpose: Sets the velocity of an object to var1 // void ActionListSetVel( AL_NODE *self, float *dt ) { VECTOR2D vel = { (float)self->var1, (float)self->var2 }; SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ ); ActionListRemoveAction( self ); }
21.53
277
(translation_unit) "//////////////////////////////////////////////////// \n// Copyright (c) 2012 ICRL \n// See the file LICENSE.txt for copying permission. \n// \n// Original Author: <NAME> \n// Date: 7/21/2012 \n// Contact: <EMAIL> \n//////////////////////////////////////////////////// \n \n#include "ActionList.h" \n#include "EntityManager.h" \n#include "EntityFactory.h" \n \n// Static class variables and data \nstatic const char *CLASS_NAME = NULL; \n \n// \n// ClassCOM_PROC \n// Purpose: Component procedure for this component type. Dispatches messages \n// recieved in the appropriate manner. \n// \nvoid ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 ) \n{ \n switch(msg) \n { \n // GENERAL \n case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break; \n case EM_CREATE: \n ActionListCreate( self ); \n break; \n case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break; \n case EM_DESTROY: \n ActionListDestroy( self ); \n break; \n \n // ACTIONLIST \n case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break; \n case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break; \n } \n} \n \n// \n// ClassCreate \n// Purpose: Acts as a constructor for this class. Initializes the \n// data and dynamically allocates any extra space needed, and \n// initializes the allocated space with data. \n// \nvoid ActionListCreate( AL *self ) \n{ \n self->actionList = NULL; \n self->base.CLASS_NAME = CLASS_NAME; \n} \n \n// \n// ClassInit \n// Purpose: One-time initialization of the class. Use this function to load resources from disk, \n// set up static class variables, or anything else. \n// \nvoid ActionListInit( const char *className ) \n{ \n CLASS_NAME = (const char *)malloc( strlen( className ) + 1 ); \n strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className ); \n} \n \n// \n// ActionListUpdate \n// Purpose: Updates the action list. \n// \nvoid ActionListUpdate( AL *self, float *dt ) \n{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and call its Update function \n // If find a blocking action, stop the cycle \n if(scan) \n { \n do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next); \n } \n} \n \n// \n// ActionListDestroy \n// Purpose: Frees an action list's actions. \n// \nvoid ActionListDestroy( AL *self ) \n{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and free it from memory \n while(scan) \n { \n AL_NODE *temp = NULL; \n if(scan->next) \n temp = scan->next; \n ActionListRemoveAction( scan ); \n scan = temp; \n } \n} \n \n// \n// ActionListAddAction \n// Purpose: Adds a specific action and allows customized flag to be set, to an actionList \n// on a game object. \n// \nvoid ActionListAddAction( AL *self, ALD *data ) \n{ \n AL_NODE *node = NULL; \n \n switch(data->ID) \n { \n case ALT_PAUSE: \n case ALT_DESTROY: \n case ALT_SET_PROPERTIES: \n case ALT_CREATE_ENTITY: \n case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break; \n default: \n return; \n } \n \n // Add action to the actionList \n if(node) \n { \n AL_NODE *scan = self->actionList; \n \n if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n } \n } \n} \n \n// \n// ActionListRemoveAction \n// Purpose: Removes a specific action from an actionList. \n// \nvoid ActionListRemoveAction( AL_NODE *self ) \n{ \n // Disconnect from list \n if(self) \n { \n if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n } \n } \n \n free( self ); \n} \n \n// \n// ActionListPause \n// Purpose: Creates a blocking pause for an amount of seconds. \n// \nvoid ActionListPause( AL_NODE *self, float *dt ) \n{ \n self->dt += *dt; \n \n if(self->dt > self->timerEnd) \n { \n ActionListRemoveAction( self ); \n } \n} \n \n// \n// ActionListSetProperties \n// Purpose: Sets the properties of an entity to the flags data member with |= \n// to the value of var1. \n// \nvoid ActionListSetProperties( AL_NODE *self, float *dt ) \n{ \n self->ownerComp->base.owner->properties |= self->var1; \n ActionListRemoveAction( self ); \n} \n \n// \n// ActionListDestroySelf \n// Purpose: Sends an EM_DESTROY message to the owner entity. \n// \nvoid ActionListDestroySelf( AL_NODE *self, float *dt ) \n{ \n SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 ); \n} \n \n// \n// ActionListCreateEntity \n// Purpose: Creates an entity. \n// \nvoid ActionListCreateEntity( AL_NODE *self, float *dt ) \n{ \n CreateEntity( (const char *)self->var1, self->var2, self->var3 ); \n ActionListRemoveAction( self ); \n} \n \n// \n// ActionListSetVel \n// Purpose: Sets the velocity of an object to var1 \n// \nvoid ActionListSetVel( AL_NODE *self, float *dt ) \n{ \n VECTOR2D vel = { (float)self->var1, (float)self->var2 }; \n SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ ); \n ActionListRemoveAction( self ); \n} \n" (comment) "//////////////////////////////////////////////////// " (comment) "// Copyright (c) 2012 ICRL " (comment) "// See the file LICENSE.txt for copying permission. " (comment) "// " (comment) "// Original Author: <NAME> " (comment) "// Date: 7/21/2012 " (comment) "// Contact: <EMAIL> " (comment) "//////////////////////////////////////////////////// " (preproc_include) "#include "ActionList.h" \n" (#include) "#include" (string_literal) ""ActionList.h"" (") """ (string_content) "ActionList.h" (") """ (preproc_include) "#include "EntityManager.h" \n" (#include) "#include" (string_literal) ""EntityManager.h"" (") """ (string_content) "EntityManager.h" (") """ (preproc_include) "#include "EntityFactory.h" \n" (#include) "#include" (string_literal) ""EntityFactory.h"" (") """ (string_content) "EntityFactory.h" (") """ (comment) "// Static class variables and data " (declaration) "static const char *CLASS_NAME = NULL;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*CLASS_NAME = NULL" (pointer_declarator) "*CLASS_NAME" (*) "*" (identifier) "CLASS_NAME" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "// " (comment) "// ClassCOM_PROC " (comment) "// Purpose: Component procedure for this component type. Dispatches messages " (comment) "// recieved in the appropriate manner. " (comment) "// " (function_definition) "void ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 ) \n{ \n switch(msg) \n { \n // GENERAL \n case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break; \n case EM_CREATE: \n ActionListCreate( self ); \n break; \n case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break; \n case EM_DESTROY: \n ActionListDestroy( self ); \n break; \n \n // ACTIONLIST \n case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break; \n case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break; \n } \n}" (primitive_type) "void" (function_declarator) "ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )" (identifier) "ActionListCOM_PROC" (parameter_list) "( AL *self, EM msg, int var1, int var2 )" (() "(" (parameter_declaration) "AL *self" (type_identifier) "AL" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "EM msg" (type_identifier) "EM" (identifier) "msg" (,) "," (parameter_declaration) "int var1" (primitive_type) "int" (identifier) "var1" (,) "," (parameter_declaration) "int var2" (primitive_type) "int" (identifier) "var2" ()) ")" (compound_statement) "{ \n switch(msg) \n { \n // GENERAL \n case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break; \n case EM_CREATE: \n ActionListCreate( self ); \n break; \n case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break; \n case EM_DESTROY: \n ActionListDestroy( self ); \n break; \n \n // ACTIONLIST \n case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break; \n case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break; \n } \n}" ({) "{" (switch_statement) "switch(msg) \n { \n // GENERAL \n case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break; \n case EM_CREATE: \n ActionListCreate( self ); \n break; \n case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break; \n case EM_DESTROY: \n ActionListDestroy( self ); \n break; \n \n // ACTIONLIST \n case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break; \n case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break; \n }" (switch) "switch" (parenthesized_expression) "(msg)" (() "(" (identifier) "msg" ()) ")" (compound_statement) "{ \n // GENERAL \n case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break; \n case EM_CREATE: \n ActionListCreate( self ); \n break; \n case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break; \n case EM_DESTROY: \n ActionListDestroy( self ); \n break; \n \n // ACTIONLIST \n case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break; \n case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break; \n }" ({) "{" (comment) "// GENERAL " (case_statement) "case EM_CLSINIT: \n ActionListInit( (const char *)var1 ); \n break;" (case) "case" (identifier) "EM_CLSINIT" (:) ":" (expression_statement) "ActionListInit( (const char *)var1 );" (call_expression) "ActionListInit( (const char *)var1 )" (identifier) "ActionListInit" (argument_list) "( (const char *)var1 )" (() "(" (cast_expression) "(const char *)var1" (() "(" (type_descriptor) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "var1" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case EM_CREATE: \n ActionListCreate( self ); \n break;" (case) "case" (identifier) "EM_CREATE" (:) ":" (expression_statement) "ActionListCreate( self );" (call_expression) "ActionListCreate( self )" (identifier) "ActionListCreate" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case EM_UPDATE: \n ActionListUpdate( self, (float *)var1 ); \n break;" (case) "case" (identifier) "EM_UPDATE" (:) ":" (expression_statement) "ActionListUpdate( self, (float *)var1 );" (call_expression) "ActionListUpdate( self, (float *)var1 )" (identifier) "ActionListUpdate" (argument_list) "( self, (float *)var1 )" (() "(" (identifier) "self" (,) "," (cast_expression) "(float *)var1" (() "(" (type_descriptor) "float *" (primitive_type) "float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "var1" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case EM_DESTROY: \n ActionListDestroy( self ); \n break;" (case) "case" (identifier) "EM_DESTROY" (:) ":" (expression_statement) "ActionListDestroy( self );" (call_expression) "ActionListDestroy( self )" (identifier) "ActionListDestroy" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (comment) "// ACTIONLIST " (case_statement) "case EM_ALADDACT: \n ActionListAddAction( self, (ALD *)var1 ); \n break;" (case) "case" (identifier) "EM_ALADDACT" (:) ":" (expression_statement) "ActionListAddAction( self, (ALD *)var1 );" (call_expression) "ActionListAddAction( self, (ALD *)var1 )" (identifier) "ActionListAddAction" (argument_list) "( self, (ALD *)var1 )" (() "(" (identifier) "self" (,) "," (cast_expression) "(ALD *)var1" (() "(" (type_descriptor) "ALD *" (type_identifier) "ALD" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "var1" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case EM_ALREMACT: \n ActionListRemoveAction( (AL_NODE *)var1 ); \n break;" (case) "case" (identifier) "EM_ALREMACT" (:) ":" (expression_statement) "ActionListRemoveAction( (AL_NODE *)var1 );" (call_expression) "ActionListRemoveAction( (AL_NODE *)var1 )" (identifier) "ActionListRemoveAction" (argument_list) "( (AL_NODE *)var1 )" (() "(" (cast_expression) "(AL_NODE *)var1" (() "(" (type_descriptor) "AL_NODE *" (type_identifier) "AL_NODE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "var1" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (comment) "// " (comment) "// ClassCreate " (comment) "// Purpose: Acts as a constructor for this class. Initializes the " (comment) "// data and dynamically allocates any extra space needed, and " (comment) "// initializes the allocated space with data. " (comment) "// " (function_definition) "void ActionListCreate( AL *self ) \n{ \n self->actionList = NULL; \n self->base.CLASS_NAME = CLASS_NAME; \n}" (primitive_type) "void" (function_declarator) "ActionListCreate( AL *self )" (identifier) "ActionListCreate" (parameter_list) "( AL *self )" (() "(" (parameter_declaration) "AL *self" (type_identifier) "AL" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (compound_statement) "{ \n self->actionList = NULL; \n self->base.CLASS_NAME = CLASS_NAME; \n}" ({) "{" (expression_statement) "self->actionList = NULL;" (assignment_expression) "self->actionList = NULL" (field_expression) "self->actionList" (identifier) "self" (->) "->" (field_identifier) "actionList" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "self->base.CLASS_NAME = CLASS_NAME;" (assignment_expression) "self->base.CLASS_NAME = CLASS_NAME" (field_expression) "self->base.CLASS_NAME" (field_expression) "self->base" (identifier) "self" (->) "->" (field_identifier) "base" (.) "." (field_identifier) "CLASS_NAME" (=) "=" (identifier) "CLASS_NAME" (;) ";" (}) "}" (comment) "// " (comment) "// ClassInit " (comment) "// Purpose: One-time initialization of the class. Use this function to load resources from disk, " (comment) "// set up static class variables, or anything else. " (comment) "// " (function_definition) "void ActionListInit( const char *className ) \n{ \n CLASS_NAME = (const char *)malloc( strlen( className ) + 1 ); \n strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className ); \n}" (primitive_type) "void" (function_declarator) "ActionListInit( const char *className )" (identifier) "ActionListInit" (parameter_list) "( const char *className )" (() "(" (parameter_declaration) "const char *className" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*className" (*) "*" (identifier) "className" ()) ")" (compound_statement) "{ \n CLASS_NAME = (const char *)malloc( strlen( className ) + 1 ); \n strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className ); \n}" ({) "{" (expression_statement) "CLASS_NAME = (const char *)malloc( strlen( className ) + 1 );" (assignment_expression) "CLASS_NAME = (const char *)malloc( strlen( className ) + 1 )" (identifier) "CLASS_NAME" (=) "=" (cast_expression) "(const char *)malloc( strlen( className ) + 1 )" (() "(" (type_descriptor) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc( strlen( className ) + 1 )" (identifier) "malloc" (argument_list) "( strlen( className ) + 1 )" (() "(" (binary_expression) "strlen( className ) + 1" (call_expression) "strlen( className )" (identifier) "strlen" (argument_list) "( className )" (() "(" (identifier) "className" ()) ")" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className );" (call_expression) "strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className )" (identifier) "strcpy_s" (argument_list) "( (char *)CLASS_NAME, strlen( className ) + 1 , className )" (() "(" (cast_expression) "(char *)CLASS_NAME" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "CLASS_NAME" (,) "," (binary_expression) "strlen( className ) + 1" (call_expression) "strlen( className )" (identifier) "strlen" (argument_list) "( className )" (() "(" (identifier) "className" ()) ")" (+) "+" (number_literal) "1" (,) "," (identifier) "className" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// ActionListUpdate " (comment) "// Purpose: Updates the action list. " (comment) "// " (function_definition) "void ActionListUpdate( AL *self, float *dt ) \n{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and call its Update function \n // If find a blocking action, stop the cycle \n if(scan) \n { \n do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next); \n } \n}" (primitive_type) "void" (function_declarator) "ActionListUpdate( AL *self, float *dt )" (identifier) "ActionListUpdate" (parameter_list) "( AL *self, float *dt )" (() "(" (parameter_declaration) "AL *self" (type_identifier) "AL" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and call its Update function \n // If find a blocking action, stop the cycle \n if(scan) \n { \n do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next); \n } \n}" ({) "{" (declaration) "AL_NODE *scan = self->actionList;" (type_identifier) "AL_NODE" (init_declarator) "*scan = self->actionList" (pointer_declarator) "*scan" (*) "*" (identifier) "scan" (=) "=" (field_expression) "self->actionList" (identifier) "self" (->) "->" (field_identifier) "actionList" (;) ";" (comment) "// Cycle through each action and call its Update function " (comment) "// If find a blocking action, stop the cycle " (if_statement) "if(scan) \n { \n do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next); \n }" (if) "if" (parenthesized_expression) "(scan)" (() "(" (identifier) "scan" ()) ")" (compound_statement) "{ \n do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next); \n }" ({) "{" (do_statement) "do \n { \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n } while(scan->next);" (do) "do" (compound_statement) "{ \n int flag = scan->flag; \n scan->Update( scan, dt ); \n if(flag & BLOCKING) \n break; \n if(!scan) \n break; \n }" ({) "{" (declaration) "int flag = scan->flag;" (primitive_type) "int" (init_declarator) "flag = scan->flag" (identifier) "flag" (=) "=" (field_expression) "scan->flag" (identifier) "scan" (->) "->" (field_identifier) "flag" (;) ";" (expression_statement) "scan->Update( scan, dt );" (call_expression) "scan->Update( scan, dt )" (field_expression) "scan->Update" (identifier) "scan" (->) "->" (field_identifier) "Update" (argument_list) "( scan, dt )" (() "(" (identifier) "scan" (,) "," (identifier) "dt" ()) ")" (;) ";" (if_statement) "if(flag & BLOCKING) \n break;" (if) "if" (parenthesized_expression) "(flag & BLOCKING)" (() "(" (binary_expression) "flag & BLOCKING" (identifier) "flag" (&) "&" (identifier) "BLOCKING" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (if_statement) "if(!scan) \n break;" (if) "if" (parenthesized_expression) "(!scan)" (() "(" (unary_expression) "!scan" (!) "!" (identifier) "scan" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(scan->next)" (() "(" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// " (comment) "// ActionListDestroy " (comment) "// Purpose: Frees an action list's actions. " (comment) "// " (function_definition) "void ActionListDestroy( AL *self ) \n{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and free it from memory \n while(scan) \n { \n AL_NODE *temp = NULL; \n if(scan->next) \n temp = scan->next; \n ActionListRemoveAction( scan ); \n scan = temp; \n } \n}" (primitive_type) "void" (function_declarator) "ActionListDestroy( AL *self )" (identifier) "ActionListDestroy" (parameter_list) "( AL *self )" (() "(" (parameter_declaration) "AL *self" (type_identifier) "AL" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (compound_statement) "{ \n AL_NODE *scan = self->actionList; \n \n // Cycle through each action and free it from memory \n while(scan) \n { \n AL_NODE *temp = NULL; \n if(scan->next) \n temp = scan->next; \n ActionListRemoveAction( scan ); \n scan = temp; \n } \n}" ({) "{" (declaration) "AL_NODE *scan = self->actionList;" (type_identifier) "AL_NODE" (init_declarator) "*scan = self->actionList" (pointer_declarator) "*scan" (*) "*" (identifier) "scan" (=) "=" (field_expression) "self->actionList" (identifier) "self" (->) "->" (field_identifier) "actionList" (;) ";" (comment) "// Cycle through each action and free it from memory " (while_statement) "while(scan) \n { \n AL_NODE *temp = NULL; \n if(scan->next) \n temp = scan->next; \n ActionListRemoveAction( scan ); \n scan = temp; \n }" (while) "while" (parenthesized_expression) "(scan)" (() "(" (identifier) "scan" ()) ")" (compound_statement) "{ \n AL_NODE *temp = NULL; \n if(scan->next) \n temp = scan->next; \n ActionListRemoveAction( scan ); \n scan = temp; \n }" ({) "{" (declaration) "AL_NODE *temp = NULL;" (type_identifier) "AL_NODE" (init_declarator) "*temp = NULL" (pointer_declarator) "*temp" (*) "*" (identifier) "temp" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if(scan->next) \n temp = scan->next;" (if) "if" (parenthesized_expression) "(scan->next)" (() "(" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" ()) ")" (expression_statement) "temp = scan->next;" (assignment_expression) "temp = scan->next" (identifier) "temp" (=) "=" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "ActionListRemoveAction( scan );" (call_expression) "ActionListRemoveAction( scan )" (identifier) "ActionListRemoveAction" (argument_list) "( scan )" (() "(" (identifier) "scan" ()) ")" (;) ";" (expression_statement) "scan = temp;" (assignment_expression) "scan = temp" (identifier) "scan" (=) "=" (identifier) "temp" (;) ";" (}) "}" (}) "}" (comment) "// " (comment) "// ActionListAddAction " (comment) "// Purpose: Adds a specific action and allows customized flag to be set, to an actionList " (comment) "// on a game object. " (comment) "// " (function_definition) "void ActionListAddAction( AL *self, ALD *data ) \n{ \n AL_NODE *node = NULL; \n \n switch(data->ID) \n { \n case ALT_PAUSE: \n case ALT_DESTROY: \n case ALT_SET_PROPERTIES: \n case ALT_CREATE_ENTITY: \n case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break; \n default: \n return; \n } \n \n // Add action to the actionList \n if(node) \n { \n AL_NODE *scan = self->actionList; \n \n if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n } \n } \n}" (primitive_type) "void" (function_declarator) "ActionListAddAction( AL *self, ALD *data )" (identifier) "ActionListAddAction" (parameter_list) "( AL *self, ALD *data )" (() "(" (parameter_declaration) "AL *self" (type_identifier) "AL" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "ALD *data" (type_identifier) "ALD" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (compound_statement) "{ \n AL_NODE *node = NULL; \n \n switch(data->ID) \n { \n case ALT_PAUSE: \n case ALT_DESTROY: \n case ALT_SET_PROPERTIES: \n case ALT_CREATE_ENTITY: \n case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break; \n default: \n return; \n } \n \n // Add action to the actionList \n if(node) \n { \n AL_NODE *scan = self->actionList; \n \n if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n } \n } \n}" ({) "{" (declaration) "AL_NODE *node = NULL;" (type_identifier) "AL_NODE" (init_declarator) "*node = NULL" (pointer_declarator) "*node" (*) "*" (identifier) "node" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (switch_statement) "switch(data->ID) \n { \n case ALT_PAUSE: \n case ALT_DESTROY: \n case ALT_SET_PROPERTIES: \n case ALT_CREATE_ENTITY: \n case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break; \n default: \n return; \n }" (switch) "switch" (parenthesized_expression) "(data->ID)" (() "(" (field_expression) "data->ID" (identifier) "data" (->) "->" (field_identifier) "ID" ()) ")" (compound_statement) "{ \n case ALT_PAUSE: \n case ALT_DESTROY: \n case ALT_SET_PROPERTIES: \n case ALT_CREATE_ENTITY: \n case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break; \n default: \n return; \n }" ({) "{" (case_statement) "case ALT_PAUSE:" (case) "case" (identifier) "ALT_PAUSE" (:) ":" (case_statement) "case ALT_DESTROY:" (case) "case" (identifier) "ALT_DESTROY" (:) ":" (case_statement) "case ALT_SET_PROPERTIES:" (case) "case" (identifier) "ALT_SET_PROPERTIES" (:) ":" (case_statement) "case ALT_CREATE_ENTITY:" (case) "case" (identifier) "ALT_CREATE_ENTITY" (:) ":" (case_statement) "case ALT_SET_VEL: \n // Set data from provided ALD pointer \n node = (AL_NODE *)malloc( sizeof( AL_NODE ) ); \n memset( node, 0, sizeof( AL_NODE ) ); \n // Initialize data \n node->ownerComp = self; \n node->flag = data->flag; \n node->timerEnd = data->timerEnd; \n node->var1 = data->var1; \n node->var2 = data->var2; \n node->var3 = data->var3; \n node->ID = data->ID; \n node->dt = data->dt; \n \n // Assign individualized data \n switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n } \n break;" (case) "case" (identifier) "ALT_SET_VEL" (:) ":" (comment) "// Set data from provided ALD pointer " (expression_statement) "node = (AL_NODE *)malloc( sizeof( AL_NODE ) );" (assignment_expression) "node = (AL_NODE *)malloc( sizeof( AL_NODE ) )" (identifier) "node" (=) "=" (cast_expression) "(AL_NODE *)malloc( sizeof( AL_NODE ) )" (() "(" (type_descriptor) "AL_NODE *" (type_identifier) "AL_NODE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc( sizeof( AL_NODE ) )" (identifier) "malloc" (argument_list) "( sizeof( AL_NODE ) )" (() "(" (sizeof_expression) "sizeof( AL_NODE )" (sizeof) "sizeof" (parenthesized_expression) "( AL_NODE )" (() "(" (identifier) "AL_NODE" ()) ")" ()) ")" (;) ";" (expression_statement) "memset( node, 0, sizeof( AL_NODE ) );" (call_expression) "memset( node, 0, sizeof( AL_NODE ) )" (identifier) "memset" (argument_list) "( node, 0, sizeof( AL_NODE ) )" (() "(" (identifier) "node" (,) "," (number_literal) "0" (,) "," (sizeof_expression) "sizeof( AL_NODE )" (sizeof) "sizeof" (parenthesized_expression) "( AL_NODE )" (() "(" (identifier) "AL_NODE" ()) ")" ()) ")" (;) ";" (comment) "// Initialize data " (expression_statement) "node->ownerComp = self;" (assignment_expression) "node->ownerComp = self" (field_expression) "node->ownerComp" (identifier) "node" (->) "->" (field_identifier) "ownerComp" (=) "=" (identifier) "self" (;) ";" (expression_statement) "node->flag = data->flag;" (assignment_expression) "node->flag = data->flag" (field_expression) "node->flag" (identifier) "node" (->) "->" (field_identifier) "flag" (=) "=" (field_expression) "data->flag" (identifier) "data" (->) "->" (field_identifier) "flag" (;) ";" (expression_statement) "node->timerEnd = data->timerEnd;" (assignment_expression) "node->timerEnd = data->timerEnd" (field_expression) "node->timerEnd" (identifier) "node" (->) "->" (field_identifier) "timerEnd" (=) "=" (field_expression) "data->timerEnd" (identifier) "data" (->) "->" (field_identifier) "timerEnd" (;) ";" (expression_statement) "node->var1 = data->var1;" (assignment_expression) "node->var1 = data->var1" (field_expression) "node->var1" (identifier) "node" (->) "->" (field_identifier) "var1" (=) "=" (field_expression) "data->var1" (identifier) "data" (->) "->" (field_identifier) "var1" (;) ";" (expression_statement) "node->var2 = data->var2;" (assignment_expression) "node->var2 = data->var2" (field_expression) "node->var2" (identifier) "node" (->) "->" (field_identifier) "var2" (=) "=" (field_expression) "data->var2" (identifier) "data" (->) "->" (field_identifier) "var2" (;) ";" (expression_statement) "node->var3 = data->var3;" (assignment_expression) "node->var3 = data->var3" (field_expression) "node->var3" (identifier) "node" (->) "->" (field_identifier) "var3" (=) "=" (field_expression) "data->var3" (identifier) "data" (->) "->" (field_identifier) "var3" (;) ";" (expression_statement) "node->ID = data->ID;" (assignment_expression) "node->ID = data->ID" (field_expression) "node->ID" (identifier) "node" (->) "->" (field_identifier) "ID" (=) "=" (field_expression) "data->ID" (identifier) "data" (->) "->" (field_identifier) "ID" (;) ";" (expression_statement) "node->dt = data->dt;" (assignment_expression) "node->dt = data->dt" (field_expression) "node->dt" (identifier) "node" (->) "->" (field_identifier) "dt" (=) "=" (field_expression) "data->dt" (identifier) "data" (->) "->" (field_identifier) "dt" (;) ";" (comment) "// Assign individualized data " (switch_statement) "switch(node->ID) \n { \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n }" (switch) "switch" (parenthesized_expression) "(node->ID)" (() "(" (field_expression) "node->ID" (identifier) "node" (->) "->" (field_identifier) "ID" ()) ")" (compound_statement) "{ \n case ALT_PAUSE: \n node->Update = ActionListPause; \n break; \n case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break; \n case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break; \n case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break; \n case ALT_SET_VEL: \n node->Update = ActionListSetVel; \n }" ({) "{" (case_statement) "case ALT_PAUSE: \n node->Update = ActionListPause; \n break;" (case) "case" (identifier) "ALT_PAUSE" (:) ":" (expression_statement) "node->Update = ActionListPause;" (assignment_expression) "node->Update = ActionListPause" (field_expression) "node->Update" (identifier) "node" (->) "->" (field_identifier) "Update" (=) "=" (identifier) "ActionListPause" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ALT_DESTROY: \n node->Update = ActionListDestroySelf; \n break;" (case) "case" (identifier) "ALT_DESTROY" (:) ":" (expression_statement) "node->Update = ActionListDestroySelf;" (assignment_expression) "node->Update = ActionListDestroySelf" (field_expression) "node->Update" (identifier) "node" (->) "->" (field_identifier) "Update" (=) "=" (identifier) "ActionListDestroySelf" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ALT_SET_PROPERTIES: \n node->Update = ActionListSetProperties; \n break;" (case) "case" (identifier) "ALT_SET_PROPERTIES" (:) ":" (expression_statement) "node->Update = ActionListSetProperties;" (assignment_expression) "node->Update = ActionListSetProperties" (field_expression) "node->Update" (identifier) "node" (->) "->" (field_identifier) "Update" (=) "=" (identifier) "ActionListSetProperties" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ALT_CREATE_ENTITY: \n node->Update = ActionListCreateEntity; \n break;" (case) "case" (identifier) "ALT_CREATE_ENTITY" (:) ":" (expression_statement) "node->Update = ActionListCreateEntity;" (assignment_expression) "node->Update = ActionListCreateEntity" (field_expression) "node->Update" (identifier) "node" (->) "->" (field_identifier) "Update" (=) "=" (identifier) "ActionListCreateEntity" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ALT_SET_VEL: \n node->Update = ActionListSetVel;" (case) "case" (identifier) "ALT_SET_VEL" (:) ":" (expression_statement) "node->Update = ActionListSetVel;" (assignment_expression) "node->Update = ActionListSetVel" (field_expression) "node->Update" (identifier) "node" (->) "->" (field_identifier) "Update" (=) "=" (identifier) "ActionListSetVel" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default: \n return;" (default) "default" (:) ":" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (comment) "// Add action to the actionList " (if_statement) "if(node) \n { \n AL_NODE *scan = self->actionList; \n \n if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n } \n }" (if) "if" (parenthesized_expression) "(node)" (() "(" (identifier) "node" ()) ")" (compound_statement) "{ \n AL_NODE *scan = self->actionList; \n \n if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n } \n }" ({) "{" (declaration) "AL_NODE *scan = self->actionList;" (type_identifier) "AL_NODE" (init_declarator) "*scan = self->actionList" (pointer_declarator) "*scan" (*) "*" (identifier) "scan" (=) "=" (field_expression) "self->actionList" (identifier) "self" (->) "->" (field_identifier) "actionList" (;) ";" (if_statement) "if(scan) \n { \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n } \n else \n { \n self->actionList = node; \n }" (if) "if" (parenthesized_expression) "(scan)" (() "(" (identifier) "scan" ()) ")" (compound_statement) "{ \n while(scan->next) \n { \n scan = scan->next; \n } \n \n scan->next = node; \n node->prev = scan; \n }" ({) "{" (while_statement) "while(scan->next) \n { \n scan = scan->next; \n }" (while) "while" (parenthesized_expression) "(scan->next)" (() "(" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" ()) ")" (compound_statement) "{ \n scan = scan->next; \n }" ({) "{" (expression_statement) "scan = scan->next;" (assignment_expression) "scan = scan->next" (identifier) "scan" (=) "=" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "scan->next = node;" (assignment_expression) "scan->next = node" (field_expression) "scan->next" (identifier) "scan" (->) "->" (field_identifier) "next" (=) "=" (identifier) "node" (;) ";" (expression_statement) "node->prev = scan;" (assignment_expression) "node->prev = scan" (field_expression) "node->prev" (identifier) "node" (->) "->" (field_identifier) "prev" (=) "=" (identifier) "scan" (;) ";" (}) "}" (else_clause) "else \n { \n self->actionList = node; \n }" (else) "else" (compound_statement) "{ \n self->actionList = node; \n }" ({) "{" (expression_statement) "self->actionList = node;" (assignment_expression) "self->actionList = node" (field_expression) "self->actionList" (identifier) "self" (->) "->" (field_identifier) "actionList" (=) "=" (identifier) "node" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "// " (comment) "// ActionListRemoveAction " (comment) "// Purpose: Removes a specific action from an actionList. " (comment) "// " (function_definition) "void ActionListRemoveAction( AL_NODE *self ) \n{ \n // Disconnect from list \n if(self) \n { \n if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n } \n } \n \n free( self ); \n}" (primitive_type) "void" (function_declarator) "ActionListRemoveAction( AL_NODE *self )" (identifier) "ActionListRemoveAction" (parameter_list) "( AL_NODE *self )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" ()) ")" (compound_statement) "{ \n // Disconnect from list \n if(self) \n { \n if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n } \n } \n \n free( self ); \n}" ({) "{" (comment) "// Disconnect from list " (if_statement) "if(self) \n { \n if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n } \n }" (if) "if" (parenthesized_expression) "(self)" (() "(" (identifier) "self" ()) ")" (compound_statement) "{ \n if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n } \n }" ({) "{" (if_statement) "if(self->prev) \n { \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n } \n else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n }" (if) "if" (parenthesized_expression) "(self->prev)" (() "(" (field_expression) "self->prev" (identifier) "self" (->) "->" (field_identifier) "prev" ()) ")" (compound_statement) "{ \n self->prev->next = self->next; \n if(self->next) \n { \n self->next->prev = self->prev; \n } \n }" ({) "{" (expression_statement) "self->prev->next = self->next;" (assignment_expression) "self->prev->next = self->next" (field_expression) "self->prev->next" (field_expression) "self->prev" (identifier) "self" (->) "->" (field_identifier) "prev" (->) "->" (field_identifier) "next" (=) "=" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" (;) ";" (if_statement) "if(self->next) \n { \n self->next->prev = self->prev; \n }" (if) "if" (parenthesized_expression) "(self->next)" (() "(" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" ()) ")" (compound_statement) "{ \n self->next->prev = self->prev; \n }" ({) "{" (expression_statement) "self->next->prev = self->prev;" (assignment_expression) "self->next->prev = self->prev" (field_expression) "self->next->prev" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" (->) "->" (field_identifier) "prev" (=) "=" (field_expression) "self->prev" (identifier) "self" (->) "->" (field_identifier) "prev" (;) ";" (}) "}" (}) "}" (else_clause) "else \n { \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n }" (else) "else" (compound_statement) "{ \n if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n } \n }" ({) "{" (if_statement) "if(self->next) \n { \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n } \n else \n { \n self->ownerComp->actionList = NULL; \n }" (if) "if" (parenthesized_expression) "(self->next)" (() "(" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" ()) ")" (compound_statement) "{ \n self->next->prev = NULL; \n self->ownerComp->actionList = self->next; \n }" ({) "{" (expression_statement) "self->next->prev = NULL;" (assignment_expression) "self->next->prev = NULL" (field_expression) "self->next->prev" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" (->) "->" (field_identifier) "prev" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "self->ownerComp->actionList = self->next;" (assignment_expression) "self->ownerComp->actionList = self->next" (field_expression) "self->ownerComp->actionList" (field_expression) "self->ownerComp" (identifier) "self" (->) "->" (field_identifier) "ownerComp" (->) "->" (field_identifier) "actionList" (=) "=" (field_expression) "self->next" (identifier) "self" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (else_clause) "else \n { \n self->ownerComp->actionList = NULL; \n }" (else) "else" (compound_statement) "{ \n self->ownerComp->actionList = NULL; \n }" ({) "{" (expression_statement) "self->ownerComp->actionList = NULL;" (assignment_expression) "self->ownerComp->actionList = NULL" (field_expression) "self->ownerComp->actionList" (field_expression) "self->ownerComp" (identifier) "self" (->) "->" (field_identifier) "ownerComp" (->) "->" (field_identifier) "actionList" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (}) "}" (expression_statement) "free( self );" (call_expression) "free( self )" (identifier) "free" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// ActionListPause " (comment) "// Purpose: Creates a blocking pause for an amount of seconds. " (comment) "// " (function_definition) "void ActionListPause( AL_NODE *self, float *dt ) \n{ \n self->dt += *dt; \n \n if(self->dt > self->timerEnd) \n { \n ActionListRemoveAction( self ); \n } \n}" (primitive_type) "void" (function_declarator) "ActionListPause( AL_NODE *self, float *dt )" (identifier) "ActionListPause" (parameter_list) "( AL_NODE *self, float *dt )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n self->dt += *dt; \n \n if(self->dt > self->timerEnd) \n { \n ActionListRemoveAction( self ); \n } \n}" ({) "{" (expression_statement) "self->dt += *dt;" (assignment_expression) "self->dt += *dt" (field_expression) "self->dt" (identifier) "self" (->) "->" (field_identifier) "dt" (+=) "+=" (pointer_expression) "*dt" (*) "*" (identifier) "dt" (;) ";" (if_statement) "if(self->dt > self->timerEnd) \n { \n ActionListRemoveAction( self ); \n }" (if) "if" (parenthesized_expression) "(self->dt > self->timerEnd)" (() "(" (binary_expression) "self->dt > self->timerEnd" (field_expression) "self->dt" (identifier) "self" (->) "->" (field_identifier) "dt" (>) ">" (field_expression) "self->timerEnd" (identifier) "self" (->) "->" (field_identifier) "timerEnd" ()) ")" (compound_statement) "{ \n ActionListRemoveAction( self ); \n }" ({) "{" (expression_statement) "ActionListRemoveAction( self );" (call_expression) "ActionListRemoveAction( self )" (identifier) "ActionListRemoveAction" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// " (comment) "// ActionListSetProperties " (comment) "// Purpose: Sets the properties of an entity to the flags data member with |= " (comment) "// to the value of var1. " (comment) "// " (function_definition) "void ActionListSetProperties( AL_NODE *self, float *dt ) \n{ \n self->ownerComp->base.owner->properties |= self->var1; \n ActionListRemoveAction( self ); \n}" (primitive_type) "void" (function_declarator) "ActionListSetProperties( AL_NODE *self, float *dt )" (identifier) "ActionListSetProperties" (parameter_list) "( AL_NODE *self, float *dt )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n self->ownerComp->base.owner->properties |= self->var1; \n ActionListRemoveAction( self ); \n}" ({) "{" (expression_statement) "self->ownerComp->base.owner->properties |= self->var1;" (assignment_expression) "self->ownerComp->base.owner->properties |= self->var1" (field_expression) "self->ownerComp->base.owner->properties" (field_expression) "self->ownerComp->base.owner" (field_expression) "self->ownerComp->base" (field_expression) "self->ownerComp" (identifier) "self" (->) "->" (field_identifier) "ownerComp" (->) "->" (field_identifier) "base" (.) "." (field_identifier) "owner" (->) "->" (field_identifier) "properties" (|=) "|=" (field_expression) "self->var1" (identifier) "self" (->) "->" (field_identifier) "var1" (;) ";" (expression_statement) "ActionListRemoveAction( self );" (call_expression) "ActionListRemoveAction( self )" (identifier) "ActionListRemoveAction" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// ActionListDestroySelf " (comment) "// Purpose: Sends an EM_DESTROY message to the owner entity. " (comment) "// " (function_definition) "void ActionListDestroySelf( AL_NODE *self, float *dt ) \n{ \n SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 ); \n}" (primitive_type) "void" (function_declarator) "ActionListDestroySelf( AL_NODE *self, float *dt )" (identifier) "ActionListDestroySelf" (parameter_list) "( AL_NODE *self, float *dt )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 ); \n}" ({) "{" (expression_statement) "SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 );" (call_expression) "SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 )" (identifier) "SendEntityMessage" (argument_list) "( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 )" (() "(" (field_expression) "self->ownerComp->base.owner" (field_expression) "self->ownerComp->base" (field_expression) "self->ownerComp" (identifier) "self" (->) "->" (field_identifier) "ownerComp" (->) "->" (field_identifier) "base" (.) "." (field_identifier) "owner" (,) "," (identifier) "EM_INACTIVE" (,) "," (number_literal) "0" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// ActionListCreateEntity " (comment) "// Purpose: Creates an entity. " (comment) "// " (function_definition) "void ActionListCreateEntity( AL_NODE *self, float *dt ) \n{ \n CreateEntity( (const char *)self->var1, self->var2, self->var3 ); \n ActionListRemoveAction( self ); \n}" (primitive_type) "void" (function_declarator) "ActionListCreateEntity( AL_NODE *self, float *dt )" (identifier) "ActionListCreateEntity" (parameter_list) "( AL_NODE *self, float *dt )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n CreateEntity( (const char *)self->var1, self->var2, self->var3 ); \n ActionListRemoveAction( self ); \n}" ({) "{" (expression_statement) "CreateEntity( (const char *)self->var1, self->var2, self->var3 );" (call_expression) "CreateEntity( (const char *)self->var1, self->var2, self->var3 )" (identifier) "CreateEntity" (argument_list) "( (const char *)self->var1, self->var2, self->var3 )" (() "(" (cast_expression) "(const char *)self->var1" (() "(" (type_descriptor) "const char *" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "self->var1" (identifier) "self" (->) "->" (field_identifier) "var1" (,) "," (field_expression) "self->var2" (identifier) "self" (->) "->" (field_identifier) "var2" (,) "," (field_expression) "self->var3" (identifier) "self" (->) "->" (field_identifier) "var3" ()) ")" (;) ";" (expression_statement) "ActionListRemoveAction( self );" (call_expression) "ActionListRemoveAction( self )" (identifier) "ActionListRemoveAction" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}" (comment) "// " (comment) "// ActionListSetVel " (comment) "// Purpose: Sets the velocity of an object to var1 " (comment) "// " (function_definition) "void ActionListSetVel( AL_NODE *self, float *dt ) \n{ \n VECTOR2D vel = { (float)self->var1, (float)self->var2 }; \n SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ ); \n ActionListRemoveAction( self ); \n}" (primitive_type) "void" (function_declarator) "ActionListSetVel( AL_NODE *self, float *dt )" (identifier) "ActionListSetVel" (parameter_list) "( AL_NODE *self, float *dt )" (() "(" (parameter_declaration) "AL_NODE *self" (type_identifier) "AL_NODE" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "float *dt" (primitive_type) "float" (pointer_declarator) "*dt" (*) "*" (identifier) "dt" ()) ")" (compound_statement) "{ \n VECTOR2D vel = { (float)self->var1, (float)self->var2 }; \n SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ ); \n ActionListRemoveAction( self ); \n}" ({) "{" (declaration) "VECTOR2D vel = { (float)self->var1, (float)self->var2 };" (type_identifier) "VECTOR2D" (init_declarator) "vel = { (float)self->var1, (float)self->var2 }" (identifier) "vel" (=) "=" (initializer_list) "{ (float)self->var1, (float)self->var2 }" ({) "{" (cast_expression) "(float)self->var1" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (field_expression) "self->var1" (identifier) "self" (->) "->" (field_identifier) "var1" (,) "," (cast_expression) "(float)self->var2" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (field_expression) "self->var2" (identifier) "self" (->) "->" (field_identifier) "var2" (}) "}" (;) ";" (expression_statement) "SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ );" (call_expression) "SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ )" (identifier) "SendEntityMessage" (argument_list) "( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ )" (() "(" (field_expression) "self->ownerComp->base.owner" (field_expression) "self->ownerComp->base" (field_expression) "self->ownerComp" (identifier) "self" (->) "->" (field_identifier) "ownerComp" (->) "->" (field_identifier) "base" (.) "." (field_identifier) "owner" (,) "," (identifier) "EM_SETVEL" (,) "," (cast_expression) "(int)&vel.x_" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (pointer_expression) "&vel.x_" (&) "&" (field_expression) "vel.x_" (identifier) "vel" (.) "." (field_identifier) "x_" (,) "," (cast_expression) "(int)&vel.y_" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (pointer_expression) "&vel.y_" (&) "&" (field_expression) "vel.y_" (identifier) "vel" (.) "." (field_identifier) "y_" ()) ")" (;) ";" (expression_statement) "ActionListRemoveAction( self );" (call_expression) "ActionListRemoveAction( self )" (identifier) "ActionListRemoveAction" (argument_list) "( self )" (() "(" (identifier) "self" ()) ")" (;) ";" (}) "}"
1,392
0
{"language": "c", "success": true, "metadata": {"lines": 277, "avg_line_length": 21.53, "nodes": 817, "errors": 0, "source_hash": "08e08a164f1f8e57564587e6af204ee3381b4b824868b93eb3e121b1dc790bfb", "categorized_nodes": 578}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"ActionList.h\"\r\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": "string_literal", "text": "\"ActionList.h\"", "parent": 0, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 23}}, {"id": 3, "type": "preproc_include", "text": "#include \"EntityManager.h\"\r\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": "string_literal", "text": "\"EntityManager.h\"", "parent": 3, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include \"EntityFactory.h\"\r\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": "string_literal", "text": "\"EntityFactory.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 26}}, {"id": 9, "type": "declaration", "text": "static const char *CLASS_NAME = NULL;", "parent": null, "children": [10, 11], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 37}}, {"id": 10, "type": "primitive_type", "text": "char", "parent": 9, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 17}}, {"id": 11, "type": "init_declarator", "text": "*CLASS_NAME = NULL", "parent": 9, "children": [12, 15, 16], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 36}}, {"id": 12, "type": "pointer_declarator", "text": "*CLASS_NAME", "parent": 11, "children": [13, 14], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 29}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 14, "type": "identifier", "text": "CLASS_NAME", "parent": 12, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 29}}, {"id": 15, "type": "=", "text": "=", "parent": 11, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 31}}, {"id": 16, "type": "null", "text": "NULL", "parent": 11, "children": [17], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 36}}, {"id": 17, "type": "NULL", "text": "NULL", "parent": 16, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 36}}, {"id": 18, "type": "function_definition", "text": "void ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )\r\n{\r\n switch(msg)\r\n {\r\n // GENERAL\r\n case EM_CLSINIT:\r\n ActionListInit( (const char *)var1 );\r\n break;\r\n case EM_CREATE:\r\n ActionListCreate( self );\r\n break;\r\n case EM_UPDATE:\r\n ActionListUpdate( self, (float *)var1 );\r\n break;\r\n case EM_DESTROY:\r\n ActionListDestroy( self );\r\n break;\r\n\r\n // ACTIONLIST\r\n case EM_ALADDACT:\r\n ActionListAddAction( self, (ALD *)var1 );\r\n break;\r\n case EM_ALREMACT:\r\n ActionListRemoveAction( (AL_NODE *)var1 );\r\n break;\r\n }\r\n}", "parent": null, "children": [19, 20], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 4}}, {"id": 20, "type": "function_declarator", "text": "ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )", "parent": 18, "children": [21, 22], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 63}}, {"id": 21, "type": "identifier", "text": "ActionListCOM_PROC", "parent": 20, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 23}}, {"id": 22, "type": "parameter_list", "text": "( AL *self, EM msg, int var1, int var2 )", "parent": 20, "children": [23, 28, 31, 34], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 63}}, {"id": 23, "type": "parameter_declaration", "text": "AL *self", "parent": 22, "children": [24, 25], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 33}}, {"id": 24, "type": "type_identifier", "text": "AL", "parent": 23, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 27}}, {"id": 25, "type": "pointer_declarator", "text": "*self", "parent": 23, "children": [26, 27], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 33}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 29}}, {"id": 27, "type": "identifier", "text": "self", "parent": 25, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 33}}, {"id": 28, "type": "parameter_declaration", "text": "EM msg", "parent": 22, "children": [29, 30], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 41}}, {"id": 29, "type": "type_identifier", "text": "EM", "parent": 28, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 37}}, {"id": 30, "type": "identifier", "text": "msg", "parent": 28, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 41}}, {"id": 31, "type": "parameter_declaration", "text": "int var1", "parent": 22, "children": [32, 33], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 51}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 46}}, {"id": 33, "type": "identifier", "text": "var1", "parent": 31, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 51}}, {"id": 34, "type": "parameter_declaration", "text": "int var2", "parent": 22, "children": [35, 36], "start_point": {"row": 21, "column": 53}, "end_point": {"row": 21, "column": 61}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 21, "column": 53}, "end_point": {"row": 21, "column": 56}}, {"id": 36, "type": "identifier", "text": "var2", "parent": 34, "children": [], "start_point": {"row": 21, "column": 57}, "end_point": {"row": 21, "column": 61}}, {"id": 37, "type": "switch_statement", "text": "switch(msg)\r\n {\r\n // GENERAL\r\n case EM_CLSINIT:\r\n ActionListInit( (const char *)var1 );\r\n break;\r\n case EM_CREATE:\r\n ActionListCreate( self );\r\n break;\r\n case EM_UPDATE:\r\n ActionListUpdate( self, (float *)var1 );\r\n break;\r\n case EM_DESTROY:\r\n ActionListDestroy( self );\r\n break;\r\n\r\n // ACTIONLIST\r\n case EM_ALADDACT:\r\n ActionListAddAction( self, (ALD *)var1 );\r\n break;\r\n case EM_ALREMACT:\r\n ActionListRemoveAction( (AL_NODE *)var1 );\r\n break;\r\n }", "parent": 18, "children": [38, 39], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 46, "column": 3}}, {"id": 38, "type": "switch", "text": "switch", "parent": 37, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 39, "type": "parenthesized_expression", "text": "(msg)", "parent": 37, "children": [40], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 13}}, {"id": 40, "type": "identifier", "text": "msg", "parent": 39, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 12}}, {"id": 41, "type": "case_statement", "text": "case EM_CLSINIT:\r\n ActionListInit( (const char *)var1 );\r\n break;", "parent": 37, "children": [42, 43, 53], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 28, "column": 10}}, {"id": 42, "type": "case", "text": "case", "parent": 41, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 43, "type": "identifier", "text": "EM_CLSINIT", "parent": 41, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 17}}, {"id": 44, "type": "call_expression", "text": "ActionListInit( (const char *)var1 )", "parent": 41, "children": [45, 46], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 40}}, {"id": 45, "type": "identifier", "text": "ActionListInit", "parent": 44, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 18}}, {"id": 46, "type": "argument_list", "text": "( (const char *)var1 )", "parent": 44, "children": [47], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 40}}, {"id": 47, "type": "cast_expression", "text": "(const char *)var1", "parent": 46, "children": [48, 52], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 38}}, {"id": 48, "type": "type_descriptor", "text": "const char *", "parent": 47, "children": [49, 50], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 33}}, {"id": 49, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 31}}, {"id": 50, "type": "abstract_pointer_declarator", "text": "*", "parent": 48, "children": [51], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 33}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 33}}, {"id": 52, "type": "identifier", "text": "var1", "parent": 47, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 38}}, {"id": 53, "type": "break_statement", "text": "break;", "parent": 41, "children": [54], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 54, "type": "break", "text": "break", "parent": 53, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 9}}, {"id": 55, "type": "case_statement", "text": "case EM_CREATE:\r\n ActionListCreate( self );\r\n break;", "parent": 37, "children": [56, 57, 62], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 31, "column": 10}}, {"id": 56, "type": "case", "text": "case", "parent": 55, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 6}}, {"id": 57, "type": "identifier", "text": "EM_CREATE", "parent": 55, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 16}}, {"id": 58, "type": "call_expression", "text": "ActionListCreate( self )", "parent": 55, "children": [59, 60], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 28}}, {"id": 59, "type": "identifier", "text": "ActionListCreate", "parent": 58, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 20}}, {"id": 60, "type": "argument_list", "text": "( self )", "parent": 58, "children": [61], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 28}}, {"id": 61, "type": "identifier", "text": "self", "parent": 60, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 26}}, {"id": 62, "type": "break_statement", "text": "break;", "parent": 55, "children": [63], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 63, "type": "break", "text": "break", "parent": 62, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 9}}, {"id": 64, "type": "case_statement", "text": "case EM_UPDATE:\r\n ActionListUpdate( self, (float *)var1 );\r\n break;", "parent": 37, "children": [65, 66, 77], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 65, "type": "case", "text": "case", "parent": 64, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 6}}, {"id": 66, "type": "identifier", "text": "EM_UPDATE", "parent": 64, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 16}}, {"id": 67, "type": "call_expression", "text": "ActionListUpdate( self, (float *)var1 )", "parent": 64, "children": [68, 69], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 43}}, {"id": 68, "type": "identifier", "text": "ActionListUpdate", "parent": 67, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 20}}, {"id": 69, "type": "argument_list", "text": "( self, (float *)var1 )", "parent": 67, "children": [70, 71], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 43}}, {"id": 70, "type": "identifier", "text": "self", "parent": 69, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 71, "type": "cast_expression", "text": "(float *)var1", "parent": 69, "children": [72, 76], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 41}}, {"id": 72, "type": "type_descriptor", "text": "float *", "parent": 71, "children": [73, 74], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 36}}, {"id": 73, "type": "primitive_type", "text": "float", "parent": 72, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 34}}, {"id": 74, "type": "abstract_pointer_declarator", "text": "*", "parent": 72, "children": [75], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 36}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 33, "column": 35}, "end_point": {"row": 33, "column": 36}}, {"id": 76, "type": "identifier", "text": "var1", "parent": 71, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 41}}, {"id": 77, "type": "break_statement", "text": "break;", "parent": 64, "children": [78], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 78, "type": "break", "text": "break", "parent": 77, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 9}}, {"id": 79, "type": "case_statement", "text": "case EM_DESTROY:\r\n ActionListDestroy( self );\r\n break;", "parent": 37, "children": [80, 81, 86], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 37, "column": 10}}, {"id": 80, "type": "case", "text": "case", "parent": 79, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 81, "type": "identifier", "text": "EM_DESTROY", "parent": 79, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 17}}, {"id": 82, "type": "call_expression", "text": "ActionListDestroy( self )", "parent": 79, "children": [83, 84], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 29}}, {"id": 83, "type": "identifier", "text": "ActionListDestroy", "parent": 82, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 21}}, {"id": 84, "type": "argument_list", "text": "( self )", "parent": 82, "children": [85], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 29}}, {"id": 85, "type": "identifier", "text": "self", "parent": 84, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 27}}, {"id": 86, "type": "break_statement", "text": "break;", "parent": 79, "children": [87], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 10}}, {"id": 87, "type": "break", "text": "break", "parent": 86, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 9}}, {"id": 88, "type": "case_statement", "text": "case EM_ALADDACT:\r\n ActionListAddAction( self, (ALD *)var1 );\r\n break;", "parent": 37, "children": [89, 90, 101], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 42, "column": 10}}, {"id": 89, "type": "case", "text": "case", "parent": 88, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 90, "type": "identifier", "text": "EM_ALADDACT", "parent": 88, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 18}}, {"id": 91, "type": "call_expression", "text": "ActionListAddAction( self, (ALD *)var1 )", "parent": 88, "children": [92, 93], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 44}}, {"id": 92, "type": "identifier", "text": "ActionListAddAction", "parent": 91, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 23}}, {"id": 93, "type": "argument_list", "text": "( self, (ALD *)var1 )", "parent": 91, "children": [94, 95], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 44}}, {"id": 94, "type": "identifier", "text": "self", "parent": 93, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 29}}, {"id": 95, "type": "cast_expression", "text": "(ALD *)var1", "parent": 93, "children": [96, 100], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 42}}, {"id": 96, "type": "type_descriptor", "text": "ALD *", "parent": 95, "children": [97, 98], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 37}}, {"id": 97, "type": "type_identifier", "text": "ALD", "parent": 96, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 35}}, {"id": 98, "type": "abstract_pointer_declarator", "text": "*", "parent": 96, "children": [99], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 37}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 37}}, {"id": 100, "type": "identifier", "text": "var1", "parent": 95, "children": [], "start_point": {"row": 41, "column": 38}, "end_point": {"row": 41, "column": 42}}, {"id": 101, "type": "break_statement", "text": "break;", "parent": 88, "children": [102], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 102, "type": "break", "text": "break", "parent": 101, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 9}}, {"id": 103, "type": "case_statement", "text": "case EM_ALREMACT:\r\n ActionListRemoveAction( (AL_NODE *)var1 );\r\n break;", "parent": 37, "children": [104, 105, 115], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 45, "column": 10}}, {"id": 104, "type": "case", "text": "case", "parent": 103, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 105, "type": "identifier", "text": "EM_ALREMACT", "parent": 103, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 18}}, {"id": 106, "type": "call_expression", "text": "ActionListRemoveAction( (AL_NODE *)var1 )", "parent": 103, "children": [107, 108], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 45}}, {"id": 107, "type": "identifier", "text": "ActionListRemoveAction", "parent": 106, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 26}}, {"id": 108, "type": "argument_list", "text": "( (AL_NODE *)var1 )", "parent": 106, "children": [109], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 45}}, {"id": 109, "type": "cast_expression", "text": "(AL_NODE *)var1", "parent": 108, "children": [110, 114], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 43}}, {"id": 110, "type": "type_descriptor", "text": "AL_NODE *", "parent": 109, "children": [111, 112], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 38}}, {"id": 111, "type": "type_identifier", "text": "AL_NODE", "parent": 110, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 36}}, {"id": 112, "type": "abstract_pointer_declarator", "text": "*", "parent": 110, "children": [113], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 114, "type": "identifier", "text": "var1", "parent": 109, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 43}}, {"id": 115, "type": "break_statement", "text": "break;", "parent": 103, "children": [116], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 10}}, {"id": 116, "type": "break", "text": "break", "parent": 115, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 9}}, {"id": 117, "type": "function_definition", "text": "void ActionListCreate( AL *self )\r\n{\r\n self->actionList = NULL;\r\n self->base.CLASS_NAME = CLASS_NAME;\r\n}", "parent": null, "children": [118, 119], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 59, "column": 1}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 119, "type": "function_declarator", "text": "ActionListCreate( AL *self )", "parent": 117, "children": [120, 121], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 33}}, {"id": 120, "type": "identifier", "text": "ActionListCreate", "parent": 119, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 21}}, {"id": 121, "type": "parameter_list", "text": "( AL *self )", "parent": 119, "children": [122], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 33}}, {"id": 122, "type": "parameter_declaration", "text": "AL *self", "parent": 121, "children": [123, 124], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 31}}, {"id": 123, "type": "type_identifier", "text": "AL", "parent": 122, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 25}}, {"id": 124, "type": "pointer_declarator", "text": "*self", "parent": 122, "children": [125, 126], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 31}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 27}}, {"id": 126, "type": "identifier", "text": "self", "parent": 124, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 31}}, {"id": 127, "type": "assignment_expression", "text": "self->actionList = NULL", "parent": 117, "children": [128, 131, 132], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 25}}, {"id": 128, "type": "field_expression", "text": "self->actionList", "parent": 127, "children": [129, 130], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 18}}, {"id": 129, "type": "identifier", "text": "self", "parent": 128, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 6}}, {"id": 130, "type": "field_identifier", "text": "actionList", "parent": 128, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 18}}, {"id": 131, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 20}}, {"id": 132, "type": "null", "text": "NULL", "parent": 127, "children": [133], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 133, "type": "NULL", "text": "NULL", "parent": 132, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 134, "type": "assignment_expression", "text": "self->base.CLASS_NAME = CLASS_NAME", "parent": 117, "children": [135, 140, 141], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 36}}, {"id": 135, "type": "field_expression", "text": "self->base.CLASS_NAME", "parent": 134, "children": [136, 139], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 23}}, {"id": 136, "type": "field_expression", "text": "self->base", "parent": 135, "children": [137, 138], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 12}}, {"id": 137, "type": "identifier", "text": "self", "parent": 136, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 6}}, {"id": 138, "type": "field_identifier", "text": "base", "parent": 136, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 12}}, {"id": 139, "type": "field_identifier", "text": "CLASS_NAME", "parent": 135, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 23}}, {"id": 140, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 141, "type": "identifier", "text": "CLASS_NAME", "parent": 134, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 36}}, {"id": 142, "type": "function_definition", "text": "void ActionListInit( const char *className )\r\n{\r\n CLASS_NAME = (const char *)malloc( strlen( className ) + 1 );\r\n strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className );\r\n}", "parent": null, "children": [143, 144], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 142, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 4}}, {"id": 144, "type": "function_declarator", "text": "ActionListInit( const char *className )", "parent": 142, "children": [145, 146], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 44}}, {"id": 145, "type": "identifier", "text": "ActionListInit", "parent": 144, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 19}}, {"id": 146, "type": "parameter_list", "text": "( const char *className )", "parent": 144, "children": [147], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 44}}, {"id": 147, "type": "parameter_declaration", "text": "const char *className", "parent": 146, "children": [148, 149], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 42}}, {"id": 148, "type": "primitive_type", "text": "char", "parent": 147, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 31}}, {"id": 149, "type": "pointer_declarator", "text": "*className", "parent": 147, "children": [150, 151], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 42}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 33}}, {"id": 151, "type": "identifier", "text": "className", "parent": 149, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 42}}, {"id": 152, "type": "assignment_expression", "text": "CLASS_NAME = (const char *)malloc( strlen( className ) + 1 )", "parent": 142, "children": [153, 154, 155], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 62}}, {"id": 153, "type": "identifier", "text": "CLASS_NAME", "parent": 152, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 12}}, {"id": 154, "type": "=", "text": "=", "parent": 152, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 14}}, {"id": 155, "type": "cast_expression", "text": "(const char *)malloc( strlen( className ) + 1 )", "parent": 152, "children": [156, 160], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 62}}, {"id": 156, "type": "type_descriptor", "text": "const char *", "parent": 155, "children": [157, 158], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 28}}, {"id": 157, "type": "primitive_type", "text": "char", "parent": 156, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 26}}, {"id": 158, "type": "abstract_pointer_declarator", "text": "*", "parent": 156, "children": [159], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 28}}, {"id": 159, "type": "*", "text": "*", "parent": 158, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 28}}, {"id": 160, "type": "call_expression", "text": "malloc( strlen( className ) + 1 )", "parent": 155, "children": [161, 162], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 62}}, {"id": 161, "type": "identifier", "text": "malloc", "parent": 160, "children": [], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 35}}, {"id": 162, "type": "argument_list", "text": "( strlen( className ) + 1 )", "parent": 160, "children": [163], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 62}}, {"id": 163, "type": "binary_expression", "text": "strlen( className ) + 1", "parent": 162, "children": [164, 168, 169], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 60}}, {"id": 164, "type": "call_expression", "text": "strlen( className )", "parent": 163, "children": [165, 166], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 56}}, {"id": 165, "type": "identifier", "text": "strlen", "parent": 164, "children": [], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 43}}, {"id": 166, "type": "argument_list", "text": "( className )", "parent": 164, "children": [167], "start_point": {"row": 68, "column": 43}, "end_point": {"row": 68, "column": 56}}, {"id": 167, "type": "identifier", "text": "className", "parent": 166, "children": [], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 54}}, {"id": 168, "type": "+", "text": "+", "parent": 163, "children": [], "start_point": {"row": 68, "column": 57}, "end_point": {"row": 68, "column": 58}}, {"id": 169, "type": "number_literal", "text": "1", "parent": 163, "children": [], "start_point": {"row": 68, "column": 59}, "end_point": {"row": 68, "column": 60}}, {"id": 170, "type": "call_expression", "text": "strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className )", "parent": 142, "children": [171, 172], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 69}}, {"id": 171, "type": "identifier", "text": "strcpy_s", "parent": 170, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 10}}, {"id": 172, "type": "argument_list", "text": "( (char *)CLASS_NAME, strlen( className ) + 1 , className )", "parent": 170, "children": [173, 179, 186], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 69}}, {"id": 173, "type": "cast_expression", "text": "(char *)CLASS_NAME", "parent": 172, "children": [174, 178], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 30}}, {"id": 174, "type": "type_descriptor", "text": "char *", "parent": 173, "children": [175, 176], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 19}}, {"id": 175, "type": "primitive_type", "text": "char", "parent": 174, "children": [], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 17}}, {"id": 176, "type": "abstract_pointer_declarator", "text": "*", "parent": 174, "children": [177], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 178, "type": "identifier", "text": "CLASS_NAME", "parent": 173, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 30}}, {"id": 179, "type": "binary_expression", "text": "strlen( className ) + 1", "parent": 172, "children": [180, 184, 185], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 55}}, {"id": 180, "type": "call_expression", "text": "strlen( className )", "parent": 179, "children": [181, 182], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 51}}, {"id": 181, "type": "identifier", "text": "strlen", "parent": 180, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 38}}, {"id": 182, "type": "argument_list", "text": "( className )", "parent": 180, "children": [183], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 51}}, {"id": 183, "type": "identifier", "text": "className", "parent": 182, "children": [], "start_point": {"row": 69, "column": 40}, "end_point": {"row": 69, "column": 49}}, {"id": 184, "type": "+", "text": "+", "parent": 179, "children": [], "start_point": {"row": 69, "column": 52}, "end_point": {"row": 69, "column": 53}}, {"id": 185, "type": "number_literal", "text": "1", "parent": 179, "children": [], "start_point": {"row": 69, "column": 54}, "end_point": {"row": 69, "column": 55}}, {"id": 186, "type": "identifier", "text": "className", "parent": 172, "children": [], "start_point": {"row": 69, "column": 58}, "end_point": {"row": 69, "column": 67}}, {"id": 187, "type": "function_definition", "text": "void ActionListUpdate( AL *self, float *dt )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle through each action and call its Update function\r\n // If find a blocking action, stop the cycle\r\n if(scan)\r\n {\r\n do\r\n {\r\n int flag = scan->flag;\r\n scan->Update( scan, dt );\r\n if(flag & BLOCKING)\r\n break;\r\n if(!scan)\r\n break;\r\n } while(scan->next);\r\n }\r\n}", "parent": null, "children": [188, 189], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 94, "column": 1}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 4}}, {"id": 189, "type": "function_declarator", "text": "ActionListUpdate( AL *self, float *dt )", "parent": 187, "children": [190, 191], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 44}}, {"id": 190, "type": "identifier", "text": "ActionListUpdate", "parent": 189, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 21}}, {"id": 191, "type": "parameter_list", "text": "( AL *self, float *dt )", "parent": 189, "children": [192, 197], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 44}}, {"id": 192, "type": "parameter_declaration", "text": "AL *self", "parent": 191, "children": [193, 194], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 31}}, {"id": 193, "type": "type_identifier", "text": "AL", "parent": 192, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 25}}, {"id": 194, "type": "pointer_declarator", "text": "*self", "parent": 192, "children": [195, 196], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 31}}, {"id": 195, "type": "*", "text": "*", "parent": 194, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 27}}, {"id": 196, "type": "identifier", "text": "self", "parent": 194, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 31}}, {"id": 197, "type": "parameter_declaration", "text": "float *dt", "parent": 191, "children": [198, 199], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 42}}, {"id": 198, "type": "primitive_type", "text": "float", "parent": 197, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 38}}, {"id": 199, "type": "pointer_declarator", "text": "*dt", "parent": 197, "children": [200, 201], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 42}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 76, "column": 39}, "end_point": {"row": 76, "column": 40}}, {"id": 201, "type": "identifier", "text": "dt", "parent": 199, "children": [], "start_point": {"row": 76, "column": 40}, "end_point": {"row": 76, "column": 42}}, {"id": 202, "type": "declaration", "text": "AL_NODE *scan = self->actionList;", "parent": 187, "children": [203, 204], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 35}}, {"id": 203, "type": "type_identifier", "text": "AL_NODE", "parent": 202, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 9}}, {"id": 204, "type": "init_declarator", "text": "*scan = self->actionList", "parent": 202, "children": [205, 208, 209], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 34}}, {"id": 205, "type": "pointer_declarator", "text": "*scan", "parent": 204, "children": [206, 207], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 15}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 207, "type": "identifier", "text": "scan", "parent": 205, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 15}}, {"id": 208, "type": "=", "text": "=", "parent": 204, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 17}}, {"id": 209, "type": "field_expression", "text": "self->actionList", "parent": 204, "children": [210, 211], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 34}}, {"id": 210, "type": "identifier", "text": "self", "parent": 209, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 22}}, {"id": 211, "type": "field_identifier", "text": "actionList", "parent": 209, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 34}}, {"id": 212, "type": "if_statement", "text": "if(scan)\r\n {\r\n do\r\n {\r\n int flag = scan->flag;\r\n scan->Update( scan, dt );\r\n if(flag & BLOCKING)\r\n break;\r\n if(!scan)\r\n break;\r\n } while(scan->next);\r\n }", "parent": 187, "children": [213], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 93, "column": 3}}, {"id": 213, "type": "parenthesized_expression", "text": "(scan)", "parent": 212, "children": [214], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 10}}, {"id": 214, "type": "identifier", "text": "scan", "parent": 213, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 9}}, {"id": 215, "type": "do_statement", "text": "do\r\n {\r\n int flag = scan->flag;\r\n scan->Update( scan, dt );\r\n if(flag & BLOCKING)\r\n break;\r\n if(!scan)\r\n break;\r\n } while(scan->next);", "parent": 212, "children": [245], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 92, "column": 24}}, {"id": 216, "type": "declaration", "text": "int flag = scan->flag;", "parent": 215, "children": [217, 218], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 28}}, {"id": 217, "type": "primitive_type", "text": "int", "parent": 216, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 9}}, {"id": 218, "type": "init_declarator", "text": "flag = scan->flag", "parent": 216, "children": [219, 220, 221], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 27}}, {"id": 219, "type": "identifier", "text": "flag", "parent": 218, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 14}}, {"id": 220, "type": "=", "text": "=", "parent": 218, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 16}}, {"id": 221, "type": "field_expression", "text": "scan->flag", "parent": 218, "children": [222, 223], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 27}}, {"id": 222, "type": "identifier", "text": "scan", "parent": 221, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 21}}, {"id": 223, "type": "field_identifier", "text": "flag", "parent": 221, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 27}}, {"id": 224, "type": "call_expression", "text": "scan->Update( scan, dt )", "parent": 215, "children": [225, 228], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 30}}, {"id": 225, "type": "field_expression", "text": "scan->Update", "parent": 224, "children": [226, 227], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 18}}, {"id": 226, "type": "identifier", "text": "scan", "parent": 225, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 10}}, {"id": 227, "type": "field_identifier", "text": "Update", "parent": 225, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 18}}, {"id": 228, "type": "argument_list", "text": "( scan, dt )", "parent": 224, "children": [229, 230], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 30}}, {"id": 229, "type": "identifier", "text": "scan", "parent": 228, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 24}}, {"id": 230, "type": "identifier", "text": "dt", "parent": 228, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 28}}, {"id": 231, "type": "if_statement", "text": "if(flag & BLOCKING)\r\n break;", "parent": 215, "children": [232, 236], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 89, "column": 14}}, {"id": 232, "type": "parenthesized_expression", "text": "(flag & BLOCKING)", "parent": 231, "children": [233], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 25}}, {"id": 233, "type": "binary_expression", "text": "flag & BLOCKING", "parent": 232, "children": [234, 235], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 24}}, {"id": 234, "type": "identifier", "text": "flag", "parent": 233, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 13}}, {"id": 235, "type": "identifier", "text": "BLOCKING", "parent": 233, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 24}}, {"id": 236, "type": "break_statement", "text": "break;", "parent": 231, "children": [237], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 14}}, {"id": 237, "type": "break", "text": "break", "parent": 236, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 13}}, {"id": 238, "type": "if_statement", "text": "if(!scan)\r\n break;", "parent": 215, "children": [239, 243], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 91, "column": 14}}, {"id": 239, "type": "parenthesized_expression", "text": "(!scan)", "parent": 238, "children": [240], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 15}}, {"id": 240, "type": "unary_expression", "text": "!scan", "parent": 239, "children": [241, 242], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 14}}, {"id": 241, "type": "!", "text": "!", "parent": 240, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 242, "type": "identifier", "text": "scan", "parent": 240, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 14}}, {"id": 243, "type": "break_statement", "text": "break;", "parent": 238, "children": [244], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 14}}, {"id": 244, "type": "break", "text": "break", "parent": 243, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 13}}, {"id": 245, "type": "parenthesized_expression", "text": "(scan->next)", "parent": 215, "children": [246], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 23}}, {"id": 246, "type": "field_expression", "text": "scan->next", "parent": 245, "children": [247, 248], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 22}}, {"id": 247, "type": "identifier", "text": "scan", "parent": 246, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 248, "type": "field_identifier", "text": "next", "parent": 246, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 22}}, {"id": 249, "type": "function_definition", "text": "void ActionListDestroy( AL *self )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle through each action and free it from memory\r\n while(scan)\r\n {\r\n AL_NODE *temp = NULL;\r\n if(scan->next)\r\n temp = scan->next;\r\n ActionListRemoveAction( scan );\r\n scan = temp;\r\n }\r\n}", "parent": null, "children": [250, 251], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 113, "column": 1}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 4}}, {"id": 251, "type": "function_declarator", "text": "ActionListDestroy( AL *self )", "parent": 249, "children": [252, 253], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 34}}, {"id": 252, "type": "identifier", "text": "ActionListDestroy", "parent": 251, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 22}}, {"id": 253, "type": "parameter_list", "text": "( AL *self )", "parent": 251, "children": [254], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 34}}, {"id": 254, "type": "parameter_declaration", "text": "AL *self", "parent": 253, "children": [255, 256], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 32}}, {"id": 255, "type": "type_identifier", "text": "AL", "parent": 254, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 26}}, {"id": 256, "type": "pointer_declarator", "text": "*self", "parent": 254, "children": [257, 258], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 32}}, {"id": 257, "type": "*", "text": "*", "parent": 256, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 28}}, {"id": 258, "type": "identifier", "text": "self", "parent": 256, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 32}}, {"id": 259, "type": "declaration", "text": "AL_NODE *scan = self->actionList;", "parent": 249, "children": [260, 261], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 35}}, {"id": 260, "type": "type_identifier", "text": "AL_NODE", "parent": 259, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 9}}, {"id": 261, "type": "init_declarator", "text": "*scan = self->actionList", "parent": 259, "children": [262, 265, 266], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 34}}, {"id": 262, "type": "pointer_declarator", "text": "*scan", "parent": 261, "children": [263, 264], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 15}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 11}}, {"id": 264, "type": "identifier", "text": "scan", "parent": 262, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 15}}, {"id": 265, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 266, "type": "field_expression", "text": "self->actionList", "parent": 261, "children": [267, 268], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 34}}, {"id": 267, "type": "identifier", "text": "self", "parent": 266, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 22}}, {"id": 268, "type": "field_identifier", "text": "actionList", "parent": 266, "children": [], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 34}}, {"id": 269, "type": "while_statement", "text": "while(scan)\r\n {\r\n AL_NODE *temp = NULL;\r\n if(scan->next)\r\n temp = scan->next;\r\n ActionListRemoveAction( scan );\r\n scan = temp;\r\n }", "parent": 249, "children": [270], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 112, "column": 3}}, {"id": 270, "type": "parenthesized_expression", "text": "(scan)", "parent": 269, "children": [271], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 13}}, {"id": 271, "type": "identifier", "text": "scan", "parent": 270, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 12}}, {"id": 272, "type": "declaration", "text": "AL_NODE *temp = NULL;", "parent": 269, "children": [273, 274], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 25}}, {"id": 273, "type": "type_identifier", "text": "AL_NODE", "parent": 272, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 11}}, {"id": 274, "type": "init_declarator", "text": "*temp = NULL", "parent": 272, "children": [275, 278, 279], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 24}}, {"id": 275, "type": "pointer_declarator", "text": "*temp", "parent": 274, "children": [276, 277], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 17}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 13}}, {"id": 277, "type": "identifier", "text": "temp", "parent": 275, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 17}}, {"id": 278, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 279, "type": "null", "text": "NULL", "parent": 274, "children": [280], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 24}}, {"id": 280, "type": "NULL", "text": "NULL", "parent": 279, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 24}}, {"id": 281, "type": "if_statement", "text": "if(scan->next)\r\n temp = scan->next;", "parent": 269, "children": [282], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 109, "column": 24}}, {"id": 282, "type": "parenthesized_expression", "text": "(scan->next)", "parent": 281, "children": [283], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 18}}, {"id": 283, "type": "field_expression", "text": "scan->next", "parent": 282, "children": [284, 285], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 17}}, {"id": 284, "type": "identifier", "text": "scan", "parent": 283, "children": [], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 11}}, {"id": 285, "type": "field_identifier", "text": "next", "parent": 283, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 17}}, {"id": 286, "type": "assignment_expression", "text": "temp = scan->next", "parent": 281, "children": [287, 288, 289], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 23}}, {"id": 287, "type": "identifier", "text": "temp", "parent": 286, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 10}}, {"id": 288, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 109, "column": 11}, "end_point": {"row": 109, "column": 12}}, {"id": 289, "type": "field_expression", "text": "scan->next", "parent": 286, "children": [290, 291], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 23}}, {"id": 290, "type": "identifier", "text": "scan", "parent": 289, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 17}}, {"id": 291, "type": "field_identifier", "text": "next", "parent": 289, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 23}}, {"id": 292, "type": "call_expression", "text": "ActionListRemoveAction( scan )", "parent": 269, "children": [293, 294], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 34}}, {"id": 293, "type": "identifier", "text": "ActionListRemoveAction", "parent": 292, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 26}}, {"id": 294, "type": "argument_list", "text": "( scan )", "parent": 292, "children": [295], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 34}}, {"id": 295, "type": "identifier", "text": "scan", "parent": 294, "children": [], "start_point": {"row": 110, "column": 28}, "end_point": {"row": 110, "column": 32}}, {"id": 296, "type": "assignment_expression", "text": "scan = temp", "parent": 269, "children": [297, 298, 299], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 15}}, {"id": 297, "type": "identifier", "text": "scan", "parent": 296, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 8}}, {"id": 298, "type": "=", "text": "=", "parent": 296, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 10}}, {"id": 299, "type": "identifier", "text": "temp", "parent": 296, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 15}}, {"id": 300, "type": "function_definition", "text": "void ActionListAddAction( AL *self, ALD *data )\r\n{\r\n AL_NODE *node = NULL;\r\n\r\n switch(data->ID)\r\n {\r\n case ALT_PAUSE:\r\n case ALT_DESTROY:\r\n case ALT_SET_PROPERTIES:\r\n case ALT_CREATE_ENTITY:\r\n case ALT_SET_VEL:\r\n // Set data from provided ALD pointer\r\n node = (AL_NODE *)malloc( sizeof( AL_NODE ) );\r\n memset( node, 0, sizeof( AL_NODE ) );\r\n // Initialize data\r\n node->ownerComp = self;\r\n node->flag = data->flag;\r\n node->timerEnd = data->timerEnd;\r\n node->var1 = data->var1;\r\n node->var2 = data->var2;\r\n node->var3 = data->var3;\r\n node->ID = data->ID;\r\n node->dt = data->dt;\r\n\r\n // Assign individualized data\r\n switch(node->ID)\r\n {\r\n case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;\r\n case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;\r\n case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;\r\n case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;\r\n case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;\r\n }\r\n break;\r\n default:\r\n return;\r\n }\r\n\r\n // Add action to the actionList\r\n if(node)\r\n {\r\n AL_NODE *scan = self->actionList;\r\n\r\n if(scan)\r\n {\r\n while(scan->next)\r\n {\r\n scan = scan->next;\r\n }\r\n\r\n scan->next = node;\r\n node->prev = scan;\r\n }\r\n else\r\n {\r\n self->actionList = node;\r\n }\r\n }\r\n}", "parent": null, "children": [301, 302], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 187, "column": 1}}, {"id": 301, "type": "primitive_type", "text": "void", "parent": 300, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 4}}, {"id": 302, "type": "function_declarator", "text": "ActionListAddAction( AL *self, ALD *data )", "parent": 300, "children": [303, 304], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 47}}, {"id": 303, "type": "identifier", "text": "ActionListAddAction", "parent": 302, "children": [], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 24}}, {"id": 304, "type": "parameter_list", "text": "( AL *self, ALD *data )", "parent": 302, "children": [305, 310], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 47}}, {"id": 305, "type": "parameter_declaration", "text": "AL *self", "parent": 304, "children": [306, 307], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 34}}, {"id": 306, "type": "type_identifier", "text": "AL", "parent": 305, "children": [], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 28}}, {"id": 307, "type": "pointer_declarator", "text": "*self", "parent": 305, "children": [308, 309], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 34}}, {"id": 308, "type": "*", "text": "*", "parent": 307, "children": [], "start_point": {"row": 120, "column": 29}, "end_point": {"row": 120, "column": 30}}, {"id": 309, "type": "identifier", "text": "self", "parent": 307, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 34}}, {"id": 310, "type": "parameter_declaration", "text": "ALD *data", "parent": 304, "children": [311, 312], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 45}}, {"id": 311, "type": "type_identifier", "text": "ALD", "parent": 310, "children": [], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 39}}, {"id": 312, "type": "pointer_declarator", "text": "*data", "parent": 310, "children": [313, 314], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 45}}, {"id": 313, "type": "*", "text": "*", "parent": 312, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 41}}, {"id": 314, "type": "identifier", "text": "data", "parent": 312, "children": [], "start_point": {"row": 120, "column": 41}, "end_point": {"row": 120, "column": 45}}, {"id": 315, "type": "declaration", "text": "AL_NODE *node = NULL;", "parent": 300, "children": [316, 317], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 23}}, {"id": 316, "type": "type_identifier", "text": "AL_NODE", "parent": 315, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 9}}, {"id": 317, "type": "init_declarator", "text": "*node = NULL", "parent": 315, "children": [318, 321, 322], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 22}}, {"id": 318, "type": "pointer_declarator", "text": "*node", "parent": 317, "children": [319, 320], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 15}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 320, "type": "identifier", "text": "node", "parent": 318, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 15}}, {"id": 321, "type": "=", "text": "=", "parent": 317, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 17}}, {"id": 322, "type": "null", "text": "NULL", "parent": 317, "children": [323], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 22}}, {"id": 323, "type": "NULL", "text": "NULL", "parent": 322, "children": [], "start_point": {"row": 122, "column": 18}, "end_point": {"row": 122, "column": 22}}, {"id": 324, "type": "switch_statement", "text": "switch(data->ID)\r\n {\r\n case ALT_PAUSE:\r\n case ALT_DESTROY:\r\n case ALT_SET_PROPERTIES:\r\n case ALT_CREATE_ENTITY:\r\n case ALT_SET_VEL:\r\n // Set data from provided ALD pointer\r\n node = (AL_NODE *)malloc( sizeof( AL_NODE ) );\r\n memset( node, 0, sizeof( AL_NODE ) );\r\n // Initialize data\r\n node->ownerComp = self;\r\n node->flag = data->flag;\r\n node->timerEnd = data->timerEnd;\r\n node->var1 = data->var1;\r\n node->var2 = data->var2;\r\n node->var3 = data->var3;\r\n node->ID = data->ID;\r\n node->dt = data->dt;\r\n\r\n // Assign individualized data\r\n switch(node->ID)\r\n {\r\n case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;\r\n case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;\r\n case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;\r\n case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;\r\n case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;\r\n }\r\n break;\r\n default:\r\n return;\r\n }", "parent": 300, "children": [325, 326], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 165, "column": 3}}, {"id": 325, "type": "switch", "text": "switch", "parent": 324, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 8}}, {"id": 326, "type": "parenthesized_expression", "text": "(data->ID)", "parent": 324, "children": [327], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 18}}, {"id": 327, "type": "field_expression", "text": "data->ID", "parent": 326, "children": [328, 329], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 17}}, {"id": 328, "type": "identifier", "text": "data", "parent": 327, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 13}}, {"id": 329, "type": "field_identifier", "text": "ID", "parent": 327, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 17}}, {"id": 330, "type": "case_statement", "text": "case ALT_PAUSE:", "parent": 324, "children": [331, 332], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 17}}, {"id": 331, "type": "case", "text": "case", "parent": 330, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 6}}, {"id": 332, "type": "identifier", "text": "ALT_PAUSE", "parent": 330, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 16}}, {"id": 333, "type": "case_statement", "text": "case ALT_DESTROY:", "parent": 324, "children": [334, 335], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 19}}, {"id": 334, "type": "case", "text": "case", "parent": 333, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 6}}, {"id": 335, "type": "identifier", "text": "ALT_DESTROY", "parent": 333, "children": [], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 18}}, {"id": 336, "type": "case_statement", "text": "case ALT_SET_PROPERTIES:", "parent": 324, "children": [337, 338], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 26}}, {"id": 337, "type": "case", "text": "case", "parent": 336, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 6}}, {"id": 338, "type": "identifier", "text": "ALT_SET_PROPERTIES", "parent": 336, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 25}}, {"id": 339, "type": "case_statement", "text": "case ALT_CREATE_ENTITY:", "parent": 324, "children": [340, 341], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 25}}, {"id": 340, "type": "case", "text": "case", "parent": 339, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 6}}, {"id": 341, "type": "identifier", "text": "ALT_CREATE_ENTITY", "parent": 339, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 24}}, {"id": 342, "type": "case_statement", "text": "case ALT_SET_VEL:\r\n // Set data from provided ALD pointer\r\n node = (AL_NODE *)malloc( sizeof( AL_NODE ) );\r\n memset( node, 0, sizeof( AL_NODE ) );\r\n // Initialize data\r\n node->ownerComp = self;\r\n node->flag = data->flag;\r\n node->timerEnd = data->timerEnd;\r\n node->var1 = data->var1;\r\n node->var2 = data->var2;\r\n node->var3 = data->var3;\r\n node->ID = data->ID;\r\n node->dt = data->dt;\r\n\r\n // Assign individualized data\r\n switch(node->ID)\r\n {\r\n case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;\r\n case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;\r\n case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;\r\n case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;\r\n case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;\r\n }\r\n break;", "parent": 324, "children": [343, 344, 429, 488], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 162, "column": 10}}, {"id": 343, "type": "case", "text": "case", "parent": 342, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 6}}, {"id": 344, "type": "identifier", "text": "ALT_SET_VEL", "parent": 342, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 18}}, {"id": 345, "type": "assignment_expression", "text": "node = (AL_NODE *)malloc( sizeof( AL_NODE ) )", "parent": 342, "children": [346, 347, 348], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 49}}, {"id": 346, "type": "identifier", "text": "node", "parent": 345, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 347, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 10}}, {"id": 348, "type": "cast_expression", "text": "(AL_NODE *)malloc( sizeof( AL_NODE ) )", "parent": 345, "children": [349, 353], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 49}}, {"id": 349, "type": "type_descriptor", "text": "AL_NODE *", "parent": 348, "children": [350, 351], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 21}}, {"id": 350, "type": "type_identifier", "text": "AL_NODE", "parent": 349, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 19}}, {"id": 351, "type": "abstract_pointer_declarator", "text": "*", "parent": 349, "children": [352], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 21}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 21}}, {"id": 353, "type": "call_expression", "text": "malloc( sizeof( AL_NODE ) )", "parent": 348, "children": [354, 355], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 49}}, {"id": 354, "type": "identifier", "text": "malloc", "parent": 353, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 28}}, {"id": 355, "type": "argument_list", "text": "( sizeof( AL_NODE ) )", "parent": 353, "children": [356], "start_point": {"row": 132, "column": 28}, "end_point": {"row": 132, "column": 49}}, {"id": 356, "type": "sizeof_expression", "text": "sizeof( AL_NODE )", "parent": 355, "children": [357], "start_point": {"row": 132, "column": 30}, "end_point": {"row": 132, "column": 47}}, {"id": 357, "type": "parenthesized_expression", "text": "( AL_NODE )", "parent": 356, "children": [358], "start_point": {"row": 132, "column": 36}, "end_point": {"row": 132, "column": 47}}, {"id": 358, "type": "identifier", "text": "AL_NODE", "parent": 357, "children": [], "start_point": {"row": 132, "column": 38}, "end_point": {"row": 132, "column": 45}}, {"id": 359, "type": "call_expression", "text": "memset( node, 0, sizeof( AL_NODE ) )", "parent": 342, "children": [360, 361], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 40}}, {"id": 360, "type": "identifier", "text": "memset", "parent": 359, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 10}}, {"id": 361, "type": "argument_list", "text": "( node, 0, sizeof( AL_NODE ) )", "parent": 359, "children": [362, 363, 364], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 40}}, {"id": 362, "type": "identifier", "text": "node", "parent": 361, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 16}}, {"id": 363, "type": "number_literal", "text": "0", "parent": 361, "children": [], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 19}}, {"id": 364, "type": "sizeof_expression", "text": "sizeof( AL_NODE )", "parent": 361, "children": [365], "start_point": {"row": 133, "column": 21}, "end_point": {"row": 133, "column": 38}}, {"id": 365, "type": "parenthesized_expression", "text": "( AL_NODE )", "parent": 364, "children": [366], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 133, "column": 38}}, {"id": 366, "type": "identifier", "text": "AL_NODE", "parent": 365, "children": [], "start_point": {"row": 133, "column": 29}, "end_point": {"row": 133, "column": 36}}, {"id": 367, "type": "assignment_expression", "text": "node->ownerComp = self", "parent": 342, "children": [368, 371, 372], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 26}}, {"id": 368, "type": "field_expression", "text": "node->ownerComp", "parent": 367, "children": [369, 370], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 19}}, {"id": 369, "type": "identifier", "text": "node", "parent": 368, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 8}}, {"id": 370, "type": "field_identifier", "text": "ownerComp", "parent": 368, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 19}}, {"id": 371, "type": "=", "text": "=", "parent": 367, "children": [], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 21}}, {"id": 372, "type": "identifier", "text": "self", "parent": 367, "children": [], "start_point": {"row": 135, "column": 22}, "end_point": {"row": 135, "column": 26}}, {"id": 373, "type": "assignment_expression", "text": "node->flag = data->flag", "parent": 342, "children": [374, 377, 378], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 27}}, {"id": 374, "type": "field_expression", "text": "node->flag", "parent": 373, "children": [375, 376], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 14}}, {"id": 375, "type": "identifier", "text": "node", "parent": 374, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 8}}, {"id": 376, "type": "field_identifier", "text": "flag", "parent": 374, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 14}}, {"id": 377, "type": "=", "text": "=", "parent": 373, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 16}}, {"id": 378, "type": "field_expression", "text": "data->flag", "parent": 373, "children": [379, 380], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 27}}, {"id": 379, "type": "identifier", "text": "data", "parent": 378, "children": [], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 21}}, {"id": 380, "type": "field_identifier", "text": "flag", "parent": 378, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 27}}, {"id": 381, "type": "assignment_expression", "text": "node->timerEnd = data->timerEnd", "parent": 342, "children": [382, 385, 386], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 35}}, {"id": 382, "type": "field_expression", "text": "node->timerEnd", "parent": 381, "children": [383, 384], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 18}}, {"id": 383, "type": "identifier", "text": "node", "parent": 382, "children": [], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 8}}, {"id": 384, "type": "field_identifier", "text": "timerEnd", "parent": 382, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 18}}, {"id": 385, "type": "=", "text": "=", "parent": 381, "children": [], "start_point": {"row": 137, "column": 19}, "end_point": {"row": 137, "column": 20}}, {"id": 386, "type": "field_expression", "text": "data->timerEnd", "parent": 381, "children": [387, 388], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 35}}, {"id": 387, "type": "identifier", "text": "data", "parent": 386, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 25}}, {"id": 388, "type": "field_identifier", "text": "timerEnd", "parent": 386, "children": [], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 35}}, {"id": 389, "type": "assignment_expression", "text": "node->var1 = data->var1", "parent": 342, "children": [390, 393, 394], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 27}}, {"id": 390, "type": "field_expression", "text": "node->var1", "parent": 389, "children": [391, 392], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 14}}, {"id": 391, "type": "identifier", "text": "node", "parent": 390, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 8}}, {"id": 392, "type": "field_identifier", "text": "var1", "parent": 390, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 14}}, {"id": 393, "type": "=", "text": "=", "parent": 389, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 16}}, {"id": 394, "type": "field_expression", "text": "data->var1", "parent": 389, "children": [395, 396], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 27}}, {"id": 395, "type": "identifier", "text": "data", "parent": 394, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 21}}, {"id": 396, "type": "field_identifier", "text": "var1", "parent": 394, "children": [], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 27}}, {"id": 397, "type": "assignment_expression", "text": "node->var2 = data->var2", "parent": 342, "children": [398, 401, 402], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 27}}, {"id": 398, "type": "field_expression", "text": "node->var2", "parent": 397, "children": [399, 400], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 14}}, {"id": 399, "type": "identifier", "text": "node", "parent": 398, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 8}}, {"id": 400, "type": "field_identifier", "text": "var2", "parent": 398, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 14}}, {"id": 401, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 16}}, {"id": 402, "type": "field_expression", "text": "data->var2", "parent": 397, "children": [403, 404], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 27}}, {"id": 403, "type": "identifier", "text": "data", "parent": 402, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 21}}, {"id": 404, "type": "field_identifier", "text": "var2", "parent": 402, "children": [], "start_point": {"row": 139, "column": 23}, "end_point": {"row": 139, "column": 27}}, {"id": 405, "type": "assignment_expression", "text": "node->var3 = data->var3", "parent": 342, "children": [406, 409, 410], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 27}}, {"id": 406, "type": "field_expression", "text": "node->var3", "parent": 405, "children": [407, 408], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 14}}, {"id": 407, "type": "identifier", "text": "node", "parent": 406, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 8}}, {"id": 408, "type": "field_identifier", "text": "var3", "parent": 406, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 14}}, {"id": 409, "type": "=", "text": "=", "parent": 405, "children": [], "start_point": {"row": 140, "column": 15}, "end_point": {"row": 140, "column": 16}}, {"id": 410, "type": "field_expression", "text": "data->var3", "parent": 405, "children": [411, 412], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 27}}, {"id": 411, "type": "identifier", "text": "data", "parent": 410, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 21}}, {"id": 412, "type": "field_identifier", "text": "var3", "parent": 410, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 27}}, {"id": 413, "type": "assignment_expression", "text": "node->ID = data->ID", "parent": 342, "children": [414, 417, 418], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 23}}, {"id": 414, "type": "field_expression", "text": "node->ID", "parent": 413, "children": [415, 416], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 12}}, {"id": 415, "type": "identifier", "text": "node", "parent": 414, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 8}}, {"id": 416, "type": "field_identifier", "text": "ID", "parent": 414, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 12}}, {"id": 417, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 14}}, {"id": 418, "type": "field_expression", "text": "data->ID", "parent": 413, "children": [419, 420], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 23}}, {"id": 419, "type": "identifier", "text": "data", "parent": 418, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 19}}, {"id": 420, "type": "field_identifier", "text": "ID", "parent": 418, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 23}}, {"id": 421, "type": "assignment_expression", "text": "node->dt = data->dt", "parent": 342, "children": [422, 425, 426], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 23}}, {"id": 422, "type": "field_expression", "text": "node->dt", "parent": 421, "children": [423, 424], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 12}}, {"id": 423, "type": "identifier", "text": "node", "parent": 422, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 8}}, {"id": 424, "type": "field_identifier", "text": "dt", "parent": 422, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 12}}, {"id": 425, "type": "=", "text": "=", "parent": 421, "children": [], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 14}}, {"id": 426, "type": "field_expression", "text": "data->dt", "parent": 421, "children": [427, 428], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 23}}, {"id": 427, "type": "identifier", "text": "data", "parent": 426, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 19}}, {"id": 428, "type": "field_identifier", "text": "dt", "parent": 426, "children": [], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 23}}, {"id": 429, "type": "switch_statement", "text": "switch(node->ID)\r\n {\r\n case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;\r\n case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;\r\n case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;\r\n case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;\r\n case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;\r\n }", "parent": 342, "children": [430, 431], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 161, "column": 5}}, {"id": 430, "type": "switch", "text": "switch", "parent": 429, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 10}}, {"id": 431, "type": "parenthesized_expression", "text": "(node->ID)", "parent": 429, "children": [432], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 20}}, {"id": 432, "type": "field_expression", "text": "node->ID", "parent": 431, "children": [433, 434], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 19}}, {"id": 433, "type": "identifier", "text": "node", "parent": 432, "children": [], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 15}}, {"id": 434, "type": "field_identifier", "text": "ID", "parent": 432, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 19}}, {"id": 435, "type": "case_statement", "text": "case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;", "parent": 429, "children": [436, 437, 444], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 149, "column": 12}}, {"id": 436, "type": "case", "text": "case", "parent": 435, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 8}}, {"id": 437, "type": "identifier", "text": "ALT_PAUSE", "parent": 435, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 18}}, {"id": 438, "type": "assignment_expression", "text": "node->Update = ActionListPause", "parent": 435, "children": [439, 442, 443], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 36}}, {"id": 439, "type": "field_expression", "text": "node->Update", "parent": 438, "children": [440, 441], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 18}}, {"id": 440, "type": "identifier", "text": "node", "parent": 439, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 10}}, {"id": 441, "type": "field_identifier", "text": "Update", "parent": 439, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 18}}, {"id": 442, "type": "=", "text": "=", "parent": 438, "children": [], "start_point": {"row": 148, "column": 19}, "end_point": {"row": 148, "column": 20}}, {"id": 443, "type": "identifier", "text": "ActionListPause", "parent": 438, "children": [], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 36}}, {"id": 444, "type": "break_statement", "text": "break;", "parent": 435, "children": [445], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 12}}, {"id": 445, "type": "break", "text": "break", "parent": 444, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 11}}, {"id": 446, "type": "case_statement", "text": "case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;", "parent": 429, "children": [447, 448, 455], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 152, "column": 12}}, {"id": 447, "type": "case", "text": "case", "parent": 446, "children": [], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 8}}, {"id": 448, "type": "identifier", "text": "ALT_DESTROY", "parent": 446, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 20}}, {"id": 449, "type": "assignment_expression", "text": "node->Update = ActionListDestroySelf", "parent": 446, "children": [450, 453, 454], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 42}}, {"id": 450, "type": "field_expression", "text": "node->Update", "parent": 449, "children": [451, 452], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 18}}, {"id": 451, "type": "identifier", "text": "node", "parent": 450, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 10}}, {"id": 452, "type": "field_identifier", "text": "Update", "parent": 450, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 18}}, {"id": 453, "type": "=", "text": "=", "parent": 449, "children": [], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 20}}, {"id": 454, "type": "identifier", "text": "ActionListDestroySelf", "parent": 449, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 42}}, {"id": 455, "type": "break_statement", "text": "break;", "parent": 446, "children": [456], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 12}}, {"id": 456, "type": "break", "text": "break", "parent": 455, "children": [], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 152, "column": 11}}, {"id": 457, "type": "case_statement", "text": "case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;", "parent": 429, "children": [458, 459, 466], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 155, "column": 12}}, {"id": 458, "type": "case", "text": "case", "parent": 457, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 8}}, {"id": 459, "type": "identifier", "text": "ALT_SET_PROPERTIES", "parent": 457, "children": [], "start_point": {"row": 153, "column": 9}, "end_point": {"row": 153, "column": 27}}, {"id": 460, "type": "assignment_expression", "text": "node->Update = ActionListSetProperties", "parent": 457, "children": [461, 464, 465], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 44}}, {"id": 461, "type": "field_expression", "text": "node->Update", "parent": 460, "children": [462, 463], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 18}}, {"id": 462, "type": "identifier", "text": "node", "parent": 461, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 10}}, {"id": 463, "type": "field_identifier", "text": "Update", "parent": 461, "children": [], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 18}}, {"id": 464, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 20}}, {"id": 465, "type": "identifier", "text": "ActionListSetProperties", "parent": 460, "children": [], "start_point": {"row": 154, "column": 21}, "end_point": {"row": 154, "column": 44}}, {"id": 466, "type": "break_statement", "text": "break;", "parent": 457, "children": [467], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 12}}, {"id": 467, "type": "break", "text": "break", "parent": 466, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 11}}, {"id": 468, "type": "case_statement", "text": "case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;", "parent": 429, "children": [469, 470, 477], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 158, "column": 12}}, {"id": 469, "type": "case", "text": "case", "parent": 468, "children": [], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 8}}, {"id": 470, "type": "identifier", "text": "ALT_CREATE_ENTITY", "parent": 468, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 26}}, {"id": 471, "type": "assignment_expression", "text": "node->Update = ActionListCreateEntity", "parent": 468, "children": [472, 475, 476], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 43}}, {"id": 472, "type": "field_expression", "text": "node->Update", "parent": 471, "children": [473, 474], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 18}}, {"id": 473, "type": "identifier", "text": "node", "parent": 472, "children": [], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 10}}, {"id": 474, "type": "field_identifier", "text": "Update", "parent": 472, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 18}}, {"id": 475, "type": "=", "text": "=", "parent": 471, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 20}}, {"id": 476, "type": "identifier", "text": "ActionListCreateEntity", "parent": 471, "children": [], "start_point": {"row": 157, "column": 21}, "end_point": {"row": 157, "column": 43}}, {"id": 477, "type": "break_statement", "text": "break;", "parent": 468, "children": [478], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 12}}, {"id": 478, "type": "break", "text": "break", "parent": 477, "children": [], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 11}}, {"id": 479, "type": "case_statement", "text": "case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;", "parent": 429, "children": [480, 481], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 160, "column": 38}}, {"id": 480, "type": "case", "text": "case", "parent": 479, "children": [], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 8}}, {"id": 481, "type": "identifier", "text": "ALT_SET_VEL", "parent": 479, "children": [], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 20}}, {"id": 482, "type": "assignment_expression", "text": "node->Update = ActionListSetVel", "parent": 479, "children": [483, 486, 487], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 37}}, {"id": 483, "type": "field_expression", "text": "node->Update", "parent": 482, "children": [484, 485], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 18}}, {"id": 484, "type": "identifier", "text": "node", "parent": 483, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 10}}, {"id": 485, "type": "field_identifier", "text": "Update", "parent": 483, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 18}}, {"id": 486, "type": "=", "text": "=", "parent": 482, "children": [], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 20}}, {"id": 487, "type": "identifier", "text": "ActionListSetVel", "parent": 482, "children": [], "start_point": {"row": 160, "column": 21}, "end_point": {"row": 160, "column": 37}}, {"id": 488, "type": "break_statement", "text": "break;", "parent": 342, "children": [489], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 10}}, {"id": 489, "type": "break", "text": "break", "parent": 488, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 9}}, {"id": 490, "type": "case_statement", "text": "default:\r\n return;", "parent": 324, "children": [491, 492], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 164, "column": 11}}, {"id": 491, "type": "default", "text": "default", "parent": 490, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 9}}, {"id": 492, "type": "return_statement", "text": "return;", "parent": 490, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 11}}, {"id": 493, "type": "if_statement", "text": "if(node)\r\n {\r\n AL_NODE *scan = self->actionList;\r\n\r\n if(scan)\r\n {\r\n while(scan->next)\r\n {\r\n scan = scan->next;\r\n }\r\n\r\n scan->next = node;\r\n node->prev = scan;\r\n }\r\n else\r\n {\r\n self->actionList = node;\r\n }\r\n }", "parent": 300, "children": [494], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 186, "column": 3}}, {"id": 494, "type": "parenthesized_expression", "text": "(node)", "parent": 493, "children": [495], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 10}}, {"id": 495, "type": "identifier", "text": "node", "parent": 494, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 9}}, {"id": 496, "type": "declaration", "text": "AL_NODE *scan = self->actionList;", "parent": 493, "children": [497, 498], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 37}}, {"id": 497, "type": "type_identifier", "text": "AL_NODE", "parent": 496, "children": [], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 11}}, {"id": 498, "type": "init_declarator", "text": "*scan = self->actionList", "parent": 496, "children": [499, 502, 503], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 36}}, {"id": 499, "type": "pointer_declarator", "text": "*scan", "parent": 498, "children": [500, 501], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 17}}, {"id": 500, "type": "*", "text": "*", "parent": 499, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 13}}, {"id": 501, "type": "identifier", "text": "scan", "parent": 499, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 17}}, {"id": 502, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 19}}, {"id": 503, "type": "field_expression", "text": "self->actionList", "parent": 498, "children": [504, 505], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 36}}, {"id": 504, "type": "identifier", "text": "self", "parent": 503, "children": [], "start_point": {"row": 170, "column": 20}, "end_point": {"row": 170, "column": 24}}, {"id": 505, "type": "field_identifier", "text": "actionList", "parent": 503, "children": [], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 36}}, {"id": 506, "type": "if_statement", "text": "if(scan)\r\n {\r\n while(scan->next)\r\n {\r\n scan = scan->next;\r\n }\r\n\r\n scan->next = node;\r\n node->prev = scan;\r\n }\r\n else\r\n {\r\n self->actionList = node;\r\n }", "parent": 493, "children": [507, 532], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 185, "column": 5}}, {"id": 507, "type": "parenthesized_expression", "text": "(scan)", "parent": 506, "children": [508], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 12}}, {"id": 508, "type": "identifier", "text": "scan", "parent": 507, "children": [], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 11}}, {"id": 509, "type": "while_statement", "text": "while(scan->next)\r\n {\r\n scan = scan->next;\r\n }", "parent": 506, "children": [510], "start_point": {"row": 174, "column": 6}, "end_point": {"row": 177, "column": 7}}, {"id": 510, "type": "parenthesized_expression", "text": "(scan->next)", "parent": 509, "children": [511], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 23}}, {"id": 511, "type": "field_expression", "text": "scan->next", "parent": 510, "children": [512, 513], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 22}}, {"id": 512, "type": "identifier", "text": "scan", "parent": 511, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 513, "type": "field_identifier", "text": "next", "parent": 511, "children": [], "start_point": {"row": 174, "column": 18}, "end_point": {"row": 174, "column": 22}}, {"id": 514, "type": "assignment_expression", "text": "scan = scan->next", "parent": 509, "children": [515, 516, 517], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 25}}, {"id": 515, "type": "identifier", "text": "scan", "parent": 514, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 12}}, {"id": 516, "type": "=", "text": "=", "parent": 514, "children": [], "start_point": {"row": 176, "column": 13}, "end_point": {"row": 176, "column": 14}}, {"id": 517, "type": "field_expression", "text": "scan->next", "parent": 514, "children": [518, 519], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 25}}, {"id": 518, "type": "identifier", "text": "scan", "parent": 517, "children": [], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 19}}, {"id": 519, "type": "field_identifier", "text": "next", "parent": 517, "children": [], "start_point": {"row": 176, "column": 21}, "end_point": {"row": 176, "column": 25}}, {"id": 520, "type": "assignment_expression", "text": "scan->next = node", "parent": 506, "children": [521, 524, 525], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 23}}, {"id": 521, "type": "field_expression", "text": "scan->next", "parent": 520, "children": [522, 523], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 16}}, {"id": 522, "type": "identifier", "text": "scan", "parent": 521, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 10}}, {"id": 523, "type": "field_identifier", "text": "next", "parent": 521, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 16}}, {"id": 524, "type": "=", "text": "=", "parent": 520, "children": [], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 18}}, {"id": 525, "type": "identifier", "text": "node", "parent": 520, "children": [], "start_point": {"row": 179, "column": 19}, "end_point": {"row": 179, "column": 23}}, {"id": 526, "type": "assignment_expression", "text": "node->prev = scan", "parent": 506, "children": [527, 530, 531], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 23}}, {"id": 527, "type": "field_expression", "text": "node->prev", "parent": 526, "children": [528, 529], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 16}}, {"id": 528, "type": "identifier", "text": "node", "parent": 527, "children": [], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 10}}, {"id": 529, "type": "field_identifier", "text": "prev", "parent": 527, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 16}}, {"id": 530, "type": "=", "text": "=", "parent": 526, "children": [], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 18}}, {"id": 531, "type": "identifier", "text": "scan", "parent": 526, "children": [], "start_point": {"row": 180, "column": 19}, "end_point": {"row": 180, "column": 23}}, {"id": 532, "type": "else_clause", "text": "else\r\n {\r\n self->actionList = node;\r\n }", "parent": 506, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 185, "column": 5}}, {"id": 533, "type": "assignment_expression", "text": "self->actionList = node", "parent": 532, "children": [534, 537, 538], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 29}}, {"id": 534, "type": "field_expression", "text": "self->actionList", "parent": 533, "children": [535, 536], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 22}}, {"id": 535, "type": "identifier", "text": "self", "parent": 534, "children": [], "start_point": {"row": 184, "column": 6}, "end_point": {"row": 184, "column": 10}}, {"id": 536, "type": "field_identifier", "text": "actionList", "parent": 534, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 22}}, {"id": 537, "type": "=", "text": "=", "parent": 533, "children": [], "start_point": {"row": 184, "column": 23}, "end_point": {"row": 184, "column": 24}}, {"id": 538, "type": "identifier", "text": "node", "parent": 533, "children": [], "start_point": {"row": 184, "column": 25}, "end_point": {"row": 184, "column": 29}}, {"id": 539, "type": "function_definition", "text": "void ActionListRemoveAction( AL_NODE *self )\r\n{\r\n // Disconnect from list\r\n if(self)\r\n {\r\n if(self->prev)\r\n {\r\n self->prev->next = self->next;\r\n if(self->next)\r\n {\r\n self->next->prev = self->prev;\r\n }\r\n }\r\n else\r\n {\r\n if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }\r\n }\r\n }\r\n\r\n free( self );\r\n}", "parent": null, "children": [540, 541], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 221, "column": 1}}, {"id": 540, "type": "primitive_type", "text": "void", "parent": 539, "children": [], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 193, "column": 4}}, {"id": 541, "type": "function_declarator", "text": "ActionListRemoveAction( AL_NODE *self )", "parent": 539, "children": [542, 543], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 44}}, {"id": 542, "type": "identifier", "text": "ActionListRemoveAction", "parent": 541, "children": [], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 27}}, {"id": 543, "type": "parameter_list", "text": "( AL_NODE *self )", "parent": 541, "children": [544], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 44}}, {"id": 544, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 543, "children": [545, 546], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 42}}, {"id": 545, "type": "type_identifier", "text": "AL_NODE", "parent": 544, "children": [], "start_point": {"row": 193, "column": 29}, "end_point": {"row": 193, "column": 36}}, {"id": 546, "type": "pointer_declarator", "text": "*self", "parent": 544, "children": [547, 548], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 42}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 38}}, {"id": 548, "type": "identifier", "text": "self", "parent": 546, "children": [], "start_point": {"row": 193, "column": 38}, "end_point": {"row": 193, "column": 42}}, {"id": 549, "type": "if_statement", "text": "if(self)\r\n {\r\n if(self->prev)\r\n {\r\n self->prev->next = self->next;\r\n if(self->next)\r\n {\r\n self->next->prev = self->prev;\r\n }\r\n }\r\n else\r\n {\r\n if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }\r\n }\r\n }", "parent": 539, "children": [550], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 218, "column": 3}}, {"id": 550, "type": "parenthesized_expression", "text": "(self)", "parent": 549, "children": [551], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 10}}, {"id": 551, "type": "identifier", "text": "self", "parent": 550, "children": [], "start_point": {"row": 196, "column": 5}, "end_point": {"row": 196, "column": 9}}, {"id": 552, "type": "if_statement", "text": "if(self->prev)\r\n {\r\n self->prev->next = self->next;\r\n if(self->next)\r\n {\r\n self->next->prev = self->prev;\r\n }\r\n }\r\n else\r\n {\r\n if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }\r\n }", "parent": 549, "children": [553, 582], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 217, "column": 5}}, {"id": 553, "type": "parenthesized_expression", "text": "(self->prev)", "parent": 552, "children": [554], "start_point": {"row": 198, "column": 6}, "end_point": {"row": 198, "column": 18}}, {"id": 554, "type": "field_expression", "text": "self->prev", "parent": 553, "children": [555, 556], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 17}}, {"id": 555, "type": "identifier", "text": "self", "parent": 554, "children": [], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 11}}, {"id": 556, "type": "field_identifier", "text": "prev", "parent": 554, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 17}}, {"id": 557, "type": "assignment_expression", "text": "self->prev->next = self->next", "parent": 552, "children": [558, 563, 564], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 35}}, {"id": 558, "type": "field_expression", "text": "self->prev->next", "parent": 557, "children": [559, 562], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 22}}, {"id": 559, "type": "field_expression", "text": "self->prev", "parent": 558, "children": [560, 561], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 16}}, {"id": 560, "type": "identifier", "text": "self", "parent": 559, "children": [], "start_point": {"row": 200, "column": 6}, "end_point": {"row": 200, "column": 10}}, {"id": 561, "type": "field_identifier", "text": "prev", "parent": 559, "children": [], "start_point": {"row": 200, "column": 12}, "end_point": {"row": 200, "column": 16}}, {"id": 562, "type": "field_identifier", "text": "next", "parent": 558, "children": [], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 22}}, {"id": 563, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 200, "column": 23}, "end_point": {"row": 200, "column": 24}}, {"id": 564, "type": "field_expression", "text": "self->next", "parent": 557, "children": [565, 566], "start_point": {"row": 200, "column": 25}, "end_point": {"row": 200, "column": 35}}, {"id": 565, "type": "identifier", "text": "self", "parent": 564, "children": [], "start_point": {"row": 200, "column": 25}, "end_point": {"row": 200, "column": 29}}, {"id": 566, "type": "field_identifier", "text": "next", "parent": 564, "children": [], "start_point": {"row": 200, "column": 31}, "end_point": {"row": 200, "column": 35}}, {"id": 567, "type": "if_statement", "text": "if(self->next)\r\n {\r\n self->next->prev = self->prev;\r\n }", "parent": 552, "children": [568], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 204, "column": 7}}, {"id": 568, "type": "parenthesized_expression", "text": "(self->next)", "parent": 567, "children": [569], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 20}}, {"id": 569, "type": "field_expression", "text": "self->next", "parent": 568, "children": [570, 571], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 19}}, {"id": 570, "type": "identifier", "text": "self", "parent": 569, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 13}}, {"id": 571, "type": "field_identifier", "text": "next", "parent": 569, "children": [], "start_point": {"row": 201, "column": 15}, "end_point": {"row": 201, "column": 19}}, {"id": 572, "type": "assignment_expression", "text": "self->next->prev = self->prev", "parent": 567, "children": [573, 578, 579], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 37}}, {"id": 573, "type": "field_expression", "text": "self->next->prev", "parent": 572, "children": [574, 577], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 24}}, {"id": 574, "type": "field_expression", "text": "self->next", "parent": 573, "children": [575, 576], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 18}}, {"id": 575, "type": "identifier", "text": "self", "parent": 574, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 12}}, {"id": 576, "type": "field_identifier", "text": "next", "parent": 574, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 18}}, {"id": 577, "type": "field_identifier", "text": "prev", "parent": 573, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 24}}, {"id": 578, "type": "=", "text": "=", "parent": 572, "children": [], "start_point": {"row": 203, "column": 25}, "end_point": {"row": 203, "column": 26}}, {"id": 579, "type": "field_expression", "text": "self->prev", "parent": 572, "children": [580, 581], "start_point": {"row": 203, "column": 27}, "end_point": {"row": 203, "column": 37}}, {"id": 580, "type": "identifier", "text": "self", "parent": 579, "children": [], "start_point": {"row": 203, "column": 27}, "end_point": {"row": 203, "column": 31}}, {"id": 581, "type": "field_identifier", "text": "prev", "parent": 579, "children": [], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 37}}, {"id": 582, "type": "else_clause", "text": "else\r\n {\r\n if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }\r\n }", "parent": 552, "children": [], "start_point": {"row": 206, "column": 4}, "end_point": {"row": 217, "column": 5}}, {"id": 583, "type": "if_statement", "text": "if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }", "parent": 582, "children": [584, 607], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 216, "column": 7}}, {"id": 584, "type": "parenthesized_expression", "text": "(self->next)", "parent": 583, "children": [585], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 20}}, {"id": 585, "type": "field_expression", "text": "self->next", "parent": 584, "children": [586, 587], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 19}}, {"id": 586, "type": "identifier", "text": "self", "parent": 585, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 13}}, {"id": 587, "type": "field_identifier", "text": "next", "parent": 585, "children": [], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 19}}, {"id": 588, "type": "assignment_expression", "text": "self->next->prev = NULL", "parent": 583, "children": [589, 594, 595], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 31}}, {"id": 589, "type": "field_expression", "text": "self->next->prev", "parent": 588, "children": [590, 593], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 24}}, {"id": 590, "type": "field_expression", "text": "self->next", "parent": 589, "children": [591, 592], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 18}}, {"id": 591, "type": "identifier", "text": "self", "parent": 590, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 12}}, {"id": 592, "type": "field_identifier", "text": "next", "parent": 590, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 18}}, {"id": 593, "type": "field_identifier", "text": "prev", "parent": 589, "children": [], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 24}}, {"id": 594, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 210, "column": 25}, "end_point": {"row": 210, "column": 26}}, {"id": 595, "type": "null", "text": "NULL", "parent": 588, "children": [596], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 31}}, {"id": 596, "type": "NULL", "text": "NULL", "parent": 595, "children": [], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 31}}, {"id": 597, "type": "assignment_expression", "text": "self->ownerComp->actionList = self->next", "parent": 583, "children": [598, 603, 604], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 48}}, {"id": 598, "type": "field_expression", "text": "self->ownerComp->actionList", "parent": 597, "children": [599, 602], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 35}}, {"id": 599, "type": "field_expression", "text": "self->ownerComp", "parent": 598, "children": [600, 601], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 23}}, {"id": 600, "type": "identifier", "text": "self", "parent": 599, "children": [], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 12}}, {"id": 601, "type": "field_identifier", "text": "ownerComp", "parent": 599, "children": [], "start_point": {"row": 211, "column": 14}, "end_point": {"row": 211, "column": 23}}, {"id": 602, "type": "field_identifier", "text": "actionList", "parent": 598, "children": [], "start_point": {"row": 211, "column": 25}, "end_point": {"row": 211, "column": 35}}, {"id": 603, "type": "=", "text": "=", "parent": 597, "children": [], "start_point": {"row": 211, "column": 36}, "end_point": {"row": 211, "column": 37}}, {"id": 604, "type": "field_expression", "text": "self->next", "parent": 597, "children": [605, 606], "start_point": {"row": 211, "column": 38}, "end_point": {"row": 211, "column": 48}}, {"id": 605, "type": "identifier", "text": "self", "parent": 604, "children": [], "start_point": {"row": 211, "column": 38}, "end_point": {"row": 211, "column": 42}}, {"id": 606, "type": "field_identifier", "text": "next", "parent": 604, "children": [], "start_point": {"row": 211, "column": 44}, "end_point": {"row": 211, "column": 48}}, {"id": 607, "type": "else_clause", "text": "else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }", "parent": 583, "children": [], "start_point": {"row": 213, "column": 6}, "end_point": {"row": 216, "column": 7}}, {"id": 608, "type": "assignment_expression", "text": "self->ownerComp->actionList = NULL", "parent": 607, "children": [609, 614, 615], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 42}}, {"id": 609, "type": "field_expression", "text": "self->ownerComp->actionList", "parent": 608, "children": [610, 613], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 35}}, {"id": 610, "type": "field_expression", "text": "self->ownerComp", "parent": 609, "children": [611, 612], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 23}}, {"id": 611, "type": "identifier", "text": "self", "parent": 610, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 12}}, {"id": 612, "type": "field_identifier", "text": "ownerComp", "parent": 610, "children": [], "start_point": {"row": 215, "column": 14}, "end_point": {"row": 215, "column": 23}}, {"id": 613, "type": "field_identifier", "text": "actionList", "parent": 609, "children": [], "start_point": {"row": 215, "column": 25}, "end_point": {"row": 215, "column": 35}}, {"id": 614, "type": "=", "text": "=", "parent": 608, "children": [], "start_point": {"row": 215, "column": 36}, "end_point": {"row": 215, "column": 37}}, {"id": 615, "type": "null", "text": "NULL", "parent": 608, "children": [616], "start_point": {"row": 215, "column": 38}, "end_point": {"row": 215, "column": 42}}, {"id": 616, "type": "NULL", "text": "NULL", "parent": 615, "children": [], "start_point": {"row": 215, "column": 38}, "end_point": {"row": 215, "column": 42}}, {"id": 617, "type": "call_expression", "text": "free( self )", "parent": 539, "children": [618, 619], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 14}}, {"id": 618, "type": "identifier", "text": "free", "parent": 617, "children": [], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 6}}, {"id": 619, "type": "argument_list", "text": "( self )", "parent": 617, "children": [620], "start_point": {"row": 220, "column": 6}, "end_point": {"row": 220, "column": 14}}, {"id": 620, "type": "identifier", "text": "self", "parent": 619, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 12}}, {"id": 621, "type": "function_definition", "text": "void ActionListPause( AL_NODE *self, float *dt )\r\n{\r\n self->dt += *dt;\r\n\r\n if(self->dt > self->timerEnd)\r\n {\r\n ActionListRemoveAction( self );\r\n }\r\n}", "parent": null, "children": [622, 623], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 235, "column": 1}}, {"id": 622, "type": "primitive_type", "text": "void", "parent": 621, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 4}}, {"id": 623, "type": "function_declarator", "text": "ActionListPause( AL_NODE *self, float *dt )", "parent": 621, "children": [624, 625], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 48}}, {"id": 624, "type": "identifier", "text": "ActionListPause", "parent": 623, "children": [], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 20}}, {"id": 625, "type": "parameter_list", "text": "( AL_NODE *self, float *dt )", "parent": 623, "children": [626, 631], "start_point": {"row": 227, "column": 20}, "end_point": {"row": 227, "column": 48}}, {"id": 626, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 625, "children": [627, 628], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 35}}, {"id": 627, "type": "type_identifier", "text": "AL_NODE", "parent": 626, "children": [], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 29}}, {"id": 628, "type": "pointer_declarator", "text": "*self", "parent": 626, "children": [629, 630], "start_point": {"row": 227, "column": 30}, "end_point": {"row": 227, "column": 35}}, {"id": 629, "type": "*", "text": "*", "parent": 628, "children": [], "start_point": {"row": 227, "column": 30}, "end_point": {"row": 227, "column": 31}}, {"id": 630, "type": "identifier", "text": "self", "parent": 628, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 35}}, {"id": 631, "type": "parameter_declaration", "text": "float *dt", "parent": 625, "children": [632, 633], "start_point": {"row": 227, "column": 37}, "end_point": {"row": 227, "column": 46}}, {"id": 632, "type": "primitive_type", "text": "float", "parent": 631, "children": [], "start_point": {"row": 227, "column": 37}, "end_point": {"row": 227, "column": 42}}, {"id": 633, "type": "pointer_declarator", "text": "*dt", "parent": 631, "children": [634, 635], "start_point": {"row": 227, "column": 43}, "end_point": {"row": 227, "column": 46}}, {"id": 634, "type": "*", "text": "*", "parent": 633, "children": [], "start_point": {"row": 227, "column": 43}, "end_point": {"row": 227, "column": 44}}, {"id": 635, "type": "identifier", "text": "dt", "parent": 633, "children": [], "start_point": {"row": 227, "column": 44}, "end_point": {"row": 227, "column": 46}}, {"id": 636, "type": "assignment_expression", "text": "self->dt += *dt", "parent": 621, "children": [637, 640, 641], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 17}}, {"id": 637, "type": "field_expression", "text": "self->dt", "parent": 636, "children": [638, 639], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 10}}, {"id": 638, "type": "identifier", "text": "self", "parent": 637, "children": [], "start_point": {"row": 229, "column": 2}, "end_point": {"row": 229, "column": 6}}, {"id": 639, "type": "field_identifier", "text": "dt", "parent": 637, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 10}}, {"id": 640, "type": "+=", "text": "+=", "parent": 636, "children": [], "start_point": {"row": 229, "column": 11}, "end_point": {"row": 229, "column": 13}}, {"id": 641, "type": "pointer_expression", "text": "*dt", "parent": 636, "children": [642, 643], "start_point": {"row": 229, "column": 14}, "end_point": {"row": 229, "column": 17}}, {"id": 642, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 229, "column": 14}, "end_point": {"row": 229, "column": 15}}, {"id": 643, "type": "identifier", "text": "dt", "parent": 641, "children": [], "start_point": {"row": 229, "column": 15}, "end_point": {"row": 229, "column": 17}}, {"id": 644, "type": "if_statement", "text": "if(self->dt > self->timerEnd)\r\n {\r\n ActionListRemoveAction( self );\r\n }", "parent": 621, "children": [645], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 234, "column": 3}}, {"id": 645, "type": "parenthesized_expression", "text": "(self->dt > self->timerEnd)", "parent": 644, "children": [646], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 31}}, {"id": 646, "type": "binary_expression", "text": "self->dt > self->timerEnd", "parent": 645, "children": [647, 650, 651], "start_point": {"row": 231, "column": 5}, "end_point": {"row": 231, "column": 30}}, {"id": 647, "type": "field_expression", "text": "self->dt", "parent": 646, "children": [648, 649], "start_point": {"row": 231, "column": 5}, "end_point": {"row": 231, "column": 13}}, {"id": 648, "type": "identifier", "text": "self", "parent": 647, "children": [], "start_point": {"row": 231, "column": 5}, "end_point": {"row": 231, "column": 9}}, {"id": 649, "type": "field_identifier", "text": "dt", "parent": 647, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 13}}, {"id": 650, "type": ">", "text": ">", "parent": 646, "children": [], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 15}}, {"id": 651, "type": "field_expression", "text": "self->timerEnd", "parent": 646, "children": [652, 653], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 30}}, {"id": 652, "type": "identifier", "text": "self", "parent": 651, "children": [], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 20}}, {"id": 653, "type": "field_identifier", "text": "timerEnd", "parent": 651, "children": [], "start_point": {"row": 231, "column": 22}, "end_point": {"row": 231, "column": 30}}, {"id": 654, "type": "call_expression", "text": "ActionListRemoveAction( self )", "parent": 644, "children": [655, 656], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 34}}, {"id": 655, "type": "identifier", "text": "ActionListRemoveAction", "parent": 654, "children": [], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 26}}, {"id": 656, "type": "argument_list", "text": "( self )", "parent": 654, "children": [657], "start_point": {"row": 233, "column": 26}, "end_point": {"row": 233, "column": 34}}, {"id": 657, "type": "identifier", "text": "self", "parent": 656, "children": [], "start_point": {"row": 233, "column": 28}, "end_point": {"row": 233, "column": 32}}, {"id": 658, "type": "function_definition", "text": "void ActionListSetProperties( AL_NODE *self, float *dt )\r\n{\r\n self->ownerComp->base.owner->properties |= self->var1;\r\n ActionListRemoveAction( self );\r\n}", "parent": null, "children": [659, 660], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 246, "column": 1}}, {"id": 659, "type": "primitive_type", "text": "void", "parent": 658, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 4}}, {"id": 660, "type": "function_declarator", "text": "ActionListSetProperties( AL_NODE *self, float *dt )", "parent": 658, "children": [661, 662], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 56}}, {"id": 661, "type": "identifier", "text": "ActionListSetProperties", "parent": 660, "children": [], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 28}}, {"id": 662, "type": "parameter_list", "text": "( AL_NODE *self, float *dt )", "parent": 660, "children": [663, 668], "start_point": {"row": 242, "column": 28}, "end_point": {"row": 242, "column": 56}}, {"id": 663, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 662, "children": [664, 665], "start_point": {"row": 242, "column": 30}, "end_point": {"row": 242, "column": 43}}, {"id": 664, "type": "type_identifier", "text": "AL_NODE", "parent": 663, "children": [], "start_point": {"row": 242, "column": 30}, "end_point": {"row": 242, "column": 37}}, {"id": 665, "type": "pointer_declarator", "text": "*self", "parent": 663, "children": [666, 667], "start_point": {"row": 242, "column": 38}, "end_point": {"row": 242, "column": 43}}, {"id": 666, "type": "*", "text": "*", "parent": 665, "children": [], "start_point": {"row": 242, "column": 38}, "end_point": {"row": 242, "column": 39}}, {"id": 667, "type": "identifier", "text": "self", "parent": 665, "children": [], "start_point": {"row": 242, "column": 39}, "end_point": {"row": 242, "column": 43}}, {"id": 668, "type": "parameter_declaration", "text": "float *dt", "parent": 662, "children": [669, 670], "start_point": {"row": 242, "column": 45}, "end_point": {"row": 242, "column": 54}}, {"id": 669, "type": "primitive_type", "text": "float", "parent": 668, "children": [], "start_point": {"row": 242, "column": 45}, "end_point": {"row": 242, "column": 50}}, {"id": 670, "type": "pointer_declarator", "text": "*dt", "parent": 668, "children": [671, 672], "start_point": {"row": 242, "column": 51}, "end_point": {"row": 242, "column": 54}}, {"id": 671, "type": "*", "text": "*", "parent": 670, "children": [], "start_point": {"row": 242, "column": 51}, "end_point": {"row": 242, "column": 52}}, {"id": 672, "type": "identifier", "text": "dt", "parent": 670, "children": [], "start_point": {"row": 242, "column": 52}, "end_point": {"row": 242, "column": 54}}, {"id": 673, "type": "assignment_expression", "text": "self->ownerComp->base.owner->properties |= self->var1", "parent": 658, "children": [674, 683, 684], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 55}}, {"id": 674, "type": "field_expression", "text": "self->ownerComp->base.owner->properties", "parent": 673, "children": [675, 682], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 41}}, {"id": 675, "type": "field_expression", "text": "self->ownerComp->base.owner", "parent": 674, "children": [676, 681], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 29}}, {"id": 676, "type": "field_expression", "text": "self->ownerComp->base", "parent": 675, "children": [677, 680], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 23}}, {"id": 677, "type": "field_expression", "text": "self->ownerComp", "parent": 676, "children": [678, 679], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 17}}, {"id": 678, "type": "identifier", "text": "self", "parent": 677, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 6}}, {"id": 679, "type": "field_identifier", "text": "ownerComp", "parent": 677, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 17}}, {"id": 680, "type": "field_identifier", "text": "base", "parent": 676, "children": [], "start_point": {"row": 244, "column": 19}, "end_point": {"row": 244, "column": 23}}, {"id": 681, "type": "field_identifier", "text": "owner", "parent": 675, "children": [], "start_point": {"row": 244, "column": 24}, "end_point": {"row": 244, "column": 29}}, {"id": 682, "type": "field_identifier", "text": "properties", "parent": 674, "children": [], "start_point": {"row": 244, "column": 31}, "end_point": {"row": 244, "column": 41}}, {"id": 683, "type": "|=", "text": "|=", "parent": 673, "children": [], "start_point": {"row": 244, "column": 42}, "end_point": {"row": 244, "column": 44}}, {"id": 684, "type": "field_expression", "text": "self->var1", "parent": 673, "children": [685, 686], "start_point": {"row": 244, "column": 45}, "end_point": {"row": 244, "column": 55}}, {"id": 685, "type": "identifier", "text": "self", "parent": 684, "children": [], "start_point": {"row": 244, "column": 45}, "end_point": {"row": 244, "column": 49}}, {"id": 686, "type": "field_identifier", "text": "var1", "parent": 684, "children": [], "start_point": {"row": 244, "column": 51}, "end_point": {"row": 244, "column": 55}}, {"id": 687, "type": "call_expression", "text": "ActionListRemoveAction( self )", "parent": 658, "children": [688, 689], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 32}}, {"id": 688, "type": "identifier", "text": "ActionListRemoveAction", "parent": 687, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 24}}, {"id": 689, "type": "argument_list", "text": "( self )", "parent": 687, "children": [690], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 32}}, {"id": 690, "type": "identifier", "text": "self", "parent": 689, "children": [], "start_point": {"row": 245, "column": 26}, "end_point": {"row": 245, "column": 30}}, {"id": 691, "type": "function_definition", "text": "void ActionListDestroySelf( AL_NODE *self, float *dt )\r\n{\r\n SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 );\r\n}", "parent": null, "children": [692, 693], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 255, "column": 1}}, {"id": 692, "type": "primitive_type", "text": "void", "parent": 691, "children": [], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 252, "column": 4}}, {"id": 693, "type": "function_declarator", "text": "ActionListDestroySelf( AL_NODE *self, float *dt )", "parent": 691, "children": [694, 695], "start_point": {"row": 252, "column": 5}, "end_point": {"row": 252, "column": 54}}, {"id": 694, "type": "identifier", "text": "ActionListDestroySelf", "parent": 693, "children": [], "start_point": {"row": 252, "column": 5}, "end_point": {"row": 252, "column": 26}}, {"id": 695, "type": "parameter_list", "text": "( AL_NODE *self, float *dt )", "parent": 693, "children": [696, 701], "start_point": {"row": 252, "column": 26}, "end_point": {"row": 252, "column": 54}}, {"id": 696, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 695, "children": [697, 698], "start_point": {"row": 252, "column": 28}, "end_point": {"row": 252, "column": 41}}, {"id": 697, "type": "type_identifier", "text": "AL_NODE", "parent": 696, "children": [], "start_point": {"row": 252, "column": 28}, "end_point": {"row": 252, "column": 35}}, {"id": 698, "type": "pointer_declarator", "text": "*self", "parent": 696, "children": [699, 700], "start_point": {"row": 252, "column": 36}, "end_point": {"row": 252, "column": 41}}, {"id": 699, "type": "*", "text": "*", "parent": 698, "children": [], "start_point": {"row": 252, "column": 36}, "end_point": {"row": 252, "column": 37}}, {"id": 700, "type": "identifier", "text": "self", "parent": 698, "children": [], "start_point": {"row": 252, "column": 37}, "end_point": {"row": 252, "column": 41}}, {"id": 701, "type": "parameter_declaration", "text": "float *dt", "parent": 695, "children": [702, 703], "start_point": {"row": 252, "column": 43}, "end_point": {"row": 252, "column": 52}}, {"id": 702, "type": "primitive_type", "text": "float", "parent": 701, "children": [], "start_point": {"row": 252, "column": 43}, "end_point": {"row": 252, "column": 48}}, {"id": 703, "type": "pointer_declarator", "text": "*dt", "parent": 701, "children": [704, 705], "start_point": {"row": 252, "column": 49}, "end_point": {"row": 252, "column": 52}}, {"id": 704, "type": "*", "text": "*", "parent": 703, "children": [], "start_point": {"row": 252, "column": 49}, "end_point": {"row": 252, "column": 50}}, {"id": 705, "type": "identifier", "text": "dt", "parent": 703, "children": [], "start_point": {"row": 252, "column": 50}, "end_point": {"row": 252, "column": 52}}, {"id": 706, "type": "call_expression", "text": "SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 )", "parent": 691, "children": [707, 708], "start_point": {"row": 254, "column": 2}, "end_point": {"row": 254, "column": 69}}, {"id": 707, "type": "identifier", "text": "SendEntityMessage", "parent": 706, "children": [], "start_point": {"row": 254, "column": 2}, "end_point": {"row": 254, "column": 19}}, {"id": 708, "type": "argument_list", "text": "( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 )", "parent": 706, "children": [709, 716, 717, 718], "start_point": {"row": 254, "column": 19}, "end_point": {"row": 254, "column": 69}}, {"id": 709, "type": "field_expression", "text": "self->ownerComp->base.owner", "parent": 708, "children": [710, 715], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 48}}, {"id": 710, "type": "field_expression", "text": "self->ownerComp->base", "parent": 709, "children": [711, 714], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 42}}, {"id": 711, "type": "field_expression", "text": "self->ownerComp", "parent": 710, "children": [712, 713], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 36}}, {"id": 712, "type": "identifier", "text": "self", "parent": 711, "children": [], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 25}}, {"id": 713, "type": "field_identifier", "text": "ownerComp", "parent": 711, "children": [], "start_point": {"row": 254, "column": 27}, "end_point": {"row": 254, "column": 36}}, {"id": 714, "type": "field_identifier", "text": "base", "parent": 710, "children": [], "start_point": {"row": 254, "column": 38}, "end_point": {"row": 254, "column": 42}}, {"id": 715, "type": "field_identifier", "text": "owner", "parent": 709, "children": [], "start_point": {"row": 254, "column": 43}, "end_point": {"row": 254, "column": 48}}, {"id": 716, "type": "identifier", "text": "EM_INACTIVE", "parent": 708, "children": [], "start_point": {"row": 254, "column": 50}, "end_point": {"row": 254, "column": 61}}, {"id": 717, "type": "number_literal", "text": "0", "parent": 708, "children": [], "start_point": {"row": 254, "column": 63}, "end_point": {"row": 254, "column": 64}}, {"id": 718, "type": "number_literal", "text": "0", "parent": 708, "children": [], "start_point": {"row": 254, "column": 66}, "end_point": {"row": 254, "column": 67}}, {"id": 719, "type": "function_definition", "text": "void ActionListCreateEntity( AL_NODE *self, float *dt )\r\n{\r\n CreateEntity( (const char *)self->var1, self->var2, self->var3 );\r\n ActionListRemoveAction( self );\r\n}", "parent": null, "children": [720, 721], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 265, "column": 1}}, {"id": 720, "type": "primitive_type", "text": "void", "parent": 719, "children": [], "start_point": {"row": 261, "column": 0}, "end_point": {"row": 261, "column": 4}}, {"id": 721, "type": "function_declarator", "text": "ActionListCreateEntity( AL_NODE *self, float *dt )", "parent": 719, "children": [722, 723], "start_point": {"row": 261, "column": 5}, "end_point": {"row": 261, "column": 55}}, {"id": 722, "type": "identifier", "text": "ActionListCreateEntity", "parent": 721, "children": [], "start_point": {"row": 261, "column": 5}, "end_point": {"row": 261, "column": 27}}, {"id": 723, "type": "parameter_list", "text": "( AL_NODE *self, float *dt )", "parent": 721, "children": [724, 729], "start_point": {"row": 261, "column": 27}, "end_point": {"row": 261, "column": 55}}, {"id": 724, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 723, "children": [725, 726], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 42}}, {"id": 725, "type": "type_identifier", "text": "AL_NODE", "parent": 724, "children": [], "start_point": {"row": 261, "column": 29}, "end_point": {"row": 261, "column": 36}}, {"id": 726, "type": "pointer_declarator", "text": "*self", "parent": 724, "children": [727, 728], "start_point": {"row": 261, "column": 37}, "end_point": {"row": 261, "column": 42}}, {"id": 727, "type": "*", "text": "*", "parent": 726, "children": [], "start_point": {"row": 261, "column": 37}, "end_point": {"row": 261, "column": 38}}, {"id": 728, "type": "identifier", "text": "self", "parent": 726, "children": [], "start_point": {"row": 261, "column": 38}, "end_point": {"row": 261, "column": 42}}, {"id": 729, "type": "parameter_declaration", "text": "float *dt", "parent": 723, "children": [730, 731], "start_point": {"row": 261, "column": 44}, "end_point": {"row": 261, "column": 53}}, {"id": 730, "type": "primitive_type", "text": "float", "parent": 729, "children": [], "start_point": {"row": 261, "column": 44}, "end_point": {"row": 261, "column": 49}}, {"id": 731, "type": "pointer_declarator", "text": "*dt", "parent": 729, "children": [732, 733], "start_point": {"row": 261, "column": 50}, "end_point": {"row": 261, "column": 53}}, {"id": 732, "type": "*", "text": "*", "parent": 731, "children": [], "start_point": {"row": 261, "column": 50}, "end_point": {"row": 261, "column": 51}}, {"id": 733, "type": "identifier", "text": "dt", "parent": 731, "children": [], "start_point": {"row": 261, "column": 51}, "end_point": {"row": 261, "column": 53}}, {"id": 734, "type": "call_expression", "text": "CreateEntity( (const char *)self->var1, self->var2, self->var3 )", "parent": 719, "children": [735, 736], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 66}}, {"id": 735, "type": "identifier", "text": "CreateEntity", "parent": 734, "children": [], "start_point": {"row": 263, "column": 2}, "end_point": {"row": 263, "column": 14}}, {"id": 736, "type": "argument_list", "text": "( (const char *)self->var1, self->var2, self->var3 )", "parent": 734, "children": [737, 745, 748], "start_point": {"row": 263, "column": 14}, "end_point": {"row": 263, "column": 66}}, {"id": 737, "type": "cast_expression", "text": "(const char *)self->var1", "parent": 736, "children": [738, 742], "start_point": {"row": 263, "column": 16}, "end_point": {"row": 263, "column": 40}}, {"id": 738, "type": "type_descriptor", "text": "const char *", "parent": 737, "children": [739, 740], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 29}}, {"id": 739, "type": "primitive_type", "text": "char", "parent": 738, "children": [], "start_point": {"row": 263, "column": 23}, "end_point": {"row": 263, "column": 27}}, {"id": 740, "type": "abstract_pointer_declarator", "text": "*", "parent": 738, "children": [741], "start_point": {"row": 263, "column": 28}, "end_point": {"row": 263, "column": 29}}, {"id": 741, "type": "*", "text": "*", "parent": 740, "children": [], "start_point": {"row": 263, "column": 28}, "end_point": {"row": 263, "column": 29}}, {"id": 742, "type": "field_expression", "text": "self->var1", "parent": 737, "children": [743, 744], "start_point": {"row": 263, "column": 30}, "end_point": {"row": 263, "column": 40}}, {"id": 743, "type": "identifier", "text": "self", "parent": 742, "children": [], "start_point": {"row": 263, "column": 30}, "end_point": {"row": 263, "column": 34}}, {"id": 744, "type": "field_identifier", "text": "var1", "parent": 742, "children": [], "start_point": {"row": 263, "column": 36}, "end_point": {"row": 263, "column": 40}}, {"id": 745, "type": "field_expression", "text": "self->var2", "parent": 736, "children": [746, 747], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 52}}, {"id": 746, "type": "identifier", "text": "self", "parent": 745, "children": [], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 46}}, {"id": 747, "type": "field_identifier", "text": "var2", "parent": 745, "children": [], "start_point": {"row": 263, "column": 48}, "end_point": {"row": 263, "column": 52}}, {"id": 748, "type": "field_expression", "text": "self->var3", "parent": 736, "children": [749, 750], "start_point": {"row": 263, "column": 54}, "end_point": {"row": 263, "column": 64}}, {"id": 749, "type": "identifier", "text": "self", "parent": 748, "children": [], "start_point": {"row": 263, "column": 54}, "end_point": {"row": 263, "column": 58}}, {"id": 750, "type": "field_identifier", "text": "var3", "parent": 748, "children": [], "start_point": {"row": 263, "column": 60}, "end_point": {"row": 263, "column": 64}}, {"id": 751, "type": "call_expression", "text": "ActionListRemoveAction( self )", "parent": 719, "children": [752, 753], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 32}}, {"id": 752, "type": "identifier", "text": "ActionListRemoveAction", "parent": 751, "children": [], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 24}}, {"id": 753, "type": "argument_list", "text": "( self )", "parent": 751, "children": [754], "start_point": {"row": 264, "column": 24}, "end_point": {"row": 264, "column": 32}}, {"id": 754, "type": "identifier", "text": "self", "parent": 753, "children": [], "start_point": {"row": 264, "column": 26}, "end_point": {"row": 264, "column": 30}}, {"id": 755, "type": "function_definition", "text": "void ActionListSetVel( AL_NODE *self, float *dt )\r\n{\r\n VECTOR2D vel = { (float)self->var1, (float)self->var2 };\r\n SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ );\r\n ActionListRemoveAction( self );\r\n}", "parent": null, "children": [756, 757], "start_point": {"row": 271, "column": 0}, "end_point": {"row": 276, "column": 1}}, {"id": 756, "type": "primitive_type", "text": "void", "parent": 755, "children": [], "start_point": {"row": 271, "column": 0}, "end_point": {"row": 271, "column": 4}}, {"id": 757, "type": "function_declarator", "text": "ActionListSetVel( AL_NODE *self, float *dt )", "parent": 755, "children": [758, 759], "start_point": {"row": 271, "column": 5}, "end_point": {"row": 271, "column": 49}}, {"id": 758, "type": "identifier", "text": "ActionListSetVel", "parent": 757, "children": [], "start_point": {"row": 271, "column": 5}, "end_point": {"row": 271, "column": 21}}, {"id": 759, "type": "parameter_list", "text": "( AL_NODE *self, float *dt )", "parent": 757, "children": [760, 765], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 49}}, {"id": 760, "type": "parameter_declaration", "text": "AL_NODE *self", "parent": 759, "children": [761, 762], "start_point": {"row": 271, "column": 23}, "end_point": {"row": 271, "column": 36}}, {"id": 761, "type": "type_identifier", "text": "AL_NODE", "parent": 760, "children": [], "start_point": {"row": 271, "column": 23}, "end_point": {"row": 271, "column": 30}}, {"id": 762, "type": "pointer_declarator", "text": "*self", "parent": 760, "children": [763, 764], "start_point": {"row": 271, "column": 31}, "end_point": {"row": 271, "column": 36}}, {"id": 763, "type": "*", "text": "*", "parent": 762, "children": [], "start_point": {"row": 271, "column": 31}, "end_point": {"row": 271, "column": 32}}, {"id": 764, "type": "identifier", "text": "self", "parent": 762, "children": [], "start_point": {"row": 271, "column": 32}, "end_point": {"row": 271, "column": 36}}, {"id": 765, "type": "parameter_declaration", "text": "float *dt", "parent": 759, "children": [766, 767], "start_point": {"row": 271, "column": 38}, "end_point": {"row": 271, "column": 47}}, {"id": 766, "type": "primitive_type", "text": "float", "parent": 765, "children": [], "start_point": {"row": 271, "column": 38}, "end_point": {"row": 271, "column": 43}}, {"id": 767, "type": "pointer_declarator", "text": "*dt", "parent": 765, "children": [768, 769], "start_point": {"row": 271, "column": 44}, "end_point": {"row": 271, "column": 47}}, {"id": 768, "type": "*", "text": "*", "parent": 767, "children": [], "start_point": {"row": 271, "column": 44}, "end_point": {"row": 271, "column": 45}}, {"id": 769, "type": "identifier", "text": "dt", "parent": 767, "children": [], "start_point": {"row": 271, "column": 45}, "end_point": {"row": 271, "column": 47}}, {"id": 770, "type": "declaration", "text": "VECTOR2D vel = { (float)self->var1, (float)self->var2 };", "parent": 755, "children": [771, 772], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 58}}, {"id": 771, "type": "type_identifier", "text": "VECTOR2D", "parent": 770, "children": [], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 10}}, {"id": 772, "type": "init_declarator", "text": "vel = { (float)self->var1, (float)self->var2 }", "parent": 770, "children": [773, 774, 775], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 57}}, {"id": 773, "type": "identifier", "text": "vel", "parent": 772, "children": [], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 14}}, {"id": 774, "type": "=", "text": "=", "parent": 772, "children": [], "start_point": {"row": 273, "column": 15}, "end_point": {"row": 273, "column": 16}}, {"id": 775, "type": "initializer_list", "text": "{ (float)self->var1, (float)self->var2 }", "parent": 772, "children": [776, 782], "start_point": {"row": 273, "column": 17}, "end_point": {"row": 273, "column": 57}}, {"id": 776, "type": "cast_expression", "text": "(float)self->var1", "parent": 775, "children": [777, 779], "start_point": {"row": 273, "column": 19}, "end_point": {"row": 273, "column": 36}}, {"id": 777, "type": "type_descriptor", "text": "float", "parent": 776, "children": [778], "start_point": {"row": 273, "column": 20}, "end_point": {"row": 273, "column": 25}}, {"id": 778, "type": "primitive_type", "text": "float", "parent": 777, "children": [], "start_point": {"row": 273, "column": 20}, "end_point": {"row": 273, "column": 25}}, {"id": 779, "type": "field_expression", "text": "self->var1", "parent": 776, "children": [780, 781], "start_point": {"row": 273, "column": 26}, "end_point": {"row": 273, "column": 36}}, {"id": 780, "type": "identifier", "text": "self", "parent": 779, "children": [], "start_point": {"row": 273, "column": 26}, "end_point": {"row": 273, "column": 30}}, {"id": 781, "type": "field_identifier", "text": "var1", "parent": 779, "children": [], "start_point": {"row": 273, "column": 32}, "end_point": {"row": 273, "column": 36}}, {"id": 782, "type": "cast_expression", "text": "(float)self->var2", "parent": 775, "children": [783, 785], "start_point": {"row": 273, "column": 38}, "end_point": {"row": 273, "column": 55}}, {"id": 783, "type": "type_descriptor", "text": "float", "parent": 782, "children": [784], "start_point": {"row": 273, "column": 39}, "end_point": {"row": 273, "column": 44}}, {"id": 784, "type": "primitive_type", "text": "float", "parent": 783, "children": [], "start_point": {"row": 273, "column": 39}, "end_point": {"row": 273, "column": 44}}, {"id": 785, "type": "field_expression", "text": "self->var2", "parent": 782, "children": [786, 787], "start_point": {"row": 273, "column": 45}, "end_point": {"row": 273, "column": 55}}, {"id": 786, "type": "identifier", "text": "self", "parent": 785, "children": [], "start_point": {"row": 273, "column": 45}, "end_point": {"row": 273, "column": 49}}, {"id": 787, "type": "field_identifier", "text": "var2", "parent": 785, "children": [], "start_point": {"row": 273, "column": 51}, "end_point": {"row": 273, "column": 55}}, {"id": 788, "type": "call_expression", "text": "SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ )", "parent": 755, "children": [789, 790], "start_point": {"row": 274, "column": 2}, "end_point": {"row": 274, "column": 89}}, {"id": 789, "type": "identifier", "text": "SendEntityMessage", "parent": 788, "children": [], "start_point": {"row": 274, "column": 2}, "end_point": {"row": 274, "column": 19}}, {"id": 790, "type": "argument_list", "text": "( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ )", "parent": 788, "children": [791, 798, 799, 806], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 89}}, {"id": 791, "type": "field_expression", "text": "self->ownerComp->base.owner", "parent": 790, "children": [792, 797], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 48}}, {"id": 792, "type": "field_expression", "text": "self->ownerComp->base", "parent": 791, "children": [793, 796], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 42}}, {"id": 793, "type": "field_expression", "text": "self->ownerComp", "parent": 792, "children": [794, 795], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 36}}, {"id": 794, "type": "identifier", "text": "self", "parent": 793, "children": [], "start_point": {"row": 274, "column": 21}, "end_point": {"row": 274, "column": 25}}, {"id": 795, "type": "field_identifier", "text": "ownerComp", "parent": 793, "children": [], "start_point": {"row": 274, "column": 27}, "end_point": {"row": 274, "column": 36}}, {"id": 796, "type": "field_identifier", "text": "base", "parent": 792, "children": [], "start_point": {"row": 274, "column": 38}, "end_point": {"row": 274, "column": 42}}, {"id": 797, "type": "field_identifier", "text": "owner", "parent": 791, "children": [], "start_point": {"row": 274, "column": 43}, "end_point": {"row": 274, "column": 48}}, {"id": 798, "type": "identifier", "text": "EM_SETVEL", "parent": 790, "children": [], "start_point": {"row": 274, "column": 50}, "end_point": {"row": 274, "column": 59}}, {"id": 799, "type": "cast_expression", "text": "(int)&vel.x_", "parent": 790, "children": [800, 802], "start_point": {"row": 274, "column": 61}, "end_point": {"row": 274, "column": 73}}, {"id": 800, "type": "type_descriptor", "text": "int", "parent": 799, "children": [801], "start_point": {"row": 274, "column": 62}, "end_point": {"row": 274, "column": 65}}, {"id": 801, "type": "primitive_type", "text": "int", "parent": 800, "children": [], "start_point": {"row": 274, "column": 62}, "end_point": {"row": 274, "column": 65}}, {"id": 802, "type": "pointer_expression", "text": "&vel.x_", "parent": 799, "children": [803], "start_point": {"row": 274, "column": 66}, "end_point": {"row": 274, "column": 73}}, {"id": 803, "type": "field_expression", "text": "vel.x_", "parent": 802, "children": [804, 805], "start_point": {"row": 274, "column": 67}, "end_point": {"row": 274, "column": 73}}, {"id": 804, "type": "identifier", "text": "vel", "parent": 803, "children": [], "start_point": {"row": 274, "column": 67}, "end_point": {"row": 274, "column": 70}}, {"id": 805, "type": "field_identifier", "text": "x_", "parent": 803, "children": [], "start_point": {"row": 274, "column": 71}, "end_point": {"row": 274, "column": 73}}, {"id": 806, "type": "cast_expression", "text": "(int)&vel.y_", "parent": 790, "children": [807, 809], "start_point": {"row": 274, "column": 75}, "end_point": {"row": 274, "column": 87}}, {"id": 807, "type": "type_descriptor", "text": "int", "parent": 806, "children": [808], "start_point": {"row": 274, "column": 76}, "end_point": {"row": 274, "column": 79}}, {"id": 808, "type": "primitive_type", "text": "int", "parent": 807, "children": [], "start_point": {"row": 274, "column": 76}, "end_point": {"row": 274, "column": 79}}, {"id": 809, "type": "pointer_expression", "text": "&vel.y_", "parent": 806, "children": [810], "start_point": {"row": 274, "column": 80}, "end_point": {"row": 274, "column": 87}}, {"id": 810, "type": "field_expression", "text": "vel.y_", "parent": 809, "children": [811, 812], "start_point": {"row": 274, "column": 81}, "end_point": {"row": 274, "column": 87}}, {"id": 811, "type": "identifier", "text": "vel", "parent": 810, "children": [], "start_point": {"row": 274, "column": 81}, "end_point": {"row": 274, "column": 84}}, {"id": 812, "type": "field_identifier", "text": "y_", "parent": 810, "children": [], "start_point": {"row": 274, "column": 85}, "end_point": {"row": 274, "column": 87}}, {"id": 813, "type": "call_expression", "text": "ActionListRemoveAction( self )", "parent": 755, "children": [814, 815], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 32}}, {"id": 814, "type": "identifier", "text": "ActionListRemoveAction", "parent": 813, "children": [], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 24}}, {"id": 815, "type": "argument_list", "text": "( self )", "parent": 813, "children": [816], "start_point": {"row": 275, "column": 24}, "end_point": {"row": 275, "column": 32}}, {"id": 816, "type": "identifier", "text": "self", "parent": 815, "children": [], "start_point": {"row": 275, "column": 26}, "end_point": {"row": 275, "column": 30}}]}, "node_categories": {"declarations": {"functions": [18, 20, 117, 119, 142, 144, 187, 189, 249, 251, 300, 302, 539, 541, 621, 623, 658, 660, 691, 693, 719, 721, 755, 757], "variables": [9, 23, 28, 31, 34, 122, 147, 192, 197, 202, 216, 254, 259, 272, 305, 310, 315, 496, 544, 626, 631, 663, 668, 696, 701, 724, 729, 760, 765, 770], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [39, 44, 47, 58, 67, 71, 82, 91, 95, 106, 109, 128, 135, 136, 155, 160, 163, 164, 170, 173, 179, 180, 209, 213, 221, 224, 225, 232, 233, 239, 240, 245, 246, 266, 270, 282, 283, 289, 292, 326, 327, 348, 353, 356, 357, 359, 364, 365, 368, 374, 378, 382, 386, 390, 394, 398, 402, 406, 410, 414, 418, 422, 426, 431, 432, 439, 450, 461, 472, 483, 494, 503, 507, 510, 511, 517, 521, 527, 534, 550, 553, 554, 558, 559, 564, 568, 569, 573, 574, 579, 584, 585, 589, 590, 598, 599, 604, 609, 610, 617, 637, 641, 645, 646, 647, 651, 654, 674, 675, 676, 677, 684, 687, 706, 709, 710, 711, 734, 737, 742, 745, 748, 751, 776, 779, 782, 785, 788, 791, 792, 793, 799, 802, 803, 806, 809, 810, 813], "assignments": [127, 134, 152, 286, 296, 345, 367, 373, 381, 389, 397, 405, 413, 421, 438, 449, 460, 471, 482, 514, 520, 526, 533, 557, 572, 588, 597, 608, 636, 673], "loops": [269, 509], "conditionals": [14, 21, 24, 27, 29, 30, 33, 36, 37, 38, 40, 41, 42, 43, 45, 52, 55, 56, 57, 59, 61, 64, 65, 66, 68, 70, 76, 79, 80, 81, 83, 85, 88, 89, 90, 92, 94, 97, 100, 103, 104, 105, 107, 111, 114, 120, 123, 126, 129, 130, 137, 138, 139, 141, 145, 151, 153, 161, 165, 167, 171, 178, 181, 183, 186, 190, 193, 196, 201, 203, 207, 210, 211, 212, 214, 219, 222, 223, 226, 227, 229, 230, 231, 234, 235, 238, 242, 247, 248, 252, 255, 258, 260, 264, 267, 268, 271, 273, 277, 281, 284, 285, 287, 290, 291, 293, 295, 297, 299, 303, 306, 309, 311, 314, 316, 320, 324, 325, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 346, 350, 354, 358, 360, 362, 366, 369, 370, 372, 375, 376, 379, 380, 383, 384, 387, 388, 391, 392, 395, 396, 399, 400, 403, 404, 407, 408, 411, 412, 415, 416, 419, 420, 423, 424, 427, 428, 429, 430, 433, 434, 435, 436, 437, 440, 441, 443, 446, 447, 448, 451, 452, 454, 457, 458, 459, 462, 463, 465, 468, 469, 470, 473, 474, 476, 479, 480, 481, 484, 485, 487, 490, 493, 495, 497, 501, 504, 505, 506, 508, 512, 513, 515, 518, 519, 522, 523, 525, 528, 529, 531, 535, 536, 538, 542, 545, 548, 549, 551, 552, 555, 556, 560, 561, 562, 565, 566, 567, 570, 571, 575, 576, 577, 580, 581, 583, 586, 587, 591, 592, 593, 600, 601, 602, 605, 606, 611, 612, 613, 618, 620, 624, 627, 630, 635, 638, 639, 643, 644, 648, 649, 652, 653, 655, 657, 661, 664, 667, 672, 678, 679, 680, 681, 682, 685, 686, 688, 690, 694, 697, 700, 705, 707, 712, 713, 714, 715, 716, 722, 725, 728, 733, 735, 743, 744, 746, 747, 749, 750, 752, 754, 758, 761, 764, 769, 771, 773, 780, 781, 786, 787, 789, 794, 795, 796, 797, 798, 804, 805, 811, 812, 814, 816], "returns": [492], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 169, 185, 363, 717, 718], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "ActionListCOM_PROC", "text_snippet": "void ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )\r\n{\r\n switch(msg)\r\n {\r\n // GENER"}, {"node_id": 20, "universal_type": "function", "name": "var1,", "text_snippet": "ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )"}, {"node_id": 117, "universal_type": "function", "name": "ActionListCreate", "text_snippet": "void ActionListCreate( AL *self )\r\n{\r\n self->actionList = NULL;\r\n self->base.CLASS_NAME = CLASS_NA"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListCreate( AL *self )"}, {"node_id": 142, "universal_type": "function", "name": "ActionListInit", "text_snippet": "void ActionListInit( const char *className )\r\n{\r\n CLASS_NAME = (const char *)malloc( strlen( classN"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListInit( const char *className )"}, {"node_id": 187, "universal_type": "function", "name": "ActionListUpdate", "text_snippet": "void ActionListUpdate( AL *self, float *dt )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle t"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListUpdate( AL *self, float *dt )"}, {"node_id": 249, "universal_type": "function", "name": "ActionListDestroy", "text_snippet": "void ActionListDestroy( AL *self )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle through eac"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListDestroy( AL *self )"}, {"node_id": 300, "universal_type": "function", "name": "ActionListAddAction", "text_snippet": "void ActionListAddAction( AL *self, ALD *data )\r\n{\r\n AL_NODE *node = NULL;\r\n\r\n switch(data->ID)\r\n "}, {"node_id": 302, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListAddAction( AL *self, ALD *data )"}, {"node_id": 539, "universal_type": "function", "name": "ActionListRemoveAction", "text_snippet": "void ActionListRemoveAction( AL_NODE *self )\r\n{\r\n // Disconnect from list\r\n if(self)\r\n {\r\n if("}, {"node_id": 541, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListRemoveAction( AL_NODE *self )"}, {"node_id": 621, "universal_type": "function", "name": "ActionListPause", "text_snippet": "void ActionListPause( AL_NODE *self, float *dt )\r\n{\r\n self->dt += *dt;\r\n\r\n if(self->dt > self->tim"}, {"node_id": 623, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListPause( AL_NODE *self, float *dt )"}, {"node_id": 658, "universal_type": "function", "name": "ActionListSetProperties", "text_snippet": "void ActionListSetProperties( AL_NODE *self, float *dt )\r\n{\r\n self->ownerComp->base.owner->properti"}, {"node_id": 660, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListSetProperties( AL_NODE *self, float *dt )"}, {"node_id": 691, "universal_type": "function", "name": "ActionListDestroySelf", "text_snippet": "void ActionListDestroySelf( AL_NODE *self, float *dt )\r\n{\r\n SendEntityMessage( self->ownerComp->bas"}, {"node_id": 693, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListDestroySelf( AL_NODE *self, float *dt )"}, {"node_id": 719, "universal_type": "function", "name": "ActionListCreateEntity", "text_snippet": "void ActionListCreateEntity( AL_NODE *self, float *dt )\r\n{\r\n CreateEntity( (const char *)self->var1"}, {"node_id": 721, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListCreateEntity( AL_NODE *self, float *dt )"}, {"node_id": 755, "universal_type": "function", "name": "ActionListSetVel", "text_snippet": "void ActionListSetVel( AL_NODE *self, float *dt )\r\n{\r\n VECTOR2D vel = { (float)self->var1, (float)s"}, {"node_id": 757, "universal_type": "function", "name": "unknown", "text_snippet": "ActionListSetVel( AL_NODE *self, float *dt )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"ActionList.h\"\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"EntityManager.h\"\r\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"EntityFactory.h\"\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "////////////////////////////////////////////////////\r\n// Copyright (c) 2012 ICRL\r\n// See the file LICENSE.txt for copying permission.\r\n// \r\n// Original Author: <NAME>\r\n// Date: 7/21/2012\r\n// Contact: <EMAIL>\r\n////////////////////////////////////////////////////\r\n\r\n#include \"ActionList.h\"\r\n#include \"EntityManager.h\"\r\n#include \"EntityFactory.h\"\r\n\r\n// Static class variables and data\r\nstatic const char *CLASS_NAME = NULL;\r\n\r\n//\r\n// ClassCOM_PROC\r\n// Purpose: Component procedure for this component type. Dispatches messages\r\n// recieved in the appropriate manner.\r\n//\r\nvoid ActionListCOM_PROC( AL *self, EM msg, int var1, int var2 )\r\n{\r\n switch(msg)\r\n {\r\n // GENERAL\r\n case EM_CLSINIT:\r\n ActionListInit( (const char *)var1 );\r\n break;\r\n case EM_CREATE:\r\n ActionListCreate( self );\r\n break;\r\n case EM_UPDATE:\r\n ActionListUpdate( self, (float *)var1 );\r\n break;\r\n case EM_DESTROY:\r\n ActionListDestroy( self );\r\n break;\r\n\r\n // ACTIONLIST\r\n case EM_ALADDACT:\r\n ActionListAddAction( self, (ALD *)var1 );\r\n break;\r\n case EM_ALREMACT:\r\n ActionListRemoveAction( (AL_NODE *)var1 );\r\n break;\r\n }\r\n}\r\n\r\n//\r\n// ClassCreate\r\n// Purpose: Acts as a constructor for this class. Initializes the\r\n// data and dynamically allocates any extra space needed, and\r\n// initializes the allocated space with data.\r\n//\r\nvoid ActionListCreate( AL *self )\r\n{\r\n self->actionList = NULL;\r\n self->base.CLASS_NAME = CLASS_NAME;\r\n}\r\n\r\n//\r\n// ClassInit\r\n// Purpose: One-time initialization of the class. Use this function to load resources from disk,\r\n// set up static class variables, or anything else.\r\n//\r\nvoid ActionListInit( const char *className )\r\n{\r\n CLASS_NAME = (const char *)malloc( strlen( className ) + 1 );\r\n strcpy_s( (char *)CLASS_NAME, strlen( className ) + 1 , className );\r\n}\r\n\r\n//\r\n// ActionListUpdate\r\n// Purpose: Updates the action list.\r\n//\r\nvoid ActionListUpdate( AL *self, float *dt )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle through each action and call its Update function\r\n // If find a blocking action, stop the cycle\r\n if(scan)\r\n {\r\n do\r\n {\r\n int flag = scan->flag;\r\n scan->Update( scan, dt );\r\n if(flag & BLOCKING)\r\n break;\r\n if(!scan)\r\n break;\r\n } while(scan->next);\r\n }\r\n}\r\n\r\n//\r\n// ActionListDestroy\r\n// Purpose: Frees an action list's actions.\r\n//\r\nvoid ActionListDestroy( AL *self )\r\n{\r\n AL_NODE *scan = self->actionList;\r\n\r\n // Cycle through each action and free it from memory\r\n while(scan)\r\n {\r\n AL_NODE *temp = NULL;\r\n if(scan->next)\r\n temp = scan->next;\r\n ActionListRemoveAction( scan );\r\n scan = temp;\r\n }\r\n}\r\n\r\n//\r\n// ActionListAddAction\r\n// Purpose: Adds a specific action and allows customized flag to be set, to an actionList\r\n// on a game object.\r\n//\r\nvoid ActionListAddAction( AL *self, ALD *data )\r\n{\r\n AL_NODE *node = NULL;\r\n\r\n switch(data->ID)\r\n {\r\n case ALT_PAUSE:\r\n case ALT_DESTROY:\r\n case ALT_SET_PROPERTIES:\r\n case ALT_CREATE_ENTITY:\r\n case ALT_SET_VEL:\r\n // Set data from provided ALD pointer\r\n node = (AL_NODE *)malloc( sizeof( AL_NODE ) );\r\n memset( node, 0, sizeof( AL_NODE ) );\r\n // Initialize data\r\n node->ownerComp = self;\r\n node->flag = data->flag;\r\n node->timerEnd = data->timerEnd;\r\n node->var1 = data->var1;\r\n node->var2 = data->var2;\r\n node->var3 = data->var3;\r\n node->ID = data->ID;\r\n node->dt = data->dt;\r\n\r\n // Assign individualized data\r\n switch(node->ID)\r\n {\r\n case ALT_PAUSE:\r\n node->Update = ActionListPause;\r\n break;\r\n case ALT_DESTROY:\r\n node->Update = ActionListDestroySelf;\r\n break;\r\n case ALT_SET_PROPERTIES:\r\n node->Update = ActionListSetProperties;\r\n break;\r\n case ALT_CREATE_ENTITY:\r\n node->Update = ActionListCreateEntity;\r\n break;\r\n case ALT_SET_VEL:\r\n node->Update = ActionListSetVel;\r\n }\r\n break;\r\n default:\r\n return;\r\n }\r\n\r\n // Add action to the actionList\r\n if(node)\r\n {\r\n AL_NODE *scan = self->actionList;\r\n\r\n if(scan)\r\n {\r\n while(scan->next)\r\n {\r\n scan = scan->next;\r\n }\r\n\r\n scan->next = node;\r\n node->prev = scan;\r\n }\r\n else\r\n {\r\n self->actionList = node;\r\n }\r\n }\r\n}\r\n\r\n//\r\n// ActionListRemoveAction\r\n// Purpose: Removes a specific action from an actionList.\r\n//\r\nvoid ActionListRemoveAction( AL_NODE *self )\r\n{\r\n // Disconnect from list\r\n if(self)\r\n {\r\n if(self->prev)\r\n {\r\n self->prev->next = self->next;\r\n if(self->next)\r\n {\r\n self->next->prev = self->prev;\r\n }\r\n }\r\n else\r\n {\r\n if(self->next)\r\n {\r\n self->next->prev = NULL;\r\n self->ownerComp->actionList = self->next;\r\n }\r\n else\r\n {\r\n self->ownerComp->actionList = NULL;\r\n }\r\n }\r\n }\r\n\r\n free( self );\r\n}\r\n\r\n//\r\n// ActionListPause\r\n// Purpose: Creates a blocking pause for an amount of seconds.\r\n//\r\nvoid ActionListPause( AL_NODE *self, float *dt )\r\n{\r\n self->dt += *dt;\r\n\r\n if(self->dt > self->timerEnd)\r\n {\r\n ActionListRemoveAction( self );\r\n }\r\n}\r\n\r\n//\r\n// ActionListSetProperties\r\n// Purpose: Sets the properties of an entity to the flags data member with |=\r\n// to the value of var1.\r\n//\r\nvoid ActionListSetProperties( AL_NODE *self, float *dt )\r\n{\r\n self->ownerComp->base.owner->properties |= self->var1;\r\n ActionListRemoveAction( self );\r\n}\r\n\r\n//\r\n// ActionListDestroySelf\r\n// Purpose: Sends an EM_DESTROY message to the owner entity.\r\n//\r\nvoid ActionListDestroySelf( AL_NODE *self, float *dt )\r\n{\r\n SendEntityMessage( self->ownerComp->base.owner, EM_INACTIVE, 0, 0 );\r\n}\r\n\r\n//\r\n// ActionListCreateEntity\r\n// Purpose: Creates an entity.\r\n//\r\nvoid ActionListCreateEntity( AL_NODE *self, float *dt )\r\n{\r\n CreateEntity( (const char *)self->var1, self->var2, self->var3 );\r\n ActionListRemoveAction( self );\r\n}\r\n\r\n//\r\n// ActionListSetVel\r\n// Purpose: Sets the velocity of an object to var1\r\n//\r\nvoid ActionListSetVel( AL_NODE *self, float *dt )\r\n{\r\n VECTOR2D vel = { (float)self->var1, (float)self->var2 };\r\n SendEntityMessage( self->ownerComp->base.owner, EM_SETVEL, (int)&vel.x_, (int)&vel.y_ );\r\n ActionListRemoveAction( self );\r\n}\r\n"}
80,720
c
/* (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. See the copyright notice in the ACK home directory, in the file "Copyright". */ /* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */ /* SEPERATE INTO EXPONENT AND FRACTION (FEF 4) */ #include "FP_types.h" void fef4(r,s1) SINGLE s1; struct fef4_returns *r; { EXTEND buf; register struct fef4_returns *p = r; /* make copy; r might refer to itself (see table) */ extend(&s1,&buf,sizeof(SINGLE)); if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) { p->e = 0; } else { p->e = buf.exp+1; buf.exp = -1; } compact(&buf,&p->f,sizeof(SINGLE)); }
23.36
28
(translation_unit) "/*\n (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n See the copyright notice in the ACK home directory, in the file "Copyright".\n*/\n\n/* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */\n\n/*\n SEPERATE INTO EXPONENT AND FRACTION (FEF 4)\n*/\n\n#include "FP_types.h"\n\nvoid\nfef4(r,s1)\nSINGLE s1;\nstruct fef4_returns *r;\n{\n EXTEND buf;\n register struct fef4_returns *p = r; /* make copy; r might refer\n to itself (see table)\n */\n\n extend(&s1,&buf,sizeof(SINGLE));\n if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n p->e = 0;\n }\n else {\n p->e = buf.exp+1;\n buf.exp = -1;\n }\n compact(&buf,&p->f,sizeof(SINGLE));\n}\n" (comment) "/*\n (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n See the copyright notice in the ACK home directory, in the file "Copyright".\n*/" (comment) "/* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */" (comment) "/*\n SEPERATE INTO EXPONENT AND FRACTION (FEF 4)\n*/" (preproc_include) "#include "FP_types.h"\n" (#include) "#include" (string_literal) ""FP_types.h"" (") """ (string_content) "FP_types.h" (") """ (function_definition) "void\nfef4(r,s1)\nSINGLE s1;\nstruct fef4_returns *r;\n{\n EXTEND buf;\n register struct fef4_returns *p = r; /* make copy; r might refer\n to itself (see table)\n */\n\n extend(&s1,&buf,sizeof(SINGLE));\n if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n p->e = 0;\n }\n else {\n p->e = buf.exp+1;\n buf.exp = -1;\n }\n compact(&buf,&p->f,sizeof(SINGLE));\n}" (primitive_type) "void" (function_declarator) "fef4(r,s1)" (identifier) "fef4" (parameter_list) "(r,s1)" (() "(" (identifier) "r" (,) "," (identifier) "s1" ()) ")" (declaration) "SINGLE s1;" (type_identifier) "SINGLE" (identifier) "s1" (;) ";" (declaration) "struct fef4_returns *r;" (struct_specifier) "struct fef4_returns" (struct) "struct" (type_identifier) "fef4_returns" (pointer_declarator) "*r" (*) "*" (identifier) "r" (;) ";" (compound_statement) "{\n EXTEND buf;\n register struct fef4_returns *p = r; /* make copy; r might refer\n to itself (see table)\n */\n\n extend(&s1,&buf,sizeof(SINGLE));\n if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n p->e = 0;\n }\n else {\n p->e = buf.exp+1;\n buf.exp = -1;\n }\n compact(&buf,&p->f,sizeof(SINGLE));\n}" ({) "{" (declaration) "EXTEND buf;" (type_identifier) "EXTEND" (identifier) "buf" (;) ";" (declaration) "register struct fef4_returns *p = r;" (storage_class_specifier) "register" (register) "register" (struct_specifier) "struct fef4_returns" (struct) "struct" (type_identifier) "fef4_returns" (init_declarator) "*p = r" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "r" (;) ";" (comment) "/* make copy; r might refer\n to itself (see table)\n */" (expression_statement) "extend(&s1,&buf,sizeof(SINGLE));" (call_expression) "extend(&s1,&buf,sizeof(SINGLE))" (identifier) "extend" (argument_list) "(&s1,&buf,sizeof(SINGLE))" (() "(" (pointer_expression) "&s1" (&) "&" (identifier) "s1" (,) "," (pointer_expression) "&buf" (&) "&" (identifier) "buf" (,) "," (sizeof_expression) "sizeof(SINGLE)" (sizeof) "sizeof" (parenthesized_expression) "(SINGLE)" (() "(" (identifier) "SINGLE" ()) ")" ()) ")" (;) ";" (if_statement) "if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n p->e = 0;\n }\n else {\n p->e = buf.exp+1;\n buf.exp = -1;\n }" (if) "if" (parenthesized_expression) "(buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0)" (() "(" (binary_expression) "buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0" (binary_expression) "buf.exp == 0 && buf.m1 == 0" (binary_expression) "buf.exp == 0" (field_expression) "buf.exp" (identifier) "buf" (.) "." (field_identifier) "exp" (==) "==" (number_literal) "0" (&&) "&&" (binary_expression) "buf.m1 == 0" (field_expression) "buf.m1" (identifier) "buf" (.) "." (field_identifier) "m1" (==) "==" (number_literal) "0" (&&) "&&" (binary_expression) "buf.m2 == 0" (field_expression) "buf.m2" (identifier) "buf" (.) "." (field_identifier) "m2" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n p->e = 0;\n }" ({) "{" (expression_statement) "p->e = 0;" (assignment_expression) "p->e = 0" (field_expression) "p->e" (identifier) "p" (->) "->" (field_identifier) "e" (=) "=" (number_literal) "0" (;) ";" (}) "}" (else_clause) "else {\n p->e = buf.exp+1;\n buf.exp = -1;\n }" (else) "else" (compound_statement) "{\n p->e = buf.exp+1;\n buf.exp = -1;\n }" ({) "{" (expression_statement) "p->e = buf.exp+1;" (assignment_expression) "p->e = buf.exp+1" (field_expression) "p->e" (identifier) "p" (->) "->" (field_identifier) "e" (=) "=" (binary_expression) "buf.exp+1" (field_expression) "buf.exp" (identifier) "buf" (.) "." (field_identifier) "exp" (+) "+" (number_literal) "1" (;) ";" (expression_statement) "buf.exp = -1;" (assignment_expression) "buf.exp = -1" (field_expression) "buf.exp" (identifier) "buf" (.) "." (field_identifier) "exp" (=) "=" (number_literal) "-1" (;) ";" (}) "}" (expression_statement) "compact(&buf,&p->f,sizeof(SINGLE));" (call_expression) "compact(&buf,&p->f,sizeof(SINGLE))" (identifier) "compact" (argument_list) "(&buf,&p->f,sizeof(SINGLE))" (() "(" (pointer_expression) "&buf" (&) "&" (identifier) "buf" (,) "," (pointer_expression) "&p->f" (&) "&" (field_expression) "p->f" (identifier) "p" (->) "->" (field_identifier) "f" (,) "," (sizeof_expression) "sizeof(SINGLE)" (sizeof) "sizeof" (parenthesized_expression) "(SINGLE)" (() "(" (identifier) "SINGLE" ()) ")" ()) ")" (;) ";" (}) "}"
169
0
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 23.36, "nodes": 105, "errors": 0, "source_hash": "ac970e58fafcb21346a594eb5e702d5111f2485353f382b049871dd383b83873", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include\t\"FP_types.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"FP_types.h\"", "parent": 0, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 3, "type": "function_definition", "text": "void\nfef4(r,s1)\nSINGLE\ts1;\nstruct fef4_returns\t*r;\n{\n\tEXTEND\tbuf;\n\tregister struct fef4_returns\t*p = r;\t/* make copy; r might refer\n\t\t\t\t\t\t to itself (see table)\n\t\t\t\t\t\t*/\n\n\textend(&s1,&buf,sizeof(SINGLE));\n\tif (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n\t\tp->e = 0;\n\t}\n\telse {\n\t\tp->e = buf.exp+1;\n\t\tbuf.exp = -1;\n\t}\n\tcompact(&buf,&p->f,sizeof(SINGLE));\n}", "parent": null, "children": [4, 5, 10, 13], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 4}}, {"id": 5, "type": "function_declarator", "text": "fef4(r,s1)", "parent": 3, "children": [6, 7], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 10}}, {"id": 6, "type": "identifier", "text": "fef4", "parent": 5, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 7, "type": "parameter_list", "text": "(r,s1)", "parent": 5, "children": [8, 9], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 8, "type": "identifier", "text": "r", "parent": 7, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 6}}, {"id": 9, "type": "identifier", "text": "s1", "parent": 7, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 9}}, {"id": 10, "type": "declaration", "text": "SINGLE\ts1;", "parent": 3, "children": [11, 12], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 10}}, {"id": 11, "type": "type_identifier", "text": "SINGLE", "parent": 10, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 12, "type": "identifier", "text": "s1", "parent": 10, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 9}}, {"id": 13, "type": "declaration", "text": "struct fef4_returns\t*r;", "parent": 3, "children": [14, 17], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 23}}, {"id": 14, "type": "struct_specifier", "text": "struct fef4_returns", "parent": 13, "children": [15, 16], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 19}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 16, "type": "type_identifier", "text": "fef4_returns", "parent": 14, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 19}}, {"id": 17, "type": "pointer_declarator", "text": "*r", "parent": 13, "children": [18, 19], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 22}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 21}}, {"id": 19, "type": "identifier", "text": "r", "parent": 17, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 22}}, {"id": 20, "type": "declaration", "text": "EXTEND\tbuf;", "parent": 3, "children": [21, 22], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 12}}, {"id": 21, "type": "type_identifier", "text": "EXTEND", "parent": 20, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 7}}, {"id": 22, "type": "identifier", "text": "buf", "parent": 20, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 23, "type": "declaration", "text": "register struct fef4_returns\t*p = r;", "parent": 3, "children": [24, 26, 29], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 37}}, {"id": 24, "type": "storage_class_specifier", "text": "register", "parent": 23, "children": [25], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 25, "type": "register", "text": "register", "parent": 24, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 26, "type": "struct_specifier", "text": "struct fef4_returns", "parent": 23, "children": [27, 28], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 29}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 16}}, {"id": 28, "type": "type_identifier", "text": "fef4_returns", "parent": 26, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 29}}, {"id": 29, "type": "init_declarator", "text": "*p = r", "parent": 23, "children": [30, 33, 34], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 36}}, {"id": 30, "type": "pointer_declarator", "text": "*p", "parent": 29, "children": [31, 32], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 32}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 31}}, {"id": 32, "type": "identifier", "text": "p", "parent": 30, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 32}}, {"id": 33, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 34}}, {"id": 34, "type": "identifier", "text": "r", "parent": 29, "children": [], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 36}}, {"id": 35, "type": "call_expression", "text": "extend(&s1,&buf,sizeof(SINGLE))", "parent": 3, "children": [36, 37], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 32}}, {"id": 36, "type": "identifier", "text": "extend", "parent": 35, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 7}}, {"id": 37, "type": "argument_list", "text": "(&s1,&buf,sizeof(SINGLE))", "parent": 35, "children": [38, 40, 42], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 32}}, {"id": 38, "type": "pointer_expression", "text": "&s1", "parent": 37, "children": [39], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 11}}, {"id": 39, "type": "identifier", "text": "s1", "parent": 38, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 11}}, {"id": 40, "type": "pointer_expression", "text": "&buf", "parent": 37, "children": [41], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 16}}, {"id": 41, "type": "identifier", "text": "buf", "parent": 40, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 16}}, {"id": 42, "type": "sizeof_expression", "text": "sizeof(SINGLE)", "parent": 37, "children": [43], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 31}}, {"id": 43, "type": "parenthesized_expression", "text": "(SINGLE)", "parent": 42, "children": [44], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 31}}, {"id": 44, "type": "identifier", "text": "SINGLE", "parent": 43, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 30}}, {"id": 45, "type": "if_statement", "text": "if (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n\t\tp->e = 0;\n\t}\n\telse {\n\t\tp->e = buf.exp+1;\n\t\tbuf.exp = -1;\n\t}", "parent": 3, "children": [46, 75], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 46, "type": "parenthesized_expression", "text": "(buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0)", "parent": 45, "children": [47], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 48}}, {"id": 47, "type": "binary_expression", "text": "buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0", "parent": 46, "children": [48, 62, 63], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 47}}, {"id": 48, "type": "binary_expression", "text": "buf.exp == 0 && buf.m1 == 0", "parent": 47, "children": [49, 55, 56], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 32}}, {"id": 49, "type": "binary_expression", "text": "buf.exp == 0", "parent": 48, "children": [50, 53, 54], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 17}}, {"id": 50, "type": "field_expression", "text": "buf.exp", "parent": 49, "children": [51, 52], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 12}}, {"id": 51, "type": "identifier", "text": "buf", "parent": 50, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 8}}, {"id": 52, "type": "field_identifier", "text": "exp", "parent": 50, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 53, "type": "==", "text": "==", "parent": 49, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 15}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 49, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 55, "type": "&&", "text": "&&", "parent": 48, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 56, "type": "binary_expression", "text": "buf.m1 == 0", "parent": 48, "children": [57, 60, 61], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 32}}, {"id": 57, "type": "field_expression", "text": "buf.m1", "parent": 56, "children": [58, 59], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 27}}, {"id": 58, "type": "identifier", "text": "buf", "parent": 57, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 24}}, {"id": 59, "type": "field_identifier", "text": "m1", "parent": 57, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 27}}, {"id": 60, "type": "==", "text": "==", "parent": 56, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 30}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 32}}, {"id": 62, "type": "&&", "text": "&&", "parent": 47, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 35}}, {"id": 63, "type": "binary_expression", "text": "buf.m2 == 0", "parent": 47, "children": [64, 67, 68], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 47}}, {"id": 64, "type": "field_expression", "text": "buf.m2", "parent": 63, "children": [65, 66], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 42}}, {"id": 65, "type": "identifier", "text": "buf", "parent": 64, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 39}}, {"id": 66, "type": "field_identifier", "text": "m2", "parent": 64, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 42}}, {"id": 67, "type": "==", "text": "==", "parent": 63, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 45}}, {"id": 68, "type": "number_literal", "text": "0", "parent": 63, "children": [], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 47}}, {"id": 69, "type": "assignment_expression", "text": "p->e = 0", "parent": 45, "children": [70, 73, 74], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 70, "type": "field_expression", "text": "p->e", "parent": 69, "children": [71, 72], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 6}}, {"id": 71, "type": "identifier", "text": "p", "parent": 70, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 72, "type": "field_identifier", "text": "e", "parent": 70, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 6}}, {"id": 73, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 8}}, {"id": 74, "type": "number_literal", "text": "0", "parent": 69, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 75, "type": "else_clause", "text": "else {\n\t\tp->e = buf.exp+1;\n\t\tbuf.exp = -1;\n\t}", "parent": 45, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 76, "type": "assignment_expression", "text": "p->e = buf.exp+1", "parent": 75, "children": [77, 80, 81], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 77, "type": "field_expression", "text": "p->e", "parent": 76, "children": [78, 79], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 78, "type": "identifier", "text": "p", "parent": 77, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 3}}, {"id": 79, "type": "field_identifier", "text": "e", "parent": 77, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 6}}, {"id": 80, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 8}}, {"id": 81, "type": "binary_expression", "text": "buf.exp+1", "parent": 76, "children": [82, 85, 86], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 18}}, {"id": 82, "type": "field_expression", "text": "buf.exp", "parent": 81, "children": [83, 84], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 16}}, {"id": 83, "type": "identifier", "text": "buf", "parent": 82, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 12}}, {"id": 84, "type": "field_identifier", "text": "exp", "parent": 82, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 16}}, {"id": 85, "type": "+", "text": "+", "parent": 81, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 17}}, {"id": 86, "type": "number_literal", "text": "1", "parent": 81, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 87, "type": "assignment_expression", "text": "buf.exp = -1", "parent": 75, "children": [88, 91, 92], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 14}}, {"id": 88, "type": "field_expression", "text": "buf.exp", "parent": 87, "children": [89, 90], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 89, "type": "identifier", "text": "buf", "parent": 88, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 90, "type": "field_identifier", "text": "exp", "parent": 88, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 9}}, {"id": 91, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 92, "type": "number_literal", "text": "-1", "parent": 87, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 14}}, {"id": 93, "type": "call_expression", "text": "compact(&buf,&p->f,sizeof(SINGLE))", "parent": 3, "children": [94, 95], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 35}}, {"id": 94, "type": "identifier", "text": "compact", "parent": 93, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 8}}, {"id": 95, "type": "argument_list", "text": "(&buf,&p->f,sizeof(SINGLE))", "parent": 93, "children": [96, 98, 102], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 35}}, {"id": 96, "type": "pointer_expression", "text": "&buf", "parent": 95, "children": [97], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 13}}, {"id": 97, "type": "identifier", "text": "buf", "parent": 96, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 13}}, {"id": 98, "type": "pointer_expression", "text": "&p->f", "parent": 95, "children": [99], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 19}}, {"id": 99, "type": "field_expression", "text": "p->f", "parent": 98, "children": [100, 101], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 19}}, {"id": 100, "type": "identifier", "text": "p", "parent": 99, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 16}}, {"id": 101, "type": "field_identifier", "text": "f", "parent": 99, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 19}}, {"id": 102, "type": "sizeof_expression", "text": "sizeof(SINGLE)", "parent": 95, "children": [103], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 34}}, {"id": 103, "type": "parenthesized_expression", "text": "(SINGLE)", "parent": 102, "children": [104], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 34}}, {"id": 104, "type": "identifier", "text": "SINGLE", "parent": 103, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 33}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [10, 13, 20, 23], "classes": [14, 15, 24, 26, 27], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [35, 38, 40, 42, 43, 46, 47, 48, 49, 50, 56, 57, 63, 64, 70, 77, 81, 82, 88, 93, 96, 98, 99, 102, 103], "assignments": [69, 76, 87], "loops": [], "conditionals": [6, 8, 9, 11, 12, 16, 19, 21, 22, 28, 32, 34, 36, 39, 41, 44, 45, 51, 52, 58, 59, 65, 66, 71, 72, 78, 79, 83, 84, 89, 90, 94, 97, 100, 101, 104], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 54, 61, 68, 74, 86, 92], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "fef4", "text_snippet": "void\nfef4(r,s1)\nSINGLE\ts1;\nstruct fef4_returns\t*r;\n{\n\tEXTEND\tbuf;\n\tregister struct fef4_returns\t*p ="}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "fef4(r,s1)"}], "class_declarations": [{"node_id": 14, "universal_type": "class", "name": "fef4_returns", "text_snippet": "struct fef4_returns"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 26, "universal_type": "class", "name": "fef4_returns", "text_snippet": "struct fef4_returns"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include\t\"FP_types.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\n (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.\n See the copyright notice in the ACK home directory, in the file \"Copyright\".\n*/\n\n/* $Header: /cvsup/minix/src/lib/float/fef4.c,v 1.1.1.1 2005/04/21 14:56:10 beng Exp $ */\n\n/*\n\tSEPERATE INTO EXPONENT AND FRACTION (FEF 4)\n*/\n\n#include\t\"FP_types.h\"\n\nvoid\nfef4(r,s1)\nSINGLE\ts1;\nstruct fef4_returns\t*r;\n{\n\tEXTEND\tbuf;\n\tregister struct fef4_returns\t*p = r;\t/* make copy; r might refer\n\t\t\t\t\t\t to itself (see table)\n\t\t\t\t\t\t*/\n\n\textend(&s1,&buf,sizeof(SINGLE));\n\tif (buf.exp == 0 && buf.m1 == 0 && buf.m2 == 0) {\n\t\tp->e = 0;\n\t}\n\telse {\n\t\tp->e = buf.exp+1;\n\t\tbuf.exp = -1;\n\t}\n\tcompact(&buf,&p->f,sizeof(SINGLE));\n}\n"}
80,721
c
#pragma once #include "bwContext.h" #include "bwEventDispatcher.h" namespace bWidgets { namespace bwScreenGraph { class Node; class LayoutNode; class ScreenGraph { public: template<typename _NodeType> ScreenGraph(std::unique_ptr<_NodeType> _root_node) : event_dispatcher(*this), root_node(std::move(_root_node)) { } auto Root() const -> LayoutNode& { return *root_node; } /** The context describing the state of this screen-graph */ bwContext context; bwEventDispatcher event_dispatcher; private: std::unique_ptr<LayoutNode> root_node; }; } // namespace bwScreenGraph } // namespace bWidgets
23.15
26
(translation_unit) "#pragma once\n\n#include "bwContext.h"\n#include "bwEventDispatcher.h"\n\nnamespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n} // namespace bwScreenGraph\n} // namespace bWidgets\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "bwContext.h"\n" (#include) "#include" (string_literal) ""bwContext.h"" (") """ (string_content) "bwContext.h" (") """ (preproc_include) "#include "bwEventDispatcher.h"\n" (#include) "#include" (string_literal) ""bwEventDispatcher.h"" (") """ (string_content) "bwEventDispatcher.h" (") """ (function_definition) "namespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n} // namespace bwScreenGraph\n}" (type_identifier) "namespace" (identifier) "bWidgets" (compound_statement) "{\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n} // namespace bwScreenGraph\n}" ({) "{" (function_definition) "namespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n}" (type_identifier) "namespace" (identifier) "bwScreenGraph" (compound_statement) "{\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n}" ({) "{" (declaration) "class Node;" (type_identifier) "class" (identifier) "Node" (;) ";" (declaration) "class LayoutNode;" (type_identifier) "class" (identifier) "LayoutNode" (;) ";" (function_definition) "class ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n}" (type_identifier) "class" (identifier) "ScreenGraph" (compound_statement) "{\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n}" ({) "{" (labeled_statement) "public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))" (statement_identifier) "public" (ERROR) ":\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)" (:) ":" (binary_expression) "template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)" (binary_expression) "template<typename _NodeType" (identifier) "template" (<) "<" (ERROR) "typename" (identifier) "typename" (identifier) "_NodeType" (>) ">" (call_expression) "ScreenGraph(std::unique_ptr<_NodeType> _root_node)" (identifier) "ScreenGraph" (argument_list) "(std::unique_ptr<_NodeType> _root_node)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "unique_ptr<_NodeType> _root_node" (binary_expression) "unique_ptr<_NodeType" (identifier) "unique_ptr" (<) "<" (identifier) "_NodeType" (>) ">" (identifier) "_root_node" ()) ")" (:) ":" (expression_statement) "event_dispatcher(*this), root_node(std::move(_root_node))" (comma_expression) "event_dispatcher(*this), root_node(std::move(_root_node))" (call_expression) "event_dispatcher(*this)" (identifier) "event_dispatcher" (argument_list) "(*this)" (() "(" (pointer_expression) "*this" (*) "*" (identifier) "this" ()) ")" (,) "," (call_expression) "root_node(std::move(_root_node))" (identifier) "root_node" (argument_list) "(std::move(_root_node))" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (call_expression) "move(_root_node)" (identifier) "move" (argument_list) "(_root_node)" (() "(" (identifier) "_root_node" ()) ")" ()) ")" (;) "" (compound_statement) "{\n }" ({) "{" (}) "}" (ERROR) "auto Root() const -> LayoutNode&" (storage_class_specifier) "auto" (auto) "auto" (identifier) "Root" (() "(" (ERROR) ")" ()) ")" (type_descriptor) "const -> LayoutNode" (type_qualifier) "const" (const) "const" (ERROR) "->" (->) "->" (type_identifier) "LayoutNode" (&) "&" (compound_statement) "{\n return *root_node;\n }" ({) "{" (return_statement) "return *root_node;" (return) "return" (pointer_expression) "*root_node" (*) "*" (identifier) "root_node" (;) ";" (}) "}" (comment) "/** The context describing the state of this screen-graph */" (declaration) "bwContext context;" (type_identifier) "bwContext" (identifier) "context" (;) ";" (declaration) "bwEventDispatcher event_dispatcher;" (type_identifier) "bwEventDispatcher" (identifier) "event_dispatcher" (;) ";" (labeled_statement) "private:\n std::unique_ptr<LayoutNode> root_node;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::unique_ptr<LayoutNode> root_node;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unique_ptr<LayoutNode> root_node;" (binary_expression) "unique_ptr<LayoutNode> root_node" (binary_expression) "unique_ptr<LayoutNode" (identifier) "unique_ptr" (<) "<" (identifier) "LayoutNode" (>) ">" (identifier) "root_node" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace bwScreenGraph" (}) "}" (comment) "// namespace bWidgets"
154
8
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 23.15, "nodes": 85, "errors": 0, "source_hash": "4fefe737968522bf620a553e953151c3a018242d4bb87578b10cd6895f456120", "categorized_nodes": 61}, "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 \"bwContext.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": "\"bwContext.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"bwEventDispatcher.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": "\"bwEventDispatcher.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 30}}, {"id": 9, "type": "function_definition", "text": "namespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n} // namespace bwScreenGraph\n}", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 9}}, {"id": 11, "type": "identifier", "text": "bWidgets", "parent": 9, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 18}}, {"id": 12, "type": "function_definition", "text": "namespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n}", "parent": 9, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 32, "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": "bwScreenGraph", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 23}}, {"id": 15, "type": "declaration", "text": "class Node;", "parent": 12, "children": [16], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 11}}, {"id": 16, "type": "identifier", "text": "Node", "parent": 15, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 10}}, {"id": 17, "type": "declaration", "text": "class LayoutNode;", "parent": 12, "children": [18], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 17}}, {"id": 18, "type": "identifier", "text": "LayoutNode", "parent": 17, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 16}}, {"id": 19, "type": "function_definition", "text": "class ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n}", "parent": 12, "children": [20], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 20, "type": "identifier", "text": "ScreenGraph", "parent": 19, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 17}}, {"id": 21, "type": "labeled_statement", "text": "public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))", "parent": 19, "children": [22], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 15, "column": 65}}, {"id": 22, "type": "ERROR", "text": ":\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)", "parent": 21, "children": [23], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 14, "column": 52}}, {"id": 23, "type": "binary_expression", "text": "template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)", "parent": 22, "children": [24, 30, 31], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 14, "column": 52}}, {"id": 24, "type": "binary_expression", "text": "template<typename _NodeType", "parent": 23, "children": [25, 26, 27, 29], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 29}}, {"id": 25, "type": "identifier", "text": "template", "parent": 24, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 10}}, {"id": 26, "type": "<", "text": "<", "parent": 24, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 27, "type": "ERROR", "text": "typename", "parent": 24, "children": [28], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 28, "type": "identifier", "text": "typename", "parent": 27, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 19}}, {"id": 29, "type": "identifier", "text": "_NodeType", "parent": 24, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 29}}, {"id": 30, "type": ">", "text": ">", "parent": 23, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 30}}, {"id": 31, "type": "call_expression", "text": "ScreenGraph(std::unique_ptr<_NodeType> _root_node)", "parent": 23, "children": [32, 33], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 52}}, {"id": 32, "type": "identifier", "text": "ScreenGraph", "parent": 31, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 13}}, {"id": 33, "type": "argument_list", "text": "(std::unique_ptr<_NodeType> _root_node)", "parent": 31, "children": [34, 36], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 52}}, {"id": 34, "type": "ERROR", "text": "std::", "parent": 33, "children": [35], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 19}}, {"id": 35, "type": "identifier", "text": "std", "parent": 34, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 17}}, {"id": 36, "type": "binary_expression", "text": "unique_ptr<_NodeType> _root_node", "parent": 33, "children": [37, 41, 42], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 51}}, {"id": 37, "type": "binary_expression", "text": "unique_ptr<_NodeType", "parent": 36, "children": [38, 39, 40], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 39}}, {"id": 38, "type": "identifier", "text": "unique_ptr", "parent": 37, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 29}}, {"id": 39, "type": "<", "text": "<", "parent": 37, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 30}}, {"id": 40, "type": "identifier", "text": "_NodeType", "parent": 37, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 39}}, {"id": 41, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 40}}, {"id": 42, "type": "identifier", "text": "_root_node", "parent": 36, "children": [], "start_point": {"row": 14, "column": 41}, "end_point": {"row": 14, "column": 51}}, {"id": 43, "type": "comma_expression", "text": "event_dispatcher(*this), root_node(std::move(_root_node))", "parent": 21, "children": [44, 50], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 65}}, {"id": 44, "type": "call_expression", "text": "event_dispatcher(*this)", "parent": 43, "children": [45, 46], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 31}}, {"id": 45, "type": "identifier", "text": "event_dispatcher", "parent": 44, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 24}}, {"id": 46, "type": "argument_list", "text": "(*this)", "parent": 44, "children": [47], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 31}}, {"id": 47, "type": "pointer_expression", "text": "*this", "parent": 46, "children": [48, 49], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 30}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 49, "type": "identifier", "text": "this", "parent": 47, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 30}}, {"id": 50, "type": "call_expression", "text": "root_node(std::move(_root_node))", "parent": 43, "children": [51, 52], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 65}}, {"id": 51, "type": "identifier", "text": "root_node", "parent": 50, "children": [], "start_point": {"row": 15, "column": 33}, "end_point": {"row": 15, "column": 42}}, {"id": 52, "type": "argument_list", "text": "(std::move(_root_node))", "parent": 50, "children": [53, 55], "start_point": {"row": 15, "column": 42}, "end_point": {"row": 15, "column": 65}}, {"id": 53, "type": "ERROR", "text": "std::", "parent": 52, "children": [54], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 48}}, {"id": 54, "type": "identifier", "text": "std", "parent": 53, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 46}}, {"id": 55, "type": "call_expression", "text": "move(_root_node)", "parent": 52, "children": [56, 57], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 64}}, {"id": 56, "type": "identifier", "text": "move", "parent": 55, "children": [], "start_point": {"row": 15, "column": 48}, "end_point": {"row": 15, "column": 52}}, {"id": 57, "type": "argument_list", "text": "(_root_node)", "parent": 55, "children": [58], "start_point": {"row": 15, "column": 52}, "end_point": {"row": 15, "column": 64}}, {"id": 58, "type": "identifier", "text": "_root_node", "parent": 57, "children": [], "start_point": {"row": 15, "column": 53}, "end_point": {"row": 15, "column": 63}}, {"id": 59, "type": "ERROR", "text": "auto Root() const -> LayoutNode&", "parent": 19, "children": [60, 62, 63], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 34}}, {"id": 60, "type": "storage_class_specifier", "text": "auto", "parent": 59, "children": [61], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 6}}, {"id": 61, "type": "auto", "text": "auto", "parent": 60, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 6}}, {"id": 62, "type": "identifier", "text": "Root", "parent": 59, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 11}}, {"id": 63, "type": "type_descriptor", "text": "const -> LayoutNode", "parent": 59, "children": [64], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 33}}, {"id": 64, "type": "type_identifier", "text": "LayoutNode", "parent": 63, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 33}}, {"id": 65, "type": "return_statement", "text": "return *root_node;", "parent": 19, "children": [66], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 22}}, {"id": 66, "type": "pointer_expression", "text": "*root_node", "parent": 65, "children": [67, 68], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 21}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 12}}, {"id": 68, "type": "identifier", "text": "root_node", "parent": 66, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 21}}, {"id": 69, "type": "declaration", "text": "bwContext context;", "parent": 19, "children": [70, 71], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 20}}, {"id": 70, "type": "type_identifier", "text": "bwContext", "parent": 69, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 11}}, {"id": 71, "type": "identifier", "text": "context", "parent": 69, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 19}}, {"id": 72, "type": "declaration", "text": "bwEventDispatcher event_dispatcher;", "parent": 19, "children": [73, 74], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 37}}, {"id": 73, "type": "type_identifier", "text": "bwEventDispatcher", "parent": 72, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 19}}, {"id": 74, "type": "identifier", "text": "event_dispatcher", "parent": 72, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 36}}, {"id": 75, "type": "labeled_statement", "text": "private:\n std::unique_ptr<LayoutNode> root_node;", "parent": 19, "children": [76], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 40}}, {"id": 76, "type": "labeled_statement", "text": "std::unique_ptr<LayoutNode> root_node;", "parent": 75, "children": [77], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 40}}, {"id": 77, "type": "statement_identifier", "text": "std", "parent": 76, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 78, "type": "binary_expression", "text": "unique_ptr<LayoutNode> root_node", "parent": 76, "children": [79, 83, 84], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 39}}, {"id": 79, "type": "binary_expression", "text": "unique_ptr<LayoutNode", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 28}}, {"id": 80, "type": "identifier", "text": "unique_ptr", "parent": 79, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 17}}, {"id": 81, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 82, "type": "identifier", "text": "LayoutNode", "parent": 79, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 28}}, {"id": 83, "type": ">", "text": ">", "parent": 78, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 29}}, {"id": 84, "type": "identifier", "text": "root_node", "parent": 78, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 39}}]}, "node_categories": {"declarations": {"functions": [9, 12, 19], "variables": [15, 17, 69, 72], "classes": [60], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [23, 24, 31, 36, 37, 43, 44, 47, 50, 55, 66, 78, 79], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 14, 16, 18, 20, 25, 28, 29, 32, 35, 38, 40, 42, 45, 49, 51, 54, 56, 58, 62, 64, 68, 70, 71, 73, 74, 77, 80, 82, 84], "returns": [65], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Node;", "text_snippet": "namespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n "}, {"node_id": 12, "universal_type": "function", "name": "Node;", "text_snippet": "namespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<ty"}, {"node_id": 19, "universal_type": "function", "name": "ScreenGraph", "text_snippet": "class ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType>"}], "class_declarations": [{"node_id": 60, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 3, "text": "#include \"bwContext.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"bwEventDispatcher.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"bwContext.h\"\n#include \"bwEventDispatcher.h\"\n\nnamespace bWidgets {\nnamespace bwScreenGraph {\n\nclass Node;\nclass LayoutNode;\n\nclass ScreenGraph {\n public:\n template<typename _NodeType>\n ScreenGraph(std::unique_ptr<_NodeType> _root_node)\n : event_dispatcher(*this), root_node(std::move(_root_node))\n {\n }\n\n auto Root() const -> LayoutNode&\n {\n return *root_node;\n }\n\n /** The context describing the state of this screen-graph */\n bwContext context;\n bwEventDispatcher event_dispatcher;\n\n private:\n std::unique_ptr<LayoutNode> root_node;\n};\n\n} // namespace bwScreenGraph\n} // namespace bWidgets\n"}
80,722
c
/* * src/nf-ct-list.c List Conntrack Entries * * 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 version 2.1 * of the License. * * Copyright (c) 2003-2009 <NAME> <<EMAIL>> * Copyright (c) 2007 <NAME> <<EMAIL>> * Copyright (c) 2007 Secure Computing Corporation */ #include <linux/netlink.h> #include <netlink/cli/ct.h> #include <netlink/cli/utils.h> static void print_usage(void) { printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n" "\n" "Options\n" " -f, --format=TYPE Output format { brief | details | stats }\n" " -h, --help Show this help\n" " -v, --version Show versioning information\n" "\n" "Conntrack Selection\n" " -i, --id=NUM Identifier\n" " -p, --proto=PROTOCOL Protocol\n" " --tcp-state=STATE TCP connection state\n" " --orig-src=ADDR Original source address\n" " --orig-sport=PORT Original source port\n" " --orig-dst=ADDR Original destination address\n" " --orig-dport=PORT Original destination port\n" " --reply-src=ADDR Reply source address\n" " --reply-sport=PORT Reply source port\n" " --reply-dst=ADDR Reply destination address\n" " --reply-dport=PORT Reply destination port\n" " -F, --family=FAMILY Address family\n" " --mark=NUM Mark value\n" " --timeout=NUM Timeout value\n" " --refcnt=NUM Use counter value\n" " --flags Flags\n"); exit(0); } int main(int argc, char* argv[]) { struct nl_sock* sock; struct nl_cache* ct_cache; struct nfnl_ct* ct; struct nl_dump_params params = { .dp_type = NL_DUMP_LINE, .dp_fd = stdout, }; ct = nl_cli_ct_alloc(); for (;;) { int c, optidx = 0; enum { ARG_MARK = 257, ARG_TCP_STATE = 258, ARG_ORIG_SRC, ARG_ORIG_SPORT, ARG_ORIG_DST, ARG_ORIG_DPORT, ARG_REPLY_SRC, ARG_REPLY_SPORT, ARG_REPLY_DST, ARG_REPLY_DPORT, ARG_TIMEOUT, ARG_REFCNT, ARG_FLAGS, }; static struct option long_opts[] = { {"format", 1, 0, 'f'}, {"help", 0, 0, 'h'}, {"version", 0, 0, 'v'}, {"id", 1, 0, 'i'}, {"proto", 1, 0, 'p'}, {"tcp-state", 1, 0, ARG_TCP_STATE}, {"orig-src", 1, 0, ARG_ORIG_SRC}, {"orig-sport", 1, 0, ARG_ORIG_SPORT}, {"orig-dst", 1, 0, ARG_ORIG_DST}, {"orig-dport", 1, 0, ARG_ORIG_DPORT}, {"reply-src", 1, 0, ARG_REPLY_SRC}, {"reply-sport", 1, 0, ARG_REPLY_SPORT}, {"reply-dst", 1, 0, ARG_REPLY_DST}, {"reply-dport", 1, 0, ARG_REPLY_DPORT}, {"family", 1, 0, 'F'}, {"mark", 1, 0, ARG_MARK}, {"timeout", 1, 0, ARG_TIMEOUT}, {"refcnt", 1, 0, ARG_REFCNT}, {0, 0, 0, 0}}; c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx); if (c == -1) break; switch (c) { case '?': exit(NLE_INVAL); case '4': nfnl_ct_set_family(ct, AF_INET); break; case '6': nfnl_ct_set_family(ct, AF_INET6); break; case 'f': params.dp_type = nl_cli_parse_dumptype(optarg); break; case 'h': print_usage(); break; case 'v': nl_cli_print_version(); break; case 'i': nl_cli_ct_parse_id(ct, optarg); break; case 'p': nl_cli_ct_parse_protocol(ct, optarg); break; case ARG_TCP_STATE: nl_cli_ct_parse_tcp_state(ct, optarg); break; case ARG_ORIG_SRC: nl_cli_ct_parse_src(ct, 0, optarg); break; case ARG_ORIG_SPORT: nl_cli_ct_parse_src_port(ct, 0, optarg); break; case ARG_ORIG_DST: nl_cli_ct_parse_dst(ct, 0, optarg); break; case ARG_ORIG_DPORT: nl_cli_ct_parse_dst_port(ct, 0, optarg); break; case ARG_REPLY_SRC: nl_cli_ct_parse_src(ct, 1, optarg); break; case ARG_REPLY_SPORT: nl_cli_ct_parse_src_port(ct, 1, optarg); break; case ARG_REPLY_DST: nl_cli_ct_parse_dst(ct, 1, optarg); break; case ARG_REPLY_DPORT: nl_cli_ct_parse_dst_port(ct, 1, optarg); break; case 'F': nl_cli_ct_parse_family(ct, optarg); break; case ARG_MARK: nl_cli_ct_parse_mark(ct, optarg); break; case ARG_TIMEOUT: nl_cli_ct_parse_timeout(ct, optarg); break; case ARG_REFCNT: nl_cli_ct_parse_use(ct, optarg); break; case ARG_FLAGS: nl_cli_ct_parse_status(ct, optarg); break; } } sock = nl_cli_alloc_socket(); nl_cli_connect(sock, NETLINK_NETFILTER); ct_cache = nl_cli_ct_alloc_cache(sock); nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct)); return 0; }
33.74
170
(translation_unit) "/*\n * src/nf-ct-list.c List Conntrack Entries\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 version 2.1\n * of the License.\n *\n * Copyright (c) 2003-2009 <NAME> <<EMAIL>>\n * Copyright (c) 2007 <NAME> <<EMAIL>>\n * Copyright (c) 2007 Secure Computing Corporation\n */\n\n#include <linux/netlink.h>\n#include <netlink/cli/ct.h>\n#include <netlink/cli/utils.h>\n\nstatic void print_usage(void)\n{\n printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n");\n exit(0);\n}\n\nint main(int argc, char* argv[])\n{\n struct nl_sock* sock;\n struct nl_cache* ct_cache;\n struct nfnl_ct* ct;\n struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };\n\n ct = nl_cli_ct_alloc();\n\n for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }\n\n sock = nl_cli_alloc_socket();\n nl_cli_connect(sock, NETLINK_NETFILTER);\n ct_cache = nl_cli_ct_alloc_cache(sock);\n\n nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));\n\n return 0;\n}\n" (comment) "/*\n * src/nf-ct-list.c List Conntrack Entries\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 version 2.1\n * of the License.\n *\n * Copyright (c) 2003-2009 <NAME> <<EMAIL>>\n * Copyright (c) 2007 <NAME> <<EMAIL>>\n * Copyright (c) 2007 Secure Computing Corporation\n */" (preproc_include) "#include <linux/netlink.h>\n" (#include) "#include" (system_lib_string) "<linux/netlink.h>" (preproc_include) "#include <netlink/cli/ct.h>\n" (#include) "#include" (system_lib_string) "<netlink/cli/ct.h>" (preproc_include) "#include <netlink/cli/utils.h>\n" (#include) "#include" (system_lib_string) "<netlink/cli/utils.h>" (function_definition) "static void print_usage(void)\n{\n printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n");\n exit(0);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "print_usage(void)" (identifier) "print_usage" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n");\n exit(0);\n}" ({) "{" (expression_statement) "printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n");" (call_expression) "printf("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n")" (identifier) "printf" (argument_list) "("Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n")" (() "(" (concatenated_string) ""Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"\n "\n"\n "Options\n"\n " -f, --format=TYPE Output format { brief | details | stats }\n"\n " -h, --help Show this help\n"\n " -v, --version Show versioning information\n"\n "\n"\n "Conntrack Selection\n"\n " -i, --id=NUM Identifier\n"\n " -p, --proto=PROTOCOL Protocol\n"\n " --tcp-state=STATE TCP connection state\n"\n " --orig-src=ADDR Original source address\n"\n " --orig-sport=PORT Original source port\n"\n " --orig-dst=ADDR Original destination address\n"\n " --orig-dport=PORT Original destination port\n"\n " --reply-src=ADDR Reply source address\n"\n " --reply-sport=PORT Reply source port\n"\n " --reply-dst=ADDR Reply destination address\n"\n " --reply-dport=PORT Reply destination port\n"\n " -F, --family=FAMILY Address family\n"\n " --mark=NUM Mark value\n"\n " --timeout=NUM Timeout value\n"\n " --refcnt=NUM Use counter value\n"\n " --flags Flags\n"" (string_literal) ""Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\n"" (") """ (string_content) "Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]" (escape_sequence) "\n" (") """ (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (string_literal) ""Options\n"" (") """ (string_content) "Options" (escape_sequence) "\n" (") """ (string_literal) "" -f, --format=TYPE Output format { brief | details | stats }\n"" (") """ (string_content) " -f, --format=TYPE Output format { brief | details | stats }" (escape_sequence) "\n" (") """ (string_literal) "" -h, --help Show this help\n"" (") """ (string_content) " -h, --help Show this help" (escape_sequence) "\n" (") """ (string_literal) "" -v, --version Show versioning information\n"" (") """ (string_content) " -v, --version Show versioning information" (escape_sequence) "\n" (") """ (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (string_literal) ""Conntrack Selection\n"" (") """ (string_content) "Conntrack Selection" (escape_sequence) "\n" (") """ (string_literal) "" -i, --id=NUM Identifier\n"" (") """ (string_content) " -i, --id=NUM Identifier" (escape_sequence) "\n" (") """ (string_literal) "" -p, --proto=PROTOCOL Protocol\n"" (") """ (string_content) " -p, --proto=PROTOCOL Protocol" (escape_sequence) "\n" (") """ (string_literal) "" --tcp-state=STATE TCP connection state\n"" (") """ (string_content) " --tcp-state=STATE TCP connection state" (escape_sequence) "\n" (") """ (string_literal) "" --orig-src=ADDR Original source address\n"" (") """ (string_content) " --orig-src=ADDR Original source address" (escape_sequence) "\n" (") """ (string_literal) "" --orig-sport=PORT Original source port\n"" (") """ (string_content) " --orig-sport=PORT Original source port" (escape_sequence) "\n" (") """ (string_literal) "" --orig-dst=ADDR Original destination address\n"" (") """ (string_content) " --orig-dst=ADDR Original destination address" (escape_sequence) "\n" (") """ (string_literal) "" --orig-dport=PORT Original destination port\n"" (") """ (string_content) " --orig-dport=PORT Original destination port" (escape_sequence) "\n" (") """ (string_literal) "" --reply-src=ADDR Reply source address\n"" (") """ (string_content) " --reply-src=ADDR Reply source address" (escape_sequence) "\n" (") """ (string_literal) "" --reply-sport=PORT Reply source port\n"" (") """ (string_content) " --reply-sport=PORT Reply source port" (escape_sequence) "\n" (") """ (string_literal) "" --reply-dst=ADDR Reply destination address\n"" (") """ (string_content) " --reply-dst=ADDR Reply destination address" (escape_sequence) "\n" (") """ (string_literal) "" --reply-dport=PORT Reply destination port\n"" (") """ (string_content) " --reply-dport=PORT Reply destination port" (escape_sequence) "\n" (") """ (string_literal) "" -F, --family=FAMILY Address family\n"" (") """ (string_content) " -F, --family=FAMILY Address family" (escape_sequence) "\n" (") """ (string_literal) "" --mark=NUM Mark value\n"" (") """ (string_content) " --mark=NUM Mark value" (escape_sequence) "\n" (") """ (string_literal) "" --timeout=NUM Timeout value\n"" (") """ (string_content) " --timeout=NUM Timeout value" (escape_sequence) "\n" (") """ (string_literal) "" --refcnt=NUM Use counter value\n"" (") """ (string_content) " --refcnt=NUM Use counter value" (escape_sequence) "\n" (") """ (string_literal) "" --flags Flags\n"" (") """ (string_content) " --flags Flags" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "int main(int argc, char* argv[])\n{\n struct nl_sock* sock;\n struct nl_cache* ct_cache;\n struct nfnl_ct* ct;\n struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };\n\n ct = nl_cli_ct_alloc();\n\n for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }\n\n sock = nl_cli_alloc_socket();\n nl_cli_connect(sock, NETLINK_NETFILTER);\n ct_cache = nl_cli_ct_alloc_cache(sock);\n\n nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));\n\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 struct nl_sock* sock;\n struct nl_cache* ct_cache;\n struct nfnl_ct* ct;\n struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };\n\n ct = nl_cli_ct_alloc();\n\n for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }\n\n sock = nl_cli_alloc_socket();\n nl_cli_connect(sock, NETLINK_NETFILTER);\n ct_cache = nl_cli_ct_alloc_cache(sock);\n\n nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));\n\n return 0;\n}" ({) "{" (declaration) "struct nl_sock* sock;" (struct_specifier) "struct nl_sock" (struct) "struct" (type_identifier) "nl_sock" (pointer_declarator) "* sock" (*) "*" (identifier) "sock" (;) ";" (declaration) "struct nl_cache* ct_cache;" (struct_specifier) "struct nl_cache" (struct) "struct" (type_identifier) "nl_cache" (pointer_declarator) "* ct_cache" (*) "*" (identifier) "ct_cache" (;) ";" (declaration) "struct nfnl_ct* ct;" (struct_specifier) "struct nfnl_ct" (struct) "struct" (type_identifier) "nfnl_ct" (pointer_declarator) "* ct" (*) "*" (identifier) "ct" (;) ";" (declaration) "struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };" (struct_specifier) "struct nl_dump_params" (struct) "struct" (type_identifier) "nl_dump_params" (init_declarator) "params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n }" (identifier) "params" (=) "=" (initializer_list) "{\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n }" ({) "{" (initializer_pair) ".dp_type = NL_DUMP_LINE" (field_designator) ".dp_type" (.) "." (field_identifier) "dp_type" (=) "=" (identifier) "NL_DUMP_LINE" (,) "," (initializer_pair) ".dp_fd = stdout" (field_designator) ".dp_fd" (.) "." (field_identifier) "dp_fd" (=) "=" (identifier) "stdout" (,) "," (}) "}" (;) ";" (expression_statement) "ct = nl_cli_ct_alloc();" (assignment_expression) "ct = nl_cli_ct_alloc()" (identifier) "ct" (=) "=" (call_expression) "nl_cli_ct_alloc()" (identifier) "nl_cli_ct_alloc" (argument_list) "()" (() "(" ()) ")" (;) ";" (for_statement) "for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }" (for) "for" (() "(" (;) ";" (;) ";" ()) ")" (compound_statement) "{\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }" ({) "{" (declaration) "int c, optidx = 0;" (primitive_type) "int" (identifier) "c" (,) "," (init_declarator) "optidx = 0" (identifier) "optidx" (=) "=" (number_literal) "0" (;) ";" (enum_specifier) "enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n }" (enum) "enum" (enumerator_list) "{\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n }" ({) "{" (enumerator) "ARG_MARK = 257" (identifier) "ARG_MARK" (=) "=" (number_literal) "257" (,) "," (enumerator) "ARG_TCP_STATE = 258" (identifier) "ARG_TCP_STATE" (=) "=" (number_literal) "258" (,) "," (enumerator) "ARG_ORIG_SRC" (identifier) "ARG_ORIG_SRC" (,) "," (enumerator) "ARG_ORIG_SPORT" (identifier) "ARG_ORIG_SPORT" (,) "," (enumerator) "ARG_ORIG_DST" (identifier) "ARG_ORIG_DST" (,) "," (enumerator) "ARG_ORIG_DPORT" (identifier) "ARG_ORIG_DPORT" (,) "," (enumerator) "ARG_REPLY_SRC" (identifier) "ARG_REPLY_SRC" (,) "," (enumerator) "ARG_REPLY_SPORT" (identifier) "ARG_REPLY_SPORT" (,) "," (enumerator) "ARG_REPLY_DST" (identifier) "ARG_REPLY_DST" (,) "," (enumerator) "ARG_REPLY_DPORT" (identifier) "ARG_REPLY_DPORT" (,) "," (enumerator) "ARG_TIMEOUT" (identifier) "ARG_TIMEOUT" (,) "," (enumerator) "ARG_REFCNT" (identifier) "ARG_REFCNT" (,) "," (enumerator) "ARG_FLAGS" (identifier) "ARG_FLAGS" (,) "," (}) "}" (;) ";" (declaration) "static struct option long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};" (storage_class_specifier) "static" (static) "static" (struct_specifier) "struct option" (struct) "struct" (type_identifier) "option" (init_declarator) "long_opts[] = {\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}}" (array_declarator) "long_opts[]" (identifier) "long_opts" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"format", 1, 0, 'f'},\n {"help", 0, 0, 'h'},\n {"version", 0, 0, 'v'},\n {"id", 1, 0, 'i'},\n {"proto", 1, 0, 'p'},\n {"tcp-state", 1, 0, ARG_TCP_STATE},\n {"orig-src", 1, 0, ARG_ORIG_SRC},\n {"orig-sport", 1, 0, ARG_ORIG_SPORT},\n {"orig-dst", 1, 0, ARG_ORIG_DST},\n {"orig-dport", 1, 0, ARG_ORIG_DPORT},\n {"reply-src", 1, 0, ARG_REPLY_SRC},\n {"reply-sport", 1, 0, ARG_REPLY_SPORT},\n {"reply-dst", 1, 0, ARG_REPLY_DST},\n {"reply-dport", 1, 0, ARG_REPLY_DPORT},\n {"family", 1, 0, 'F'},\n {"mark", 1, 0, ARG_MARK},\n {"timeout", 1, 0, ARG_TIMEOUT},\n {"refcnt", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}}" ({) "{" (initializer_list) "{"format", 1, 0, 'f'}" ({) "{" (string_literal) ""format"" (") """ (string_content) "format" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (char_literal) "'f'" (') "'" (character) "f" (') "'" (}) "}" (,) "," (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) "{"version", 0, 0, 'v'}" ({) "{" (string_literal) ""version"" (") """ (string_content) "version" (") """ (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (char_literal) "'v'" (') "'" (character) "v" (') "'" (}) "}" (,) "," (initializer_list) "{"id", 1, 0, 'i'}" ({) "{" (string_literal) ""id"" (") """ (string_content) "id" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (char_literal) "'i'" (') "'" (character) "i" (') "'" (}) "}" (,) "," (initializer_list) "{"proto", 1, 0, 'p'}" ({) "{" (string_literal) ""proto"" (") """ (string_content) "proto" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (char_literal) "'p'" (') "'" (character) "p" (') "'" (}) "}" (,) "," (initializer_list) "{"tcp-state", 1, 0, ARG_TCP_STATE}" ({) "{" (string_literal) ""tcp-state"" (") """ (string_content) "tcp-state" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_TCP_STATE" (}) "}" (,) "," (initializer_list) "{"orig-src", 1, 0, ARG_ORIG_SRC}" ({) "{" (string_literal) ""orig-src"" (") """ (string_content) "orig-src" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_ORIG_SRC" (}) "}" (,) "," (initializer_list) "{"orig-sport", 1, 0, ARG_ORIG_SPORT}" ({) "{" (string_literal) ""orig-sport"" (") """ (string_content) "orig-sport" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_ORIG_SPORT" (}) "}" (,) "," (initializer_list) "{"orig-dst", 1, 0, ARG_ORIG_DST}" ({) "{" (string_literal) ""orig-dst"" (") """ (string_content) "orig-dst" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_ORIG_DST" (}) "}" (,) "," (initializer_list) "{"orig-dport", 1, 0, ARG_ORIG_DPORT}" ({) "{" (string_literal) ""orig-dport"" (") """ (string_content) "orig-dport" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_ORIG_DPORT" (}) "}" (,) "," (initializer_list) "{"reply-src", 1, 0, ARG_REPLY_SRC}" ({) "{" (string_literal) ""reply-src"" (") """ (string_content) "reply-src" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_REPLY_SRC" (}) "}" (,) "," (initializer_list) "{"reply-sport", 1, 0, ARG_REPLY_SPORT}" ({) "{" (string_literal) ""reply-sport"" (") """ (string_content) "reply-sport" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_REPLY_SPORT" (}) "}" (,) "," (initializer_list) "{"reply-dst", 1, 0, ARG_REPLY_DST}" ({) "{" (string_literal) ""reply-dst"" (") """ (string_content) "reply-dst" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_REPLY_DST" (}) "}" (,) "," (initializer_list) "{"reply-dport", 1, 0, ARG_REPLY_DPORT}" ({) "{" (string_literal) ""reply-dport"" (") """ (string_content) "reply-dport" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_REPLY_DPORT" (}) "}" (,) "," (initializer_list) "{"family", 1, 0, 'F'}" ({) "{" (string_literal) ""family"" (") """ (string_content) "family" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (char_literal) "'F'" (') "'" (character) "F" (') "'" (}) "}" (,) "," (initializer_list) "{"mark", 1, 0, ARG_MARK}" ({) "{" (string_literal) ""mark"" (") """ (string_content) "mark" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_MARK" (}) "}" (,) "," (initializer_list) "{"timeout", 1, 0, ARG_TIMEOUT}" ({) "{" (string_literal) ""timeout"" (") """ (string_content) "timeout" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_TIMEOUT" (}) "}" (,) "," (initializer_list) "{"refcnt", 1, 0, ARG_REFCNT}" ({) "{" (string_literal) ""refcnt"" (") """ (string_content) "refcnt" (") """ (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (identifier) "ARG_REFCNT" (}) "}" (,) "," (initializer_list) "{0, 0, 0, 0}" ({) "{" (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (}) "}" (;) ";" (expression_statement) "c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx);" (assignment_expression) "c = getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx)" (identifier) "c" (=) "=" (call_expression) "getopt_long(argc, argv, "46f:hvi:p:F:", long_opts, &optidx)" (identifier) "getopt_long" (argument_list) "(argc, argv, "46f:hvi:p:F:", long_opts, &optidx)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" (,) "," (string_literal) ""46f:hvi:p:F:"" (") """ (string_content) "46f:hvi:p:F:" (") """ (,) "," (identifier) "long_opts" (,) "," (pointer_expression) "&optidx" (&) "&" (identifier) "optidx" ()) ")" (;) ";" (if_statement) "if (c == -1)\n break;" (if) "if" (parenthesized_expression) "(c == -1)" (() "(" (binary_expression) "c == -1" (identifier) "c" (==) "==" (number_literal) "-1" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (switch_statement) "switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }" (switch) "switch" (parenthesized_expression) "(c)" (() "(" (identifier) "c" ()) ")" (compound_statement) "{\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }" ({) "{" (case_statement) "case '?':\n exit(NLE_INVAL);" (case) "case" (char_literal) "'?'" (') "'" (character) "?" (') "'" (:) ":" (expression_statement) "exit(NLE_INVAL);" (call_expression) "exit(NLE_INVAL)" (identifier) "exit" (argument_list) "(NLE_INVAL)" (() "(" (identifier) "NLE_INVAL" ()) ")" (;) ";" (case_statement) "case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;" (case) "case" (char_literal) "'4'" (') "'" (character) "4" (') "'" (:) ":" (expression_statement) "nfnl_ct_set_family(ct, AF_INET);" (call_expression) "nfnl_ct_set_family(ct, AF_INET)" (identifier) "nfnl_ct_set_family" (argument_list) "(ct, AF_INET)" (() "(" (identifier) "ct" (,) "," (identifier) "AF_INET" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;" (case) "case" (char_literal) "'6'" (') "'" (character) "6" (') "'" (:) ":" (expression_statement) "nfnl_ct_set_family(ct, AF_INET6);" (call_expression) "nfnl_ct_set_family(ct, AF_INET6)" (identifier) "nfnl_ct_set_family" (argument_list) "(ct, AF_INET6)" (() "(" (identifier) "ct" (,) "," (identifier) "AF_INET6" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;" (case) "case" (char_literal) "'f'" (') "'" (character) "f" (') "'" (:) ":" (expression_statement) "params.dp_type = nl_cli_parse_dumptype(optarg);" (assignment_expression) "params.dp_type = nl_cli_parse_dumptype(optarg)" (field_expression) "params.dp_type" (identifier) "params" (.) "." (field_identifier) "dp_type" (=) "=" (call_expression) "nl_cli_parse_dumptype(optarg)" (identifier) "nl_cli_parse_dumptype" (argument_list) "(optarg)" (() "(" (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'h':\n print_usage();\n break;" (case) "case" (char_literal) "'h'" (') "'" (character) "h" (') "'" (:) ":" (expression_statement) "print_usage();" (call_expression) "print_usage()" (identifier) "print_usage" (argument_list) "()" (() "(" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'v':\n nl_cli_print_version();\n break;" (case) "case" (char_literal) "'v'" (') "'" (character) "v" (') "'" (:) ":" (expression_statement) "nl_cli_print_version();" (call_expression) "nl_cli_print_version()" (identifier) "nl_cli_print_version" (argument_list) "()" (() "(" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;" (case) "case" (char_literal) "'i'" (') "'" (character) "i" (') "'" (:) ":" (expression_statement) "nl_cli_ct_parse_id(ct, optarg);" (call_expression) "nl_cli_ct_parse_id(ct, optarg)" (identifier) "nl_cli_ct_parse_id" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;" (case) "case" (char_literal) "'p'" (') "'" (character) "p" (') "'" (:) ":" (expression_statement) "nl_cli_ct_parse_protocol(ct, optarg);" (call_expression) "nl_cli_ct_parse_protocol(ct, optarg)" (identifier) "nl_cli_ct_parse_protocol" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;" (case) "case" (identifier) "ARG_TCP_STATE" (:) ":" (expression_statement) "nl_cli_ct_parse_tcp_state(ct, optarg);" (call_expression) "nl_cli_ct_parse_tcp_state(ct, optarg)" (identifier) "nl_cli_ct_parse_tcp_state" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;" (case) "case" (identifier) "ARG_ORIG_SRC" (:) ":" (expression_statement) "nl_cli_ct_parse_src(ct, 0, optarg);" (call_expression) "nl_cli_ct_parse_src(ct, 0, optarg)" (identifier) "nl_cli_ct_parse_src" (argument_list) "(ct, 0, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "0" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;" (case) "case" (identifier) "ARG_ORIG_SPORT" (:) ":" (expression_statement) "nl_cli_ct_parse_src_port(ct, 0, optarg);" (call_expression) "nl_cli_ct_parse_src_port(ct, 0, optarg)" (identifier) "nl_cli_ct_parse_src_port" (argument_list) "(ct, 0, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "0" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;" (case) "case" (identifier) "ARG_ORIG_DST" (:) ":" (expression_statement) "nl_cli_ct_parse_dst(ct, 0, optarg);" (call_expression) "nl_cli_ct_parse_dst(ct, 0, optarg)" (identifier) "nl_cli_ct_parse_dst" (argument_list) "(ct, 0, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "0" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;" (case) "case" (identifier) "ARG_ORIG_DPORT" (:) ":" (expression_statement) "nl_cli_ct_parse_dst_port(ct, 0, optarg);" (call_expression) "nl_cli_ct_parse_dst_port(ct, 0, optarg)" (identifier) "nl_cli_ct_parse_dst_port" (argument_list) "(ct, 0, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "0" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;" (case) "case" (identifier) "ARG_REPLY_SRC" (:) ":" (expression_statement) "nl_cli_ct_parse_src(ct, 1, optarg);" (call_expression) "nl_cli_ct_parse_src(ct, 1, optarg)" (identifier) "nl_cli_ct_parse_src" (argument_list) "(ct, 1, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "1" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;" (case) "case" (identifier) "ARG_REPLY_SPORT" (:) ":" (expression_statement) "nl_cli_ct_parse_src_port(ct, 1, optarg);" (call_expression) "nl_cli_ct_parse_src_port(ct, 1, optarg)" (identifier) "nl_cli_ct_parse_src_port" (argument_list) "(ct, 1, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "1" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;" (case) "case" (identifier) "ARG_REPLY_DST" (:) ":" (expression_statement) "nl_cli_ct_parse_dst(ct, 1, optarg);" (call_expression) "nl_cli_ct_parse_dst(ct, 1, optarg)" (identifier) "nl_cli_ct_parse_dst" (argument_list) "(ct, 1, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "1" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;" (case) "case" (identifier) "ARG_REPLY_DPORT" (:) ":" (expression_statement) "nl_cli_ct_parse_dst_port(ct, 1, optarg);" (call_expression) "nl_cli_ct_parse_dst_port(ct, 1, optarg)" (identifier) "nl_cli_ct_parse_dst_port" (argument_list) "(ct, 1, optarg)" (() "(" (identifier) "ct" (,) "," (number_literal) "1" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;" (case) "case" (char_literal) "'F'" (') "'" (character) "F" (') "'" (:) ":" (expression_statement) "nl_cli_ct_parse_family(ct, optarg);" (call_expression) "nl_cli_ct_parse_family(ct, optarg)" (identifier) "nl_cli_ct_parse_family" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;" (case) "case" (identifier) "ARG_MARK" (:) ":" (expression_statement) "nl_cli_ct_parse_mark(ct, optarg);" (call_expression) "nl_cli_ct_parse_mark(ct, optarg)" (identifier) "nl_cli_ct_parse_mark" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;" (case) "case" (identifier) "ARG_TIMEOUT" (:) ":" (expression_statement) "nl_cli_ct_parse_timeout(ct, optarg);" (call_expression) "nl_cli_ct_parse_timeout(ct, optarg)" (identifier) "nl_cli_ct_parse_timeout" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;" (case) "case" (identifier) "ARG_REFCNT" (:) ":" (expression_statement) "nl_cli_ct_parse_use(ct, optarg);" (call_expression) "nl_cli_ct_parse_use(ct, optarg)" (identifier) "nl_cli_ct_parse_use" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;" (case) "case" (identifier) "ARG_FLAGS" (:) ":" (expression_statement) "nl_cli_ct_parse_status(ct, optarg);" (call_expression) "nl_cli_ct_parse_status(ct, optarg)" (identifier) "nl_cli_ct_parse_status" (argument_list) "(ct, optarg)" (() "(" (identifier) "ct" (,) "," (identifier) "optarg" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (expression_statement) "sock = nl_cli_alloc_socket();" (assignment_expression) "sock = nl_cli_alloc_socket()" (identifier) "sock" (=) "=" (call_expression) "nl_cli_alloc_socket()" (identifier) "nl_cli_alloc_socket" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "nl_cli_connect(sock, NETLINK_NETFILTER);" (call_expression) "nl_cli_connect(sock, NETLINK_NETFILTER)" (identifier) "nl_cli_connect" (argument_list) "(sock, NETLINK_NETFILTER)" (() "(" (identifier) "sock" (,) "," (identifier) "NETLINK_NETFILTER" ()) ")" (;) ";" (expression_statement) "ct_cache = nl_cli_ct_alloc_cache(sock);" (assignment_expression) "ct_cache = nl_cli_ct_alloc_cache(sock)" (identifier) "ct_cache" (=) "=" (call_expression) "nl_cli_ct_alloc_cache(sock)" (identifier) "nl_cli_ct_alloc_cache" (argument_list) "(sock)" (() "(" (identifier) "sock" ()) ")" (;) ";" (expression_statement) "nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));" (call_expression) "nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct))" (identifier) "nl_cache_dump_filter" (argument_list) "(ct_cache, &params, OBJ_CAST(ct))" (() "(" (identifier) "ct_cache" (,) "," (pointer_expression) "&params" (&) "&" (identifier) "params" (,) "," (call_expression) "OBJ_CAST(ct)" (identifier) "OBJ_CAST" (argument_list) "(ct)" (() "(" (identifier) "ct" ()) ")" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
1,112
0
{"language": "c", "success": true, "metadata": {"lines": 170, "avg_line_length": 33.74, "nodes": 600, "errors": 0, "source_hash": "5e087f89e234937bb7f5a83c59e3fbc31ed53d0447a5a42b9d5f946531ff039b", "categorized_nodes": 399}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <linux/netlink.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<linux/netlink.h>", "parent": 0, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 26}}, {"id": 3, "type": "preproc_include", "text": "#include <netlink/cli/ct.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<netlink/cli/ct.h>", "parent": 3, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <netlink/cli/utils.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<netlink/cli/utils.h>", "parent": 6, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 30}}, {"id": 9, "type": "function_definition", "text": "static void print_usage(void)\n{\n printf(\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n \"\\n\"\n \"Options\\n\"\n \" -f, --format=TYPE Output format { brief | details | stats }\\n\"\n \" -h, --help Show this help\\n\"\n \" -v, --version Show versioning information\\n\"\n \"\\n\"\n \"Conntrack Selection\\n\"\n \" -i, --id=NUM Identifier\\n\"\n \" -p, --proto=PROTOCOL Protocol\\n\"\n \" --tcp-state=STATE TCP connection state\\n\"\n \" --orig-src=ADDR Original source address\\n\"\n \" --orig-sport=PORT Original source port\\n\"\n \" --orig-dst=ADDR Original destination address\\n\"\n \" --orig-dport=PORT Original destination port\\n\"\n \" --reply-src=ADDR Reply source address\\n\"\n \" --reply-sport=PORT Reply source port\\n\"\n \" --reply-dst=ADDR Reply destination address\\n\"\n \" --reply-dport=PORT Reply destination port\\n\"\n \" -F, --family=FAMILY Address family\\n\"\n \" --mark=NUM Mark value\\n\"\n \" --timeout=NUM Timeout value\\n\"\n \" --refcnt=NUM Use counter value\\n\"\n \" --flags Flags\\n\");\n exit(0);\n}", "parent": null, "children": [10, 11], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 11, "type": "function_declarator", "text": "print_usage(void)", "parent": 9, "children": [12, 13], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 29}}, {"id": 12, "type": "identifier", "text": "print_usage", "parent": 11, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 23}}, {"id": 13, "type": "parameter_list", "text": "(void)", "parent": 11, "children": [14], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 29}}, {"id": 14, "type": "parameter_declaration", "text": "void", "parent": 13, "children": [15], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 28}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 28}}, {"id": 16, "type": "call_expression", "text": "printf(\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n \"\\n\"\n \"Options\\n\"\n \" -f, --format=TYPE Output format { brief | details | stats }\\n\"\n \" -h, --help Show this help\\n\"\n \" -v, --version Show versioning information\\n\"\n \"\\n\"\n \"Conntrack Selection\\n\"\n \" -i, --id=NUM Identifier\\n\"\n \" -p, --proto=PROTOCOL Protocol\\n\"\n \" --tcp-state=STATE TCP connection state\\n\"\n \" --orig-src=ADDR Original source address\\n\"\n \" --orig-sport=PORT Original source port\\n\"\n \" --orig-dst=ADDR Original destination address\\n\"\n \" --orig-dport=PORT Original destination port\\n\"\n \" --reply-src=ADDR Reply source address\\n\"\n \" --reply-sport=PORT Reply source port\\n\"\n \" --reply-dst=ADDR Reply destination address\\n\"\n \" --reply-dport=PORT Reply destination port\\n\"\n \" -F, --family=FAMILY Address family\\n\"\n \" --mark=NUM Mark value\\n\"\n \" --timeout=NUM Timeout value\\n\"\n \" --refcnt=NUM Use counter value\\n\"\n \" --flags Flags\\n\")", "parent": 9, "children": [17, 18], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 42, "column": 46}}, {"id": 17, "type": "identifier", "text": "printf", "parent": 16, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 18, "type": "argument_list", "text": "(\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n \"\\n\"\n \"Options\\n\"\n \" -f, --format=TYPE Output format { brief | details | stats }\\n\"\n \" -h, --help Show this help\\n\"\n \" -v, --version Show versioning information\\n\"\n \"\\n\"\n \"Conntrack Selection\\n\"\n \" -i, --id=NUM Identifier\\n\"\n \" -p, --proto=PROTOCOL Protocol\\n\"\n \" --tcp-state=STATE TCP connection state\\n\"\n \" --orig-src=ADDR Original source address\\n\"\n \" --orig-sport=PORT Original source port\\n\"\n \" --orig-dst=ADDR Original destination address\\n\"\n \" --orig-dport=PORT Original destination port\\n\"\n \" --reply-src=ADDR Reply source address\\n\"\n \" --reply-sport=PORT Reply source port\\n\"\n \" --reply-dst=ADDR Reply destination address\\n\"\n \" --reply-dport=PORT Reply destination port\\n\"\n \" -F, --family=FAMILY Address family\\n\"\n \" --mark=NUM Mark value\\n\"\n \" --timeout=NUM Timeout value\\n\"\n \" --refcnt=NUM Use counter value\\n\"\n \" --flags Flags\\n\")", "parent": 16, "children": [19], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 42, "column": 46}}, {"id": 19, "type": "concatenated_string", "text": "\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n \"\\n\"\n \"Options\\n\"\n \" -f, --format=TYPE Output format { brief | details | stats }\\n\"\n \" -h, --help Show this help\\n\"\n \" -v, --version Show versioning information\\n\"\n \"\\n\"\n \"Conntrack Selection\\n\"\n \" -i, --id=NUM Identifier\\n\"\n \" -p, --proto=PROTOCOL Protocol\\n\"\n \" --tcp-state=STATE TCP connection state\\n\"\n \" --orig-src=ADDR Original source address\\n\"\n \" --orig-sport=PORT Original source port\\n\"\n \" --orig-dst=ADDR Original destination address\\n\"\n \" --orig-dport=PORT Original destination port\\n\"\n \" --reply-src=ADDR Reply source address\\n\"\n \" --reply-sport=PORT Reply source port\\n\"\n \" --reply-dst=ADDR Reply destination address\\n\"\n \" --reply-dport=PORT Reply destination port\\n\"\n \" -F, --family=FAMILY Address family\\n\"\n \" --mark=NUM Mark value\\n\"\n \" --timeout=NUM Timeout value\\n\"\n \" --refcnt=NUM Use counter value\\n\"\n \" --flags Flags\\n\"", "parent": 18, "children": [20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 42, "column": 45}}, {"id": 20, "type": "string_literal", "text": "\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"", "parent": 19, "children": [21], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 62}}, {"id": 21, "type": "escape_sequence", "text": "\\n", "parent": 20, "children": [], "start_point": {"row": 19, "column": 59}, "end_point": {"row": 19, "column": 61}}, {"id": 22, "type": "string_literal", "text": "\"\\n\"", "parent": 19, "children": [23], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 15}}, {"id": 23, "type": "escape_sequence", "text": "\\n", "parent": 22, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 14}}, {"id": 24, "type": "string_literal", "text": "\"Options\\n\"", "parent": 19, "children": [25], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 22}}, {"id": 25, "type": "escape_sequence", "text": "\\n", "parent": 24, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 21}}, {"id": 26, "type": "string_literal", "text": "\" -f, --format=TYPE Output format { brief | details | stats }\\n\"", "parent": 19, "children": [27], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 79}}, {"id": 27, "type": "escape_sequence", "text": "\\n", "parent": 26, "children": [], "start_point": {"row": 22, "column": 76}, "end_point": {"row": 22, "column": 78}}, {"id": 28, "type": "string_literal", "text": "\" -h, --help Show this help\\n\"", "parent": 19, "children": [29], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 52}}, {"id": 29, "type": "escape_sequence", "text": "\\n", "parent": 28, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 51}}, {"id": 30, "type": "string_literal", "text": "\" -v, --version Show versioning information\\n\"", "parent": 19, "children": [31], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 65}}, {"id": 31, "type": "escape_sequence", "text": "\\n", "parent": 30, "children": [], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 64}}, {"id": 32, "type": "string_literal", "text": "\"\\n\"", "parent": 19, "children": [33], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 15}}, {"id": 33, "type": "escape_sequence", "text": "\\n", "parent": 32, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 14}}, {"id": 34, "type": "string_literal", "text": "\"Conntrack Selection\\n\"", "parent": 19, "children": [35], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 34}}, {"id": 35, "type": "escape_sequence", "text": "\\n", "parent": 34, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 33}}, {"id": 36, "type": "string_literal", "text": "\" -i, --id=NUM Identifier\\n\"", "parent": 19, "children": [37], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 50}}, {"id": 37, "type": "escape_sequence", "text": "\\n", "parent": 36, "children": [], "start_point": {"row": 27, "column": 47}, "end_point": {"row": 27, "column": 49}}, {"id": 38, "type": "string_literal", "text": "\" -p, --proto=PROTOCOL Protocol\\n\"", "parent": 19, "children": [39], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 48}}, {"id": 39, "type": "escape_sequence", "text": "\\n", "parent": 38, "children": [], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 47}}, {"id": 40, "type": "string_literal", "text": "\" --tcp-state=STATE TCP connection state\\n\"", "parent": 19, "children": [41], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 60}}, {"id": 41, "type": "escape_sequence", "text": "\\n", "parent": 40, "children": [], "start_point": {"row": 29, "column": 57}, "end_point": {"row": 29, "column": 59}}, {"id": 42, "type": "string_literal", "text": "\" --orig-src=ADDR Original source address\\n\"", "parent": 19, "children": [43], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 63}}, {"id": 43, "type": "escape_sequence", "text": "\\n", "parent": 42, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 62}}, {"id": 44, "type": "string_literal", "text": "\" --orig-sport=PORT Original source port\\n\"", "parent": 19, "children": [45], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 60}}, {"id": 45, "type": "escape_sequence", "text": "\\n", "parent": 44, "children": [], "start_point": {"row": 31, "column": 57}, "end_point": {"row": 31, "column": 59}}, {"id": 46, "type": "string_literal", "text": "\" --orig-dst=ADDR Original destination address\\n\"", "parent": 19, "children": [47], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 68}}, {"id": 47, "type": "escape_sequence", "text": "\\n", "parent": 46, "children": [], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 67}}, {"id": 48, "type": "string_literal", "text": "\" --orig-dport=PORT Original destination port\\n\"", "parent": 19, "children": [49], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 65}}, {"id": 49, "type": "escape_sequence", "text": "\\n", "parent": 48, "children": [], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 64}}, {"id": 50, "type": "string_literal", "text": "\" --reply-src=ADDR Reply source address\\n\"", "parent": 19, "children": [51], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 60}}, {"id": 51, "type": "escape_sequence", "text": "\\n", "parent": 50, "children": [], "start_point": {"row": 34, "column": 57}, "end_point": {"row": 34, "column": 59}}, {"id": 52, "type": "string_literal", "text": "\" --reply-sport=PORT Reply source port\\n\"", "parent": 19, "children": [53], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 57}}, {"id": 53, "type": "escape_sequence", "text": "\\n", "parent": 52, "children": [], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 56}}, {"id": 54, "type": "string_literal", "text": "\" --reply-dst=ADDR Reply destination address\\n\"", "parent": 19, "children": [55], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 65}}, {"id": 55, "type": "escape_sequence", "text": "\\n", "parent": 54, "children": [], "start_point": {"row": 36, "column": 62}, "end_point": {"row": 36, "column": 64}}, {"id": 56, "type": "string_literal", "text": "\" --reply-dport=PORT Reply destination port\\n\"", "parent": 19, "children": [57], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 62}}, {"id": 57, "type": "escape_sequence", "text": "\\n", "parent": 56, "children": [], "start_point": {"row": 37, "column": 59}, "end_point": {"row": 37, "column": 61}}, {"id": 58, "type": "string_literal", "text": "\" -F, --family=FAMILY Address family\\n\"", "parent": 19, "children": [59], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 54}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 38, "column": 51}, "end_point": {"row": 38, "column": 53}}, {"id": 60, "type": "string_literal", "text": "\" --mark=NUM Mark value\\n\"", "parent": 19, "children": [61], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 50}}, {"id": 61, "type": "escape_sequence", "text": "\\n", "parent": 60, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 49}}, {"id": 62, "type": "string_literal", "text": "\" --timeout=NUM Timeout value\\n\"", "parent": 19, "children": [63], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 53}}, {"id": 63, "type": "escape_sequence", "text": "\\n", "parent": 62, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 52}}, {"id": 64, "type": "string_literal", "text": "\" --refcnt=NUM Use counter value\\n\"", "parent": 19, "children": [65], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 57}}, {"id": 65, "type": "escape_sequence", "text": "\\n", "parent": 64, "children": [], "start_point": {"row": 41, "column": 54}, "end_point": {"row": 41, "column": 56}}, {"id": 66, "type": "string_literal", "text": "\" --flags Flags\\n\"", "parent": 19, "children": [67], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 45}}, {"id": 67, "type": "escape_sequence", "text": "\\n", "parent": 66, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 44}}, {"id": 68, "type": "call_expression", "text": "exit(0)", "parent": 9, "children": [69, 70], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 11}}, {"id": 69, "type": "identifier", "text": "exit", "parent": 68, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 70, "type": "argument_list", "text": "(0)", "parent": 68, "children": [71], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 11}}, {"id": 71, "type": "number_literal", "text": "0", "parent": 70, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 72, "type": "function_definition", "text": "int main(int argc, char* argv[])\n{\n struct nl_sock* sock;\n struct nl_cache* ct_cache;\n struct nfnl_ct* ct;\n struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };\n\n ct = nl_cli_ct_alloc();\n\n for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }\n\n sock = nl_cli_alloc_socket();\n nl_cli_connect(sock, NETLINK_NETFILTER);\n ct_cache = nl_cli_ct_alloc_cache(sock);\n\n nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));\n\n return 0;\n}", "parent": null, "children": [73, 74], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 179, "column": 1}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 3}}, {"id": 74, "type": "function_declarator", "text": "main(int argc, char* argv[])", "parent": 72, "children": [75, 76], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 32}}, {"id": 75, "type": "identifier", "text": "main", "parent": 74, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 76, "type": "parameter_list", "text": "(int argc, char* argv[])", "parent": 74, "children": [77, 80], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 32}}, {"id": 77, "type": "parameter_declaration", "text": "int argc", "parent": 76, "children": [78, 79], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 17}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 12}}, {"id": 79, "type": "identifier", "text": "argc", "parent": 77, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 17}}, {"id": 80, "type": "parameter_declaration", "text": "char* argv[]", "parent": 76, "children": [81, 82], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 31}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 23}}, {"id": 82, "type": "pointer_declarator", "text": "* argv[]", "parent": 80, "children": [83, 84], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 31}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 24}}, {"id": 84, "type": "array_declarator", "text": "argv[]", "parent": 82, "children": [85], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 31}}, {"id": 85, "type": "identifier", "text": "argv", "parent": 84, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 29}}, {"id": 86, "type": "declaration", "text": "struct nl_sock* sock;", "parent": 72, "children": [87, 90], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 25}}, {"id": 87, "type": "struct_specifier", "text": "struct nl_sock", "parent": 86, "children": [88, 89], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 18}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 10}}, {"id": 89, "type": "type_identifier", "text": "nl_sock", "parent": 87, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 18}}, {"id": 90, "type": "pointer_declarator", "text": "* sock", "parent": 86, "children": [91, 92], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 24}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 92, "type": "identifier", "text": "sock", "parent": 90, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 24}}, {"id": 93, "type": "declaration", "text": "struct nl_cache* ct_cache;", "parent": 72, "children": [94, 97], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 30}}, {"id": 94, "type": "struct_specifier", "text": "struct nl_cache", "parent": 93, "children": [95, 96], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 19}}, {"id": 95, "type": "struct", "text": "struct", "parent": 94, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 10}}, {"id": 96, "type": "type_identifier", "text": "nl_cache", "parent": 94, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 19}}, {"id": 97, "type": "pointer_declarator", "text": "* ct_cache", "parent": 93, "children": [98, 99], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 29}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 99, "type": "identifier", "text": "ct_cache", "parent": 97, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 29}}, {"id": 100, "type": "declaration", "text": "struct nfnl_ct* ct;", "parent": 72, "children": [101, 104], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 23}}, {"id": 101, "type": "struct_specifier", "text": "struct nfnl_ct", "parent": 100, "children": [102, 103], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 18}}, {"id": 102, "type": "struct", "text": "struct", "parent": 101, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 10}}, {"id": 103, "type": "type_identifier", "text": "nfnl_ct", "parent": 101, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 18}}, {"id": 104, "type": "pointer_declarator", "text": "* ct", "parent": 100, "children": [105, 106], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 22}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 106, "type": "identifier", "text": "ct", "parent": 104, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 22}}, {"id": 107, "type": "declaration", "text": "struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };", "parent": 72, "children": [108, 111], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 54, "column": 6}}, {"id": 108, "type": "struct_specifier", "text": "struct nl_dump_params", "parent": 107, "children": [109, 110], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 25}}, {"id": 109, "type": "struct", "text": "struct", "parent": 108, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 10}}, {"id": 110, "type": "type_identifier", "text": "nl_dump_params", "parent": 108, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 25}}, {"id": 111, "type": "init_declarator", "text": "params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n }", "parent": 107, "children": [112, 113, 114], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 54, "column": 5}}, {"id": 112, "type": "identifier", "text": "params", "parent": 111, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 32}}, {"id": 113, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 34}}, {"id": 114, "type": "initializer_list", "text": "{\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n }", "parent": 111, "children": [115, 120], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 54, "column": 5}}, {"id": 115, "type": "initializer_pair", "text": ".dp_type = NL_DUMP_LINE", "parent": 114, "children": [116, 118, 119], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 31}}, {"id": 116, "type": "field_designator", "text": ".dp_type", "parent": 115, "children": [117], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 16}}, {"id": 117, "type": "field_identifier", "text": "dp_type", "parent": 116, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 16}}, {"id": 118, "type": "=", "text": "=", "parent": 115, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 18}}, {"id": 119, "type": "identifier", "text": "NL_DUMP_LINE", "parent": 115, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 31}}, {"id": 120, "type": "initializer_pair", "text": ".dp_fd = stdout", "parent": 114, "children": [121, 123, 124], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 23}}, {"id": 121, "type": "field_designator", "text": ".dp_fd", "parent": 120, "children": [122], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 14}}, {"id": 122, "type": "field_identifier", "text": "dp_fd", "parent": 121, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 14}}, {"id": 123, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 124, "type": "identifier", "text": "stdout", "parent": 120, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 23}}, {"id": 125, "type": "assignment_expression", "text": "ct = nl_cli_ct_alloc()", "parent": 72, "children": [126, 127, 128], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 26}}, {"id": 126, "type": "identifier", "text": "ct", "parent": 125, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 6}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 8}}, {"id": 128, "type": "call_expression", "text": "nl_cli_ct_alloc()", "parent": 125, "children": [129, 130], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 26}}, {"id": 129, "type": "identifier", "text": "nl_cli_ct_alloc", "parent": 128, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 24}}, {"id": 130, "type": "argument_list", "text": "()", "parent": 128, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 26}}, {"id": 131, "type": "for_statement", "text": "for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }", "parent": 72, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 170, "column": 5}}, {"id": 132, "type": "declaration", "text": "int c, optidx = 0;", "parent": 131, "children": [133, 134, 135], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 26}}, {"id": 133, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 134, "type": "identifier", "text": "c", "parent": 132, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 135, "type": "init_declarator", "text": "optidx = 0", "parent": 132, "children": [136, 137, 138], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 25}}, {"id": 136, "type": "identifier", "text": "optidx", "parent": 135, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 21}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 138, "type": "number_literal", "text": "0", "parent": 135, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 25}}, {"id": 139, "type": "enum_specifier", "text": "enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n }", "parent": 131, "children": [140, 141], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 140, "type": "enum", "text": "enum", "parent": 139, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 12}}, {"id": 141, "type": "enumerator_list", "text": "{\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n }", "parent": 139, "children": [142, 146, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 76, "column": 9}}, {"id": 142, "type": "enumerator", "text": "ARG_MARK = 257", "parent": 141, "children": [143, 144, 145], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 26}}, {"id": 143, "type": "identifier", "text": "ARG_MARK", "parent": 142, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 22}}, {"id": 145, "type": "number_literal", "text": "257", "parent": 142, "children": [], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 26}}, {"id": 146, "type": "enumerator", "text": "ARG_TCP_STATE = 258", "parent": 141, "children": [147, 148, 149], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 31}}, {"id": 147, "type": "identifier", "text": "ARG_TCP_STATE", "parent": 146, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 25}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 27}}, {"id": 149, "type": "number_literal", "text": "258", "parent": 146, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 31}}, {"id": 150, "type": "enumerator", "text": "ARG_ORIG_SRC", "parent": 141, "children": [151], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 24}}, {"id": 151, "type": "identifier", "text": "ARG_ORIG_SRC", "parent": 150, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 24}}, {"id": 152, "type": "enumerator", "text": "ARG_ORIG_SPORT", "parent": 141, "children": [153], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 26}}, {"id": 153, "type": "identifier", "text": "ARG_ORIG_SPORT", "parent": 152, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 26}}, {"id": 154, "type": "enumerator", "text": "ARG_ORIG_DST", "parent": 141, "children": [155], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 24}}, {"id": 155, "type": "identifier", "text": "ARG_ORIG_DST", "parent": 154, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 24}}, {"id": 156, "type": "enumerator", "text": "ARG_ORIG_DPORT", "parent": 141, "children": [157], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 26}}, {"id": 157, "type": "identifier", "text": "ARG_ORIG_DPORT", "parent": 156, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 26}}, {"id": 158, "type": "enumerator", "text": "ARG_REPLY_SRC", "parent": 141, "children": [159], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 25}}, {"id": 159, "type": "identifier", "text": "ARG_REPLY_SRC", "parent": 158, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 25}}, {"id": 160, "type": "enumerator", "text": "ARG_REPLY_SPORT", "parent": 141, "children": [161], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 27}}, {"id": 161, "type": "identifier", "text": "ARG_REPLY_SPORT", "parent": 160, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 27}}, {"id": 162, "type": "enumerator", "text": "ARG_REPLY_DST", "parent": 141, "children": [163], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 25}}, {"id": 163, "type": "identifier", "text": "ARG_REPLY_DST", "parent": 162, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 25}}, {"id": 164, "type": "enumerator", "text": "ARG_REPLY_DPORT", "parent": 141, "children": [165], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 27}}, {"id": 165, "type": "identifier", "text": "ARG_REPLY_DPORT", "parent": 164, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 27}}, {"id": 166, "type": "enumerator", "text": "ARG_TIMEOUT", "parent": 141, "children": [167], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 23}}, {"id": 167, "type": "identifier", "text": "ARG_TIMEOUT", "parent": 166, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 23}}, {"id": 168, "type": "enumerator", "text": "ARG_REFCNT", "parent": 141, "children": [169], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 22}}, {"id": 169, "type": "identifier", "text": "ARG_REFCNT", "parent": 168, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 22}}, {"id": 170, "type": "enumerator", "text": "ARG_FLAGS", "parent": 141, "children": [171], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 21}}, {"id": 171, "type": "identifier", "text": "ARG_FLAGS", "parent": 170, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 21}}, {"id": 172, "type": "declaration", "text": "static struct option long_opts[] = {\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};", "parent": 131, "children": [173, 176], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 96, "column": 26}}, {"id": 173, "type": "struct_specifier", "text": "struct option", "parent": 172, "children": [174, 175], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 28}}, {"id": 174, "type": "struct", "text": "struct", "parent": 173, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 21}}, {"id": 175, "type": "type_identifier", "text": "option", "parent": 173, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 28}}, {"id": 176, "type": "init_declarator", "text": "long_opts[] = {\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}}", "parent": 172, "children": [177, 179, 180], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 96, "column": 25}}, {"id": 177, "type": "array_declarator", "text": "long_opts[]", "parent": 176, "children": [178], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 40}}, {"id": 178, "type": "identifier", "text": "long_opts", "parent": 177, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 38}}, {"id": 179, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 77, "column": 41}, "end_point": {"row": 77, "column": 42}}, {"id": 180, "type": "initializer_list", "text": "{\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}}", "parent": 176, "children": [181, 189, 197, 205, 213, 221, 226, 231, 236, 241, 246, 251, 256, 261, 266, 274, 279, 284, 289], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 96, "column": 25}}, {"id": 181, "type": "initializer_list", "text": "{\"format\", 1, 0, 'f'}", "parent": 180, "children": [182, 183, 184, 185], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 33}}, {"id": 182, "type": "string_literal", "text": "\"format\"", "parent": 181, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 21}}, {"id": 183, "type": "number_literal", "text": "1", "parent": 181, "children": [], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 24}}, {"id": 184, "type": "number_literal", "text": "0", "parent": 181, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 27}}, {"id": 185, "type": "char_literal", "text": "'f'", "parent": 181, "children": [186, 187, 188], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 32}}, {"id": 186, "type": "'", "text": "'", "parent": 185, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 30}}, {"id": 187, "type": "character", "text": "f", "parent": 185, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 31}}, {"id": 188, "type": "'", "text": "'", "parent": 185, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 32}}, {"id": 189, "type": "initializer_list", "text": "{\"help\", 0, 0, 'h'}", "parent": 180, "children": [190, 191, 192, 193], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 31}}, {"id": 190, "type": "string_literal", "text": "\"help\"", "parent": 189, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 19}}, {"id": 191, "type": "number_literal", "text": "0", "parent": 189, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 22}}, {"id": 192, "type": "number_literal", "text": "0", "parent": 189, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 25}}, {"id": 193, "type": "char_literal", "text": "'h'", "parent": 189, "children": [194, 195, 196], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 30}}, {"id": 194, "type": "'", "text": "'", "parent": 193, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 28}}, {"id": 195, "type": "character", "text": "h", "parent": 193, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 29}}, {"id": 196, "type": "'", "text": "'", "parent": 193, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 30}}, {"id": 197, "type": "initializer_list", "text": "{\"version\", 0, 0, 'v'}", "parent": 180, "children": [198, 199, 200, 201], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 34}}, {"id": 198, "type": "string_literal", "text": "\"version\"", "parent": 197, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 22}}, {"id": 199, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 25}}, {"id": 200, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 28}}, {"id": 201, "type": "char_literal", "text": "'v'", "parent": 197, "children": [202, 203, 204], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 33}}, {"id": 202, "type": "'", "text": "'", "parent": 201, "children": [], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 31}}, {"id": 203, "type": "character", "text": "v", "parent": 201, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 32}}, {"id": 204, "type": "'", "text": "'", "parent": 201, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 33}}, {"id": 205, "type": "initializer_list", "text": "{\"id\", 1, 0, 'i'}", "parent": 180, "children": [206, 207, 208, 209], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 29}}, {"id": 206, "type": "string_literal", "text": "\"id\"", "parent": 205, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 17}}, {"id": 207, "type": "number_literal", "text": "1", "parent": 205, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 208, "type": "number_literal", "text": "0", "parent": 205, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 23}}, {"id": 209, "type": "char_literal", "text": "'i'", "parent": 205, "children": [210, 211, 212], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 28}}, {"id": 210, "type": "'", "text": "'", "parent": 209, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 26}}, {"id": 211, "type": "character", "text": "i", "parent": 209, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 27}}, {"id": 212, "type": "'", "text": "'", "parent": 209, "children": [], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 28}}, {"id": 213, "type": "initializer_list", "text": "{\"proto\", 1, 0, 'p'}", "parent": 180, "children": [214, 215, 216, 217], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 32}}, {"id": 214, "type": "string_literal", "text": "\"proto\"", "parent": 213, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 20}}, {"id": 215, "type": "number_literal", "text": "1", "parent": 213, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 23}}, {"id": 216, "type": "number_literal", "text": "0", "parent": 213, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 26}}, {"id": 217, "type": "char_literal", "text": "'p'", "parent": 213, "children": [218, 219, 220], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 31}}, {"id": 218, "type": "'", "text": "'", "parent": 217, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 29}}, {"id": 219, "type": "character", "text": "p", "parent": 217, "children": [], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 30}}, {"id": 220, "type": "'", "text": "'", "parent": 217, "children": [], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 31}}, {"id": 221, "type": "initializer_list", "text": "{\"tcp-state\", 1, 0, ARG_TCP_STATE}", "parent": 180, "children": [222, 223, 224, 225], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 46}}, {"id": 222, "type": "string_literal", "text": "\"tcp-state\"", "parent": 221, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 24}}, {"id": 223, "type": "number_literal", "text": "1", "parent": 221, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 27}}, {"id": 224, "type": "number_literal", "text": "0", "parent": 221, "children": [], "start_point": {"row": 83, "column": 29}, "end_point": {"row": 83, "column": 30}}, {"id": 225, "type": "identifier", "text": "ARG_TCP_STATE", "parent": 221, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 45}}, {"id": 226, "type": "initializer_list", "text": "{\"orig-src\", 1, 0, ARG_ORIG_SRC}", "parent": 180, "children": [227, 228, 229, 230], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 44}}, {"id": 227, "type": "string_literal", "text": "\"orig-src\"", "parent": 226, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 23}}, {"id": 228, "type": "number_literal", "text": "1", "parent": 226, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 26}}, {"id": 229, "type": "number_literal", "text": "0", "parent": 226, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 230, "type": "identifier", "text": "ARG_ORIG_SRC", "parent": 226, "children": [], "start_point": {"row": 84, "column": 31}, "end_point": {"row": 84, "column": 43}}, {"id": 231, "type": "initializer_list", "text": "{\"orig-sport\", 1, 0, ARG_ORIG_SPORT}", "parent": 180, "children": [232, 233, 234, 235], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 48}}, {"id": 232, "type": "string_literal", "text": "\"orig-sport\"", "parent": 231, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 25}}, {"id": 233, "type": "number_literal", "text": "1", "parent": 231, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 28}}, {"id": 234, "type": "number_literal", "text": "0", "parent": 231, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 31}}, {"id": 235, "type": "identifier", "text": "ARG_ORIG_SPORT", "parent": 231, "children": [], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 47}}, {"id": 236, "type": "initializer_list", "text": "{\"orig-dst\", 1, 0, ARG_ORIG_DST}", "parent": 180, "children": [237, 238, 239, 240], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 44}}, {"id": 237, "type": "string_literal", "text": "\"orig-dst\"", "parent": 236, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 23}}, {"id": 238, "type": "number_literal", "text": "1", "parent": 236, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 26}}, {"id": 239, "type": "number_literal", "text": "0", "parent": 236, "children": [], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 29}}, {"id": 240, "type": "identifier", "text": "ARG_ORIG_DST", "parent": 236, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 43}}, {"id": 241, "type": "initializer_list", "text": "{\"orig-dport\", 1, 0, ARG_ORIG_DPORT}", "parent": 180, "children": [242, 243, 244, 245], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 48}}, {"id": 242, "type": "string_literal", "text": "\"orig-dport\"", "parent": 241, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 25}}, {"id": 243, "type": "number_literal", "text": "1", "parent": 241, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 28}}, {"id": 244, "type": "number_literal", "text": "0", "parent": 241, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 31}}, {"id": 245, "type": "identifier", "text": "ARG_ORIG_DPORT", "parent": 241, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 47}}, {"id": 246, "type": "initializer_list", "text": "{\"reply-src\", 1, 0, ARG_REPLY_SRC}", "parent": 180, "children": [247, 248, 249, 250], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 46}}, {"id": 247, "type": "string_literal", "text": "\"reply-src\"", "parent": 246, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 24}}, {"id": 248, "type": "number_literal", "text": "1", "parent": 246, "children": [], "start_point": {"row": 88, "column": 26}, "end_point": {"row": 88, "column": 27}}, {"id": 249, "type": "number_literal", "text": "0", "parent": 246, "children": [], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 30}}, {"id": 250, "type": "identifier", "text": "ARG_REPLY_SRC", "parent": 246, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 45}}, {"id": 251, "type": "initializer_list", "text": "{\"reply-sport\", 1, 0, ARG_REPLY_SPORT}", "parent": 180, "children": [252, 253, 254, 255], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 50}}, {"id": 252, "type": "string_literal", "text": "\"reply-sport\"", "parent": 251, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 26}}, {"id": 253, "type": "number_literal", "text": "1", "parent": 251, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 29}}, {"id": 254, "type": "number_literal", "text": "0", "parent": 251, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 32}}, {"id": 255, "type": "identifier", "text": "ARG_REPLY_SPORT", "parent": 251, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 49}}, {"id": 256, "type": "initializer_list", "text": "{\"reply-dst\", 1, 0, ARG_REPLY_DST}", "parent": 180, "children": [257, 258, 259, 260], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 46}}, {"id": 257, "type": "string_literal", "text": "\"reply-dst\"", "parent": 256, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 24}}, {"id": 258, "type": "number_literal", "text": "1", "parent": 256, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 27}}, {"id": 259, "type": "number_literal", "text": "0", "parent": 256, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 30}}, {"id": 260, "type": "identifier", "text": "ARG_REPLY_DST", "parent": 256, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 45}}, {"id": 261, "type": "initializer_list", "text": "{\"reply-dport\", 1, 0, ARG_REPLY_DPORT}", "parent": 180, "children": [262, 263, 264, 265], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 50}}, {"id": 262, "type": "string_literal", "text": "\"reply-dport\"", "parent": 261, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 26}}, {"id": 263, "type": "number_literal", "text": "1", "parent": 261, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 264, "type": "number_literal", "text": "0", "parent": 261, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 265, "type": "identifier", "text": "ARG_REPLY_DPORT", "parent": 261, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 49}}, {"id": 266, "type": "initializer_list", "text": "{\"family\", 1, 0, 'F'}", "parent": 180, "children": [267, 268, 269, 270], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 33}}, {"id": 267, "type": "string_literal", "text": "\"family\"", "parent": 266, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 21}}, {"id": 268, "type": "number_literal", "text": "1", "parent": 266, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 24}}, {"id": 269, "type": "number_literal", "text": "0", "parent": 266, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 27}}, {"id": 270, "type": "char_literal", "text": "'F'", "parent": 266, "children": [271, 272, 273], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 32}}, {"id": 271, "type": "'", "text": "'", "parent": 270, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 30}}, {"id": 272, "type": "character", "text": "F", "parent": 270, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 31}}, {"id": 273, "type": "'", "text": "'", "parent": 270, "children": [], "start_point": {"row": 92, "column": 31}, "end_point": {"row": 92, "column": 32}}, {"id": 274, "type": "initializer_list", "text": "{\"mark\", 1, 0, ARG_MARK}", "parent": 180, "children": [275, 276, 277, 278], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 36}}, {"id": 275, "type": "string_literal", "text": "\"mark\"", "parent": 274, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 19}}, {"id": 276, "type": "number_literal", "text": "1", "parent": 274, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 22}}, {"id": 277, "type": "number_literal", "text": "0", "parent": 274, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 25}}, {"id": 278, "type": "identifier", "text": "ARG_MARK", "parent": 274, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 35}}, {"id": 279, "type": "initializer_list", "text": "{\"timeout\", 1, 0, ARG_TIMEOUT}", "parent": 180, "children": [280, 281, 282, 283], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 42}}, {"id": 280, "type": "string_literal", "text": "\"timeout\"", "parent": 279, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 22}}, {"id": 281, "type": "number_literal", "text": "1", "parent": 279, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 25}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 28}}, {"id": 283, "type": "identifier", "text": "ARG_TIMEOUT", "parent": 279, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 41}}, {"id": 284, "type": "initializer_list", "text": "{\"refcnt\", 1, 0, ARG_REFCNT}", "parent": 180, "children": [285, 286, 287, 288], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 40}}, {"id": 285, "type": "string_literal", "text": "\"refcnt\"", "parent": 284, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 21}}, {"id": 286, "type": "number_literal", "text": "1", "parent": 284, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 24}}, {"id": 287, "type": "number_literal", "text": "0", "parent": 284, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 27}}, {"id": 288, "type": "identifier", "text": "ARG_REFCNT", "parent": 284, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 39}}, {"id": 289, "type": "initializer_list", "text": "{0, 0, 0, 0}", "parent": 180, "children": [290, 291, 292, 293], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 24}}, {"id": 290, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 14}}, {"id": 291, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 17}}, {"id": 292, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 293, "type": "number_literal", "text": "0", "parent": 289, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 23}}, {"id": 294, "type": "assignment_expression", "text": "c = getopt_long(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx)", "parent": 131, "children": [295, 296, 297], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 71}}, {"id": 295, "type": "identifier", "text": "c", "parent": 294, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 9}}, {"id": 296, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 297, "type": "call_expression", "text": "getopt_long(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx)", "parent": 294, "children": [298, 299], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 71}}, {"id": 298, "type": "identifier", "text": "getopt_long", "parent": 297, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 23}}, {"id": 299, "type": "argument_list", "text": "(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx)", "parent": 297, "children": [300, 301, 302, 303, 304], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 71}}, {"id": 300, "type": "identifier", "text": "argc", "parent": 299, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 28}}, {"id": 301, "type": "identifier", "text": "argv", "parent": 299, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 34}}, {"id": 302, "type": "string_literal", "text": "\"46f:hvi:p:F:\"", "parent": 299, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 50}}, {"id": 303, "type": "identifier", "text": "long_opts", "parent": 299, "children": [], "start_point": {"row": 98, "column": 52}, "end_point": {"row": 98, "column": 61}}, {"id": 304, "type": "pointer_expression", "text": "&optidx", "parent": 299, "children": [305], "start_point": {"row": 98, "column": 63}, "end_point": {"row": 98, "column": 70}}, {"id": 305, "type": "identifier", "text": "optidx", "parent": 304, "children": [], "start_point": {"row": 98, "column": 64}, "end_point": {"row": 98, "column": 70}}, {"id": 306, "type": "if_statement", "text": "if (c == -1)\n break;", "parent": 131, "children": [307, 312], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 100, "column": 18}}, {"id": 307, "type": "parenthesized_expression", "text": "(c == -1)", "parent": 306, "children": [308], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 20}}, {"id": 308, "type": "binary_expression", "text": "c == -1", "parent": 307, "children": [309, 310, 311], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 19}}, {"id": 309, "type": "identifier", "text": "c", "parent": 308, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 13}}, {"id": 310, "type": "==", "text": "==", "parent": 308, "children": [], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 16}}, {"id": 311, "type": "number_literal", "text": "-1", "parent": 308, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 19}}, {"id": 312, "type": "break_statement", "text": "break;", "parent": 306, "children": [313], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 18}}, {"id": 313, "type": "break", "text": "break", "parent": 312, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 17}}, {"id": 314, "type": "switch_statement", "text": "switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }", "parent": 131, "children": [315, 316], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 169, "column": 9}}, {"id": 315, "type": "switch", "text": "switch", "parent": 314, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 14}}, {"id": 316, "type": "parenthesized_expression", "text": "(c)", "parent": 314, "children": [317], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 18}}, {"id": 317, "type": "identifier", "text": "c", "parent": 316, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 318, "type": "case_statement", "text": "case '?':\n exit(NLE_INVAL);", "parent": 314, "children": [319, 320], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 105, "column": 32}}, {"id": 319, "type": "case", "text": "case", "parent": 318, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 16}}, {"id": 320, "type": "char_literal", "text": "'?'", "parent": 318, "children": [321, 322, 323], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 20}}, {"id": 321, "type": "'", "text": "'", "parent": 320, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 18}}, {"id": 322, "type": "character", "text": "?", "parent": 320, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 323, "type": "'", "text": "'", "parent": 320, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 20}}, {"id": 324, "type": "call_expression", "text": "exit(NLE_INVAL)", "parent": 318, "children": [325, 326], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 31}}, {"id": 325, "type": "identifier", "text": "exit", "parent": 324, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 20}}, {"id": 326, "type": "argument_list", "text": "(NLE_INVAL)", "parent": 324, "children": [327], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 31}}, {"id": 327, "type": "identifier", "text": "NLE_INVAL", "parent": 326, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 30}}, {"id": 328, "type": "case_statement", "text": "case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;", "parent": 314, "children": [329, 330, 339], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 108, "column": 22}}, {"id": 329, "type": "case", "text": "case", "parent": 328, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 16}}, {"id": 330, "type": "char_literal", "text": "'4'", "parent": 328, "children": [331, 332, 333], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 20}}, {"id": 331, "type": "'", "text": "'", "parent": 330, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 332, "type": "character", "text": "4", "parent": 330, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 19}}, {"id": 333, "type": "'", "text": "'", "parent": 330, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 20}}, {"id": 334, "type": "call_expression", "text": "nfnl_ct_set_family(ct, AF_INET)", "parent": 328, "children": [335, 336], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 47}}, {"id": 335, "type": "identifier", "text": "nfnl_ct_set_family", "parent": 334, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 34}}, {"id": 336, "type": "argument_list", "text": "(ct, AF_INET)", "parent": 334, "children": [337, 338], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 47}}, {"id": 337, "type": "identifier", "text": "ct", "parent": 336, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 37}}, {"id": 338, "type": "identifier", "text": "AF_INET", "parent": 336, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 46}}, {"id": 339, "type": "break_statement", "text": "break;", "parent": 328, "children": [340], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 22}}, {"id": 340, "type": "break", "text": "break", "parent": 339, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 21}}, {"id": 341, "type": "case_statement", "text": "case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;", "parent": 314, "children": [342, 343, 352], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 111, "column": 22}}, {"id": 342, "type": "case", "text": "case", "parent": 341, "children": [], "start_point": {"row": 109, "column": 12}, "end_point": {"row": 109, "column": 16}}, {"id": 343, "type": "char_literal", "text": "'6'", "parent": 341, "children": [344, 345, 346], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 20}}, {"id": 344, "type": "'", "text": "'", "parent": 343, "children": [], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 18}}, {"id": 345, "type": "character", "text": "6", "parent": 343, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 19}}, {"id": 346, "type": "'", "text": "'", "parent": 343, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 20}}, {"id": 347, "type": "call_expression", "text": "nfnl_ct_set_family(ct, AF_INET6)", "parent": 341, "children": [348, 349], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 48}}, {"id": 348, "type": "identifier", "text": "nfnl_ct_set_family", "parent": 347, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 34}}, {"id": 349, "type": "argument_list", "text": "(ct, AF_INET6)", "parent": 347, "children": [350, 351], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 110, "column": 48}}, {"id": 350, "type": "identifier", "text": "ct", "parent": 349, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 37}}, {"id": 351, "type": "identifier", "text": "AF_INET6", "parent": 349, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 47}}, {"id": 352, "type": "break_statement", "text": "break;", "parent": 341, "children": [353], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 22}}, {"id": 353, "type": "break", "text": "break", "parent": 352, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 21}}, {"id": 354, "type": "case_statement", "text": "case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;", "parent": 314, "children": [355, 356, 369], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 114, "column": 22}}, {"id": 355, "type": "case", "text": "case", "parent": 354, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 16}}, {"id": 356, "type": "char_literal", "text": "'f'", "parent": 354, "children": [357, 358, 359], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 20}}, {"id": 357, "type": "'", "text": "'", "parent": 356, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 18}}, {"id": 358, "type": "character", "text": "f", "parent": 356, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 19}}, {"id": 359, "type": "'", "text": "'", "parent": 356, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 20}}, {"id": 360, "type": "assignment_expression", "text": "params.dp_type = nl_cli_parse_dumptype(optarg)", "parent": 354, "children": [361, 364, 365], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 62}}, {"id": 361, "type": "field_expression", "text": "params.dp_type", "parent": 360, "children": [362, 363], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 30}}, {"id": 362, "type": "identifier", "text": "params", "parent": 361, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 22}}, {"id": 363, "type": "field_identifier", "text": "dp_type", "parent": 361, "children": [], "start_point": {"row": 113, "column": 23}, "end_point": {"row": 113, "column": 30}}, {"id": 364, "type": "=", "text": "=", "parent": 360, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 32}}, {"id": 365, "type": "call_expression", "text": "nl_cli_parse_dumptype(optarg)", "parent": 360, "children": [366, 367], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 62}}, {"id": 366, "type": "identifier", "text": "nl_cli_parse_dumptype", "parent": 365, "children": [], "start_point": {"row": 113, "column": 33}, "end_point": {"row": 113, "column": 54}}, {"id": 367, "type": "argument_list", "text": "(optarg)", "parent": 365, "children": [368], "start_point": {"row": 113, "column": 54}, "end_point": {"row": 113, "column": 62}}, {"id": 368, "type": "identifier", "text": "optarg", "parent": 367, "children": [], "start_point": {"row": 113, "column": 55}, "end_point": {"row": 113, "column": 61}}, {"id": 369, "type": "break_statement", "text": "break;", "parent": 354, "children": [370], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 22}}, {"id": 370, "type": "break", "text": "break", "parent": 369, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 21}}, {"id": 371, "type": "case_statement", "text": "case 'h':\n print_usage();\n break;", "parent": 314, "children": [372, 373, 380], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 117, "column": 22}}, {"id": 372, "type": "case", "text": "case", "parent": 371, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 16}}, {"id": 373, "type": "char_literal", "text": "'h'", "parent": 371, "children": [374, 375, 376], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 20}}, {"id": 374, "type": "'", "text": "'", "parent": 373, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 18}}, {"id": 375, "type": "character", "text": "h", "parent": 373, "children": [], "start_point": {"row": 115, "column": 18}, "end_point": {"row": 115, "column": 19}}, {"id": 376, "type": "'", "text": "'", "parent": 373, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 20}}, {"id": 377, "type": "call_expression", "text": "print_usage()", "parent": 371, "children": [378, 379], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 29}}, {"id": 378, "type": "identifier", "text": "print_usage", "parent": 377, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 27}}, {"id": 379, "type": "argument_list", "text": "()", "parent": 377, "children": [], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 29}}, {"id": 380, "type": "break_statement", "text": "break;", "parent": 371, "children": [381], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 22}}, {"id": 381, "type": "break", "text": "break", "parent": 380, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 21}}, {"id": 382, "type": "case_statement", "text": "case 'v':\n nl_cli_print_version();\n break;", "parent": 314, "children": [383, 384, 391], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 120, "column": 22}}, {"id": 383, "type": "case", "text": "case", "parent": 382, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 16}}, {"id": 384, "type": "char_literal", "text": "'v'", "parent": 382, "children": [385, 386, 387], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 20}}, {"id": 385, "type": "'", "text": "'", "parent": 384, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 18}}, {"id": 386, "type": "character", "text": "v", "parent": 384, "children": [], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 19}}, {"id": 387, "type": "'", "text": "'", "parent": 384, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 20}}, {"id": 388, "type": "call_expression", "text": "nl_cli_print_version()", "parent": 382, "children": [389, 390], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 38}}, {"id": 389, "type": "identifier", "text": "nl_cli_print_version", "parent": 388, "children": [], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 36}}, {"id": 390, "type": "argument_list", "text": "()", "parent": 388, "children": [], "start_point": {"row": 119, "column": 36}, "end_point": {"row": 119, "column": 38}}, {"id": 391, "type": "break_statement", "text": "break;", "parent": 382, "children": [392], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 22}}, {"id": 392, "type": "break", "text": "break", "parent": 391, "children": [], "start_point": {"row": 120, "column": 16}, "end_point": {"row": 120, "column": 21}}, {"id": 393, "type": "case_statement", "text": "case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;", "parent": 314, "children": [394, 395, 404], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 123, "column": 22}}, {"id": 394, "type": "case", "text": "case", "parent": 393, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 16}}, {"id": 395, "type": "char_literal", "text": "'i'", "parent": 393, "children": [396, 397, 398], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 20}}, {"id": 396, "type": "'", "text": "'", "parent": 395, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 18}}, {"id": 397, "type": "character", "text": "i", "parent": 395, "children": [], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 19}}, {"id": 398, "type": "'", "text": "'", "parent": 395, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 20}}, {"id": 399, "type": "call_expression", "text": "nl_cli_ct_parse_id(ct, optarg)", "parent": 393, "children": [400, 401], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 46}}, {"id": 400, "type": "identifier", "text": "nl_cli_ct_parse_id", "parent": 399, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 34}}, {"id": 401, "type": "argument_list", "text": "(ct, optarg)", "parent": 399, "children": [402, 403], "start_point": {"row": 122, "column": 34}, "end_point": {"row": 122, "column": 46}}, {"id": 402, "type": "identifier", "text": "ct", "parent": 401, "children": [], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 37}}, {"id": 403, "type": "identifier", "text": "optarg", "parent": 401, "children": [], "start_point": {"row": 122, "column": 39}, "end_point": {"row": 122, "column": 45}}, {"id": 404, "type": "break_statement", "text": "break;", "parent": 393, "children": [405], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 22}}, {"id": 405, "type": "break", "text": "break", "parent": 404, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 21}}, {"id": 406, "type": "case_statement", "text": "case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;", "parent": 314, "children": [407, 408, 417], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 126, "column": 22}}, {"id": 407, "type": "case", "text": "case", "parent": 406, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 16}}, {"id": 408, "type": "char_literal", "text": "'p'", "parent": 406, "children": [409, 410, 411], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 20}}, {"id": 409, "type": "'", "text": "'", "parent": 408, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 18}}, {"id": 410, "type": "character", "text": "p", "parent": 408, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 19}}, {"id": 411, "type": "'", "text": "'", "parent": 408, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 20}}, {"id": 412, "type": "call_expression", "text": "nl_cli_ct_parse_protocol(ct, optarg)", "parent": 406, "children": [413, 414], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 52}}, {"id": 413, "type": "identifier", "text": "nl_cli_ct_parse_protocol", "parent": 412, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 40}}, {"id": 414, "type": "argument_list", "text": "(ct, optarg)", "parent": 412, "children": [415, 416], "start_point": {"row": 125, "column": 40}, "end_point": {"row": 125, "column": 52}}, {"id": 415, "type": "identifier", "text": "ct", "parent": 414, "children": [], "start_point": {"row": 125, "column": 41}, "end_point": {"row": 125, "column": 43}}, {"id": 416, "type": "identifier", "text": "optarg", "parent": 414, "children": [], "start_point": {"row": 125, "column": 45}, "end_point": {"row": 125, "column": 51}}, {"id": 417, "type": "break_statement", "text": "break;", "parent": 406, "children": [418], "start_point": {"row": 126, "column": 16}, "end_point": {"row": 126, "column": 22}}, {"id": 418, "type": "break", "text": "break", "parent": 417, "children": [], "start_point": {"row": 126, "column": 16}, "end_point": {"row": 126, "column": 21}}, {"id": 419, "type": "case_statement", "text": "case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;", "parent": 314, "children": [420, 421, 427], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 129, "column": 22}}, {"id": 420, "type": "case", "text": "case", "parent": 419, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 16}}, {"id": 421, "type": "identifier", "text": "ARG_TCP_STATE", "parent": 419, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 30}}, {"id": 422, "type": "call_expression", "text": "nl_cli_ct_parse_tcp_state(ct, optarg)", "parent": 419, "children": [423, 424], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 53}}, {"id": 423, "type": "identifier", "text": "nl_cli_ct_parse_tcp_state", "parent": 422, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 41}}, {"id": 424, "type": "argument_list", "text": "(ct, optarg)", "parent": 422, "children": [425, 426], "start_point": {"row": 128, "column": 41}, "end_point": {"row": 128, "column": 53}}, {"id": 425, "type": "identifier", "text": "ct", "parent": 424, "children": [], "start_point": {"row": 128, "column": 42}, "end_point": {"row": 128, "column": 44}}, {"id": 426, "type": "identifier", "text": "optarg", "parent": 424, "children": [], "start_point": {"row": 128, "column": 46}, "end_point": {"row": 128, "column": 52}}, {"id": 427, "type": "break_statement", "text": "break;", "parent": 419, "children": [428], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 22}}, {"id": 428, "type": "break", "text": "break", "parent": 427, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 21}}, {"id": 429, "type": "case_statement", "text": "case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;", "parent": 314, "children": [430, 431, 438], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 132, "column": 22}}, {"id": 430, "type": "case", "text": "case", "parent": 429, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 16}}, {"id": 431, "type": "identifier", "text": "ARG_ORIG_SRC", "parent": 429, "children": [], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 29}}, {"id": 432, "type": "call_expression", "text": "nl_cli_ct_parse_src(ct, 0, optarg)", "parent": 429, "children": [433, 434], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 50}}, {"id": 433, "type": "identifier", "text": "nl_cli_ct_parse_src", "parent": 432, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 35}}, {"id": 434, "type": "argument_list", "text": "(ct, 0, optarg)", "parent": 432, "children": [435, 436, 437], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 50}}, {"id": 435, "type": "identifier", "text": "ct", "parent": 434, "children": [], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 38}}, {"id": 436, "type": "number_literal", "text": "0", "parent": 434, "children": [], "start_point": {"row": 131, "column": 40}, "end_point": {"row": 131, "column": 41}}, {"id": 437, "type": "identifier", "text": "optarg", "parent": 434, "children": [], "start_point": {"row": 131, "column": 43}, "end_point": {"row": 131, "column": 49}}, {"id": 438, "type": "break_statement", "text": "break;", "parent": 429, "children": [439], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 22}}, {"id": 439, "type": "break", "text": "break", "parent": 438, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 21}}, {"id": 440, "type": "case_statement", "text": "case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;", "parent": 314, "children": [441, 442, 449], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 135, "column": 22}}, {"id": 441, "type": "case", "text": "case", "parent": 440, "children": [], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 16}}, {"id": 442, "type": "identifier", "text": "ARG_ORIG_SPORT", "parent": 440, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 31}}, {"id": 443, "type": "call_expression", "text": "nl_cli_ct_parse_src_port(ct, 0, optarg)", "parent": 440, "children": [444, 445], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 55}}, {"id": 444, "type": "identifier", "text": "nl_cli_ct_parse_src_port", "parent": 443, "children": [], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 40}}, {"id": 445, "type": "argument_list", "text": "(ct, 0, optarg)", "parent": 443, "children": [446, 447, 448], "start_point": {"row": 134, "column": 40}, "end_point": {"row": 134, "column": 55}}, {"id": 446, "type": "identifier", "text": "ct", "parent": 445, "children": [], "start_point": {"row": 134, "column": 41}, "end_point": {"row": 134, "column": 43}}, {"id": 447, "type": "number_literal", "text": "0", "parent": 445, "children": [], "start_point": {"row": 134, "column": 45}, "end_point": {"row": 134, "column": 46}}, {"id": 448, "type": "identifier", "text": "optarg", "parent": 445, "children": [], "start_point": {"row": 134, "column": 48}, "end_point": {"row": 134, "column": 54}}, {"id": 449, "type": "break_statement", "text": "break;", "parent": 440, "children": [450], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 22}}, {"id": 450, "type": "break", "text": "break", "parent": 449, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 21}}, {"id": 451, "type": "case_statement", "text": "case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;", "parent": 314, "children": [452, 453, 460], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 138, "column": 22}}, {"id": 452, "type": "case", "text": "case", "parent": 451, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 16}}, {"id": 453, "type": "identifier", "text": "ARG_ORIG_DST", "parent": 451, "children": [], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 29}}, {"id": 454, "type": "call_expression", "text": "nl_cli_ct_parse_dst(ct, 0, optarg)", "parent": 451, "children": [455, 456], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 50}}, {"id": 455, "type": "identifier", "text": "nl_cli_ct_parse_dst", "parent": 454, "children": [], "start_point": {"row": 137, "column": 16}, "end_point": {"row": 137, "column": 35}}, {"id": 456, "type": "argument_list", "text": "(ct, 0, optarg)", "parent": 454, "children": [457, 458, 459], "start_point": {"row": 137, "column": 35}, "end_point": {"row": 137, "column": 50}}, {"id": 457, "type": "identifier", "text": "ct", "parent": 456, "children": [], "start_point": {"row": 137, "column": 36}, "end_point": {"row": 137, "column": 38}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 456, "children": [], "start_point": {"row": 137, "column": 40}, "end_point": {"row": 137, "column": 41}}, {"id": 459, "type": "identifier", "text": "optarg", "parent": 456, "children": [], "start_point": {"row": 137, "column": 43}, "end_point": {"row": 137, "column": 49}}, {"id": 460, "type": "break_statement", "text": "break;", "parent": 451, "children": [461], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 22}}, {"id": 461, "type": "break", "text": "break", "parent": 460, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 21}}, {"id": 462, "type": "case_statement", "text": "case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;", "parent": 314, "children": [463, 464, 471], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 141, "column": 22}}, {"id": 463, "type": "case", "text": "case", "parent": 462, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 16}}, {"id": 464, "type": "identifier", "text": "ARG_ORIG_DPORT", "parent": 462, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 31}}, {"id": 465, "type": "call_expression", "text": "nl_cli_ct_parse_dst_port(ct, 0, optarg)", "parent": 462, "children": [466, 467], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 55}}, {"id": 466, "type": "identifier", "text": "nl_cli_ct_parse_dst_port", "parent": 465, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 40}}, {"id": 467, "type": "argument_list", "text": "(ct, 0, optarg)", "parent": 465, "children": [468, 469, 470], "start_point": {"row": 140, "column": 40}, "end_point": {"row": 140, "column": 55}}, {"id": 468, "type": "identifier", "text": "ct", "parent": 467, "children": [], "start_point": {"row": 140, "column": 41}, "end_point": {"row": 140, "column": 43}}, {"id": 469, "type": "number_literal", "text": "0", "parent": 467, "children": [], "start_point": {"row": 140, "column": 45}, "end_point": {"row": 140, "column": 46}}, {"id": 470, "type": "identifier", "text": "optarg", "parent": 467, "children": [], "start_point": {"row": 140, "column": 48}, "end_point": {"row": 140, "column": 54}}, {"id": 471, "type": "break_statement", "text": "break;", "parent": 462, "children": [472], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 22}}, {"id": 472, "type": "break", "text": "break", "parent": 471, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 21}}, {"id": 473, "type": "case_statement", "text": "case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;", "parent": 314, "children": [474, 475, 482], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 144, "column": 22}}, {"id": 474, "type": "case", "text": "case", "parent": 473, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 16}}, {"id": 475, "type": "identifier", "text": "ARG_REPLY_SRC", "parent": 473, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 30}}, {"id": 476, "type": "call_expression", "text": "nl_cli_ct_parse_src(ct, 1, optarg)", "parent": 473, "children": [477, 478], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 50}}, {"id": 477, "type": "identifier", "text": "nl_cli_ct_parse_src", "parent": 476, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 35}}, {"id": 478, "type": "argument_list", "text": "(ct, 1, optarg)", "parent": 476, "children": [479, 480, 481], "start_point": {"row": 143, "column": 35}, "end_point": {"row": 143, "column": 50}}, {"id": 479, "type": "identifier", "text": "ct", "parent": 478, "children": [], "start_point": {"row": 143, "column": 36}, "end_point": {"row": 143, "column": 38}}, {"id": 480, "type": "number_literal", "text": "1", "parent": 478, "children": [], "start_point": {"row": 143, "column": 40}, "end_point": {"row": 143, "column": 41}}, {"id": 481, "type": "identifier", "text": "optarg", "parent": 478, "children": [], "start_point": {"row": 143, "column": 43}, "end_point": {"row": 143, "column": 49}}, {"id": 482, "type": "break_statement", "text": "break;", "parent": 473, "children": [483], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 22}}, {"id": 483, "type": "break", "text": "break", "parent": 482, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 21}}, {"id": 484, "type": "case_statement", "text": "case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;", "parent": 314, "children": [485, 486, 493], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 147, "column": 22}}, {"id": 485, "type": "case", "text": "case", "parent": 484, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 16}}, {"id": 486, "type": "identifier", "text": "ARG_REPLY_SPORT", "parent": 484, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 32}}, {"id": 487, "type": "call_expression", "text": "nl_cli_ct_parse_src_port(ct, 1, optarg)", "parent": 484, "children": [488, 489], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 55}}, {"id": 488, "type": "identifier", "text": "nl_cli_ct_parse_src_port", "parent": 487, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 40}}, {"id": 489, "type": "argument_list", "text": "(ct, 1, optarg)", "parent": 487, "children": [490, 491, 492], "start_point": {"row": 146, "column": 40}, "end_point": {"row": 146, "column": 55}}, {"id": 490, "type": "identifier", "text": "ct", "parent": 489, "children": [], "start_point": {"row": 146, "column": 41}, "end_point": {"row": 146, "column": 43}}, {"id": 491, "type": "number_literal", "text": "1", "parent": 489, "children": [], "start_point": {"row": 146, "column": 45}, "end_point": {"row": 146, "column": 46}}, {"id": 492, "type": "identifier", "text": "optarg", "parent": 489, "children": [], "start_point": {"row": 146, "column": 48}, "end_point": {"row": 146, "column": 54}}, {"id": 493, "type": "break_statement", "text": "break;", "parent": 484, "children": [494], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 22}}, {"id": 494, "type": "break", "text": "break", "parent": 493, "children": [], "start_point": {"row": 147, "column": 16}, "end_point": {"row": 147, "column": 21}}, {"id": 495, "type": "case_statement", "text": "case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;", "parent": 314, "children": [496, 497, 504], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 150, "column": 22}}, {"id": 496, "type": "case", "text": "case", "parent": 495, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 16}}, {"id": 497, "type": "identifier", "text": "ARG_REPLY_DST", "parent": 495, "children": [], "start_point": {"row": 148, "column": 17}, "end_point": {"row": 148, "column": 30}}, {"id": 498, "type": "call_expression", "text": "nl_cli_ct_parse_dst(ct, 1, optarg)", "parent": 495, "children": [499, 500], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 50}}, {"id": 499, "type": "identifier", "text": "nl_cli_ct_parse_dst", "parent": 498, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 35}}, {"id": 500, "type": "argument_list", "text": "(ct, 1, optarg)", "parent": 498, "children": [501, 502, 503], "start_point": {"row": 149, "column": 35}, "end_point": {"row": 149, "column": 50}}, {"id": 501, "type": "identifier", "text": "ct", "parent": 500, "children": [], "start_point": {"row": 149, "column": 36}, "end_point": {"row": 149, "column": 38}}, {"id": 502, "type": "number_literal", "text": "1", "parent": 500, "children": [], "start_point": {"row": 149, "column": 40}, "end_point": {"row": 149, "column": 41}}, {"id": 503, "type": "identifier", "text": "optarg", "parent": 500, "children": [], "start_point": {"row": 149, "column": 43}, "end_point": {"row": 149, "column": 49}}, {"id": 504, "type": "break_statement", "text": "break;", "parent": 495, "children": [505], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 22}}, {"id": 505, "type": "break", "text": "break", "parent": 504, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 21}}, {"id": 506, "type": "case_statement", "text": "case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;", "parent": 314, "children": [507, 508, 515], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 153, "column": 22}}, {"id": 507, "type": "case", "text": "case", "parent": 506, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 16}}, {"id": 508, "type": "identifier", "text": "ARG_REPLY_DPORT", "parent": 506, "children": [], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 32}}, {"id": 509, "type": "call_expression", "text": "nl_cli_ct_parse_dst_port(ct, 1, optarg)", "parent": 506, "children": [510, 511], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 55}}, {"id": 510, "type": "identifier", "text": "nl_cli_ct_parse_dst_port", "parent": 509, "children": [], "start_point": {"row": 152, "column": 16}, "end_point": {"row": 152, "column": 40}}, {"id": 511, "type": "argument_list", "text": "(ct, 1, optarg)", "parent": 509, "children": [512, 513, 514], "start_point": {"row": 152, "column": 40}, "end_point": {"row": 152, "column": 55}}, {"id": 512, "type": "identifier", "text": "ct", "parent": 511, "children": [], "start_point": {"row": 152, "column": 41}, "end_point": {"row": 152, "column": 43}}, {"id": 513, "type": "number_literal", "text": "1", "parent": 511, "children": [], "start_point": {"row": 152, "column": 45}, "end_point": {"row": 152, "column": 46}}, {"id": 514, "type": "identifier", "text": "optarg", "parent": 511, "children": [], "start_point": {"row": 152, "column": 48}, "end_point": {"row": 152, "column": 54}}, {"id": 515, "type": "break_statement", "text": "break;", "parent": 506, "children": [516], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 22}}, {"id": 516, "type": "break", "text": "break", "parent": 515, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 21}}, {"id": 517, "type": "case_statement", "text": "case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;", "parent": 314, "children": [518, 519, 528], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 156, "column": 22}}, {"id": 518, "type": "case", "text": "case", "parent": 517, "children": [], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 16}}, {"id": 519, "type": "char_literal", "text": "'F'", "parent": 517, "children": [520, 521, 522], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 20}}, {"id": 520, "type": "'", "text": "'", "parent": 519, "children": [], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 18}}, {"id": 521, "type": "character", "text": "F", "parent": 519, "children": [], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 19}}, {"id": 522, "type": "'", "text": "'", "parent": 519, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 20}}, {"id": 523, "type": "call_expression", "text": "nl_cli_ct_parse_family(ct, optarg)", "parent": 517, "children": [524, 525], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 50}}, {"id": 524, "type": "identifier", "text": "nl_cli_ct_parse_family", "parent": 523, "children": [], "start_point": {"row": 155, "column": 16}, "end_point": {"row": 155, "column": 38}}, {"id": 525, "type": "argument_list", "text": "(ct, optarg)", "parent": 523, "children": [526, 527], "start_point": {"row": 155, "column": 38}, "end_point": {"row": 155, "column": 50}}, {"id": 526, "type": "identifier", "text": "ct", "parent": 525, "children": [], "start_point": {"row": 155, "column": 39}, "end_point": {"row": 155, "column": 41}}, {"id": 527, "type": "identifier", "text": "optarg", "parent": 525, "children": [], "start_point": {"row": 155, "column": 43}, "end_point": {"row": 155, "column": 49}}, {"id": 528, "type": "break_statement", "text": "break;", "parent": 517, "children": [529], "start_point": {"row": 156, "column": 16}, "end_point": {"row": 156, "column": 22}}, {"id": 529, "type": "break", "text": "break", "parent": 528, "children": [], "start_point": {"row": 156, "column": 16}, "end_point": {"row": 156, "column": 21}}, {"id": 530, "type": "case_statement", "text": "case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;", "parent": 314, "children": [531, 532, 538], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 159, "column": 22}}, {"id": 531, "type": "case", "text": "case", "parent": 530, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 16}}, {"id": 532, "type": "identifier", "text": "ARG_MARK", "parent": 530, "children": [], "start_point": {"row": 157, "column": 17}, "end_point": {"row": 157, "column": 25}}, {"id": 533, "type": "call_expression", "text": "nl_cli_ct_parse_mark(ct, optarg)", "parent": 530, "children": [534, 535], "start_point": {"row": 158, "column": 16}, "end_point": {"row": 158, "column": 48}}, {"id": 534, "type": "identifier", "text": "nl_cli_ct_parse_mark", "parent": 533, "children": [], "start_point": {"row": 158, "column": 16}, "end_point": {"row": 158, "column": 36}}, {"id": 535, "type": "argument_list", "text": "(ct, optarg)", "parent": 533, "children": [536, 537], "start_point": {"row": 158, "column": 36}, "end_point": {"row": 158, "column": 48}}, {"id": 536, "type": "identifier", "text": "ct", "parent": 535, "children": [], "start_point": {"row": 158, "column": 37}, "end_point": {"row": 158, "column": 39}}, {"id": 537, "type": "identifier", "text": "optarg", "parent": 535, "children": [], "start_point": {"row": 158, "column": 41}, "end_point": {"row": 158, "column": 47}}, {"id": 538, "type": "break_statement", "text": "break;", "parent": 530, "children": [539], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 22}}, {"id": 539, "type": "break", "text": "break", "parent": 538, "children": [], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 21}}, {"id": 540, "type": "case_statement", "text": "case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;", "parent": 314, "children": [541, 542, 548], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 162, "column": 22}}, {"id": 541, "type": "case", "text": "case", "parent": 540, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 16}}, {"id": 542, "type": "identifier", "text": "ARG_TIMEOUT", "parent": 540, "children": [], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 28}}, {"id": 543, "type": "call_expression", "text": "nl_cli_ct_parse_timeout(ct, optarg)", "parent": 540, "children": [544, 545], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 51}}, {"id": 544, "type": "identifier", "text": "nl_cli_ct_parse_timeout", "parent": 543, "children": [], "start_point": {"row": 161, "column": 16}, "end_point": {"row": 161, "column": 39}}, {"id": 545, "type": "argument_list", "text": "(ct, optarg)", "parent": 543, "children": [546, 547], "start_point": {"row": 161, "column": 39}, "end_point": {"row": 161, "column": 51}}, {"id": 546, "type": "identifier", "text": "ct", "parent": 545, "children": [], "start_point": {"row": 161, "column": 40}, "end_point": {"row": 161, "column": 42}}, {"id": 547, "type": "identifier", "text": "optarg", "parent": 545, "children": [], "start_point": {"row": 161, "column": 44}, "end_point": {"row": 161, "column": 50}}, {"id": 548, "type": "break_statement", "text": "break;", "parent": 540, "children": [549], "start_point": {"row": 162, "column": 16}, "end_point": {"row": 162, "column": 22}}, {"id": 549, "type": "break", "text": "break", "parent": 548, "children": [], "start_point": {"row": 162, "column": 16}, "end_point": {"row": 162, "column": 21}}, {"id": 550, "type": "case_statement", "text": "case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;", "parent": 314, "children": [551, 552, 558], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 165, "column": 22}}, {"id": 551, "type": "case", "text": "case", "parent": 550, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 16}}, {"id": 552, "type": "identifier", "text": "ARG_REFCNT", "parent": 550, "children": [], "start_point": {"row": 163, "column": 17}, "end_point": {"row": 163, "column": 27}}, {"id": 553, "type": "call_expression", "text": "nl_cli_ct_parse_use(ct, optarg)", "parent": 550, "children": [554, 555], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 47}}, {"id": 554, "type": "identifier", "text": "nl_cli_ct_parse_use", "parent": 553, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 35}}, {"id": 555, "type": "argument_list", "text": "(ct, optarg)", "parent": 553, "children": [556, 557], "start_point": {"row": 164, "column": 35}, "end_point": {"row": 164, "column": 47}}, {"id": 556, "type": "identifier", "text": "ct", "parent": 555, "children": [], "start_point": {"row": 164, "column": 36}, "end_point": {"row": 164, "column": 38}}, {"id": 557, "type": "identifier", "text": "optarg", "parent": 555, "children": [], "start_point": {"row": 164, "column": 40}, "end_point": {"row": 164, "column": 46}}, {"id": 558, "type": "break_statement", "text": "break;", "parent": 550, "children": [559], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 22}}, {"id": 559, "type": "break", "text": "break", "parent": 558, "children": [], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 21}}, {"id": 560, "type": "case_statement", "text": "case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;", "parent": 314, "children": [561, 562, 568], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 168, "column": 22}}, {"id": 561, "type": "case", "text": "case", "parent": 560, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 16}}, {"id": 562, "type": "identifier", "text": "ARG_FLAGS", "parent": 560, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 26}}, {"id": 563, "type": "call_expression", "text": "nl_cli_ct_parse_status(ct, optarg)", "parent": 560, "children": [564, 565], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 50}}, {"id": 564, "type": "identifier", "text": "nl_cli_ct_parse_status", "parent": 563, "children": [], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 38}}, {"id": 565, "type": "argument_list", "text": "(ct, optarg)", "parent": 563, "children": [566, 567], "start_point": {"row": 167, "column": 38}, "end_point": {"row": 167, "column": 50}}, {"id": 566, "type": "identifier", "text": "ct", "parent": 565, "children": [], "start_point": {"row": 167, "column": 39}, "end_point": {"row": 167, "column": 41}}, {"id": 567, "type": "identifier", "text": "optarg", "parent": 565, "children": [], "start_point": {"row": 167, "column": 43}, "end_point": {"row": 167, "column": 49}}, {"id": 568, "type": "break_statement", "text": "break;", "parent": 560, "children": [569], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 22}}, {"id": 569, "type": "break", "text": "break", "parent": 568, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 21}}, {"id": 570, "type": "assignment_expression", "text": "sock = nl_cli_alloc_socket()", "parent": 72, "children": [571, 572, 573], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 32}}, {"id": 571, "type": "identifier", "text": "sock", "parent": 570, "children": [], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 8}}, {"id": 572, "type": "=", "text": "=", "parent": 570, "children": [], "start_point": {"row": 172, "column": 9}, "end_point": {"row": 172, "column": 10}}, {"id": 573, "type": "call_expression", "text": "nl_cli_alloc_socket()", "parent": 570, "children": [574, 575], "start_point": {"row": 172, "column": 11}, "end_point": {"row": 172, "column": 32}}, {"id": 574, "type": "identifier", "text": "nl_cli_alloc_socket", "parent": 573, "children": [], "start_point": {"row": 172, "column": 11}, "end_point": {"row": 172, "column": 30}}, {"id": 575, "type": "argument_list", "text": "()", "parent": 573, "children": [], "start_point": {"row": 172, "column": 30}, "end_point": {"row": 172, "column": 32}}, {"id": 576, "type": "call_expression", "text": "nl_cli_connect(sock, NETLINK_NETFILTER)", "parent": 72, "children": [577, 578], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 43}}, {"id": 577, "type": "identifier", "text": "nl_cli_connect", "parent": 576, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 18}}, {"id": 578, "type": "argument_list", "text": "(sock, NETLINK_NETFILTER)", "parent": 576, "children": [579, 580], "start_point": {"row": 173, "column": 18}, "end_point": {"row": 173, "column": 43}}, {"id": 579, "type": "identifier", "text": "sock", "parent": 578, "children": [], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 173, "column": 23}}, {"id": 580, "type": "identifier", "text": "NETLINK_NETFILTER", "parent": 578, "children": [], "start_point": {"row": 173, "column": 25}, "end_point": {"row": 173, "column": 42}}, {"id": 581, "type": "assignment_expression", "text": "ct_cache = nl_cli_ct_alloc_cache(sock)", "parent": 72, "children": [582, 583, 584], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 42}}, {"id": 582, "type": "identifier", "text": "ct_cache", "parent": 581, "children": [], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 12}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 584, "type": "call_expression", "text": "nl_cli_ct_alloc_cache(sock)", "parent": 581, "children": [585, 586], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 42}}, {"id": 585, "type": "identifier", "text": "nl_cli_ct_alloc_cache", "parent": 584, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 36}}, {"id": 586, "type": "argument_list", "text": "(sock)", "parent": 584, "children": [587], "start_point": {"row": 174, "column": 36}, "end_point": {"row": 174, "column": 42}}, {"id": 587, "type": "identifier", "text": "sock", "parent": 586, "children": [], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 41}}, {"id": 588, "type": "call_expression", "text": "nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct))", "parent": 72, "children": [589, 590], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 57}}, {"id": 589, "type": "identifier", "text": "nl_cache_dump_filter", "parent": 588, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 24}}, {"id": 590, "type": "argument_list", "text": "(ct_cache, &params, OBJ_CAST(ct))", "parent": 588, "children": [591, 592, 594], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 57}}, {"id": 591, "type": "identifier", "text": "ct_cache", "parent": 590, "children": [], "start_point": {"row": 176, "column": 25}, "end_point": {"row": 176, "column": 33}}, {"id": 592, "type": "pointer_expression", "text": "&params", "parent": 590, "children": [593], "start_point": {"row": 176, "column": 35}, "end_point": {"row": 176, "column": 42}}, {"id": 593, "type": "identifier", "text": "params", "parent": 592, "children": [], "start_point": {"row": 176, "column": 36}, "end_point": {"row": 176, "column": 42}}, {"id": 594, "type": "call_expression", "text": "OBJ_CAST(ct)", "parent": 590, "children": [595, 596], "start_point": {"row": 176, "column": 44}, "end_point": {"row": 176, "column": 56}}, {"id": 595, "type": "identifier", "text": "OBJ_CAST", "parent": 594, "children": [], "start_point": {"row": 176, "column": 44}, "end_point": {"row": 176, "column": 52}}, {"id": 596, "type": "argument_list", "text": "(ct)", "parent": 594, "children": [597], "start_point": {"row": 176, "column": 52}, "end_point": {"row": 176, "column": 56}}, {"id": 597, "type": "identifier", "text": "ct", "parent": 596, "children": [], "start_point": {"row": 176, "column": 53}, "end_point": {"row": 176, "column": 55}}, {"id": 598, "type": "return_statement", "text": "return 0;", "parent": 72, "children": [599], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 13}}, {"id": 599, "type": "number_literal", "text": "0", "parent": 598, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 12}}]}, "node_categories": {"declarations": {"functions": [9, 11, 72, 74], "variables": [14, 77, 80, 86, 93, 100, 107, 132, 172], "classes": [87, 88, 94, 95, 101, 102, 108, 109, 173, 174], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": [139, 140, 141, 142, 146, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170]}, "statements": {"expressions": [16, 68, 128, 297, 304, 307, 308, 316, 324, 334, 347, 361, 365, 377, 388, 399, 412, 422, 432, 443, 454, 465, 476, 487, 498, 509, 523, 533, 543, 553, 563, 573, 576, 584, 588, 592, 594], "assignments": [125, 294, 360, 570, 581], "loops": [131], "conditionals": [12, 17, 69, 75, 79, 85, 89, 92, 96, 99, 103, 106, 110, 112, 117, 119, 122, 124, 126, 129, 134, 136, 143, 147, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 175, 178, 225, 230, 235, 240, 245, 250, 255, 260, 265, 278, 283, 288, 295, 298, 300, 301, 303, 305, 306, 309, 314, 315, 317, 318, 319, 325, 327, 328, 329, 335, 337, 338, 341, 342, 348, 350, 351, 354, 355, 362, 363, 366, 368, 371, 372, 378, 382, 383, 389, 393, 394, 400, 402, 403, 406, 407, 413, 415, 416, 419, 420, 421, 423, 425, 426, 429, 430, 431, 433, 435, 437, 440, 441, 442, 444, 446, 448, 451, 452, 453, 455, 457, 459, 462, 463, 464, 466, 468, 470, 473, 474, 475, 477, 479, 481, 484, 485, 486, 488, 490, 492, 495, 496, 497, 499, 501, 503, 506, 507, 508, 510, 512, 514, 517, 518, 524, 526, 527, 530, 531, 532, 534, 536, 537, 540, 541, 542, 544, 546, 547, 550, 551, 552, 554, 556, 557, 560, 561, 562, 564, 566, 567, 571, 574, 577, 579, 580, 582, 585, 587, 589, 591, 593, 595, 597], "returns": [598], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 19, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 71, 138, 145, 149, 182, 183, 184, 185, 190, 191, 192, 193, 198, 199, 200, 201, 206, 207, 208, 209, 214, 215, 216, 217, 222, 223, 224, 227, 228, 229, 232, 233, 234, 237, 238, 239, 242, 243, 244, 247, 248, 249, 252, 253, 254, 257, 258, 259, 262, 263, 264, 267, 268, 269, 270, 275, 276, 277, 280, 281, 282, 285, 286, 287, 290, 291, 292, 293, 302, 311, 320, 330, 343, 356, 373, 384, 395, 408, 436, 447, 458, 469, 480, 491, 502, 513, 519, 599], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [116, 121]}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "print_usage", "text_snippet": "static void print_usage(void)\n{\n printf(\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n "}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "print_usage(void)"}, {"node_id": 72, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char* argv[])\n{\n struct nl_sock* sock;\n struct nl_cache* ct_cache;\n stru"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char* argv[])"}], "class_declarations": [{"node_id": 87, "universal_type": "class", "name": "nl_sock", "text_snippet": "struct nl_sock"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 94, "universal_type": "class", "name": "nl_cache", "text_snippet": "struct nl_cache"}, {"node_id": 95, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 101, "universal_type": "class", "name": "nfnl_ct", "text_snippet": "struct nfnl_ct"}, {"node_id": 102, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 108, "universal_type": "class", "name": "nl_dump_params", "text_snippet": "struct nl_dump_params"}, {"node_id": 109, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 173, "universal_type": "class", "name": "option", "text_snippet": "struct option"}, {"node_id": 174, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <linux/netlink.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <netlink/cli/ct.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <netlink/cli/utils.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * src/nf-ct-list.c List Conntrack Entries\n *\n *\tThis library is free software; you can redistribute it and/or\n *\tmodify it under the terms of the GNU Lesser General Public\n *\tLicense as published by the Free Software Foundation version 2.1\n *\tof the License.\n *\n * Copyright (c) 2003-2009 <NAME> <<EMAIL>>\n * Copyright (c) 2007 <NAME> <<EMAIL>>\n * Copyright (c) 2007 Secure Computing Corporation\n */\n\n#include <linux/netlink.h>\n#include <netlink/cli/ct.h>\n#include <netlink/cli/utils.h>\n\nstatic void print_usage(void)\n{\n printf(\"Usage: nf-ct-list [OPTION]... [CONNTRACK ENTRY]\\n\"\n \"\\n\"\n \"Options\\n\"\n \" -f, --format=TYPE Output format { brief | details | stats }\\n\"\n \" -h, --help Show this help\\n\"\n \" -v, --version Show versioning information\\n\"\n \"\\n\"\n \"Conntrack Selection\\n\"\n \" -i, --id=NUM Identifier\\n\"\n \" -p, --proto=PROTOCOL Protocol\\n\"\n \" --tcp-state=STATE TCP connection state\\n\"\n \" --orig-src=ADDR Original source address\\n\"\n \" --orig-sport=PORT Original source port\\n\"\n \" --orig-dst=ADDR Original destination address\\n\"\n \" --orig-dport=PORT Original destination port\\n\"\n \" --reply-src=ADDR Reply source address\\n\"\n \" --reply-sport=PORT Reply source port\\n\"\n \" --reply-dst=ADDR Reply destination address\\n\"\n \" --reply-dport=PORT Reply destination port\\n\"\n \" -F, --family=FAMILY Address family\\n\"\n \" --mark=NUM Mark value\\n\"\n \" --timeout=NUM Timeout value\\n\"\n \" --refcnt=NUM Use counter value\\n\"\n \" --flags Flags\\n\");\n exit(0);\n}\n\nint main(int argc, char* argv[])\n{\n struct nl_sock* sock;\n struct nl_cache* ct_cache;\n struct nfnl_ct* ct;\n struct nl_dump_params params = {\n .dp_type = NL_DUMP_LINE,\n .dp_fd = stdout,\n };\n\n ct = nl_cli_ct_alloc();\n\n for (;;)\n {\n int c, optidx = 0;\n enum\n {\n ARG_MARK = 257,\n ARG_TCP_STATE = 258,\n ARG_ORIG_SRC,\n ARG_ORIG_SPORT,\n ARG_ORIG_DST,\n ARG_ORIG_DPORT,\n ARG_REPLY_SRC,\n ARG_REPLY_SPORT,\n ARG_REPLY_DST,\n ARG_REPLY_DPORT,\n ARG_TIMEOUT,\n ARG_REFCNT,\n ARG_FLAGS,\n };\n static struct option long_opts[] = {\n {\"format\", 1, 0, 'f'},\n {\"help\", 0, 0, 'h'},\n {\"version\", 0, 0, 'v'},\n {\"id\", 1, 0, 'i'},\n {\"proto\", 1, 0, 'p'},\n {\"tcp-state\", 1, 0, ARG_TCP_STATE},\n {\"orig-src\", 1, 0, ARG_ORIG_SRC},\n {\"orig-sport\", 1, 0, ARG_ORIG_SPORT},\n {\"orig-dst\", 1, 0, ARG_ORIG_DST},\n {\"orig-dport\", 1, 0, ARG_ORIG_DPORT},\n {\"reply-src\", 1, 0, ARG_REPLY_SRC},\n {\"reply-sport\", 1, 0, ARG_REPLY_SPORT},\n {\"reply-dst\", 1, 0, ARG_REPLY_DST},\n {\"reply-dport\", 1, 0, ARG_REPLY_DPORT},\n {\"family\", 1, 0, 'F'},\n {\"mark\", 1, 0, ARG_MARK},\n {\"timeout\", 1, 0, ARG_TIMEOUT},\n {\"refcnt\", 1, 0, ARG_REFCNT},\n {0, 0, 0, 0}};\n\n c = getopt_long(argc, argv, \"46f:hvi:p:F:\", long_opts, &optidx);\n if (c == -1)\n break;\n\n switch (c)\n {\n case '?':\n exit(NLE_INVAL);\n case '4':\n nfnl_ct_set_family(ct, AF_INET);\n break;\n case '6':\n nfnl_ct_set_family(ct, AF_INET6);\n break;\n case 'f':\n params.dp_type = nl_cli_parse_dumptype(optarg);\n break;\n case 'h':\n print_usage();\n break;\n case 'v':\n nl_cli_print_version();\n break;\n case 'i':\n nl_cli_ct_parse_id(ct, optarg);\n break;\n case 'p':\n nl_cli_ct_parse_protocol(ct, optarg);\n break;\n case ARG_TCP_STATE:\n nl_cli_ct_parse_tcp_state(ct, optarg);\n break;\n case ARG_ORIG_SRC:\n nl_cli_ct_parse_src(ct, 0, optarg);\n break;\n case ARG_ORIG_SPORT:\n nl_cli_ct_parse_src_port(ct, 0, optarg);\n break;\n case ARG_ORIG_DST:\n nl_cli_ct_parse_dst(ct, 0, optarg);\n break;\n case ARG_ORIG_DPORT:\n nl_cli_ct_parse_dst_port(ct, 0, optarg);\n break;\n case ARG_REPLY_SRC:\n nl_cli_ct_parse_src(ct, 1, optarg);\n break;\n case ARG_REPLY_SPORT:\n nl_cli_ct_parse_src_port(ct, 1, optarg);\n break;\n case ARG_REPLY_DST:\n nl_cli_ct_parse_dst(ct, 1, optarg);\n break;\n case ARG_REPLY_DPORT:\n nl_cli_ct_parse_dst_port(ct, 1, optarg);\n break;\n case 'F':\n nl_cli_ct_parse_family(ct, optarg);\n break;\n case ARG_MARK:\n nl_cli_ct_parse_mark(ct, optarg);\n break;\n case ARG_TIMEOUT:\n nl_cli_ct_parse_timeout(ct, optarg);\n break;\n case ARG_REFCNT:\n nl_cli_ct_parse_use(ct, optarg);\n break;\n case ARG_FLAGS:\n nl_cli_ct_parse_status(ct, optarg);\n break;\n }\n }\n\n sock = nl_cli_alloc_socket();\n nl_cli_connect(sock, NETLINK_NETFILTER);\n ct_cache = nl_cli_ct_alloc_cache(sock);\n\n nl_cache_dump_filter(ct_cache, &params, OBJ_CAST(ct));\n\n return 0;\n}\n"}
80,723
c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define BUFSIZE 1024 void error(char *msg) { perror(msg); exit(1); } int main(int argc, char **argv) { int sockfd; int portno; int clientlen; struct sockaddr_in serveraddr; struct sockaddr_in clientaddr; struct hostent *hostp; char buf[BUFSIZE]; char *hostaddrp; int optval; int n; if (argc != 2) { fprintf(stderr, "usage: %s <port>\n", argv[0]); exit(1); } portno = atoi(argv[1]); sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd < 0) error("failed to open socket"); optval = 1; setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int)); bzero((char *) &serveraddr, sizeof(serveraddr)); serveraddr.sin_family = AF_INET; serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); serveraddr.sin_port = htons((unsigned short)portno); fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr)); if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error("binding failure"); clientlen = sizeof(clientaddr); while (1) { bzero(buf, BUFSIZE); n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen); if (n < 0) error("fail in recvfrom"); hostaddrp = inet_ntoa(clientaddr.sin_addr); if (hostaddrp == NULL) error("failure to inet_ntoa\n"); printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf); } }
30.8
50
(translation_unit) "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <netdb.h>\n#include <sys/types.h> \n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\n#define BUFSIZE 1024\n\nvoid error(char *msg) {\n perror(msg);\n exit(1);\n}\n\nint main(int argc, char **argv) {\n int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in serveraddr;\n struct sockaddr_in clientaddr;\n struct hostent *hostp;\n char buf[BUFSIZE];\n char *hostaddrp;\n int optval;\n int n;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s <port>\n", argv[0]);\n exit(1);\n }\n portno = atoi(argv[1]);\n\n sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if (sockfd < 0) error("failed to open socket");\n\n optval = 1;\n setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));\n\n bzero((char *) &serveraddr, sizeof(serveraddr));\n serveraddr.sin_family = AF_INET;\n serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);\n serveraddr.sin_port = htons((unsigned short)portno);\n\n fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr));\n\n if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error("binding failure");\n\n clientlen = sizeof(clientaddr);\n while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error("fail in recvfrom");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error("failure to inet_ntoa\n");\n printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);\n }\n}\n\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <netdb.h>\n" (#include) "#include" (system_lib_string) "<netdb.h>" (preproc_include) "#include <sys/types.h>" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/socket.h>\n" (#include) "#include" (system_lib_string) "<sys/socket.h>" (preproc_include) "#include <netinet/in.h>\n" (#include) "#include" (system_lib_string) "<netinet/in.h>" (preproc_include) "#include <arpa/inet.h>\n" (#include) "#include" (system_lib_string) "<arpa/inet.h>" (preproc_def) "#define BUFSIZE 1024\n" (#define) "#define" (identifier) "BUFSIZE" (preproc_arg) "1024" (function_definition) "void error(char *msg) {\n perror(msg);\n exit(1);\n}" (primitive_type) "void" (function_declarator) "error(char *msg)" (identifier) "error" (parameter_list) "(char *msg)" (() "(" (parameter_declaration) "char *msg" (primitive_type) "char" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (compound_statement) "{\n perror(msg);\n exit(1);\n}" ({) "{" (expression_statement) "perror(msg);" (call_expression) "perror(msg)" (identifier) "perror" (argument_list) "(msg)" (() "(" (identifier) "msg" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "int main(int argc, char **argv) {\n int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in serveraddr;\n struct sockaddr_in clientaddr;\n struct hostent *hostp;\n char buf[BUFSIZE];\n char *hostaddrp;\n int optval;\n int n;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s <port>\n", argv[0]);\n exit(1);\n }\n portno = atoi(argv[1]);\n\n sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if (sockfd < 0) error("failed to open socket");\n\n optval = 1;\n setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));\n\n bzero((char *) &serveraddr, sizeof(serveraddr));\n serveraddr.sin_family = AF_INET;\n serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);\n serveraddr.sin_port = htons((unsigned short)portno);\n\n fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr));\n\n if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error("binding failure");\n\n clientlen = sizeof(clientaddr);\n while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error("fail in recvfrom");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error("failure to inet_ntoa\n");\n printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);\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 int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in serveraddr;\n struct sockaddr_in clientaddr;\n struct hostent *hostp;\n char buf[BUFSIZE];\n char *hostaddrp;\n int optval;\n int n;\n\n if (argc != 2) {\n fprintf(stderr, "usage: %s <port>\n", argv[0]);\n exit(1);\n }\n portno = atoi(argv[1]);\n\n sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if (sockfd < 0) error("failed to open socket");\n\n optval = 1;\n setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));\n\n bzero((char *) &serveraddr, sizeof(serveraddr));\n serveraddr.sin_family = AF_INET;\n serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);\n serveraddr.sin_port = htons((unsigned short)portno);\n\n fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr));\n\n if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error("binding failure");\n\n clientlen = sizeof(clientaddr);\n while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error("fail in recvfrom");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error("failure to inet_ntoa\n");\n printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);\n }\n}" ({) "{" (declaration) "int sockfd;" (primitive_type) "int" (identifier) "sockfd" (;) ";" (declaration) "int portno;" (primitive_type) "int" (identifier) "portno" (;) ";" (declaration) "int clientlen;" (primitive_type) "int" (identifier) "clientlen" (;) ";" (declaration) "struct sockaddr_in serveraddr;" (struct_specifier) "struct sockaddr_in" (struct) "struct" (type_identifier) "sockaddr_in" (identifier) "serveraddr" (;) ";" (declaration) "struct sockaddr_in clientaddr;" (struct_specifier) "struct sockaddr_in" (struct) "struct" (type_identifier) "sockaddr_in" (identifier) "clientaddr" (;) ";" (declaration) "struct hostent *hostp;" (struct_specifier) "struct hostent" (struct) "struct" (type_identifier) "hostent" (pointer_declarator) "*hostp" (*) "*" (identifier) "hostp" (;) ";" (declaration) "char buf[BUFSIZE];" (primitive_type) "char" (array_declarator) "buf[BUFSIZE]" (identifier) "buf" ([) "[" (identifier) "BUFSIZE" (]) "]" (;) ";" (declaration) "char *hostaddrp;" (primitive_type) "char" (pointer_declarator) "*hostaddrp" (*) "*" (identifier) "hostaddrp" (;) ";" (declaration) "int optval;" (primitive_type) "int" (identifier) "optval" (;) ";" (declaration) "int n;" (primitive_type) "int" (identifier) "n" (;) ";" (if_statement) "if (argc != 2) {\n fprintf(stderr, "usage: %s <port>\n", argv[0]);\n exit(1);\n }" (if) "if" (parenthesized_expression) "(argc != 2)" (() "(" (binary_expression) "argc != 2" (identifier) "argc" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf(stderr, "usage: %s <port>\n", argv[0]);\n exit(1);\n }" ({) "{" (expression_statement) "fprintf(stderr, "usage: %s <port>\n", argv[0]);" (call_expression) "fprintf(stderr, "usage: %s <port>\n", argv[0])" (identifier) "fprintf" (argument_list) "(stderr, "usage: %s <port>\n", argv[0])" (() "(" (identifier) "stderr" (,) "," (string_literal) ""usage: %s <port>\n"" (") """ (string_content) "usage: %s <port>" (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" ()) ")" (;) ";" (}) "}" (expression_statement) "portno = atoi(argv[1]);" (assignment_expression) "portno = atoi(argv[1])" (identifier) "portno" (=) "=" (call_expression) "atoi(argv[1])" (identifier) "atoi" (argument_list) "(argv[1])" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (expression_statement) "sockfd = socket(AF_INET, SOCK_DGRAM, 0);" (assignment_expression) "sockfd = socket(AF_INET, SOCK_DGRAM, 0)" (identifier) "sockfd" (=) "=" (call_expression) "socket(AF_INET, SOCK_DGRAM, 0)" (identifier) "socket" (argument_list) "(AF_INET, SOCK_DGRAM, 0)" (() "(" (identifier) "AF_INET" (,) "," (identifier) "SOCK_DGRAM" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (sockfd < 0) error("failed to open socket");" (if) "if" (parenthesized_expression) "(sockfd < 0)" (() "(" (binary_expression) "sockfd < 0" (identifier) "sockfd" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "error("failed to open socket");" (call_expression) "error("failed to open socket")" (identifier) "error" (argument_list) "("failed to open socket")" (() "(" (string_literal) ""failed to open socket"" (") """ (string_content) "failed to open socket" (") """ ()) ")" (;) ";" (expression_statement) "optval = 1;" (assignment_expression) "optval = 1" (identifier) "optval" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));" (call_expression) "setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int))" (identifier) "setsockopt" (argument_list) "(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int))" (() "(" (identifier) "sockfd" (,) "," (identifier) "SOL_SOCKET" (,) "," (identifier) "SO_REUSEADDR" (,) "," (cast_expression) "(const void *)&optval" (() "(" (type_descriptor) "const void *" (type_qualifier) "const" (const) "const" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&optval" (&) "&" (identifier) "optval" (,) "," (sizeof_expression) "sizeof(int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (expression_statement) "bzero((char *) &serveraddr, sizeof(serveraddr));" (call_expression) "bzero((char *) &serveraddr, sizeof(serveraddr))" (identifier) "bzero" (argument_list) "((char *) &serveraddr, sizeof(serveraddr))" (() "(" (cast_expression) "(char *) &serveraddr" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&serveraddr" (&) "&" (identifier) "serveraddr" (,) "," (sizeof_expression) "sizeof(serveraddr)" (sizeof) "sizeof" (parenthesized_expression) "(serveraddr)" (() "(" (identifier) "serveraddr" ()) ")" ()) ")" (;) ";" (expression_statement) "serveraddr.sin_family = AF_INET;" (assignment_expression) "serveraddr.sin_family = AF_INET" (field_expression) "serveraddr.sin_family" (identifier) "serveraddr" (.) "." (field_identifier) "sin_family" (=) "=" (identifier) "AF_INET" (;) ";" (expression_statement) "serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);" (assignment_expression) "serveraddr.sin_addr.s_addr = htonl(INADDR_ANY)" (field_expression) "serveraddr.sin_addr.s_addr" (field_expression) "serveraddr.sin_addr" (identifier) "serveraddr" (.) "." (field_identifier) "sin_addr" (.) "." (field_identifier) "s_addr" (=) "=" (call_expression) "htonl(INADDR_ANY)" (identifier) "htonl" (argument_list) "(INADDR_ANY)" (() "(" (identifier) "INADDR_ANY" ()) ")" (;) ";" (expression_statement) "serveraddr.sin_port = htons((unsigned short)portno);" (assignment_expression) "serveraddr.sin_port = htons((unsigned short)portno)" (field_expression) "serveraddr.sin_port" (identifier) "serveraddr" (.) "." (field_identifier) "sin_port" (=) "=" (call_expression) "htons((unsigned short)portno)" (identifier) "htons" (argument_list) "((unsigned short)portno)" (() "(" (cast_expression) "(unsigned short)portno" (() "(" (type_descriptor) "unsigned short" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" ()) ")" (identifier) "portno" ()) ")" (;) ";" (expression_statement) "fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr));" (call_expression) "fprintf(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr))" (identifier) "fprintf" (argument_list) "(stdout, "listening to %d on %s \n", portno, inet_ntoa(serveraddr.sin_addr))" (() "(" (identifier) "stdout" (,) "," (string_literal) ""listening to %d on %s \n"" (") """ (string_content) "listening to %d on %s " (escape_sequence) "\n" (") """ (,) "," (identifier) "portno" (,) "," (call_expression) "inet_ntoa(serveraddr.sin_addr)" (identifier) "inet_ntoa" (argument_list) "(serveraddr.sin_addr)" (() "(" (field_expression) "serveraddr.sin_addr" (identifier) "serveraddr" (.) "." (field_identifier) "sin_addr" ()) ")" ()) ")" (;) ";" (if_statement) "if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error("binding failure");" (if) "if" (parenthesized_expression) "(bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0)" (() "(" (binary_expression) "bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0" (call_expression) "bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr))" (identifier) "bind" (argument_list) "(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr))" (() "(" (identifier) "sockfd" (,) "," (cast_expression) "(struct sockaddr *) &serveraddr" (() "(" (type_descriptor) "struct sockaddr *" (struct_specifier) "struct sockaddr" (struct) "struct" (type_identifier) "sockaddr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&serveraddr" (&) "&" (identifier) "serveraddr" (,) "," (sizeof_expression) "sizeof(serveraddr)" (sizeof) "sizeof" (parenthesized_expression) "(serveraddr)" (() "(" (identifier) "serveraddr" ()) ")" ()) ")" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "error("binding failure");" (call_expression) "error("binding failure")" (identifier) "error" (argument_list) "("binding failure")" (() "(" (string_literal) ""binding failure"" (") """ (string_content) "binding failure" (") """ ()) ")" (;) ";" (expression_statement) "clientlen = sizeof(clientaddr);" (assignment_expression) "clientlen = sizeof(clientaddr)" (identifier) "clientlen" (=) "=" (sizeof_expression) "sizeof(clientaddr)" (sizeof) "sizeof" (parenthesized_expression) "(clientaddr)" (() "(" (identifier) "clientaddr" ()) ")" (;) ";" (while_statement) "while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error("fail in recvfrom");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error("failure to inet_ntoa\n");\n printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error("fail in recvfrom");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error("failure to inet_ntoa\n");\n printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);\n }" ({) "{" (expression_statement) "bzero(buf, BUFSIZE);" (call_expression) "bzero(buf, BUFSIZE)" (identifier) "bzero" (argument_list) "(buf, BUFSIZE)" (() "(" (identifier) "buf" (,) "," (identifier) "BUFSIZE" ()) ")" (;) ";" (expression_statement) "n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);" (assignment_expression) "n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)" (identifier) "n" (=) "=" (call_expression) "recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)" (identifier) "recvfrom" (argument_list) "(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)" (() "(" (identifier) "sockfd" (,) "," (identifier) "buf" (,) "," (identifier) "BUFSIZE" (,) "," (number_literal) "0" (,) "," (cast_expression) "(struct sockaddr *) &clientaddr" (() "(" (type_descriptor) "struct sockaddr *" (struct_specifier) "struct sockaddr" (struct) "struct" (type_identifier) "sockaddr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&clientaddr" (&) "&" (identifier) "clientaddr" (,) "," (pointer_expression) "&clientlen" (&) "&" (identifier) "clientlen" ()) ")" (;) ";" (if_statement) "if (n < 0) error("fail in recvfrom");" (if) "if" (parenthesized_expression) "(n < 0)" (() "(" (binary_expression) "n < 0" (identifier) "n" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "error("fail in recvfrom");" (call_expression) "error("fail in recvfrom")" (identifier) "error" (argument_list) "("fail in recvfrom")" (() "(" (string_literal) ""fail in recvfrom"" (") """ (string_content) "fail in recvfrom" (") """ ()) ")" (;) ";" (expression_statement) "hostaddrp = inet_ntoa(clientaddr.sin_addr);" (assignment_expression) "hostaddrp = inet_ntoa(clientaddr.sin_addr)" (identifier) "hostaddrp" (=) "=" (call_expression) "inet_ntoa(clientaddr.sin_addr)" (identifier) "inet_ntoa" (argument_list) "(clientaddr.sin_addr)" (() "(" (field_expression) "clientaddr.sin_addr" (identifier) "clientaddr" (.) "." (field_identifier) "sin_addr" ()) ")" (;) ";" (if_statement) "if (hostaddrp == NULL) error("failure to inet_ntoa\n");" (if) "if" (parenthesized_expression) "(hostaddrp == NULL)" (() "(" (binary_expression) "hostaddrp == NULL" (identifier) "hostaddrp" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "error("failure to inet_ntoa\n");" (call_expression) "error("failure to inet_ntoa\n")" (identifier) "error" (argument_list) "("failure to inet_ntoa\n")" (() "(" (string_literal) ""failure to inet_ntoa\n"" (") """ (string_content) "failure to inet_ntoa" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf);" (call_expression) "printf("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf)" (identifier) "printf" (argument_list) "("\nreceived %d/%d bytes from %s\n%s\n.\n", strlen(buf), n, hostaddrp, buf)" (() "(" (string_literal) ""\nreceived %d/%d bytes from %s\n%s\n.\n"" (") """ (escape_sequence) "\n" (string_content) "received %d/%d bytes from %s" (escape_sequence) "\n" (string_content) "%s" (escape_sequence) "\n" (string_content) "." (escape_sequence) "\n" (") """ (,) "," (call_expression) "strlen(buf)" (identifier) "strlen" (argument_list) "(buf)" (() "(" (identifier) "buf" ()) ")" (,) "," (identifier) "n" (,) "," (identifier) "hostaddrp" (,) "," (identifier) "buf" ()) ")" (;) ";" (}) "}" (}) "}"
558
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 30.8, "nodes": 336, "errors": 0, "source_hash": "f69e2bf8b0c4c74dee56963c23a7bf4aa9b57f0f0efdf0fa36fe3e6fa56b331a", "categorized_nodes": 244}, "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 <unistd.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": "<unistd.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"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 <netdb.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": "<netdb.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <sys/types.h>", "parent": null, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 22}}, {"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": "<sys/types.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <sys/socket.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": "<sys/socket.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 21, "type": "preproc_include", "text": "#include <netinet/in.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": "<netinet/in.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 23}}, {"id": 24, "type": "preproc_include", "text": "#include <arpa/inet.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": "<arpa/inet.h>", "parent": 24, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 22}}, {"id": 27, "type": "preproc_def", "text": "#define BUFSIZE 1024\n", "parent": null, "children": [28, 29, 30], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 29, "type": "identifier", "text": "BUFSIZE", "parent": 27, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 30, "type": "preproc_arg", "text": "1024", "parent": 27, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 20}}, {"id": 31, "type": "function_definition", "text": "void error(char *msg) {\n perror(msg);\n exit(1);\n}", "parent": null, "children": [32, 33], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"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": "error(char *msg)", "parent": 31, "children": [34, 35], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 21}}, {"id": 34, "type": "identifier", "text": "error", "parent": 33, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 10}}, {"id": 35, "type": "parameter_list", "text": "(char *msg)", "parent": 33, "children": [36], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 21}}, {"id": 36, "type": "parameter_declaration", "text": "char *msg", "parent": 35, "children": [37, 38], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 38, "type": "pointer_declarator", "text": "*msg", "parent": 36, "children": [39, 40], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 20}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 40, "type": "identifier", "text": "msg", "parent": 38, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 20}}, {"id": 41, "type": "call_expression", "text": "perror(msg)", "parent": 31, "children": [42, 43], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 13}}, {"id": 42, "type": "identifier", "text": "perror", "parent": 41, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 43, "type": "argument_list", "text": "(msg)", "parent": 41, "children": [44], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 44, "type": "identifier", "text": "msg", "parent": 43, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 12}}, {"id": 45, "type": "call_expression", "text": "exit(1)", "parent": 31, "children": [46, 47], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 9}}, {"id": 46, "type": "identifier", "text": "exit", "parent": 45, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 6}}, {"id": 47, "type": "argument_list", "text": "(1)", "parent": 45, "children": [48], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 9}}, {"id": 48, "type": "number_literal", "text": "1", "parent": 47, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 8}}, {"id": 49, "type": "function_definition", "text": "int main(int argc, char **argv) {\n int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in serveraddr;\n struct sockaddr_in clientaddr;\n struct hostent *hostp;\n char buf[BUFSIZE];\n char *hostaddrp;\n int optval;\n int n;\n\n if (argc != 2) {\n fprintf(stderr, \"usage: %s <port>\\n\", argv[0]);\n exit(1);\n }\n portno = atoi(argv[1]);\n\n sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if (sockfd < 0) error(\"failed to open socket\");\n\n optval = 1;\n setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));\n\n bzero((char *) &serveraddr, sizeof(serveraddr));\n serveraddr.sin_family = AF_INET;\n serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);\n serveraddr.sin_port = htons((unsigned short)portno);\n\n fprintf(stdout, \"listening to %d on %s \\n\", portno, inet_ntoa(serveraddr.sin_addr));\n\n if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error(\"binding failure\");\n\n clientlen = sizeof(clientaddr);\n while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error(\"fail in recvfrom\");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error(\"failure to inet_ntoa\\n\");\n printf(\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\", strlen(buf), n, hostaddrp, buf);\n }\n}", "parent": null, "children": [50, 51], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 3}}, {"id": 51, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 49, "children": [52, 53], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 31}}, {"id": 52, "type": "identifier", "text": "main", "parent": 51, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 8}}, {"id": 53, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 51, "children": [54, 57], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 31}}, {"id": 54, "type": "parameter_declaration", "text": "int argc", "parent": 53, "children": [55, 56], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 17}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 12}}, {"id": 56, "type": "identifier", "text": "argc", "parent": 54, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 17}}, {"id": 57, "type": "parameter_declaration", "text": "char **argv", "parent": 53, "children": [58, 59], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 30}}, {"id": 58, "type": "primitive_type", "text": "char", "parent": 57, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 23}}, {"id": 59, "type": "pointer_declarator", "text": "**argv", "parent": 57, "children": [60, 61], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 30}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 61, "type": "pointer_declarator", "text": "*argv", "parent": 59, "children": [62, 63], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 30}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 26}}, {"id": 63, "type": "identifier", "text": "argv", "parent": 61, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 30}}, {"id": 64, "type": "declaration", "text": "int sockfd;", "parent": 49, "children": [65, 66], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 13}}, {"id": 65, "type": "primitive_type", "text": "int", "parent": 64, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 5}}, {"id": 66, "type": "identifier", "text": "sockfd", "parent": 64, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 12}}, {"id": 67, "type": "declaration", "text": "int portno;", "parent": 49, "children": [68, 69], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 13}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 5}}, {"id": 69, "type": "identifier", "text": "portno", "parent": 67, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 12}}, {"id": 70, "type": "declaration", "text": "int clientlen;", "parent": 49, "children": [71, 72], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 16}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 5}}, {"id": 72, "type": "identifier", "text": "clientlen", "parent": 70, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 15}}, {"id": 73, "type": "declaration", "text": "struct sockaddr_in serveraddr;", "parent": 49, "children": [74, 77], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 32}}, {"id": 74, "type": "struct_specifier", "text": "struct sockaddr_in", "parent": 73, "children": [75, 76], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 75, "type": "struct", "text": "struct", "parent": 74, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 8}}, {"id": 76, "type": "type_identifier", "text": "sockaddr_in", "parent": 74, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 20}}, {"id": 77, "type": "identifier", "text": "serveraddr", "parent": 73, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 31}}, {"id": 78, "type": "declaration", "text": "struct sockaddr_in clientaddr;", "parent": 49, "children": [79, 82], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 32}}, {"id": 79, "type": "struct_specifier", "text": "struct sockaddr_in", "parent": 78, "children": [80, 81], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 20}}, {"id": 80, "type": "struct", "text": "struct", "parent": 79, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 8}}, {"id": 81, "type": "type_identifier", "text": "sockaddr_in", "parent": 79, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 20}}, {"id": 82, "type": "identifier", "text": "clientaddr", "parent": 78, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 31}}, {"id": 83, "type": "declaration", "text": "struct hostent *hostp;", "parent": 49, "children": [84, 87], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 24}}, {"id": 84, "type": "struct_specifier", "text": "struct hostent", "parent": 83, "children": [85, 86], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 16}}, {"id": 85, "type": "struct", "text": "struct", "parent": 84, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 8}}, {"id": 86, "type": "type_identifier", "text": "hostent", "parent": 84, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 16}}, {"id": 87, "type": "pointer_declarator", "text": "*hostp", "parent": 83, "children": [88, 89], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 23}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 18}}, {"id": 89, "type": "identifier", "text": "hostp", "parent": 87, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 23}}, {"id": 90, "type": "declaration", "text": "char buf[BUFSIZE];", "parent": 49, "children": [91, 92], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 20}}, {"id": 91, "type": "primitive_type", "text": "char", "parent": 90, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 92, "type": "array_declarator", "text": "buf[BUFSIZE]", "parent": 90, "children": [93, 94], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 19}}, {"id": 93, "type": "identifier", "text": "buf", "parent": 92, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 10}}, {"id": 94, "type": "identifier", "text": "BUFSIZE", "parent": 92, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 18}}, {"id": 95, "type": "declaration", "text": "char *hostaddrp;", "parent": 49, "children": [96, 97], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 18}}, {"id": 96, "type": "primitive_type", "text": "char", "parent": 95, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 6}}, {"id": 97, "type": "pointer_declarator", "text": "*hostaddrp", "parent": 95, "children": [98, 99], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 17}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 8}}, {"id": 99, "type": "identifier", "text": "hostaddrp", "parent": 97, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 17}}, {"id": 100, "type": "declaration", "text": "int optval;", "parent": 49, "children": [101, 102], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 5}}, {"id": 102, "type": "identifier", "text": "optval", "parent": 100, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 12}}, {"id": 103, "type": "declaration", "text": "int n;", "parent": 49, "children": [104, 105], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 8}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 105, "type": "identifier", "text": "n", "parent": 103, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 7}}, {"id": 106, "type": "if_statement", "text": "if (argc != 2) {\n fprintf(stderr, \"usage: %s <port>\\n\", argv[0]);\n exit(1);\n }", "parent": 49, "children": [107], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 32, "column": 3}}, {"id": 107, "type": "parenthesized_expression", "text": "(argc != 2)", "parent": 106, "children": [108], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 16}}, {"id": 108, "type": "binary_expression", "text": "argc != 2", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 15}}, {"id": 109, "type": "identifier", "text": "argc", "parent": 108, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 10}}, {"id": 110, "type": "!=", "text": "!=", "parent": 108, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 13}}, {"id": 111, "type": "number_literal", "text": "2", "parent": 108, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 112, "type": "call_expression", "text": "fprintf(stderr, \"usage: %s <port>\\n\", argv[0])", "parent": 106, "children": [113, 114], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 50}}, {"id": 113, "type": "identifier", "text": "fprintf", "parent": 112, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 11}}, {"id": 114, "type": "argument_list", "text": "(stderr, \"usage: %s <port>\\n\", argv[0])", "parent": 112, "children": [115, 116, 118], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 50}}, {"id": 115, "type": "identifier", "text": "stderr", "parent": 114, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 18}}, {"id": 116, "type": "string_literal", "text": "\"usage: %s <port>\\n\"", "parent": 114, "children": [117], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 40}}, {"id": 117, "type": "escape_sequence", "text": "\\n", "parent": 116, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 39}}, {"id": 118, "type": "subscript_expression", "text": "argv[0]", "parent": 114, "children": [119, 120], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 49}}, {"id": 119, "type": "identifier", "text": "argv", "parent": 118, "children": [], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 46}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 118, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 48}}, {"id": 121, "type": "call_expression", "text": "exit(1)", "parent": 106, "children": [122, 123], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 122, "type": "identifier", "text": "exit", "parent": 121, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 123, "type": "argument_list", "text": "(1)", "parent": 121, "children": [124], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 11}}, {"id": 124, "type": "number_literal", "text": "1", "parent": 123, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 10}}, {"id": 125, "type": "assignment_expression", "text": "portno = atoi(argv[1])", "parent": 49, "children": [126, 127, 128], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 24}}, {"id": 126, "type": "identifier", "text": "portno", "parent": 125, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 8}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 10}}, {"id": 128, "type": "call_expression", "text": "atoi(argv[1])", "parent": 125, "children": [129, 130], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 24}}, {"id": 129, "type": "identifier", "text": "atoi", "parent": 128, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 15}}, {"id": 130, "type": "argument_list", "text": "(argv[1])", "parent": 128, "children": [131], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 24}}, {"id": 131, "type": "subscript_expression", "text": "argv[1]", "parent": 130, "children": [132, 133], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 23}}, {"id": 132, "type": "identifier", "text": "argv", "parent": 131, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 133, "type": "number_literal", "text": "1", "parent": 131, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 134, "type": "assignment_expression", "text": "sockfd = socket(AF_INET, SOCK_DGRAM, 0)", "parent": 49, "children": [135, 136, 137], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 41}}, {"id": 135, "type": "identifier", "text": "sockfd", "parent": 134, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 8}}, {"id": 136, "type": "=", "text": "=", "parent": 134, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 137, "type": "call_expression", "text": "socket(AF_INET, SOCK_DGRAM, 0)", "parent": 134, "children": [138, 139], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 41}}, {"id": 138, "type": "identifier", "text": "socket", "parent": 137, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 17}}, {"id": 139, "type": "argument_list", "text": "(AF_INET, SOCK_DGRAM, 0)", "parent": 137, "children": [140, 141, 142], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 41}}, {"id": 140, "type": "identifier", "text": "AF_INET", "parent": 139, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 25}}, {"id": 141, "type": "identifier", "text": "SOCK_DGRAM", "parent": 139, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 37}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 139, "children": [], "start_point": {"row": 35, "column": 39}, "end_point": {"row": 35, "column": 40}}, {"id": 143, "type": "if_statement", "text": "if (sockfd < 0) error(\"failed to open socket\");", "parent": 49, "children": [144], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 49}}, {"id": 144, "type": "parenthesized_expression", "text": "(sockfd < 0)", "parent": 143, "children": [145], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 17}}, {"id": 145, "type": "binary_expression", "text": "sockfd < 0", "parent": 144, "children": [146, 147, 148], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 16}}, {"id": 146, "type": "identifier", "text": "sockfd", "parent": 145, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 12}}, {"id": 147, "type": "<", "text": "<", "parent": 145, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 145, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 149, "type": "call_expression", "text": "error(\"failed to open socket\")", "parent": 143, "children": [150, 151], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 48}}, {"id": 150, "type": "identifier", "text": "error", "parent": 149, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 23}}, {"id": 151, "type": "argument_list", "text": "(\"failed to open socket\")", "parent": 149, "children": [152], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 48}}, {"id": 152, "type": "string_literal", "text": "\"failed to open socket\"", "parent": 151, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 47}}, {"id": 153, "type": "assignment_expression", "text": "optval = 1", "parent": 49, "children": [154, 155, 156], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 12}}, {"id": 154, "type": "identifier", "text": "optval", "parent": 153, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 8}}, {"id": 155, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 156, "type": "number_literal", "text": "1", "parent": 153, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 12}}, {"id": 157, "type": "call_expression", "text": "setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int))", "parent": 49, "children": [158, 159], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 83}}, {"id": 158, "type": "identifier", "text": "setsockopt", "parent": 157, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 12}}, {"id": 159, "type": "argument_list", "text": "(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int))", "parent": 157, "children": [160, 161, 162, 163, 170], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 83}}, {"id": 160, "type": "identifier", "text": "sockfd", "parent": 159, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 19}}, {"id": 161, "type": "identifier", "text": "SOL_SOCKET", "parent": 159, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 31}}, {"id": 162, "type": "identifier", "text": "SO_REUSEADDR", "parent": 159, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 45}}, {"id": 163, "type": "cast_expression", "text": "(const void *)&optval", "parent": 159, "children": [164, 168], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 68}}, {"id": 164, "type": "type_descriptor", "text": "const void *", "parent": 163, "children": [165, 166], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 60}}, {"id": 165, "type": "primitive_type", "text": "void", "parent": 164, "children": [], "start_point": {"row": 39, "column": 54}, "end_point": {"row": 39, "column": 58}}, {"id": 166, "type": "abstract_pointer_declarator", "text": "*", "parent": 164, "children": [167], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 60}}, {"id": 167, "type": "*", "text": "*", "parent": 166, "children": [], "start_point": {"row": 39, "column": 59}, "end_point": {"row": 39, "column": 60}}, {"id": 168, "type": "pointer_expression", "text": "&optval", "parent": 163, "children": [169], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 68}}, {"id": 169, "type": "identifier", "text": "optval", "parent": 168, "children": [], "start_point": {"row": 39, "column": 62}, "end_point": {"row": 39, "column": 68}}, {"id": 170, "type": "sizeof_expression", "text": "sizeof(int)", "parent": 159, "children": [171], "start_point": {"row": 39, "column": 71}, "end_point": {"row": 39, "column": 82}}, {"id": 171, "type": "type_descriptor", "text": "int", "parent": 170, "children": [172], "start_point": {"row": 39, "column": 78}, "end_point": {"row": 39, "column": 81}}, {"id": 172, "type": "primitive_type", "text": "int", "parent": 171, "children": [], "start_point": {"row": 39, "column": 78}, "end_point": {"row": 39, "column": 81}}, {"id": 173, "type": "call_expression", "text": "bzero((char *) &serveraddr, sizeof(serveraddr))", "parent": 49, "children": [174, 175], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 49}}, {"id": 174, "type": "identifier", "text": "bzero", "parent": 173, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 7}}, {"id": 175, "type": "argument_list", "text": "((char *) &serveraddr, sizeof(serveraddr))", "parent": 173, "children": [176, 183], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 49}}, {"id": 176, "type": "cast_expression", "text": "(char *) &serveraddr", "parent": 175, "children": [177, 181], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 28}}, {"id": 177, "type": "type_descriptor", "text": "char *", "parent": 176, "children": [178, 179], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 178, "type": "primitive_type", "text": "char", "parent": 177, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 13}}, {"id": 179, "type": "abstract_pointer_declarator", "text": "*", "parent": 177, "children": [180], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 181, "type": "pointer_expression", "text": "&serveraddr", "parent": 176, "children": [182], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 28}}, {"id": 182, "type": "identifier", "text": "serveraddr", "parent": 181, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 28}}, {"id": 183, "type": "sizeof_expression", "text": "sizeof(serveraddr)", "parent": 175, "children": [184], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 48}}, {"id": 184, "type": "parenthesized_expression", "text": "(serveraddr)", "parent": 183, "children": [185], "start_point": {"row": 41, "column": 36}, "end_point": {"row": 41, "column": 48}}, {"id": 185, "type": "identifier", "text": "serveraddr", "parent": 184, "children": [], "start_point": {"row": 41, "column": 37}, "end_point": {"row": 41, "column": 47}}, {"id": 186, "type": "assignment_expression", "text": "serveraddr.sin_family = AF_INET", "parent": 49, "children": [187, 190, 191], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 33}}, {"id": 187, "type": "field_expression", "text": "serveraddr.sin_family", "parent": 186, "children": [188, 189], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 23}}, {"id": 188, "type": "identifier", "text": "serveraddr", "parent": 187, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 12}}, {"id": 189, "type": "field_identifier", "text": "sin_family", "parent": 187, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 23}}, {"id": 190, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 25}}, {"id": 191, "type": "identifier", "text": "AF_INET", "parent": 186, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 33}}, {"id": 192, "type": "assignment_expression", "text": "serveraddr.sin_addr.s_addr = htonl(INADDR_ANY)", "parent": 49, "children": [193, 198, 199], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 48}}, {"id": 193, "type": "field_expression", "text": "serveraddr.sin_addr.s_addr", "parent": 192, "children": [194, 197], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 28}}, {"id": 194, "type": "field_expression", "text": "serveraddr.sin_addr", "parent": 193, "children": [195, 196], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 21}}, {"id": 195, "type": "identifier", "text": "serveraddr", "parent": 194, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 12}}, {"id": 196, "type": "field_identifier", "text": "sin_addr", "parent": 194, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 21}}, {"id": 197, "type": "field_identifier", "text": "s_addr", "parent": 193, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 28}}, {"id": 198, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 30}}, {"id": 199, "type": "call_expression", "text": "htonl(INADDR_ANY)", "parent": 192, "children": [200, 201], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 48}}, {"id": 200, "type": "identifier", "text": "htonl", "parent": 199, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 36}}, {"id": 201, "type": "argument_list", "text": "(INADDR_ANY)", "parent": 199, "children": [202], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 48}}, {"id": 202, "type": "identifier", "text": "INADDR_ANY", "parent": 201, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 47}}, {"id": 203, "type": "assignment_expression", "text": "serveraddr.sin_port = htons((unsigned short)portno)", "parent": 49, "children": [204, 207, 208], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 53}}, {"id": 204, "type": "field_expression", "text": "serveraddr.sin_port", "parent": 203, "children": [205, 206], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 21}}, {"id": 205, "type": "identifier", "text": "serveraddr", "parent": 204, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 12}}, {"id": 206, "type": "field_identifier", "text": "sin_port", "parent": 204, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 21}}, {"id": 207, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 23}}, {"id": 208, "type": "call_expression", "text": "htons((unsigned short)portno)", "parent": 203, "children": [209, 210], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 53}}, {"id": 209, "type": "identifier", "text": "htons", "parent": 208, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 29}}, {"id": 210, "type": "argument_list", "text": "((unsigned short)portno)", "parent": 208, "children": [211], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 53}}, {"id": 211, "type": "cast_expression", "text": "(unsigned short)portno", "parent": 210, "children": [212, 216], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 52}}, {"id": 212, "type": "type_descriptor", "text": "unsigned short", "parent": 211, "children": [213], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 45}}, {"id": 213, "type": "sized_type_specifier", "text": "unsigned short", "parent": 212, "children": [214, 215], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 45}}, {"id": 214, "type": "unsigned", "text": "unsigned", "parent": 213, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 39}}, {"id": 215, "type": "short", "text": "short", "parent": 213, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 45}}, {"id": 216, "type": "identifier", "text": "portno", "parent": 211, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 52}}, {"id": 217, "type": "call_expression", "text": "fprintf(stdout, \"listening to %d on %s \\n\", portno, inet_ntoa(serveraddr.sin_addr))", "parent": 49, "children": [218, 219], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 85}}, {"id": 218, "type": "identifier", "text": "fprintf", "parent": 217, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 9}}, {"id": 219, "type": "argument_list", "text": "(stdout, \"listening to %d on %s \\n\", portno, inet_ntoa(serveraddr.sin_addr))", "parent": 217, "children": [220, 221, 223, 224], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 85}}, {"id": 220, "type": "identifier", "text": "stdout", "parent": 219, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 16}}, {"id": 221, "type": "string_literal", "text": "\"listening to %d on %s \\n\"", "parent": 219, "children": [222], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 44}}, {"id": 222, "type": "escape_sequence", "text": "\\n", "parent": 221, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 43}}, {"id": 223, "type": "identifier", "text": "portno", "parent": 219, "children": [], "start_point": {"row": 46, "column": 46}, "end_point": {"row": 46, "column": 52}}, {"id": 224, "type": "call_expression", "text": "inet_ntoa(serveraddr.sin_addr)", "parent": 219, "children": [225, 226], "start_point": {"row": 46, "column": 54}, "end_point": {"row": 46, "column": 84}}, {"id": 225, "type": "identifier", "text": "inet_ntoa", "parent": 224, "children": [], "start_point": {"row": 46, "column": 54}, "end_point": {"row": 46, "column": 63}}, {"id": 226, "type": "argument_list", "text": "(serveraddr.sin_addr)", "parent": 224, "children": [227], "start_point": {"row": 46, "column": 63}, "end_point": {"row": 46, "column": 84}}, {"id": 227, "type": "field_expression", "text": "serveraddr.sin_addr", "parent": 226, "children": [228, 229], "start_point": {"row": 46, "column": 64}, "end_point": {"row": 46, "column": 83}}, {"id": 228, "type": "identifier", "text": "serveraddr", "parent": 227, "children": [], "start_point": {"row": 46, "column": 64}, "end_point": {"row": 46, "column": 74}}, {"id": 229, "type": "field_identifier", "text": "sin_addr", "parent": 227, "children": [], "start_point": {"row": 46, "column": 75}, "end_point": {"row": 46, "column": 83}}, {"id": 230, "type": "if_statement", "text": "if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error(\"binding failure\");", "parent": 49, "children": [231], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 102}}, {"id": 231, "type": "parenthesized_expression", "text": "(bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0)", "parent": 230, "children": [232], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 76}}, {"id": 232, "type": "binary_expression", "text": "bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0", "parent": 231, "children": [233, 249, 250], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 75}}, {"id": 233, "type": "call_expression", "text": "bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr))", "parent": 232, "children": [234, 235], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 71}}, {"id": 234, "type": "identifier", "text": "bind", "parent": 233, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 10}}, {"id": 235, "type": "argument_list", "text": "(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr))", "parent": 233, "children": [236, 237, 246], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 71}}, {"id": 236, "type": "identifier", "text": "sockfd", "parent": 235, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 17}}, {"id": 237, "type": "cast_expression", "text": "(struct sockaddr *) &serveraddr", "parent": 235, "children": [238, 244], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 50}}, {"id": 238, "type": "type_descriptor", "text": "struct sockaddr *", "parent": 237, "children": [239, 242], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 37}}, {"id": 239, "type": "struct_specifier", "text": "struct sockaddr", "parent": 238, "children": [240, 241], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 35}}, {"id": 240, "type": "struct", "text": "struct", "parent": 239, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 26}}, {"id": 241, "type": "type_identifier", "text": "sockaddr", "parent": 239, "children": [], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 35}}, {"id": 242, "type": "abstract_pointer_declarator", "text": "*", "parent": 238, "children": [243], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 37}}, {"id": 243, "type": "*", "text": "*", "parent": 242, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 37}}, {"id": 244, "type": "pointer_expression", "text": "&serveraddr", "parent": 237, "children": [245], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 50}}, {"id": 245, "type": "identifier", "text": "serveraddr", "parent": 244, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 50}}, {"id": 246, "type": "sizeof_expression", "text": "sizeof(serveraddr)", "parent": 235, "children": [247], "start_point": {"row": 48, "column": 52}, "end_point": {"row": 48, "column": 70}}, {"id": 247, "type": "parenthesized_expression", "text": "(serveraddr)", "parent": 246, "children": [248], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 70}}, {"id": 248, "type": "identifier", "text": "serveraddr", "parent": 247, "children": [], "start_point": {"row": 48, "column": 59}, "end_point": {"row": 48, "column": 69}}, {"id": 249, "type": "<", "text": "<", "parent": 232, "children": [], "start_point": {"row": 48, "column": 72}, "end_point": {"row": 48, "column": 73}}, {"id": 250, "type": "number_literal", "text": "0", "parent": 232, "children": [], "start_point": {"row": 48, "column": 74}, "end_point": {"row": 48, "column": 75}}, {"id": 251, "type": "call_expression", "text": "error(\"binding failure\")", "parent": 230, "children": [252, 253], "start_point": {"row": 48, "column": 77}, "end_point": {"row": 48, "column": 101}}, {"id": 252, "type": "identifier", "text": "error", "parent": 251, "children": [], "start_point": {"row": 48, "column": 77}, "end_point": {"row": 48, "column": 82}}, {"id": 253, "type": "argument_list", "text": "(\"binding failure\")", "parent": 251, "children": [254], "start_point": {"row": 48, "column": 82}, "end_point": {"row": 48, "column": 101}}, {"id": 254, "type": "string_literal", "text": "\"binding failure\"", "parent": 253, "children": [], "start_point": {"row": 48, "column": 83}, "end_point": {"row": 48, "column": 100}}, {"id": 255, "type": "assignment_expression", "text": "clientlen = sizeof(clientaddr)", "parent": 49, "children": [256, 257, 258], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 32}}, {"id": 256, "type": "identifier", "text": "clientlen", "parent": 255, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 11}}, {"id": 257, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 13}}, {"id": 258, "type": "sizeof_expression", "text": "sizeof(clientaddr)", "parent": 255, "children": [259], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 32}}, {"id": 259, "type": "parenthesized_expression", "text": "(clientaddr)", "parent": 258, "children": [260], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 32}}, {"id": 260, "type": "identifier", "text": "clientaddr", "parent": 259, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 31}}, {"id": 261, "type": "while_statement", "text": "while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error(\"fail in recvfrom\");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error(\"failure to inet_ntoa\\n\");\n printf(\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\", strlen(buf), n, hostaddrp, buf);\n }", "parent": 49, "children": [262], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 59, "column": 3}}, {"id": 262, "type": "parenthesized_expression", "text": "(1)", "parent": 261, "children": [263], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 263, "type": "number_literal", "text": "1", "parent": 262, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 264, "type": "call_expression", "text": "bzero(buf, BUFSIZE)", "parent": 261, "children": [265, 266], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 23}}, {"id": 265, "type": "identifier", "text": "bzero", "parent": 264, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 9}}, {"id": 266, "type": "argument_list", "text": "(buf, BUFSIZE)", "parent": 264, "children": [267, 268], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 23}}, {"id": 267, "type": "identifier", "text": "buf", "parent": 266, "children": [], "start_point": {"row": 52, "column": 10}, "end_point": {"row": 52, "column": 13}}, {"id": 268, "type": "identifier", "text": "BUFSIZE", "parent": 266, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 22}}, {"id": 269, "type": "assignment_expression", "text": "n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)", "parent": 261, "children": [270, 271, 272], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 86}}, {"id": 270, "type": "identifier", "text": "n", "parent": 269, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 271, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 272, "type": "call_expression", "text": "recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)", "parent": 269, "children": [273, 274], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 86}}, {"id": 273, "type": "identifier", "text": "recvfrom", "parent": 272, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 16}}, {"id": 274, "type": "argument_list", "text": "(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen)", "parent": 272, "children": [275, 276, 277, 278, 279, 288], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 86}}, {"id": 275, "type": "identifier", "text": "sockfd", "parent": 274, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 23}}, {"id": 276, "type": "identifier", "text": "buf", "parent": 274, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 28}}, {"id": 277, "type": "identifier", "text": "BUFSIZE", "parent": 274, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 37}}, {"id": 278, "type": "number_literal", "text": "0", "parent": 274, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 40}}, {"id": 279, "type": "cast_expression", "text": "(struct sockaddr *) &clientaddr", "parent": 274, "children": [280, 286], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 73}}, {"id": 280, "type": "type_descriptor", "text": "struct sockaddr *", "parent": 279, "children": [281, 284], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 60}}, {"id": 281, "type": "struct_specifier", "text": "struct sockaddr", "parent": 280, "children": [282, 283], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 58}}, {"id": 282, "type": "struct", "text": "struct", "parent": 281, "children": [], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 49}}, {"id": 283, "type": "type_identifier", "text": "sockaddr", "parent": 281, "children": [], "start_point": {"row": 53, "column": 50}, "end_point": {"row": 53, "column": 58}}, {"id": 284, "type": "abstract_pointer_declarator", "text": "*", "parent": 280, "children": [285], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 60}}, {"id": 285, "type": "*", "text": "*", "parent": 284, "children": [], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 60}}, {"id": 286, "type": "pointer_expression", "text": "&clientaddr", "parent": 279, "children": [287], "start_point": {"row": 53, "column": 62}, "end_point": {"row": 53, "column": 73}}, {"id": 287, "type": "identifier", "text": "clientaddr", "parent": 286, "children": [], "start_point": {"row": 53, "column": 63}, "end_point": {"row": 53, "column": 73}}, {"id": 288, "type": "pointer_expression", "text": "&clientlen", "parent": 274, "children": [289], "start_point": {"row": 53, "column": 75}, "end_point": {"row": 53, "column": 85}}, {"id": 289, "type": "identifier", "text": "clientlen", "parent": 288, "children": [], "start_point": {"row": 53, "column": 76}, "end_point": {"row": 53, "column": 85}}, {"id": 290, "type": "if_statement", "text": "if (n < 0) error(\"fail in recvfrom\");", "parent": 261, "children": [291], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 41}}, {"id": 291, "type": "parenthesized_expression", "text": "(n < 0)", "parent": 290, "children": [292], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 292, "type": "binary_expression", "text": "n < 0", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 13}}, {"id": 293, "type": "identifier", "text": "n", "parent": 292, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 9}}, {"id": 294, "type": "<", "text": "<", "parent": 292, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 11}}, {"id": 295, "type": "number_literal", "text": "0", "parent": 292, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 296, "type": "call_expression", "text": "error(\"fail in recvfrom\")", "parent": 290, "children": [297, 298], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 40}}, {"id": 297, "type": "identifier", "text": "error", "parent": 296, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 20}}, {"id": 298, "type": "argument_list", "text": "(\"fail in recvfrom\")", "parent": 296, "children": [299], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 40}}, {"id": 299, "type": "string_literal", "text": "\"fail in recvfrom\"", "parent": 298, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 39}}, {"id": 300, "type": "assignment_expression", "text": "hostaddrp = inet_ntoa(clientaddr.sin_addr)", "parent": 261, "children": [301, 302, 303], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 46}}, {"id": 301, "type": "identifier", "text": "hostaddrp", "parent": 300, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 13}}, {"id": 302, "type": "=", "text": "=", "parent": 300, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 15}}, {"id": 303, "type": "call_expression", "text": "inet_ntoa(clientaddr.sin_addr)", "parent": 300, "children": [304, 305], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 46}}, {"id": 304, "type": "identifier", "text": "inet_ntoa", "parent": 303, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 25}}, {"id": 305, "type": "argument_list", "text": "(clientaddr.sin_addr)", "parent": 303, "children": [306], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 46}}, {"id": 306, "type": "field_expression", "text": "clientaddr.sin_addr", "parent": 305, "children": [307, 308], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 45}}, {"id": 307, "type": "identifier", "text": "clientaddr", "parent": 306, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 36}}, {"id": 308, "type": "field_identifier", "text": "sin_addr", "parent": 306, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 45}}, {"id": 309, "type": "if_statement", "text": "if (hostaddrp == NULL) error(\"failure to inet_ntoa\\n\");", "parent": 261, "children": [310], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 59}}, {"id": 310, "type": "parenthesized_expression", "text": "(hostaddrp == NULL)", "parent": 309, "children": [311], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 26}}, {"id": 311, "type": "binary_expression", "text": "hostaddrp == NULL", "parent": 310, "children": [312, 313, 314], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 25}}, {"id": 312, "type": "identifier", "text": "hostaddrp", "parent": 311, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 17}}, {"id": 313, "type": "==", "text": "==", "parent": 311, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 20}}, {"id": 314, "type": "null", "text": "NULL", "parent": 311, "children": [315], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 315, "type": "NULL", "text": "NULL", "parent": 314, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 316, "type": "call_expression", "text": "error(\"failure to inet_ntoa\\n\")", "parent": 309, "children": [317, 318], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 58}}, {"id": 317, "type": "identifier", "text": "error", "parent": 316, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 32}}, {"id": 318, "type": "argument_list", "text": "(\"failure to inet_ntoa\\n\")", "parent": 316, "children": [319], "start_point": {"row": 57, "column": 32}, "end_point": {"row": 57, "column": 58}}, {"id": 319, "type": "string_literal", "text": "\"failure to inet_ntoa\\n\"", "parent": 318, "children": [320], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 57}}, {"id": 320, "type": "escape_sequence", "text": "\\n", "parent": 319, "children": [], "start_point": {"row": 57, "column": 54}, "end_point": {"row": 57, "column": 56}}, {"id": 321, "type": "call_expression", "text": "printf(\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\", strlen(buf), n, hostaddrp, buf)", "parent": 261, "children": [322, 323], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 85}}, {"id": 322, "type": "identifier", "text": "printf", "parent": 321, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 10}}, {"id": 323, "type": "argument_list", "text": "(\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\", strlen(buf), n, hostaddrp, buf)", "parent": 321, "children": [324, 329, 333, 334, 335], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 85}}, {"id": 324, "type": "string_literal", "text": "\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\"", "parent": 323, "children": [325, 326, 327, 328], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 52}}, {"id": 325, "type": "escape_sequence", "text": "\\n", "parent": 324, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 14}}, {"id": 326, "type": "escape_sequence", "text": "\\n", "parent": 324, "children": [], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 44}}, {"id": 327, "type": "escape_sequence", "text": "\\n", "parent": 324, "children": [], "start_point": {"row": 58, "column": 46}, "end_point": {"row": 58, "column": 48}}, {"id": 328, "type": "escape_sequence", "text": "\\n", "parent": 324, "children": [], "start_point": {"row": 58, "column": 49}, "end_point": {"row": 58, "column": 51}}, {"id": 329, "type": "call_expression", "text": "strlen(buf)", "parent": 323, "children": [330, 331], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 65}}, {"id": 330, "type": "identifier", "text": "strlen", "parent": 329, "children": [], "start_point": {"row": 58, "column": 54}, "end_point": {"row": 58, "column": 60}}, {"id": 331, "type": "argument_list", "text": "(buf)", "parent": 329, "children": [332], "start_point": {"row": 58, "column": 60}, "end_point": {"row": 58, "column": 65}}, {"id": 332, "type": "identifier", "text": "buf", "parent": 331, "children": [], "start_point": {"row": 58, "column": 61}, "end_point": {"row": 58, "column": 64}}, {"id": 333, "type": "identifier", "text": "n", "parent": 323, "children": [], "start_point": {"row": 58, "column": 67}, "end_point": {"row": 58, "column": 68}}, {"id": 334, "type": "identifier", "text": "hostaddrp", "parent": 323, "children": [], "start_point": {"row": 58, "column": 70}, "end_point": {"row": 58, "column": 79}}, {"id": 335, "type": "identifier", "text": "buf", "parent": 323, "children": [], "start_point": {"row": 58, "column": 81}, "end_point": {"row": 58, "column": 84}}]}, "node_categories": {"declarations": {"functions": [31, 33, 49, 51], "variables": [36, 54, 57, 64, 67, 70, 73, 78, 83, 90, 95, 100, 103], "classes": [74, 75, 79, 80, 84, 85, 239, 240, 281, 282], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25], "modules": [], "enums": []}, "statements": {"expressions": [41, 45, 107, 108, 112, 118, 121, 128, 131, 137, 144, 145, 149, 157, 163, 168, 170, 173, 176, 181, 183, 184, 187, 193, 194, 199, 204, 208, 211, 217, 224, 227, 231, 232, 233, 237, 244, 246, 247, 251, 258, 259, 262, 264, 272, 279, 286, 288, 291, 292, 296, 303, 306, 310, 311, 316, 321, 329], "assignments": [125, 134, 153, 186, 192, 203, 255, 269, 300], "loops": [261], "conditionals": [29, 34, 40, 42, 44, 46, 52, 56, 63, 66, 69, 72, 76, 77, 81, 82, 86, 89, 93, 94, 99, 102, 105, 106, 109, 113, 115, 119, 122, 126, 129, 132, 135, 138, 140, 141, 143, 146, 150, 154, 158, 160, 161, 162, 169, 174, 182, 185, 188, 189, 191, 195, 196, 197, 200, 202, 205, 206, 209, 213, 216, 218, 220, 223, 225, 228, 229, 230, 234, 236, 241, 245, 248, 252, 256, 260, 265, 267, 268, 270, 273, 275, 276, 277, 283, 287, 289, 290, 293, 297, 301, 304, 307, 308, 309, 312, 317, 322, 330, 332, 333, 334, 335], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 48, 111, 116, 120, 124, 133, 142, 148, 152, 156, 221, 250, 254, 263, 278, 295, 299, 319, 324], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "error", "text_snippet": "void error(char *msg) {\n perror(msg);\n exit(1);\n}"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "error(char *msg)"}, {"node_id": 49, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char **argv) {\n int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in "}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}], "class_declarations": [{"node_id": 74, "universal_type": "class", "name": "sockaddr_in", "text_snippet": "struct sockaddr_in"}, {"node_id": 75, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 79, "universal_type": "class", "name": "sockaddr_in", "text_snippet": "struct sockaddr_in"}, {"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 84, "universal_type": "class", "name": "hostent", "text_snippet": "struct hostent"}, {"node_id": 85, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 239, "universal_type": "class", "name": "sockaddr", "text_snippet": "struct sockaddr"}, {"node_id": 240, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 281, "universal_type": "class", "name": "sockaddr", "text_snippet": "struct sockaddr"}, {"node_id": 282, "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 <unistd.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 <netdb.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <sys/types.h>"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sys/socket.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <netinet/in.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <arpa/inet.h>\n"}, {"node_id": 25, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <string.h>\n#include <netdb.h>\n#include <sys/types.h> \n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n\n#define BUFSIZE 1024\n\nvoid error(char *msg) {\n perror(msg);\n exit(1);\n}\n\nint main(int argc, char **argv) {\n int sockfd;\n int portno;\n int clientlen;\n struct sockaddr_in serveraddr;\n struct sockaddr_in clientaddr;\n struct hostent *hostp;\n char buf[BUFSIZE];\n char *hostaddrp;\n int optval;\n int n;\n\n if (argc != 2) {\n fprintf(stderr, \"usage: %s <port>\\n\", argv[0]);\n exit(1);\n }\n portno = atoi(argv[1]);\n\n sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n if (sockfd < 0) error(\"failed to open socket\");\n\n optval = 1;\n setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (const void *)&optval , sizeof(int));\n\n bzero((char *) &serveraddr, sizeof(serveraddr));\n serveraddr.sin_family = AF_INET;\n serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);\n serveraddr.sin_port = htons((unsigned short)portno);\n\n fprintf(stdout, \"listening to %d on %s \\n\", portno, inet_ntoa(serveraddr.sin_addr));\n\n if (bind(sockfd, (struct sockaddr *) &serveraddr, sizeof(serveraddr)) < 0) error(\"binding failure\");\n\n clientlen = sizeof(clientaddr);\n while (1) {\n bzero(buf, BUFSIZE);\n n = recvfrom(sockfd, buf, BUFSIZE, 0, (struct sockaddr *) &clientaddr, &clientlen);\n if (n < 0) error(\"fail in recvfrom\");\n\n hostaddrp = inet_ntoa(clientaddr.sin_addr);\n if (hostaddrp == NULL) error(\"failure to inet_ntoa\\n\");\n printf(\"\\nreceived %d/%d bytes from %s\\n%s\\n.\\n\", strlen(buf), n, hostaddrp, buf);\n }\n}\n\n"}
80,724
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* trinity.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: lenzo-pe <<EMAIL>> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/11/08 09:50:41 by lenzo-pe #+# #+# */ /* Updated: 2021/11/10 06:47:43 by lenzo-pe ### ########.fr */ /* */ /* ************************************************************************** */ #include <push_swap.h> static void list_to_array(t_node *lst, int *args) { size_t i; i = 0; while (lst != NULL) { args[i] = lst->data; lst = lst->next; i++; } } static void case_1(t_node **stack_a, int *args) { if (args[1] > args[2]) { sa(stack_a); rra(stack_a); } else ra(stack_a); } static void case_2(t_node **stack_a, int *args) { if (args[0] > args[2]) rra(stack_a); else { sa(stack_a); ra(stack_a); } } int trinity(t_node **stack_a) { int args[3]; list_to_array((*stack_a), args); if ((args[0] > args[1]) && (args[0] > args[2])) case_1(stack_a, args); else if ((args[1] > args[2])) case_2(stack_a, args); else if (args[0] > args[1]) sa(stack_a); return (0); }
27.71
55
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* trinity.c :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: lenzo-pe <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2021/11/08 09:50:41 by lenzo-pe #+# #+# */\n/* Updated: 2021/11/10 06:47:43 by lenzo-pe ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#include <push_swap.h>\n\nstatic void list_to_array(t_node *lst, int *args)\n{\n size_t i;\n\n i = 0;\n while (lst != NULL)\n {\n args[i] = lst->data;\n lst = lst->next;\n i++;\n }\n}\n\nstatic void case_1(t_node **stack_a, int *args)\n{\n if (args[1] > args[2])\n {\n sa(stack_a);\n rra(stack_a);\n }\n else\n ra(stack_a);\n}\n\nstatic void case_2(t_node **stack_a, int *args)\n{\n if (args[0] > args[2])\n rra(stack_a);\n else\n {\n sa(stack_a);\n ra(stack_a);\n }\n}\n\nint trinity(t_node **stack_a)\n{\n int args[3];\n\n list_to_array((*stack_a), args);\n if ((args[0] > args[1]) && (args[0] > args[2]))\n case_1(stack_a, args);\n else if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);\n return (0);\n}\n" (comment) "/* ************************************************************************** */" (comment) "/* */" (comment) "/* ::: :::::::: */" (comment) "/* trinity.c :+: :+: :+: */" (comment) "/* +:+ +:+ +:+ */" (comment) "/* By: lenzo-pe <<EMAIL>> +#+ +:+ +#+ */" (comment) "/* +#+#+#+#+#+ +#+ */" (comment) "/* Created: 2021/11/08 09:50:41 by lenzo-pe #+# #+# */" (comment) "/* Updated: 2021/11/10 06:47:43 by lenzo-pe ### ########.fr */" (comment) "/* */" (comment) "/* ************************************************************************** */" (preproc_include) "#include <push_swap.h>\n" (#include) "#include" (system_lib_string) "<push_swap.h>" (function_definition) "static void list_to_array(t_node *lst, int *args)\n{\n size_t i;\n\n i = 0;\n while (lst != NULL)\n {\n args[i] = lst->data;\n lst = lst->next;\n i++;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "list_to_array(t_node *lst, int *args)" (identifier) "list_to_array" (parameter_list) "(t_node *lst, int *args)" (() "(" (parameter_declaration) "t_node *lst" (type_identifier) "t_node" (pointer_declarator) "*lst" (*) "*" (identifier) "lst" (,) "," (parameter_declaration) "int *args" (primitive_type) "int" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n size_t i;\n\n i = 0;\n while (lst != NULL)\n {\n args[i] = lst->data;\n lst = lst->next;\n i++;\n }\n}" ({) "{" (declaration) "size_t i;" (primitive_type) "size_t" (identifier) "i" (;) ";" (expression_statement) "i = 0;" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (lst != NULL)\n {\n args[i] = lst->data;\n lst = lst->next;\n i++;\n }" (while) "while" (parenthesized_expression) "(lst != NULL)" (() "(" (binary_expression) "lst != NULL" (identifier) "lst" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n args[i] = lst->data;\n lst = lst->next;\n i++;\n }" ({) "{" (expression_statement) "args[i] = lst->data;" (assignment_expression) "args[i] = lst->data" (subscript_expression) "args[i]" (identifier) "args" ([) "[" (identifier) "i" (]) "]" (=) "=" (field_expression) "lst->data" (identifier) "lst" (->) "->" (field_identifier) "data" (;) ";" (expression_statement) "lst = lst->next;" (assignment_expression) "lst = lst->next" (identifier) "lst" (=) "=" (field_expression) "lst->next" (identifier) "lst" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (}) "}" (function_definition) "static void case_1(t_node **stack_a, int *args)\n{\n if (args[1] > args[2])\n {\n sa(stack_a);\n rra(stack_a);\n }\n else\n ra(stack_a);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "case_1(t_node **stack_a, int *args)" (identifier) "case_1" (parameter_list) "(t_node **stack_a, int *args)" (() "(" (parameter_declaration) "t_node **stack_a" (type_identifier) "t_node" (pointer_declarator) "**stack_a" (*) "*" (pointer_declarator) "*stack_a" (*) "*" (identifier) "stack_a" (,) "," (parameter_declaration) "int *args" (primitive_type) "int" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n if (args[1] > args[2])\n {\n sa(stack_a);\n rra(stack_a);\n }\n else\n ra(stack_a);\n}" ({) "{" (if_statement) "if (args[1] > args[2])\n {\n sa(stack_a);\n rra(stack_a);\n }\n else\n ra(stack_a);" (if) "if" (parenthesized_expression) "(args[1] > args[2])" (() "(" (binary_expression) "args[1] > args[2]" (subscript_expression) "args[1]" (identifier) "args" ([) "[" (number_literal) "1" (]) "]" (>) ">" (subscript_expression) "args[2]" (identifier) "args" ([) "[" (number_literal) "2" (]) "]" ()) ")" (compound_statement) "{\n sa(stack_a);\n rra(stack_a);\n }" ({) "{" (expression_statement) "sa(stack_a);" (call_expression) "sa(stack_a)" (identifier) "sa" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (expression_statement) "rra(stack_a);" (call_expression) "rra(stack_a)" (identifier) "rra" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (}) "}" (else_clause) "else\n ra(stack_a);" (else) "else" (expression_statement) "ra(stack_a);" (call_expression) "ra(stack_a)" (identifier) "ra" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (}) "}" (function_definition) "static void case_2(t_node **stack_a, int *args)\n{\n if (args[0] > args[2])\n rra(stack_a);\n else\n {\n sa(stack_a);\n ra(stack_a);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "case_2(t_node **stack_a, int *args)" (identifier) "case_2" (parameter_list) "(t_node **stack_a, int *args)" (() "(" (parameter_declaration) "t_node **stack_a" (type_identifier) "t_node" (pointer_declarator) "**stack_a" (*) "*" (pointer_declarator) "*stack_a" (*) "*" (identifier) "stack_a" (,) "," (parameter_declaration) "int *args" (primitive_type) "int" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n if (args[0] > args[2])\n rra(stack_a);\n else\n {\n sa(stack_a);\n ra(stack_a);\n }\n}" ({) "{" (if_statement) "if (args[0] > args[2])\n rra(stack_a);\n else\n {\n sa(stack_a);\n ra(stack_a);\n }" (if) "if" (parenthesized_expression) "(args[0] > args[2])" (() "(" (binary_expression) "args[0] > args[2]" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (>) ">" (subscript_expression) "args[2]" (identifier) "args" ([) "[" (number_literal) "2" (]) "]" ()) ")" (expression_statement) "rra(stack_a);" (call_expression) "rra(stack_a)" (identifier) "rra" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (else_clause) "else\n {\n sa(stack_a);\n ra(stack_a);\n }" (else) "else" (compound_statement) "{\n sa(stack_a);\n ra(stack_a);\n }" ({) "{" (expression_statement) "sa(stack_a);" (call_expression) "sa(stack_a)" (identifier) "sa" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (expression_statement) "ra(stack_a);" (call_expression) "ra(stack_a)" (identifier) "ra" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int trinity(t_node **stack_a)\n{\n int args[3];\n\n list_to_array((*stack_a), args);\n if ((args[0] > args[1]) && (args[0] > args[2]))\n case_1(stack_a, args);\n else if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);\n return (0);\n}" (primitive_type) "int" (function_declarator) "trinity(t_node **stack_a)" (identifier) "trinity" (parameter_list) "(t_node **stack_a)" (() "(" (parameter_declaration) "t_node **stack_a" (type_identifier) "t_node" (pointer_declarator) "**stack_a" (*) "*" (pointer_declarator) "*stack_a" (*) "*" (identifier) "stack_a" ()) ")" (compound_statement) "{\n int args[3];\n\n list_to_array((*stack_a), args);\n if ((args[0] > args[1]) && (args[0] > args[2]))\n case_1(stack_a, args);\n else if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);\n return (0);\n}" ({) "{" (declaration) "int args[3];" (primitive_type) "int" (array_declarator) "args[3]" (identifier) "args" ([) "[" (number_literal) "3" (]) "]" (;) ";" (expression_statement) "list_to_array((*stack_a), args);" (call_expression) "list_to_array((*stack_a), args)" (identifier) "list_to_array" (argument_list) "((*stack_a), args)" (() "(" (parenthesized_expression) "(*stack_a)" (() "(" (pointer_expression) "*stack_a" (*) "*" (identifier) "stack_a" ()) ")" (,) "," (identifier) "args" ()) ")" (;) ";" (if_statement) "if ((args[0] > args[1]) && (args[0] > args[2]))\n case_1(stack_a, args);\n else if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);" (if) "if" (parenthesized_expression) "((args[0] > args[1]) && (args[0] > args[2]))" (() "(" (binary_expression) "(args[0] > args[1]) && (args[0] > args[2])" (parenthesized_expression) "(args[0] > args[1])" (() "(" (binary_expression) "args[0] > args[1]" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (>) ">" (subscript_expression) "args[1]" (identifier) "args" ([) "[" (number_literal) "1" (]) "]" ()) ")" (&&) "&&" (parenthesized_expression) "(args[0] > args[2])" (() "(" (binary_expression) "args[0] > args[2]" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (>) ">" (subscript_expression) "args[2]" (identifier) "args" ([) "[" (number_literal) "2" (]) "]" ()) ")" ()) ")" (expression_statement) "case_1(stack_a, args);" (call_expression) "case_1(stack_a, args)" (identifier) "case_1" (argument_list) "(stack_a, args)" (() "(" (identifier) "stack_a" (,) "," (identifier) "args" ()) ")" (;) ";" (else_clause) "else if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);" (else) "else" (if_statement) "if ((args[1] > args[2]))\n case_2(stack_a, args);\n else if (args[0] > args[1])\n sa(stack_a);" (if) "if" (parenthesized_expression) "((args[1] > args[2]))" (() "(" (parenthesized_expression) "(args[1] > args[2])" (() "(" (binary_expression) "args[1] > args[2]" (subscript_expression) "args[1]" (identifier) "args" ([) "[" (number_literal) "1" (]) "]" (>) ">" (subscript_expression) "args[2]" (identifier) "args" ([) "[" (number_literal) "2" (]) "]" ()) ")" ()) ")" (expression_statement) "case_2(stack_a, args);" (call_expression) "case_2(stack_a, args)" (identifier) "case_2" (argument_list) "(stack_a, args)" (() "(" (identifier) "stack_a" (,) "," (identifier) "args" ()) ")" (;) ";" (else_clause) "else if (args[0] > args[1])\n sa(stack_a);" (else) "else" (if_statement) "if (args[0] > args[1])\n sa(stack_a);" (if) "if" (parenthesized_expression) "(args[0] > args[1])" (() "(" (binary_expression) "args[0] > args[1]" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (>) ">" (subscript_expression) "args[1]" (identifier) "args" ([) "[" (number_literal) "1" (]) "]" ()) ")" (expression_statement) "sa(stack_a);" (call_expression) "sa(stack_a)" (identifier) "sa" (argument_list) "(stack_a)" (() "(" (identifier) "stack_a" ()) ")" (;) ";" (return_statement) "return (0);" (return) "return" (parenthesized_expression) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
383
0
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 27.71, "nodes": 216, "errors": 0, "source_hash": "876b17af2ff7b7a0bb86cc569a722e9cca6979670cfd65b719dec36afb6e1aaf", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <push_swap.h>\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": "<push_swap.h>", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 22}}, {"id": 3, "type": "function_definition", "text": "static void\tlist_to_array(t_node *lst, int *args)\n{\n\tsize_t\ti;\n\n\ti = 0;\n\twhile (lst != NULL)\n\t{\n\t\targs[i] = lst->data;\n\t\tlst = lst->next;\n\t\ti++;\n\t}\n}", "parent": null, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 11}}, {"id": 5, "type": "function_declarator", "text": "list_to_array(t_node *lst, int *args)", "parent": 3, "children": [6, 7], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 49}}, {"id": 6, "type": "identifier", "text": "list_to_array", "parent": 5, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 25}}, {"id": 7, "type": "parameter_list", "text": "(t_node *lst, int *args)", "parent": 5, "children": [8, 13], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 49}}, {"id": 8, "type": "parameter_declaration", "text": "t_node *lst", "parent": 7, "children": [9, 10], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 37}}, {"id": 9, "type": "type_identifier", "text": "t_node", "parent": 8, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 32}}, {"id": 10, "type": "pointer_declarator", "text": "*lst", "parent": 8, "children": [11, 12], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 34}}, {"id": 12, "type": "identifier", "text": "lst", "parent": 10, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "parameter_declaration", "text": "int *args", "parent": 7, "children": [14, 15], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 48}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 42}}, {"id": 15, "type": "pointer_declarator", "text": "*args", "parent": 13, "children": [16, 17], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 48}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 44}}, {"id": 17, "type": "identifier", "text": "args", "parent": 15, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 48}}, {"id": 18, "type": "declaration", "text": "size_t\ti;", "parent": 3, "children": [19, 20], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 10}}, {"id": 19, "type": "primitive_type", "text": "size_t", "parent": 18, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 7}}, {"id": 20, "type": "identifier", "text": "i", "parent": 18, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 21, "type": "assignment_expression", "text": "i = 0", "parent": 3, "children": [22, 23, 24], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 6}}, {"id": 22, "type": "identifier", "text": "i", "parent": 21, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 2}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 4}}, {"id": 24, "type": "number_literal", "text": "0", "parent": 21, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 6}}, {"id": 25, "type": "while_statement", "text": "while (lst != NULL)\n\t{\n\t\targs[i] = lst->data;\n\t\tlst = lst->next;\n\t\ti++;\n\t}", "parent": 3, "children": [26], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 24, "column": 2}}, {"id": 26, "type": "parenthesized_expression", "text": "(lst != NULL)", "parent": 25, "children": [27], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 20}}, {"id": 27, "type": "binary_expression", "text": "lst != NULL", "parent": 26, "children": [28, 29, 30], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 19}}, {"id": 28, "type": "identifier", "text": "lst", "parent": 27, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 11}}, {"id": 29, "type": "!=", "text": "!=", "parent": 27, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 14}}, {"id": 30, "type": "null", "text": "NULL", "parent": 27, "children": [31], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 19}}, {"id": 31, "type": "NULL", "text": "NULL", "parent": 30, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 19}}, {"id": 32, "type": "assignment_expression", "text": "args[i] = lst->data", "parent": 25, "children": [33, 36, 37], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 21}}, {"id": 33, "type": "subscript_expression", "text": "args[i]", "parent": 32, "children": [34, 35], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 9}}, {"id": 34, "type": "identifier", "text": "args", "parent": 33, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 6}}, {"id": 35, "type": "identifier", "text": "i", "parent": 33, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 36, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 37, "type": "field_expression", "text": "lst->data", "parent": 32, "children": [38, 39], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 21}}, {"id": 38, "type": "identifier", "text": "lst", "parent": 37, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 15}}, {"id": 39, "type": "field_identifier", "text": "data", "parent": 37, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 21}}, {"id": 40, "type": "assignment_expression", "text": "lst = lst->next", "parent": 25, "children": [41, 42, 43], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 17}}, {"id": 41, "type": "identifier", "text": "lst", "parent": 40, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 5}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 43, "type": "field_expression", "text": "lst->next", "parent": 40, "children": [44, 45], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 17}}, {"id": 44, "type": "identifier", "text": "lst", "parent": 43, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 11}}, {"id": 45, "type": "field_identifier", "text": "next", "parent": 43, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 46, "type": "update_expression", "text": "i++", "parent": 25, "children": [47, 48], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 47, "type": "identifier", "text": "i", "parent": 46, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 3}}, {"id": 48, "type": "++", "text": "++", "parent": 46, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 5}}, {"id": 49, "type": "function_definition", "text": "static void\tcase_1(t_node **stack_a, int *args)\n{\n\tif (args[1] > args[2])\n\t{\n\t\tsa(stack_a);\n\t\trra(stack_a);\n\t}\n\telse\n\t\tra(stack_a);\n}", "parent": null, "children": [50, 51], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 11}}, {"id": 51, "type": "function_declarator", "text": "case_1(t_node **stack_a, int *args)", "parent": 49, "children": [52, 53], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 47}}, {"id": 52, "type": "identifier", "text": "case_1", "parent": 51, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 18}}, {"id": 53, "type": "parameter_list", "text": "(t_node **stack_a, int *args)", "parent": 51, "children": [54, 61], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 47}}, {"id": 54, "type": "parameter_declaration", "text": "t_node **stack_a", "parent": 53, "children": [55, 56], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 35}}, {"id": 55, "type": "type_identifier", "text": "t_node", "parent": 54, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 56, "type": "pointer_declarator", "text": "**stack_a", "parent": 54, "children": [57, 58], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 35}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 58, "type": "pointer_declarator", "text": "*stack_a", "parent": 56, "children": [59, 60], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 35}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 28}}, {"id": 60, "type": "identifier", "text": "stack_a", "parent": 58, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 35}}, {"id": 61, "type": "parameter_declaration", "text": "int *args", "parent": 53, "children": [62, 63], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 46}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 40}}, {"id": 63, "type": "pointer_declarator", "text": "*args", "parent": 61, "children": [64, 65], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 46}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 42}}, {"id": 65, "type": "identifier", "text": "args", "parent": 63, "children": [], "start_point": {"row": 27, "column": 42}, "end_point": {"row": 27, "column": 46}}, {"id": 66, "type": "if_statement", "text": "if (args[1] > args[2])\n\t{\n\t\tsa(stack_a);\n\t\trra(stack_a);\n\t}\n\telse\n\t\tra(stack_a);", "parent": 49, "children": [67, 84], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 35, "column": 14}}, {"id": 67, "type": "parenthesized_expression", "text": "(args[1] > args[2])", "parent": 66, "children": [68], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 23}}, {"id": 68, "type": "binary_expression", "text": "args[1] > args[2]", "parent": 67, "children": [69, 72, 73], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 22}}, {"id": 69, "type": "subscript_expression", "text": "args[1]", "parent": 68, "children": [70, 71], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 12}}, {"id": 70, "type": "identifier", "text": "args", "parent": 69, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 9}}, {"id": 71, "type": "number_literal", "text": "1", "parent": 69, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 72, "type": ">", "text": ">", "parent": 68, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 14}}, {"id": 73, "type": "subscript_expression", "text": "args[2]", "parent": 68, "children": [74, 75], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 22}}, {"id": 74, "type": "identifier", "text": "args", "parent": 73, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 19}}, {"id": 75, "type": "number_literal", "text": "2", "parent": 73, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 21}}, {"id": 76, "type": "call_expression", "text": "sa(stack_a)", "parent": 66, "children": [77, 78], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 13}}, {"id": 77, "type": "identifier", "text": "sa", "parent": 76, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 4}}, {"id": 78, "type": "argument_list", "text": "(stack_a)", "parent": 76, "children": [79], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 79, "type": "identifier", "text": "stack_a", "parent": 78, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 12}}, {"id": 80, "type": "call_expression", "text": "rra(stack_a)", "parent": 66, "children": [81, 82], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 14}}, {"id": 81, "type": "identifier", "text": "rra", "parent": 80, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 5}}, {"id": 82, "type": "argument_list", "text": "(stack_a)", "parent": 80, "children": [83], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 14}}, {"id": 83, "type": "identifier", "text": "stack_a", "parent": 82, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 13}}, {"id": 84, "type": "else_clause", "text": "else\n\t\tra(stack_a);", "parent": 66, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 35, "column": 14}}, {"id": 85, "type": "call_expression", "text": "ra(stack_a)", "parent": 84, "children": [86, 87], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 13}}, {"id": 86, "type": "identifier", "text": "ra", "parent": 85, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 4}}, {"id": 87, "type": "argument_list", "text": "(stack_a)", "parent": 85, "children": [88], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 13}}, {"id": 88, "type": "identifier", "text": "stack_a", "parent": 87, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 12}}, {"id": 89, "type": "function_definition", "text": "static void\tcase_2(t_node **stack_a, int *args)\n{\n\tif (args[0] > args[2])\n\t\trra(stack_a);\n\telse\n\t{\n\t\tsa(stack_a);\n\t\tra(stack_a);\n\t}\n}", "parent": null, "children": [90, 91], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 90, "type": "primitive_type", "text": "void", "parent": 89, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 11}}, {"id": 91, "type": "function_declarator", "text": "case_2(t_node **stack_a, int *args)", "parent": 89, "children": [92, 93], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 47}}, {"id": 92, "type": "identifier", "text": "case_2", "parent": 91, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 18}}, {"id": 93, "type": "parameter_list", "text": "(t_node **stack_a, int *args)", "parent": 91, "children": [94, 101], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 47}}, {"id": 94, "type": "parameter_declaration", "text": "t_node **stack_a", "parent": 93, "children": [95, 96], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 35}}, {"id": 95, "type": "type_identifier", "text": "t_node", "parent": 94, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 25}}, {"id": 96, "type": "pointer_declarator", "text": "**stack_a", "parent": 94, "children": [97, 98], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 35}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 27}}, {"id": 98, "type": "pointer_declarator", "text": "*stack_a", "parent": 96, "children": [99, 100], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 35}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 100, "type": "identifier", "text": "stack_a", "parent": 98, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 35}}, {"id": 101, "type": "parameter_declaration", "text": "int *args", "parent": 93, "children": [102, 103], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 46}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 40}}, {"id": 103, "type": "pointer_declarator", "text": "*args", "parent": 101, "children": [104, 105], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 46}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 105, "type": "identifier", "text": "args", "parent": 103, "children": [], "start_point": {"row": 38, "column": 42}, "end_point": {"row": 38, "column": 46}}, {"id": 106, "type": "if_statement", "text": "if (args[0] > args[2])\n\t\trra(stack_a);\n\telse\n\t{\n\t\tsa(stack_a);\n\t\tra(stack_a);\n\t}", "parent": 89, "children": [107, 120], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 107, "type": "parenthesized_expression", "text": "(args[0] > args[2])", "parent": 106, "children": [108], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 23}}, {"id": 108, "type": "binary_expression", "text": "args[0] > args[2]", "parent": 107, "children": [109, 112, 113], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 22}}, {"id": 109, "type": "subscript_expression", "text": "args[0]", "parent": 108, "children": [110, 111], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 12}}, {"id": 110, "type": "identifier", "text": "args", "parent": 109, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 9}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 109, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 11}}, {"id": 112, "type": ">", "text": ">", "parent": 108, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 14}}, {"id": 113, "type": "subscript_expression", "text": "args[2]", "parent": 108, "children": [114, 115], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 22}}, {"id": 114, "type": "identifier", "text": "args", "parent": 113, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 19}}, {"id": 115, "type": "number_literal", "text": "2", "parent": 113, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 116, "type": "call_expression", "text": "rra(stack_a)", "parent": 106, "children": [117, 118], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 14}}, {"id": 117, "type": "identifier", "text": "rra", "parent": 116, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 5}}, {"id": 118, "type": "argument_list", "text": "(stack_a)", "parent": 116, "children": [119], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 14}}, {"id": 119, "type": "identifier", "text": "stack_a", "parent": 118, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 13}}, {"id": 120, "type": "else_clause", "text": "else\n\t{\n\t\tsa(stack_a);\n\t\tra(stack_a);\n\t}", "parent": 106, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 46, "column": 2}}, {"id": 121, "type": "call_expression", "text": "sa(stack_a)", "parent": 120, "children": [122, 123], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 13}}, {"id": 122, "type": "identifier", "text": "sa", "parent": 121, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 4}}, {"id": 123, "type": "argument_list", "text": "(stack_a)", "parent": 121, "children": [124], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 13}}, {"id": 124, "type": "identifier", "text": "stack_a", "parent": 123, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 12}}, {"id": 125, "type": "call_expression", "text": "ra(stack_a)", "parent": 120, "children": [126, 127], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 13}}, {"id": 126, "type": "identifier", "text": "ra", "parent": 125, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 4}}, {"id": 127, "type": "argument_list", "text": "(stack_a)", "parent": 125, "children": [128], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 13}}, {"id": 128, "type": "identifier", "text": "stack_a", "parent": 127, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 12}}, {"id": 129, "type": "function_definition", "text": "int\ttrinity(t_node **stack_a)\n{\n\tint\targs[3];\n\n\tlist_to_array((*stack_a), args);\n\tif ((args[0] > args[1]) && (args[0] > args[2]))\n\t\tcase_1(stack_a, args);\n\telse if ((args[1] > args[2]))\n\t\tcase_2(stack_a, args);\n\telse if (args[0] > args[1])\n\t\tsa(stack_a);\n\treturn (0);\n}", "parent": null, "children": [130, 131], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 129, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 3}}, {"id": 131, "type": "function_declarator", "text": "trinity(t_node **stack_a)", "parent": 129, "children": [132, 133], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 29}}, {"id": 132, "type": "identifier", "text": "trinity", "parent": 131, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 133, "type": "parameter_list", "text": "(t_node **stack_a)", "parent": 131, "children": [134], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 29}}, {"id": 134, "type": "parameter_declaration", "text": "t_node **stack_a", "parent": 133, "children": [135, 136], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 28}}, {"id": 135, "type": "type_identifier", "text": "t_node", "parent": 134, "children": [], "start_point": {"row": 49, "column": 12}, "end_point": {"row": 49, "column": 18}}, {"id": 136, "type": "pointer_declarator", "text": "**stack_a", "parent": 134, "children": [137, 138], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 28}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 20}}, {"id": 138, "type": "pointer_declarator", "text": "*stack_a", "parent": 136, "children": [139, 140], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 28}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 140, "type": "identifier", "text": "stack_a", "parent": 138, "children": [], "start_point": {"row": 49, "column": 21}, "end_point": {"row": 49, "column": 28}}, {"id": 141, "type": "declaration", "text": "int\targs[3];", "parent": 129, "children": [142, 143], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 13}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 4}}, {"id": 143, "type": "array_declarator", "text": "args[3]", "parent": 141, "children": [144, 145], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 12}}, {"id": 144, "type": "identifier", "text": "args", "parent": 143, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 9}}, {"id": 145, "type": "number_literal", "text": "3", "parent": 143, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 11}}, {"id": 146, "type": "call_expression", "text": "list_to_array((*stack_a), args)", "parent": 129, "children": [147, 148], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 32}}, {"id": 147, "type": "identifier", "text": "list_to_array", "parent": 146, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 14}}, {"id": 148, "type": "argument_list", "text": "((*stack_a), args)", "parent": 146, "children": [149, 153], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 32}}, {"id": 149, "type": "parenthesized_expression", "text": "(*stack_a)", "parent": 148, "children": [150], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 25}}, {"id": 150, "type": "pointer_expression", "text": "*stack_a", "parent": 149, "children": [151, 152], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 24}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 17}}, {"id": 152, "type": "identifier", "text": "stack_a", "parent": 150, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 24}}, {"id": 153, "type": "identifier", "text": "args", "parent": 148, "children": [], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 31}}, {"id": 154, "type": "if_statement", "text": "if ((args[0] > args[1]) && (args[0] > args[2]))\n\t\tcase_1(stack_a, args);\n\telse if ((args[1] > args[2]))\n\t\tcase_2(stack_a, args);\n\telse if (args[0] > args[1])\n\t\tsa(stack_a);", "parent": 129, "children": [155, 181], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 59, "column": 14}}, {"id": 155, "type": "parenthesized_expression", "text": "((args[0] > args[1]) && (args[0] > args[2]))", "parent": 154, "children": [156], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 48}}, {"id": 156, "type": "binary_expression", "text": "(args[0] > args[1]) && (args[0] > args[2])", "parent": 155, "children": [157, 166, 167], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 47}}, {"id": 157, "type": "parenthesized_expression", "text": "(args[0] > args[1])", "parent": 156, "children": [158], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 24}}, {"id": 158, "type": "binary_expression", "text": "args[0] > args[1]", "parent": 157, "children": [159, 162, 163], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 23}}, {"id": 159, "type": "subscript_expression", "text": "args[0]", "parent": 158, "children": [160, 161], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 13}}, {"id": 160, "type": "identifier", "text": "args", "parent": 159, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 10}}, {"id": 161, "type": "number_literal", "text": "0", "parent": 159, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 12}}, {"id": 162, "type": ">", "text": ">", "parent": 158, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 15}}, {"id": 163, "type": "subscript_expression", "text": "args[1]", "parent": 158, "children": [164, 165], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 23}}, {"id": 164, "type": "identifier", "text": "args", "parent": 163, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 20}}, {"id": 165, "type": "number_literal", "text": "1", "parent": 163, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 22}}, {"id": 166, "type": "&&", "text": "&&", "parent": 156, "children": [], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 27}}, {"id": 167, "type": "parenthesized_expression", "text": "(args[0] > args[2])", "parent": 156, "children": [168], "start_point": {"row": 54, "column": 28}, "end_point": {"row": 54, "column": 47}}, {"id": 168, "type": "binary_expression", "text": "args[0] > args[2]", "parent": 167, "children": [169, 172, 173], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 46}}, {"id": 169, "type": "subscript_expression", "text": "args[0]", "parent": 168, "children": [170, 171], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 36}}, {"id": 170, "type": "identifier", "text": "args", "parent": 169, "children": [], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 33}}, {"id": 171, "type": "number_literal", "text": "0", "parent": 169, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 35}}, {"id": 172, "type": ">", "text": ">", "parent": 168, "children": [], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 54, "column": 38}}, {"id": 173, "type": "subscript_expression", "text": "args[2]", "parent": 168, "children": [174, 175], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 46}}, {"id": 174, "type": "identifier", "text": "args", "parent": 173, "children": [], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 43}}, {"id": 175, "type": "number_literal", "text": "2", "parent": 173, "children": [], "start_point": {"row": 54, "column": 44}, "end_point": {"row": 54, "column": 45}}, {"id": 176, "type": "call_expression", "text": "case_1(stack_a, args)", "parent": 154, "children": [177, 178], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 23}}, {"id": 177, "type": "identifier", "text": "case_1", "parent": 176, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 8}}, {"id": 178, "type": "argument_list", "text": "(stack_a, args)", "parent": 176, "children": [179, 180], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 23}}, {"id": 179, "type": "identifier", "text": "stack_a", "parent": 178, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 16}}, {"id": 180, "type": "identifier", "text": "args", "parent": 178, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 22}}, {"id": 181, "type": "else_clause", "text": "else if ((args[1] > args[2]))\n\t\tcase_2(stack_a, args);\n\telse if (args[0] > args[1])\n\t\tsa(stack_a);", "parent": 154, "children": [182], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 59, "column": 14}}, {"id": 182, "type": "if_statement", "text": "if ((args[1] > args[2]))\n\t\tcase_2(stack_a, args);\n\telse if (args[0] > args[1])\n\t\tsa(stack_a);", "parent": 181, "children": [183, 198], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 59, "column": 14}}, {"id": 183, "type": "parenthesized_expression", "text": "((args[1] > args[2]))", "parent": 182, "children": [184], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 30}}, {"id": 184, "type": "parenthesized_expression", "text": "(args[1] > args[2])", "parent": 183, "children": [185], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 29}}, {"id": 185, "type": "binary_expression", "text": "args[1] > args[2]", "parent": 184, "children": [186, 189, 190], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 28}}, {"id": 186, "type": "subscript_expression", "text": "args[1]", "parent": 185, "children": [187, 188], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 18}}, {"id": 187, "type": "identifier", "text": "args", "parent": 186, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 15}}, {"id": 188, "type": "number_literal", "text": "1", "parent": 186, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 17}}, {"id": 189, "type": ">", "text": ">", "parent": 185, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 20}}, {"id": 190, "type": "subscript_expression", "text": "args[2]", "parent": 185, "children": [191, 192], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 28}}, {"id": 191, "type": "identifier", "text": "args", "parent": 190, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 25}}, {"id": 192, "type": "number_literal", "text": "2", "parent": 190, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 27}}, {"id": 193, "type": "call_expression", "text": "case_2(stack_a, args)", "parent": 182, "children": [194, 195], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 23}}, {"id": 194, "type": "identifier", "text": "case_2", "parent": 193, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 8}}, {"id": 195, "type": "argument_list", "text": "(stack_a, args)", "parent": 193, "children": [196, 197], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 23}}, {"id": 196, "type": "identifier", "text": "stack_a", "parent": 195, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 16}}, {"id": 197, "type": "identifier", "text": "args", "parent": 195, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 198, "type": "else_clause", "text": "else if (args[0] > args[1])\n\t\tsa(stack_a);", "parent": 182, "children": [199], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 59, "column": 14}}, {"id": 199, "type": "if_statement", "text": "if (args[0] > args[1])\n\t\tsa(stack_a);", "parent": 198, "children": [200], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 59, "column": 14}}, {"id": 200, "type": "parenthesized_expression", "text": "(args[0] > args[1])", "parent": 199, "children": [201], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 28}}, {"id": 201, "type": "binary_expression", "text": "args[0] > args[1]", "parent": 200, "children": [202, 205, 206], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 27}}, {"id": 202, "type": "subscript_expression", "text": "args[0]", "parent": 201, "children": [203, 204], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 17}}, {"id": 203, "type": "identifier", "text": "args", "parent": 202, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 14}}, {"id": 204, "type": "number_literal", "text": "0", "parent": 202, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 205, "type": ">", "text": ">", "parent": 201, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 19}}, {"id": 206, "type": "subscript_expression", "text": "args[1]", "parent": 201, "children": [207, 208], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 27}}, {"id": 207, "type": "identifier", "text": "args", "parent": 206, "children": [], "start_point": {"row": 58, "column": 20}, "end_point": {"row": 58, "column": 24}}, {"id": 208, "type": "number_literal", "text": "1", "parent": 206, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 209, "type": "call_expression", "text": "sa(stack_a)", "parent": 199, "children": [210, 211], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 13}}, {"id": 210, "type": "identifier", "text": "sa", "parent": 209, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 4}}, {"id": 211, "type": "argument_list", "text": "(stack_a)", "parent": 209, "children": [212], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 13}}, {"id": 212, "type": "identifier", "text": "stack_a", "parent": 211, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 12}}, {"id": 213, "type": "return_statement", "text": "return (0);", "parent": 129, "children": [214], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 12}}, {"id": 214, "type": "parenthesized_expression", "text": "(0)", "parent": 213, "children": [215], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 215, "type": "number_literal", "text": "0", "parent": 214, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 10}}]}, "node_categories": {"declarations": {"functions": [3, 5, 49, 51, 89, 91, 129, 131], "variables": [8, 13, 18, 54, 61, 94, 101, 134, 141], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [26, 27, 33, 37, 43, 46, 67, 68, 69, 73, 76, 80, 85, 107, 108, 109, 113, 116, 121, 125, 146, 149, 150, 155, 156, 157, 158, 159, 163, 167, 168, 169, 173, 176, 183, 184, 185, 186, 190, 193, 200, 201, 202, 206, 209, 214], "assignments": [21, 32, 40], "loops": [25], "conditionals": [6, 9, 12, 17, 20, 22, 28, 34, 35, 38, 39, 41, 44, 45, 47, 52, 55, 60, 65, 66, 70, 74, 77, 79, 81, 83, 86, 88, 92, 95, 100, 105, 106, 110, 114, 117, 119, 122, 124, 126, 128, 132, 135, 140, 144, 147, 152, 153, 154, 160, 164, 170, 174, 177, 179, 180, 182, 187, 191, 194, 196, 197, 199, 203, 207, 210, 212], "returns": [213], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 24, 71, 75, 111, 115, 145, 161, 165, 171, 175, 188, 192, 204, 208, 215], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "list_to_array", "text_snippet": "static void\tlist_to_array(t_node *lst, int *args)\n{\n\tsize_t\ti;\n\n\ti = 0;\n\twhile (lst != NULL)\n\t{\n\t\tar"}, {"node_id": 5, "universal_type": "function", "name": "*args)", "text_snippet": "list_to_array(t_node *lst, int *args)"}, {"node_id": 49, "universal_type": "function", "name": "case_1", "text_snippet": "static void\tcase_1(t_node **stack_a, int *args)\n{\n\tif (args[1] > args[2])\n\t{\n\t\tsa(stack_a);\n\t\trra(st"}, {"node_id": 51, "universal_type": "function", "name": "*args)", "text_snippet": "case_1(t_node **stack_a, int *args)"}, {"node_id": 89, "universal_type": "function", "name": "case_2", "text_snippet": "static void\tcase_2(t_node **stack_a, int *args)\n{\n\tif (args[0] > args[2])\n\t\trra(stack_a);\n\telse\n\t{\n\t"}, {"node_id": 91, "universal_type": "function", "name": "*args)", "text_snippet": "case_2(t_node **stack_a, int *args)"}, {"node_id": 129, "universal_type": "function", "name": "trinity", "text_snippet": "int\ttrinity(t_node **stack_a)\n{\n\tint\targs[3];\n\n\tlist_to_array((*stack_a), args);\n\tif ((args[0] > arg"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "trinity(t_node **stack_a)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <push_swap.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* trinity.c :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: lenzo-pe <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2021/11/08 09:50:41 by lenzo-pe #+# #+# */\n/* Updated: 2021/11/10 06:47:43 by lenzo-pe ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#include <push_swap.h>\n\nstatic void\tlist_to_array(t_node *lst, int *args)\n{\n\tsize_t\ti;\n\n\ti = 0;\n\twhile (lst != NULL)\n\t{\n\t\targs[i] = lst->data;\n\t\tlst = lst->next;\n\t\ti++;\n\t}\n}\n\nstatic void\tcase_1(t_node **stack_a, int *args)\n{\n\tif (args[1] > args[2])\n\t{\n\t\tsa(stack_a);\n\t\trra(stack_a);\n\t}\n\telse\n\t\tra(stack_a);\n}\n\nstatic void\tcase_2(t_node **stack_a, int *args)\n{\n\tif (args[0] > args[2])\n\t\trra(stack_a);\n\telse\n\t{\n\t\tsa(stack_a);\n\t\tra(stack_a);\n\t}\n}\n\nint\ttrinity(t_node **stack_a)\n{\n\tint\targs[3];\n\n\tlist_to_array((*stack_a), args);\n\tif ((args[0] > args[1]) && (args[0] > args[2]))\n\t\tcase_1(stack_a, args);\n\telse if ((args[1] > args[2]))\n\t\tcase_2(stack_a, args);\n\telse if (args[0] > args[1])\n\t\tsa(stack_a);\n\treturn (0);\n}\n"}
80,725
c
#ifndef KLEE_SERIALIZABLETYPES_H #define KLEE_SERIALIZABLETYPES_H #include <string> #include <vector> namespace klee { struct ExecutionStats { std::string llvm_inst_str; std::string file_loc; uint64_t instructions_cnt; int64_t queryCost_us; int64_t queryCost_increment_us; }; // One string one instruction counter Statistics // Used by Constraint Stats and Stack Stats struct StringInstStats { uint64_t instcnt; std::string str; }; // The unit of path recording struct PathEntry { // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp // if you changed PathEntry_t enum PathEntry_t: unsigned char { FORK, // For Instruction::Branch SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression). SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined) INDIRECTBR, // For Instruction::IndirectBr DATAREC, SCHEDULE, NUM_PATHENTRY_T }; typedef uint16_t switchIndex_t; typedef uint8_t indirectbrIndex_t; typedef uint8_t numKids_t; typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t; typedef uint16_t thread_t; PathEntry_t t; union { bool br; // Here assume the number of branches won't exceed 2^16 switchIndex_t switchIndex; indirectbrIndex_t indirectbrIndex; dataRec_t drec; // Here assume the max number of thread id won't exceed 2^16 // tgtid is the target thread id after a schedule thread_t tgtid; } body; }; struct DataRecEntry { std::string instUniqueID; uint64_t data; }; } #endif
31.36
55
(translation_unit) "#ifndef KLEE_SERIALIZABLETYPES_H\n#define KLEE_SERIALIZABLETYPES_H\n#include <string>\n#include <vector>\nnamespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n };\n\n struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n };\n}\n#endif\n" (preproc_ifdef) "#ifndef KLEE_SERIALIZABLETYPES_H\n#define KLEE_SERIALIZABLETYPES_H\n#include <string>\n#include <vector>\nnamespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n };\n\n struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n };\n}\n#endif" (#ifndef) "#ifndef" (identifier) "KLEE_SERIALIZABLETYPES_H" (preproc_def) "#define KLEE_SERIALIZABLETYPES_H\n" (#define) "#define" (identifier) "KLEE_SERIALIZABLETYPES_H" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (function_definition) "namespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n }" (type_identifier) "namespace" (identifier) "klee" (compound_statement) "{\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n }" ({) "{" (struct_specifier) "struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n }" (struct) "struct" (type_identifier) "ExecutionStats" (field_declaration_list) "{\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n }" ({) "{" (field_declaration) "std::string llvm_inst_str;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "llvm_inst_str" (;) ";" (field_declaration) "std::string file_loc;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "file_loc" (;) ";" (field_declaration) "uint64_t instructions_cnt;" (primitive_type) "uint64_t" (field_identifier) "instructions_cnt" (;) ";" (field_declaration) "int64_t queryCost_us;" (primitive_type) "int64_t" (field_identifier) "queryCost_us" (;) ";" (field_declaration) "int64_t queryCost_increment_us;" (primitive_type) "int64_t" (field_identifier) "queryCost_increment_us" (;) ";" (}) "}" (;) ";" (comment) "// One string one instruction counter Statistics" (comment) "// Used by Constraint Stats and Stack Stats" (struct_specifier) "struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n }" (struct) "struct" (type_identifier) "StringInstStats" (field_declaration_list) "{\n uint64_t instcnt;\n std::string str;\n }" ({) "{" (field_declaration) "uint64_t instcnt;" (primitive_type) "uint64_t" (field_identifier) "instcnt" (;) ";" (field_declaration) "std::string str;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "str" (;) ";" (}) "}" (;) ";" (comment) "// The unit of path recording" (declaration) "struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;" (struct_specifier) "struct PathEntry {\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; }" (struct) "struct" (type_identifier) "PathEntry" (field_declaration_list) "{\n // note that you should also update "PathEntry_t_str" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; }" ({) "{" (comment) "// note that you should also update "PathEntry_t_str" in pathviewer/main.cpp" (comment) "// if you changed PathEntry_t" (field_declaration) "enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };" (enum_specifier) "enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n }" (enum) "enum" (type_identifier) "PathEntry_t" (:) ":" (ERROR) "unsigned" (identifier) "unsigned" (primitive_type) "char" (enumerator_list) "{\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n }" ({) "{" (enumerator) "FORK" (identifier) "FORK" (,) "," (comment) "// For Instruction::Branch" (enumerator) "SWITCH_EXPIDX" (identifier) "SWITCH_EXPIDX" (,) "," (comment) "// For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression)." (enumerator) "SWITCH_BBIDX" (identifier) "SWITCH_BBIDX" (,) "," (comment) "// For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)" (enumerator) "INDIRECTBR" (identifier) "INDIRECTBR" (,) "," (comment) "// For Instruction::IndirectBr" (enumerator) "DATAREC" (identifier) "DATAREC" (,) "," (enumerator) "SCHEDULE" (identifier) "SCHEDULE" (,) "," (enumerator) "NUM_PATHENTRY_T" (identifier) "NUM_PATHENTRY_T" (}) "}" (;) ";" (field_declaration) "typedef uint16_t switchIndex_t;" (type_identifier) "typedef" (ERROR) "uint16_t" (field_identifier) "uint16_t" (field_identifier) "switchIndex_t" (;) ";" (field_declaration) "typedef uint8_t indirectbrIndex_t;" (type_identifier) "typedef" (ERROR) "uint8_t" (field_identifier) "uint8_t" (field_identifier) "indirectbrIndex_t" (;) ";" (field_declaration) "typedef uint8_t numKids_t;" (type_identifier) "typedef" (ERROR) "uint8_t" (field_identifier) "uint8_t" (field_identifier) "numKids_t" (;) ";" (field_declaration) "typedef struct { uint8_t IDlen;" (type_identifier) "typedef" (field_identifier) "struct" (ERROR) "{ uint8_t IDlen" ({) "{" (primitive_type) "uint8_t" (identifier) "IDlen" (;) ";" (field_declaration) "uint8_t width;" (primitive_type) "uint8_t" (field_identifier) "width" (;) ";" (}) "}" (identifier) "dataRec_t" (;) ";" (type_definition) "typedef uint16_t thread_t;" (typedef) "typedef" (primitive_type) "uint16_t" (type_identifier) "thread_t" (;) ";" (declaration) "PathEntry_t t;" (type_identifier) "PathEntry_t" (identifier) "t" (;) ";" (declaration) "union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;" (union_specifier) "union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n }" (union) "union" (field_declaration_list) "{\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n }" ({) "{" (field_declaration) "bool br;" (primitive_type) "bool" (field_identifier) "br" (;) ";" (comment) "// Here assume the number of branches won't exceed 2^16" (field_declaration) "switchIndex_t switchIndex;" (type_identifier) "switchIndex_t" (field_identifier) "switchIndex" (;) ";" (field_declaration) "indirectbrIndex_t indirectbrIndex;" (type_identifier) "indirectbrIndex_t" (field_identifier) "indirectbrIndex" (;) ";" (field_declaration) "dataRec_t drec;" (type_identifier) "dataRec_t" (field_identifier) "drec" (;) ";" (comment) "// Here assume the max number of thread id won't exceed 2^16" (comment) "// tgtid is the target thread id after a schedule" (field_declaration) "thread_t tgtid;" (type_identifier) "thread_t" (field_identifier) "tgtid" (;) ";" (}) "}" (identifier) "body" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n }" (struct) "struct" (type_identifier) "DataRecEntry" (field_declaration_list) "{\n std::string instUniqueID;\n uint64_t data;\n }" ({) "{" (field_declaration) "std::string instUniqueID;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "instUniqueID" (;) ";" (field_declaration) "uint64_t data;" (primitive_type) "uint64_t" (field_identifier) "data" (;) ";" (}) "}" (;) ";" (ERROR) "}" (}) "}" (#endif) "#endif"
217
10
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 31.36, "nodes": 137, "errors": 0, "source_hash": "62dd28e9ac146bd6fabf5403fe8bfb52eeb5cc05a4794529d11bf40acf40a214", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef KLEE_SERIALIZABLETYPES_H\n#define KLEE_SERIALIZABLETYPES_H\n#include <string>\n#include <vector>\nnamespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n };\n\n struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n };\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 125, 136], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 55, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "KLEE_SERIALIZABLETYPES_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define KLEE_SERIALIZABLETYPES_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": "KLEE_SERIALIZABLETYPES_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 32}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 12, "type": "function_definition", "text": "namespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n }", "parent": 0, "children": [13, 14], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 48, "column": 3}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 14, "type": "identifier", "text": "klee", "parent": 12, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 14}}, {"id": 15, "type": "struct_specifier", "text": "struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n }", "parent": 12, "children": [16, 17], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 8}}, {"id": 17, "type": "type_identifier", "text": "ExecutionStats", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 23}}, {"id": 18, "type": "field_declaration", "text": "std::string llvm_inst_str;", "parent": 15, "children": [19, 20, 22], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 30}}, {"id": 19, "type": "type_identifier", "text": "std", "parent": 18, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 20, "type": "ERROR", "text": "::string", "parent": 18, "children": [21], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 15}}, {"id": 21, "type": "field_identifier", "text": "string", "parent": 20, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 15}}, {"id": 22, "type": "field_identifier", "text": "llvm_inst_str", "parent": 18, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 29}}, {"id": 23, "type": "field_declaration", "text": "std::string file_loc;", "parent": 15, "children": [24, 25, 27], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 25}}, {"id": 24, "type": "type_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 25, "type": "ERROR", "text": "::string", "parent": 23, "children": [26], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 15}}, {"id": 26, "type": "field_identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 15}}, {"id": 27, "type": "field_identifier", "text": "file_loc", "parent": 23, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 24}}, {"id": 28, "type": "field_declaration", "text": "uint64_t instructions_cnt;", "parent": 15, "children": [29, 30], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 30}}, {"id": 29, "type": "primitive_type", "text": "uint64_t", "parent": 28, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 12}}, {"id": 30, "type": "field_identifier", "text": "instructions_cnt", "parent": 28, "children": [], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 29}}, {"id": 31, "type": "field_declaration", "text": "int64_t queryCost_us;", "parent": 15, "children": [32, 33], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 25}}, {"id": 32, "type": "primitive_type", "text": "int64_t", "parent": 31, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 11}}, {"id": 33, "type": "field_identifier", "text": "queryCost_us", "parent": 31, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 24}}, {"id": 34, "type": "field_declaration", "text": "int64_t queryCost_increment_us;", "parent": 15, "children": [35, 36], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 35}}, {"id": 35, "type": "primitive_type", "text": "int64_t", "parent": 34, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 36, "type": "field_identifier", "text": "queryCost_increment_us", "parent": 34, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 34}}, {"id": 37, "type": "struct_specifier", "text": "struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n }", "parent": 12, "children": [38, 39], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 39, "type": "type_identifier", "text": "StringInstStats", "parent": 37, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 24}}, {"id": 40, "type": "field_declaration", "text": "uint64_t instcnt;", "parent": 37, "children": [41, 42], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 21}}, {"id": 41, "type": "primitive_type", "text": "uint64_t", "parent": 40, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 12}}, {"id": 42, "type": "field_identifier", "text": "instcnt", "parent": 40, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 20}}, {"id": 43, "type": "field_declaration", "text": "std::string str;", "parent": 37, "children": [44, 45, 47], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 20}}, {"id": 44, "type": "type_identifier", "text": "std", "parent": 43, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 7}}, {"id": 45, "type": "ERROR", "text": "::string", "parent": 43, "children": [46], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 46, "type": "field_identifier", "text": "string", "parent": 45, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 15}}, {"id": 47, "type": "field_identifier", "text": "str", "parent": 43, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 19}}, {"id": 48, "type": "declaration", "text": "struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;", "parent": 12, "children": [49, 98], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 35, "column": 63}}, {"id": 49, "type": "struct_specifier", "text": "struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; }", "parent": 48, "children": [50, 51], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 35, "column": 52}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 8}}, {"id": 51, "type": "type_identifier", "text": "PathEntry", "parent": 49, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 52, "type": "field_declaration", "text": "enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };", "parent": 49, "children": [53], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 31, "column": 6}}, {"id": 53, "type": "enum_specifier", "text": "enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n }", "parent": 52, "children": [54, 55, 56, 58, 59], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 54, "type": "enum", "text": "enum", "parent": 53, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 55, "type": "type_identifier", "text": "PathEntry_t", "parent": 53, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 20}}, {"id": 56, "type": "ERROR", "text": "unsigned", "parent": 53, "children": [57], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 30}}, {"id": 57, "type": "identifier", "text": "unsigned", "parent": 56, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 30}}, {"id": 58, "type": "primitive_type", "text": "char", "parent": 53, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 35}}, {"id": 59, "type": "enumerator_list", "text": "{\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n }", "parent": 53, "children": [60, 62, 64, 66, 68, 70, 72], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 31, "column": 5}}, {"id": 60, "type": "enumerator", "text": "FORK", "parent": 59, "children": [61], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 61, "type": "identifier", "text": "FORK", "parent": 60, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 62, "type": "enumerator", "text": "SWITCH_EXPIDX", "parent": 59, "children": [63], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 19}}, {"id": 63, "type": "identifier", "text": "SWITCH_EXPIDX", "parent": 62, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 19}}, {"id": 64, "type": "enumerator", "text": "SWITCH_BBIDX", "parent": 59, "children": [65], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 18}}, {"id": 65, "type": "identifier", "text": "SWITCH_BBIDX", "parent": 64, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 18}}, {"id": 66, "type": "enumerator", "text": "INDIRECTBR", "parent": 59, "children": [67], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 16}}, {"id": 67, "type": "identifier", "text": "INDIRECTBR", "parent": 66, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 16}}, {"id": 68, "type": "enumerator", "text": "DATAREC", "parent": 59, "children": [69], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 69, "type": "identifier", "text": "DATAREC", "parent": 68, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 13}}, {"id": 70, "type": "enumerator", "text": "SCHEDULE", "parent": 59, "children": [71], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 71, "type": "identifier", "text": "SCHEDULE", "parent": 70, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 14}}, {"id": 72, "type": "enumerator", "text": "NUM_PATHENTRY_T", "parent": 59, "children": [73], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 21}}, {"id": 73, "type": "identifier", "text": "NUM_PATHENTRY_T", "parent": 72, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 21}}, {"id": 74, "type": "field_declaration", "text": "typedef uint16_t switchIndex_t;", "parent": 49, "children": [75, 76, 78], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 35}}, {"id": 75, "type": "type_identifier", "text": "typedef", "parent": 74, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 11}}, {"id": 76, "type": "ERROR", "text": "uint16_t", "parent": 74, "children": [77], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 20}}, {"id": 77, "type": "field_identifier", "text": "uint16_t", "parent": 76, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 20}}, {"id": 78, "type": "field_identifier", "text": "switchIndex_t", "parent": 74, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 34}}, {"id": 79, "type": "field_declaration", "text": "typedef uint8_t indirectbrIndex_t;", "parent": 49, "children": [80, 81, 83], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 38}}, {"id": 80, "type": "type_identifier", "text": "typedef", "parent": 79, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 81, "type": "ERROR", "text": "uint8_t", "parent": 79, "children": [82], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 19}}, {"id": 82, "type": "field_identifier", "text": "uint8_t", "parent": 81, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 19}}, {"id": 83, "type": "field_identifier", "text": "indirectbrIndex_t", "parent": 79, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 37}}, {"id": 84, "type": "field_declaration", "text": "typedef uint8_t numKids_t;", "parent": 49, "children": [85, 86, 88], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 30}}, {"id": 85, "type": "type_identifier", "text": "typedef", "parent": 84, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 86, "type": "ERROR", "text": "uint8_t", "parent": 84, "children": [87], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 19}}, {"id": 87, "type": "field_identifier", "text": "uint8_t", "parent": 86, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 19}}, {"id": 88, "type": "field_identifier", "text": "numKids_t", "parent": 84, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 29}}, {"id": 89, "type": "field_declaration", "text": "typedef struct { uint8_t IDlen;", "parent": 49, "children": [90, 91, 92], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 35}}, {"id": 90, "type": "type_identifier", "text": "typedef", "parent": 89, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 91, "type": "field_identifier", "text": "struct", "parent": 89, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 18}}, {"id": 92, "type": "ERROR", "text": "{ uint8_t IDlen", "parent": 89, "children": [93, 94], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 34}}, {"id": 93, "type": "primitive_type", "text": "uint8_t", "parent": 92, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 28}}, {"id": 94, "type": "identifier", "text": "IDlen", "parent": 92, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 34}}, {"id": 95, "type": "field_declaration", "text": "uint8_t width;", "parent": 49, "children": [96, 97], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 50}}, {"id": 96, "type": "primitive_type", "text": "uint8_t", "parent": 95, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 43}}, {"id": 97, "type": "field_identifier", "text": "width", "parent": 95, "children": [], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 49}}, {"id": 98, "type": "identifier", "text": "dataRec_t", "parent": 48, "children": [], "start_point": {"row": 35, "column": 53}, "end_point": {"row": 35, "column": 62}}, {"id": 99, "type": "type_definition", "text": "typedef uint16_t thread_t;", "parent": 12, "children": [100, 101, 102], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 30}}, {"id": 100, "type": "typedef", "text": "typedef", "parent": 99, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 11}}, {"id": 101, "type": "primitive_type", "text": "uint16_t", "parent": 99, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 20}}, {"id": 102, "type": "type_identifier", "text": "thread_t", "parent": 99, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 29}}, {"id": 103, "type": "declaration", "text": "PathEntry_t t;", "parent": 12, "children": [104, 105], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 18}}, {"id": 104, "type": "type_identifier", "text": "PathEntry_t", "parent": 103, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 105, "type": "identifier", "text": "t", "parent": 103, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 106, "type": "declaration", "text": "union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;", "parent": 12, "children": [107, 124], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 47, "column": 11}}, {"id": 107, "type": "union_specifier", "text": "union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n }", "parent": 106, "children": [108], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 108, "type": "union", "text": "union", "parent": 107, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 9}}, {"id": 109, "type": "field_declaration", "text": "bool br;", "parent": 107, "children": [110, 111], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 14}}, {"id": 110, "type": "primitive_type", "text": "bool", "parent": 109, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 10}}, {"id": 111, "type": "field_identifier", "text": "br", "parent": 109, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 13}}, {"id": 112, "type": "field_declaration", "text": "switchIndex_t switchIndex;", "parent": 107, "children": [113, 114], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 32}}, {"id": 113, "type": "type_identifier", "text": "switchIndex_t", "parent": 112, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 19}}, {"id": 114, "type": "field_identifier", "text": "switchIndex", "parent": 112, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 31}}, {"id": 115, "type": "field_declaration", "text": "indirectbrIndex_t indirectbrIndex;", "parent": 107, "children": [116, 117], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 40}}, {"id": 116, "type": "type_identifier", "text": "indirectbrIndex_t", "parent": 115, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 23}}, {"id": 117, "type": "field_identifier", "text": "indirectbrIndex", "parent": 115, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 39}}, {"id": 118, "type": "field_declaration", "text": "dataRec_t drec;", "parent": 107, "children": [119, 120], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 21}}, {"id": 119, "type": "type_identifier", "text": "dataRec_t", "parent": 118, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 15}}, {"id": 120, "type": "field_identifier", "text": "drec", "parent": 118, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 20}}, {"id": 121, "type": "field_declaration", "text": "thread_t tgtid;", "parent": 107, "children": [122, 123], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 21}}, {"id": 122, "type": "type_identifier", "text": "thread_t", "parent": 121, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 14}}, {"id": 123, "type": "field_identifier", "text": "tgtid", "parent": 121, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 20}}, {"id": 124, "type": "identifier", "text": "body", "parent": 106, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 10}}, {"id": 125, "type": "struct_specifier", "text": "struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n }", "parent": 0, "children": [126, 127], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 53, "column": 3}}, {"id": 126, "type": "struct", "text": "struct", "parent": 125, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 8}}, {"id": 127, "type": "type_identifier", "text": "DataRecEntry", "parent": 125, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 21}}, {"id": 128, "type": "field_declaration", "text": "std::string instUniqueID;", "parent": 125, "children": [129, 130, 132], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 29}}, {"id": 129, "type": "type_identifier", "text": "std", "parent": 128, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 7}}, {"id": 130, "type": "ERROR", "text": "::string", "parent": 128, "children": [131], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 15}}, {"id": 131, "type": "field_identifier", "text": "string", "parent": 130, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 15}}, {"id": 132, "type": "field_identifier", "text": "instUniqueID", "parent": 128, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 28}}, {"id": 133, "type": "field_declaration", "text": "uint64_t data;", "parent": 125, "children": [134, 135], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 18}}, {"id": 134, "type": "primitive_type", "text": "uint64_t", "parent": 133, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 12}}, {"id": 135, "type": "field_identifier", "text": "data", "parent": 133, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 17}}, {"id": 136, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12], "variables": [18, 23, 28, 31, 34, 40, 43, 48, 52, 74, 79, 84, 89, 95, 99, 103, 106, 109, 112, 115, 118, 121, 128, 133], "classes": [15, 16, 37, 38, 49, 50, 107, 108, 125, 126], "imports": [6, 7, 9, 10], "modules": [], "enums": [53, 54, 59, 60, 62, 64, 66, 68, 70, 72]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 17, 19, 21, 22, 24, 26, 27, 30, 33, 36, 39, 42, 44, 46, 47, 51, 55, 57, 61, 63, 65, 67, 69, 71, 73, 75, 77, 78, 80, 82, 83, 85, 87, 88, 90, 91, 94, 97, 98, 102, 104, 105, 111, 113, 114, 116, 117, 119, 120, 122, 123, 124, 127, 129, 131, 132, 135, 136], "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": "ExecutionStats", "text_snippet": "namespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "ExecutionStats", "text_snippet": "struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instru"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "StringInstStats", "text_snippet": "struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n }"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 49, "universal_type": "class", "name": "PathEntry", "text_snippet": "struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 107, "universal_type": "class", "name": "{", "text_snippet": "union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchInd"}, {"node_id": 108, "universal_type": "class", "name": "unknown", "text_snippet": "union"}, {"node_id": 125, "universal_type": "class", "name": "DataRecEntry", "text_snippet": "struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n }"}, {"node_id": 126, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef KLEE_SERIALIZABLETYPES_H\n#define KLEE_SERIALIZABLETYPES_H\n#include <string>\n#include <vector>\nnamespace klee {\n struct ExecutionStats {\n std::string llvm_inst_str;\n std::string file_loc;\n uint64_t instructions_cnt;\n \n int64_t queryCost_us;\n int64_t queryCost_increment_us;\n };\n // One string one instruction counter Statistics\n // Used by Constraint Stats and Stack Stats\n struct StringInstStats {\n uint64_t instcnt;\n std::string str;\n };\n // The unit of path recording\n struct PathEntry {\n // note that you should also update \"PathEntry_t_str\" in pathviewer/main.cpp\n // if you changed PathEntry_t\n enum PathEntry_t: unsigned char {\n FORK, // For Instruction::Branch\n SWITCH_EXPIDX, // For Instruction::Switch, used when switch condition is concrete (can be mapped to unique case expression).\n SWITCH_BBIDX, // For Instruction::Switch, used when switch condition is symbolic (only destination basicblock can be determined)\n INDIRECTBR, // For Instruction::IndirectBr\n DATAREC,\n SCHEDULE,\n NUM_PATHENTRY_T\n };\n typedef uint16_t switchIndex_t;\n typedef uint8_t indirectbrIndex_t;\n typedef uint8_t numKids_t;\n typedef struct { uint8_t IDlen; uint8_t width; } dataRec_t;\n typedef uint16_t thread_t;\n PathEntry_t t;\n union {\n bool br;\n // Here assume the number of branches won't exceed 2^16\n switchIndex_t switchIndex;\n indirectbrIndex_t indirectbrIndex;\n dataRec_t drec;\n // Here assume the max number of thread id won't exceed 2^16\n // tgtid is the target thread id after a schedule\n thread_t tgtid;\n } body;\n };\n\n struct DataRecEntry {\n std::string instUniqueID;\n uint64_t data;\n };\n}\n#endif\n"}
80,726
c
/*- * builtin.c * This file is part of libmetha * * Copyright (c) 2008, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * http://bithack.se/projects/methabot/ */ #include <string.h> #include <stdlib.h> #include <ctype.h> #include <sys/stat.h> #include "errors.h" #include "ftpparse.h" #include "worker.h" #include "urlengine.h" #include "io.h" #include "builtin.h" /** * Builtin parsers except for the html parser which is in html.c **/ struct { const char *name; int len; } protocols[] = { {"https", 5}, {"http", 4}, {"ftp", 3}, }; /** * Default CSS parser **/ M_CODE lm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h, url_t *url, attr_list_t *al) { return lm_extract_css_urls(ue_h, buf->ptr, buf->sz); } /** * download the data to a local file instead of * to memory * * the parser chain will receive the file name in * this.data instead of the real buffer. **/ M_CODE lm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h, iobuf_t *buf, iostat_t *iostat, url_t *url) { int r; char *name; char *ext; char *s; int x; int ext_offs; int a_sz; int sz; struct stat st; /** * create a filename to download to **/ if (url->ext_o) { for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++) ; if (!(ext = malloc(x-url->ext_o+1))) return M_OUT_OF_MEM; memcpy(ext, url->str+url->ext_o, x-url->ext_o); ext[x-url->ext_o] = '\0'; ext_offs = url->ext_o-(url->file_o+1); } else { ext = strdup(""); for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++) ; ext_offs = x-(url->file_o+1); } if (url->file_o+1 == url->sz) { if (!(name = malloc(a_sz = sizeof("index.html")+32))) return M_OUT_OF_MEM; memcpy(name, "index.html", sizeof("index.html")); ext_offs = strlen("index"); ext = strdup(".html"); } else { if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32))) return M_OUT_OF_MEM; memcpy(name, url->str+url->file_o+1, ext_offs); strcpy(name+ext_offs, ext); } x=0; if (stat(name, &st) == 0) { do { x++; sz = sprintf(name+ext_offs, "-%d%s", x, ext); } while (stat(name, &st) == 0); } r = lm_io_save(h, url, name); if (r == M_OK) { /* set the I/O buffer to the name of the file */ free(h->buf.ptr); h->buf.ptr = name; h->buf.sz = strlen(name); h->buf.cap = a_sz; } else free(name); free(ext); return M_OK; } /** * Parse the given string as CSS and add the found URLs to * the uehandle. **/ M_CODE lm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz) { char *p = buf; char *e = p+sz; char *t, *s; while ((p = memmem(p, e-p, "url", 3))) { p += 3; while (isspace(*p)) p++; if (*p == '(') { do p++; while (isspace(*p)); t = (*p == '"' ? "\")" : (*p == '\'' ? "')" : ")")); if (*t != ')') { do p++; while (isspace(*p)); } } else { continue; } if (!(s = memmem(p, e-p, t, strlen(t)))) { continue; } ue_add(ue_h, p, s-p); p = s; } return M_OK; } /** * Default plaintext parser **/ M_CODE lm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h, url_t *url, attr_list_t *al) { return lm_extract_text_urls(ue_h, buf->ptr, buf->sz); } M_CODE lm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz) { int x; char *s, *e = p+sz; char *m = p; char *p_start; for (p = strstr(p, "//"); p && p<e; p = strstr(p+1, "//")) { p_start = 0; if (p-1 > m && *(p-1) == ':') { for (x=0;x<3;x++) { p_start = p-1-protocols[x].len; if (p_start >= m && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) { break; } p_start = 0; } } else { p_start = p; } if (p_start) { for (s=p+2; s < e; s++) { if (!isalnum(*s) && *s != '%' && *s != '?' && *s != '=' && *s != '&' && *s != '/' && *s != '.' && *s != ':' && *s != '_' && *s != '-') { ue_add(ue_h, p_start, (s-p_start)); break; } } p = s; } } return M_OK; } /** * Default FTP parser. Expects data returned from the default * FTP handler. **/ M_CODE lm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h, url_t *url, attr_list_t *al) { char *p, *prev; struct ftpparse info; char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */ int len; for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) { if (*p == '\n') { if (p-prev) { if (ftpparse(&info, prev, p-prev)) { if (info.namelen >= 126) { LM_WARNING(w->m, "file name too long"); continue; } if (info.flagtrycwd) { memcpy(name, info.name, info.namelen); name[info.namelen] = '/'; name[info.namelen+1] = '\0'; len = info.namelen+1; } else { strncpy(name, info.name, info.namelen); len = info.namelen; } ue_add(ue_h, name, len); } prev = p+1; } else prev = p+1; } } return M_OK; }
27.69
235
(translation_unit) "/*-\n * builtin.c\n * This file is part of libmetha\n *\n * Copyright (c) 2008, <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n * \n * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n * \n * http://bithack.se/projects/methabot/\n */\n\n#include <string.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <sys/stat.h>\n\n#include "errors.h"\n#include "ftpparse.h"\n#include "worker.h"\n#include "urlengine.h"\n#include "io.h"\n#include "builtin.h"\n\n/** \n * Builtin parsers except for the html parser which is in html.c\n **/\n\nstruct {\n const char *name;\n int len;\n} protocols[] = {\n {"https", 5},\n {"http", 4},\n {"ftp", 3},\n};\n\n/** \n * Default CSS parser\n **/\nM_CODE\nlm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)\n{\n return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);\n}\n\n/** \n * download the data to a local file instead of\n * to memory\n *\n * the parser chain will receive the file name in\n * this.data instead of the real buffer.\n **/\nM_CODE\nlm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)\n{\n int r;\n char *name;\n char *ext;\n char *s;\n int x;\n int ext_offs;\n int a_sz;\n int sz;\n struct stat st;\n\n /** \n * create a filename to download to\n **/\n if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }\n\n if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, "index.html", sizeof("index.html"));\n ext_offs = strlen("index");\n ext = strdup(".html");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }\n\n x=0;\n if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);\n }\n\n r = lm_io_save(h, url, name);\n\n if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);\n\n free(ext);\n return M_OK;\n}\n\n/** \n * Parse the given string as CSS and add the found URLs to\n * the uehandle.\n **/\nM_CODE\nlm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)\n{\n char *p = buf;\n char *e = p+sz;\n char *t, *s;\n while ((p = memmem(p, e-p, "url", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }\n\n return M_OK;\n}\n\n/** \n * Default plaintext parser\n **/\nM_CODE\nlm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);\n}\n\nM_CODE\nlm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)\n{\n int x;\n char *s, *e = p+sz;\n char *m = p;\n char *p_start;\n\n for (p = strstr(p, "//"); p && p<e; p = strstr(p+1, "//")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }\n\n return M_OK;\n}\n\n/** \n * Default FTP parser. Expects data returned from the default\n * FTP handler.\n **/\nM_CODE\nlm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n char *p, *prev;\n struct ftpparse info;\n char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */\n int len;\n\n for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }\n\n return M_OK;\n}\n\n" (comment) "/*-\n * builtin.c\n * This file is part of libmetha\n *\n * Copyright (c) 2008, <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n * \n * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n * \n * http://bithack.se/projects/methabot/\n */" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include "errors.h"\n" (#include) "#include" (string_literal) ""errors.h"" (") """ (string_content) "errors.h" (") """ (preproc_include) "#include "ftpparse.h"\n" (#include) "#include" (string_literal) ""ftpparse.h"" (") """ (string_content) "ftpparse.h" (") """ (preproc_include) "#include "worker.h"\n" (#include) "#include" (string_literal) ""worker.h"" (") """ (string_content) "worker.h" (") """ (preproc_include) "#include "urlengine.h"\n" (#include) "#include" (string_literal) ""urlengine.h"" (") """ (string_content) "urlengine.h" (") """ (preproc_include) "#include "io.h"\n" (#include) "#include" (string_literal) ""io.h"" (") """ (string_content) "io.h" (") """ (preproc_include) "#include "builtin.h"\n" (#include) "#include" (string_literal) ""builtin.h"" (") """ (string_content) "builtin.h" (") """ (comment) "/** \n * Builtin parsers except for the html parser which is in html.c\n **/" (declaration) "struct {\n const char *name;\n int len;\n} protocols[] = {\n {"https", 5},\n {"http", 4},\n {"ftp", 3},\n};" (struct_specifier) "struct {\n const char *name;\n int len;\n}" (struct) "struct" (field_declaration_list) "{\n const char *name;\n int len;\n}" ({) "{" (field_declaration) "const char *name;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (field_identifier) "name" (;) ";" (field_declaration) "int len;" (primitive_type) "int" (field_identifier) "len" (;) ";" (}) "}" (init_declarator) "protocols[] = {\n {"https", 5},\n {"http", 4},\n {"ftp", 3},\n}" (array_declarator) "protocols[]" (identifier) "protocols" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"https", 5},\n {"http", 4},\n {"ftp", 3},\n}" ({) "{" (initializer_list) "{"https", 5}" ({) "{" (string_literal) ""https"" (") """ (string_content) "https" (") """ (,) "," (number_literal) "5" (}) "}" (,) "," (initializer_list) "{"http", 4}" ({) "{" (string_literal) ""http"" (") """ (string_content) "http" (") """ (,) "," (number_literal) "4" (}) "}" (,) "," (initializer_list) "{"ftp", 3}" ({) "{" (string_literal) ""ftp"" (") """ (string_content) "ftp" (") """ (,) "," (number_literal) "3" (}) "}" (,) "," (}) "}" (;) ";" (comment) "/** \n * Default CSS parser\n **/" (function_definition) "M_CODE\nlm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)\n{\n return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);\n}" (type_identifier) "M_CODE" (function_declarator) "lm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)" (identifier) "lm_parser_css" (parameter_list) "(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)" (() "(" (parameter_declaration) "metha_t *m" (type_identifier) "metha_t" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "worker_t *w" (type_identifier) "worker_t" (pointer_declarator) "*w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "iobuf_t *buf" (type_identifier) "iobuf_t" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "uehandle_t *ue_h" (type_identifier) "uehandle_t" (pointer_declarator) "*ue_h" (*) "*" (identifier) "ue_h" (,) "," (parameter_declaration) "url_t *url" (type_identifier) "url_t" (pointer_declarator) "*url" (*) "*" (identifier) "url" (,) "," (parameter_declaration) "attr_list_t *al" (type_identifier) "attr_list_t" (pointer_declarator) "*al" (*) "*" (identifier) "al" ()) ")" (compound_statement) "{\n return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);\n}" ({) "{" (return_statement) "return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);" (return) "return" (call_expression) "lm_extract_css_urls(ue_h, buf->ptr, buf->sz)" (identifier) "lm_extract_css_urls" (argument_list) "(ue_h, buf->ptr, buf->sz)" (() "(" (identifier) "ue_h" (,) "," (field_expression) "buf->ptr" (identifier) "buf" (->) "->" (field_identifier) "ptr" (,) "," (field_expression) "buf->sz" (identifier) "buf" (->) "->" (field_identifier) "sz" ()) ")" (;) ";" (}) "}" (comment) "/** \n * download the data to a local file instead of\n * to memory\n *\n * the parser chain will receive the file name in\n * this.data instead of the real buffer.\n **/" (function_definition) "M_CODE\nlm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)\n{\n int r;\n char *name;\n char *ext;\n char *s;\n int x;\n int ext_offs;\n int a_sz;\n int sz;\n struct stat st;\n\n /** \n * create a filename to download to\n **/\n if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }\n\n if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, "index.html", sizeof("index.html"));\n ext_offs = strlen("index");\n ext = strdup(".html");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }\n\n x=0;\n if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);\n }\n\n r = lm_io_save(h, url, name);\n\n if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);\n\n free(ext);\n return M_OK;\n}" (type_identifier) "M_CODE" (function_declarator) "lm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)" (identifier) "lm_handler_writefile" (parameter_list) "(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)" (() "(" (parameter_declaration) "metha_t *m" (type_identifier) "metha_t" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "worker_t *w" (type_identifier) "worker_t" (pointer_declarator) "*w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "iohandle_t *h" (type_identifier) "iohandle_t" (pointer_declarator) "*h" (*) "*" (identifier) "h" (,) "," (parameter_declaration) "iobuf_t *buf" (type_identifier) "iobuf_t" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "iostat_t *iostat" (type_identifier) "iostat_t" (pointer_declarator) "*iostat" (*) "*" (identifier) "iostat" (,) "," (parameter_declaration) "url_t *url" (type_identifier) "url_t" (pointer_declarator) "*url" (*) "*" (identifier) "url" ()) ")" (compound_statement) "{\n int r;\n char *name;\n char *ext;\n char *s;\n int x;\n int ext_offs;\n int a_sz;\n int sz;\n struct stat st;\n\n /** \n * create a filename to download to\n **/\n if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }\n\n if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, "index.html", sizeof("index.html"));\n ext_offs = strlen("index");\n ext = strdup(".html");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }\n\n x=0;\n if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);\n }\n\n r = lm_io_save(h, url, name);\n\n if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);\n\n free(ext);\n return M_OK;\n}" ({) "{" (declaration) "int r;" (primitive_type) "int" (identifier) "r" (;) ";" (declaration) "char *name;" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" (;) ";" (declaration) "char *ext;" (primitive_type) "char" (pointer_declarator) "*ext" (*) "*" (identifier) "ext" (;) ";" (declaration) "char *s;" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (declaration) "int x;" (primitive_type) "int" (identifier) "x" (;) ";" (declaration) "int ext_offs;" (primitive_type) "int" (identifier) "ext_offs" (;) ";" (declaration) "int a_sz;" (primitive_type) "int" (identifier) "a_sz" (;) ";" (declaration) "int sz;" (primitive_type) "int" (identifier) "sz" (;) ";" (declaration) "struct stat st;" (struct_specifier) "struct stat" (struct) "struct" (type_identifier) "stat" (identifier) "st" (;) ";" (comment) "/** \n * create a filename to download to\n **/" (if_statement) "if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }" (if) "if" (parenthesized_expression) "(url->ext_o)" (() "(" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" ()) ")" (compound_statement) "{\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n }" ({) "{" (for_statement) "for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;" (for) "for" (() "(" (assignment_expression) "x = url->ext_o" (identifier) "x" (=) "=" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" (;) ";" (binary_expression) "*(url->str+x) && *(url->str+x) != '?'" (pointer_expression) "*(url->str+x)" (*) "*" (parenthesized_expression) "(url->str+x)" (() "(" (binary_expression) "url->str+x" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (identifier) "x" ()) ")" (&&) "&&" (binary_expression) "*(url->str+x) != '?'" (pointer_expression) "*(url->str+x)" (*) "*" (parenthesized_expression) "(url->str+x)" (() "(" (binary_expression) "url->str+x" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (identifier) "x" ()) ")" (!=) "!=" (char_literal) "'?'" (') "'" (character) "?" (') "'" (;) ";" (update_expression) "x++" (identifier) "x" (++) "++" ()) ")" (expression_statement) ";" (;) ";" (if_statement) "if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;" (if) "if" (parenthesized_expression) "(!(ext = malloc(x-url->ext_o+1)))" (() "(" (unary_expression) "!(ext = malloc(x-url->ext_o+1))" (!) "!" (parenthesized_expression) "(ext = malloc(x-url->ext_o+1))" (() "(" (assignment_expression) "ext = malloc(x-url->ext_o+1)" (identifier) "ext" (=) "=" (call_expression) "malloc(x-url->ext_o+1)" (identifier) "malloc" (argument_list) "(x-url->ext_o+1)" (() "(" (binary_expression) "x-url->ext_o+1" (binary_expression) "x-url->ext_o" (identifier) "x" (-) "-" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" (+) "+" (number_literal) "1" ()) ")" ()) ")" ()) ")" (return_statement) "return M_OUT_OF_MEM;" (return) "return" (identifier) "M_OUT_OF_MEM" (;) ";" (expression_statement) "memcpy(ext, url->str+url->ext_o, x-url->ext_o);" (call_expression) "memcpy(ext, url->str+url->ext_o, x-url->ext_o)" (identifier) "memcpy" (argument_list) "(ext, url->str+url->ext_o, x-url->ext_o)" (() "(" (identifier) "ext" (,) "," (binary_expression) "url->str+url->ext_o" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" (,) "," (binary_expression) "x-url->ext_o" (identifier) "x" (-) "-" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" ()) ")" (;) ";" (expression_statement) "ext[x-url->ext_o] = '\0';" (assignment_expression) "ext[x-url->ext_o] = '\0'" (subscript_expression) "ext[x-url->ext_o]" (identifier) "ext" ([) "[" (binary_expression) "x-url->ext_o" (identifier) "x" (-) "-" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "ext_offs = url->ext_o-(url->file_o+1);" (assignment_expression) "ext_offs = url->ext_o-(url->file_o+1)" (identifier) "ext_offs" (=) "=" (binary_expression) "url->ext_o-(url->file_o+1)" (field_expression) "url->ext_o" (identifier) "url" (->) "->" (field_identifier) "ext_o" (-) "-" (parenthesized_expression) "(url->file_o+1)" (() "(" (binary_expression) "url->file_o+1" (field_expression) "url->file_o" (identifier) "url" (->) "->" (field_identifier) "file_o" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }" (else) "else" (compound_statement) "{\n ext = strdup("");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }" ({) "{" (expression_statement) "ext = strdup("");" (assignment_expression) "ext = strdup("")" (identifier) "ext" (=) "=" (call_expression) "strdup("")" (identifier) "strdup" (argument_list) "("")" (() "(" (string_literal) """" (") """ (") """ ()) ")" (;) ";" (for_statement) "for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;" (for) "for" (() "(" (assignment_expression) "x = url->file_o+1" (identifier) "x" (=) "=" (binary_expression) "url->file_o+1" (field_expression) "url->file_o" (identifier) "url" (->) "->" (field_identifier) "file_o" (+) "+" (number_literal) "1" (;) ";" (binary_expression) "*(url->str+x) && *(url->str+x) != '?'" (pointer_expression) "*(url->str+x)" (*) "*" (parenthesized_expression) "(url->str+x)" (() "(" (binary_expression) "url->str+x" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (identifier) "x" ()) ")" (&&) "&&" (binary_expression) "*(url->str+x) != '?'" (pointer_expression) "*(url->str+x)" (*) "*" (parenthesized_expression) "(url->str+x)" (() "(" (binary_expression) "url->str+x" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (identifier) "x" ()) ")" (!=) "!=" (char_literal) "'?'" (') "'" (character) "?" (') "'" (;) ";" (update_expression) "x++" (identifier) "x" (++) "++" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "ext_offs = x-(url->file_o+1);" (assignment_expression) "ext_offs = x-(url->file_o+1)" (identifier) "ext_offs" (=) "=" (binary_expression) "x-(url->file_o+1)" (identifier) "x" (-) "-" (parenthesized_expression) "(url->file_o+1)" (() "(" (binary_expression) "url->file_o+1" (field_expression) "url->file_o" (identifier) "url" (->) "->" (field_identifier) "file_o" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, "index.html", sizeof("index.html"));\n ext_offs = strlen("index");\n ext = strdup(".html");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }" (if) "if" (parenthesized_expression) "(url->file_o+1 == url->sz)" (() "(" (binary_expression) "url->file_o+1 == url->sz" (binary_expression) "url->file_o+1" (field_expression) "url->file_o" (identifier) "url" (->) "->" (field_identifier) "file_o" (+) "+" (number_literal) "1" (==) "==" (field_expression) "url->sz" (identifier) "url" (->) "->" (field_identifier) "sz" ()) ")" (compound_statement) "{\n if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, "index.html", sizeof("index.html"));\n ext_offs = strlen("index");\n ext = strdup(".html");\n }" ({) "{" (if_statement) "if (!(name = malloc(a_sz = sizeof("index.html")+32)))\n return M_OUT_OF_MEM;" (if) "if" (parenthesized_expression) "(!(name = malloc(a_sz = sizeof("index.html")+32)))" (() "(" (unary_expression) "!(name = malloc(a_sz = sizeof("index.html")+32))" (!) "!" (parenthesized_expression) "(name = malloc(a_sz = sizeof("index.html")+32))" (() "(" (assignment_expression) "name = malloc(a_sz = sizeof("index.html")+32)" (identifier) "name" (=) "=" (call_expression) "malloc(a_sz = sizeof("index.html")+32)" (identifier) "malloc" (argument_list) "(a_sz = sizeof("index.html")+32)" (() "(" (assignment_expression) "a_sz = sizeof("index.html")+32" (identifier) "a_sz" (=) "=" (binary_expression) "sizeof("index.html")+32" (sizeof_expression) "sizeof("index.html")" (sizeof) "sizeof" (parenthesized_expression) "("index.html")" (() "(" (string_literal) ""index.html"" (") """ (string_content) "index.html" (") """ ()) ")" (+) "+" (number_literal) "32" ()) ")" ()) ")" ()) ")" (return_statement) "return M_OUT_OF_MEM;" (return) "return" (identifier) "M_OUT_OF_MEM" (;) ";" (expression_statement) "memcpy(name, "index.html", sizeof("index.html"));" (call_expression) "memcpy(name, "index.html", sizeof("index.html"))" (identifier) "memcpy" (argument_list) "(name, "index.html", sizeof("index.html"))" (() "(" (identifier) "name" (,) "," (string_literal) ""index.html"" (") """ (string_content) "index.html" (") """ (,) "," (sizeof_expression) "sizeof("index.html")" (sizeof) "sizeof" (parenthesized_expression) "("index.html")" (() "(" (string_literal) ""index.html"" (") """ (string_content) "index.html" (") """ ()) ")" ()) ")" (;) ";" (expression_statement) "ext_offs = strlen("index");" (assignment_expression) "ext_offs = strlen("index")" (identifier) "ext_offs" (=) "=" (call_expression) "strlen("index")" (identifier) "strlen" (argument_list) "("index")" (() "(" (string_literal) ""index"" (") """ (string_content) "index" (") """ ()) ")" (;) ";" (expression_statement) "ext = strdup(".html");" (assignment_expression) "ext = strdup(".html")" (identifier) "ext" (=) "=" (call_expression) "strdup(".html")" (identifier) "strdup" (argument_list) "(".html")" (() "(" (string_literal) "".html"" (") """ (string_content) ".html" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }" (else) "else" (compound_statement) "{\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }" ({) "{" (if_statement) "if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;" (if) "if" (parenthesized_expression) "(!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))" (() "(" (unary_expression) "!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32))" (!) "!" (parenthesized_expression) "(name = malloc(a_sz = ext_offs+strlen(ext)+1+32))" (() "(" (assignment_expression) "name = malloc(a_sz = ext_offs+strlen(ext)+1+32)" (identifier) "name" (=) "=" (call_expression) "malloc(a_sz = ext_offs+strlen(ext)+1+32)" (identifier) "malloc" (argument_list) "(a_sz = ext_offs+strlen(ext)+1+32)" (() "(" (assignment_expression) "a_sz = ext_offs+strlen(ext)+1+32" (identifier) "a_sz" (=) "=" (binary_expression) "ext_offs+strlen(ext)+1+32" (binary_expression) "ext_offs+strlen(ext)+1" (binary_expression) "ext_offs+strlen(ext)" (identifier) "ext_offs" (+) "+" (call_expression) "strlen(ext)" (identifier) "strlen" (argument_list) "(ext)" (() "(" (identifier) "ext" ()) ")" (+) "+" (number_literal) "1" (+) "+" (number_literal) "32" ()) ")" ()) ")" ()) ")" (return_statement) "return M_OUT_OF_MEM;" (return) "return" (identifier) "M_OUT_OF_MEM" (;) ";" (expression_statement) "memcpy(name, url->str+url->file_o+1, ext_offs);" (call_expression) "memcpy(name, url->str+url->file_o+1, ext_offs)" (identifier) "memcpy" (argument_list) "(name, url->str+url->file_o+1, ext_offs)" (() "(" (identifier) "name" (,) "," (binary_expression) "url->str+url->file_o+1" (binary_expression) "url->str+url->file_o" (field_expression) "url->str" (identifier) "url" (->) "->" (field_identifier) "str" (+) "+" (field_expression) "url->file_o" (identifier) "url" (->) "->" (field_identifier) "file_o" (+) "+" (number_literal) "1" (,) "," (identifier) "ext_offs" ()) ")" (;) ";" (expression_statement) "strcpy(name+ext_offs, ext);" (call_expression) "strcpy(name+ext_offs, ext)" (identifier) "strcpy" (argument_list) "(name+ext_offs, ext)" (() "(" (binary_expression) "name+ext_offs" (identifier) "name" (+) "+" (identifier) "ext_offs" (,) "," (identifier) "ext" ()) ")" (;) ";" (}) "}" (expression_statement) "x=0;" (assignment_expression) "x=0" (identifier) "x" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);\n }" (if) "if" (parenthesized_expression) "(stat(name, &st) == 0)" (() "(" (binary_expression) "stat(name, &st) == 0" (call_expression) "stat(name, &st)" (identifier) "stat" (argument_list) "(name, &st)" (() "(" (identifier) "name" (,) "," (pointer_expression) "&st" (&) "&" (identifier) "st" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);\n }" ({) "{" (do_statement) "do {\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n } while (stat(name, &st) == 0);" (do) "do" (compound_statement) "{\n x++;\n sz = sprintf(name+ext_offs, "-%d%s", x, ext);\n }" ({) "{" (expression_statement) "x++;" (update_expression) "x++" (identifier) "x" (++) "++" (;) ";" (expression_statement) "sz = sprintf(name+ext_offs, "-%d%s", x, ext);" (assignment_expression) "sz = sprintf(name+ext_offs, "-%d%s", x, ext)" (identifier) "sz" (=) "=" (call_expression) "sprintf(name+ext_offs, "-%d%s", x, ext)" (identifier) "sprintf" (argument_list) "(name+ext_offs, "-%d%s", x, ext)" (() "(" (binary_expression) "name+ext_offs" (identifier) "name" (+) "+" (identifier) "ext_offs" (,) "," (string_literal) ""-%d%s"" (") """ (string_content) "-%d%s" (") """ (,) "," (identifier) "x" (,) "," (identifier) "ext" ()) ")" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(stat(name, &st) == 0)" (() "(" (binary_expression) "stat(name, &st) == 0" (call_expression) "stat(name, &st)" (identifier) "stat" (argument_list) "(name, &st)" (() "(" (identifier) "name" (,) "," (pointer_expression) "&st" (&) "&" (identifier) "st" ()) ")" (==) "==" (number_literal) "0" ()) ")" (;) ";" (}) "}" (expression_statement) "r = lm_io_save(h, url, name);" (assignment_expression) "r = lm_io_save(h, url, name)" (identifier) "r" (=) "=" (call_expression) "lm_io_save(h, url, name)" (identifier) "lm_io_save" (argument_list) "(h, url, name)" (() "(" (identifier) "h" (,) "," (identifier) "url" (,) "," (identifier) "name" ()) ")" (;) ";" (if_statement) "if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);" (if) "if" (parenthesized_expression) "(r == M_OK)" (() "(" (binary_expression) "r == M_OK" (identifier) "r" (==) "==" (identifier) "M_OK" ()) ")" (compound_statement) "{\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n }" ({) "{" (comment) "/* set the I/O buffer to the name of the file */" (expression_statement) "free(h->buf.ptr);" (call_expression) "free(h->buf.ptr)" (identifier) "free" (argument_list) "(h->buf.ptr)" (() "(" (field_expression) "h->buf.ptr" (field_expression) "h->buf" (identifier) "h" (->) "->" (field_identifier) "buf" (.) "." (field_identifier) "ptr" ()) ")" (;) ";" (expression_statement) "h->buf.ptr = name;" (assignment_expression) "h->buf.ptr = name" (field_expression) "h->buf.ptr" (field_expression) "h->buf" (identifier) "h" (->) "->" (field_identifier) "buf" (.) "." (field_identifier) "ptr" (=) "=" (identifier) "name" (;) ";" (expression_statement) "h->buf.sz = strlen(name);" (assignment_expression) "h->buf.sz = strlen(name)" (field_expression) "h->buf.sz" (field_expression) "h->buf" (identifier) "h" (->) "->" (field_identifier) "buf" (.) "." (field_identifier) "sz" (=) "=" (call_expression) "strlen(name)" (identifier) "strlen" (argument_list) "(name)" (() "(" (identifier) "name" ()) ")" (;) ";" (expression_statement) "h->buf.cap = a_sz;" (assignment_expression) "h->buf.cap = a_sz" (field_expression) "h->buf.cap" (field_expression) "h->buf" (identifier) "h" (->) "->" (field_identifier) "buf" (.) "." (field_identifier) "cap" (=) "=" (identifier) "a_sz" (;) ";" (}) "}" (else_clause) "else\n free(name);" (else) "else" (expression_statement) "free(name);" (call_expression) "free(name)" (identifier) "free" (argument_list) "(name)" (() "(" (identifier) "name" ()) ")" (;) ";" (expression_statement) "free(ext);" (call_expression) "free(ext)" (identifier) "free" (argument_list) "(ext)" (() "(" (identifier) "ext" ()) ")" (;) ";" (return_statement) "return M_OK;" (return) "return" (identifier) "M_OK" (;) ";" (}) "}" (comment) "/** \n * Parse the given string as CSS and add the found URLs to\n * the uehandle.\n **/" (function_definition) "M_CODE\nlm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)\n{\n char *p = buf;\n char *e = p+sz;\n char *t, *s;\n while ((p = memmem(p, e-p, "url", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }\n\n return M_OK;\n}" (type_identifier) "M_CODE" (function_declarator) "lm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)" (identifier) "lm_extract_css_urls" (parameter_list) "(uehandle_t *ue_h, char *buf, size_t sz)" (() "(" (parameter_declaration) "uehandle_t *ue_h" (type_identifier) "uehandle_t" (pointer_declarator) "*ue_h" (*) "*" (identifier) "ue_h" (,) "," (parameter_declaration) "char *buf" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t sz" (primitive_type) "size_t" (identifier) "sz" ()) ")" (compound_statement) "{\n char *p = buf;\n char *e = p+sz;\n char *t, *s;\n while ((p = memmem(p, e-p, "url", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }\n\n return M_OK;\n}" ({) "{" (declaration) "char *p = buf;" (primitive_type) "char" (init_declarator) "*p = buf" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (identifier) "buf" (;) ";" (declaration) "char *e = p+sz;" (primitive_type) "char" (init_declarator) "*e = p+sz" (pointer_declarator) "*e" (*) "*" (identifier) "e" (=) "=" (binary_expression) "p+sz" (identifier) "p" (+) "+" (identifier) "sz" (;) ";" (declaration) "char *t, *s;" (primitive_type) "char" (pointer_declarator) "*t" (*) "*" (identifier) "t" (,) "," (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (while_statement) "while ((p = memmem(p, e-p, "url", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }" (while) "while" (parenthesized_expression) "((p = memmem(p, e-p, "url", 3)))" (() "(" (parenthesized_expression) "(p = memmem(p, e-p, "url", 3))" (() "(" (assignment_expression) "p = memmem(p, e-p, "url", 3)" (identifier) "p" (=) "=" (call_expression) "memmem(p, e-p, "url", 3)" (identifier) "memmem" (argument_list) "(p, e-p, "url", 3)" (() "(" (identifier) "p" (,) "," (binary_expression) "e-p" (identifier) "e" (-) "-" (identifier) "p" (,) "," (string_literal) ""url"" (") """ (string_content) "url" (") """ (,) "," (number_literal) "3" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }" ({) "{" (expression_statement) "p += 3;" (assignment_expression) "p += 3" (identifier) "p" (+=) "+=" (number_literal) "3" (;) ";" (while_statement) "while (isspace(*p)) p++;" (while) "while" (parenthesized_expression) "(isspace(*p))" (() "(" (call_expression) "isspace(*p)" (identifier) "isspace" (argument_list) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" ()) ")" (expression_statement) "p++;" (update_expression) "p++" (identifier) "p" (++) "++" (;) ";" (if_statement) "if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }" (if) "if" (parenthesized_expression) "(*p == '(')" (() "(" (binary_expression) "*p == '('" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (char_literal) "'('" (') "'" (character) "(" (') "'" ()) ")" (compound_statement) "{\n do p++; while (isspace(*p));\n t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n }" ({) "{" (do_statement) "do p++; while (isspace(*p));" (do) "do" (expression_statement) "p++;" (update_expression) "p++" (identifier) "p" (++) "++" (;) ";" (while) "while" (parenthesized_expression) "(isspace(*p))" (() "(" (call_expression) "isspace(*p)" (identifier) "isspace" (argument_list) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" ()) ")" (;) ";" (expression_statement) "t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"));" (assignment_expression) "t = (*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"))" (identifier) "t" (=) "=" (parenthesized_expression) "(*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")"))" (() "(" (conditional_expression) "*p == '"' ? "\")"\n : (*p == '\'' ? "')" : ")")" (binary_expression) "*p == '"'" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (char_literal) "'"'" (') "'" (character) """ (') "'" (?) "?" (string_literal) ""\")"" (") """ (escape_sequence) "\"" (string_content) ")" (") """ (:) ":" (parenthesized_expression) "(*p == '\'' ? "')" : ")")" (() "(" (conditional_expression) "*p == '\'' ? "')" : ")"" (binary_expression) "*p == '\''" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (char_literal) "'\''" (') "'" (escape_sequence) "\'" (') "'" (?) "?" (string_literal) ""')"" (") """ (string_content) "')" (") """ (:) ":" (string_literal) "")"" (") """ (string_content) ")" (") """ ()) ")" ()) ")" (;) ";" (if_statement) "if (*t != ')') {\n do p++; while (isspace(*p));\n }" (if) "if" (parenthesized_expression) "(*t != ')')" (() "(" (binary_expression) "*t != ')'" (pointer_expression) "*t" (*) "*" (identifier) "t" (!=) "!=" (char_literal) "')'" (') "'" (character) ")" (') "'" ()) ")" (compound_statement) "{\n do p++; while (isspace(*p));\n }" ({) "{" (do_statement) "do p++; while (isspace(*p));" (do) "do" (expression_statement) "p++;" (update_expression) "p++" (identifier) "p" (++) "++" (;) ";" (while) "while" (parenthesized_expression) "(isspace(*p))" (() "(" (call_expression) "isspace(*p)" (identifier) "isspace" (argument_list) "(*p)" (() "(" (pointer_expression) "*p" (*) "*" (identifier) "p" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n continue;\n }" (else) "else" (compound_statement) "{\n continue;\n }" ({) "{" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }" (if) "if" (parenthesized_expression) "(!(s = memmem(p, e-p, t, strlen(t))))" (() "(" (unary_expression) "!(s = memmem(p, e-p, t, strlen(t)))" (!) "!" (parenthesized_expression) "(s = memmem(p, e-p, t, strlen(t)))" (() "(" (assignment_expression) "s = memmem(p, e-p, t, strlen(t))" (identifier) "s" (=) "=" (call_expression) "memmem(p, e-p, t, strlen(t))" (identifier) "memmem" (argument_list) "(p, e-p, t, strlen(t))" (() "(" (identifier) "p" (,) "," (binary_expression) "e-p" (identifier) "e" (-) "-" (identifier) "p" (,) "," (identifier) "t" (,) "," (call_expression) "strlen(t)" (identifier) "strlen" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" ()) ")" ()) ")" ()) ")" (compound_statement) "{\n continue;\n }" ({) "{" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "ue_add(ue_h, p, s-p);" (call_expression) "ue_add(ue_h, p, s-p)" (identifier) "ue_add" (argument_list) "(ue_h, p, s-p)" (() "(" (identifier) "ue_h" (,) "," (identifier) "p" (,) "," (binary_expression) "s-p" (identifier) "s" (-) "-" (identifier) "p" ()) ")" (;) ";" (expression_statement) "p = s;" (assignment_expression) "p = s" (identifier) "p" (=) "=" (identifier) "s" (;) ";" (}) "}" (return_statement) "return M_OK;" (return) "return" (identifier) "M_OK" (;) ";" (}) "}" (comment) "/** \n * Default plaintext parser\n **/" (function_definition) "M_CODE\nlm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);\n}" (type_identifier) "M_CODE" (function_declarator) "lm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)" (identifier) "lm_parser_text" (parameter_list) "(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)" (() "(" (parameter_declaration) "metha_t *m" (type_identifier) "metha_t" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "worker_t *w" (type_identifier) "worker_t" (pointer_declarator) "*w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "iobuf_t *buf" (type_identifier) "iobuf_t" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "uehandle_t *ue_h" (type_identifier) "uehandle_t" (pointer_declarator) "*ue_h" (*) "*" (identifier) "ue_h" (,) "," (parameter_declaration) "url_t *url" (type_identifier) "url_t" (pointer_declarator) "*url" (*) "*" (identifier) "url" (,) "," (parameter_declaration) "attr_list_t *al" (type_identifier) "attr_list_t" (pointer_declarator) "*al" (*) "*" (identifier) "al" ()) ")" (compound_statement) "{\n return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);\n}" ({) "{" (return_statement) "return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);" (return) "return" (call_expression) "lm_extract_text_urls(ue_h, buf->ptr, buf->sz)" (identifier) "lm_extract_text_urls" (argument_list) "(ue_h, buf->ptr, buf->sz)" (() "(" (identifier) "ue_h" (,) "," (field_expression) "buf->ptr" (identifier) "buf" (->) "->" (field_identifier) "ptr" (,) "," (field_expression) "buf->sz" (identifier) "buf" (->) "->" (field_identifier) "sz" ()) ")" (;) ";" (}) "}" (function_definition) "M_CODE\nlm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)\n{\n int x;\n char *s, *e = p+sz;\n char *m = p;\n char *p_start;\n\n for (p = strstr(p, "//"); p && p<e; p = strstr(p+1, "//")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }\n\n return M_OK;\n}" (type_identifier) "M_CODE" (function_declarator) "lm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)" (identifier) "lm_extract_text_urls" (parameter_list) "(uehandle_t *ue_h, char *p, size_t sz)" (() "(" (parameter_declaration) "uehandle_t *ue_h" (type_identifier) "uehandle_t" (pointer_declarator) "*ue_h" (*) "*" (identifier) "ue_h" (,) "," (parameter_declaration) "char *p" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "size_t sz" (primitive_type) "size_t" (identifier) "sz" ()) ")" (compound_statement) "{\n int x;\n char *s, *e = p+sz;\n char *m = p;\n char *p_start;\n\n for (p = strstr(p, "//"); p && p<e; p = strstr(p+1, "//")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }\n\n return M_OK;\n}" ({) "{" (declaration) "int x;" (primitive_type) "int" (identifier) "x" (;) ";" (declaration) "char *s, *e = p+sz;" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (init_declarator) "*e = p+sz" (pointer_declarator) "*e" (*) "*" (identifier) "e" (=) "=" (binary_expression) "p+sz" (identifier) "p" (+) "+" (identifier) "sz" (;) ";" (declaration) "char *m = p;" (primitive_type) "char" (init_declarator) "*m = p" (pointer_declarator) "*m" (*) "*" (identifier) "m" (=) "=" (identifier) "p" (;) ";" (declaration) "char *p_start;" (primitive_type) "char" (pointer_declarator) "*p_start" (*) "*" (identifier) "p_start" (;) ";" (for_statement) "for (p = strstr(p, "//"); p && p<e; p = strstr(p+1, "//")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }" (for) "for" (() "(" (assignment_expression) "p = strstr(p, "//")" (identifier) "p" (=) "=" (call_expression) "strstr(p, "//")" (identifier) "strstr" (argument_list) "(p, "//")" (() "(" (identifier) "p" (,) "," (string_literal) ""//"" (") """ (string_content) "//" (") """ ()) ")" (;) ";" (binary_expression) "p && p<e" (identifier) "p" (&&) "&&" (binary_expression) "p<e" (identifier) "p" (<) "<" (identifier) "e" (;) ";" (assignment_expression) "p = strstr(p+1, "//")" (identifier) "p" (=) "=" (call_expression) "strstr(p+1, "//")" (identifier) "strstr" (argument_list) "(p+1, "//")" (() "(" (binary_expression) "p+1" (identifier) "p" (+) "+" (number_literal) "1" (,) "," (string_literal) ""//"" (") """ (string_content) "//" (") """ ()) ")" ()) ")" (compound_statement) "{\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }" ({) "{" (expression_statement) "p_start = 0;" (assignment_expression) "p_start = 0" (identifier) "p_start" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }" (if) "if" (parenthesized_expression) "(p-1 > m && *(p-1) == ':')" (() "(" (binary_expression) "p-1 > m && *(p-1) == ':'" (binary_expression) "p-1 > m" (binary_expression) "p-1" (identifier) "p" (-) "-" (number_literal) "1" (>) ">" (identifier) "m" (&&) "&&" (binary_expression) "*(p-1) == ':'" (pointer_expression) "*(p-1)" (*) "*" (parenthesized_expression) "(p-1)" (() "(" (binary_expression) "p-1" (identifier) "p" (-) "-" (number_literal) "1" ()) ")" (==) "==" (char_literal) "':'" (') "'" (character) ":" (') "'" ()) ")" (compound_statement) "{\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n }" ({) "{" (for_statement) "for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }" (for) "for" (() "(" (assignment_expression) "x=0" (identifier) "x" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "x<3" (identifier) "x" (<) "<" (number_literal) "3" (;) ";" (update_expression) "x++" (identifier) "x" (++) "++" ()) ")" (compound_statement) "{\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }" ({) "{" (expression_statement) "p_start = p-1-protocols[x].len;" (assignment_expression) "p_start = p-1-protocols[x].len" (identifier) "p_start" (=) "=" (binary_expression) "p-1-protocols[x].len" (binary_expression) "p-1" (identifier) "p" (-) "-" (number_literal) "1" (-) "-" (field_expression) "protocols[x].len" (subscript_expression) "protocols[x]" (identifier) "protocols" ([) "[" (identifier) "x" (]) "]" (.) "." (field_identifier) "len" (;) ";" (if_statement) "if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }" (if) "if" (parenthesized_expression) "(p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0)" (() "(" (binary_expression) "p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0" (binary_expression) "p_start >= m" (identifier) "p_start" (>=) ">=" (identifier) "m" (&&) "&&" (binary_expression) "strncmp(p_start, protocols[x].name, protocols[x].len) == 0" (call_expression) "strncmp(p_start, protocols[x].name, protocols[x].len)" (identifier) "strncmp" (argument_list) "(p_start, protocols[x].name, protocols[x].len)" (() "(" (identifier) "p_start" (,) "," (field_expression) "protocols[x].name" (subscript_expression) "protocols[x]" (identifier) "protocols" ([) "[" (identifier) "x" (]) "]" (.) "." (field_identifier) "name" (,) "," (field_expression) "protocols[x].len" (subscript_expression) "protocols[x]" (identifier) "protocols" ([) "[" (identifier) "x" (]) "]" (.) "." (field_identifier) "len" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n break;\n }" ({) "{" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "p_start = 0;" (assignment_expression) "p_start = 0" (identifier) "p_start" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (else_clause) "else {\n p_start = p;\n }" (else) "else" (compound_statement) "{\n p_start = p;\n }" ({) "{" (expression_statement) "p_start = p;" (assignment_expression) "p_start = p" (identifier) "p_start" (=) "=" (identifier) "p" (;) ";" (}) "}" (if_statement) "if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }" (if) "if" (parenthesized_expression) "(p_start)" (() "(" (identifier) "p_start" ()) ")" (compound_statement) "{\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }" ({) "{" (for_statement) "for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }" (for) "for" (() "(" (assignment_expression) "s=p+2" (identifier) "s" (=) "=" (binary_expression) "p+2" (identifier) "p" (+) "+" (number_literal) "2" (;) ";" (binary_expression) "s < e" (identifier) "s" (<) "<" (identifier) "e" (;) ";" (update_expression) "s++" (identifier) "s" (++) "++" ()) ")" (compound_statement) "{\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }" ({) "{" (if_statement) "if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }" (if) "if" (parenthesized_expression) "(!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-')" (() "(" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&'" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '='" (binary_expression) "!isalnum(*s) && *s != '%' && *s != '?'" (binary_expression) "!isalnum(*s) && *s != '%'" (unary_expression) "!isalnum(*s)" (!) "!" (call_expression) "isalnum(*s)" (identifier) "isalnum" (argument_list) "(*s)" (() "(" (pointer_expression) "*s" (*) "*" (identifier) "s" ()) ")" (&&) "&&" (binary_expression) "*s != '%'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'%'" (') "'" (character) "%" (') "'" (&&) "&&" (binary_expression) "*s != '?'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'?'" (') "'" (character) "?" (') "'" (&&) "&&" (binary_expression) "*s != '='" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'='" (') "'" (character) "=" (') "'" (&&) "&&" (binary_expression) "*s != '&'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'&'" (') "'" (character) "&" (') "'" (&&) "&&" (binary_expression) "*s != '/'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'/'" (') "'" (character) "/" (') "'" (&&) "&&" (binary_expression) "*s != '.'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'.'" (') "'" (character) "." (') "'" (&&) "&&" (binary_expression) "*s != ':'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "':'" (') "'" (character) ":" (') "'" (&&) "&&" (binary_expression) "*s != '_'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'_'" (') "'" (character) "_" (') "'" (&&) "&&" (binary_expression) "*s != '-'" (pointer_expression) "*s" (*) "*" (identifier) "s" (!=) "!=" (char_literal) "'-'" (') "'" (character) "-" (') "'" ()) ")" (compound_statement) "{\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }" ({) "{" (expression_statement) "ue_add(ue_h, p_start, (s-p_start));" (call_expression) "ue_add(ue_h, p_start, (s-p_start))" (identifier) "ue_add" (argument_list) "(ue_h, p_start, (s-p_start))" (() "(" (identifier) "ue_h" (,) "," (identifier) "p_start" (,) "," (parenthesized_expression) "(s-p_start)" (() "(" (binary_expression) "s-p_start" (identifier) "s" (-) "-" (identifier) "p_start" ()) ")" ()) ")" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (expression_statement) "p = s;" (assignment_expression) "p = s" (identifier) "p" (=) "=" (identifier) "s" (;) ";" (}) "}" (}) "}" (return_statement) "return M_OK;" (return) "return" (identifier) "M_OK" (;) ";" (}) "}" (comment) "/** \n * Default FTP parser. Expects data returned from the default\n * FTP handler.\n **/" (function_definition) "M_CODE\nlm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n char *p, *prev;\n struct ftpparse info;\n char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */\n int len;\n\n for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }\n\n return M_OK;\n}" (type_identifier) "M_CODE" (function_declarator) "lm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)" (identifier) "lm_parser_ftp" (parameter_list) "(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)" (() "(" (parameter_declaration) "metha_t *m" (type_identifier) "metha_t" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "worker_t *w" (type_identifier) "worker_t" (pointer_declarator) "*w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "iobuf_t *buf" (type_identifier) "iobuf_t" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "uehandle_t *ue_h" (type_identifier) "uehandle_t" (pointer_declarator) "*ue_h" (*) "*" (identifier) "ue_h" (,) "," (parameter_declaration) "url_t *url" (type_identifier) "url_t" (pointer_declarator) "*url" (*) "*" (identifier) "url" (,) "," (parameter_declaration) "attr_list_t *al" (type_identifier) "attr_list_t" (pointer_declarator) "*al" (*) "*" (identifier) "al" ()) ")" (compound_statement) "{\n char *p, *prev;\n struct ftpparse info;\n char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */\n int len;\n\n for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }\n\n return M_OK;\n}" ({) "{" (declaration) "char *p, *prev;" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (pointer_declarator) "*prev" (*) "*" (identifier) "prev" (;) ";" (declaration) "struct ftpparse info;" (struct_specifier) "struct ftpparse" (struct) "struct" (type_identifier) "ftpparse" (identifier) "info" (;) ";" (declaration) "char name[128];" (primitive_type) "char" (array_declarator) "name[128]" (identifier) "name" ([) "[" (number_literal) "128" (]) "]" (;) ";" (comment) "/* i'm pretty sure no filename will be longer than 127 chars... */" (declaration) "int len;" (primitive_type) "int" (identifier) "len" (;) ";" (for_statement) "for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }" (for) "for" (() "(" (assignment_expression) "prev = p = buf->ptr" (identifier) "prev" (=) "=" (assignment_expression) "p = buf->ptr" (identifier) "p" (=) "=" (field_expression) "buf->ptr" (identifier) "buf" (->) "->" (field_identifier) "ptr" (;) ";" (binary_expression) "p<buf->ptr+buf->sz" (identifier) "p" (<) "<" (binary_expression) "buf->ptr+buf->sz" (field_expression) "buf->ptr" (identifier) "buf" (->) "->" (field_identifier) "ptr" (+) "+" (field_expression) "buf->sz" (identifier) "buf" (->) "->" (field_identifier) "sz" (;) ";" (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }" ({) "{" (if_statement) "if (*p == '\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }" (if) "if" (parenthesized_expression) "(*p == '\n')" (() "(" (binary_expression) "*p == '\n'" (pointer_expression) "*p" (*) "*" (identifier) "p" (==) "==" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (compound_statement) "{\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }" ({) "{" (if_statement) "if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;" (if) "if" (parenthesized_expression) "(p-prev)" (() "(" (binary_expression) "p-prev" (identifier) "p" (-) "-" (identifier) "prev" ()) ")" (compound_statement) "{\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n }" ({) "{" (if_statement) "if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }" (if) "if" (parenthesized_expression) "(ftpparse(&info, prev, p-prev))" (() "(" (call_expression) "ftpparse(&info, prev, p-prev)" (identifier) "ftpparse" (argument_list) "(&info, prev, p-prev)" (() "(" (pointer_expression) "&info" (&) "&" (identifier) "info" (,) "," (identifier) "prev" (,) "," (binary_expression) "p-prev" (identifier) "p" (-) "-" (identifier) "prev" ()) ")" ()) ")" (compound_statement) "{\n if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }" ({) "{" (if_statement) "if (info.namelen >= 126) {\n LM_WARNING(w->m, "file name too long");\n continue;\n }" (if) "if" (parenthesized_expression) "(info.namelen >= 126)" (() "(" (binary_expression) "info.namelen >= 126" (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" (>=) ">=" (number_literal) "126" ()) ")" (compound_statement) "{\n LM_WARNING(w->m, "file name too long");\n continue;\n }" ({) "{" (expression_statement) "LM_WARNING(w->m, "file name too long");" (call_expression) "LM_WARNING(w->m, "file name too long")" (identifier) "LM_WARNING" (argument_list) "(w->m, "file name too long")" (() "(" (field_expression) "w->m" (identifier) "w" (->) "->" (field_identifier) "m" (,) "," (string_literal) ""file name too long"" (") """ (string_content) "file name too long" (") """ ()) ")" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }" (if) "if" (parenthesized_expression) "(info.flagtrycwd)" (() "(" (field_expression) "info.flagtrycwd" (identifier) "info" (.) "." (field_identifier) "flagtrycwd" ()) ")" (compound_statement) "{\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\0';\n len = info.namelen+1;\n }" ({) "{" (expression_statement) "memcpy(name, info.name, info.namelen);" (call_expression) "memcpy(name, info.name, info.namelen)" (identifier) "memcpy" (argument_list) "(name, info.name, info.namelen)" (() "(" (identifier) "name" (,) "," (field_expression) "info.name" (identifier) "info" (.) "." (field_identifier) "name" (,) "," (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" ()) ")" (;) ";" (expression_statement) "name[info.namelen] = '/';" (assignment_expression) "name[info.namelen] = '/'" (subscript_expression) "name[info.namelen]" (identifier) "name" ([) "[" (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" (]) "]" (=) "=" (char_literal) "'/'" (') "'" (character) "/" (') "'" (;) ";" (expression_statement) "name[info.namelen+1] = '\0';" (assignment_expression) "name[info.namelen+1] = '\0'" (subscript_expression) "name[info.namelen+1]" (identifier) "name" ([) "[" (binary_expression) "info.namelen+1" (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" (+) "+" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "len = info.namelen+1;" (assignment_expression) "len = info.namelen+1" (identifier) "len" (=) "=" (binary_expression) "info.namelen+1" (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" (+) "+" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }" (else) "else" (compound_statement) "{\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }" ({) "{" (expression_statement) "strncpy(name, info.name, info.namelen);" (call_expression) "strncpy(name, info.name, info.namelen)" (identifier) "strncpy" (argument_list) "(name, info.name, info.namelen)" (() "(" (identifier) "name" (,) "," (field_expression) "info.name" (identifier) "info" (.) "." (field_identifier) "name" (,) "," (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" ()) ")" (;) ";" (expression_statement) "len = info.namelen;" (assignment_expression) "len = info.namelen" (identifier) "len" (=) "=" (field_expression) "info.namelen" (identifier) "info" (.) "." (field_identifier) "namelen" (;) ";" (}) "}" (expression_statement) "ue_add(ue_h, name, len);" (call_expression) "ue_add(ue_h, name, len)" (identifier) "ue_add" (argument_list) "(ue_h, name, len)" (() "(" (identifier) "ue_h" (,) "," (identifier) "name" (,) "," (identifier) "len" ()) ")" (;) ";" (}) "}" (expression_statement) "prev = p+1;" (assignment_expression) "prev = p+1" (identifier) "prev" (=) "=" (binary_expression) "p+1" (identifier) "p" (+) "+" (number_literal) "1" (;) ";" (}) "}" (else_clause) "else\n prev = p+1;" (else) "else" (expression_statement) "prev = p+1;" (assignment_expression) "prev = p+1" (identifier) "prev" (=) "=" (binary_expression) "p+1" (identifier) "p" (+) "+" (number_literal) "1" (;) ";" (}) "}" (}) "}" (return_statement) "return M_OK;" (return) "return" (identifier) "M_OK" (;) ";" (}) "}"
2,027
0
{"language": "c", "success": true, "metadata": {"lines": 235, "avg_line_length": 27.69, "nodes": 1312, "errors": 0, "source_hash": "dc6e5edce93aa8ed77f5d24b714538f3ff7e146a77af1edbbdb63111ab389249", "categorized_nodes": 904}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<string.h>", "parent": 0, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <ctype.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<ctype.h>", "parent": 6, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "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": "<sys/stat.h>", "parent": 9, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"errors.h\"\n", "parent": null, "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": "\"errors.h\"", "parent": 12, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include \"ftpparse.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"ftpparse.h\"", "parent": 15, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include \"worker.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"worker.h\"", "parent": 18, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 21, "type": "preproc_include", "text": "#include \"urlengine.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"urlengine.h\"", "parent": 21, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"io.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"io.h\"", "parent": 24, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 15}}, {"id": 27, "type": "preproc_include", "text": "#include \"builtin.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"builtin.h\"", "parent": 27, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 20}}, {"id": 30, "type": "declaration", "text": "struct {\n const char *name;\n int len;\n} protocols[] = {\n {\"https\", 5},\n {\"http\", 4},\n {\"ftp\", 3},\n};", "parent": null, "children": [31, 41], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 44, "column": 2}}, {"id": 31, "type": "struct_specifier", "text": "struct {\n const char *name;\n int len;\n}", "parent": 30, "children": [32], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 32, "type": "struct", "text": "struct", "parent": 31, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}, {"id": 33, "type": "field_declaration", "text": "const char *name;", "parent": 31, "children": [34, 35], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 21}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 35, "type": "pointer_declarator", "text": "*name", "parent": 33, "children": [36, 37], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 20}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 37, "type": "field_identifier", "text": "name", "parent": 35, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 38, "type": "field_declaration", "text": "int len;", "parent": 31, "children": [39, 40], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 20}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 40, "type": "field_identifier", "text": "len", "parent": 38, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 19}}, {"id": 41, "type": "init_declarator", "text": "protocols[] = {\n {\"https\", 5},\n {\"http\", 4},\n {\"ftp\", 3},\n}", "parent": 30, "children": [42, 44, 45], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 44, "column": 1}}, {"id": 42, "type": "array_declarator", "text": "protocols[]", "parent": 41, "children": [43], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 13}}, {"id": 43, "type": "identifier", "text": "protocols", "parent": 42, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 44, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 15}}, {"id": 45, "type": "initializer_list", "text": "{\n {\"https\", 5},\n {\"http\", 4},\n {\"ftp\", 3},\n}", "parent": 41, "children": [46, 49, 52], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 44, "column": 1}}, {"id": 46, "type": "initializer_list", "text": "{\"https\", 5}", "parent": 45, "children": [47, 48], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 16}}, {"id": 47, "type": "string_literal", "text": "\"https\"", "parent": 46, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 12}}, {"id": 48, "type": "number_literal", "text": "5", "parent": 46, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 15}}, {"id": 49, "type": "initializer_list", "text": "{\"http\", 4}", "parent": 45, "children": [50, 51], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 50, "type": "string_literal", "text": "\"http\"", "parent": 49, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 11}}, {"id": 51, "type": "number_literal", "text": "4", "parent": 49, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 14}}, {"id": 52, "type": "initializer_list", "text": "{\"ftp\", 3}", "parent": 45, "children": [53, 54], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 14}}, {"id": 53, "type": "string_literal", "text": "\"ftp\"", "parent": 52, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 10}}, {"id": 54, "type": "number_literal", "text": "3", "parent": 52, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 13}}, {"id": 55, "type": "function_definition", "text": "M_CODE\nlm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)\n{\n return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);\n}", "parent": null, "children": [56, 57], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 56, "type": "type_identifier", "text": "M_CODE", "parent": 55, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 57, "type": "function_declarator", "text": "lm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)", "parent": 55, "children": [58, 59], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 42}}, {"id": 58, "type": "identifier", "text": "lm_parser_css", "parent": 57, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 13}}, {"id": 59, "type": "parameter_list", "text": "(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)", "parent": 57, "children": [60, 65, 70, 75, 80, 85], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 51, "column": 42}}, {"id": 60, "type": "parameter_declaration", "text": "metha_t *m", "parent": 59, "children": [61, 62], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 24}}, {"id": 61, "type": "type_identifier", "text": "metha_t", "parent": 60, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 21}}, {"id": 62, "type": "pointer_declarator", "text": "*m", "parent": 60, "children": [63, 64], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 24}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 23}}, {"id": 64, "type": "identifier", "text": "m", "parent": 62, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 24}}, {"id": 65, "type": "parameter_declaration", "text": "worker_t *w", "parent": 59, "children": [66, 67], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 37}}, {"id": 66, "type": "type_identifier", "text": "worker_t", "parent": 65, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 34}}, {"id": 67, "type": "pointer_declarator", "text": "*w", "parent": 65, "children": [68, 69], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 37}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 36}}, {"id": 69, "type": "identifier", "text": "w", "parent": 67, "children": [], "start_point": {"row": 50, "column": 36}, "end_point": {"row": 50, "column": 37}}, {"id": 70, "type": "parameter_declaration", "text": "iobuf_t *buf", "parent": 59, "children": [71, 72], "start_point": {"row": 50, "column": 39}, "end_point": {"row": 50, "column": 51}}, {"id": 71, "type": "type_identifier", "text": "iobuf_t", "parent": 70, "children": [], "start_point": {"row": 50, "column": 39}, "end_point": {"row": 50, "column": 46}}, {"id": 72, "type": "pointer_declarator", "text": "*buf", "parent": 70, "children": [73, 74], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 51}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 48}}, {"id": 74, "type": "identifier", "text": "buf", "parent": 72, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 51}}, {"id": 75, "type": "parameter_declaration", "text": "uehandle_t *ue_h", "parent": 59, "children": [76, 77], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 69}}, {"id": 76, "type": "type_identifier", "text": "uehandle_t", "parent": 75, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 63}}, {"id": 77, "type": "pointer_declarator", "text": "*ue_h", "parent": 75, "children": [78, 79], "start_point": {"row": 50, "column": 64}, "end_point": {"row": 50, "column": 69}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 50, "column": 64}, "end_point": {"row": 50, "column": 65}}, {"id": 79, "type": "identifier", "text": "ue_h", "parent": 77, "children": [], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 69}}, {"id": 80, "type": "parameter_declaration", "text": "url_t *url", "parent": 59, "children": [81, 82], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 24}}, {"id": 81, "type": "type_identifier", "text": "url_t", "parent": 80, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 19}}, {"id": 82, "type": "pointer_declarator", "text": "*url", "parent": 80, "children": [83, 84], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 24}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 84, "type": "identifier", "text": "url", "parent": 82, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 24}}, {"id": 85, "type": "parameter_declaration", "text": "attr_list_t *al", "parent": 59, "children": [86, 87], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 41}}, {"id": 86, "type": "type_identifier", "text": "attr_list_t", "parent": 85, "children": [], "start_point": {"row": 51, "column": 26}, "end_point": {"row": 51, "column": 37}}, {"id": 87, "type": "pointer_declarator", "text": "*al", "parent": 85, "children": [88, 89], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 41}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 39}}, {"id": 89, "type": "identifier", "text": "al", "parent": 87, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 41}}, {"id": 90, "type": "return_statement", "text": "return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);", "parent": 55, "children": [91], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 56}}, {"id": 91, "type": "call_expression", "text": "lm_extract_css_urls(ue_h, buf->ptr, buf->sz)", "parent": 90, "children": [92, 93], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 55}}, {"id": 92, "type": "identifier", "text": "lm_extract_css_urls", "parent": 91, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 30}}, {"id": 93, "type": "argument_list", "text": "(ue_h, buf->ptr, buf->sz)", "parent": 91, "children": [94, 95, 98], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 55}}, {"id": 94, "type": "identifier", "text": "ue_h", "parent": 93, "children": [], "start_point": {"row": 53, "column": 31}, "end_point": {"row": 53, "column": 35}}, {"id": 95, "type": "field_expression", "text": "buf->ptr", "parent": 93, "children": [96, 97], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 45}}, {"id": 96, "type": "identifier", "text": "buf", "parent": 95, "children": [], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 40}}, {"id": 97, "type": "field_identifier", "text": "ptr", "parent": 95, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 45}}, {"id": 98, "type": "field_expression", "text": "buf->sz", "parent": 93, "children": [99, 100], "start_point": {"row": 53, "column": 47}, "end_point": {"row": 53, "column": 54}}, {"id": 99, "type": "identifier", "text": "buf", "parent": 98, "children": [], "start_point": {"row": 53, "column": 47}, "end_point": {"row": 53, "column": 50}}, {"id": 100, "type": "field_identifier", "text": "sz", "parent": 98, "children": [], "start_point": {"row": 53, "column": 52}, "end_point": {"row": 53, "column": 54}}, {"id": 101, "type": "function_definition", "text": "M_CODE\nlm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)\n{\n int r;\n char *name;\n char *ext;\n char *s;\n int x;\n int ext_offs;\n int a_sz;\n int sz;\n struct stat st;\n\n /** \n * create a filename to download to\n **/\n if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup(\"\");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }\n\n if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof(\"index.html\")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, \"index.html\", sizeof(\"index.html\"));\n ext_offs = strlen(\"index\");\n ext = strdup(\".html\");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }\n\n x=0;\n if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, \"-%d%s\", x, ext);\n } while (stat(name, &st) == 0);\n }\n\n r = lm_io_save(h, url, name);\n\n if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);\n\n free(ext);\n return M_OK;\n}", "parent": null, "children": [102, 103], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 134, "column": 1}}, {"id": 102, "type": "type_identifier", "text": "M_CODE", "parent": 101, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 6}}, {"id": 103, "type": "function_declarator", "text": "lm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)", "parent": 101, "children": [104, 105], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 66, "column": 32}}, {"id": 104, "type": "identifier", "text": "lm_handler_writefile", "parent": 103, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 20}}, {"id": 105, "type": "parameter_list", "text": "(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)", "parent": 103, "children": [106, 111, 116, 121, 126, 131], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 66, "column": 32}}, {"id": 106, "type": "parameter_declaration", "text": "metha_t *m", "parent": 105, "children": [107, 108], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 31}}, {"id": 107, "type": "type_identifier", "text": "metha_t", "parent": 106, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 28}}, {"id": 108, "type": "pointer_declarator", "text": "*m", "parent": 106, "children": [109, 110], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 31}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 30}}, {"id": 110, "type": "identifier", "text": "m", "parent": 108, "children": [], "start_point": {"row": 64, "column": 30}, "end_point": {"row": 64, "column": 31}}, {"id": 111, "type": "parameter_declaration", "text": "worker_t *w", "parent": 105, "children": [112, 113], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 44}}, {"id": 112, "type": "type_identifier", "text": "worker_t", "parent": 111, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 41}}, {"id": 113, "type": "pointer_declarator", "text": "*w", "parent": 111, "children": [114, 115], "start_point": {"row": 64, "column": 42}, "end_point": {"row": 64, "column": 44}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 64, "column": 42}, "end_point": {"row": 64, "column": 43}}, {"id": 115, "type": "identifier", "text": "w", "parent": 113, "children": [], "start_point": {"row": 64, "column": 43}, "end_point": {"row": 64, "column": 44}}, {"id": 116, "type": "parameter_declaration", "text": "iohandle_t *h", "parent": 105, "children": [117, 118], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 59}}, {"id": 117, "type": "type_identifier", "text": "iohandle_t", "parent": 116, "children": [], "start_point": {"row": 64, "column": 46}, "end_point": {"row": 64, "column": 56}}, {"id": 118, "type": "pointer_declarator", "text": "*h", "parent": 116, "children": [119, 120], "start_point": {"row": 64, "column": 57}, "end_point": {"row": 64, "column": 59}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 64, "column": 57}, "end_point": {"row": 64, "column": 58}}, {"id": 120, "type": "identifier", "text": "h", "parent": 118, "children": [], "start_point": {"row": 64, "column": 58}, "end_point": {"row": 64, "column": 59}}, {"id": 121, "type": "parameter_declaration", "text": "iobuf_t *buf", "parent": 105, "children": [122, 123], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 33}}, {"id": 122, "type": "type_identifier", "text": "iobuf_t", "parent": 121, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 28}}, {"id": 123, "type": "pointer_declarator", "text": "*buf", "parent": 121, "children": [124, 125], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 33}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 125, "type": "identifier", "text": "buf", "parent": 123, "children": [], "start_point": {"row": 65, "column": 30}, "end_point": {"row": 65, "column": 33}}, {"id": 126, "type": "parameter_declaration", "text": "iostat_t *iostat", "parent": 105, "children": [127, 128], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 51}}, {"id": 127, "type": "type_identifier", "text": "iostat_t", "parent": 126, "children": [], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 43}}, {"id": 128, "type": "pointer_declarator", "text": "*iostat", "parent": 126, "children": [129, 130], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 51}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 65, "column": 44}, "end_point": {"row": 65, "column": 45}}, {"id": 130, "type": "identifier", "text": "iostat", "parent": 128, "children": [], "start_point": {"row": 65, "column": 45}, "end_point": {"row": 65, "column": 51}}, {"id": 131, "type": "parameter_declaration", "text": "url_t *url", "parent": 105, "children": [132, 133], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 31}}, {"id": 132, "type": "type_identifier", "text": "url_t", "parent": 131, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 26}}, {"id": 133, "type": "pointer_declarator", "text": "*url", "parent": 131, "children": [134, 135], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 31}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 28}}, {"id": 135, "type": "identifier", "text": "url", "parent": 133, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 31}}, {"id": 136, "type": "declaration", "text": "int r;", "parent": 101, "children": [137, 138], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 137, "type": "primitive_type", "text": "int", "parent": 136, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 7}}, {"id": 138, "type": "identifier", "text": "r", "parent": 136, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 139, "type": "declaration", "text": "char *name;", "parent": 101, "children": [140, 141], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 15}}, {"id": 140, "type": "primitive_type", "text": "char", "parent": 139, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 141, "type": "pointer_declarator", "text": "*name", "parent": 139, "children": [142, 143], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 14}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 143, "type": "identifier", "text": "name", "parent": 141, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 14}}, {"id": 144, "type": "declaration", "text": "char *ext;", "parent": 101, "children": [145, 146], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 14}}, {"id": 145, "type": "primitive_type", "text": "char", "parent": 144, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 146, "type": "pointer_declarator", "text": "*ext", "parent": 144, "children": [147, 148], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 13}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 148, "type": "identifier", "text": "ext", "parent": 146, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 13}}, {"id": 149, "type": "declaration", "text": "char *s;", "parent": 101, "children": [150, 151], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 12}}, {"id": 150, "type": "primitive_type", "text": "char", "parent": 149, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 151, "type": "pointer_declarator", "text": "*s", "parent": 149, "children": [152, 153], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 11}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 153, "type": "identifier", "text": "s", "parent": 151, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 11}}, {"id": 154, "type": "declaration", "text": "int x;", "parent": 101, "children": [155, 156], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 10}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 7}}, {"id": 156, "type": "identifier", "text": "x", "parent": 154, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 157, "type": "declaration", "text": "int ext_offs;", "parent": 101, "children": [158, 159], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 17}}, {"id": 158, "type": "primitive_type", "text": "int", "parent": 157, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 7}}, {"id": 159, "type": "identifier", "text": "ext_offs", "parent": 157, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 16}}, {"id": 160, "type": "declaration", "text": "int a_sz;", "parent": 101, "children": [161, 162], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 13}}, {"id": 161, "type": "primitive_type", "text": "int", "parent": 160, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 7}}, {"id": 162, "type": "identifier", "text": "a_sz", "parent": 160, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 12}}, {"id": 163, "type": "declaration", "text": "int sz;", "parent": 101, "children": [164, 165], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 11}}, {"id": 164, "type": "primitive_type", "text": "int", "parent": 163, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 7}}, {"id": 165, "type": "identifier", "text": "sz", "parent": 163, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 10}}, {"id": 166, "type": "declaration", "text": "struct stat st;", "parent": 101, "children": [167, 170], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 19}}, {"id": 167, "type": "struct_specifier", "text": "struct stat", "parent": 166, "children": [168, 169], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 15}}, {"id": 168, "type": "struct", "text": "struct", "parent": 167, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 169, "type": "type_identifier", "text": "stat", "parent": 167, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 15}}, {"id": 170, "type": "identifier", "text": "st", "parent": 166, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 18}}, {"id": 171, "type": "if_statement", "text": "if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup(\"\");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }", "parent": 101, "children": [172, 281], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 172, "type": "parenthesized_expression", "text": "(url->ext_o)", "parent": 171, "children": [173], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 173, "type": "field_expression", "text": "url->ext_o", "parent": 172, "children": [174, 175], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 18}}, {"id": 174, "type": "identifier", "text": "url", "parent": 173, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 11}}, {"id": 175, "type": "field_identifier", "text": "ext_o", "parent": 173, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 18}}, {"id": 176, "type": "for_statement", "text": "for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;", "parent": 171, "children": [177, 183, 209], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 83, "column": 13}}, {"id": 177, "type": "assignment_expression", "text": "x = url->ext_o", "parent": 176, "children": [178, 179, 180], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 27}}, {"id": 178, "type": "identifier", "text": "x", "parent": 177, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 14}}, {"id": 179, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 16}}, {"id": 180, "type": "field_expression", "text": "url->ext_o", "parent": 177, "children": [181, 182], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 27}}, {"id": 181, "type": "identifier", "text": "url", "parent": 180, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 20}}, {"id": 182, "type": "field_identifier", "text": "ext_o", "parent": 180, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 27}}, {"id": 183, "type": "binary_expression", "text": "*(url->str+x) && *(url->str+x) != '?'", "parent": 176, "children": [184, 193, 194], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 66}}, {"id": 184, "type": "pointer_expression", "text": "*(url->str+x)", "parent": 183, "children": [185, 186], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 42}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 30}}, {"id": 186, "type": "parenthesized_expression", "text": "(url->str+x)", "parent": 184, "children": [187], "start_point": {"row": 82, "column": 30}, "end_point": {"row": 82, "column": 42}}, {"id": 187, "type": "binary_expression", "text": "url->str+x", "parent": 186, "children": [188, 191, 192], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 41}}, {"id": 188, "type": "field_expression", "text": "url->str", "parent": 187, "children": [189, 190], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 39}}, {"id": 189, "type": "identifier", "text": "url", "parent": 188, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 34}}, {"id": 190, "type": "field_identifier", "text": "str", "parent": 188, "children": [], "start_point": {"row": 82, "column": 36}, "end_point": {"row": 82, "column": 39}}, {"id": 191, "type": "+", "text": "+", "parent": 187, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 40}}, {"id": 192, "type": "identifier", "text": "x", "parent": 187, "children": [], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 41}}, {"id": 193, "type": "&&", "text": "&&", "parent": 183, "children": [], "start_point": {"row": 82, "column": 43}, "end_point": {"row": 82, "column": 45}}, {"id": 194, "type": "binary_expression", "text": "*(url->str+x) != '?'", "parent": 183, "children": [195, 204, 205], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 66}}, {"id": 195, "type": "pointer_expression", "text": "*(url->str+x)", "parent": 194, "children": [196, 197], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 59}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 47}}, {"id": 197, "type": "parenthesized_expression", "text": "(url->str+x)", "parent": 195, "children": [198], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 59}}, {"id": 198, "type": "binary_expression", "text": "url->str+x", "parent": 197, "children": [199, 202, 203], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 58}}, {"id": 199, "type": "field_expression", "text": "url->str", "parent": 198, "children": [200, 201], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 56}}, {"id": 200, "type": "identifier", "text": "url", "parent": 199, "children": [], "start_point": {"row": 82, "column": 48}, "end_point": {"row": 82, "column": 51}}, {"id": 201, "type": "field_identifier", "text": "str", "parent": 199, "children": [], "start_point": {"row": 82, "column": 53}, "end_point": {"row": 82, "column": 56}}, {"id": 202, "type": "+", "text": "+", "parent": 198, "children": [], "start_point": {"row": 82, "column": 56}, "end_point": {"row": 82, "column": 57}}, {"id": 203, "type": "identifier", "text": "x", "parent": 198, "children": [], "start_point": {"row": 82, "column": 57}, "end_point": {"row": 82, "column": 58}}, {"id": 204, "type": "!=", "text": "!=", "parent": 194, "children": [], "start_point": {"row": 82, "column": 60}, "end_point": {"row": 82, "column": 62}}, {"id": 205, "type": "char_literal", "text": "'?'", "parent": 194, "children": [206, 207, 208], "start_point": {"row": 82, "column": 63}, "end_point": {"row": 82, "column": 66}}, {"id": 206, "type": "'", "text": "'", "parent": 205, "children": [], "start_point": {"row": 82, "column": 63}, "end_point": {"row": 82, "column": 64}}, {"id": 207, "type": "character", "text": "?", "parent": 205, "children": [], "start_point": {"row": 82, "column": 64}, "end_point": {"row": 82, "column": 65}}, {"id": 208, "type": "'", "text": "'", "parent": 205, "children": [], "start_point": {"row": 82, "column": 65}, "end_point": {"row": 82, "column": 66}}, {"id": 209, "type": "update_expression", "text": "x++", "parent": 176, "children": [210, 211], "start_point": {"row": 82, "column": 68}, "end_point": {"row": 82, "column": 71}}, {"id": 210, "type": "identifier", "text": "x", "parent": 209, "children": [], "start_point": {"row": 82, "column": 68}, "end_point": {"row": 82, "column": 69}}, {"id": 211, "type": "++", "text": "++", "parent": 209, "children": [], "start_point": {"row": 82, "column": 69}, "end_point": {"row": 82, "column": 71}}, {"id": 212, "type": "if_statement", "text": "if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;", "parent": 171, "children": [213, 232], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 86, "column": 32}}, {"id": 213, "type": "parenthesized_expression", "text": "(!(ext = malloc(x-url->ext_o+1)))", "parent": 212, "children": [214], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 44}}, {"id": 214, "type": "unary_expression", "text": "!(ext = malloc(x-url->ext_o+1))", "parent": 213, "children": [215, 216], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 43}}, {"id": 215, "type": "!", "text": "!", "parent": 214, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 13}}, {"id": 216, "type": "parenthesized_expression", "text": "(ext = malloc(x-url->ext_o+1))", "parent": 214, "children": [217], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 43}}, {"id": 217, "type": "assignment_expression", "text": "ext = malloc(x-url->ext_o+1)", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 42}}, {"id": 218, "type": "identifier", "text": "ext", "parent": 217, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 17}}, {"id": 219, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 19}}, {"id": 220, "type": "call_expression", "text": "malloc(x-url->ext_o+1)", "parent": 217, "children": [221, 222], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 42}}, {"id": 221, "type": "identifier", "text": "malloc", "parent": 220, "children": [], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 26}}, {"id": 222, "type": "argument_list", "text": "(x-url->ext_o+1)", "parent": 220, "children": [223], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 42}}, {"id": 223, "type": "binary_expression", "text": "x-url->ext_o+1", "parent": 222, "children": [224, 230, 231], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 41}}, {"id": 224, "type": "binary_expression", "text": "x-url->ext_o", "parent": 223, "children": [225, 226, 227], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 39}}, {"id": 225, "type": "identifier", "text": "x", "parent": 224, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 28}}, {"id": 226, "type": "-", "text": "-", "parent": 224, "children": [], "start_point": {"row": 85, "column": 28}, "end_point": {"row": 85, "column": 29}}, {"id": 227, "type": "field_expression", "text": "url->ext_o", "parent": 224, "children": [228, 229], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 39}}, {"id": 228, "type": "identifier", "text": "url", "parent": 227, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 32}}, {"id": 229, "type": "field_identifier", "text": "ext_o", "parent": 227, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 39}}, {"id": 230, "type": "+", "text": "+", "parent": 223, "children": [], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 40}}, {"id": 231, "type": "number_literal", "text": "1", "parent": 223, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 41}}, {"id": 232, "type": "return_statement", "text": "return M_OUT_OF_MEM;", "parent": 212, "children": [233], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 32}}, {"id": 233, "type": "identifier", "text": "M_OUT_OF_MEM", "parent": 232, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 31}}, {"id": 234, "type": "call_expression", "text": "memcpy(ext, url->str+url->ext_o, x-url->ext_o)", "parent": 171, "children": [235, 236], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 54}}, {"id": 235, "type": "identifier", "text": "memcpy", "parent": 234, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 14}}, {"id": 236, "type": "argument_list", "text": "(ext, url->str+url->ext_o, x-url->ext_o)", "parent": 234, "children": [237, 238, 246], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 54}}, {"id": 237, "type": "identifier", "text": "ext", "parent": 236, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 18}}, {"id": 238, "type": "binary_expression", "text": "url->str+url->ext_o", "parent": 236, "children": [239, 242, 243], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 39}}, {"id": 239, "type": "field_expression", "text": "url->str", "parent": 238, "children": [240, 241], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 28}}, {"id": 240, "type": "identifier", "text": "url", "parent": 239, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 23}}, {"id": 241, "type": "field_identifier", "text": "str", "parent": 239, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 28}}, {"id": 242, "type": "+", "text": "+", "parent": 238, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 243, "type": "field_expression", "text": "url->ext_o", "parent": 238, "children": [244, 245], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 39}}, {"id": 244, "type": "identifier", "text": "url", "parent": 243, "children": [], "start_point": {"row": 88, "column": 29}, "end_point": {"row": 88, "column": 32}}, {"id": 245, "type": "field_identifier", "text": "ext_o", "parent": 243, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 39}}, {"id": 246, "type": "binary_expression", "text": "x-url->ext_o", "parent": 236, "children": [247, 248, 249], "start_point": {"row": 88, "column": 41}, "end_point": {"row": 88, "column": 53}}, {"id": 247, "type": "identifier", "text": "x", "parent": 246, "children": [], "start_point": {"row": 88, "column": 41}, "end_point": {"row": 88, "column": 42}}, {"id": 248, "type": "-", "text": "-", "parent": 246, "children": [], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 43}}, {"id": 249, "type": "field_expression", "text": "url->ext_o", "parent": 246, "children": [250, 251], "start_point": {"row": 88, "column": 43}, "end_point": {"row": 88, "column": 53}}, {"id": 250, "type": "identifier", "text": "url", "parent": 249, "children": [], "start_point": {"row": 88, "column": 43}, "end_point": {"row": 88, "column": 46}}, {"id": 251, "type": "field_identifier", "text": "ext_o", "parent": 249, "children": [], "start_point": {"row": 88, "column": 48}, "end_point": {"row": 88, "column": 53}}, {"id": 252, "type": "assignment_expression", "text": "ext[x-url->ext_o] = '\\0'", "parent": 171, "children": [253, 261, 262], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 32}}, {"id": 253, "type": "subscript_expression", "text": "ext[x-url->ext_o]", "parent": 252, "children": [254, 255], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 25}}, {"id": 254, "type": "identifier", "text": "ext", "parent": 253, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 11}}, {"id": 255, "type": "binary_expression", "text": "x-url->ext_o", "parent": 253, "children": [256, 257, 258], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 24}}, {"id": 256, "type": "identifier", "text": "x", "parent": 255, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 13}}, {"id": 257, "type": "-", "text": "-", "parent": 255, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 14}}, {"id": 258, "type": "field_expression", "text": "url->ext_o", "parent": 255, "children": [259, 260], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 24}}, {"id": 259, "type": "identifier", "text": "url", "parent": 258, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 17}}, {"id": 260, "type": "field_identifier", "text": "ext_o", "parent": 258, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 24}}, {"id": 261, "type": "=", "text": "=", "parent": 252, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 27}}, {"id": 262, "type": "char_literal", "text": "'\\0'", "parent": 252, "children": [263, 264, 265], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 32}}, {"id": 263, "type": "'", "text": "'", "parent": 262, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 29}}, {"id": 264, "type": "escape_sequence", "text": "\\0", "parent": 262, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 31}}, {"id": 265, "type": "'", "text": "'", "parent": 262, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 32}}, {"id": 266, "type": "assignment_expression", "text": "ext_offs = url->ext_o-(url->file_o+1)", "parent": 171, "children": [267, 268, 269], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 45}}, {"id": 267, "type": "identifier", "text": "ext_offs", "parent": 266, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 16}}, {"id": 268, "type": "=", "text": "=", "parent": 266, "children": [], "start_point": {"row": 91, "column": 17}, "end_point": {"row": 91, "column": 18}}, {"id": 269, "type": "binary_expression", "text": "url->ext_o-(url->file_o+1)", "parent": 266, "children": [270, 273, 274], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 45}}, {"id": 270, "type": "field_expression", "text": "url->ext_o", "parent": 269, "children": [271, 272], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 29}}, {"id": 271, "type": "identifier", "text": "url", "parent": 270, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 22}}, {"id": 272, "type": "field_identifier", "text": "ext_o", "parent": 270, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 29}}, {"id": 273, "type": "-", "text": "-", "parent": 269, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 30}}, {"id": 274, "type": "parenthesized_expression", "text": "(url->file_o+1)", "parent": 269, "children": [275], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 45}}, {"id": 275, "type": "binary_expression", "text": "url->file_o+1", "parent": 274, "children": [276, 279, 280], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 44}}, {"id": 276, "type": "field_expression", "text": "url->file_o", "parent": 275, "children": [277, 278], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 42}}, {"id": 277, "type": "identifier", "text": "url", "parent": 276, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 34}}, {"id": 278, "type": "field_identifier", "text": "file_o", "parent": 276, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 42}}, {"id": 279, "type": "+", "text": "+", "parent": 275, "children": [], "start_point": {"row": 91, "column": 42}, "end_point": {"row": 91, "column": 43}}, {"id": 280, "type": "number_literal", "text": "1", "parent": 275, "children": [], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 44}}, {"id": 281, "type": "else_clause", "text": "else {\n ext = strdup(\"\");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }", "parent": 171, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 97, "column": 5}}, {"id": 282, "type": "assignment_expression", "text": "ext = strdup(\"\")", "parent": 281, "children": [283, 284, 285], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 24}}, {"id": 283, "type": "identifier", "text": "ext", "parent": 282, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 11}}, {"id": 284, "type": "=", "text": "=", "parent": 282, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 13}}, {"id": 285, "type": "call_expression", "text": "strdup(\"\")", "parent": 282, "children": [286, 287], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 24}}, {"id": 286, "type": "identifier", "text": "strdup", "parent": 285, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 20}}, {"id": 287, "type": "argument_list", "text": "(\"\")", "parent": 285, "children": [288], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 24}}, {"id": 288, "type": "string_literal", "text": "\"\"", "parent": 287, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 23}}, {"id": 289, "type": "for_statement", "text": "for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;", "parent": 281, "children": [290, 299, 325], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 95, "column": 13}}, {"id": 290, "type": "assignment_expression", "text": "x = url->file_o+1", "parent": 289, "children": [291, 292, 293], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 30}}, {"id": 291, "type": "identifier", "text": "x", "parent": 290, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 14}}, {"id": 292, "type": "=", "text": "=", "parent": 290, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 16}}, {"id": 293, "type": "binary_expression", "text": "url->file_o+1", "parent": 290, "children": [294, 297, 298], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 30}}, {"id": 294, "type": "field_expression", "text": "url->file_o", "parent": 293, "children": [295, 296], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 28}}, {"id": 295, "type": "identifier", "text": "url", "parent": 294, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 20}}, {"id": 296, "type": "field_identifier", "text": "file_o", "parent": 294, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 28}}, {"id": 297, "type": "+", "text": "+", "parent": 293, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 29}}, {"id": 298, "type": "number_literal", "text": "1", "parent": 293, "children": [], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 30}}, {"id": 299, "type": "binary_expression", "text": "*(url->str+x) && *(url->str+x) != '?'", "parent": 289, "children": [300, 309, 310], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 69}}, {"id": 300, "type": "pointer_expression", "text": "*(url->str+x)", "parent": 299, "children": [301, 302], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 45}}, {"id": 301, "type": "*", "text": "*", "parent": 300, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 33}}, {"id": 302, "type": "parenthesized_expression", "text": "(url->str+x)", "parent": 300, "children": [303], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 45}}, {"id": 303, "type": "binary_expression", "text": "url->str+x", "parent": 302, "children": [304, 307, 308], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 44}}, {"id": 304, "type": "field_expression", "text": "url->str", "parent": 303, "children": [305, 306], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 42}}, {"id": 305, "type": "identifier", "text": "url", "parent": 304, "children": [], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 37}}, {"id": 306, "type": "field_identifier", "text": "str", "parent": 304, "children": [], "start_point": {"row": 94, "column": 39}, "end_point": {"row": 94, "column": 42}}, {"id": 307, "type": "+", "text": "+", "parent": 303, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 43}}, {"id": 308, "type": "identifier", "text": "x", "parent": 303, "children": [], "start_point": {"row": 94, "column": 43}, "end_point": {"row": 94, "column": 44}}, {"id": 309, "type": "&&", "text": "&&", "parent": 299, "children": [], "start_point": {"row": 94, "column": 46}, "end_point": {"row": 94, "column": 48}}, {"id": 310, "type": "binary_expression", "text": "*(url->str+x) != '?'", "parent": 299, "children": [311, 320, 321], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 69}}, {"id": 311, "type": "pointer_expression", "text": "*(url->str+x)", "parent": 310, "children": [312, 313], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 62}}, {"id": 312, "type": "*", "text": "*", "parent": 311, "children": [], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 50}}, {"id": 313, "type": "parenthesized_expression", "text": "(url->str+x)", "parent": 311, "children": [314], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 62}}, {"id": 314, "type": "binary_expression", "text": "url->str+x", "parent": 313, "children": [315, 318, 319], "start_point": {"row": 94, "column": 51}, "end_point": {"row": 94, "column": 61}}, {"id": 315, "type": "field_expression", "text": "url->str", "parent": 314, "children": [316, 317], "start_point": {"row": 94, "column": 51}, "end_point": {"row": 94, "column": 59}}, {"id": 316, "type": "identifier", "text": "url", "parent": 315, "children": [], "start_point": {"row": 94, "column": 51}, "end_point": {"row": 94, "column": 54}}, {"id": 317, "type": "field_identifier", "text": "str", "parent": 315, "children": [], "start_point": {"row": 94, "column": 56}, "end_point": {"row": 94, "column": 59}}, {"id": 318, "type": "+", "text": "+", "parent": 314, "children": [], "start_point": {"row": 94, "column": 59}, "end_point": {"row": 94, "column": 60}}, {"id": 319, "type": "identifier", "text": "x", "parent": 314, "children": [], "start_point": {"row": 94, "column": 60}, "end_point": {"row": 94, "column": 61}}, {"id": 320, "type": "!=", "text": "!=", "parent": 310, "children": [], "start_point": {"row": 94, "column": 63}, "end_point": {"row": 94, "column": 65}}, {"id": 321, "type": "char_literal", "text": "'?'", "parent": 310, "children": [322, 323, 324], "start_point": {"row": 94, "column": 66}, "end_point": {"row": 94, "column": 69}}, {"id": 322, "type": "'", "text": "'", "parent": 321, "children": [], "start_point": {"row": 94, "column": 66}, "end_point": {"row": 94, "column": 67}}, {"id": 323, "type": "character", "text": "?", "parent": 321, "children": [], "start_point": {"row": 94, "column": 67}, "end_point": {"row": 94, "column": 68}}, {"id": 324, "type": "'", "text": "'", "parent": 321, "children": [], "start_point": {"row": 94, "column": 68}, "end_point": {"row": 94, "column": 69}}, {"id": 325, "type": "update_expression", "text": "x++", "parent": 289, "children": [326, 327], "start_point": {"row": 94, "column": 71}, "end_point": {"row": 94, "column": 74}}, {"id": 326, "type": "identifier", "text": "x", "parent": 325, "children": [], "start_point": {"row": 94, "column": 71}, "end_point": {"row": 94, "column": 72}}, {"id": 327, "type": "++", "text": "++", "parent": 325, "children": [], "start_point": {"row": 94, "column": 72}, "end_point": {"row": 94, "column": 74}}, {"id": 328, "type": "assignment_expression", "text": "ext_offs = x-(url->file_o+1)", "parent": 281, "children": [329, 330, 331], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 36}}, {"id": 329, "type": "identifier", "text": "ext_offs", "parent": 328, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 16}}, {"id": 330, "type": "=", "text": "=", "parent": 328, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 18}}, {"id": 331, "type": "binary_expression", "text": "x-(url->file_o+1)", "parent": 328, "children": [332, 333, 334], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 36}}, {"id": 332, "type": "identifier", "text": "x", "parent": 331, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 20}}, {"id": 333, "type": "-", "text": "-", "parent": 331, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 21}}, {"id": 334, "type": "parenthesized_expression", "text": "(url->file_o+1)", "parent": 331, "children": [335], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 36}}, {"id": 335, "type": "binary_expression", "text": "url->file_o+1", "parent": 334, "children": [336, 339, 340], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 35}}, {"id": 336, "type": "field_expression", "text": "url->file_o", "parent": 335, "children": [337, 338], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 33}}, {"id": 337, "type": "identifier", "text": "url", "parent": 336, "children": [], "start_point": {"row": 96, "column": 22}, "end_point": {"row": 96, "column": 25}}, {"id": 338, "type": "field_identifier", "text": "file_o", "parent": 336, "children": [], "start_point": {"row": 96, "column": 27}, "end_point": {"row": 96, "column": 33}}, {"id": 339, "type": "+", "text": "+", "parent": 335, "children": [], "start_point": {"row": 96, "column": 33}, "end_point": {"row": 96, "column": 34}}, {"id": 340, "type": "number_literal", "text": "1", "parent": 335, "children": [], "start_point": {"row": 96, "column": 34}, "end_point": {"row": 96, "column": 35}}, {"id": 341, "type": "if_statement", "text": "if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof(\"index.html\")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, \"index.html\", sizeof(\"index.html\"));\n ext_offs = strlen(\"index\");\n ext = strdup(\".html\");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }", "parent": 101, "children": [342, 398], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 111, "column": 5}}, {"id": 342, "type": "parenthesized_expression", "text": "(url->file_o+1 == url->sz)", "parent": 341, "children": [343], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 33}}, {"id": 343, "type": "binary_expression", "text": "url->file_o+1 == url->sz", "parent": 342, "children": [344, 350, 351], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 32}}, {"id": 344, "type": "binary_expression", "text": "url->file_o+1", "parent": 343, "children": [345, 348, 349], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 21}}, {"id": 345, "type": "field_expression", "text": "url->file_o", "parent": 344, "children": [346, 347], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 19}}, {"id": 346, "type": "identifier", "text": "url", "parent": 345, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 11}}, {"id": 347, "type": "field_identifier", "text": "file_o", "parent": 345, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 19}}, {"id": 348, "type": "+", "text": "+", "parent": 344, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 20}}, {"id": 349, "type": "number_literal", "text": "1", "parent": 344, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 21}}, {"id": 350, "type": "==", "text": "==", "parent": 343, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 24}}, {"id": 351, "type": "field_expression", "text": "url->sz", "parent": 343, "children": [352, 353], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 32}}, {"id": 352, "type": "identifier", "text": "url", "parent": 351, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 28}}, {"id": 353, "type": "field_identifier", "text": "sz", "parent": 351, "children": [], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 32}}, {"id": 354, "type": "if_statement", "text": "if (!(name = malloc(a_sz = sizeof(\"index.html\")+32)))\n return M_OUT_OF_MEM;", "parent": 341, "children": [355, 374], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 101, "column": 32}}, {"id": 355, "type": "parenthesized_expression", "text": "(!(name = malloc(a_sz = sizeof(\"index.html\")+32)))", "parent": 354, "children": [356], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 61}}, {"id": 356, "type": "unary_expression", "text": "!(name = malloc(a_sz = sizeof(\"index.html\")+32))", "parent": 355, "children": [357, 358], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 60}}, {"id": 357, "type": "!", "text": "!", "parent": 356, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 13}}, {"id": 358, "type": "parenthesized_expression", "text": "(name = malloc(a_sz = sizeof(\"index.html\")+32))", "parent": 356, "children": [359], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 60}}, {"id": 359, "type": "assignment_expression", "text": "name = malloc(a_sz = sizeof(\"index.html\")+32)", "parent": 358, "children": [360, 361, 362], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 59}}, {"id": 360, "type": "identifier", "text": "name", "parent": 359, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 18}}, {"id": 361, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 20}}, {"id": 362, "type": "call_expression", "text": "malloc(a_sz = sizeof(\"index.html\")+32)", "parent": 359, "children": [363, 364], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 59}}, {"id": 363, "type": "identifier", "text": "malloc", "parent": 362, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 27}}, {"id": 364, "type": "argument_list", "text": "(a_sz = sizeof(\"index.html\")+32)", "parent": 362, "children": [365], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 59}}, {"id": 365, "type": "assignment_expression", "text": "a_sz = sizeof(\"index.html\")+32", "parent": 364, "children": [366, 367, 368], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 58}}, {"id": 366, "type": "identifier", "text": "a_sz", "parent": 365, "children": [], "start_point": {"row": 100, "column": 28}, "end_point": {"row": 100, "column": 32}}, {"id": 367, "type": "=", "text": "=", "parent": 365, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 34}}, {"id": 368, "type": "binary_expression", "text": "sizeof(\"index.html\")+32", "parent": 365, "children": [369, 372, 373], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 58}}, {"id": 369, "type": "sizeof_expression", "text": "sizeof(\"index.html\")", "parent": 368, "children": [370], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 55}}, {"id": 370, "type": "parenthesized_expression", "text": "(\"index.html\")", "parent": 369, "children": [371], "start_point": {"row": 100, "column": 41}, "end_point": {"row": 100, "column": 55}}, {"id": 371, "type": "string_literal", "text": "\"index.html\"", "parent": 370, "children": [], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 54}}, {"id": 372, "type": "+", "text": "+", "parent": 368, "children": [], "start_point": {"row": 100, "column": 55}, "end_point": {"row": 100, "column": 56}}, {"id": 373, "type": "number_literal", "text": "32", "parent": 368, "children": [], "start_point": {"row": 100, "column": 56}, "end_point": {"row": 100, "column": 58}}, {"id": 374, "type": "return_statement", "text": "return M_OUT_OF_MEM;", "parent": 354, "children": [375], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 32}}, {"id": 375, "type": "identifier", "text": "M_OUT_OF_MEM", "parent": 374, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 31}}, {"id": 376, "type": "call_expression", "text": "memcpy(name, \"index.html\", sizeof(\"index.html\"))", "parent": 341, "children": [377, 378], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 56}}, {"id": 377, "type": "identifier", "text": "memcpy", "parent": 376, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 14}}, {"id": 378, "type": "argument_list", "text": "(name, \"index.html\", sizeof(\"index.html\"))", "parent": 376, "children": [379, 380, 381], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 56}}, {"id": 379, "type": "identifier", "text": "name", "parent": 378, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 19}}, {"id": 380, "type": "string_literal", "text": "\"index.html\"", "parent": 378, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 33}}, {"id": 381, "type": "sizeof_expression", "text": "sizeof(\"index.html\")", "parent": 378, "children": [382], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 55}}, {"id": 382, "type": "parenthesized_expression", "text": "(\"index.html\")", "parent": 381, "children": [383], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 55}}, {"id": 383, "type": "string_literal", "text": "\"index.html\"", "parent": 382, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 54}}, {"id": 384, "type": "assignment_expression", "text": "ext_offs = strlen(\"index\")", "parent": 341, "children": [385, 386, 387], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 34}}, {"id": 385, "type": "identifier", "text": "ext_offs", "parent": 384, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 16}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 387, "type": "call_expression", "text": "strlen(\"index\")", "parent": 384, "children": [388, 389], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 34}}, {"id": 388, "type": "identifier", "text": "strlen", "parent": 387, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 25}}, {"id": 389, "type": "argument_list", "text": "(\"index\")", "parent": 387, "children": [390], "start_point": {"row": 103, "column": 25}, "end_point": {"row": 103, "column": 34}}, {"id": 390, "type": "string_literal", "text": "\"index\"", "parent": 389, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 33}}, {"id": 391, "type": "assignment_expression", "text": "ext = strdup(\".html\")", "parent": 341, "children": [392, 393, 394], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 29}}, {"id": 392, "type": "identifier", "text": "ext", "parent": 391, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 11}}, {"id": 393, "type": "=", "text": "=", "parent": 391, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 13}}, {"id": 394, "type": "call_expression", "text": "strdup(\".html\")", "parent": 391, "children": [395, 396], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 29}}, {"id": 395, "type": "identifier", "text": "strdup", "parent": 394, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 20}}, {"id": 396, "type": "argument_list", "text": "(\".html\")", "parent": 394, "children": [397], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 29}}, {"id": 397, "type": "string_literal", "text": "\".html\"", "parent": 396, "children": [], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 28}}, {"id": 398, "type": "else_clause", "text": "else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }", "parent": 341, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 111, "column": 5}}, {"id": 399, "type": "if_statement", "text": "if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;", "parent": 398, "children": [400, 426], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 107, "column": 32}}, {"id": 400, "type": "parenthesized_expression", "text": "(!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))", "parent": 399, "children": [401], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 63}}, {"id": 401, "type": "unary_expression", "text": "!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32))", "parent": 400, "children": [402, 403], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 62}}, {"id": 402, "type": "!", "text": "!", "parent": 401, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 13}}, {"id": 403, "type": "parenthesized_expression", "text": "(name = malloc(a_sz = ext_offs+strlen(ext)+1+32))", "parent": 401, "children": [404], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 62}}, {"id": 404, "type": "assignment_expression", "text": "name = malloc(a_sz = ext_offs+strlen(ext)+1+32)", "parent": 403, "children": [405, 406, 407], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 61}}, {"id": 405, "type": "identifier", "text": "name", "parent": 404, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 18}}, {"id": 406, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 20}}, {"id": 407, "type": "call_expression", "text": "malloc(a_sz = ext_offs+strlen(ext)+1+32)", "parent": 404, "children": [408, 409], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 61}}, {"id": 408, "type": "identifier", "text": "malloc", "parent": 407, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 27}}, {"id": 409, "type": "argument_list", "text": "(a_sz = ext_offs+strlen(ext)+1+32)", "parent": 407, "children": [410], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 61}}, {"id": 410, "type": "assignment_expression", "text": "a_sz = ext_offs+strlen(ext)+1+32", "parent": 409, "children": [411, 412, 413], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 60}}, {"id": 411, "type": "identifier", "text": "a_sz", "parent": 410, "children": [], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 32}}, {"id": 412, "type": "=", "text": "=", "parent": 410, "children": [], "start_point": {"row": 106, "column": 33}, "end_point": {"row": 106, "column": 34}}, {"id": 413, "type": "binary_expression", "text": "ext_offs+strlen(ext)+1+32", "parent": 410, "children": [414, 424, 425], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 60}}, {"id": 414, "type": "binary_expression", "text": "ext_offs+strlen(ext)+1", "parent": 413, "children": [415, 422, 423], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 57}}, {"id": 415, "type": "binary_expression", "text": "ext_offs+strlen(ext)", "parent": 414, "children": [416, 417, 418], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 55}}, {"id": 416, "type": "identifier", "text": "ext_offs", "parent": 415, "children": [], "start_point": {"row": 106, "column": 35}, "end_point": {"row": 106, "column": 43}}, {"id": 417, "type": "+", "text": "+", "parent": 415, "children": [], "start_point": {"row": 106, "column": 43}, "end_point": {"row": 106, "column": 44}}, {"id": 418, "type": "call_expression", "text": "strlen(ext)", "parent": 415, "children": [419, 420], "start_point": {"row": 106, "column": 44}, "end_point": {"row": 106, "column": 55}}, {"id": 419, "type": "identifier", "text": "strlen", "parent": 418, "children": [], "start_point": {"row": 106, "column": 44}, "end_point": {"row": 106, "column": 50}}, {"id": 420, "type": "argument_list", "text": "(ext)", "parent": 418, "children": [421], "start_point": {"row": 106, "column": 50}, "end_point": {"row": 106, "column": 55}}, {"id": 421, "type": "identifier", "text": "ext", "parent": 420, "children": [], "start_point": {"row": 106, "column": 51}, "end_point": {"row": 106, "column": 54}}, {"id": 422, "type": "+", "text": "+", "parent": 414, "children": [], "start_point": {"row": 106, "column": 55}, "end_point": {"row": 106, "column": 56}}, {"id": 423, "type": "number_literal", "text": "1", "parent": 414, "children": [], "start_point": {"row": 106, "column": 56}, "end_point": {"row": 106, "column": 57}}, {"id": 424, "type": "+", "text": "+", "parent": 413, "children": [], "start_point": {"row": 106, "column": 57}, "end_point": {"row": 106, "column": 58}}, {"id": 425, "type": "number_literal", "text": "32", "parent": 413, "children": [], "start_point": {"row": 106, "column": 58}, "end_point": {"row": 106, "column": 60}}, {"id": 426, "type": "return_statement", "text": "return M_OUT_OF_MEM;", "parent": 399, "children": [427], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 32}}, {"id": 427, "type": "identifier", "text": "M_OUT_OF_MEM", "parent": 426, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 31}}, {"id": 428, "type": "call_expression", "text": "memcpy(name, url->str+url->file_o+1, ext_offs)", "parent": 398, "children": [429, 430], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 54}}, {"id": 429, "type": "identifier", "text": "memcpy", "parent": 428, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 14}}, {"id": 430, "type": "argument_list", "text": "(name, url->str+url->file_o+1, ext_offs)", "parent": 428, "children": [431, 432, 443], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 54}}, {"id": 431, "type": "identifier", "text": "name", "parent": 430, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 19}}, {"id": 432, "type": "binary_expression", "text": "url->str+url->file_o+1", "parent": 430, "children": [433, 441, 442], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 43}}, {"id": 433, "type": "binary_expression", "text": "url->str+url->file_o", "parent": 432, "children": [434, 437, 438], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 41}}, {"id": 434, "type": "field_expression", "text": "url->str", "parent": 433, "children": [435, 436], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 29}}, {"id": 435, "type": "identifier", "text": "url", "parent": 434, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 24}}, {"id": 436, "type": "field_identifier", "text": "str", "parent": 434, "children": [], "start_point": {"row": 109, "column": 26}, "end_point": {"row": 109, "column": 29}}, {"id": 437, "type": "+", "text": "+", "parent": 433, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 30}}, {"id": 438, "type": "field_expression", "text": "url->file_o", "parent": 433, "children": [439, 440], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 41}}, {"id": 439, "type": "identifier", "text": "url", "parent": 438, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 33}}, {"id": 440, "type": "field_identifier", "text": "file_o", "parent": 438, "children": [], "start_point": {"row": 109, "column": 35}, "end_point": {"row": 109, "column": 41}}, {"id": 441, "type": "+", "text": "+", "parent": 432, "children": [], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 42}}, {"id": 442, "type": "number_literal", "text": "1", "parent": 432, "children": [], "start_point": {"row": 109, "column": 42}, "end_point": {"row": 109, "column": 43}}, {"id": 443, "type": "identifier", "text": "ext_offs", "parent": 430, "children": [], "start_point": {"row": 109, "column": 45}, "end_point": {"row": 109, "column": 53}}, {"id": 444, "type": "call_expression", "text": "strcpy(name+ext_offs, ext)", "parent": 398, "children": [445, 446], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 34}}, {"id": 445, "type": "identifier", "text": "strcpy", "parent": 444, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 14}}, {"id": 446, "type": "argument_list", "text": "(name+ext_offs, ext)", "parent": 444, "children": [447, 451], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 34}}, {"id": 447, "type": "binary_expression", "text": "name+ext_offs", "parent": 446, "children": [448, 449, 450], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 28}}, {"id": 448, "type": "identifier", "text": "name", "parent": 447, "children": [], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 19}}, {"id": 449, "type": "+", "text": "+", "parent": 447, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 20}}, {"id": 450, "type": "identifier", "text": "ext_offs", "parent": 447, "children": [], "start_point": {"row": 110, "column": 20}, "end_point": {"row": 110, "column": 28}}, {"id": 451, "type": "identifier", "text": "ext", "parent": 446, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 33}}, {"id": 452, "type": "assignment_expression", "text": "x=0", "parent": 101, "children": [453, 454, 455], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 7}}, {"id": 453, "type": "identifier", "text": "x", "parent": 452, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 5}}, {"id": 454, "type": "=", "text": "=", "parent": 452, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 6}}, {"id": 455, "type": "number_literal", "text": "0", "parent": 452, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 7}}, {"id": 456, "type": "if_statement", "text": "if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, \"-%d%s\", x, ext);\n } while (stat(name, &st) == 0);\n }", "parent": 101, "children": [457], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 119, "column": 5}}, {"id": 457, "type": "parenthesized_expression", "text": "(stat(name, &st) == 0)", "parent": 456, "children": [458], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 29}}, {"id": 458, "type": "binary_expression", "text": "stat(name, &st) == 0", "parent": 457, "children": [459, 465, 466], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 28}}, {"id": 459, "type": "call_expression", "text": "stat(name, &st)", "parent": 458, "children": [460, 461], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 23}}, {"id": 460, "type": "identifier", "text": "stat", "parent": 459, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 12}}, {"id": 461, "type": "argument_list", "text": "(name, &st)", "parent": 459, "children": [462, 463], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 23}}, {"id": 462, "type": "identifier", "text": "name", "parent": 461, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 17}}, {"id": 463, "type": "pointer_expression", "text": "&st", "parent": 461, "children": [464], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 22}}, {"id": 464, "type": "identifier", "text": "st", "parent": 463, "children": [], "start_point": {"row": 114, "column": 20}, "end_point": {"row": 114, "column": 22}}, {"id": 465, "type": "==", "text": "==", "parent": 458, "children": [], "start_point": {"row": 114, "column": 24}, "end_point": {"row": 114, "column": 26}}, {"id": 466, "type": "number_literal", "text": "0", "parent": 458, "children": [], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 28}}, {"id": 467, "type": "do_statement", "text": "do {\n x++;\n sz = sprintf(name+ext_offs, \"-%d%s\", x, ext);\n } while (stat(name, &st) == 0);", "parent": 456, "children": [484], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 118, "column": 39}}, {"id": 468, "type": "update_expression", "text": "x++", "parent": 467, "children": [469, 470], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 15}}, {"id": 469, "type": "identifier", "text": "x", "parent": 468, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 13}}, {"id": 470, "type": "++", "text": "++", "parent": 468, "children": [], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 15}}, {"id": 471, "type": "assignment_expression", "text": "sz = sprintf(name+ext_offs, \"-%d%s\", x, ext)", "parent": 467, "children": [472, 473, 474], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 56}}, {"id": 472, "type": "identifier", "text": "sz", "parent": 471, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 14}}, {"id": 473, "type": "=", "text": "=", "parent": 471, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 474, "type": "call_expression", "text": "sprintf(name+ext_offs, \"-%d%s\", x, ext)", "parent": 471, "children": [475, 476], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 56}}, {"id": 475, "type": "identifier", "text": "sprintf", "parent": 474, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 24}}, {"id": 476, "type": "argument_list", "text": "(name+ext_offs, \"-%d%s\", x, ext)", "parent": 474, "children": [477, 481, 482, 483], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 56}}, {"id": 477, "type": "binary_expression", "text": "name+ext_offs", "parent": 476, "children": [478, 479, 480], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 38}}, {"id": 478, "type": "identifier", "text": "name", "parent": 477, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 29}}, {"id": 479, "type": "+", "text": "+", "parent": 477, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 30}}, {"id": 480, "type": "identifier", "text": "ext_offs", "parent": 477, "children": [], "start_point": {"row": 117, "column": 30}, "end_point": {"row": 117, "column": 38}}, {"id": 481, "type": "string_literal", "text": "\"-%d%s\"", "parent": 476, "children": [], "start_point": {"row": 117, "column": 40}, "end_point": {"row": 117, "column": 47}}, {"id": 482, "type": "identifier", "text": "x", "parent": 476, "children": [], "start_point": {"row": 117, "column": 49}, "end_point": {"row": 117, "column": 50}}, {"id": 483, "type": "identifier", "text": "ext", "parent": 476, "children": [], "start_point": {"row": 117, "column": 52}, "end_point": {"row": 117, "column": 55}}, {"id": 484, "type": "parenthesized_expression", "text": "(stat(name, &st) == 0)", "parent": 467, "children": [485], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 38}}, {"id": 485, "type": "binary_expression", "text": "stat(name, &st) == 0", "parent": 484, "children": [486, 492, 493], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 37}}, {"id": 486, "type": "call_expression", "text": "stat(name, &st)", "parent": 485, "children": [487, 488], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 32}}, {"id": 487, "type": "identifier", "text": "stat", "parent": 486, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 21}}, {"id": 488, "type": "argument_list", "text": "(name, &st)", "parent": 486, "children": [489, 490], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 32}}, {"id": 489, "type": "identifier", "text": "name", "parent": 488, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 26}}, {"id": 490, "type": "pointer_expression", "text": "&st", "parent": 488, "children": [491], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 31}}, {"id": 491, "type": "identifier", "text": "st", "parent": 490, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 31}}, {"id": 492, "type": "==", "text": "==", "parent": 485, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 35}}, {"id": 493, "type": "number_literal", "text": "0", "parent": 485, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 37}}, {"id": 494, "type": "assignment_expression", "text": "r = lm_io_save(h, url, name)", "parent": 101, "children": [495, 496, 497], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 32}}, {"id": 495, "type": "identifier", "text": "r", "parent": 494, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 5}}, {"id": 496, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 7}}, {"id": 497, "type": "call_expression", "text": "lm_io_save(h, url, name)", "parent": 494, "children": [498, 499], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 32}}, {"id": 498, "type": "identifier", "text": "lm_io_save", "parent": 497, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 18}}, {"id": 499, "type": "argument_list", "text": "(h, url, name)", "parent": 497, "children": [500, 501, 502], "start_point": {"row": 121, "column": 18}, "end_point": {"row": 121, "column": 32}}, {"id": 500, "type": "identifier", "text": "h", "parent": 499, "children": [], "start_point": {"row": 121, "column": 19}, "end_point": {"row": 121, "column": 20}}, {"id": 501, "type": "identifier", "text": "url", "parent": 499, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 25}}, {"id": 502, "type": "identifier", "text": "name", "parent": 499, "children": [], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 31}}, {"id": 503, "type": "if_statement", "text": "if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);", "parent": 101, "children": [504, 544], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 130, "column": 19}}, {"id": 504, "type": "parenthesized_expression", "text": "(r == M_OK)", "parent": 503, "children": [505], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 18}}, {"id": 505, "type": "binary_expression", "text": "r == M_OK", "parent": 504, "children": [506, 507, 508], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 17}}, {"id": 506, "type": "identifier", "text": "r", "parent": 505, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 507, "type": "==", "text": "==", "parent": 505, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 12}}, {"id": 508, "type": "identifier", "text": "M_OK", "parent": 505, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 17}}, {"id": 509, "type": "call_expression", "text": "free(h->buf.ptr)", "parent": 503, "children": [510, 511], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 24}}, {"id": 510, "type": "identifier", "text": "free", "parent": 509, "children": [], "start_point": {"row": 125, "column": 8}, "end_point": {"row": 125, "column": 12}}, {"id": 511, "type": "argument_list", "text": "(h->buf.ptr)", "parent": 509, "children": [512], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 24}}, {"id": 512, "type": "field_expression", "text": "h->buf.ptr", "parent": 511, "children": [513, 516], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 23}}, {"id": 513, "type": "field_expression", "text": "h->buf", "parent": 512, "children": [514, 515], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 19}}, {"id": 514, "type": "identifier", "text": "h", "parent": 513, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 14}}, {"id": 515, "type": "field_identifier", "text": "buf", "parent": 513, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 19}}, {"id": 516, "type": "field_identifier", "text": "ptr", "parent": 512, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 23}}, {"id": 517, "type": "assignment_expression", "text": "h->buf.ptr = name", "parent": 503, "children": [518, 523, 524], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 25}}, {"id": 518, "type": "field_expression", "text": "h->buf.ptr", "parent": 517, "children": [519, 522], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 18}}, {"id": 519, "type": "field_expression", "text": "h->buf", "parent": 518, "children": [520, 521], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 14}}, {"id": 520, "type": "identifier", "text": "h", "parent": 519, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 9}}, {"id": 521, "type": "field_identifier", "text": "buf", "parent": 519, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 14}}, {"id": 522, "type": "field_identifier", "text": "ptr", "parent": 518, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 18}}, {"id": 523, "type": "=", "text": "=", "parent": 517, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 20}}, {"id": 524, "type": "identifier", "text": "name", "parent": 517, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 25}}, {"id": 525, "type": "assignment_expression", "text": "h->buf.sz = strlen(name)", "parent": 503, "children": [526, 531, 532], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 32}}, {"id": 526, "type": "field_expression", "text": "h->buf.sz", "parent": 525, "children": [527, 530], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 17}}, {"id": 527, "type": "field_expression", "text": "h->buf", "parent": 526, "children": [528, 529], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 14}}, {"id": 528, "type": "identifier", "text": "h", "parent": 527, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 9}}, {"id": 529, "type": "field_identifier", "text": "buf", "parent": 527, "children": [], "start_point": {"row": 127, "column": 11}, "end_point": {"row": 127, "column": 14}}, {"id": 530, "type": "field_identifier", "text": "sz", "parent": 526, "children": [], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 17}}, {"id": 531, "type": "=", "text": "=", "parent": 525, "children": [], "start_point": {"row": 127, "column": 18}, "end_point": {"row": 127, "column": 19}}, {"id": 532, "type": "call_expression", "text": "strlen(name)", "parent": 525, "children": [533, 534], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 32}}, {"id": 533, "type": "identifier", "text": "strlen", "parent": 532, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 26}}, {"id": 534, "type": "argument_list", "text": "(name)", "parent": 532, "children": [535], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 32}}, {"id": 535, "type": "identifier", "text": "name", "parent": 534, "children": [], "start_point": {"row": 127, "column": 27}, "end_point": {"row": 127, "column": 31}}, {"id": 536, "type": "assignment_expression", "text": "h->buf.cap = a_sz", "parent": 503, "children": [537, 542, 543], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 25}}, {"id": 537, "type": "field_expression", "text": "h->buf.cap", "parent": 536, "children": [538, 541], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 18}}, {"id": 538, "type": "field_expression", "text": "h->buf", "parent": 537, "children": [539, 540], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 14}}, {"id": 539, "type": "identifier", "text": "h", "parent": 538, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 9}}, {"id": 540, "type": "field_identifier", "text": "buf", "parent": 538, "children": [], "start_point": {"row": 128, "column": 11}, "end_point": {"row": 128, "column": 14}}, {"id": 541, "type": "field_identifier", "text": "cap", "parent": 537, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 18}}, {"id": 542, "type": "=", "text": "=", "parent": 536, "children": [], "start_point": {"row": 128, "column": 19}, "end_point": {"row": 128, "column": 20}}, {"id": 543, "type": "identifier", "text": "a_sz", "parent": 536, "children": [], "start_point": {"row": 128, "column": 21}, "end_point": {"row": 128, "column": 25}}, {"id": 544, "type": "else_clause", "text": "else\n free(name);", "parent": 503, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 130, "column": 19}}, {"id": 545, "type": "call_expression", "text": "free(name)", "parent": 544, "children": [546, 547], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 18}}, {"id": 546, "type": "identifier", "text": "free", "parent": 545, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 12}}, {"id": 547, "type": "argument_list", "text": "(name)", "parent": 545, "children": [548], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 18}}, {"id": 548, "type": "identifier", "text": "name", "parent": 547, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 17}}, {"id": 549, "type": "call_expression", "text": "free(ext)", "parent": 101, "children": [550, 551], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 13}}, {"id": 550, "type": "identifier", "text": "free", "parent": 549, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 8}}, {"id": 551, "type": "argument_list", "text": "(ext)", "parent": 549, "children": [552], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 13}}, {"id": 552, "type": "identifier", "text": "ext", "parent": 551, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 12}}, {"id": 553, "type": "return_statement", "text": "return M_OK;", "parent": 101, "children": [554], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 16}}, {"id": 554, "type": "identifier", "text": "M_OK", "parent": 553, "children": [], "start_point": {"row": 133, "column": 11}, "end_point": {"row": 133, "column": 15}}, {"id": 555, "type": "function_definition", "text": "M_CODE\nlm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)\n{\n char *p = buf;\n char *e = p+sz;\n char *t, *s;\n while ((p = memmem(p, e-p, \"url\", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }\n\n return M_OK;\n}", "parent": null, "children": [556, 557], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 168, "column": 1}}, {"id": 556, "type": "type_identifier", "text": "M_CODE", "parent": 555, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 6}}, {"id": 557, "type": "function_declarator", "text": "lm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)", "parent": 555, "children": [558, 559], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 59}}, {"id": 558, "type": "identifier", "text": "lm_extract_css_urls", "parent": 557, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 19}}, {"id": 559, "type": "parameter_list", "text": "(uehandle_t *ue_h, char *buf, size_t sz)", "parent": 557, "children": [560, 565, 570], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 59}}, {"id": 560, "type": "parameter_declaration", "text": "uehandle_t *ue_h", "parent": 559, "children": [561, 562], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 36}}, {"id": 561, "type": "type_identifier", "text": "uehandle_t", "parent": 560, "children": [], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 30}}, {"id": 562, "type": "pointer_declarator", "text": "*ue_h", "parent": 560, "children": [563, 564], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 36}}, {"id": 563, "type": "*", "text": "*", "parent": 562, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 32}}, {"id": 564, "type": "identifier", "text": "ue_h", "parent": 562, "children": [], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 36}}, {"id": 565, "type": "parameter_declaration", "text": "char *buf", "parent": 559, "children": [566, 567], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 47}}, {"id": 566, "type": "primitive_type", "text": "char", "parent": 565, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 42}}, {"id": 567, "type": "pointer_declarator", "text": "*buf", "parent": 565, "children": [568, 569], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 47}}, {"id": 568, "type": "*", "text": "*", "parent": 567, "children": [], "start_point": {"row": 141, "column": 43}, "end_point": {"row": 141, "column": 44}}, {"id": 569, "type": "identifier", "text": "buf", "parent": 567, "children": [], "start_point": {"row": 141, "column": 44}, "end_point": {"row": 141, "column": 47}}, {"id": 570, "type": "parameter_declaration", "text": "size_t sz", "parent": 559, "children": [571, 572], "start_point": {"row": 141, "column": 49}, "end_point": {"row": 141, "column": 58}}, {"id": 571, "type": "primitive_type", "text": "size_t", "parent": 570, "children": [], "start_point": {"row": 141, "column": 49}, "end_point": {"row": 141, "column": 55}}, {"id": 572, "type": "identifier", "text": "sz", "parent": 570, "children": [], "start_point": {"row": 141, "column": 56}, "end_point": {"row": 141, "column": 58}}, {"id": 573, "type": "declaration", "text": "char *p = buf;", "parent": 555, "children": [574, 575], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 18}}, {"id": 574, "type": "primitive_type", "text": "char", "parent": 573, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 8}}, {"id": 575, "type": "init_declarator", "text": "*p = buf", "parent": 573, "children": [576, 579, 580], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 17}}, {"id": 576, "type": "pointer_declarator", "text": "*p", "parent": 575, "children": [577, 578], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 11}}, {"id": 577, "type": "*", "text": "*", "parent": 576, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 10}}, {"id": 578, "type": "identifier", "text": "p", "parent": 576, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 11}}, {"id": 579, "type": "=", "text": "=", "parent": 575, "children": [], "start_point": {"row": 143, "column": 12}, "end_point": {"row": 143, "column": 13}}, {"id": 580, "type": "identifier", "text": "buf", "parent": 575, "children": [], "start_point": {"row": 143, "column": 14}, "end_point": {"row": 143, "column": 17}}, {"id": 581, "type": "declaration", "text": "char *e = p+sz;", "parent": 555, "children": [582, 583], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 19}}, {"id": 582, "type": "primitive_type", "text": "char", "parent": 581, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 8}}, {"id": 583, "type": "init_declarator", "text": "*e = p+sz", "parent": 581, "children": [584, 587, 588], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 18}}, {"id": 584, "type": "pointer_declarator", "text": "*e", "parent": 583, "children": [585, 586], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 11}}, {"id": 585, "type": "*", "text": "*", "parent": 584, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 10}}, {"id": 586, "type": "identifier", "text": "e", "parent": 584, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 11}}, {"id": 587, "type": "=", "text": "=", "parent": 583, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 588, "type": "binary_expression", "text": "p+sz", "parent": 583, "children": [589, 590, 591], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 18}}, {"id": 589, "type": "identifier", "text": "p", "parent": 588, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 590, "type": "+", "text": "+", "parent": 588, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 16}}, {"id": 591, "type": "identifier", "text": "sz", "parent": 588, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 18}}, {"id": 592, "type": "declaration", "text": "char *t, *s;", "parent": 555, "children": [593, 594, 597], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 16}}, {"id": 593, "type": "primitive_type", "text": "char", "parent": 592, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 8}}, {"id": 594, "type": "pointer_declarator", "text": "*t", "parent": 592, "children": [595, 596], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 11}}, {"id": 595, "type": "*", "text": "*", "parent": 594, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 10}}, {"id": 596, "type": "identifier", "text": "t", "parent": 594, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 11}}, {"id": 597, "type": "pointer_declarator", "text": "*s", "parent": 592, "children": [598, 599], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 15}}, {"id": 598, "type": "*", "text": "*", "parent": 597, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 14}}, {"id": 599, "type": "identifier", "text": "s", "parent": 597, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 15}}, {"id": 600, "type": "while_statement", "text": "while ((p = memmem(p, e-p, \"url\", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }", "parent": 555, "children": [601], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 165, "column": 5}}, {"id": 601, "type": "parenthesized_expression", "text": "((p = memmem(p, e-p, \"url\", 3)))", "parent": 600, "children": [602], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 42}}, {"id": 602, "type": "parenthesized_expression", "text": "(p = memmem(p, e-p, \"url\", 3))", "parent": 601, "children": [603], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 41}}, {"id": 603, "type": "assignment_expression", "text": "p = memmem(p, e-p, \"url\", 3)", "parent": 602, "children": [604, 605, 606], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 40}}, {"id": 604, "type": "identifier", "text": "p", "parent": 603, "children": [], "start_point": {"row": 146, "column": 12}, "end_point": {"row": 146, "column": 13}}, {"id": 605, "type": "=", "text": "=", "parent": 603, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 15}}, {"id": 606, "type": "call_expression", "text": "memmem(p, e-p, \"url\", 3)", "parent": 603, "children": [607, 608], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 40}}, {"id": 607, "type": "identifier", "text": "memmem", "parent": 606, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 22}}, {"id": 608, "type": "argument_list", "text": "(p, e-p, \"url\", 3)", "parent": 606, "children": [609, 610, 614, 615], "start_point": {"row": 146, "column": 22}, "end_point": {"row": 146, "column": 40}}, {"id": 609, "type": "identifier", "text": "p", "parent": 608, "children": [], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 24}}, {"id": 610, "type": "binary_expression", "text": "e-p", "parent": 608, "children": [611, 612, 613], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 29}}, {"id": 611, "type": "identifier", "text": "e", "parent": 610, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 27}}, {"id": 612, "type": "-", "text": "-", "parent": 610, "children": [], "start_point": {"row": 146, "column": 27}, "end_point": {"row": 146, "column": 28}}, {"id": 613, "type": "identifier", "text": "p", "parent": 610, "children": [], "start_point": {"row": 146, "column": 28}, "end_point": {"row": 146, "column": 29}}, {"id": 614, "type": "string_literal", "text": "\"url\"", "parent": 608, "children": [], "start_point": {"row": 146, "column": 31}, "end_point": {"row": 146, "column": 36}}, {"id": 615, "type": "number_literal", "text": "3", "parent": 608, "children": [], "start_point": {"row": 146, "column": 38}, "end_point": {"row": 146, "column": 39}}, {"id": 616, "type": "assignment_expression", "text": "p += 3", "parent": 600, "children": [617, 618, 619], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 14}}, {"id": 617, "type": "identifier", "text": "p", "parent": 616, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 9}}, {"id": 618, "type": "+=", "text": "+=", "parent": 616, "children": [], "start_point": {"row": 147, "column": 10}, "end_point": {"row": 147, "column": 12}}, {"id": 619, "type": "number_literal", "text": "3", "parent": 616, "children": [], "start_point": {"row": 147, "column": 13}, "end_point": {"row": 147, "column": 14}}, {"id": 620, "type": "while_statement", "text": "while (isspace(*p)) p++;", "parent": 600, "children": [621], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 32}}, {"id": 621, "type": "parenthesized_expression", "text": "(isspace(*p))", "parent": 620, "children": [622], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 27}}, {"id": 622, "type": "call_expression", "text": "isspace(*p)", "parent": 621, "children": [623, 624], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 26}}, {"id": 623, "type": "identifier", "text": "isspace", "parent": 622, "children": [], "start_point": {"row": 148, "column": 15}, "end_point": {"row": 148, "column": 22}}, {"id": 624, "type": "argument_list", "text": "(*p)", "parent": 622, "children": [625], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 26}}, {"id": 625, "type": "pointer_expression", "text": "*p", "parent": 624, "children": [626, 627], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 25}}, {"id": 626, "type": "*", "text": "*", "parent": 625, "children": [], "start_point": {"row": 148, "column": 23}, "end_point": {"row": 148, "column": 24}}, {"id": 627, "type": "identifier", "text": "p", "parent": 625, "children": [], "start_point": {"row": 148, "column": 24}, "end_point": {"row": 148, "column": 25}}, {"id": 628, "type": "update_expression", "text": "p++", "parent": 620, "children": [629, 630], "start_point": {"row": 148, "column": 28}, "end_point": {"row": 148, "column": 31}}, {"id": 629, "type": "identifier", "text": "p", "parent": 628, "children": [], "start_point": {"row": 148, "column": 28}, "end_point": {"row": 148, "column": 29}}, {"id": 630, "type": "++", "text": "++", "parent": 628, "children": [], "start_point": {"row": 148, "column": 29}, "end_point": {"row": 148, "column": 31}}, {"id": 631, "type": "if_statement", "text": "if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }", "parent": 600, "children": [632, 704], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 158, "column": 9}}, {"id": 632, "type": "parenthesized_expression", "text": "(*p == '(')", "parent": 631, "children": [633], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 22}}, {"id": 633, "type": "binary_expression", "text": "*p == '('", "parent": 632, "children": [634, 637, 638], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 21}}, {"id": 634, "type": "pointer_expression", "text": "*p", "parent": 633, "children": [635, 636], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 14}}, {"id": 635, "type": "*", "text": "*", "parent": 634, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 13}}, {"id": 636, "type": "identifier", "text": "p", "parent": 634, "children": [], "start_point": {"row": 149, "column": 13}, "end_point": {"row": 149, "column": 14}}, {"id": 637, "type": "==", "text": "==", "parent": 633, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 17}}, {"id": 638, "type": "char_literal", "text": "'('", "parent": 633, "children": [639, 640], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 21}}, {"id": 639, "type": "'", "text": "'", "parent": 638, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 19}}, {"id": 640, "type": "'", "text": "'", "parent": 638, "children": [], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 21}}, {"id": 641, "type": "do_statement", "text": "do p++; while (isspace(*p));", "parent": 631, "children": [645], "start_point": {"row": 150, "column": 12}, "end_point": {"row": 150, "column": 40}}, {"id": 642, "type": "update_expression", "text": "p++", "parent": 641, "children": [643, 644], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 18}}, {"id": 643, "type": "identifier", "text": "p", "parent": 642, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 16}}, {"id": 644, "type": "++", "text": "++", "parent": 642, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 18}}, {"id": 645, "type": "parenthesized_expression", "text": "(isspace(*p))", "parent": 641, "children": [646], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 39}}, {"id": 646, "type": "call_expression", "text": "isspace(*p)", "parent": 645, "children": [647, 648], "start_point": {"row": 150, "column": 27}, "end_point": {"row": 150, "column": 38}}, {"id": 647, "type": "identifier", "text": "isspace", "parent": 646, "children": [], "start_point": {"row": 150, "column": 27}, "end_point": {"row": 150, "column": 34}}, {"id": 648, "type": "argument_list", "text": "(*p)", "parent": 646, "children": [649], "start_point": {"row": 150, "column": 34}, "end_point": {"row": 150, "column": 38}}, {"id": 649, "type": "pointer_expression", "text": "*p", "parent": 648, "children": [650, 651], "start_point": {"row": 150, "column": 35}, "end_point": {"row": 150, "column": 37}}, {"id": 650, "type": "*", "text": "*", "parent": 649, "children": [], "start_point": {"row": 150, "column": 35}, "end_point": {"row": 150, "column": 36}}, {"id": 651, "type": "identifier", "text": "p", "parent": 649, "children": [], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 37}}, {"id": 652, "type": "assignment_expression", "text": "t = (*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"))", "parent": 631, "children": [653, 654, 655], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 152, "column": 44}}, {"id": 653, "type": "identifier", "text": "t", "parent": 652, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 13}}, {"id": 654, "type": "=", "text": "=", "parent": 652, "children": [], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 15}}, {"id": 655, "type": "parenthesized_expression", "text": "(*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"))", "parent": 652, "children": [656], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 152, "column": 44}}, {"id": 656, "type": "conditional_expression", "text": "*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\")", "parent": 655, "children": [657, 666, 667, 669], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 152, "column": 43}}, {"id": 657, "type": "binary_expression", "text": "*p == '\"'", "parent": 656, "children": [658, 661, 662], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 26}}, {"id": 658, "type": "pointer_expression", "text": "*p", "parent": 657, "children": [659, 660], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 19}}, {"id": 659, "type": "*", "text": "*", "parent": 658, "children": [], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 18}}, {"id": 660, "type": "identifier", "text": "p", "parent": 658, "children": [], "start_point": {"row": 151, "column": 18}, "end_point": {"row": 151, "column": 19}}, {"id": 661, "type": "==", "text": "==", "parent": 657, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 22}}, {"id": 662, "type": "char_literal", "text": "'\"'", "parent": 657, "children": [663, 664, 665], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 26}}, {"id": 663, "type": "'", "text": "'", "parent": 662, "children": [], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 24}}, {"id": 664, "type": "character", "text": "\"", "parent": 662, "children": [], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 25}}, {"id": 665, "type": "'", "text": "'", "parent": 662, "children": [], "start_point": {"row": 151, "column": 25}, "end_point": {"row": 151, "column": 26}}, {"id": 666, "type": "?", "text": "?", "parent": 656, "children": [], "start_point": {"row": 151, "column": 27}, "end_point": {"row": 151, "column": 28}}, {"id": 667, "type": "string_literal", "text": "\"\\\")\"", "parent": 656, "children": [668], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 34}}, {"id": 668, "type": "escape_sequence", "text": "\\\"", "parent": 667, "children": [], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 32}}, {"id": 669, "type": "parenthesized_expression", "text": "(*p == '\\'' ? \"')\" : \")\")", "parent": 656, "children": [670], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 43}}, {"id": 670, "type": "conditional_expression", "text": "*p == '\\'' ? \"')\" : \")\"", "parent": 669, "children": [671, 680, 681, 682], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 42}}, {"id": 671, "type": "binary_expression", "text": "*p == '\\''", "parent": 670, "children": [672, 675, 676], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 29}}, {"id": 672, "type": "pointer_expression", "text": "*p", "parent": 671, "children": [673, 674], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 21}}, {"id": 673, "type": "*", "text": "*", "parent": 672, "children": [], "start_point": {"row": 152, "column": 19}, "end_point": {"row": 152, "column": 20}}, {"id": 674, "type": "identifier", "text": "p", "parent": 672, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 21}}, {"id": 675, "type": "==", "text": "==", "parent": 671, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 24}}, {"id": 676, "type": "char_literal", "text": "'\\''", "parent": 671, "children": [677, 678, 679], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 29}}, {"id": 677, "type": "'", "text": "'", "parent": 676, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 26}}, {"id": 678, "type": "escape_sequence", "text": "\\'", "parent": 676, "children": [], "start_point": {"row": 152, "column": 26}, "end_point": {"row": 152, "column": 28}}, {"id": 679, "type": "'", "text": "'", "parent": 676, "children": [], "start_point": {"row": 152, "column": 28}, "end_point": {"row": 152, "column": 29}}, {"id": 680, "type": "?", "text": "?", "parent": 670, "children": [], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 31}}, {"id": 681, "type": "string_literal", "text": "\"')\"", "parent": 670, "children": [], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 36}}, {"id": 682, "type": "string_literal", "text": "\")\"", "parent": 670, "children": [], "start_point": {"row": 152, "column": 39}, "end_point": {"row": 152, "column": 42}}, {"id": 683, "type": "if_statement", "text": "if (*t != ')') {\n do p++; while (isspace(*p));\n }", "parent": 631, "children": [684], "start_point": {"row": 153, "column": 12}, "end_point": {"row": 155, "column": 13}}, {"id": 684, "type": "parenthesized_expression", "text": "(*t != ')')", "parent": 683, "children": [685], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 26}}, {"id": 685, "type": "binary_expression", "text": "*t != ')'", "parent": 684, "children": [686, 689, 690], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 25}}, {"id": 686, "type": "pointer_expression", "text": "*t", "parent": 685, "children": [687, 688], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 18}}, {"id": 687, "type": "*", "text": "*", "parent": 686, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 688, "type": "identifier", "text": "t", "parent": 686, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 18}}, {"id": 689, "type": "!=", "text": "!=", "parent": 685, "children": [], "start_point": {"row": 153, "column": 19}, "end_point": {"row": 153, "column": 21}}, {"id": 690, "type": "char_literal", "text": "')'", "parent": 685, "children": [691, 692], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 25}}, {"id": 691, "type": "'", "text": "'", "parent": 690, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 23}}, {"id": 692, "type": "'", "text": "'", "parent": 690, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 25}}, {"id": 693, "type": "do_statement", "text": "do p++; while (isspace(*p));", "parent": 683, "children": [697], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 44}}, {"id": 694, "type": "update_expression", "text": "p++", "parent": 693, "children": [695, 696], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 22}}, {"id": 695, "type": "identifier", "text": "p", "parent": 694, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 20}}, {"id": 696, "type": "++", "text": "++", "parent": 694, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 22}}, {"id": 697, "type": "parenthesized_expression", "text": "(isspace(*p))", "parent": 693, "children": [698], "start_point": {"row": 154, "column": 30}, "end_point": {"row": 154, "column": 43}}, {"id": 698, "type": "call_expression", "text": "isspace(*p)", "parent": 697, "children": [699, 700], "start_point": {"row": 154, "column": 31}, "end_point": {"row": 154, "column": 42}}, {"id": 699, "type": "identifier", "text": "isspace", "parent": 698, "children": [], "start_point": {"row": 154, "column": 31}, "end_point": {"row": 154, "column": 38}}, {"id": 700, "type": "argument_list", "text": "(*p)", "parent": 698, "children": [701], "start_point": {"row": 154, "column": 38}, "end_point": {"row": 154, "column": 42}}, {"id": 701, "type": "pointer_expression", "text": "*p", "parent": 700, "children": [702, 703], "start_point": {"row": 154, "column": 39}, "end_point": {"row": 154, "column": 41}}, {"id": 702, "type": "*", "text": "*", "parent": 701, "children": [], "start_point": {"row": 154, "column": 39}, "end_point": {"row": 154, "column": 40}}, {"id": 703, "type": "identifier", "text": "p", "parent": 701, "children": [], "start_point": {"row": 154, "column": 40}, "end_point": {"row": 154, "column": 41}}, {"id": 704, "type": "else_clause", "text": "else {\n continue;\n }", "parent": 631, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 158, "column": 9}}, {"id": 705, "type": "continue_statement", "text": "continue;", "parent": 704, "children": [706], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 21}}, {"id": 706, "type": "continue", "text": "continue", "parent": 705, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 20}}, {"id": 707, "type": "if_statement", "text": "if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }", "parent": 600, "children": [708], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 161, "column": 9}}, {"id": 708, "type": "parenthesized_expression", "text": "(!(s = memmem(p, e-p, t, strlen(t))))", "parent": 707, "children": [709], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 48}}, {"id": 709, "type": "unary_expression", "text": "!(s = memmem(p, e-p, t, strlen(t)))", "parent": 708, "children": [710, 711], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 47}}, {"id": 710, "type": "!", "text": "!", "parent": 709, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 13}}, {"id": 711, "type": "parenthesized_expression", "text": "(s = memmem(p, e-p, t, strlen(t)))", "parent": 709, "children": [712], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 47}}, {"id": 712, "type": "assignment_expression", "text": "s = memmem(p, e-p, t, strlen(t))", "parent": 711, "children": [713, 714, 715], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 46}}, {"id": 713, "type": "identifier", "text": "s", "parent": 712, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 15}}, {"id": 714, "type": "=", "text": "=", "parent": 712, "children": [], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 17}}, {"id": 715, "type": "call_expression", "text": "memmem(p, e-p, t, strlen(t))", "parent": 712, "children": [716, 717], "start_point": {"row": 159, "column": 18}, "end_point": {"row": 159, "column": 46}}, {"id": 716, "type": "identifier", "text": "memmem", "parent": 715, "children": [], "start_point": {"row": 159, "column": 18}, "end_point": {"row": 159, "column": 24}}, {"id": 717, "type": "argument_list", "text": "(p, e-p, t, strlen(t))", "parent": 715, "children": [718, 719, 723, 724], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 46}}, {"id": 718, "type": "identifier", "text": "p", "parent": 717, "children": [], "start_point": {"row": 159, "column": 25}, "end_point": {"row": 159, "column": 26}}, {"id": 719, "type": "binary_expression", "text": "e-p", "parent": 717, "children": [720, 721, 722], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 31}}, {"id": 720, "type": "identifier", "text": "e", "parent": 719, "children": [], "start_point": {"row": 159, "column": 28}, "end_point": {"row": 159, "column": 29}}, {"id": 721, "type": "-", "text": "-", "parent": 719, "children": [], "start_point": {"row": 159, "column": 29}, "end_point": {"row": 159, "column": 30}}, {"id": 722, "type": "identifier", "text": "p", "parent": 719, "children": [], "start_point": {"row": 159, "column": 30}, "end_point": {"row": 159, "column": 31}}, {"id": 723, "type": "identifier", "text": "t", "parent": 717, "children": [], "start_point": {"row": 159, "column": 33}, "end_point": {"row": 159, "column": 34}}, {"id": 724, "type": "call_expression", "text": "strlen(t)", "parent": 717, "children": [725, 726], "start_point": {"row": 159, "column": 36}, "end_point": {"row": 159, "column": 45}}, {"id": 725, "type": "identifier", "text": "strlen", "parent": 724, "children": [], "start_point": {"row": 159, "column": 36}, "end_point": {"row": 159, "column": 42}}, {"id": 726, "type": "argument_list", "text": "(t)", "parent": 724, "children": [727], "start_point": {"row": 159, "column": 42}, "end_point": {"row": 159, "column": 45}}, {"id": 727, "type": "identifier", "text": "t", "parent": 726, "children": [], "start_point": {"row": 159, "column": 43}, "end_point": {"row": 159, "column": 44}}, {"id": 728, "type": "continue_statement", "text": "continue;", "parent": 707, "children": [729], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 21}}, {"id": 729, "type": "continue", "text": "continue", "parent": 728, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 20}}, {"id": 730, "type": "call_expression", "text": "ue_add(ue_h, p, s-p)", "parent": 600, "children": [731, 732], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 28}}, {"id": 731, "type": "identifier", "text": "ue_add", "parent": 730, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 14}}, {"id": 732, "type": "argument_list", "text": "(ue_h, p, s-p)", "parent": 730, "children": [733, 734, 735], "start_point": {"row": 163, "column": 14}, "end_point": {"row": 163, "column": 28}}, {"id": 733, "type": "identifier", "text": "ue_h", "parent": 732, "children": [], "start_point": {"row": 163, "column": 15}, "end_point": {"row": 163, "column": 19}}, {"id": 734, "type": "identifier", "text": "p", "parent": 732, "children": [], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 22}}, {"id": 735, "type": "binary_expression", "text": "s-p", "parent": 732, "children": [736, 737, 738], "start_point": {"row": 163, "column": 24}, "end_point": {"row": 163, "column": 27}}, {"id": 736, "type": "identifier", "text": "s", "parent": 735, "children": [], "start_point": {"row": 163, "column": 24}, "end_point": {"row": 163, "column": 25}}, {"id": 737, "type": "-", "text": "-", "parent": 735, "children": [], "start_point": {"row": 163, "column": 25}, "end_point": {"row": 163, "column": 26}}, {"id": 738, "type": "identifier", "text": "p", "parent": 735, "children": [], "start_point": {"row": 163, "column": 26}, "end_point": {"row": 163, "column": 27}}, {"id": 739, "type": "assignment_expression", "text": "p = s", "parent": 600, "children": [740, 741, 742], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 13}}, {"id": 740, "type": "identifier", "text": "p", "parent": 739, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 9}}, {"id": 741, "type": "=", "text": "=", "parent": 739, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 742, "type": "identifier", "text": "s", "parent": 739, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 13}}, {"id": 743, "type": "return_statement", "text": "return M_OK;", "parent": 555, "children": [744], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 16}}, {"id": 744, "type": "identifier", "text": "M_OK", "parent": 743, "children": [], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 15}}, {"id": 745, "type": "function_definition", "text": "M_CODE\nlm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);\n}", "parent": null, "children": [746, 747], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 179, "column": 1}}, {"id": 746, "type": "type_identifier", "text": "M_CODE", "parent": 745, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 6}}, {"id": 747, "type": "function_declarator", "text": "lm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)", "parent": 745, "children": [748, 749], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 176, "column": 31}}, {"id": 748, "type": "identifier", "text": "lm_parser_text", "parent": 747, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 14}}, {"id": 749, "type": "parameter_list", "text": "(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)", "parent": 747, "children": [750, 755, 760, 765, 770, 775], "start_point": {"row": 174, "column": 14}, "end_point": {"row": 176, "column": 31}}, {"id": 750, "type": "parameter_declaration", "text": "metha_t *m", "parent": 749, "children": [751, 752], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 25}}, {"id": 751, "type": "type_identifier", "text": "metha_t", "parent": 750, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 22}}, {"id": 752, "type": "pointer_declarator", "text": "*m", "parent": 750, "children": [753, 754], "start_point": {"row": 174, "column": 23}, "end_point": {"row": 174, "column": 25}}, {"id": 753, "type": "*", "text": "*", "parent": 752, "children": [], "start_point": {"row": 174, "column": 23}, "end_point": {"row": 174, "column": 24}}, {"id": 754, "type": "identifier", "text": "m", "parent": 752, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 25}}, {"id": 755, "type": "parameter_declaration", "text": "worker_t *w", "parent": 749, "children": [756, 757], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 38}}, {"id": 756, "type": "type_identifier", "text": "worker_t", "parent": 755, "children": [], "start_point": {"row": 174, "column": 27}, "end_point": {"row": 174, "column": 35}}, {"id": 757, "type": "pointer_declarator", "text": "*w", "parent": 755, "children": [758, 759], "start_point": {"row": 174, "column": 36}, "end_point": {"row": 174, "column": 38}}, {"id": 758, "type": "*", "text": "*", "parent": 757, "children": [], "start_point": {"row": 174, "column": 36}, "end_point": {"row": 174, "column": 37}}, {"id": 759, "type": "identifier", "text": "w", "parent": 757, "children": [], "start_point": {"row": 174, "column": 37}, "end_point": {"row": 174, "column": 38}}, {"id": 760, "type": "parameter_declaration", "text": "iobuf_t *buf", "parent": 749, "children": [761, 762], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 52}}, {"id": 761, "type": "type_identifier", "text": "iobuf_t", "parent": 760, "children": [], "start_point": {"row": 174, "column": 40}, "end_point": {"row": 174, "column": 47}}, {"id": 762, "type": "pointer_declarator", "text": "*buf", "parent": 760, "children": [763, 764], "start_point": {"row": 174, "column": 48}, "end_point": {"row": 174, "column": 52}}, {"id": 763, "type": "*", "text": "*", "parent": 762, "children": [], "start_point": {"row": 174, "column": 48}, "end_point": {"row": 174, "column": 49}}, {"id": 764, "type": "identifier", "text": "buf", "parent": 762, "children": [], "start_point": {"row": 174, "column": 49}, "end_point": {"row": 174, "column": 52}}, {"id": 765, "type": "parameter_declaration", "text": "uehandle_t *ue_h", "parent": 749, "children": [766, 767], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 31}}, {"id": 766, "type": "type_identifier", "text": "uehandle_t", "parent": 765, "children": [], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 25}}, {"id": 767, "type": "pointer_declarator", "text": "*ue_h", "parent": 765, "children": [768, 769], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 31}}, {"id": 768, "type": "*", "text": "*", "parent": 767, "children": [], "start_point": {"row": 175, "column": 26}, "end_point": {"row": 175, "column": 27}}, {"id": 769, "type": "identifier", "text": "ue_h", "parent": 767, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 31}}, {"id": 770, "type": "parameter_declaration", "text": "url_t *url", "parent": 749, "children": [771, 772], "start_point": {"row": 175, "column": 33}, "end_point": {"row": 175, "column": 43}}, {"id": 771, "type": "type_identifier", "text": "url_t", "parent": 770, "children": [], "start_point": {"row": 175, "column": 33}, "end_point": {"row": 175, "column": 38}}, {"id": 772, "type": "pointer_declarator", "text": "*url", "parent": 770, "children": [773, 774], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 43}}, {"id": 773, "type": "*", "text": "*", "parent": 772, "children": [], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 40}}, {"id": 774, "type": "identifier", "text": "url", "parent": 772, "children": [], "start_point": {"row": 175, "column": 40}, "end_point": {"row": 175, "column": 43}}, {"id": 775, "type": "parameter_declaration", "text": "attr_list_t *al", "parent": 749, "children": [776, 777], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 30}}, {"id": 776, "type": "type_identifier", "text": "attr_list_t", "parent": 775, "children": [], "start_point": {"row": 176, "column": 15}, "end_point": {"row": 176, "column": 26}}, {"id": 777, "type": "pointer_declarator", "text": "*al", "parent": 775, "children": [778, 779], "start_point": {"row": 176, "column": 27}, "end_point": {"row": 176, "column": 30}}, {"id": 778, "type": "*", "text": "*", "parent": 777, "children": [], "start_point": {"row": 176, "column": 27}, "end_point": {"row": 176, "column": 28}}, {"id": 779, "type": "identifier", "text": "al", "parent": 777, "children": [], "start_point": {"row": 176, "column": 28}, "end_point": {"row": 176, "column": 30}}, {"id": 780, "type": "return_statement", "text": "return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);", "parent": 745, "children": [781], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 57}}, {"id": 781, "type": "call_expression", "text": "lm_extract_text_urls(ue_h, buf->ptr, buf->sz)", "parent": 780, "children": [782, 783], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 56}}, {"id": 782, "type": "identifier", "text": "lm_extract_text_urls", "parent": 781, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 31}}, {"id": 783, "type": "argument_list", "text": "(ue_h, buf->ptr, buf->sz)", "parent": 781, "children": [784, 785, 788], "start_point": {"row": 178, "column": 31}, "end_point": {"row": 178, "column": 56}}, {"id": 784, "type": "identifier", "text": "ue_h", "parent": 783, "children": [], "start_point": {"row": 178, "column": 32}, "end_point": {"row": 178, "column": 36}}, {"id": 785, "type": "field_expression", "text": "buf->ptr", "parent": 783, "children": [786, 787], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 46}}, {"id": 786, "type": "identifier", "text": "buf", "parent": 785, "children": [], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 41}}, {"id": 787, "type": "field_identifier", "text": "ptr", "parent": 785, "children": [], "start_point": {"row": 178, "column": 43}, "end_point": {"row": 178, "column": 46}}, {"id": 788, "type": "field_expression", "text": "buf->sz", "parent": 783, "children": [789, 790], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 55}}, {"id": 789, "type": "identifier", "text": "buf", "parent": 788, "children": [], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 51}}, {"id": 790, "type": "field_identifier", "text": "sz", "parent": 788, "children": [], "start_point": {"row": 178, "column": 53}, "end_point": {"row": 178, "column": 55}}, {"id": 791, "type": "function_definition", "text": "M_CODE\nlm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)\n{\n int x;\n char *s, *e = p+sz;\n char *m = p;\n char *p_start;\n\n for (p = strstr(p, \"//\"); p && p<e; p = strstr(p+1, \"//\")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }\n\n return M_OK;\n}", "parent": null, "children": [792, 793], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 220, "column": 1}}, {"id": 792, "type": "type_identifier", "text": "M_CODE", "parent": 791, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 6}}, {"id": 793, "type": "function_declarator", "text": "lm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)", "parent": 791, "children": [794, 795], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 58}}, {"id": 794, "type": "identifier", "text": "lm_extract_text_urls", "parent": 793, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 20}}, {"id": 795, "type": "parameter_list", "text": "(uehandle_t *ue_h, char *p, size_t sz)", "parent": 793, "children": [796, 801, 806], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 58}}, {"id": 796, "type": "parameter_declaration", "text": "uehandle_t *ue_h", "parent": 795, "children": [797, 798], "start_point": {"row": 182, "column": 21}, "end_point": {"row": 182, "column": 37}}, {"id": 797, "type": "type_identifier", "text": "uehandle_t", "parent": 796, "children": [], "start_point": {"row": 182, "column": 21}, "end_point": {"row": 182, "column": 31}}, {"id": 798, "type": "pointer_declarator", "text": "*ue_h", "parent": 796, "children": [799, 800], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 37}}, {"id": 799, "type": "*", "text": "*", "parent": 798, "children": [], "start_point": {"row": 182, "column": 32}, "end_point": {"row": 182, "column": 33}}, {"id": 800, "type": "identifier", "text": "ue_h", "parent": 798, "children": [], "start_point": {"row": 182, "column": 33}, "end_point": {"row": 182, "column": 37}}, {"id": 801, "type": "parameter_declaration", "text": "char *p", "parent": 795, "children": [802, 803], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 46}}, {"id": 802, "type": "primitive_type", "text": "char", "parent": 801, "children": [], "start_point": {"row": 182, "column": 39}, "end_point": {"row": 182, "column": 43}}, {"id": 803, "type": "pointer_declarator", "text": "*p", "parent": 801, "children": [804, 805], "start_point": {"row": 182, "column": 44}, "end_point": {"row": 182, "column": 46}}, {"id": 804, "type": "*", "text": "*", "parent": 803, "children": [], "start_point": {"row": 182, "column": 44}, "end_point": {"row": 182, "column": 45}}, {"id": 805, "type": "identifier", "text": "p", "parent": 803, "children": [], "start_point": {"row": 182, "column": 45}, "end_point": {"row": 182, "column": 46}}, {"id": 806, "type": "parameter_declaration", "text": "size_t sz", "parent": 795, "children": [807, 808], "start_point": {"row": 182, "column": 48}, "end_point": {"row": 182, "column": 57}}, {"id": 807, "type": "primitive_type", "text": "size_t", "parent": 806, "children": [], "start_point": {"row": 182, "column": 48}, "end_point": {"row": 182, "column": 54}}, {"id": 808, "type": "identifier", "text": "sz", "parent": 806, "children": [], "start_point": {"row": 182, "column": 55}, "end_point": {"row": 182, "column": 57}}, {"id": 809, "type": "declaration", "text": "int x;", "parent": 791, "children": [810, 811], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 10}}, {"id": 810, "type": "primitive_type", "text": "int", "parent": 809, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 7}}, {"id": 811, "type": "identifier", "text": "x", "parent": 809, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 9}}, {"id": 812, "type": "declaration", "text": "char *s, *e = p+sz;", "parent": 791, "children": [813, 814, 817], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 23}}, {"id": 813, "type": "primitive_type", "text": "char", "parent": 812, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 8}}, {"id": 814, "type": "pointer_declarator", "text": "*s", "parent": 812, "children": [815, 816], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 11}}, {"id": 815, "type": "*", "text": "*", "parent": 814, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 10}}, {"id": 816, "type": "identifier", "text": "s", "parent": 814, "children": [], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 11}}, {"id": 817, "type": "init_declarator", "text": "*e = p+sz", "parent": 812, "children": [818, 821, 822], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 22}}, {"id": 818, "type": "pointer_declarator", "text": "*e", "parent": 817, "children": [819, 820], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 15}}, {"id": 819, "type": "*", "text": "*", "parent": 818, "children": [], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 14}}, {"id": 820, "type": "identifier", "text": "e", "parent": 818, "children": [], "start_point": {"row": 185, "column": 14}, "end_point": {"row": 185, "column": 15}}, {"id": 821, "type": "=", "text": "=", "parent": 817, "children": [], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 17}}, {"id": 822, "type": "binary_expression", "text": "p+sz", "parent": 817, "children": [823, 824, 825], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 22}}, {"id": 823, "type": "identifier", "text": "p", "parent": 822, "children": [], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 19}}, {"id": 824, "type": "+", "text": "+", "parent": 822, "children": [], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 20}}, {"id": 825, "type": "identifier", "text": "sz", "parent": 822, "children": [], "start_point": {"row": 185, "column": 20}, "end_point": {"row": 185, "column": 22}}, {"id": 826, "type": "declaration", "text": "char *m = p;", "parent": 791, "children": [827, 828], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 16}}, {"id": 827, "type": "primitive_type", "text": "char", "parent": 826, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 8}}, {"id": 828, "type": "init_declarator", "text": "*m = p", "parent": 826, "children": [829, 832, 833], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 15}}, {"id": 829, "type": "pointer_declarator", "text": "*m", "parent": 828, "children": [830, 831], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 11}}, {"id": 830, "type": "*", "text": "*", "parent": 829, "children": [], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 10}}, {"id": 831, "type": "identifier", "text": "m", "parent": 829, "children": [], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 11}}, {"id": 832, "type": "=", "text": "=", "parent": 828, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 13}}, {"id": 833, "type": "identifier", "text": "p", "parent": 828, "children": [], "start_point": {"row": 186, "column": 14}, "end_point": {"row": 186, "column": 15}}, {"id": 834, "type": "declaration", "text": "char *p_start;", "parent": 791, "children": [835, 836], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 18}}, {"id": 835, "type": "primitive_type", "text": "char", "parent": 834, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 8}}, {"id": 836, "type": "pointer_declarator", "text": "*p_start", "parent": 834, "children": [837, 838], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 17}}, {"id": 837, "type": "*", "text": "*", "parent": 836, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 838, "type": "identifier", "text": "p_start", "parent": 836, "children": [], "start_point": {"row": 187, "column": 10}, "end_point": {"row": 187, "column": 17}}, {"id": 839, "type": "for_statement", "text": "for (p = strstr(p, \"//\"); p && p<e; p = strstr(p+1, \"//\")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }", "parent": 791, "children": [840, 848, 855], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 217, "column": 5}}, {"id": 840, "type": "assignment_expression", "text": "p = strstr(p, \"//\")", "parent": 839, "children": [841, 842, 843], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 28}}, {"id": 841, "type": "identifier", "text": "p", "parent": 840, "children": [], "start_point": {"row": 189, "column": 9}, "end_point": {"row": 189, "column": 10}}, {"id": 842, "type": "=", "text": "=", "parent": 840, "children": [], "start_point": {"row": 189, "column": 11}, "end_point": {"row": 189, "column": 12}}, {"id": 843, "type": "call_expression", "text": "strstr(p, \"//\")", "parent": 840, "children": [844, 845], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 28}}, {"id": 844, "type": "identifier", "text": "strstr", "parent": 843, "children": [], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 19}}, {"id": 845, "type": "argument_list", "text": "(p, \"//\")", "parent": 843, "children": [846, 847], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 28}}, {"id": 846, "type": "identifier", "text": "p", "parent": 845, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 21}}, {"id": 847, "type": "string_literal", "text": "\"//\"", "parent": 845, "children": [], "start_point": {"row": 189, "column": 23}, "end_point": {"row": 189, "column": 27}}, {"id": 848, "type": "binary_expression", "text": "p && p<e", "parent": 839, "children": [849, 850, 851], "start_point": {"row": 189, "column": 30}, "end_point": {"row": 189, "column": 38}}, {"id": 849, "type": "identifier", "text": "p", "parent": 848, "children": [], "start_point": {"row": 189, "column": 30}, "end_point": {"row": 189, "column": 31}}, {"id": 850, "type": "&&", "text": "&&", "parent": 848, "children": [], "start_point": {"row": 189, "column": 32}, "end_point": {"row": 189, "column": 34}}, {"id": 851, "type": "binary_expression", "text": "p<e", "parent": 848, "children": [852, 853, 854], "start_point": {"row": 189, "column": 35}, "end_point": {"row": 189, "column": 38}}, {"id": 852, "type": "identifier", "text": "p", "parent": 851, "children": [], "start_point": {"row": 189, "column": 35}, "end_point": {"row": 189, "column": 36}}, {"id": 853, "type": "<", "text": "<", "parent": 851, "children": [], "start_point": {"row": 189, "column": 36}, "end_point": {"row": 189, "column": 37}}, {"id": 854, "type": "identifier", "text": "e", "parent": 851, "children": [], "start_point": {"row": 189, "column": 37}, "end_point": {"row": 189, "column": 38}}, {"id": 855, "type": "assignment_expression", "text": "p = strstr(p+1, \"//\")", "parent": 839, "children": [856, 857, 858], "start_point": {"row": 189, "column": 40}, "end_point": {"row": 189, "column": 61}}, {"id": 856, "type": "identifier", "text": "p", "parent": 855, "children": [], "start_point": {"row": 189, "column": 40}, "end_point": {"row": 189, "column": 41}}, {"id": 857, "type": "=", "text": "=", "parent": 855, "children": [], "start_point": {"row": 189, "column": 42}, "end_point": {"row": 189, "column": 43}}, {"id": 858, "type": "call_expression", "text": "strstr(p+1, \"//\")", "parent": 855, "children": [859, 860], "start_point": {"row": 189, "column": 44}, "end_point": {"row": 189, "column": 61}}, {"id": 859, "type": "identifier", "text": "strstr", "parent": 858, "children": [], "start_point": {"row": 189, "column": 44}, "end_point": {"row": 189, "column": 50}}, {"id": 860, "type": "argument_list", "text": "(p+1, \"//\")", "parent": 858, "children": [861, 865], "start_point": {"row": 189, "column": 50}, "end_point": {"row": 189, "column": 61}}, {"id": 861, "type": "binary_expression", "text": "p+1", "parent": 860, "children": [862, 863, 864], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 54}}, {"id": 862, "type": "identifier", "text": "p", "parent": 861, "children": [], "start_point": {"row": 189, "column": 51}, "end_point": {"row": 189, "column": 52}}, {"id": 863, "type": "+", "text": "+", "parent": 861, "children": [], "start_point": {"row": 189, "column": 52}, "end_point": {"row": 189, "column": 53}}, {"id": 864, "type": "number_literal", "text": "1", "parent": 861, "children": [], "start_point": {"row": 189, "column": 53}, "end_point": {"row": 189, "column": 54}}, {"id": 865, "type": "string_literal", "text": "\"//\"", "parent": 860, "children": [], "start_point": {"row": 189, "column": 56}, "end_point": {"row": 189, "column": 60}}, {"id": 866, "type": "assignment_expression", "text": "p_start = 0", "parent": 839, "children": [867, 868, 869], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 19}}, {"id": 867, "type": "identifier", "text": "p_start", "parent": 866, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 15}}, {"id": 868, "type": "=", "text": "=", "parent": 866, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 17}}, {"id": 869, "type": "number_literal", "text": "0", "parent": 866, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 19}}, {"id": 870, "type": "if_statement", "text": "if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }", "parent": 839, "children": [871, 950], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 203, "column": 9}}, {"id": 871, "type": "parenthesized_expression", "text": "(p-1 > m && *(p-1) == ':')", "parent": 870, "children": [872], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 37}}, {"id": 872, "type": "binary_expression", "text": "p-1 > m && *(p-1) == ':'", "parent": 871, "children": [873, 880, 881], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 36}}, {"id": 873, "type": "binary_expression", "text": "p-1 > m", "parent": 872, "children": [874, 878, 879], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 19}}, {"id": 874, "type": "binary_expression", "text": "p-1", "parent": 873, "children": [875, 876, 877], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 15}}, {"id": 875, "type": "identifier", "text": "p", "parent": 874, "children": [], "start_point": {"row": 192, "column": 12}, "end_point": {"row": 192, "column": 13}}, {"id": 876, "type": "-", "text": "-", "parent": 874, "children": [], "start_point": {"row": 192, "column": 13}, "end_point": {"row": 192, "column": 14}}, {"id": 877, "type": "number_literal", "text": "1", "parent": 874, "children": [], "start_point": {"row": 192, "column": 14}, "end_point": {"row": 192, "column": 15}}, {"id": 878, "type": ">", "text": ">", "parent": 873, "children": [], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 17}}, {"id": 879, "type": "identifier", "text": "m", "parent": 873, "children": [], "start_point": {"row": 192, "column": 18}, "end_point": {"row": 192, "column": 19}}, {"id": 880, "type": "&&", "text": "&&", "parent": 872, "children": [], "start_point": {"row": 192, "column": 20}, "end_point": {"row": 192, "column": 22}}, {"id": 881, "type": "binary_expression", "text": "*(p-1) == ':'", "parent": 872, "children": [882, 889, 890], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 36}}, {"id": 882, "type": "pointer_expression", "text": "*(p-1)", "parent": 881, "children": [883, 884], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 29}}, {"id": 883, "type": "*", "text": "*", "parent": 882, "children": [], "start_point": {"row": 192, "column": 23}, "end_point": {"row": 192, "column": 24}}, {"id": 884, "type": "parenthesized_expression", "text": "(p-1)", "parent": 882, "children": [885], "start_point": {"row": 192, "column": 24}, "end_point": {"row": 192, "column": 29}}, {"id": 885, "type": "binary_expression", "text": "p-1", "parent": 884, "children": [886, 887, 888], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 28}}, {"id": 886, "type": "identifier", "text": "p", "parent": 885, "children": [], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 26}}, {"id": 887, "type": "-", "text": "-", "parent": 885, "children": [], "start_point": {"row": 192, "column": 26}, "end_point": {"row": 192, "column": 27}}, {"id": 888, "type": "number_literal", "text": "1", "parent": 885, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 28}}, {"id": 889, "type": "==", "text": "==", "parent": 881, "children": [], "start_point": {"row": 192, "column": 30}, "end_point": {"row": 192, "column": 32}}, {"id": 890, "type": "char_literal", "text": "':'", "parent": 881, "children": [891, 892], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 36}}, {"id": 891, "type": "'", "text": "'", "parent": 890, "children": [], "start_point": {"row": 192, "column": 33}, "end_point": {"row": 192, "column": 34}}, {"id": 892, "type": "'", "text": "'", "parent": 890, "children": [], "start_point": {"row": 192, "column": 35}, "end_point": {"row": 192, "column": 36}}, {"id": 893, "type": "for_statement", "text": "for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }", "parent": 870, "children": [894, 898, 902], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 200, "column": 13}}, {"id": 894, "type": "assignment_expression", "text": "x=0", "parent": 893, "children": [895, 896, 897], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 20}}, {"id": 895, "type": "identifier", "text": "x", "parent": 894, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 18}}, {"id": 896, "type": "=", "text": "=", "parent": 894, "children": [], "start_point": {"row": 193, "column": 18}, "end_point": {"row": 193, "column": 19}}, {"id": 897, "type": "number_literal", "text": "0", "parent": 894, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 20}}, {"id": 898, "type": "binary_expression", "text": "x<3", "parent": 893, "children": [899, 900, 901], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 24}}, {"id": 899, "type": "identifier", "text": "x", "parent": 898, "children": [], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 22}}, {"id": 900, "type": "<", "text": "<", "parent": 898, "children": [], "start_point": {"row": 193, "column": 22}, "end_point": {"row": 193, "column": 23}}, {"id": 901, "type": "number_literal", "text": "3", "parent": 898, "children": [], "start_point": {"row": 193, "column": 23}, "end_point": {"row": 193, "column": 24}}, {"id": 902, "type": "update_expression", "text": "x++", "parent": 893, "children": [903, 904], "start_point": {"row": 193, "column": 25}, "end_point": {"row": 193, "column": 28}}, {"id": 903, "type": "identifier", "text": "x", "parent": 902, "children": [], "start_point": {"row": 193, "column": 25}, "end_point": {"row": 193, "column": 26}}, {"id": 904, "type": "++", "text": "++", "parent": 902, "children": [], "start_point": {"row": 193, "column": 26}, "end_point": {"row": 193, "column": 28}}, {"id": 905, "type": "assignment_expression", "text": "p_start = p-1-protocols[x].len", "parent": 893, "children": [906, 907, 908], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 46}}, {"id": 906, "type": "identifier", "text": "p_start", "parent": 905, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 23}}, {"id": 907, "type": "=", "text": "=", "parent": 905, "children": [], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 25}}, {"id": 908, "type": "binary_expression", "text": "p-1-protocols[x].len", "parent": 905, "children": [909, 913, 914], "start_point": {"row": 194, "column": 26}, "end_point": {"row": 194, "column": 46}}, {"id": 909, "type": "binary_expression", "text": "p-1", "parent": 908, "children": [910, 911, 912], "start_point": {"row": 194, "column": 26}, "end_point": {"row": 194, "column": 29}}, {"id": 910, "type": "identifier", "text": "p", "parent": 909, "children": [], "start_point": {"row": 194, "column": 26}, "end_point": {"row": 194, "column": 27}}, {"id": 911, "type": "-", "text": "-", "parent": 909, "children": [], "start_point": {"row": 194, "column": 27}, "end_point": {"row": 194, "column": 28}}, {"id": 912, "type": "number_literal", "text": "1", "parent": 909, "children": [], "start_point": {"row": 194, "column": 28}, "end_point": {"row": 194, "column": 29}}, {"id": 913, "type": "-", "text": "-", "parent": 908, "children": [], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 30}}, {"id": 914, "type": "field_expression", "text": "protocols[x].len", "parent": 908, "children": [915, 918], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 46}}, {"id": 915, "type": "subscript_expression", "text": "protocols[x]", "parent": 914, "children": [916, 917], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 42}}, {"id": 916, "type": "identifier", "text": "protocols", "parent": 915, "children": [], "start_point": {"row": 194, "column": 30}, "end_point": {"row": 194, "column": 39}}, {"id": 917, "type": "identifier", "text": "x", "parent": 915, "children": [], "start_point": {"row": 194, "column": 40}, "end_point": {"row": 194, "column": 41}}, {"id": 918, "type": "field_identifier", "text": "len", "parent": 914, "children": [], "start_point": {"row": 194, "column": 43}, "end_point": {"row": 194, "column": 46}}, {"id": 919, "type": "if_statement", "text": "if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }", "parent": 893, "children": [920], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 198, "column": 17}}, {"id": 920, "type": "parenthesized_expression", "text": "(p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0)", "parent": 919, "children": [921], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 196, "column": 82}}, {"id": 921, "type": "binary_expression", "text": "p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0", "parent": 920, "children": [922, 926, 927], "start_point": {"row": 195, "column": 20}, "end_point": {"row": 196, "column": 81}}, {"id": 922, "type": "binary_expression", "text": "p_start >= m", "parent": 921, "children": [923, 924, 925], "start_point": {"row": 195, "column": 20}, "end_point": {"row": 195, "column": 32}}, {"id": 923, "type": "identifier", "text": "p_start", "parent": 922, "children": [], "start_point": {"row": 195, "column": 20}, "end_point": {"row": 195, "column": 27}}, {"id": 924, "type": ">=", "text": ">=", "parent": 922, "children": [], "start_point": {"row": 195, "column": 28}, "end_point": {"row": 195, "column": 30}}, {"id": 925, "type": "identifier", "text": "m", "parent": 922, "children": [], "start_point": {"row": 195, "column": 31}, "end_point": {"row": 195, "column": 32}}, {"id": 926, "type": "&&", "text": "&&", "parent": 921, "children": [], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 22}}, {"id": 927, "type": "binary_expression", "text": "strncmp(p_start, protocols[x].name, protocols[x].len) == 0", "parent": 921, "children": [928, 942, 943], "start_point": {"row": 196, "column": 23}, "end_point": {"row": 196, "column": 81}}, {"id": 928, "type": "call_expression", "text": "strncmp(p_start, protocols[x].name, protocols[x].len)", "parent": 927, "children": [929, 930], "start_point": {"row": 196, "column": 23}, "end_point": {"row": 196, "column": 76}}, {"id": 929, "type": "identifier", "text": "strncmp", "parent": 928, "children": [], "start_point": {"row": 196, "column": 23}, "end_point": {"row": 196, "column": 30}}, {"id": 930, "type": "argument_list", "text": "(p_start, protocols[x].name, protocols[x].len)", "parent": 928, "children": [931, 932, 937], "start_point": {"row": 196, "column": 30}, "end_point": {"row": 196, "column": 76}}, {"id": 931, "type": "identifier", "text": "p_start", "parent": 930, "children": [], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 38}}, {"id": 932, "type": "field_expression", "text": "protocols[x].name", "parent": 930, "children": [933, 936], "start_point": {"row": 196, "column": 40}, "end_point": {"row": 196, "column": 57}}, {"id": 933, "type": "subscript_expression", "text": "protocols[x]", "parent": 932, "children": [934, 935], "start_point": {"row": 196, "column": 40}, "end_point": {"row": 196, "column": 52}}, {"id": 934, "type": "identifier", "text": "protocols", "parent": 933, "children": [], "start_point": {"row": 196, "column": 40}, "end_point": {"row": 196, "column": 49}}, {"id": 935, "type": "identifier", "text": "x", "parent": 933, "children": [], "start_point": {"row": 196, "column": 50}, "end_point": {"row": 196, "column": 51}}, {"id": 936, "type": "field_identifier", "text": "name", "parent": 932, "children": [], "start_point": {"row": 196, "column": 53}, "end_point": {"row": 196, "column": 57}}, {"id": 937, "type": "field_expression", "text": "protocols[x].len", "parent": 930, "children": [938, 941], "start_point": {"row": 196, "column": 59}, "end_point": {"row": 196, "column": 75}}, {"id": 938, "type": "subscript_expression", "text": "protocols[x]", "parent": 937, "children": [939, 940], "start_point": {"row": 196, "column": 59}, "end_point": {"row": 196, "column": 71}}, {"id": 939, "type": "identifier", "text": "protocols", "parent": 938, "children": [], "start_point": {"row": 196, "column": 59}, "end_point": {"row": 196, "column": 68}}, {"id": 940, "type": "identifier", "text": "x", "parent": 938, "children": [], "start_point": {"row": 196, "column": 69}, "end_point": {"row": 196, "column": 70}}, {"id": 941, "type": "field_identifier", "text": "len", "parent": 937, "children": [], "start_point": {"row": 196, "column": 72}, "end_point": {"row": 196, "column": 75}}, {"id": 942, "type": "==", "text": "==", "parent": 927, "children": [], "start_point": {"row": 196, "column": 77}, "end_point": {"row": 196, "column": 79}}, {"id": 943, "type": "number_literal", "text": "0", "parent": 927, "children": [], "start_point": {"row": 196, "column": 80}, "end_point": {"row": 196, "column": 81}}, {"id": 944, "type": "break_statement", "text": "break;", "parent": 919, "children": [945], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 26}}, {"id": 945, "type": "break", "text": "break", "parent": 944, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 25}}, {"id": 946, "type": "assignment_expression", "text": "p_start = 0", "parent": 893, "children": [947, 948, 949], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 27}}, {"id": 947, "type": "identifier", "text": "p_start", "parent": 946, "children": [], "start_point": {"row": 199, "column": 16}, "end_point": {"row": 199, "column": 23}}, {"id": 948, "type": "=", "text": "=", "parent": 946, "children": [], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 25}}, {"id": 949, "type": "number_literal", "text": "0", "parent": 946, "children": [], "start_point": {"row": 199, "column": 26}, "end_point": {"row": 199, "column": 27}}, {"id": 950, "type": "else_clause", "text": "else {\n p_start = p;\n }", "parent": 870, "children": [], "start_point": {"row": 201, "column": 10}, "end_point": {"row": 203, "column": 9}}, {"id": 951, "type": "assignment_expression", "text": "p_start = p", "parent": 950, "children": [952, 953, 954], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 23}}, {"id": 952, "type": "identifier", "text": "p_start", "parent": 951, "children": [], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 19}}, {"id": 953, "type": "=", "text": "=", "parent": 951, "children": [], "start_point": {"row": 202, "column": 20}, "end_point": {"row": 202, "column": 21}}, {"id": 954, "type": "identifier", "text": "p", "parent": 951, "children": [], "start_point": {"row": 202, "column": 22}, "end_point": {"row": 202, "column": 23}}, {"id": 955, "type": "if_statement", "text": "if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }", "parent": 839, "children": [956], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 216, "column": 9}}, {"id": 956, "type": "parenthesized_expression", "text": "(p_start)", "parent": 955, "children": [957], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 20}}, {"id": 957, "type": "identifier", "text": "p_start", "parent": 956, "children": [], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 19}}, {"id": 958, "type": "for_statement", "text": "for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }", "parent": 955, "children": [959, 966, 970], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 214, "column": 13}}, {"id": 959, "type": "assignment_expression", "text": "s=p+2", "parent": 958, "children": [960, 961, 962], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 22}}, {"id": 960, "type": "identifier", "text": "s", "parent": 959, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 18}}, {"id": 961, "type": "=", "text": "=", "parent": 959, "children": [], "start_point": {"row": 206, "column": 18}, "end_point": {"row": 206, "column": 19}}, {"id": 962, "type": "binary_expression", "text": "p+2", "parent": 959, "children": [963, 964, 965], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 22}}, {"id": 963, "type": "identifier", "text": "p", "parent": 962, "children": [], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 20}}, {"id": 964, "type": "+", "text": "+", "parent": 962, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 21}}, {"id": 965, "type": "number_literal", "text": "2", "parent": 962, "children": [], "start_point": {"row": 206, "column": 21}, "end_point": {"row": 206, "column": 22}}, {"id": 966, "type": "binary_expression", "text": "s < e", "parent": 958, "children": [967, 968, 969], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 29}}, {"id": 967, "type": "identifier", "text": "s", "parent": 966, "children": [], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 25}}, {"id": 968, "type": "<", "text": "<", "parent": 966, "children": [], "start_point": {"row": 206, "column": 26}, "end_point": {"row": 206, "column": 27}}, {"id": 969, "type": "identifier", "text": "e", "parent": 966, "children": [], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 29}}, {"id": 970, "type": "update_expression", "text": "s++", "parent": 958, "children": [971, 972], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 34}}, {"id": 971, "type": "identifier", "text": "s", "parent": 970, "children": [], "start_point": {"row": 206, "column": 31}, "end_point": {"row": 206, "column": 32}}, {"id": 972, "type": "++", "text": "++", "parent": 970, "children": [], "start_point": {"row": 206, "column": 32}, "end_point": {"row": 206, "column": 34}}, {"id": 973, "type": "if_statement", "text": "if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }", "parent": 958, "children": [974], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 213, "column": 17}}, {"id": 974, "type": "parenthesized_expression", "text": "(!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-')", "parent": 973, "children": [975], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 210, "column": 33}}, {"id": 975, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-'", "parent": 974, "children": [976, 1069, 1070], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 210, "column": 32}}, {"id": 976, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'", "parent": 975, "children": [977, 1059, 1060], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 209, "column": 58}}, {"id": 977, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':'", "parent": 976, "children": [978, 1050, 1051], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 209, "column": 45}}, {"id": 978, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.'", "parent": 977, "children": [979, 1041, 1042], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 209, "column": 32}}, {"id": 979, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'", "parent": 978, "children": [980, 1031, 1032], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 208, "column": 58}}, {"id": 980, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&'", "parent": 979, "children": [981, 1022, 1023], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 208, "column": 45}}, {"id": 981, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '='", "parent": 980, "children": [982, 1012, 1013], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 208, "column": 32}}, {"id": 982, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%' && *s != '?'", "parent": 981, "children": [983, 1002, 1003], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 58}}, {"id": 983, "type": "binary_expression", "text": "!isalnum(*s) && *s != '%'", "parent": 982, "children": [984, 992, 993], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 45}}, {"id": 984, "type": "unary_expression", "text": "!isalnum(*s)", "parent": 983, "children": [985, 986], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 32}}, {"id": 985, "type": "!", "text": "!", "parent": 984, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 21}}, {"id": 986, "type": "call_expression", "text": "isalnum(*s)", "parent": 984, "children": [987, 988], "start_point": {"row": 207, "column": 21}, "end_point": {"row": 207, "column": 32}}, {"id": 987, "type": "identifier", "text": "isalnum", "parent": 986, "children": [], "start_point": {"row": 207, "column": 21}, "end_point": {"row": 207, "column": 28}}, {"id": 988, "type": "argument_list", "text": "(*s)", "parent": 986, "children": [989], "start_point": {"row": 207, "column": 28}, "end_point": {"row": 207, "column": 32}}, {"id": 989, "type": "pointer_expression", "text": "*s", "parent": 988, "children": [990, 991], "start_point": {"row": 207, "column": 29}, "end_point": {"row": 207, "column": 31}}, {"id": 990, "type": "*", "text": "*", "parent": 989, "children": [], "start_point": {"row": 207, "column": 29}, "end_point": {"row": 207, "column": 30}}, {"id": 991, "type": "identifier", "text": "s", "parent": 989, "children": [], "start_point": {"row": 207, "column": 30}, "end_point": {"row": 207, "column": 31}}, {"id": 992, "type": "&&", "text": "&&", "parent": 983, "children": [], "start_point": {"row": 207, "column": 33}, "end_point": {"row": 207, "column": 35}}, {"id": 993, "type": "binary_expression", "text": "*s != '%'", "parent": 983, "children": [994, 997, 998], "start_point": {"row": 207, "column": 36}, "end_point": {"row": 207, "column": 45}}, {"id": 994, "type": "pointer_expression", "text": "*s", "parent": 993, "children": [995, 996], "start_point": {"row": 207, "column": 36}, "end_point": {"row": 207, "column": 38}}, {"id": 995, "type": "*", "text": "*", "parent": 994, "children": [], "start_point": {"row": 207, "column": 36}, "end_point": {"row": 207, "column": 37}}, {"id": 996, "type": "identifier", "text": "s", "parent": 994, "children": [], "start_point": {"row": 207, "column": 37}, "end_point": {"row": 207, "column": 38}}, {"id": 997, "type": "!=", "text": "!=", "parent": 993, "children": [], "start_point": {"row": 207, "column": 39}, "end_point": {"row": 207, "column": 41}}, {"id": 998, "type": "char_literal", "text": "'%'", "parent": 993, "children": [999, 1000, 1001], "start_point": {"row": 207, "column": 42}, "end_point": {"row": 207, "column": 45}}, {"id": 999, "type": "'", "text": "'", "parent": 998, "children": [], "start_point": {"row": 207, "column": 42}, "end_point": {"row": 207, "column": 43}}, {"id": 1000, "type": "character", "text": "%", "parent": 998, "children": [], "start_point": {"row": 207, "column": 43}, "end_point": {"row": 207, "column": 44}}, {"id": 1001, "type": "'", "text": "'", "parent": 998, "children": [], "start_point": {"row": 207, "column": 44}, "end_point": {"row": 207, "column": 45}}, {"id": 1002, "type": "&&", "text": "&&", "parent": 982, "children": [], "start_point": {"row": 207, "column": 46}, "end_point": {"row": 207, "column": 48}}, {"id": 1003, "type": "binary_expression", "text": "*s != '?'", "parent": 982, "children": [1004, 1007, 1008], "start_point": {"row": 207, "column": 49}, "end_point": {"row": 207, "column": 58}}, {"id": 1004, "type": "pointer_expression", "text": "*s", "parent": 1003, "children": [1005, 1006], "start_point": {"row": 207, "column": 49}, "end_point": {"row": 207, "column": 51}}, {"id": 1005, "type": "*", "text": "*", "parent": 1004, "children": [], "start_point": {"row": 207, "column": 49}, "end_point": {"row": 207, "column": 50}}, {"id": 1006, "type": "identifier", "text": "s", "parent": 1004, "children": [], "start_point": {"row": 207, "column": 50}, "end_point": {"row": 207, "column": 51}}, {"id": 1007, "type": "!=", "text": "!=", "parent": 1003, "children": [], "start_point": {"row": 207, "column": 52}, "end_point": {"row": 207, "column": 54}}, {"id": 1008, "type": "char_literal", "text": "'?'", "parent": 1003, "children": [1009, 1010, 1011], "start_point": {"row": 207, "column": 55}, "end_point": {"row": 207, "column": 58}}, {"id": 1009, "type": "'", "text": "'", "parent": 1008, "children": [], "start_point": {"row": 207, "column": 55}, "end_point": {"row": 207, "column": 56}}, {"id": 1010, "type": "character", "text": "?", "parent": 1008, "children": [], "start_point": {"row": 207, "column": 56}, "end_point": {"row": 207, "column": 57}}, {"id": 1011, "type": "'", "text": "'", "parent": 1008, "children": [], "start_point": {"row": 207, "column": 57}, "end_point": {"row": 207, "column": 58}}, {"id": 1012, "type": "&&", "text": "&&", "parent": 981, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 22}}, {"id": 1013, "type": "binary_expression", "text": "*s != '='", "parent": 981, "children": [1014, 1017, 1018], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 32}}, {"id": 1014, "type": "pointer_expression", "text": "*s", "parent": 1013, "children": [1015, 1016], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 25}}, {"id": 1015, "type": "*", "text": "*", "parent": 1014, "children": [], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 24}}, {"id": 1016, "type": "identifier", "text": "s", "parent": 1014, "children": [], "start_point": {"row": 208, "column": 24}, "end_point": {"row": 208, "column": 25}}, {"id": 1017, "type": "!=", "text": "!=", "parent": 1013, "children": [], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 208, "column": 28}}, {"id": 1018, "type": "char_literal", "text": "'='", "parent": 1013, "children": [1019, 1020, 1021], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 32}}, {"id": 1019, "type": "'", "text": "'", "parent": 1018, "children": [], "start_point": {"row": 208, "column": 29}, "end_point": {"row": 208, "column": 30}}, {"id": 1020, "type": "character", "text": "=", "parent": 1018, "children": [], "start_point": {"row": 208, "column": 30}, "end_point": {"row": 208, "column": 31}}, {"id": 1021, "type": "'", "text": "'", "parent": 1018, "children": [], "start_point": {"row": 208, "column": 31}, "end_point": {"row": 208, "column": 32}}, {"id": 1022, "type": "&&", "text": "&&", "parent": 980, "children": [], "start_point": {"row": 208, "column": 33}, "end_point": {"row": 208, "column": 35}}, {"id": 1023, "type": "binary_expression", "text": "*s != '&'", "parent": 980, "children": [1024, 1027, 1028], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 45}}, {"id": 1024, "type": "pointer_expression", "text": "*s", "parent": 1023, "children": [1025, 1026], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 38}}, {"id": 1025, "type": "*", "text": "*", "parent": 1024, "children": [], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 37}}, {"id": 1026, "type": "identifier", "text": "s", "parent": 1024, "children": [], "start_point": {"row": 208, "column": 37}, "end_point": {"row": 208, "column": 38}}, {"id": 1027, "type": "!=", "text": "!=", "parent": 1023, "children": [], "start_point": {"row": 208, "column": 39}, "end_point": {"row": 208, "column": 41}}, {"id": 1028, "type": "char_literal", "text": "'&'", "parent": 1023, "children": [1029, 1030], "start_point": {"row": 208, "column": 42}, "end_point": {"row": 208, "column": 45}}, {"id": 1029, "type": "'", "text": "'", "parent": 1028, "children": [], "start_point": {"row": 208, "column": 42}, "end_point": {"row": 208, "column": 43}}, {"id": 1030, "type": "'", "text": "'", "parent": 1028, "children": [], "start_point": {"row": 208, "column": 44}, "end_point": {"row": 208, "column": 45}}, {"id": 1031, "type": "&&", "text": "&&", "parent": 979, "children": [], "start_point": {"row": 208, "column": 46}, "end_point": {"row": 208, "column": 48}}, {"id": 1032, "type": "binary_expression", "text": "*s != '/'", "parent": 979, "children": [1033, 1036, 1037], "start_point": {"row": 208, "column": 49}, "end_point": {"row": 208, "column": 58}}, {"id": 1033, "type": "pointer_expression", "text": "*s", "parent": 1032, "children": [1034, 1035], "start_point": {"row": 208, "column": 49}, "end_point": {"row": 208, "column": 51}}, {"id": 1034, "type": "*", "text": "*", "parent": 1033, "children": [], "start_point": {"row": 208, "column": 49}, "end_point": {"row": 208, "column": 50}}, {"id": 1035, "type": "identifier", "text": "s", "parent": 1033, "children": [], "start_point": {"row": 208, "column": 50}, "end_point": {"row": 208, "column": 51}}, {"id": 1036, "type": "!=", "text": "!=", "parent": 1032, "children": [], "start_point": {"row": 208, "column": 52}, "end_point": {"row": 208, "column": 54}}, {"id": 1037, "type": "char_literal", "text": "'/'", "parent": 1032, "children": [1038, 1039, 1040], "start_point": {"row": 208, "column": 55}, "end_point": {"row": 208, "column": 58}}, {"id": 1038, "type": "'", "text": "'", "parent": 1037, "children": [], "start_point": {"row": 208, "column": 55}, "end_point": {"row": 208, "column": 56}}, {"id": 1039, "type": "character", "text": "/", "parent": 1037, "children": [], "start_point": {"row": 208, "column": 56}, "end_point": {"row": 208, "column": 57}}, {"id": 1040, "type": "'", "text": "'", "parent": 1037, "children": [], "start_point": {"row": 208, "column": 57}, "end_point": {"row": 208, "column": 58}}, {"id": 1041, "type": "&&", "text": "&&", "parent": 978, "children": [], "start_point": {"row": 209, "column": 20}, "end_point": {"row": 209, "column": 22}}, {"id": 1042, "type": "binary_expression", "text": "*s != '.'", "parent": 978, "children": [1043, 1046, 1047], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 32}}, {"id": 1043, "type": "pointer_expression", "text": "*s", "parent": 1042, "children": [1044, 1045], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 25}}, {"id": 1044, "type": "*", "text": "*", "parent": 1043, "children": [], "start_point": {"row": 209, "column": 23}, "end_point": {"row": 209, "column": 24}}, {"id": 1045, "type": "identifier", "text": "s", "parent": 1043, "children": [], "start_point": {"row": 209, "column": 24}, "end_point": {"row": 209, "column": 25}}, {"id": 1046, "type": "!=", "text": "!=", "parent": 1042, "children": [], "start_point": {"row": 209, "column": 26}, "end_point": {"row": 209, "column": 28}}, {"id": 1047, "type": "char_literal", "text": "'.'", "parent": 1042, "children": [1048, 1049], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 32}}, {"id": 1048, "type": "'", "text": "'", "parent": 1047, "children": [], "start_point": {"row": 209, "column": 29}, "end_point": {"row": 209, "column": 30}}, {"id": 1049, "type": "'", "text": "'", "parent": 1047, "children": [], "start_point": {"row": 209, "column": 31}, "end_point": {"row": 209, "column": 32}}, {"id": 1050, "type": "&&", "text": "&&", "parent": 977, "children": [], "start_point": {"row": 209, "column": 33}, "end_point": {"row": 209, "column": 35}}, {"id": 1051, "type": "binary_expression", "text": "*s != ':'", "parent": 977, "children": [1052, 1055, 1056], "start_point": {"row": 209, "column": 36}, "end_point": {"row": 209, "column": 45}}, {"id": 1052, "type": "pointer_expression", "text": "*s", "parent": 1051, "children": [1053, 1054], "start_point": {"row": 209, "column": 36}, "end_point": {"row": 209, "column": 38}}, {"id": 1053, "type": "*", "text": "*", "parent": 1052, "children": [], "start_point": {"row": 209, "column": 36}, "end_point": {"row": 209, "column": 37}}, {"id": 1054, "type": "identifier", "text": "s", "parent": 1052, "children": [], "start_point": {"row": 209, "column": 37}, "end_point": {"row": 209, "column": 38}}, {"id": 1055, "type": "!=", "text": "!=", "parent": 1051, "children": [], "start_point": {"row": 209, "column": 39}, "end_point": {"row": 209, "column": 41}}, {"id": 1056, "type": "char_literal", "text": "':'", "parent": 1051, "children": [1057, 1058], "start_point": {"row": 209, "column": 42}, "end_point": {"row": 209, "column": 45}}, {"id": 1057, "type": "'", "text": "'", "parent": 1056, "children": [], "start_point": {"row": 209, "column": 42}, "end_point": {"row": 209, "column": 43}}, {"id": 1058, "type": "'", "text": "'", "parent": 1056, "children": [], "start_point": {"row": 209, "column": 44}, "end_point": {"row": 209, "column": 45}}, {"id": 1059, "type": "&&", "text": "&&", "parent": 976, "children": [], "start_point": {"row": 209, "column": 46}, "end_point": {"row": 209, "column": 48}}, {"id": 1060, "type": "binary_expression", "text": "*s != '_'", "parent": 976, "children": [1061, 1064, 1065], "start_point": {"row": 209, "column": 49}, "end_point": {"row": 209, "column": 58}}, {"id": 1061, "type": "pointer_expression", "text": "*s", "parent": 1060, "children": [1062, 1063], "start_point": {"row": 209, "column": 49}, "end_point": {"row": 209, "column": 51}}, {"id": 1062, "type": "*", "text": "*", "parent": 1061, "children": [], "start_point": {"row": 209, "column": 49}, "end_point": {"row": 209, "column": 50}}, {"id": 1063, "type": "identifier", "text": "s", "parent": 1061, "children": [], "start_point": {"row": 209, "column": 50}, "end_point": {"row": 209, "column": 51}}, {"id": 1064, "type": "!=", "text": "!=", "parent": 1060, "children": [], "start_point": {"row": 209, "column": 52}, "end_point": {"row": 209, "column": 54}}, {"id": 1065, "type": "char_literal", "text": "'_'", "parent": 1060, "children": [1066, 1067, 1068], "start_point": {"row": 209, "column": 55}, "end_point": {"row": 209, "column": 58}}, {"id": 1066, "type": "'", "text": "'", "parent": 1065, "children": [], "start_point": {"row": 209, "column": 55}, "end_point": {"row": 209, "column": 56}}, {"id": 1067, "type": "character", "text": "_", "parent": 1065, "children": [], "start_point": {"row": 209, "column": 56}, "end_point": {"row": 209, "column": 57}}, {"id": 1068, "type": "'", "text": "'", "parent": 1065, "children": [], "start_point": {"row": 209, "column": 57}, "end_point": {"row": 209, "column": 58}}, {"id": 1069, "type": "&&", "text": "&&", "parent": 975, "children": [], "start_point": {"row": 210, "column": 20}, "end_point": {"row": 210, "column": 22}}, {"id": 1070, "type": "binary_expression", "text": "*s != '-'", "parent": 975, "children": [1071, 1074, 1075], "start_point": {"row": 210, "column": 23}, "end_point": {"row": 210, "column": 32}}, {"id": 1071, "type": "pointer_expression", "text": "*s", "parent": 1070, "children": [1072, 1073], "start_point": {"row": 210, "column": 23}, "end_point": {"row": 210, "column": 25}}, {"id": 1072, "type": "*", "text": "*", "parent": 1071, "children": [], "start_point": {"row": 210, "column": 23}, "end_point": {"row": 210, "column": 24}}, {"id": 1073, "type": "identifier", "text": "s", "parent": 1071, "children": [], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 25}}, {"id": 1074, "type": "!=", "text": "!=", "parent": 1070, "children": [], "start_point": {"row": 210, "column": 26}, "end_point": {"row": 210, "column": 28}}, {"id": 1075, "type": "char_literal", "text": "'-'", "parent": 1070, "children": [1076, 1077, 1078], "start_point": {"row": 210, "column": 29}, "end_point": {"row": 210, "column": 32}}, {"id": 1076, "type": "'", "text": "'", "parent": 1075, "children": [], "start_point": {"row": 210, "column": 29}, "end_point": {"row": 210, "column": 30}}, {"id": 1077, "type": "character", "text": "-", "parent": 1075, "children": [], "start_point": {"row": 210, "column": 30}, "end_point": {"row": 210, "column": 31}}, {"id": 1078, "type": "'", "text": "'", "parent": 1075, "children": [], "start_point": {"row": 210, "column": 31}, "end_point": {"row": 210, "column": 32}}, {"id": 1079, "type": "call_expression", "text": "ue_add(ue_h, p_start, (s-p_start))", "parent": 973, "children": [1080, 1081], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 54}}, {"id": 1080, "type": "identifier", "text": "ue_add", "parent": 1079, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 26}}, {"id": 1081, "type": "argument_list", "text": "(ue_h, p_start, (s-p_start))", "parent": 1079, "children": [1082, 1083, 1084], "start_point": {"row": 211, "column": 26}, "end_point": {"row": 211, "column": 54}}, {"id": 1082, "type": "identifier", "text": "ue_h", "parent": 1081, "children": [], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 31}}, {"id": 1083, "type": "identifier", "text": "p_start", "parent": 1081, "children": [], "start_point": {"row": 211, "column": 33}, "end_point": {"row": 211, "column": 40}}, {"id": 1084, "type": "parenthesized_expression", "text": "(s-p_start)", "parent": 1081, "children": [1085], "start_point": {"row": 211, "column": 42}, "end_point": {"row": 211, "column": 53}}, {"id": 1085, "type": "binary_expression", "text": "s-p_start", "parent": 1084, "children": [1086, 1087, 1088], "start_point": {"row": 211, "column": 43}, "end_point": {"row": 211, "column": 52}}, {"id": 1086, "type": "identifier", "text": "s", "parent": 1085, "children": [], "start_point": {"row": 211, "column": 43}, "end_point": {"row": 211, "column": 44}}, {"id": 1087, "type": "-", "text": "-", "parent": 1085, "children": [], "start_point": {"row": 211, "column": 44}, "end_point": {"row": 211, "column": 45}}, {"id": 1088, "type": "identifier", "text": "p_start", "parent": 1085, "children": [], "start_point": {"row": 211, "column": 45}, "end_point": {"row": 211, "column": 52}}, {"id": 1089, "type": "break_statement", "text": "break;", "parent": 973, "children": [1090], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 26}}, {"id": 1090, "type": "break", "text": "break", "parent": 1089, "children": [], "start_point": {"row": 212, "column": 20}, "end_point": {"row": 212, "column": 25}}, {"id": 1091, "type": "assignment_expression", "text": "p = s", "parent": 955, "children": [1092, 1093, 1094], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 17}}, {"id": 1092, "type": "identifier", "text": "p", "parent": 1091, "children": [], "start_point": {"row": 215, "column": 12}, "end_point": {"row": 215, "column": 13}}, {"id": 1093, "type": "=", "text": "=", "parent": 1091, "children": [], "start_point": {"row": 215, "column": 14}, "end_point": {"row": 215, "column": 15}}, {"id": 1094, "type": "identifier", "text": "s", "parent": 1091, "children": [], "start_point": {"row": 215, "column": 16}, "end_point": {"row": 215, "column": 17}}, {"id": 1095, "type": "return_statement", "text": "return M_OK;", "parent": 791, "children": [1096], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 16}}, {"id": 1096, "type": "identifier", "text": "M_OK", "parent": 1095, "children": [], "start_point": {"row": 219, "column": 11}, "end_point": {"row": 219, "column": 15}}, {"id": 1097, "type": "function_definition", "text": "M_CODE\nlm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n char *p, *prev;\n struct ftpparse info;\n char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */\n int len;\n\n for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }\n\n return M_OK;\n}", "parent": null, "children": [1098, 1099], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 263, "column": 1}}, {"id": 1098, "type": "type_identifier", "text": "M_CODE", "parent": 1097, "children": [], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 6}}, {"id": 1099, "type": "function_declarator", "text": "lm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)", "parent": 1097, "children": [1100, 1101], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 229, "column": 30}}, {"id": 1100, "type": "identifier", "text": "lm_parser_ftp", "parent": 1099, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 13}}, {"id": 1101, "type": "parameter_list", "text": "(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)", "parent": 1099, "children": [1102, 1107, 1112, 1117, 1122, 1127], "start_point": {"row": 227, "column": 13}, "end_point": {"row": 229, "column": 30}}, {"id": 1102, "type": "parameter_declaration", "text": "metha_t *m", "parent": 1101, "children": [1103, 1104], "start_point": {"row": 227, "column": 14}, "end_point": {"row": 227, "column": 24}}, {"id": 1103, "type": "type_identifier", "text": "metha_t", "parent": 1102, "children": [], "start_point": {"row": 227, "column": 14}, "end_point": {"row": 227, "column": 21}}, {"id": 1104, "type": "pointer_declarator", "text": "*m", "parent": 1102, "children": [1105, 1106], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 24}}, {"id": 1105, "type": "*", "text": "*", "parent": 1104, "children": [], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 23}}, {"id": 1106, "type": "identifier", "text": "m", "parent": 1104, "children": [], "start_point": {"row": 227, "column": 23}, "end_point": {"row": 227, "column": 24}}, {"id": 1107, "type": "parameter_declaration", "text": "worker_t *w", "parent": 1101, "children": [1108, 1109], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 227, "column": 37}}, {"id": 1108, "type": "type_identifier", "text": "worker_t", "parent": 1107, "children": [], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 227, "column": 34}}, {"id": 1109, "type": "pointer_declarator", "text": "*w", "parent": 1107, "children": [1110, 1111], "start_point": {"row": 227, "column": 35}, "end_point": {"row": 227, "column": 37}}, {"id": 1110, "type": "*", "text": "*", "parent": 1109, "children": [], "start_point": {"row": 227, "column": 35}, "end_point": {"row": 227, "column": 36}}, {"id": 1111, "type": "identifier", "text": "w", "parent": 1109, "children": [], "start_point": {"row": 227, "column": 36}, "end_point": {"row": 227, "column": 37}}, {"id": 1112, "type": "parameter_declaration", "text": "iobuf_t *buf", "parent": 1101, "children": [1113, 1114], "start_point": {"row": 227, "column": 39}, "end_point": {"row": 227, "column": 51}}, {"id": 1113, "type": "type_identifier", "text": "iobuf_t", "parent": 1112, "children": [], "start_point": {"row": 227, "column": 39}, "end_point": {"row": 227, "column": 46}}, {"id": 1114, "type": "pointer_declarator", "text": "*buf", "parent": 1112, "children": [1115, 1116], "start_point": {"row": 227, "column": 47}, "end_point": {"row": 227, "column": 51}}, {"id": 1115, "type": "*", "text": "*", "parent": 1114, "children": [], "start_point": {"row": 227, "column": 47}, "end_point": {"row": 227, "column": 48}}, {"id": 1116, "type": "identifier", "text": "buf", "parent": 1114, "children": [], "start_point": {"row": 227, "column": 48}, "end_point": {"row": 227, "column": 51}}, {"id": 1117, "type": "parameter_declaration", "text": "uehandle_t *ue_h", "parent": 1101, "children": [1118, 1119], "start_point": {"row": 228, "column": 14}, "end_point": {"row": 228, "column": 30}}, {"id": 1118, "type": "type_identifier", "text": "uehandle_t", "parent": 1117, "children": [], "start_point": {"row": 228, "column": 14}, "end_point": {"row": 228, "column": 24}}, {"id": 1119, "type": "pointer_declarator", "text": "*ue_h", "parent": 1117, "children": [1120, 1121], "start_point": {"row": 228, "column": 25}, "end_point": {"row": 228, "column": 30}}, {"id": 1120, "type": "*", "text": "*", "parent": 1119, "children": [], "start_point": {"row": 228, "column": 25}, "end_point": {"row": 228, "column": 26}}, {"id": 1121, "type": "identifier", "text": "ue_h", "parent": 1119, "children": [], "start_point": {"row": 228, "column": 26}, "end_point": {"row": 228, "column": 30}}, {"id": 1122, "type": "parameter_declaration", "text": "url_t *url", "parent": 1101, "children": [1123, 1124], "start_point": {"row": 228, "column": 32}, "end_point": {"row": 228, "column": 42}}, {"id": 1123, "type": "type_identifier", "text": "url_t", "parent": 1122, "children": [], "start_point": {"row": 228, "column": 32}, "end_point": {"row": 228, "column": 37}}, {"id": 1124, "type": "pointer_declarator", "text": "*url", "parent": 1122, "children": [1125, 1126], "start_point": {"row": 228, "column": 38}, "end_point": {"row": 228, "column": 42}}, {"id": 1125, "type": "*", "text": "*", "parent": 1124, "children": [], "start_point": {"row": 228, "column": 38}, "end_point": {"row": 228, "column": 39}}, {"id": 1126, "type": "identifier", "text": "url", "parent": 1124, "children": [], "start_point": {"row": 228, "column": 39}, "end_point": {"row": 228, "column": 42}}, {"id": 1127, "type": "parameter_declaration", "text": "attr_list_t *al", "parent": 1101, "children": [1128, 1129], "start_point": {"row": 229, "column": 14}, "end_point": {"row": 229, "column": 29}}, {"id": 1128, "type": "type_identifier", "text": "attr_list_t", "parent": 1127, "children": [], "start_point": {"row": 229, "column": 14}, "end_point": {"row": 229, "column": 25}}, {"id": 1129, "type": "pointer_declarator", "text": "*al", "parent": 1127, "children": [1130, 1131], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 29}}, {"id": 1130, "type": "*", "text": "*", "parent": 1129, "children": [], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 27}}, {"id": 1131, "type": "identifier", "text": "al", "parent": 1129, "children": [], "start_point": {"row": 229, "column": 27}, "end_point": {"row": 229, "column": 29}}, {"id": 1132, "type": "declaration", "text": "char *p, *prev;", "parent": 1097, "children": [1133, 1134, 1137], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 19}}, {"id": 1133, "type": "primitive_type", "text": "char", "parent": 1132, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 8}}, {"id": 1134, "type": "pointer_declarator", "text": "*p", "parent": 1132, "children": [1135, 1136], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 11}}, {"id": 1135, "type": "*", "text": "*", "parent": 1134, "children": [], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 10}}, {"id": 1136, "type": "identifier", "text": "p", "parent": 1134, "children": [], "start_point": {"row": 231, "column": 10}, "end_point": {"row": 231, "column": 11}}, {"id": 1137, "type": "pointer_declarator", "text": "*prev", "parent": 1132, "children": [1138, 1139], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 18}}, {"id": 1138, "type": "*", "text": "*", "parent": 1137, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 14}}, {"id": 1139, "type": "identifier", "text": "prev", "parent": 1137, "children": [], "start_point": {"row": 231, "column": 14}, "end_point": {"row": 231, "column": 18}}, {"id": 1140, "type": "declaration", "text": "struct ftpparse info;", "parent": 1097, "children": [1141, 1144], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 25}}, {"id": 1141, "type": "struct_specifier", "text": "struct ftpparse", "parent": 1140, "children": [1142, 1143], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 19}}, {"id": 1142, "type": "struct", "text": "struct", "parent": 1141, "children": [], "start_point": {"row": 232, "column": 4}, "end_point": {"row": 232, "column": 10}}, {"id": 1143, "type": "type_identifier", "text": "ftpparse", "parent": 1141, "children": [], "start_point": {"row": 232, "column": 11}, "end_point": {"row": 232, "column": 19}}, {"id": 1144, "type": "identifier", "text": "info", "parent": 1140, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 24}}, {"id": 1145, "type": "declaration", "text": "char name[128];", "parent": 1097, "children": [1146, 1147], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 19}}, {"id": 1146, "type": "primitive_type", "text": "char", "parent": 1145, "children": [], "start_point": {"row": 233, "column": 4}, "end_point": {"row": 233, "column": 8}}, {"id": 1147, "type": "array_declarator", "text": "name[128]", "parent": 1145, "children": [1148, 1149], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 18}}, {"id": 1148, "type": "identifier", "text": "name", "parent": 1147, "children": [], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 13}}, {"id": 1149, "type": "number_literal", "text": "128", "parent": 1147, "children": [], "start_point": {"row": 233, "column": 14}, "end_point": {"row": 233, "column": 17}}, {"id": 1150, "type": "declaration", "text": "int len;", "parent": 1097, "children": [1151, 1152], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 234, "column": 13}}, {"id": 1151, "type": "primitive_type", "text": "int", "parent": 1150, "children": [], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 234, "column": 7}}, {"id": 1152, "type": "identifier", "text": "len", "parent": 1150, "children": [], "start_point": {"row": 234, "column": 9}, "end_point": {"row": 234, "column": 12}}, {"id": 1153, "type": "for_statement", "text": "for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }", "parent": 1097, "children": [1154, 1163, 1174], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 260, "column": 5}}, {"id": 1154, "type": "assignment_expression", "text": "prev = p = buf->ptr", "parent": 1153, "children": [1155, 1156, 1157], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 28}}, {"id": 1155, "type": "identifier", "text": "prev", "parent": 1154, "children": [], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 13}}, {"id": 1156, "type": "=", "text": "=", "parent": 1154, "children": [], "start_point": {"row": 236, "column": 14}, "end_point": {"row": 236, "column": 15}}, {"id": 1157, "type": "assignment_expression", "text": "p = buf->ptr", "parent": 1154, "children": [1158, 1159, 1160], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 28}}, {"id": 1158, "type": "identifier", "text": "p", "parent": 1157, "children": [], "start_point": {"row": 236, "column": 16}, "end_point": {"row": 236, "column": 17}}, {"id": 1159, "type": "=", "text": "=", "parent": 1157, "children": [], "start_point": {"row": 236, "column": 18}, "end_point": {"row": 236, "column": 19}}, {"id": 1160, "type": "field_expression", "text": "buf->ptr", "parent": 1157, "children": [1161, 1162], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 28}}, {"id": 1161, "type": "identifier", "text": "buf", "parent": 1160, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 23}}, {"id": 1162, "type": "field_identifier", "text": "ptr", "parent": 1160, "children": [], "start_point": {"row": 236, "column": 25}, "end_point": {"row": 236, "column": 28}}, {"id": 1163, "type": "binary_expression", "text": "p<buf->ptr+buf->sz", "parent": 1153, "children": [1164, 1165, 1166], "start_point": {"row": 236, "column": 30}, "end_point": {"row": 236, "column": 48}}, {"id": 1164, "type": "identifier", "text": "p", "parent": 1163, "children": [], "start_point": {"row": 236, "column": 30}, "end_point": {"row": 236, "column": 31}}, {"id": 1165, "type": "<", "text": "<", "parent": 1163, "children": [], "start_point": {"row": 236, "column": 31}, "end_point": {"row": 236, "column": 32}}, {"id": 1166, "type": "binary_expression", "text": "buf->ptr+buf->sz", "parent": 1163, "children": [1167, 1170, 1171], "start_point": {"row": 236, "column": 32}, "end_point": {"row": 236, "column": 48}}, {"id": 1167, "type": "field_expression", "text": "buf->ptr", "parent": 1166, "children": [1168, 1169], "start_point": {"row": 236, "column": 32}, "end_point": {"row": 236, "column": 40}}, {"id": 1168, "type": "identifier", "text": "buf", "parent": 1167, "children": [], "start_point": {"row": 236, "column": 32}, "end_point": {"row": 236, "column": 35}}, {"id": 1169, "type": "field_identifier", "text": "ptr", "parent": 1167, "children": [], "start_point": {"row": 236, "column": 37}, "end_point": {"row": 236, "column": 40}}, {"id": 1170, "type": "+", "text": "+", "parent": 1166, "children": [], "start_point": {"row": 236, "column": 40}, "end_point": {"row": 236, "column": 41}}, {"id": 1171, "type": "field_expression", "text": "buf->sz", "parent": 1166, "children": [1172, 1173], "start_point": {"row": 236, "column": 41}, "end_point": {"row": 236, "column": 48}}, {"id": 1172, "type": "identifier", "text": "buf", "parent": 1171, "children": [], "start_point": {"row": 236, "column": 41}, "end_point": {"row": 236, "column": 44}}, {"id": 1173, "type": "field_identifier", "text": "sz", "parent": 1171, "children": [], "start_point": {"row": 236, "column": 46}, "end_point": {"row": 236, "column": 48}}, {"id": 1174, "type": "update_expression", "text": "p++", "parent": 1153, "children": [1175, 1176], "start_point": {"row": 236, "column": 50}, "end_point": {"row": 236, "column": 53}}, {"id": 1175, "type": "identifier", "text": "p", "parent": 1174, "children": [], "start_point": {"row": 236, "column": 50}, "end_point": {"row": 236, "column": 51}}, {"id": 1176, "type": "++", "text": "++", "parent": 1174, "children": [], "start_point": {"row": 236, "column": 51}, "end_point": {"row": 236, "column": 53}}, {"id": 1177, "type": "if_statement", "text": "if (*p == '\\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }", "parent": 1153, "children": [1178], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 259, "column": 9}}, {"id": 1178, "type": "parenthesized_expression", "text": "(*p == '\\n')", "parent": 1177, "children": [1179], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 23}}, {"id": 1179, "type": "binary_expression", "text": "*p == '\\n'", "parent": 1178, "children": [1180, 1183, 1184], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 22}}, {"id": 1180, "type": "pointer_expression", "text": "*p", "parent": 1179, "children": [1181, 1182], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 14}}, {"id": 1181, "type": "*", "text": "*", "parent": 1180, "children": [], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 13}}, {"id": 1182, "type": "identifier", "text": "p", "parent": 1180, "children": [], "start_point": {"row": 237, "column": 13}, "end_point": {"row": 237, "column": 14}}, {"id": 1183, "type": "==", "text": "==", "parent": 1179, "children": [], "start_point": {"row": 237, "column": 15}, "end_point": {"row": 237, "column": 17}}, {"id": 1184, "type": "char_literal", "text": "'\\n'", "parent": 1179, "children": [1185, 1186, 1187], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 22}}, {"id": 1185, "type": "'", "text": "'", "parent": 1184, "children": [], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 19}}, {"id": 1186, "type": "escape_sequence", "text": "\\n", "parent": 1184, "children": [], "start_point": {"row": 237, "column": 19}, "end_point": {"row": 237, "column": 21}}, {"id": 1187, "type": "'", "text": "'", "parent": 1184, "children": [], "start_point": {"row": 237, "column": 21}, "end_point": {"row": 237, "column": 22}}, {"id": 1188, "type": "if_statement", "text": "if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;", "parent": 1177, "children": [1189, 1302], "start_point": {"row": 238, "column": 12}, "end_point": {"row": 258, "column": 27}}, {"id": 1189, "type": "parenthesized_expression", "text": "(p-prev)", "parent": 1188, "children": [1190], "start_point": {"row": 238, "column": 15}, "end_point": {"row": 238, "column": 23}}, {"id": 1190, "type": "binary_expression", "text": "p-prev", "parent": 1189, "children": [1191, 1192, 1193], "start_point": {"row": 238, "column": 16}, "end_point": {"row": 238, "column": 22}}, {"id": 1191, "type": "identifier", "text": "p", "parent": 1190, "children": [], "start_point": {"row": 238, "column": 16}, "end_point": {"row": 238, "column": 17}}, {"id": 1192, "type": "-", "text": "-", "parent": 1190, "children": [], "start_point": {"row": 238, "column": 17}, "end_point": {"row": 238, "column": 18}}, {"id": 1193, "type": "identifier", "text": "prev", "parent": 1190, "children": [], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 22}}, {"id": 1194, "type": "if_statement", "text": "if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }", "parent": 1188, "children": [1195], "start_point": {"row": 239, "column": 16}, "end_point": {"row": 255, "column": 17}}, {"id": 1195, "type": "parenthesized_expression", "text": "(ftpparse(&info, prev, p-prev))", "parent": 1194, "children": [1196], "start_point": {"row": 239, "column": 19}, "end_point": {"row": 239, "column": 50}}, {"id": 1196, "type": "call_expression", "text": "ftpparse(&info, prev, p-prev)", "parent": 1195, "children": [1197, 1198], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 49}}, {"id": 1197, "type": "identifier", "text": "ftpparse", "parent": 1196, "children": [], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 28}}, {"id": 1198, "type": "argument_list", "text": "(&info, prev, p-prev)", "parent": 1196, "children": [1199, 1201, 1202], "start_point": {"row": 239, "column": 28}, "end_point": {"row": 239, "column": 49}}, {"id": 1199, "type": "pointer_expression", "text": "&info", "parent": 1198, "children": [1200], "start_point": {"row": 239, "column": 29}, "end_point": {"row": 239, "column": 34}}, {"id": 1200, "type": "identifier", "text": "info", "parent": 1199, "children": [], "start_point": {"row": 239, "column": 30}, "end_point": {"row": 239, "column": 34}}, {"id": 1201, "type": "identifier", "text": "prev", "parent": 1198, "children": [], "start_point": {"row": 239, "column": 36}, "end_point": {"row": 239, "column": 40}}, {"id": 1202, "type": "binary_expression", "text": "p-prev", "parent": 1198, "children": [1203, 1204, 1205], "start_point": {"row": 239, "column": 42}, "end_point": {"row": 239, "column": 48}}, {"id": 1203, "type": "identifier", "text": "p", "parent": 1202, "children": [], "start_point": {"row": 239, "column": 42}, "end_point": {"row": 239, "column": 43}}, {"id": 1204, "type": "-", "text": "-", "parent": 1202, "children": [], "start_point": {"row": 239, "column": 43}, "end_point": {"row": 239, "column": 44}}, {"id": 1205, "type": "identifier", "text": "prev", "parent": 1202, "children": [], "start_point": {"row": 239, "column": 44}, "end_point": {"row": 239, "column": 48}}, {"id": 1206, "type": "if_statement", "text": "if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }", "parent": 1194, "children": [1207], "start_point": {"row": 240, "column": 20}, "end_point": {"row": 243, "column": 21}}, {"id": 1207, "type": "parenthesized_expression", "text": "(info.namelen >= 126)", "parent": 1206, "children": [1208], "start_point": {"row": 240, "column": 23}, "end_point": {"row": 240, "column": 44}}, {"id": 1208, "type": "binary_expression", "text": "info.namelen >= 126", "parent": 1207, "children": [1209, 1212, 1213], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 43}}, {"id": 1209, "type": "field_expression", "text": "info.namelen", "parent": 1208, "children": [1210, 1211], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 36}}, {"id": 1210, "type": "identifier", "text": "info", "parent": 1209, "children": [], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 28}}, {"id": 1211, "type": "field_identifier", "text": "namelen", "parent": 1209, "children": [], "start_point": {"row": 240, "column": 29}, "end_point": {"row": 240, "column": 36}}, {"id": 1212, "type": ">=", "text": ">=", "parent": 1208, "children": [], "start_point": {"row": 240, "column": 37}, "end_point": {"row": 240, "column": 39}}, {"id": 1213, "type": "number_literal", "text": "126", "parent": 1208, "children": [], "start_point": {"row": 240, "column": 40}, "end_point": {"row": 240, "column": 43}}, {"id": 1214, "type": "call_expression", "text": "LM_WARNING(w->m, \"file name too long\")", "parent": 1206, "children": [1215, 1216], "start_point": {"row": 241, "column": 24}, "end_point": {"row": 241, "column": 62}}, {"id": 1215, "type": "identifier", "text": "LM_WARNING", "parent": 1214, "children": [], "start_point": {"row": 241, "column": 24}, "end_point": {"row": 241, "column": 34}}, {"id": 1216, "type": "argument_list", "text": "(w->m, \"file name too long\")", "parent": 1214, "children": [1217, 1220], "start_point": {"row": 241, "column": 34}, "end_point": {"row": 241, "column": 62}}, {"id": 1217, "type": "field_expression", "text": "w->m", "parent": 1216, "children": [1218, 1219], "start_point": {"row": 241, "column": 35}, "end_point": {"row": 241, "column": 39}}, {"id": 1218, "type": "identifier", "text": "w", "parent": 1217, "children": [], "start_point": {"row": 241, "column": 35}, "end_point": {"row": 241, "column": 36}}, {"id": 1219, "type": "field_identifier", "text": "m", "parent": 1217, "children": [], "start_point": {"row": 241, "column": 38}, "end_point": {"row": 241, "column": 39}}, {"id": 1220, "type": "string_literal", "text": "\"file name too long\"", "parent": 1216, "children": [], "start_point": {"row": 241, "column": 41}, "end_point": {"row": 241, "column": 61}}, {"id": 1221, "type": "continue_statement", "text": "continue;", "parent": 1206, "children": [1222], "start_point": {"row": 242, "column": 24}, "end_point": {"row": 242, "column": 33}}, {"id": 1222, "type": "continue", "text": "continue", "parent": 1221, "children": [], "start_point": {"row": 242, "column": 24}, "end_point": {"row": 242, "column": 32}}, {"id": 1223, "type": "if_statement", "text": "if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }", "parent": 1194, "children": [1224, 1272], "start_point": {"row": 244, "column": 20}, "end_point": {"row": 252, "column": 21}}, {"id": 1224, "type": "parenthesized_expression", "text": "(info.flagtrycwd)", "parent": 1223, "children": [1225], "start_point": {"row": 244, "column": 23}, "end_point": {"row": 244, "column": 40}}, {"id": 1225, "type": "field_expression", "text": "info.flagtrycwd", "parent": 1224, "children": [1226, 1227], "start_point": {"row": 244, "column": 24}, "end_point": {"row": 244, "column": 39}}, {"id": 1226, "type": "identifier", "text": "info", "parent": 1225, "children": [], "start_point": {"row": 244, "column": 24}, "end_point": {"row": 244, "column": 28}}, {"id": 1227, "type": "field_identifier", "text": "flagtrycwd", "parent": 1225, "children": [], "start_point": {"row": 244, "column": 29}, "end_point": {"row": 244, "column": 39}}, {"id": 1228, "type": "call_expression", "text": "memcpy(name, info.name, info.namelen)", "parent": 1223, "children": [1229, 1230], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 61}}, {"id": 1229, "type": "identifier", "text": "memcpy", "parent": 1228, "children": [], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 30}}, {"id": 1230, "type": "argument_list", "text": "(name, info.name, info.namelen)", "parent": 1228, "children": [1231, 1232, 1235], "start_point": {"row": 245, "column": 30}, "end_point": {"row": 245, "column": 61}}, {"id": 1231, "type": "identifier", "text": "name", "parent": 1230, "children": [], "start_point": {"row": 245, "column": 31}, "end_point": {"row": 245, "column": 35}}, {"id": 1232, "type": "field_expression", "text": "info.name", "parent": 1230, "children": [1233, 1234], "start_point": {"row": 245, "column": 37}, "end_point": {"row": 245, "column": 46}}, {"id": 1233, "type": "identifier", "text": "info", "parent": 1232, "children": [], "start_point": {"row": 245, "column": 37}, "end_point": {"row": 245, "column": 41}}, {"id": 1234, "type": "field_identifier", "text": "name", "parent": 1232, "children": [], "start_point": {"row": 245, "column": 42}, "end_point": {"row": 245, "column": 46}}, {"id": 1235, "type": "field_expression", "text": "info.namelen", "parent": 1230, "children": [1236, 1237], "start_point": {"row": 245, "column": 48}, "end_point": {"row": 245, "column": 60}}, {"id": 1236, "type": "identifier", "text": "info", "parent": 1235, "children": [], "start_point": {"row": 245, "column": 48}, "end_point": {"row": 245, "column": 52}}, {"id": 1237, "type": "field_identifier", "text": "namelen", "parent": 1235, "children": [], "start_point": {"row": 245, "column": 53}, "end_point": {"row": 245, "column": 60}}, {"id": 1238, "type": "assignment_expression", "text": "name[info.namelen] = '/'", "parent": 1223, "children": [1239, 1244, 1245], "start_point": {"row": 246, "column": 24}, "end_point": {"row": 246, "column": 48}}, {"id": 1239, "type": "subscript_expression", "text": "name[info.namelen]", "parent": 1238, "children": [1240, 1241], "start_point": {"row": 246, "column": 24}, "end_point": {"row": 246, "column": 42}}, {"id": 1240, "type": "identifier", "text": "name", "parent": 1239, "children": [], "start_point": {"row": 246, "column": 24}, "end_point": {"row": 246, "column": 28}}, {"id": 1241, "type": "field_expression", "text": "info.namelen", "parent": 1239, "children": [1242, 1243], "start_point": {"row": 246, "column": 29}, "end_point": {"row": 246, "column": 41}}, {"id": 1242, "type": "identifier", "text": "info", "parent": 1241, "children": [], "start_point": {"row": 246, "column": 29}, "end_point": {"row": 246, "column": 33}}, {"id": 1243, "type": "field_identifier", "text": "namelen", "parent": 1241, "children": [], "start_point": {"row": 246, "column": 34}, "end_point": {"row": 246, "column": 41}}, {"id": 1244, "type": "=", "text": "=", "parent": 1238, "children": [], "start_point": {"row": 246, "column": 43}, "end_point": {"row": 246, "column": 44}}, {"id": 1245, "type": "char_literal", "text": "'/'", "parent": 1238, "children": [1246, 1247, 1248], "start_point": {"row": 246, "column": 45}, "end_point": {"row": 246, "column": 48}}, {"id": 1246, "type": "'", "text": "'", "parent": 1245, "children": [], "start_point": {"row": 246, "column": 45}, "end_point": {"row": 246, "column": 46}}, {"id": 1247, "type": "character", "text": "/", "parent": 1245, "children": [], "start_point": {"row": 246, "column": 46}, "end_point": {"row": 246, "column": 47}}, {"id": 1248, "type": "'", "text": "'", "parent": 1245, "children": [], "start_point": {"row": 246, "column": 47}, "end_point": {"row": 246, "column": 48}}, {"id": 1249, "type": "assignment_expression", "text": "name[info.namelen+1] = '\\0'", "parent": 1223, "children": [1250, 1258, 1259], "start_point": {"row": 247, "column": 24}, "end_point": {"row": 247, "column": 51}}, {"id": 1250, "type": "subscript_expression", "text": "name[info.namelen+1]", "parent": 1249, "children": [1251, 1252], "start_point": {"row": 247, "column": 24}, "end_point": {"row": 247, "column": 44}}, {"id": 1251, "type": "identifier", "text": "name", "parent": 1250, "children": [], "start_point": {"row": 247, "column": 24}, "end_point": {"row": 247, "column": 28}}, {"id": 1252, "type": "binary_expression", "text": "info.namelen+1", "parent": 1250, "children": [1253, 1256, 1257], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 43}}, {"id": 1253, "type": "field_expression", "text": "info.namelen", "parent": 1252, "children": [1254, 1255], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 41}}, {"id": 1254, "type": "identifier", "text": "info", "parent": 1253, "children": [], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 33}}, {"id": 1255, "type": "field_identifier", "text": "namelen", "parent": 1253, "children": [], "start_point": {"row": 247, "column": 34}, "end_point": {"row": 247, "column": 41}}, {"id": 1256, "type": "+", "text": "+", "parent": 1252, "children": [], "start_point": {"row": 247, "column": 41}, "end_point": {"row": 247, "column": 42}}, {"id": 1257, "type": "number_literal", "text": "1", "parent": 1252, "children": [], "start_point": {"row": 247, "column": 42}, "end_point": {"row": 247, "column": 43}}, {"id": 1258, "type": "=", "text": "=", "parent": 1249, "children": [], "start_point": {"row": 247, "column": 45}, "end_point": {"row": 247, "column": 46}}, {"id": 1259, "type": "char_literal", "text": "'\\0'", "parent": 1249, "children": [1260, 1261, 1262], "start_point": {"row": 247, "column": 47}, "end_point": {"row": 247, "column": 51}}, {"id": 1260, "type": "'", "text": "'", "parent": 1259, "children": [], "start_point": {"row": 247, "column": 47}, "end_point": {"row": 247, "column": 48}}, {"id": 1261, "type": "escape_sequence", "text": "\\0", "parent": 1259, "children": [], "start_point": {"row": 247, "column": 48}, "end_point": {"row": 247, "column": 50}}, {"id": 1262, "type": "'", "text": "'", "parent": 1259, "children": [], "start_point": {"row": 247, "column": 50}, "end_point": {"row": 247, "column": 51}}, {"id": 1263, "type": "assignment_expression", "text": "len = info.namelen+1", "parent": 1223, "children": [1264, 1265, 1266], "start_point": {"row": 248, "column": 24}, "end_point": {"row": 248, "column": 44}}, {"id": 1264, "type": "identifier", "text": "len", "parent": 1263, "children": [], "start_point": {"row": 248, "column": 24}, "end_point": {"row": 248, "column": 27}}, {"id": 1265, "type": "=", "text": "=", "parent": 1263, "children": [], "start_point": {"row": 248, "column": 28}, "end_point": {"row": 248, "column": 29}}, {"id": 1266, "type": "binary_expression", "text": "info.namelen+1", "parent": 1263, "children": [1267, 1270, 1271], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 248, "column": 44}}, {"id": 1267, "type": "field_expression", "text": "info.namelen", "parent": 1266, "children": [1268, 1269], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 248, "column": 42}}, {"id": 1268, "type": "identifier", "text": "info", "parent": 1267, "children": [], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 248, "column": 34}}, {"id": 1269, "type": "field_identifier", "text": "namelen", "parent": 1267, "children": [], "start_point": {"row": 248, "column": 35}, "end_point": {"row": 248, "column": 42}}, {"id": 1270, "type": "+", "text": "+", "parent": 1266, "children": [], "start_point": {"row": 248, "column": 42}, "end_point": {"row": 248, "column": 43}}, {"id": 1271, "type": "number_literal", "text": "1", "parent": 1266, "children": [], "start_point": {"row": 248, "column": 43}, "end_point": {"row": 248, "column": 44}}, {"id": 1272, "type": "else_clause", "text": "else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }", "parent": 1223, "children": [], "start_point": {"row": 249, "column": 22}, "end_point": {"row": 252, "column": 21}}, {"id": 1273, "type": "call_expression", "text": "strncpy(name, info.name, info.namelen)", "parent": 1272, "children": [1274, 1275], "start_point": {"row": 250, "column": 24}, "end_point": {"row": 250, "column": 62}}, {"id": 1274, "type": "identifier", "text": "strncpy", "parent": 1273, "children": [], "start_point": {"row": 250, "column": 24}, "end_point": {"row": 250, "column": 31}}, {"id": 1275, "type": "argument_list", "text": "(name, info.name, info.namelen)", "parent": 1273, "children": [1276, 1277, 1280], "start_point": {"row": 250, "column": 31}, "end_point": {"row": 250, "column": 62}}, {"id": 1276, "type": "identifier", "text": "name", "parent": 1275, "children": [], "start_point": {"row": 250, "column": 32}, "end_point": {"row": 250, "column": 36}}, {"id": 1277, "type": "field_expression", "text": "info.name", "parent": 1275, "children": [1278, 1279], "start_point": {"row": 250, "column": 38}, "end_point": {"row": 250, "column": 47}}, {"id": 1278, "type": "identifier", "text": "info", "parent": 1277, "children": [], "start_point": {"row": 250, "column": 38}, "end_point": {"row": 250, "column": 42}}, {"id": 1279, "type": "field_identifier", "text": "name", "parent": 1277, "children": [], "start_point": {"row": 250, "column": 43}, "end_point": {"row": 250, "column": 47}}, {"id": 1280, "type": "field_expression", "text": "info.namelen", "parent": 1275, "children": [1281, 1282], "start_point": {"row": 250, "column": 49}, "end_point": {"row": 250, "column": 61}}, {"id": 1281, "type": "identifier", "text": "info", "parent": 1280, "children": [], "start_point": {"row": 250, "column": 49}, "end_point": {"row": 250, "column": 53}}, {"id": 1282, "type": "field_identifier", "text": "namelen", "parent": 1280, "children": [], "start_point": {"row": 250, "column": 54}, "end_point": {"row": 250, "column": 61}}, {"id": 1283, "type": "assignment_expression", "text": "len = info.namelen", "parent": 1272, "children": [1284, 1285, 1286], "start_point": {"row": 251, "column": 24}, "end_point": {"row": 251, "column": 42}}, {"id": 1284, "type": "identifier", "text": "len", "parent": 1283, "children": [], "start_point": {"row": 251, "column": 24}, "end_point": {"row": 251, "column": 27}}, {"id": 1285, "type": "=", "text": "=", "parent": 1283, "children": [], "start_point": {"row": 251, "column": 28}, "end_point": {"row": 251, "column": 29}}, {"id": 1286, "type": "field_expression", "text": "info.namelen", "parent": 1283, "children": [1287, 1288], "start_point": {"row": 251, "column": 30}, "end_point": {"row": 251, "column": 42}}, {"id": 1287, "type": "identifier", "text": "info", "parent": 1286, "children": [], "start_point": {"row": 251, "column": 30}, "end_point": {"row": 251, "column": 34}}, {"id": 1288, "type": "field_identifier", "text": "namelen", "parent": 1286, "children": [], "start_point": {"row": 251, "column": 35}, "end_point": {"row": 251, "column": 42}}, {"id": 1289, "type": "call_expression", "text": "ue_add(ue_h, name, len)", "parent": 1194, "children": [1290, 1291], "start_point": {"row": 254, "column": 20}, "end_point": {"row": 254, "column": 43}}, {"id": 1290, "type": "identifier", "text": "ue_add", "parent": 1289, "children": [], "start_point": {"row": 254, "column": 20}, "end_point": {"row": 254, "column": 26}}, {"id": 1291, "type": "argument_list", "text": "(ue_h, name, len)", "parent": 1289, "children": [1292, 1293, 1294], "start_point": {"row": 254, "column": 26}, "end_point": {"row": 254, "column": 43}}, {"id": 1292, "type": "identifier", "text": "ue_h", "parent": 1291, "children": [], "start_point": {"row": 254, "column": 27}, "end_point": {"row": 254, "column": 31}}, {"id": 1293, "type": "identifier", "text": "name", "parent": 1291, "children": [], "start_point": {"row": 254, "column": 33}, "end_point": {"row": 254, "column": 37}}, {"id": 1294, "type": "identifier", "text": "len", "parent": 1291, "children": [], "start_point": {"row": 254, "column": 39}, "end_point": {"row": 254, "column": 42}}, {"id": 1295, "type": "assignment_expression", "text": "prev = p+1", "parent": 1188, "children": [1296, 1297, 1298], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 26}}, {"id": 1296, "type": "identifier", "text": "prev", "parent": 1295, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 20}}, {"id": 1297, "type": "=", "text": "=", "parent": 1295, "children": [], "start_point": {"row": 256, "column": 21}, "end_point": {"row": 256, "column": 22}}, {"id": 1298, "type": "binary_expression", "text": "p+1", "parent": 1295, "children": [1299, 1300, 1301], "start_point": {"row": 256, "column": 23}, "end_point": {"row": 256, "column": 26}}, {"id": 1299, "type": "identifier", "text": "p", "parent": 1298, "children": [], "start_point": {"row": 256, "column": 23}, "end_point": {"row": 256, "column": 24}}, {"id": 1300, "type": "+", "text": "+", "parent": 1298, "children": [], "start_point": {"row": 256, "column": 24}, "end_point": {"row": 256, "column": 25}}, {"id": 1301, "type": "number_literal", "text": "1", "parent": 1298, "children": [], "start_point": {"row": 256, "column": 25}, "end_point": {"row": 256, "column": 26}}, {"id": 1302, "type": "else_clause", "text": "else\n prev = p+1;", "parent": 1188, "children": [], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 258, "column": 27}}, {"id": 1303, "type": "assignment_expression", "text": "prev = p+1", "parent": 1302, "children": [1304, 1305, 1306], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 26}}, {"id": 1304, "type": "identifier", "text": "prev", "parent": 1303, "children": [], "start_point": {"row": 258, "column": 16}, "end_point": {"row": 258, "column": 20}}, {"id": 1305, "type": "=", "text": "=", "parent": 1303, "children": [], "start_point": {"row": 258, "column": 21}, "end_point": {"row": 258, "column": 22}}, {"id": 1306, "type": "binary_expression", "text": "p+1", "parent": 1303, "children": [1307, 1308, 1309], "start_point": {"row": 258, "column": 23}, "end_point": {"row": 258, "column": 26}}, {"id": 1307, "type": "identifier", "text": "p", "parent": 1306, "children": [], "start_point": {"row": 258, "column": 23}, "end_point": {"row": 258, "column": 24}}, {"id": 1308, "type": "+", "text": "+", "parent": 1306, "children": [], "start_point": {"row": 258, "column": 24}, "end_point": {"row": 258, "column": 25}}, {"id": 1309, "type": "number_literal", "text": "1", "parent": 1306, "children": [], "start_point": {"row": 258, "column": 25}, "end_point": {"row": 258, "column": 26}}, {"id": 1310, "type": "return_statement", "text": "return M_OK;", "parent": 1097, "children": [1311], "start_point": {"row": 262, "column": 4}, "end_point": {"row": 262, "column": 16}}, {"id": 1311, "type": "identifier", "text": "M_OK", "parent": 1310, "children": [], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 15}}]}, "node_categories": {"declarations": {"functions": [55, 57, 101, 103, 555, 557, 745, 747, 791, 793, 1097, 1099], "variables": [30, 33, 38, 60, 65, 70, 75, 80, 85, 106, 111, 116, 121, 126, 131, 136, 139, 144, 149, 154, 157, 160, 163, 166, 560, 565, 570, 573, 581, 592, 750, 755, 760, 765, 770, 775, 796, 801, 806, 809, 812, 826, 834, 1102, 1107, 1112, 1117, 1122, 1127, 1132, 1140, 1145, 1150], "classes": [31, 32, 167, 168, 1141, 1142], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [91, 95, 98, 172, 173, 180, 183, 184, 186, 187, 188, 194, 195, 197, 198, 199, 209, 213, 214, 216, 220, 223, 224, 227, 234, 238, 239, 243, 246, 249, 253, 255, 258, 269, 270, 274, 275, 276, 285, 293, 294, 299, 300, 302, 303, 304, 310, 311, 313, 314, 315, 325, 331, 334, 335, 336, 342, 343, 344, 345, 351, 355, 356, 358, 362, 368, 369, 370, 376, 381, 382, 387, 394, 400, 401, 403, 407, 413, 414, 415, 418, 428, 432, 433, 434, 438, 444, 447, 457, 458, 459, 463, 468, 474, 477, 484, 485, 486, 490, 497, 504, 505, 509, 512, 513, 518, 519, 526, 527, 532, 537, 538, 545, 549, 588, 601, 602, 606, 610, 621, 622, 625, 628, 632, 633, 634, 642, 645, 646, 649, 655, 657, 658, 669, 671, 672, 684, 685, 686, 694, 697, 698, 701, 708, 709, 711, 715, 719, 724, 730, 735, 781, 785, 788, 822, 843, 848, 851, 858, 861, 871, 872, 873, 874, 881, 882, 884, 885, 898, 902, 908, 909, 914, 915, 920, 921, 922, 927, 928, 932, 933, 937, 938, 956, 962, 966, 970, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 986, 989, 993, 994, 1003, 1004, 1013, 1014, 1023, 1024, 1032, 1033, 1042, 1043, 1051, 1052, 1060, 1061, 1070, 1071, 1079, 1084, 1085, 1160, 1163, 1166, 1167, 1171, 1174, 1178, 1179, 1180, 1189, 1190, 1195, 1196, 1199, 1202, 1207, 1208, 1209, 1214, 1217, 1224, 1225, 1228, 1232, 1235, 1239, 1241, 1250, 1252, 1253, 1266, 1267, 1273, 1277, 1280, 1286, 1289, 1298, 1306], "assignments": [177, 217, 252, 266, 282, 290, 328, 359, 365, 384, 391, 404, 410, 452, 471, 494, 517, 525, 536, 603, 616, 652, 712, 739, 840, 855, 866, 894, 905, 946, 951, 959, 1091, 1154, 1157, 1238, 1249, 1263, 1283, 1295, 1303], "loops": [176, 289, 600, 620, 839, 893, 958, 1153], "conditionals": [37, 40, 43, 56, 58, 61, 64, 66, 69, 71, 74, 76, 79, 81, 84, 86, 89, 92, 94, 96, 97, 99, 100, 102, 104, 107, 110, 112, 115, 117, 120, 122, 125, 127, 130, 132, 135, 138, 143, 148, 153, 156, 159, 162, 165, 169, 170, 171, 174, 175, 178, 181, 182, 189, 190, 192, 200, 201, 203, 210, 212, 218, 221, 225, 228, 229, 233, 235, 237, 240, 241, 244, 245, 247, 250, 251, 254, 256, 259, 260, 267, 271, 272, 277, 278, 283, 286, 291, 295, 296, 305, 306, 308, 316, 317, 319, 326, 329, 332, 337, 338, 341, 346, 347, 352, 353, 354, 360, 363, 366, 375, 377, 379, 385, 388, 392, 395, 399, 405, 408, 411, 416, 419, 421, 427, 429, 431, 435, 436, 439, 440, 443, 445, 448, 450, 451, 453, 456, 460, 462, 464, 469, 472, 475, 478, 480, 482, 483, 487, 489, 491, 495, 498, 500, 501, 502, 503, 506, 508, 510, 514, 515, 516, 520, 521, 522, 524, 528, 529, 530, 533, 535, 539, 540, 541, 543, 546, 548, 550, 552, 554, 556, 558, 561, 564, 569, 572, 578, 580, 586, 589, 591, 596, 599, 604, 607, 609, 611, 613, 617, 623, 627, 629, 631, 636, 643, 647, 651, 653, 656, 660, 670, 674, 683, 688, 695, 699, 703, 707, 713, 716, 718, 720, 722, 723, 725, 727, 731, 733, 734, 736, 738, 740, 742, 744, 746, 748, 751, 754, 756, 759, 761, 764, 766, 769, 771, 774, 776, 779, 782, 784, 786, 787, 789, 790, 792, 794, 797, 800, 805, 808, 811, 816, 820, 823, 825, 831, 833, 838, 841, 844, 846, 849, 852, 854, 856, 859, 862, 867, 870, 875, 879, 886, 895, 899, 903, 906, 910, 916, 917, 918, 919, 923, 925, 929, 931, 934, 935, 936, 939, 940, 941, 947, 952, 954, 955, 957, 960, 963, 967, 969, 971, 973, 987, 991, 996, 1006, 1016, 1026, 1035, 1045, 1054, 1063, 1073, 1080, 1082, 1083, 1086, 1088, 1092, 1094, 1096, 1098, 1100, 1103, 1106, 1108, 1111, 1113, 1116, 1118, 1121, 1123, 1126, 1128, 1131, 1136, 1139, 1143, 1144, 1148, 1152, 1155, 1158, 1161, 1162, 1164, 1168, 1169, 1172, 1173, 1175, 1177, 1182, 1188, 1191, 1193, 1194, 1197, 1200, 1201, 1203, 1205, 1206, 1210, 1211, 1215, 1218, 1219, 1223, 1226, 1227, 1229, 1231, 1233, 1234, 1236, 1237, 1240, 1242, 1243, 1251, 1254, 1255, 1264, 1268, 1269, 1274, 1276, 1278, 1279, 1281, 1282, 1284, 1287, 1288, 1290, 1292, 1293, 1294, 1296, 1299, 1304, 1307, 1311], "returns": [90, 232, 374, 426, 553, 743, 780, 1095, 1310], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 47, 48, 50, 51, 53, 54, 205, 231, 262, 280, 288, 298, 321, 340, 349, 371, 373, 380, 383, 390, 397, 423, 425, 442, 455, 466, 481, 493, 614, 615, 619, 638, 662, 667, 676, 681, 682, 690, 847, 864, 865, 869, 877, 888, 890, 897, 901, 912, 943, 949, 965, 998, 1008, 1018, 1028, 1037, 1047, 1056, 1065, 1075, 1149, 1184, 1213, 1220, 1245, 1257, 1259, 1271, 1301, 1309], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "M_CODE\nlm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *u"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "lm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, att"}, {"node_id": 101, "universal_type": "function", "name": "r;", "text_snippet": "M_CODE\nlm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *bu"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "lm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iost"}, {"node_id": 555, "universal_type": "function", "name": "unknown", "text_snippet": "M_CODE\nlm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)\n{\n char *p = buf;\n char *e "}, {"node_id": 557, "universal_type": "function", "name": "unknown", "text_snippet": "lm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)"}, {"node_id": 745, "universal_type": "function", "name": "unknown", "text_snippet": "M_CODE\nlm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t "}, {"node_id": 747, "universal_type": "function", "name": "unknown", "text_snippet": "lm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n "}, {"node_id": 791, "universal_type": "function", "name": "x;", "text_snippet": "M_CODE\nlm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)\n{\n int x;\n char *s, *e = p+s"}, {"node_id": 793, "universal_type": "function", "name": "unknown", "text_snippet": "lm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)"}, {"node_id": 1097, "universal_type": "function", "name": "ftpparse", "text_snippet": "M_CODE\nlm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *u"}, {"node_id": 1099, "universal_type": "function", "name": "unknown", "text_snippet": "lm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n "}], "class_declarations": [{"node_id": 31, "universal_type": "class", "name": "{", "text_snippet": "struct {\n const char *name;\n int len;\n}"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 167, "universal_type": "class", "name": "stat", "text_snippet": "struct stat"}, {"node_id": 168, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 1141, "universal_type": "class", "name": "ftpparse", "text_snippet": "struct ftpparse"}, {"node_id": 1142, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <string.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 <ctype.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 \"errors.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"ftpparse.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"worker.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"urlengine.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"io.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"builtin.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*-\n * builtin.c\n * This file is part of libmetha\n *\n * Copyright (c) 2008, <NAME> <<EMAIL>>\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n * \n * http://bithack.se/projects/methabot/\n */\n\n#include <string.h>\n#include <stdlib.h>\n#include <ctype.h>\n#include <sys/stat.h>\n\n#include \"errors.h\"\n#include \"ftpparse.h\"\n#include \"worker.h\"\n#include \"urlengine.h\"\n#include \"io.h\"\n#include \"builtin.h\"\n\n/** \n * Builtin parsers except for the html parser which is in html.c\n **/\n\nstruct {\n const char *name;\n int len;\n} protocols[] = {\n {\"https\", 5},\n {\"http\", 4},\n {\"ftp\", 3},\n};\n\n/** \n * Default CSS parser\n **/\nM_CODE\nlm_parser_css(metha_t *m, worker_t *w, iobuf_t *buf, uehandle_t *ue_h,\n url_t *url, attr_list_t *al)\n{\n return lm_extract_css_urls(ue_h, buf->ptr, buf->sz);\n}\n\n/** \n * download the data to a local file instead of\n * to memory\n *\n * the parser chain will receive the file name in\n * this.data instead of the real buffer.\n **/\nM_CODE\nlm_handler_writefile(metha_t *m, worker_t *w, iohandle_t *h,\n iobuf_t *buf, iostat_t *iostat, \n url_t *url)\n{\n int r;\n char *name;\n char *ext;\n char *s;\n int x;\n int ext_offs;\n int a_sz;\n int sz;\n struct stat st;\n\n /** \n * create a filename to download to\n **/\n if (url->ext_o) {\n for (x = url->ext_o; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n\n if (!(ext = malloc(x-url->ext_o+1)))\n return M_OUT_OF_MEM;\n\n memcpy(ext, url->str+url->ext_o, x-url->ext_o);\n ext[x-url->ext_o] = '\\0';\n\n ext_offs = url->ext_o-(url->file_o+1);\n } else {\n ext = strdup(\"\");\n for (x = url->file_o+1; *(url->str+x) && *(url->str+x) != '?'; x++)\n ;\n ext_offs = x-(url->file_o+1);\n }\n\n if (url->file_o+1 == url->sz) {\n if (!(name = malloc(a_sz = sizeof(\"index.html\")+32)))\n return M_OUT_OF_MEM;\n memcpy(name, \"index.html\", sizeof(\"index.html\"));\n ext_offs = strlen(\"index\");\n ext = strdup(\".html\");\n } else {\n if (!(name = malloc(a_sz = ext_offs+strlen(ext)+1+32)))\n return M_OUT_OF_MEM;\n\n memcpy(name, url->str+url->file_o+1, ext_offs);\n strcpy(name+ext_offs, ext);\n }\n\n x=0;\n if (stat(name, &st) == 0) {\n do {\n x++;\n sz = sprintf(name+ext_offs, \"-%d%s\", x, ext);\n } while (stat(name, &st) == 0);\n }\n\n r = lm_io_save(h, url, name);\n\n if (r == M_OK) {\n /* set the I/O buffer to the name of the file */\n free(h->buf.ptr);\n h->buf.ptr = name;\n h->buf.sz = strlen(name);\n h->buf.cap = a_sz;\n } else\n free(name);\n\n free(ext);\n return M_OK;\n}\n\n/** \n * Parse the given string as CSS and add the found URLs to\n * the uehandle.\n **/\nM_CODE\nlm_extract_css_urls(uehandle_t *ue_h, char *buf, size_t sz)\n{\n char *p = buf;\n char *e = p+sz;\n char *t, *s;\n while ((p = memmem(p, e-p, \"url\", 3))) {\n p += 3;\n while (isspace(*p)) p++;\n if (*p == '(') {\n do p++; while (isspace(*p));\n t = (*p == '\"' ? \"\\\")\"\n : (*p == '\\'' ? \"')\" : \")\"));\n if (*t != ')') {\n do p++; while (isspace(*p));\n }\n } else {\n continue;\n }\n if (!(s = memmem(p, e-p, t, strlen(t)))) {\n continue;\n }\n\n ue_add(ue_h, p, s-p);\n p = s;\n }\n\n return M_OK;\n}\n\n/** \n * Default plaintext parser\n **/\nM_CODE\nlm_parser_text(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n return lm_extract_text_urls(ue_h, buf->ptr, buf->sz);\n}\n\nM_CODE\nlm_extract_text_urls(uehandle_t *ue_h, char *p, size_t sz)\n{\n int x;\n char *s, *e = p+sz;\n char *m = p;\n char *p_start;\n\n for (p = strstr(p, \"//\"); p && p<e; p = strstr(p+1, \"//\")) {\n p_start = 0;\n\n if (p-1 > m && *(p-1) == ':') {\n for (x=0;x<3;x++) {\n p_start = p-1-protocols[x].len;\n if (p_start >= m\n && strncmp(p_start, protocols[x].name, protocols[x].len) == 0) {\n break;\n }\n p_start = 0;\n }\n } else {\n p_start = p;\n }\n\n if (p_start) {\n for (s=p+2; s < e; s++) {\n if (!isalnum(*s) && *s != '%' && *s != '?'\n && *s != '=' && *s != '&' && *s != '/'\n && *s != '.' && *s != ':' && *s != '_'\n && *s != '-') {\n ue_add(ue_h, p_start, (s-p_start));\n break;\n }\n }\n p = s;\n }\n }\n\n return M_OK;\n}\n\n/** \n * Default FTP parser. Expects data returned from the default\n * FTP handler.\n **/\nM_CODE\nlm_parser_ftp(metha_t *m, worker_t *w, iobuf_t *buf,\n uehandle_t *ue_h, url_t *url,\n attr_list_t *al)\n{\n char *p, *prev;\n struct ftpparse info;\n char name[128]; /* i'm pretty sure no filename will be longer than 127 chars... */\n int len;\n\n for (prev = p = buf->ptr; p<buf->ptr+buf->sz; p++) {\n if (*p == '\\n') {\n if (p-prev) {\n if (ftpparse(&info, prev, p-prev)) {\n if (info.namelen >= 126) {\n LM_WARNING(w->m, \"file name too long\");\n continue;\n }\n if (info.flagtrycwd) {\n memcpy(name, info.name, info.namelen);\n name[info.namelen] = '/';\n name[info.namelen+1] = '\\0';\n len = info.namelen+1;\n } else {\n strncpy(name, info.name, info.namelen);\n len = info.namelen;\n }\n\n ue_add(ue_h, name, len);\n }\n prev = p+1;\n } else\n prev = p+1;\n }\n }\n\n return M_OK;\n}\n\n"}
80,727
c
#include <pthread.h> #include <stdio.h> #include <stdlib.h> int A = 100; pthread_mutex_t count_mutex; void *My_Func(void *idp) { long my_id = (long)idp; pthread_mutex_lock(&count_mutex); printf("Starting watch_count(): thread %ld\n", my_id); A++; printf("Hi! Welcome\n Value of A is %d\n",A); pthread_mutex_unlock(&count_mutex); pthread_exit(NULL); } int main(int argc, char *argv[]) { int i, rc; pthread_t threads[6]; pthread_mutex_init(&count_mutex, NULL); pthread_create(&threads[0],NULL, My_Func, (void *)2); pthread_create(&threads[1], NULL, My_Func, (void *)3); pthread_create(&threads[2], NULL, My_Func, (void *)4); pthread_create(&threads[3], NULL, My_Func, (void *)5); pthread_create(&threads[4], NULL, My_Func, (void *)0); pthread_create(&threads[5], NULL, My_Func, (void *)1); for (i = 0; i < 6; i++) { pthread_join(threads[i], NULL); } printf ("Main(): Waited on %d threads. Done.\n", 6); pthread_exit (NULL); }
28.27
33
(translation_unit) "#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nint A = 100;\npthread_mutex_t count_mutex;\n\n\nvoid *My_Func(void *idp) \n{\n long my_id = (long)idp;\n pthread_mutex_lock(&count_mutex);\n printf("Starting watch_count(): thread %ld\n", my_id);\n A++;\n\n printf("Hi! Welcome\n Value of A is %d\n",A);\n\n pthread_mutex_unlock(&count_mutex);\n pthread_exit(NULL);\n}\n\nint main(int argc, char *argv[])\n{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_mutex, NULL);\n\n pthread_create(&threads[0],NULL, My_Func, (void *)2);\n pthread_create(&threads[1], NULL, My_Func, (void *)3);\n pthread_create(&threads[2], NULL, My_Func, (void *)4);\n pthread_create(&threads[3], NULL, My_Func, (void *)5);\n pthread_create(&threads[4], NULL, My_Func, (void *)0);\n pthread_create(&threads[5], NULL, My_Func, (void *)1);\n\n for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }\n printf ("Main(): Waited on %d threads. Done.\n", 6);\n pthread_exit (NULL);\n\n}\n\n\n" (preproc_include) "#include <pthread.h>\n" (#include) "#include" (system_lib_string) "<pthread.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>" (declaration) "int A = 100;" (primitive_type) "int" (init_declarator) "A = 100" (identifier) "A" (=) "=" (number_literal) "100" (;) ";" (declaration) "pthread_mutex_t count_mutex;" (type_identifier) "pthread_mutex_t" (identifier) "count_mutex" (;) ";" (function_definition) "void *My_Func(void *idp) \n{\n long my_id = (long)idp;\n pthread_mutex_lock(&count_mutex);\n printf("Starting watch_count(): thread %ld\n", my_id);\n A++;\n\n printf("Hi! Welcome\n Value of A is %d\n",A);\n\n pthread_mutex_unlock(&count_mutex);\n pthread_exit(NULL);\n}" (primitive_type) "void" (pointer_declarator) "*My_Func(void *idp)" (*) "*" (function_declarator) "My_Func(void *idp)" (identifier) "My_Func" (parameter_list) "(void *idp)" (() "(" (parameter_declaration) "void *idp" (primitive_type) "void" (pointer_declarator) "*idp" (*) "*" (identifier) "idp" ()) ")" (compound_statement) "{\n long my_id = (long)idp;\n pthread_mutex_lock(&count_mutex);\n printf("Starting watch_count(): thread %ld\n", my_id);\n A++;\n\n printf("Hi! Welcome\n Value of A is %d\n",A);\n\n pthread_mutex_unlock(&count_mutex);\n pthread_exit(NULL);\n}" ({) "{" (declaration) "long my_id = (long)idp;" (sized_type_specifier) "long" (long) "long" (init_declarator) "my_id = (long)idp" (identifier) "my_id" (=) "=" (cast_expression) "(long)idp" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (identifier) "idp" (;) ";" (expression_statement) "pthread_mutex_lock(&count_mutex);" (call_expression) "pthread_mutex_lock(&count_mutex)" (identifier) "pthread_mutex_lock" (argument_list) "(&count_mutex)" (() "(" (pointer_expression) "&count_mutex" (&) "&" (identifier) "count_mutex" ()) ")" (;) ";" (expression_statement) "printf("Starting watch_count(): thread %ld\n", my_id);" (call_expression) "printf("Starting watch_count(): thread %ld\n", my_id)" (identifier) "printf" (argument_list) "("Starting watch_count(): thread %ld\n", my_id)" (() "(" (string_literal) ""Starting watch_count(): thread %ld\n"" (") """ (string_content) "Starting watch_count(): thread %ld" (escape_sequence) "\n" (") """ (,) "," (identifier) "my_id" ()) ")" (;) ";" (expression_statement) "A++;" (update_expression) "A++" (identifier) "A" (++) "++" (;) ";" (expression_statement) "printf("Hi! Welcome\n Value of A is %d\n",A);" (call_expression) "printf("Hi! Welcome\n Value of A is %d\n",A)" (identifier) "printf" (argument_list) "("Hi! Welcome\n Value of A is %d\n",A)" (() "(" (string_literal) ""Hi! Welcome\n Value of A is %d\n"" (") """ (string_content) "Hi! Welcome" (escape_sequence) "\n" (string_content) " Value of A is %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "A" ()) ")" (;) ";" (expression_statement) "pthread_mutex_unlock(&count_mutex);" (call_expression) "pthread_mutex_unlock(&count_mutex)" (identifier) "pthread_mutex_unlock" (argument_list) "(&count_mutex)" (() "(" (pointer_expression) "&count_mutex" (&) "&" (identifier) "count_mutex" ()) ")" (;) ";" (expression_statement) "pthread_exit(NULL);" (call_expression) "pthread_exit(NULL)" (identifier) "pthread_exit" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}" (function_definition) "int main(int argc, char *argv[])\n{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_mutex, NULL);\n\n pthread_create(&threads[0],NULL, My_Func, (void *)2);\n pthread_create(&threads[1], NULL, My_Func, (void *)3);\n pthread_create(&threads[2], NULL, My_Func, (void *)4);\n pthread_create(&threads[3], NULL, My_Func, (void *)5);\n pthread_create(&threads[4], NULL, My_Func, (void *)0);\n pthread_create(&threads[5], NULL, My_Func, (void *)1);\n\n for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }\n printf ("Main(): Waited on %d threads. Done.\n", 6);\n pthread_exit (NULL);\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[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_mutex, NULL);\n\n pthread_create(&threads[0],NULL, My_Func, (void *)2);\n pthread_create(&threads[1], NULL, My_Func, (void *)3);\n pthread_create(&threads[2], NULL, My_Func, (void *)4);\n pthread_create(&threads[3], NULL, My_Func, (void *)5);\n pthread_create(&threads[4], NULL, My_Func, (void *)0);\n pthread_create(&threads[5], NULL, My_Func, (void *)1);\n\n for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }\n printf ("Main(): Waited on %d threads. Done.\n", 6);\n pthread_exit (NULL);\n\n}" ({) "{" (declaration) "int i, rc;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "rc" (;) ";" (declaration) "pthread_t threads[6];" (type_identifier) "pthread_t" (array_declarator) "threads[6]" (identifier) "threads" ([) "[" (number_literal) "6" (]) "]" (;) ";" (expression_statement) "pthread_mutex_init(&count_mutex, NULL);" (call_expression) "pthread_mutex_init(&count_mutex, NULL)" (identifier) "pthread_mutex_init" (argument_list) "(&count_mutex, NULL)" (() "(" (pointer_expression) "&count_mutex" (&) "&" (identifier) "count_mutex" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[0],NULL, My_Func, (void *)2);" (call_expression) "pthread_create(&threads[0],NULL, My_Func, (void *)2)" (identifier) "pthread_create" (argument_list) "(&threads[0],NULL, My_Func, (void *)2)" (() "(" (pointer_expression) "&threads[0]" (&) "&" (subscript_expression) "threads[0]" (identifier) "threads" ([) "[" (number_literal) "0" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)2" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[1], NULL, My_Func, (void *)3);" (call_expression) "pthread_create(&threads[1], NULL, My_Func, (void *)3)" (identifier) "pthread_create" (argument_list) "(&threads[1], NULL, My_Func, (void *)3)" (() "(" (pointer_expression) "&threads[1]" (&) "&" (subscript_expression) "threads[1]" (identifier) "threads" ([) "[" (number_literal) "1" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)3" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "3" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[2], NULL, My_Func, (void *)4);" (call_expression) "pthread_create(&threads[2], NULL, My_Func, (void *)4)" (identifier) "pthread_create" (argument_list) "(&threads[2], NULL, My_Func, (void *)4)" (() "(" (pointer_expression) "&threads[2]" (&) "&" (subscript_expression) "threads[2]" (identifier) "threads" ([) "[" (number_literal) "2" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)4" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "4" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[3], NULL, My_Func, (void *)5);" (call_expression) "pthread_create(&threads[3], NULL, My_Func, (void *)5)" (identifier) "pthread_create" (argument_list) "(&threads[3], NULL, My_Func, (void *)5)" (() "(" (pointer_expression) "&threads[3]" (&) "&" (subscript_expression) "threads[3]" (identifier) "threads" ([) "[" (number_literal) "3" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)5" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "5" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[4], NULL, My_Func, (void *)0);" (call_expression) "pthread_create(&threads[4], NULL, My_Func, (void *)0)" (identifier) "pthread_create" (argument_list) "(&threads[4], NULL, My_Func, (void *)0)" (() "(" (pointer_expression) "&threads[4]" (&) "&" (subscript_expression) "threads[4]" (identifier) "threads" ([) "[" (number_literal) "4" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)0" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "pthread_create(&threads[5], NULL, My_Func, (void *)1);" (call_expression) "pthread_create(&threads[5], NULL, My_Func, (void *)1)" (identifier) "pthread_create" (argument_list) "(&threads[5], NULL, My_Func, (void *)1)" (() "(" (pointer_expression) "&threads[5]" (&) "&" (subscript_expression) "threads[5]" (identifier) "threads" ([) "[" (number_literal) "5" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "My_Func" (,) "," (cast_expression) "(void *)1" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "1" ()) ")" (;) ";" (for_statement) "for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 6" (identifier) "i" (<) "<" (number_literal) "6" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n pthread_join(threads[i], NULL);\n }" ({) "{" (expression_statement) "pthread_join(threads[i], NULL);" (call_expression) "pthread_join(threads[i], NULL)" (identifier) "pthread_join" (argument_list) "(threads[i], NULL)" (() "(" (subscript_expression) "threads[i]" (identifier) "threads" ([) "[" (identifier) "i" (]) "]" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}" (expression_statement) "printf ("Main(): Waited on %d threads. Done.\n", 6);" (call_expression) "printf ("Main(): Waited on %d threads. Done.\n", 6)" (identifier) "printf" (argument_list) "("Main(): Waited on %d threads. Done.\n", 6)" (() "(" (string_literal) ""Main(): Waited on %d threads. Done.\n"" (") """ (string_content) "Main(): Waited on %d threads. Done." (escape_sequence) "\n" (") """ (,) "," (number_literal) "6" ()) ")" (;) ";" (expression_statement) "pthread_exit (NULL);" (call_expression) "pthread_exit (NULL)" (identifier) "pthread_exit" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (}) "}"
391
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 28.27, "nodes": 229, "errors": 0, "source_hash": "a26b4be2918bfbbfc581b8698ac045b043057f78c3c034118b90b3264d62f45e", "categorized_nodes": 138}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <pthread.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": "<pthread.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"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": "declaration", "text": "int A = 100;", "parent": null, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 12}}, {"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": "init_declarator", "text": "A = 100", "parent": 9, "children": [12, 13, 14], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 11}}, {"id": 12, "type": "identifier", "text": "A", "parent": 11, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 5}}, {"id": 13, "type": "=", "text": "=", "parent": 11, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 7}}, {"id": 14, "type": "number_literal", "text": "100", "parent": 11, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 11}}, {"id": 15, "type": "declaration", "text": "pthread_mutex_t count_mutex;", "parent": null, "children": [16, 17], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 28}}, {"id": 16, "type": "type_identifier", "text": "pthread_mutex_t", "parent": 15, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 15}}, {"id": 17, "type": "identifier", "text": "count_mutex", "parent": 15, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 27}}, {"id": 18, "type": "function_definition", "text": "void *My_Func(void *idp) \n{\n\tlong my_id = (long)idp;\n\tpthread_mutex_lock(&count_mutex);\n \tprintf(\"Starting watch_count(): thread %ld\\n\", my_id);\n\tA++;\n\n\tprintf(\"Hi! Welcome\\n Value of A is %d\\n\",A);\n\n\tpthread_mutex_unlock(&count_mutex);\n\tpthread_exit(NULL);\n}", "parent": null, "children": [19, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 20, "type": "pointer_declarator", "text": "*My_Func(void *idp)", "parent": 18, "children": [21, 22], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 24}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 6}}, {"id": 22, "type": "function_declarator", "text": "My_Func(void *idp)", "parent": 20, "children": [23, 24], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 24}}, {"id": 23, "type": "identifier", "text": "My_Func", "parent": 22, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 13}}, {"id": 24, "type": "parameter_list", "text": "(void *idp)", "parent": 22, "children": [25], "start_point": {"row": 8, "column": 13}, "end_point": {"row": 8, "column": 24}}, {"id": 25, "type": "parameter_declaration", "text": "void *idp", "parent": 24, "children": [26, 27], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 23}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 18}}, {"id": 27, "type": "pointer_declarator", "text": "*idp", "parent": 25, "children": [28, 29], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 23}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 20}}, {"id": 29, "type": "identifier", "text": "idp", "parent": 27, "children": [], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 23}}, {"id": 30, "type": "declaration", "text": "long my_id = (long)idp;", "parent": 18, "children": [31, 33], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 24}}, {"id": 31, "type": "sized_type_specifier", "text": "long", "parent": 30, "children": [32], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 32, "type": "long", "text": "long", "parent": 31, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 33, "type": "init_declarator", "text": "my_id = (long)idp", "parent": 30, "children": [34, 35, 36], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 23}}, {"id": 34, "type": "identifier", "text": "my_id", "parent": 33, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 13}}, {"id": 36, "type": "cast_expression", "text": "(long)idp", "parent": 33, "children": [37, 40], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 23}}, {"id": 37, "type": "type_descriptor", "text": "long", "parent": 36, "children": [38], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 19}}, {"id": 38, "type": "sized_type_specifier", "text": "long", "parent": 37, "children": [39], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 19}}, {"id": 39, "type": "long", "text": "long", "parent": 38, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 19}}, {"id": 40, "type": "identifier", "text": "idp", "parent": 36, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 23}}, {"id": 41, "type": "call_expression", "text": "pthread_mutex_lock(&count_mutex)", "parent": 18, "children": [42, 43], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 33}}, {"id": 42, "type": "identifier", "text": "pthread_mutex_lock", "parent": 41, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 19}}, {"id": 43, "type": "argument_list", "text": "(&count_mutex)", "parent": 41, "children": [44], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 33}}, {"id": 44, "type": "pointer_expression", "text": "&count_mutex", "parent": 43, "children": [45], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 32}}, {"id": 45, "type": "identifier", "text": "count_mutex", "parent": 44, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 32}}, {"id": 46, "type": "call_expression", "text": "printf(\"Starting watch_count(): thread %ld\\n\", my_id)", "parent": 18, "children": [47, 48], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 56}}, {"id": 47, "type": "identifier", "text": "printf", "parent": 46, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 9}}, {"id": 48, "type": "argument_list", "text": "(\"Starting watch_count(): thread %ld\\n\", my_id)", "parent": 46, "children": [49, 51], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 56}}, {"id": 49, "type": "string_literal", "text": "\"Starting watch_count(): thread %ld\\n\"", "parent": 48, "children": [50], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 48}}, {"id": 50, "type": "escape_sequence", "text": "\\n", "parent": 49, "children": [], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 47}}, {"id": 51, "type": "identifier", "text": "my_id", "parent": 48, "children": [], "start_point": {"row": 12, "column": 50}, "end_point": {"row": 12, "column": 55}}, {"id": 52, "type": "update_expression", "text": "A++", "parent": 18, "children": [53, 54], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 53, "type": "identifier", "text": "A", "parent": 52, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 2}}, {"id": 54, "type": "++", "text": "++", "parent": 52, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 4}}, {"id": 55, "type": "call_expression", "text": "printf(\"Hi! Welcome\\n Value of A is %d\\n\",A)", "parent": 18, "children": [56, 57], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 45}}, {"id": 56, "type": "identifier", "text": "printf", "parent": 55, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 7}}, {"id": 57, "type": "argument_list", "text": "(\"Hi! Welcome\\n Value of A is %d\\n\",A)", "parent": 55, "children": [58, 61], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 45}}, {"id": 58, "type": "string_literal", "text": "\"Hi! Welcome\\n Value of A is %d\\n\"", "parent": 57, "children": [59, 60], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 42}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 22}}, {"id": 60, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 41}}, {"id": 61, "type": "identifier", "text": "A", "parent": 57, "children": [], "start_point": {"row": 15, "column": 43}, "end_point": {"row": 15, "column": 44}}, {"id": 62, "type": "call_expression", "text": "pthread_mutex_unlock(&count_mutex)", "parent": 18, "children": [63, 64], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 35}}, {"id": 63, "type": "identifier", "text": "pthread_mutex_unlock", "parent": 62, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 21}}, {"id": 64, "type": "argument_list", "text": "(&count_mutex)", "parent": 62, "children": [65], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 35}}, {"id": 65, "type": "pointer_expression", "text": "&count_mutex", "parent": 64, "children": [66], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 34}}, {"id": 66, "type": "identifier", "text": "count_mutex", "parent": 65, "children": [], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 34}}, {"id": 67, "type": "call_expression", "text": "pthread_exit(NULL)", "parent": 18, "children": [68, 69], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 19}}, {"id": 68, "type": "identifier", "text": "pthread_exit", "parent": 67, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 13}}, {"id": 69, "type": "argument_list", "text": "(NULL)", "parent": 67, "children": [70], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 19}}, {"id": 70, "type": "null", "text": "NULL", "parent": 69, "children": [71], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 18}}, {"id": 71, "type": "NULL", "text": "NULL", "parent": 70, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 18}}, {"id": 72, "type": "function_definition", "text": "int main(int argc, char *argv[])\n{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_mutex, NULL);\n\n pthread_create(&threads[0],NULL, My_Func, (void *)2);\n pthread_create(&threads[1], NULL, My_Func, (void *)3);\n pthread_create(&threads[2], NULL, My_Func, (void *)4);\n pthread_create(&threads[3], NULL, My_Func, (void *)5);\n pthread_create(&threads[4], NULL, My_Func, (void *)0);\n pthread_create(&threads[5], NULL, My_Func, (void *)1);\n\n for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }\n printf (\"Main(): Waited on %d threads. Done.\\n\", 6);\n pthread_exit (NULL);\n\n}", "parent": null, "children": [73, 74], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 74, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 72, "children": [75, 76], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 32}}, {"id": 75, "type": "identifier", "text": "main", "parent": 74, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 76, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 74, "children": [77, 80], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 32}}, {"id": 77, "type": "parameter_declaration", "text": "int argc", "parent": 76, "children": [78, 79], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 78, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 12}}, {"id": 79, "type": "identifier", "text": "argc", "parent": 77, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 17}}, {"id": 80, "type": "parameter_declaration", "text": "char *argv[]", "parent": 76, "children": [81, 82], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 31}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 23}}, {"id": 82, "type": "pointer_declarator", "text": "*argv[]", "parent": 80, "children": [83, 84], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 31}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 84, "type": "array_declarator", "text": "argv[]", "parent": 82, "children": [85], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 31}}, {"id": 85, "type": "identifier", "text": "argv", "parent": 84, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 29}}, {"id": 86, "type": "declaration", "text": "int i, rc;", "parent": 72, "children": [87, 88, 89], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 12}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 5}}, {"id": 88, "type": "identifier", "text": "i", "parent": 86, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 89, "type": "identifier", "text": "rc", "parent": 86, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 11}}, {"id": 90, "type": "declaration", "text": "pthread_t threads[6];", "parent": 72, "children": [91, 92], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 23}}, {"id": 91, "type": "type_identifier", "text": "pthread_t", "parent": 90, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 11}}, {"id": 92, "type": "array_declarator", "text": "threads[6]", "parent": 90, "children": [93, 94], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 22}}, {"id": 93, "type": "identifier", "text": "threads", "parent": 92, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 19}}, {"id": 94, "type": "number_literal", "text": "6", "parent": 92, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 95, "type": "call_expression", "text": "pthread_mutex_init(&count_mutex, NULL)", "parent": 72, "children": [96, 97], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 40}}, {"id": 96, "type": "identifier", "text": "pthread_mutex_init", "parent": 95, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 20}}, {"id": 97, "type": "argument_list", "text": "(&count_mutex, NULL)", "parent": 95, "children": [98, 100], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 40}}, {"id": 98, "type": "pointer_expression", "text": "&count_mutex", "parent": 97, "children": [99], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 33}}, {"id": 99, "type": "identifier", "text": "count_mutex", "parent": 98, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 33}}, {"id": 100, "type": "null", "text": "NULL", "parent": 97, "children": [101], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 39}}, {"id": 101, "type": "NULL", "text": "NULL", "parent": 100, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 39}}, {"id": 102, "type": "call_expression", "text": "pthread_create(&threads[0],NULL, My_Func, (void *)2)", "parent": 72, "children": [103, 104], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 54}}, {"id": 103, "type": "identifier", "text": "pthread_create", "parent": 102, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 16}}, {"id": 104, "type": "argument_list", "text": "(&threads[0],NULL, My_Func, (void *)2)", "parent": 102, "children": [105, 109, 111, 112], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 54}}, {"id": 105, "type": "pointer_expression", "text": "&threads[0]", "parent": 104, "children": [106], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 28}}, {"id": 106, "type": "subscript_expression", "text": "threads[0]", "parent": 105, "children": [107, 108], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 28}}, {"id": 107, "type": "identifier", "text": "threads", "parent": 106, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 25}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 106, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 109, "type": "null", "text": "NULL", "parent": 104, "children": [110], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 33}}, {"id": 110, "type": "NULL", "text": "NULL", "parent": 109, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 33}}, {"id": 111, "type": "identifier", "text": "My_Func", "parent": 104, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 42}}, {"id": 112, "type": "cast_expression", "text": "(void *)2", "parent": 104, "children": [113, 117], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 53}}, {"id": 113, "type": "type_descriptor", "text": "void *", "parent": 112, "children": [114, 115], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 51}}, {"id": 114, "type": "primitive_type", "text": "void", "parent": 113, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 49}}, {"id": 115, "type": "abstract_pointer_declarator", "text": "*", "parent": 113, "children": [116], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 51}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 27, "column": 50}, "end_point": {"row": 27, "column": 51}}, {"id": 117, "type": "number_literal", "text": "2", "parent": 112, "children": [], "start_point": {"row": 27, "column": 52}, "end_point": {"row": 27, "column": 53}}, {"id": 118, "type": "call_expression", "text": "pthread_create(&threads[1], NULL, My_Func, (void *)3)", "parent": 72, "children": [119, 120], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 55}}, {"id": 119, "type": "identifier", "text": "pthread_create", "parent": 118, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 16}}, {"id": 120, "type": "argument_list", "text": "(&threads[1], NULL, My_Func, (void *)3)", "parent": 118, "children": [121, 125, 127, 128], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 55}}, {"id": 121, "type": "pointer_expression", "text": "&threads[1]", "parent": 120, "children": [122], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 28}}, {"id": 122, "type": "subscript_expression", "text": "threads[1]", "parent": 121, "children": [123, 124], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 28}}, {"id": 123, "type": "identifier", "text": "threads", "parent": 122, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 25}}, {"id": 124, "type": "number_literal", "text": "1", "parent": 122, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 27}}, {"id": 125, "type": "null", "text": "NULL", "parent": 120, "children": [126], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 34}}, {"id": 126, "type": "NULL", "text": "NULL", "parent": 125, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 34}}, {"id": 127, "type": "identifier", "text": "My_Func", "parent": 120, "children": [], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 43}}, {"id": 128, "type": "cast_expression", "text": "(void *)3", "parent": 120, "children": [129, 133], "start_point": {"row": 28, "column": 45}, "end_point": {"row": 28, "column": 54}}, {"id": 129, "type": "type_descriptor", "text": "void *", "parent": 128, "children": [130, 131], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 52}}, {"id": 130, "type": "primitive_type", "text": "void", "parent": 129, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 50}}, {"id": 131, "type": "abstract_pointer_declarator", "text": "*", "parent": 129, "children": [132], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 52}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 52}}, {"id": 133, "type": "number_literal", "text": "3", "parent": 128, "children": [], "start_point": {"row": 28, "column": 53}, "end_point": {"row": 28, "column": 54}}, {"id": 134, "type": "call_expression", "text": "pthread_create(&threads[2], NULL, My_Func, (void *)4)", "parent": 72, "children": [135, 136], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 55}}, {"id": 135, "type": "identifier", "text": "pthread_create", "parent": 134, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 16}}, {"id": 136, "type": "argument_list", "text": "(&threads[2], NULL, My_Func, (void *)4)", "parent": 134, "children": [137, 141, 143, 144], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 55}}, {"id": 137, "type": "pointer_expression", "text": "&threads[2]", "parent": 136, "children": [138], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 28}}, {"id": 138, "type": "subscript_expression", "text": "threads[2]", "parent": 137, "children": [139, 140], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 28}}, {"id": 139, "type": "identifier", "text": "threads", "parent": 138, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 25}}, {"id": 140, "type": "number_literal", "text": "2", "parent": 138, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 141, "type": "null", "text": "NULL", "parent": 136, "children": [142], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 34}}, {"id": 142, "type": "NULL", "text": "NULL", "parent": 141, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 34}}, {"id": 143, "type": "identifier", "text": "My_Func", "parent": 136, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 43}}, {"id": 144, "type": "cast_expression", "text": "(void *)4", "parent": 136, "children": [145, 149], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 54}}, {"id": 145, "type": "type_descriptor", "text": "void *", "parent": 144, "children": [146, 147], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 52}}, {"id": 146, "type": "primitive_type", "text": "void", "parent": 145, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 50}}, {"id": 147, "type": "abstract_pointer_declarator", "text": "*", "parent": 145, "children": [148], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 52}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 29, "column": 51}, "end_point": {"row": 29, "column": 52}}, {"id": 149, "type": "number_literal", "text": "4", "parent": 144, "children": [], "start_point": {"row": 29, "column": 53}, "end_point": {"row": 29, "column": 54}}, {"id": 150, "type": "call_expression", "text": "pthread_create(&threads[3], NULL, My_Func, (void *)5)", "parent": 72, "children": [151, 152], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 55}}, {"id": 151, "type": "identifier", "text": "pthread_create", "parent": 150, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 16}}, {"id": 152, "type": "argument_list", "text": "(&threads[3], NULL, My_Func, (void *)5)", "parent": 150, "children": [153, 157, 159, 160], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 55}}, {"id": 153, "type": "pointer_expression", "text": "&threads[3]", "parent": 152, "children": [154], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 28}}, {"id": 154, "type": "subscript_expression", "text": "threads[3]", "parent": 153, "children": [155, 156], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 28}}, {"id": 155, "type": "identifier", "text": "threads", "parent": 154, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 25}}, {"id": 156, "type": "number_literal", "text": "3", "parent": 154, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 27}}, {"id": 157, "type": "null", "text": "NULL", "parent": 152, "children": [158], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 34}}, {"id": 158, "type": "NULL", "text": "NULL", "parent": 157, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 34}}, {"id": 159, "type": "identifier", "text": "My_Func", "parent": 152, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 43}}, {"id": 160, "type": "cast_expression", "text": "(void *)5", "parent": 152, "children": [161, 165], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 54}}, {"id": 161, "type": "type_descriptor", "text": "void *", "parent": 160, "children": [162, 163], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 52}}, {"id": 162, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 50}}, {"id": 163, "type": "abstract_pointer_declarator", "text": "*", "parent": 161, "children": [164], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 52}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 52}}, {"id": 165, "type": "number_literal", "text": "5", "parent": 160, "children": [], "start_point": {"row": 30, "column": 53}, "end_point": {"row": 30, "column": 54}}, {"id": 166, "type": "call_expression", "text": "pthread_create(&threads[4], NULL, My_Func, (void *)0)", "parent": 72, "children": [167, 168], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 55}}, {"id": 167, "type": "identifier", "text": "pthread_create", "parent": 166, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 16}}, {"id": 168, "type": "argument_list", "text": "(&threads[4], NULL, My_Func, (void *)0)", "parent": 166, "children": [169, 173, 175, 176], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 55}}, {"id": 169, "type": "pointer_expression", "text": "&threads[4]", "parent": 168, "children": [170], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 28}}, {"id": 170, "type": "subscript_expression", "text": "threads[4]", "parent": 169, "children": [171, 172], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 28}}, {"id": 171, "type": "identifier", "text": "threads", "parent": 170, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 25}}, {"id": 172, "type": "number_literal", "text": "4", "parent": 170, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 27}}, {"id": 173, "type": "null", "text": "NULL", "parent": 168, "children": [174], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 34}}, {"id": 174, "type": "NULL", "text": "NULL", "parent": 173, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 34}}, {"id": 175, "type": "identifier", "text": "My_Func", "parent": 168, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 43}}, {"id": 176, "type": "cast_expression", "text": "(void *)0", "parent": 168, "children": [177, 181], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 54}}, {"id": 177, "type": "type_descriptor", "text": "void *", "parent": 176, "children": [178, 179], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 52}}, {"id": 178, "type": "primitive_type", "text": "void", "parent": 177, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 50}}, {"id": 179, "type": "abstract_pointer_declarator", "text": "*", "parent": 177, "children": [180], "start_point": {"row": 31, "column": 51}, "end_point": {"row": 31, "column": 52}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 31, "column": 51}, "end_point": {"row": 31, "column": 52}}, {"id": 181, "type": "number_literal", "text": "0", "parent": 176, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 182, "type": "call_expression", "text": "pthread_create(&threads[5], NULL, My_Func, (void *)1)", "parent": 72, "children": [183, 184], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 55}}, {"id": 183, "type": "identifier", "text": "pthread_create", "parent": 182, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 16}}, {"id": 184, "type": "argument_list", "text": "(&threads[5], NULL, My_Func, (void *)1)", "parent": 182, "children": [185, 189, 191, 192], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 55}}, {"id": 185, "type": "pointer_expression", "text": "&threads[5]", "parent": 184, "children": [186], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 28}}, {"id": 186, "type": "subscript_expression", "text": "threads[5]", "parent": 185, "children": [187, 188], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 28}}, {"id": 187, "type": "identifier", "text": "threads", "parent": 186, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 25}}, {"id": 188, "type": "number_literal", "text": "5", "parent": 186, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 189, "type": "null", "text": "NULL", "parent": 184, "children": [190], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 34}}, {"id": 190, "type": "NULL", "text": "NULL", "parent": 189, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 34}}, {"id": 191, "type": "identifier", "text": "My_Func", "parent": 184, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 43}}, {"id": 192, "type": "cast_expression", "text": "(void *)1", "parent": 184, "children": [193, 197], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 54}}, {"id": 193, "type": "type_descriptor", "text": "void *", "parent": 192, "children": [194, 195], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 52}}, {"id": 194, "type": "primitive_type", "text": "void", "parent": 193, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 50}}, {"id": 195, "type": "abstract_pointer_declarator", "text": "*", "parent": 193, "children": [196], "start_point": {"row": 32, "column": 51}, "end_point": {"row": 32, "column": 52}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 32, "column": 51}, "end_point": {"row": 32, "column": 52}}, {"id": 197, "type": "number_literal", "text": "1", "parent": 192, "children": [], "start_point": {"row": 32, "column": 53}, "end_point": {"row": 32, "column": 54}}, {"id": 198, "type": "for_statement", "text": "for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }", "parent": 72, "children": [199, 203, 207], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 36, "column": 3}}, {"id": 199, "type": "assignment_expression", "text": "i = 0", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 12}}, {"id": 200, "type": "identifier", "text": "i", "parent": 199, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 8}}, {"id": 201, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 10}}, {"id": 202, "type": "number_literal", "text": "0", "parent": 199, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 12}}, {"id": 203, "type": "binary_expression", "text": "i < 6", "parent": 198, "children": [204, 205, 206], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 19}}, {"id": 204, "type": "identifier", "text": "i", "parent": 203, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 205, "type": "<", "text": "<", "parent": 203, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 206, "type": "number_literal", "text": "6", "parent": 203, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 207, "type": "update_expression", "text": "i++", "parent": 198, "children": [208, 209], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 24}}, {"id": 208, "type": "identifier", "text": "i", "parent": 207, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 22}}, {"id": 209, "type": "++", "text": "++", "parent": 207, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 210, "type": "call_expression", "text": "pthread_join(threads[i], NULL)", "parent": 198, "children": [211, 212], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 34}}, {"id": 211, "type": "identifier", "text": "pthread_join", "parent": 210, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 16}}, {"id": 212, "type": "argument_list", "text": "(threads[i], NULL)", "parent": 210, "children": [213, 216], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 34}}, {"id": 213, "type": "subscript_expression", "text": "threads[i]", "parent": 212, "children": [214, 215], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 27}}, {"id": 214, "type": "identifier", "text": "threads", "parent": 213, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 24}}, {"id": 215, "type": "identifier", "text": "i", "parent": 213, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 26}}, {"id": 216, "type": "null", "text": "NULL", "parent": 212, "children": [217], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 33}}, {"id": 217, "type": "NULL", "text": "NULL", "parent": 216, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 33}}, {"id": 218, "type": "call_expression", "text": "printf (\"Main(): Waited on %d threads. Done.\\n\", 6)", "parent": 72, "children": [219, 220], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 54}}, {"id": 219, "type": "identifier", "text": "printf", "parent": 218, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 8}}, {"id": 220, "type": "argument_list", "text": "(\"Main(): Waited on %d threads. Done.\\n\", 6)", "parent": 218, "children": [221, 223], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 54}}, {"id": 221, "type": "string_literal", "text": "\"Main(): Waited on %d threads. Done.\\n\"", "parent": 220, "children": [222], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 50}}, {"id": 222, "type": "escape_sequence", "text": "\\n", "parent": 221, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 49}}, {"id": 223, "type": "number_literal", "text": "6", "parent": 220, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 53}}, {"id": 224, "type": "call_expression", "text": "pthread_exit (NULL)", "parent": 72, "children": [225, 226], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 21}}, {"id": 225, "type": "identifier", "text": "pthread_exit", "parent": 224, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 14}}, {"id": 226, "type": "argument_list", "text": "(NULL)", "parent": 224, "children": [227], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 21}}, {"id": 227, "type": "null", "text": "NULL", "parent": 226, "children": [228], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}, {"id": 228, "type": "NULL", "text": "NULL", "parent": 227, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 20}}]}, "node_categories": {"declarations": {"functions": [18, 22, 72, 74], "variables": [9, 15, 25, 30, 77, 80, 86, 90], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [36, 41, 44, 46, 52, 55, 62, 65, 67, 95, 98, 102, 105, 106, 112, 118, 121, 122, 128, 134, 137, 138, 144, 150, 153, 154, 160, 166, 169, 170, 176, 182, 185, 186, 192, 203, 207, 210, 213, 218, 224], "assignments": [199], "loops": [198], "conditionals": [12, 16, 17, 23, 29, 31, 34, 38, 40, 42, 45, 47, 51, 53, 56, 61, 63, 66, 68, 75, 79, 85, 88, 89, 91, 93, 96, 99, 103, 107, 111, 119, 123, 127, 135, 139, 143, 151, 155, 159, 167, 171, 175, 183, 187, 191, 200, 204, 208, 211, 214, 215, 219, 225], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 14, 49, 58, 94, 108, 117, 124, 133, 140, 149, 156, 165, 172, 181, 188, 197, 202, 206, 221, 223], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "*My_Func", "text_snippet": "void *My_Func(void *idp) \n{\n\tlong my_id = (long)idp;\n\tpthread_mutex_lock(&count_mutex);\n \tprintf(\"S"}, {"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "My_Func(void *idp)"}, {"node_id": 72, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char *argv[])\n{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <pthread.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"}]}, "original_source_code": "#include <pthread.h>\n#include <stdio.h>\n#include <stdlib.h>\n\nint A = 100;\npthread_mutex_t count_mutex;\n\n\nvoid *My_Func(void *idp) \n{\n\tlong my_id = (long)idp;\n\tpthread_mutex_lock(&count_mutex);\n \tprintf(\"Starting watch_count(): thread %ld\\n\", my_id);\n\tA++;\n\n\tprintf(\"Hi! Welcome\\n Value of A is %d\\n\",A);\n\n\tpthread_mutex_unlock(&count_mutex);\n\tpthread_exit(NULL);\n}\n\nint main(int argc, char *argv[])\n{\n int i, rc;\n pthread_t threads[6];\n pthread_mutex_init(&count_mutex, NULL);\n\n pthread_create(&threads[0],NULL, My_Func, (void *)2);\n pthread_create(&threads[1], NULL, My_Func, (void *)3);\n pthread_create(&threads[2], NULL, My_Func, (void *)4);\n pthread_create(&threads[3], NULL, My_Func, (void *)5);\n pthread_create(&threads[4], NULL, My_Func, (void *)0);\n pthread_create(&threads[5], NULL, My_Func, (void *)1);\n\n for (i = 0; i < 6; i++) {\n pthread_join(threads[i], NULL);\n }\n printf (\"Main(): Waited on %d threads. Done.\\n\", 6);\n pthread_exit (NULL);\n\n}\n\n\n"}
80,728
c
/*------------------------------------------------------------------------- * * parse_metaq.c * POSTGRES C - parser support for meta querying language constructs. These are: * XsltFuncExpr: call to an XSLT function. This is translated into a call to the * generic xslt_process function of postgres. The definition of the * XSLT script implementing the function is fetched from relation xslt_funcs. * ThisExpr : is transformed into an XML constant that is the XML representation of * the current query tree. * * Portions Copyright (c) 2008 <NAME> * * * IDENTIFICATION * $PostgreSQL: /postgres/src/backend/metaq/parse_metaq.c,v 1.542 29.09.2009 19:29:04 bglav Exp $ * * NOTES * * *------------------------------------------------------------------------- */ #include "postgres.h" #include "catalog/namespace.h" #include "catalog/pg_type.h" #include "parser/parse_node.h" #include "parser/parse_expr.h" #include "parser/parse_func.h" #include "parser/parse_coerce.h" #include "parser/parse_relation.h" #include "parser/parsetree.h" #include "nodes/makefuncs.h" #include "nodes/primnodes.h" #include "fmgr.h" #include "utils/builtins.h" #include "optimizer/clauses.h" #include "utils/xml.h" #include "provrewrite/prov_nodes.h" #include "provrewrite/prov_util.h" #include "metaq/parse_metaq.h" #include "metaq/xmlqtree.h" /* types */ typedef struct ThisWalkerContext { Query *topQuery; Query *curQuery; } ThisWalkerContext; /* macros */ #define MAKE_THISCONTEXT(context, top, cur) \ do { \ context = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \ context->topQuery = (top); \ context->curQuery = (cur); \ } while (0) /* functions */ static Node *generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt); static Node *handleThisExprMutator (Node *node, void *context); static Node *transformThisExpr (ThisExpr *this, ThisWalkerContext *context); /* * */ Node * transformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt) { FuncExpr *result; Oid xsltOid; Oid paramOids[2] = {TEXTOID, TEXTOID}; List *args; Node *param; Oid paramType; /* inform the analyzer of the new sublink */ pstate->p_hasSubLinks = true; /* get xsltOid */ xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true); //TODO cache /* analyze the parameter and if necessary cast it to text */ param = transformExpr(pstate, xslt->param); paramType = exprType(param); if (paramType != TEXTOID) { param = coerce_to_target_type(pstate, param, paramType, TEXTOID, -1, COERCION_EXPLICIT, COERCE_IMPLICIT_CAST); if (!param) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_PARAMETER), errmsg("cannot coerce type %s to text", format_type_be(paramType)))); } /* generate args */ args = list_make2( param, generateXsltLookup(pstate, xslt) ); result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL); return (Node *) result; } /* * */ static Node * generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt) { RelabelType *caster; SubLink *result; Query *query; RangeTblRef *rtRef; RangeTblEntry *rte; RangeVar *rangeVar; Const *funcNameConst; Datum constVal; result = makeNode(SubLink); query = makeQuery (); result->operName = NIL; result->subLinkType = EXPR_SUBLINK; result->testexpr = NULL; result->subselect = (Node *) query; /* create target entry (the XSLT-script) */ query->targetList = list_make1(makeTargetEntry( (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false)); // rte = makeRte(RTE_RELATION); // rte->relid = RelnameGetRelid("xslt_funcs"); /* create range table entry for xslt_funcs */ rangeVar = makeNode(RangeVar); rangeVar->relname = "xslt_funcs"; rangeVar->catalogname = NULL; rangeVar->schemaname = NULL; rangeVar->isProvBase = false; rangeVar->istemp = false; rangeVar->provAttrs = NIL; rangeVar->inhOpt = INH_NO; rangeVar->alias = NULL; rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true); query->rtable = list_make1(rte); /* create jointree and qual that checks for the correct function name */ MAKE_RTREF(rtRef, 1); query->jointree->fromlist = list_make1(rtRef); constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName)); funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false); query->jointree->quals = createEqualityConditionForNodes( (Node *) makeVar(1,1,TEXTOID,-1,0), (Node *) funcNameConst); caster = makeNode(RelabelType); caster->arg = (Expr *) result; caster->resulttype = TEXTOID; caster->resulttypmod = -1; caster->relabelformat = COERCE_EXPLICIT_CAST; return (Node *) caster; } /* * */ Query * handleThisExprs (Query *query) { ThisWalkerContext *context; MAKE_THISCONTEXT(context, query, query); query = (Query *) handleThisExprMutator((Node *) query, context); pfree(context); return query; } /* * */ static Node * handleThisExprMutator (Node *node, void *context) { ThisWalkerContext *newContext; Node *result; if (node == NULL) return false; if (IsA(node, Query)) { MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node); result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY); pfree(newContext); return result; } else if (IsA(node,ThisExpr)) return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context); return expression_tree_mutator(node, handleThisExprMutator, context); } /* * */ static Node * transformThisExpr (ThisExpr *this, ThisWalkerContext *context) { Const *cons; Datum xmlDatum; Query *queryPart; char *typePart; int childNum; RangeTblEntry *rte; if(strcmp(this->thisType, "local") == 0) queryPart = context->curQuery; else if (strcmp(this->thisType, "top") == 0) queryPart = context->topQuery; else if (strncmp(this->thisType, "child", 5) == 0) { typePart = this->thisType + 4; queryPart = context->curQuery; while(*(++typePart)) { if (!isdigit(*typePart)) ;//TODO ERROR childNum = *typePart - '0'; if (childNum < 1 || childNum > list_length(queryPart->rtable)) ;//TODO error rte = rt_fetch(childNum, queryPart->rtable); if (!rte->rtekind == RTE_SUBQUERY) ;//TODO error queryPart = rte->subquery; } } else { //TODO ERROR unknown this type } xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart)); cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false); return (Node *) cons; }
28.58
223
(translation_unit) "/*-------------------------------------------------------------------------\n *\n * parse_metaq.c\n * POSTGRES C - parser support for meta querying language constructs. These are:\n * XsltFuncExpr: call to an XSLT function. This is translated into a call to the\n * generic xslt_process function of postgres. The definition of the\n * XSLT script implementing the function is fetched from relation xslt_funcs.\n * ThisExpr : is transformed into an XML constant that is the XML representation of\n * the current query tree.\n *\n * Portions Copyright (c) 2008 <NAME>\n *\n *\n * IDENTIFICATION\n * $PostgreSQL: /postgres/src/backend/metaq/parse_metaq.c,v 1.542 29.09.2009 19:29:04 bglav Exp $\n *\n * NOTES\n *\n *\n *-------------------------------------------------------------------------\n */\n\n#include "postgres.h"\n\n#include "catalog/namespace.h"\n#include "catalog/pg_type.h"\n#include "parser/parse_node.h"\n#include "parser/parse_expr.h"\n#include "parser/parse_func.h"\n#include "parser/parse_coerce.h"\n#include "parser/parse_relation.h"\n#include "parser/parsetree.h"\n#include "nodes/makefuncs.h"\n#include "nodes/primnodes.h"\n#include "fmgr.h"\n#include "utils/builtins.h"\n#include "optimizer/clauses.h"\n#include "utils/xml.h"\n\n#include "provrewrite/prov_nodes.h"\n#include "provrewrite/prov_util.h"\n#include "metaq/parse_metaq.h"\n#include "metaq/xmlqtree.h"\n\n/* types */\ntypedef struct ThisWalkerContext\n{\n Query *topQuery;\n Query *curQuery;\n} ThisWalkerContext;\n\n\n\n\n/* macros */\n#define MAKE_THISCONTEXT(context, top, cur) \\n do { \\n context = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\n context->topQuery = (top); \\n context->curQuery = (cur); \\n } while (0)\n\n/* functions */\nstatic Node *generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt);\nstatic Node *handleThisExprMutator (Node *node, void *context);\nstatic Node *transformThisExpr (ThisExpr *this, ThisWalkerContext *context);\n\n/*\n *\n */\n\nNode *\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)\n{\n FuncExpr *result;\n Oid xsltOid;\n Oid paramOids[2] = {TEXTOID, TEXTOID};\n List *args;\n Node *param;\n Oid paramType;\n\n /* inform the analyzer of the new sublink */\n pstate->p_hasSubLinks = true;\n\n /* get xsltOid */\n xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true); //TODO cache\n\n /* analyze the parameter and if necessary cast it to text */\n param = transformExpr(pstate, xslt->param);\n paramType = exprType(param);\n\n if (paramType != TEXTOID)\n {\n param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);\n\n if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));\n }\n /* generate args */\n args = list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n );\n\n result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);\n\n return (Node *) result;\n}\n\n/*\n *\n */\n\nstatic Node *\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)\n{\n RelabelType *caster;\n SubLink *result;\n Query *query;\n RangeTblRef *rtRef;\n RangeTblEntry *rte;\n RangeVar *rangeVar;\n Const *funcNameConst;\n Datum constVal;\n\n result = makeNode(SubLink);\n query = makeQuery ();\n\n result->operName = NIL;\n result->subLinkType = EXPR_SUBLINK;\n result->testexpr = NULL;\n result->subselect = (Node *) query;\n\n /* create target entry (the XSLT-script) */\n query->targetList = list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false));\n\n// rte = makeRte(RTE_RELATION);\n// rte->relid = RelnameGetRelid("xslt_funcs");\n\n /* create range table entry for xslt_funcs */\n rangeVar = makeNode(RangeVar);\n\n rangeVar->relname = "xslt_funcs";\n rangeVar->catalogname = NULL;\n rangeVar->schemaname = NULL;\n rangeVar->isProvBase = false;\n rangeVar->istemp = false;\n rangeVar->provAttrs = NIL;\n rangeVar->inhOpt = INH_NO;\n rangeVar->alias = NULL;\n\n rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);\n query->rtable = list_make1(rte);\n\n /* create jointree and qual that checks for the correct function name */\n MAKE_RTREF(rtRef, 1);\n query->jointree->fromlist = list_make1(rtRef);\n\n constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));\n funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);\n query->jointree->quals = createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst);\n\n caster = makeNode(RelabelType);\n caster->arg = (Expr *) result;\n caster->resulttype = TEXTOID;\n caster->resulttypmod = -1;\n caster->relabelformat = COERCE_EXPLICIT_CAST;\n\n return (Node *) caster;\n}\n\n/*\n *\n */\n\nQuery *\nhandleThisExprs (Query *query)\n{\n ThisWalkerContext *context;\n\n MAKE_THISCONTEXT(context, query, query);\n\n query = (Query *) handleThisExprMutator((Node *) query, context);\n\n pfree(context);\n\n return query;\n}\n\n/*\n *\n */\n\nstatic Node *\nhandleThisExprMutator (Node *node, void *context)\n{\n ThisWalkerContext *newContext;\n Node *result;\n\n if (node == NULL)\n return false;\n\n if (IsA(node, Query))\n {\n MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n pfree(newContext);\n\n return result;\n }\n else if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);\n\n return expression_tree_mutator(node, handleThisExprMutator, context);\n}\n\n/*\n *\n */\n\nstatic Node *\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)\n{\n Const *cons;\n Datum xmlDatum;\n Query *queryPart;\n char *typePart;\n int childNum;\n RangeTblEntry *rte;\n\n if(strcmp(this->thisType, "local") == 0)\n queryPart = context->curQuery;\n else if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }\n\n xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));\n\n cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);\n\n return (Node *) cons;\n}\n" (comment) "/*-------------------------------------------------------------------------\n *\n * parse_metaq.c\n * POSTGRES C - parser support for meta querying language constructs. These are:\n * XsltFuncExpr: call to an XSLT function. This is translated into a call to the\n * generic xslt_process function of postgres. The definition of the\n * XSLT script implementing the function is fetched from relation xslt_funcs.\n * ThisExpr : is transformed into an XML constant that is the XML representation of\n * the current query tree.\n *\n * Portions Copyright (c) 2008 <NAME>\n *\n *\n * IDENTIFICATION\n * $PostgreSQL: /postgres/src/backend/metaq/parse_metaq.c,v 1.542 29.09.2009 19:29:04 bglav Exp $\n *\n * NOTES\n *\n *\n *-------------------------------------------------------------------------\n */" (preproc_include) "#include "postgres.h"\n" (#include) "#include" (string_literal) ""postgres.h"" (") """ (string_content) "postgres.h" (") """ (preproc_include) "#include "catalog/namespace.h"\n" (#include) "#include" (string_literal) ""catalog/namespace.h"" (") """ (string_content) "catalog/namespace.h" (") """ (preproc_include) "#include "catalog/pg_type.h"\n" (#include) "#include" (string_literal) ""catalog/pg_type.h"" (") """ (string_content) "catalog/pg_type.h" (") """ (preproc_include) "#include "parser/parse_node.h"\n" (#include) "#include" (string_literal) ""parser/parse_node.h"" (") """ (string_content) "parser/parse_node.h" (") """ (preproc_include) "#include "parser/parse_expr.h"\n" (#include) "#include" (string_literal) ""parser/parse_expr.h"" (") """ (string_content) "parser/parse_expr.h" (") """ (preproc_include) "#include "parser/parse_func.h"\n" (#include) "#include" (string_literal) ""parser/parse_func.h"" (") """ (string_content) "parser/parse_func.h" (") """ (preproc_include) "#include "parser/parse_coerce.h"\n" (#include) "#include" (string_literal) ""parser/parse_coerce.h"" (") """ (string_content) "parser/parse_coerce.h" (") """ (preproc_include) "#include "parser/parse_relation.h"\n" (#include) "#include" (string_literal) ""parser/parse_relation.h"" (") """ (string_content) "parser/parse_relation.h" (") """ (preproc_include) "#include "parser/parsetree.h"\n" (#include) "#include" (string_literal) ""parser/parsetree.h"" (") """ (string_content) "parser/parsetree.h" (") """ (preproc_include) "#include "nodes/makefuncs.h"\n" (#include) "#include" (string_literal) ""nodes/makefuncs.h"" (") """ (string_content) "nodes/makefuncs.h" (") """ (preproc_include) "#include "nodes/primnodes.h"\n" (#include) "#include" (string_literal) ""nodes/primnodes.h"" (") """ (string_content) "nodes/primnodes.h" (") """ (preproc_include) "#include "fmgr.h"\n" (#include) "#include" (string_literal) ""fmgr.h"" (") """ (string_content) "fmgr.h" (") """ (preproc_include) "#include "utils/builtins.h"\n" (#include) "#include" (string_literal) ""utils/builtins.h"" (") """ (string_content) "utils/builtins.h" (") """ (preproc_include) "#include "optimizer/clauses.h"\n" (#include) "#include" (string_literal) ""optimizer/clauses.h"" (") """ (string_content) "optimizer/clauses.h" (") """ (preproc_include) "#include "utils/xml.h"\n" (#include) "#include" (string_literal) ""utils/xml.h"" (") """ (string_content) "utils/xml.h" (") """ (preproc_include) "#include "provrewrite/prov_nodes.h"\n" (#include) "#include" (string_literal) ""provrewrite/prov_nodes.h"" (") """ (string_content) "provrewrite/prov_nodes.h" (") """ (preproc_include) "#include "provrewrite/prov_util.h"\n" (#include) "#include" (string_literal) ""provrewrite/prov_util.h"" (") """ (string_content) "provrewrite/prov_util.h" (") """ (preproc_include) "#include "metaq/parse_metaq.h"\n" (#include) "#include" (string_literal) ""metaq/parse_metaq.h"" (") """ (string_content) "metaq/parse_metaq.h" (") """ (preproc_include) "#include "metaq/xmlqtree.h"\n" (#include) "#include" (string_literal) ""metaq/xmlqtree.h"" (") """ (string_content) "metaq/xmlqtree.h" (") """ (comment) "/* types */" (type_definition) "typedef struct ThisWalkerContext\n{\n Query *topQuery;\n Query *curQuery;\n} ThisWalkerContext;" (typedef) "typedef" (struct_specifier) "struct ThisWalkerContext\n{\n Query *topQuery;\n Query *curQuery;\n}" (struct) "struct" (type_identifier) "ThisWalkerContext" (field_declaration_list) "{\n Query *topQuery;\n Query *curQuery;\n}" ({) "{" (field_declaration) "Query *topQuery;" (type_identifier) "Query" (pointer_declarator) "*topQuery" (*) "*" (field_identifier) "topQuery" (;) ";" (field_declaration) "Query *curQuery;" (type_identifier) "Query" (pointer_declarator) "*curQuery" (*) "*" (field_identifier) "curQuery" (;) ";" (}) "}" (type_identifier) "ThisWalkerContext" (;) ";" (comment) "/* macros */" (preproc_function_def) "#define MAKE_THISCONTEXT(context, top, cur) \\n do { \\n context = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\n context->topQuery = (top); \\n context->curQuery = (cur); \\n } while (0)\n" (#define) "#define" (identifier) "MAKE_THISCONTEXT" (preproc_params) "(context, top, cur)" (() "(" (identifier) "context" (,) "," (identifier) "top" (,) "," (identifier) "cur" ()) ")" (preproc_arg) "do { \\n context = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\n context->topQuery = (top); \\n context->curQuery = (cur); \\n } while (0)" (comment) "/* functions */" (declaration) "static Node *generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)" (*) "*" (function_declarator) "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)" (identifier) "generateXsltLookup" (parameter_list) "(ParseState *pstate, XsltFuncExpr *xslt)" (() "(" (parameter_declaration) "ParseState *pstate" (type_identifier) "ParseState" (pointer_declarator) "*pstate" (*) "*" (identifier) "pstate" (,) "," (parameter_declaration) "XsltFuncExpr *xslt" (type_identifier) "XsltFuncExpr" (pointer_declarator) "*xslt" (*) "*" (identifier) "xslt" ()) ")" (;) ";" (declaration) "static Node *handleThisExprMutator (Node *node, void *context);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*handleThisExprMutator (Node *node, void *context)" (*) "*" (function_declarator) "handleThisExprMutator (Node *node, void *context)" (identifier) "handleThisExprMutator" (parameter_list) "(Node *node, void *context)" (() "(" (parameter_declaration) "Node *node" (type_identifier) "Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" (,) "," (parameter_declaration) "void *context" (primitive_type) "void" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (;) ";" (declaration) "static Node *transformThisExpr (ThisExpr *this, ThisWalkerContext *context);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*transformThisExpr (ThisExpr *this, ThisWalkerContext *context)" (*) "*" (function_declarator) "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)" (identifier) "transformThisExpr" (parameter_list) "(ThisExpr *this, ThisWalkerContext *context)" (() "(" (parameter_declaration) "ThisExpr *this" (type_identifier) "ThisExpr" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "ThisWalkerContext *context" (type_identifier) "ThisWalkerContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (;) ";" (comment) "/*\n *\n */" (function_definition) "Node *\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)\n{\n FuncExpr *result;\n Oid xsltOid;\n Oid paramOids[2] = {TEXTOID, TEXTOID};\n List *args;\n Node *param;\n Oid paramType;\n\n /* inform the analyzer of the new sublink */\n pstate->p_hasSubLinks = true;\n\n /* get xsltOid */\n xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true); //TODO cache\n\n /* analyze the parameter and if necessary cast it to text */\n param = transformExpr(pstate, xslt->param);\n paramType = exprType(param);\n\n if (paramType != TEXTOID)\n {\n param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);\n\n if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));\n }\n /* generate args */\n args = list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n );\n\n result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);\n\n return (Node *) result;\n}" (type_identifier) "Node" (pointer_declarator) "*\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)" (*) "*" (function_declarator) "transformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)" (identifier) "transformXsltFuncCall" (parameter_list) "(ParseState *pstate, XsltFuncExpr *xslt)" (() "(" (parameter_declaration) "ParseState *pstate" (type_identifier) "ParseState" (pointer_declarator) "*pstate" (*) "*" (identifier) "pstate" (,) "," (parameter_declaration) "XsltFuncExpr *xslt" (type_identifier) "XsltFuncExpr" (pointer_declarator) "*xslt" (*) "*" (identifier) "xslt" ()) ")" (compound_statement) "{\n FuncExpr *result;\n Oid xsltOid;\n Oid paramOids[2] = {TEXTOID, TEXTOID};\n List *args;\n Node *param;\n Oid paramType;\n\n /* inform the analyzer of the new sublink */\n pstate->p_hasSubLinks = true;\n\n /* get xsltOid */\n xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true); //TODO cache\n\n /* analyze the parameter and if necessary cast it to text */\n param = transformExpr(pstate, xslt->param);\n paramType = exprType(param);\n\n if (paramType != TEXTOID)\n {\n param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);\n\n if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));\n }\n /* generate args */\n args = list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n );\n\n result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);\n\n return (Node *) result;\n}" ({) "{" (declaration) "FuncExpr *result;" (type_identifier) "FuncExpr" (pointer_declarator) "*result" (*) "*" (identifier) "result" (;) ";" (declaration) "Oid xsltOid;" (type_identifier) "Oid" (identifier) "xsltOid" (;) ";" (declaration) "Oid paramOids[2] = {TEXTOID, TEXTOID};" (type_identifier) "Oid" (init_declarator) "paramOids[2] = {TEXTOID, TEXTOID}" (array_declarator) "paramOids[2]" (identifier) "paramOids" ([) "[" (number_literal) "2" (]) "]" (=) "=" (initializer_list) "{TEXTOID, TEXTOID}" ({) "{" (identifier) "TEXTOID" (,) "," (identifier) "TEXTOID" (}) "}" (;) ";" (declaration) "List *args;" (type_identifier) "List" (pointer_declarator) "*args" (*) "*" (identifier) "args" (;) ";" (declaration) "Node *param;" (type_identifier) "Node" (pointer_declarator) "*param" (*) "*" (identifier) "param" (;) ";" (declaration) "Oid paramType;" (type_identifier) "Oid" (identifier) "paramType" (;) ";" (comment) "/* inform the analyzer of the new sublink */" (expression_statement) "pstate->p_hasSubLinks = true;" (assignment_expression) "pstate->p_hasSubLinks = true" (field_expression) "pstate->p_hasSubLinks" (identifier) "pstate" (->) "->" (field_identifier) "p_hasSubLinks" (=) "=" (true) "true" (;) ";" (comment) "/* get xsltOid */" (expression_statement) "xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true);" (assignment_expression) "xsltOid = LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true)" (identifier) "xsltOid" (=) "=" (call_expression) "LookupFuncName(list_make1(makeString("xslt_process")), 2, paramOids, true)" (identifier) "LookupFuncName" (argument_list) "(list_make1(makeString("xslt_process")), 2, paramOids, true)" (() "(" (call_expression) "list_make1(makeString("xslt_process"))" (identifier) "list_make1" (argument_list) "(makeString("xslt_process"))" (() "(" (call_expression) "makeString("xslt_process")" (identifier) "makeString" (argument_list) "("xslt_process")" (() "(" (string_literal) ""xslt_process"" (") """ (string_content) "xslt_process" (") """ ()) ")" ()) ")" (,) "," (number_literal) "2" (,) "," (identifier) "paramOids" (,) "," (true) "true" ()) ")" (;) ";" (comment) "//TODO cache" (comment) "/* analyze the parameter and if necessary cast it to text */" (expression_statement) "param = transformExpr(pstate, xslt->param);" (assignment_expression) "param = transformExpr(pstate, xslt->param)" (identifier) "param" (=) "=" (call_expression) "transformExpr(pstate, xslt->param)" (identifier) "transformExpr" (argument_list) "(pstate, xslt->param)" (() "(" (identifier) "pstate" (,) "," (field_expression) "xslt->param" (identifier) "xslt" (->) "->" (field_identifier) "param" ()) ")" (;) ";" (expression_statement) "paramType = exprType(param);" (assignment_expression) "paramType = exprType(param)" (identifier) "paramType" (=) "=" (call_expression) "exprType(param)" (identifier) "exprType" (argument_list) "(param)" (() "(" (identifier) "param" ()) ")" (;) ";" (if_statement) "if (paramType != TEXTOID)\n {\n param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);\n\n if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));\n }" (if) "if" (parenthesized_expression) "(paramType != TEXTOID)" (() "(" (binary_expression) "paramType != TEXTOID" (identifier) "paramType" (!=) "!=" (identifier) "TEXTOID" ()) ")" (compound_statement) "{\n param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);\n\n if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));\n }" ({) "{" (expression_statement) "param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST);" (assignment_expression) "param = coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST)" (identifier) "param" (=) "=" (call_expression) "coerce_to_target_type(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST)" (identifier) "coerce_to_target_type" (argument_list) "(pstate,\n param,\n paramType,\n TEXTOID,\n -1,\n COERCION_EXPLICIT,\n COERCE_IMPLICIT_CAST)" (() "(" (identifier) "pstate" (,) "," (identifier) "param" (,) "," (identifier) "paramType" (,) "," (identifier) "TEXTOID" (,) "," (number_literal) "-1" (,) "," (identifier) "COERCION_EXPLICIT" (,) "," (identifier) "COERCE_IMPLICIT_CAST" ()) ")" (;) ";" (if_statement) "if (!param)\n ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));" (if) "if" (parenthesized_expression) "(!param)" (() "(" (unary_expression) "!param" (!) "!" (identifier) "param" ()) ")" (expression_statement) "ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))));" (call_expression) "ereport(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))))" (identifier) "ereport" (argument_list) "(ERROR,\n (errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))))" (() "(" (identifier) "ERROR" (,) "," (parenthesized_expression) "(errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType)))" (() "(" (comma_expression) "errcode(ERRCODE_UNDEFINED_PARAMETER),\n errmsg("cannot coerce type %s to text", format_type_be(paramType))" (call_expression) "errcode(ERRCODE_UNDEFINED_PARAMETER)" (identifier) "errcode" (argument_list) "(ERRCODE_UNDEFINED_PARAMETER)" (() "(" (identifier) "ERRCODE_UNDEFINED_PARAMETER" ()) ")" (,) "," (call_expression) "errmsg("cannot coerce type %s to text", format_type_be(paramType))" (identifier) "errmsg" (argument_list) "("cannot coerce type %s to text", format_type_be(paramType))" (() "(" (string_literal) ""cannot coerce type %s to text"" (") """ (string_content) "cannot coerce type %s to text" (") """ (,) "," (call_expression) "format_type_be(paramType)" (identifier) "format_type_be" (argument_list) "(paramType)" (() "(" (identifier) "paramType" ()) ")" ()) ")" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "/* generate args */" (expression_statement) "args = list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n );" (assignment_expression) "args = list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n )" (identifier) "args" (=) "=" (call_expression) "list_make2(\n param,\n generateXsltLookup(pstate, xslt)\n )" (identifier) "list_make2" (argument_list) "(\n param,\n generateXsltLookup(pstate, xslt)\n )" (() "(" (identifier) "param" (,) "," (call_expression) "generateXsltLookup(pstate, xslt)" (identifier) "generateXsltLookup" (argument_list) "(pstate, xslt)" (() "(" (identifier) "pstate" (,) "," (identifier) "xslt" ()) ")" ()) ")" (;) ";" (expression_statement) "result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);" (assignment_expression) "result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)" (identifier) "result" (=) "=" (call_expression) "makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)" (identifier) "makeFuncExpr" (argument_list) "(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)" (() "(" (identifier) "xsltOid" (,) "," (identifier) "TEXTOID" (,) "," (identifier) "args" (,) "," (identifier) "COERCE_EXPLICIT_CALL" ()) ")" (;) ";" (return_statement) "return (Node *) result;" (return) "return" (cast_expression) "(Node *) result" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "result" (;) ";" (}) "}" (comment) "/*\n *\n */" (function_definition) "static Node *\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)\n{\n RelabelType *caster;\n SubLink *result;\n Query *query;\n RangeTblRef *rtRef;\n RangeTblEntry *rte;\n RangeVar *rangeVar;\n Const *funcNameConst;\n Datum constVal;\n\n result = makeNode(SubLink);\n query = makeQuery ();\n\n result->operName = NIL;\n result->subLinkType = EXPR_SUBLINK;\n result->testexpr = NULL;\n result->subselect = (Node *) query;\n\n /* create target entry (the XSLT-script) */\n query->targetList = list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false));\n\n// rte = makeRte(RTE_RELATION);\n// rte->relid = RelnameGetRelid("xslt_funcs");\n\n /* create range table entry for xslt_funcs */\n rangeVar = makeNode(RangeVar);\n\n rangeVar->relname = "xslt_funcs";\n rangeVar->catalogname = NULL;\n rangeVar->schemaname = NULL;\n rangeVar->isProvBase = false;\n rangeVar->istemp = false;\n rangeVar->provAttrs = NIL;\n rangeVar->inhOpt = INH_NO;\n rangeVar->alias = NULL;\n\n rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);\n query->rtable = list_make1(rte);\n\n /* create jointree and qual that checks for the correct function name */\n MAKE_RTREF(rtRef, 1);\n query->jointree->fromlist = list_make1(rtRef);\n\n constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));\n funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);\n query->jointree->quals = createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst);\n\n caster = makeNode(RelabelType);\n caster->arg = (Expr *) result;\n caster->resulttype = TEXTOID;\n caster->resulttypmod = -1;\n caster->relabelformat = COERCE_EXPLICIT_CAST;\n\n return (Node *) caster;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)" (*) "*" (function_declarator) "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)" (identifier) "generateXsltLookup" (parameter_list) "(ParseState *pstate, XsltFuncExpr *xslt)" (() "(" (parameter_declaration) "ParseState *pstate" (type_identifier) "ParseState" (pointer_declarator) "*pstate" (*) "*" (identifier) "pstate" (,) "," (parameter_declaration) "XsltFuncExpr *xslt" (type_identifier) "XsltFuncExpr" (pointer_declarator) "*xslt" (*) "*" (identifier) "xslt" ()) ")" (compound_statement) "{\n RelabelType *caster;\n SubLink *result;\n Query *query;\n RangeTblRef *rtRef;\n RangeTblEntry *rte;\n RangeVar *rangeVar;\n Const *funcNameConst;\n Datum constVal;\n\n result = makeNode(SubLink);\n query = makeQuery ();\n\n result->operName = NIL;\n result->subLinkType = EXPR_SUBLINK;\n result->testexpr = NULL;\n result->subselect = (Node *) query;\n\n /* create target entry (the XSLT-script) */\n query->targetList = list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false));\n\n// rte = makeRte(RTE_RELATION);\n// rte->relid = RelnameGetRelid("xslt_funcs");\n\n /* create range table entry for xslt_funcs */\n rangeVar = makeNode(RangeVar);\n\n rangeVar->relname = "xslt_funcs";\n rangeVar->catalogname = NULL;\n rangeVar->schemaname = NULL;\n rangeVar->isProvBase = false;\n rangeVar->istemp = false;\n rangeVar->provAttrs = NIL;\n rangeVar->inhOpt = INH_NO;\n rangeVar->alias = NULL;\n\n rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);\n query->rtable = list_make1(rte);\n\n /* create jointree and qual that checks for the correct function name */\n MAKE_RTREF(rtRef, 1);\n query->jointree->fromlist = list_make1(rtRef);\n\n constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));\n funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);\n query->jointree->quals = createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst);\n\n caster = makeNode(RelabelType);\n caster->arg = (Expr *) result;\n caster->resulttype = TEXTOID;\n caster->resulttypmod = -1;\n caster->relabelformat = COERCE_EXPLICIT_CAST;\n\n return (Node *) caster;\n}" ({) "{" (declaration) "RelabelType *caster;" (type_identifier) "RelabelType" (pointer_declarator) "*caster" (*) "*" (identifier) "caster" (;) ";" (declaration) "SubLink *result;" (type_identifier) "SubLink" (pointer_declarator) "*result" (*) "*" (identifier) "result" (;) ";" (declaration) "Query *query;" (type_identifier) "Query" (pointer_declarator) "*query" (*) "*" (identifier) "query" (;) ";" (declaration) "RangeTblRef *rtRef;" (type_identifier) "RangeTblRef" (pointer_declarator) "*rtRef" (*) "*" (identifier) "rtRef" (;) ";" (declaration) "RangeTblEntry *rte;" (type_identifier) "RangeTblEntry" (pointer_declarator) "*rte" (*) "*" (identifier) "rte" (;) ";" (declaration) "RangeVar *rangeVar;" (type_identifier) "RangeVar" (pointer_declarator) "*rangeVar" (*) "*" (identifier) "rangeVar" (;) ";" (declaration) "Const *funcNameConst;" (type_identifier) "Const" (pointer_declarator) "*funcNameConst" (*) "*" (identifier) "funcNameConst" (;) ";" (declaration) "Datum constVal;" (type_identifier) "Datum" (identifier) "constVal" (;) ";" (expression_statement) "result = makeNode(SubLink);" (assignment_expression) "result = makeNode(SubLink)" (identifier) "result" (=) "=" (call_expression) "makeNode(SubLink)" (identifier) "makeNode" (argument_list) "(SubLink)" (() "(" (identifier) "SubLink" ()) ")" (;) ";" (expression_statement) "query = makeQuery ();" (assignment_expression) "query = makeQuery ()" (identifier) "query" (=) "=" (call_expression) "makeQuery ()" (identifier) "makeQuery" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "result->operName = NIL;" (assignment_expression) "result->operName = NIL" (field_expression) "result->operName" (identifier) "result" (->) "->" (field_identifier) "operName" (=) "=" (identifier) "NIL" (;) ";" (expression_statement) "result->subLinkType = EXPR_SUBLINK;" (assignment_expression) "result->subLinkType = EXPR_SUBLINK" (field_expression) "result->subLinkType" (identifier) "result" (->) "->" (field_identifier) "subLinkType" (=) "=" (identifier) "EXPR_SUBLINK" (;) ";" (expression_statement) "result->testexpr = NULL;" (assignment_expression) "result->testexpr = NULL" (field_expression) "result->testexpr" (identifier) "result" (->) "->" (field_identifier) "testexpr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "result->subselect = (Node *) query;" (assignment_expression) "result->subselect = (Node *) query" (field_expression) "result->subselect" (identifier) "result" (->) "->" (field_identifier) "subselect" (=) "=" (cast_expression) "(Node *) query" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "query" (;) ";" (comment) "/* create target entry (the XSLT-script) */" (expression_statement) "query->targetList = list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false));" (assignment_expression) "query->targetList = list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false))" (field_expression) "query->targetList" (identifier) "query" (->) "->" (field_identifier) "targetList" (=) "=" (call_expression) "list_make1(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false))" (identifier) "list_make1" (argument_list) "(makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false))" (() "(" (call_expression) "makeTargetEntry(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false)" (identifier) "makeTargetEntry" (argument_list) "(\n (Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, "func", false)" (() "(" (cast_expression) "(Expr *) makeVar(1,2,XMLOID,-1 ,0)" (() "(" (type_descriptor) "Expr *" (type_identifier) "Expr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "makeVar(1,2,XMLOID,-1 ,0)" (identifier) "makeVar" (argument_list) "(1,2,XMLOID,-1 ,0)" (() "(" (number_literal) "1" (,) "," (number_literal) "2" (,) "," (identifier) "XMLOID" (,) "," (number_literal) "-1" (,) "," (number_literal) "0" ()) ")" (,) "," (number_literal) "1" (,) "," (string_literal) ""func"" (") """ (string_content) "func" (") """ (,) "," (false) "false" ()) ")" ()) ")" (;) ";" (comment) "// rte = makeRte(RTE_RELATION);" (comment) "// rte->relid = RelnameGetRelid("xslt_funcs");" (comment) "/* create range table entry for xslt_funcs */" (expression_statement) "rangeVar = makeNode(RangeVar);" (assignment_expression) "rangeVar = makeNode(RangeVar)" (identifier) "rangeVar" (=) "=" (call_expression) "makeNode(RangeVar)" (identifier) "makeNode" (argument_list) "(RangeVar)" (() "(" (identifier) "RangeVar" ()) ")" (;) ";" (expression_statement) "rangeVar->relname = "xslt_funcs";" (assignment_expression) "rangeVar->relname = "xslt_funcs"" (field_expression) "rangeVar->relname" (identifier) "rangeVar" (->) "->" (field_identifier) "relname" (=) "=" (string_literal) ""xslt_funcs"" (") """ (string_content) "xslt_funcs" (") """ (;) ";" (expression_statement) "rangeVar->catalogname = NULL;" (assignment_expression) "rangeVar->catalogname = NULL" (field_expression) "rangeVar->catalogname" (identifier) "rangeVar" (->) "->" (field_identifier) "catalogname" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "rangeVar->schemaname = NULL;" (assignment_expression) "rangeVar->schemaname = NULL" (field_expression) "rangeVar->schemaname" (identifier) "rangeVar" (->) "->" (field_identifier) "schemaname" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "rangeVar->isProvBase = false;" (assignment_expression) "rangeVar->isProvBase = false" (field_expression) "rangeVar->isProvBase" (identifier) "rangeVar" (->) "->" (field_identifier) "isProvBase" (=) "=" (false) "false" (;) ";" (expression_statement) "rangeVar->istemp = false;" (assignment_expression) "rangeVar->istemp = false" (field_expression) "rangeVar->istemp" (identifier) "rangeVar" (->) "->" (field_identifier) "istemp" (=) "=" (false) "false" (;) ";" (expression_statement) "rangeVar->provAttrs = NIL;" (assignment_expression) "rangeVar->provAttrs = NIL" (field_expression) "rangeVar->provAttrs" (identifier) "rangeVar" (->) "->" (field_identifier) "provAttrs" (=) "=" (identifier) "NIL" (;) ";" (expression_statement) "rangeVar->inhOpt = INH_NO;" (assignment_expression) "rangeVar->inhOpt = INH_NO" (field_expression) "rangeVar->inhOpt" (identifier) "rangeVar" (->) "->" (field_identifier) "inhOpt" (=) "=" (identifier) "INH_NO" (;) ";" (expression_statement) "rangeVar->alias = NULL;" (assignment_expression) "rangeVar->alias = NULL" (field_expression) "rangeVar->alias" (identifier) "rangeVar" (->) "->" (field_identifier) "alias" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);" (assignment_expression) "rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true)" (identifier) "rte" (=) "=" (call_expression) "addRangeTableEntry(pstate, rangeVar, NULL, false, true)" (identifier) "addRangeTableEntry" (argument_list) "(pstate, rangeVar, NULL, false, true)" (() "(" (identifier) "pstate" (,) "," (identifier) "rangeVar" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (,) "," (true) "true" ()) ")" (;) ";" (expression_statement) "query->rtable = list_make1(rte);" (assignment_expression) "query->rtable = list_make1(rte)" (field_expression) "query->rtable" (identifier) "query" (->) "->" (field_identifier) "rtable" (=) "=" (call_expression) "list_make1(rte)" (identifier) "list_make1" (argument_list) "(rte)" (() "(" (identifier) "rte" ()) ")" (;) ";" (comment) "/* create jointree and qual that checks for the correct function name */" (expression_statement) "MAKE_RTREF(rtRef, 1);" (call_expression) "MAKE_RTREF(rtRef, 1)" (identifier) "MAKE_RTREF" (argument_list) "(rtRef, 1)" (() "(" (identifier) "rtRef" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "query->jointree->fromlist = list_make1(rtRef);" (assignment_expression) "query->jointree->fromlist = list_make1(rtRef)" (field_expression) "query->jointree->fromlist" (field_expression) "query->jointree" (identifier) "query" (->) "->" (field_identifier) "jointree" (->) "->" (field_identifier) "fromlist" (=) "=" (call_expression) "list_make1(rtRef)" (identifier) "list_make1" (argument_list) "(rtRef)" (() "(" (identifier) "rtRef" ()) ")" (;) ";" (expression_statement) "constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));" (assignment_expression) "constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName))" (identifier) "constVal" (=) "=" (call_expression) "DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName))" (identifier) "DirectFunctionCall1" (argument_list) "(textin, CStringGetDatum(xslt->funcName))" (() "(" (identifier) "textin" (,) "," (call_expression) "CStringGetDatum(xslt->funcName)" (identifier) "CStringGetDatum" (argument_list) "(xslt->funcName)" (() "(" (field_expression) "xslt->funcName" (identifier) "xslt" (->) "->" (field_identifier) "funcName" ()) ")" ()) ")" (;) ";" (expression_statement) "funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);" (assignment_expression) "funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false)" (identifier) "funcNameConst" (=) "=" (call_expression) "makeConst(TEXTOID, -1, -1, constVal, false, false)" (identifier) "makeConst" (argument_list) "(TEXTOID, -1, -1, constVal, false, false)" (() "(" (identifier) "TEXTOID" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (,) "," (identifier) "constVal" (,) "," (false) "false" (,) "," (false) "false" ()) ")" (;) ";" (expression_statement) "query->jointree->quals = createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst);" (assignment_expression) "query->jointree->quals = createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst)" (field_expression) "query->jointree->quals" (field_expression) "query->jointree" (identifier) "query" (->) "->" (field_identifier) "jointree" (->) "->" (field_identifier) "quals" (=) "=" (call_expression) "createEqualityConditionForNodes(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst)" (identifier) "createEqualityConditionForNodes" (argument_list) "(\n (Node *) makeVar(1,1,TEXTOID,-1,0),\n (Node *) funcNameConst)" (() "(" (cast_expression) "(Node *) makeVar(1,1,TEXTOID,-1,0)" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "makeVar(1,1,TEXTOID,-1,0)" (identifier) "makeVar" (argument_list) "(1,1,TEXTOID,-1,0)" (() "(" (number_literal) "1" (,) "," (number_literal) "1" (,) "," (identifier) "TEXTOID" (,) "," (number_literal) "-1" (,) "," (number_literal) "0" ()) ")" (,) "," (cast_expression) "(Node *) funcNameConst" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "funcNameConst" ()) ")" (;) ";" (expression_statement) "caster = makeNode(RelabelType);" (assignment_expression) "caster = makeNode(RelabelType)" (identifier) "caster" (=) "=" (call_expression) "makeNode(RelabelType)" (identifier) "makeNode" (argument_list) "(RelabelType)" (() "(" (identifier) "RelabelType" ()) ")" (;) ";" (expression_statement) "caster->arg = (Expr *) result;" (assignment_expression) "caster->arg = (Expr *) result" (field_expression) "caster->arg" (identifier) "caster" (->) "->" (field_identifier) "arg" (=) "=" (cast_expression) "(Expr *) result" (() "(" (type_descriptor) "Expr *" (type_identifier) "Expr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "result" (;) ";" (expression_statement) "caster->resulttype = TEXTOID;" (assignment_expression) "caster->resulttype = TEXTOID" (field_expression) "caster->resulttype" (identifier) "caster" (->) "->" (field_identifier) "resulttype" (=) "=" (identifier) "TEXTOID" (;) ";" (expression_statement) "caster->resulttypmod = -1;" (assignment_expression) "caster->resulttypmod = -1" (field_expression) "caster->resulttypmod" (identifier) "caster" (->) "->" (field_identifier) "resulttypmod" (=) "=" (number_literal) "-1" (;) ";" (expression_statement) "caster->relabelformat = COERCE_EXPLICIT_CAST;" (assignment_expression) "caster->relabelformat = COERCE_EXPLICIT_CAST" (field_expression) "caster->relabelformat" (identifier) "caster" (->) "->" (field_identifier) "relabelformat" (=) "=" (identifier) "COERCE_EXPLICIT_CAST" (;) ";" (return_statement) "return (Node *) caster;" (return) "return" (cast_expression) "(Node *) caster" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "caster" (;) ";" (}) "}" (comment) "/*\n *\n */" (function_definition) "Query *\nhandleThisExprs (Query *query)\n{\n ThisWalkerContext *context;\n\n MAKE_THISCONTEXT(context, query, query);\n\n query = (Query *) handleThisExprMutator((Node *) query, context);\n\n pfree(context);\n\n return query;\n}" (type_identifier) "Query" (pointer_declarator) "*\nhandleThisExprs (Query *query)" (*) "*" (function_declarator) "handleThisExprs (Query *query)" (identifier) "handleThisExprs" (parameter_list) "(Query *query)" (() "(" (parameter_declaration) "Query *query" (type_identifier) "Query" (pointer_declarator) "*query" (*) "*" (identifier) "query" ()) ")" (compound_statement) "{\n ThisWalkerContext *context;\n\n MAKE_THISCONTEXT(context, query, query);\n\n query = (Query *) handleThisExprMutator((Node *) query, context);\n\n pfree(context);\n\n return query;\n}" ({) "{" (declaration) "ThisWalkerContext *context;" (type_identifier) "ThisWalkerContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" (;) ";" (expression_statement) "MAKE_THISCONTEXT(context, query, query);" (call_expression) "MAKE_THISCONTEXT(context, query, query)" (identifier) "MAKE_THISCONTEXT" (argument_list) "(context, query, query)" (() "(" (identifier) "context" (,) "," (identifier) "query" (,) "," (identifier) "query" ()) ")" (;) ";" (expression_statement) "query = (Query *) handleThisExprMutator((Node *) query, context);" (assignment_expression) "query = (Query *) handleThisExprMutator((Node *) query, context)" (identifier) "query" (=) "=" (cast_expression) "(Query *) handleThisExprMutator((Node *) query, context)" (() "(" (type_descriptor) "Query *" (type_identifier) "Query" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "handleThisExprMutator((Node *) query, context)" (identifier) "handleThisExprMutator" (argument_list) "((Node *) query, context)" (() "(" (cast_expression) "(Node *) query" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "query" (,) "," (identifier) "context" ()) ")" (;) ";" (expression_statement) "pfree(context);" (call_expression) "pfree(context)" (identifier) "pfree" (argument_list) "(context)" (() "(" (identifier) "context" ()) ")" (;) ";" (return_statement) "return query;" (return) "return" (identifier) "query" (;) ";" (}) "}" (comment) "/*\n *\n */" (function_definition) "static Node *\nhandleThisExprMutator (Node *node, void *context)\n{\n ThisWalkerContext *newContext;\n Node *result;\n\n if (node == NULL)\n return false;\n\n if (IsA(node, Query))\n {\n MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n pfree(newContext);\n\n return result;\n }\n else if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);\n\n return expression_tree_mutator(node, handleThisExprMutator, context);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*\nhandleThisExprMutator (Node *node, void *context)" (*) "*" (function_declarator) "handleThisExprMutator (Node *node, void *context)" (identifier) "handleThisExprMutator" (parameter_list) "(Node *node, void *context)" (() "(" (parameter_declaration) "Node *node" (type_identifier) "Node" (pointer_declarator) "*node" (*) "*" (identifier) "node" (,) "," (parameter_declaration) "void *context" (primitive_type) "void" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (compound_statement) "{\n ThisWalkerContext *newContext;\n Node *result;\n\n if (node == NULL)\n return false;\n\n if (IsA(node, Query))\n {\n MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n pfree(newContext);\n\n return result;\n }\n else if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);\n\n return expression_tree_mutator(node, handleThisExprMutator, context);\n}" ({) "{" (declaration) "ThisWalkerContext *newContext;" (type_identifier) "ThisWalkerContext" (pointer_declarator) "*newContext" (*) "*" (identifier) "newContext" (;) ";" (declaration) "Node *result;" (type_identifier) "Node" (pointer_declarator) "*result" (*) "*" (identifier) "result" (;) ";" (if_statement) "if (node == NULL)\n return false;" (if) "if" (parenthesized_expression) "(node == NULL)" (() "(" (binary_expression) "node == NULL" (identifier) "node" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (if_statement) "if (IsA(node, Query))\n {\n MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n pfree(newContext);\n\n return result;\n }\n else if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);" (if) "if" (parenthesized_expression) "(IsA(node, Query))" (() "(" (call_expression) "IsA(node, Query)" (identifier) "IsA" (argument_list) "(node, Query)" (() "(" (identifier) "node" (,) "," (identifier) "Query" ()) ")" ()) ")" (compound_statement) "{\n MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n pfree(newContext);\n\n return result;\n }" ({) "{" (expression_statement) "MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);" (call_expression) "MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node)" (identifier) "MAKE_THISCONTEXT" (argument_list) "(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node)" (() "(" (identifier) "newContext" (,) "," (field_expression) "((ThisWalkerContext *) context)->topQuery" (parenthesized_expression) "((ThisWalkerContext *) context)" (() "(" (cast_expression) "(ThisWalkerContext *) context" (() "(" (type_descriptor) "ThisWalkerContext *" (type_identifier) "ThisWalkerContext" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "context" ()) ")" (->) "->" (field_identifier) "topQuery" (,) "," (cast_expression) "(Query *) node" (() "(" (type_descriptor) "Query *" (type_identifier) "Query" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "node" ()) ")" (;) ";" (expression_statement) "result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);" (assignment_expression) "result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)" (identifier) "result" (=) "=" (cast_expression) "(Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)" (identifier) "query_tree_mutator" (argument_list) "((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)" (() "(" (cast_expression) "(Query *) node" (() "(" (type_descriptor) "Query *" (type_identifier) "Query" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "node" (,) "," (identifier) "handleThisExprMutator" (,) "," (cast_expression) "(void *) newContext" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "newContext" (,) "," (identifier) "QTW_DONT_COPY_QUERY" ()) ")" (;) ";" (expression_statement) "pfree(newContext);" (call_expression) "pfree(newContext)" (identifier) "pfree" (argument_list) "(newContext)" (() "(" (identifier) "newContext" ()) ")" (;) ";" (return_statement) "return result;" (return) "return" (identifier) "result" (;) ";" (}) "}" (else_clause) "else if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);" (else) "else" (if_statement) "if (IsA(node,ThisExpr))\n return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);" (if) "if" (parenthesized_expression) "(IsA(node,ThisExpr))" (() "(" (call_expression) "IsA(node,ThisExpr)" (identifier) "IsA" (argument_list) "(node,ThisExpr)" (() "(" (identifier) "node" (,) "," (identifier) "ThisExpr" ()) ")" ()) ")" (return_statement) "return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);" (return) "return" (call_expression) "transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context)" (identifier) "transformThisExpr" (argument_list) "((ThisExpr *) node, (ThisWalkerContext *) context)" (() "(" (cast_expression) "(ThisExpr *) node" (() "(" (type_descriptor) "ThisExpr *" (type_identifier) "ThisExpr" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "node" (,) "," (cast_expression) "(ThisWalkerContext *) context" (() "(" (type_descriptor) "ThisWalkerContext *" (type_identifier) "ThisWalkerContext" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "context" ()) ")" (;) ";" (return_statement) "return expression_tree_mutator(node, handleThisExprMutator, context);" (return) "return" (call_expression) "expression_tree_mutator(node, handleThisExprMutator, context)" (identifier) "expression_tree_mutator" (argument_list) "(node, handleThisExprMutator, context)" (() "(" (identifier) "node" (,) "," (identifier) "handleThisExprMutator" (,) "," (identifier) "context" ()) ")" (;) ";" (}) "}" (comment) "/*\n *\n */" (function_definition) "static Node *\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)\n{\n Const *cons;\n Datum xmlDatum;\n Query *queryPart;\n char *typePart;\n int childNum;\n RangeTblEntry *rte;\n\n if(strcmp(this->thisType, "local") == 0)\n queryPart = context->curQuery;\n else if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }\n\n xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));\n\n cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);\n\n return (Node *) cons;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "Node" (pointer_declarator) "*\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)" (*) "*" (function_declarator) "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)" (identifier) "transformThisExpr" (parameter_list) "(ThisExpr *this, ThisWalkerContext *context)" (() "(" (parameter_declaration) "ThisExpr *this" (type_identifier) "ThisExpr" (pointer_declarator) "*this" (*) "*" (identifier) "this" (,) "," (parameter_declaration) "ThisWalkerContext *context" (type_identifier) "ThisWalkerContext" (pointer_declarator) "*context" (*) "*" (identifier) "context" ()) ")" (compound_statement) "{\n Const *cons;\n Datum xmlDatum;\n Query *queryPart;\n char *typePart;\n int childNum;\n RangeTblEntry *rte;\n\n if(strcmp(this->thisType, "local") == 0)\n queryPart = context->curQuery;\n else if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }\n\n xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));\n\n cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);\n\n return (Node *) cons;\n}" ({) "{" (declaration) "Const *cons;" (type_identifier) "Const" (pointer_declarator) "*cons" (*) "*" (identifier) "cons" (;) ";" (declaration) "Datum xmlDatum;" (type_identifier) "Datum" (identifier) "xmlDatum" (;) ";" (declaration) "Query *queryPart;" (type_identifier) "Query" (pointer_declarator) "*queryPart" (*) "*" (identifier) "queryPart" (;) ";" (declaration) "char *typePart;" (primitive_type) "char" (pointer_declarator) "*typePart" (*) "*" (identifier) "typePart" (;) ";" (declaration) "int childNum;" (primitive_type) "int" (identifier) "childNum" (;) ";" (declaration) "RangeTblEntry *rte;" (type_identifier) "RangeTblEntry" (pointer_declarator) "*rte" (*) "*" (identifier) "rte" (;) ";" (if_statement) "if(strcmp(this->thisType, "local") == 0)\n queryPart = context->curQuery;\n else if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }" (if) "if" (parenthesized_expression) "(strcmp(this->thisType, "local") == 0)" (() "(" (binary_expression) "strcmp(this->thisType, "local") == 0" (call_expression) "strcmp(this->thisType, "local")" (identifier) "strcmp" (argument_list) "(this->thisType, "local")" (() "(" (field_expression) "this->thisType" (identifier) "this" (->) "->" (field_identifier) "thisType" (,) "," (string_literal) ""local"" (") """ (string_content) "local" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "queryPart = context->curQuery;" (assignment_expression) "queryPart = context->curQuery" (identifier) "queryPart" (=) "=" (field_expression) "context->curQuery" (identifier) "context" (->) "->" (field_identifier) "curQuery" (;) ";" (else_clause) "else if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }" (else) "else" (if_statement) "if (strcmp(this->thisType, "top") == 0)\n queryPart = context->topQuery;\n else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }" (if) "if" (parenthesized_expression) "(strcmp(this->thisType, "top") == 0)" (() "(" (binary_expression) "strcmp(this->thisType, "top") == 0" (call_expression) "strcmp(this->thisType, "top")" (identifier) "strcmp" (argument_list) "(this->thisType, "top")" (() "(" (field_expression) "this->thisType" (identifier) "this" (->) "->" (field_identifier) "thisType" (,) "," (string_literal) ""top"" (") """ (string_content) "top" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "queryPart = context->topQuery;" (assignment_expression) "queryPart = context->topQuery" (identifier) "queryPart" (=) "=" (field_expression) "context->topQuery" (identifier) "context" (->) "->" (field_identifier) "topQuery" (;) ";" (else_clause) "else if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }" (else) "else" (if_statement) "if (strncmp(this->thisType, "child", 5) == 0)\n {\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }\n else\n {\n //TODO ERROR unknown this type\n }" (if) "if" (parenthesized_expression) "(strncmp(this->thisType, "child", 5) == 0)" (() "(" (binary_expression) "strncmp(this->thisType, "child", 5) == 0" (call_expression) "strncmp(this->thisType, "child", 5)" (identifier) "strncmp" (argument_list) "(this->thisType, "child", 5)" (() "(" (field_expression) "this->thisType" (identifier) "this" (->) "->" (field_identifier) "thisType" (,) "," (string_literal) ""child"" (") """ (string_content) "child" (") """ (,) "," (number_literal) "5" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n typePart = this->thisType + 4;\n queryPart = context->curQuery;\n\n while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }\n }" ({) "{" (expression_statement) "typePart = this->thisType + 4;" (assignment_expression) "typePart = this->thisType + 4" (identifier) "typePart" (=) "=" (binary_expression) "this->thisType + 4" (field_expression) "this->thisType" (identifier) "this" (->) "->" (field_identifier) "thisType" (+) "+" (number_literal) "4" (;) ";" (expression_statement) "queryPart = context->curQuery;" (assignment_expression) "queryPart = context->curQuery" (identifier) "queryPart" (=) "=" (field_expression) "context->curQuery" (identifier) "context" (->) "->" (field_identifier) "curQuery" (;) ";" (while_statement) "while(*(++typePart))\n {\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }" (while) "while" (parenthesized_expression) "(*(++typePart))" (() "(" (pointer_expression) "*(++typePart)" (*) "*" (parenthesized_expression) "(++typePart)" (() "(" (update_expression) "++typePart" (++) "++" (identifier) "typePart" ()) ")" ()) ")" (compound_statement) "{\n if (!isdigit(*typePart))\n ;//TODO ERROR\n\n childNum = *typePart - '0';\n\n if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;//TODO error\n\n rte = rt_fetch(childNum, queryPart->rtable);\n\n if (!rte->rtekind == RTE_SUBQUERY)\n ;//TODO error\n\n queryPart = rte->subquery;\n }" ({) "{" (if_statement) "if (!isdigit(*typePart))\n ;" (if) "if" (parenthesized_expression) "(!isdigit(*typePart))" (() "(" (unary_expression) "!isdigit(*typePart)" (!) "!" (call_expression) "isdigit(*typePart)" (identifier) "isdigit" (argument_list) "(*typePart)" (() "(" (pointer_expression) "*typePart" (*) "*" (identifier) "typePart" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (comment) "//TODO ERROR" (expression_statement) "childNum = *typePart - '0';" (assignment_expression) "childNum = *typePart - '0'" (identifier) "childNum" (=) "=" (binary_expression) "*typePart - '0'" (pointer_expression) "*typePart" (*) "*" (identifier) "typePart" (-) "-" (char_literal) "'0'" (') "'" (character) "0" (') "'" (;) ";" (if_statement) "if (childNum < 1 || childNum > list_length(queryPart->rtable))\n ;" (if) "if" (parenthesized_expression) "(childNum < 1 || childNum > list_length(queryPart->rtable))" (() "(" (binary_expression) "childNum < 1 || childNum > list_length(queryPart->rtable)" (binary_expression) "childNum < 1" (identifier) "childNum" (<) "<" (number_literal) "1" (||) "||" (binary_expression) "childNum > list_length(queryPart->rtable)" (identifier) "childNum" (>) ">" (call_expression) "list_length(queryPart->rtable)" (identifier) "list_length" (argument_list) "(queryPart->rtable)" (() "(" (field_expression) "queryPart->rtable" (identifier) "queryPart" (->) "->" (field_identifier) "rtable" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (comment) "//TODO error" (expression_statement) "rte = rt_fetch(childNum, queryPart->rtable);" (assignment_expression) "rte = rt_fetch(childNum, queryPart->rtable)" (identifier) "rte" (=) "=" (call_expression) "rt_fetch(childNum, queryPart->rtable)" (identifier) "rt_fetch" (argument_list) "(childNum, queryPart->rtable)" (() "(" (identifier) "childNum" (,) "," (field_expression) "queryPart->rtable" (identifier) "queryPart" (->) "->" (field_identifier) "rtable" ()) ")" (;) ";" (if_statement) "if (!rte->rtekind == RTE_SUBQUERY)\n ;" (if) "if" (parenthesized_expression) "(!rte->rtekind == RTE_SUBQUERY)" (() "(" (binary_expression) "!rte->rtekind == RTE_SUBQUERY" (unary_expression) "!rte->rtekind" (!) "!" (field_expression) "rte->rtekind" (identifier) "rte" (->) "->" (field_identifier) "rtekind" (==) "==" (identifier) "RTE_SUBQUERY" ()) ")" (expression_statement) ";" (;) ";" (comment) "//TODO error" (expression_statement) "queryPart = rte->subquery;" (assignment_expression) "queryPart = rte->subquery" (identifier) "queryPart" (=) "=" (field_expression) "rte->subquery" (identifier) "rte" (->) "->" (field_identifier) "subquery" (;) ";" (}) "}" (}) "}" (else_clause) "else\n {\n //TODO ERROR unknown this type\n }" (else) "else" (compound_statement) "{\n //TODO ERROR unknown this type\n }" ({) "{" (comment) "//TODO ERROR unknown this type" (}) "}" (expression_statement) "xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));" (assignment_expression) "xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart))" (identifier) "xmlDatum" (=) "=" (call_expression) "XmlPGetDatum(queryTreeToXml(queryPart))" (identifier) "XmlPGetDatum" (argument_list) "(queryTreeToXml(queryPart))" (() "(" (call_expression) "queryTreeToXml(queryPart)" (identifier) "queryTreeToXml" (argument_list) "(queryPart)" (() "(" (identifier) "queryPart" ()) ")" ()) ")" (;) ";" (expression_statement) "cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);" (assignment_expression) "cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false)" (identifier) "cons" (=) "=" (call_expression) "makeConst(XMLOID, -1, -1, xmlDatum, false, false)" (identifier) "makeConst" (argument_list) "(XMLOID, -1, -1, xmlDatum, false, false)" (() "(" (identifier) "XMLOID" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (,) "," (identifier) "xmlDatum" (,) "," (false) "false" (,) "," (false) "false" ()) ")" (;) ";" (return_statement) "return (Node *) cons;" (return) "return" (cast_expression) "(Node *) cons" (() "(" (type_descriptor) "Node *" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "cons" (;) ";" (}) "}"
1,599
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 28.58, "nodes": 990, "errors": 0, "source_hash": "efc0ff35d1e517d144231580a7f61a6204ef276a94603d123626a0240c9fc9a3", "categorized_nodes": 692}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"postgres.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"postgres.h\"", "parent": 0, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include \"catalog/namespace.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"catalog/namespace.h\"", "parent": 3, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"catalog/pg_type.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"catalog/pg_type.h\"", "parent": 6, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"parser/parse_node.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"parser/parse_node.h\"", "parent": 9, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 30}}, {"id": 12, "type": "preproc_include", "text": "#include \"parser/parse_expr.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"parser/parse_expr.h\"", "parent": 12, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 30}}, {"id": 15, "type": "preproc_include", "text": "#include \"parser/parse_func.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"parser/parse_func.h\"", "parent": 15, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 30}}, {"id": 18, "type": "preproc_include", "text": "#include \"parser/parse_coerce.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"parser/parse_coerce.h\"", "parent": 18, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 32}}, {"id": 21, "type": "preproc_include", "text": "#include \"parser/parse_relation.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"parser/parse_relation.h\"", "parent": 21, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 34}}, {"id": 24, "type": "preproc_include", "text": "#include \"parser/parsetree.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"parser/parsetree.h\"", "parent": 24, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 29}}, {"id": 27, "type": "preproc_include", "text": "#include \"nodes/makefuncs.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"nodes/makefuncs.h\"", "parent": 27, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 28}}, {"id": 30, "type": "preproc_include", "text": "#include \"nodes/primnodes.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"nodes/primnodes.h\"", "parent": 30, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 28}}, {"id": 33, "type": "preproc_include", "text": "#include \"fmgr.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"fmgr.h\"", "parent": 33, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 17}}, {"id": 36, "type": "preproc_include", "text": "#include \"utils/builtins.h\"\n", "parent": null, "children": [37, 38], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 38, "type": "string_literal", "text": "\"utils/builtins.h\"", "parent": 36, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 27}}, {"id": 39, "type": "preproc_include", "text": "#include \"optimizer/clauses.h\"\n", "parent": null, "children": [40, 41], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"optimizer/clauses.h\"", "parent": 39, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 30}}, {"id": 42, "type": "preproc_include", "text": "#include \"utils/xml.h\"\n", "parent": null, "children": [43, 44], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"utils/xml.h\"", "parent": 42, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 22}}, {"id": 45, "type": "preproc_include", "text": "#include \"provrewrite/prov_nodes.h\"\n", "parent": null, "children": [46, 47], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 46, "type": "#include", "text": "#include", "parent": 45, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 47, "type": "string_literal", "text": "\"provrewrite/prov_nodes.h\"", "parent": 45, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 35}}, {"id": 48, "type": "preproc_include", "text": "#include \"provrewrite/prov_util.h\"\n", "parent": null, "children": [49, 50], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 49, "type": "#include", "text": "#include", "parent": 48, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 50, "type": "string_literal", "text": "\"provrewrite/prov_util.h\"", "parent": 48, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 34}}, {"id": 51, "type": "preproc_include", "text": "#include \"metaq/parse_metaq.h\"\n", "parent": null, "children": [52, 53], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 52, "type": "#include", "text": "#include", "parent": 51, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 53, "type": "string_literal", "text": "\"metaq/parse_metaq.h\"", "parent": 51, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 30}}, {"id": 54, "type": "preproc_include", "text": "#include \"metaq/xmlqtree.h\"\n", "parent": null, "children": [55, 56], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 55, "type": "#include", "text": "#include", "parent": 54, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 56, "type": "string_literal", "text": "\"metaq/xmlqtree.h\"", "parent": 54, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 27}}, {"id": 57, "type": "type_definition", "text": "typedef struct ThisWalkerContext\n{\n\tQuery *topQuery;\n\tQuery *curQuery;\n} ThisWalkerContext;", "parent": null, "children": [58, 59, 72], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 49, "column": 20}}, {"id": 58, "type": "typedef", "text": "typedef", "parent": 57, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 59, "type": "struct_specifier", "text": "struct ThisWalkerContext\n{\n\tQuery *topQuery;\n\tQuery *curQuery;\n}", "parent": 57, "children": [60, 61], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 49, "column": 1}}, {"id": 60, "type": "struct", "text": "struct", "parent": 59, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 61, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 59, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 32}}, {"id": 62, "type": "field_declaration", "text": "Query *topQuery;", "parent": 59, "children": [63, 64], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 17}}, {"id": 63, "type": "type_identifier", "text": "Query", "parent": 62, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 6}}, {"id": 64, "type": "pointer_declarator", "text": "*topQuery", "parent": 62, "children": [65, 66], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 16}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 8}}, {"id": 66, "type": "field_identifier", "text": "topQuery", "parent": 64, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 16}}, {"id": 67, "type": "field_declaration", "text": "Query *curQuery;", "parent": 59, "children": [68, 69], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 17}}, {"id": 68, "type": "type_identifier", "text": "Query", "parent": 67, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 6}}, {"id": 69, "type": "pointer_declarator", "text": "*curQuery", "parent": 67, "children": [70, 71], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 16}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 71, "type": "field_identifier", "text": "curQuery", "parent": 69, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 16}}, {"id": 72, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 57, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 19}}, {"id": 73, "type": "preproc_function_def", "text": "#define MAKE_THISCONTEXT(context, top, cur) \\\n\tdo { \\\n\t\tcontext = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\\n\t\tcontext->topQuery = (top); \\\n\t\tcontext->curQuery = (cur); \\\n\t} while (0)\n", "parent": null, "children": [74, 75, 76, 80], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 74, "type": "#define", "text": "#define", "parent": 73, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 75, "type": "identifier", "text": "MAKE_THISCONTEXT", "parent": 73, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 24}}, {"id": 76, "type": "preproc_params", "text": "(context, top, cur)", "parent": 73, "children": [77, 78, 79], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 43}}, {"id": 77, "type": "identifier", "text": "context", "parent": 76, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 32}}, {"id": 78, "type": "identifier", "text": "top", "parent": 76, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 37}}, {"id": 79, "type": "identifier", "text": "cur", "parent": 76, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 42}}, {"id": 80, "type": "preproc_arg", "text": "do { \\\n\t\tcontext = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\\n\t\tcontext->topQuery = (top); \\\n\t\tcontext->curQuery = (cur); \\\n\t} while (0)", "parent": 73, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 60, "column": 12}}, {"id": 81, "type": "declaration", "text": "static Node *generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt);", "parent": null, "children": [82, 83], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 73}}, {"id": 82, "type": "type_identifier", "text": "Node", "parent": 81, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 11}}, {"id": 83, "type": "pointer_declarator", "text": "*generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 81, "children": [84, 85], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 72}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 13}}, {"id": 85, "type": "function_declarator", "text": "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 83, "children": [86, 87], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 72}}, {"id": 86, "type": "identifier", "text": "generateXsltLookup", "parent": 85, "children": [], "start_point": {"row": 63, "column": 13}, "end_point": {"row": 63, "column": 31}}, {"id": 87, "type": "parameter_list", "text": "(ParseState *pstate, XsltFuncExpr *xslt)", "parent": 85, "children": [88, 93], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 72}}, {"id": 88, "type": "parameter_declaration", "text": "ParseState *pstate", "parent": 87, "children": [89, 90], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 51}}, {"id": 89, "type": "type_identifier", "text": "ParseState", "parent": 88, "children": [], "start_point": {"row": 63, "column": 33}, "end_point": {"row": 63, "column": 43}}, {"id": 90, "type": "pointer_declarator", "text": "*pstate", "parent": 88, "children": [91, 92], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 51}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 45}}, {"id": 92, "type": "identifier", "text": "pstate", "parent": 90, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 51}}, {"id": 93, "type": "parameter_declaration", "text": "XsltFuncExpr *xslt", "parent": 87, "children": [94, 95], "start_point": {"row": 63, "column": 53}, "end_point": {"row": 63, "column": 71}}, {"id": 94, "type": "type_identifier", "text": "XsltFuncExpr", "parent": 93, "children": [], "start_point": {"row": 63, "column": 53}, "end_point": {"row": 63, "column": 65}}, {"id": 95, "type": "pointer_declarator", "text": "*xslt", "parent": 93, "children": [96, 97], "start_point": {"row": 63, "column": 66}, "end_point": {"row": 63, "column": 71}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 63, "column": 66}, "end_point": {"row": 63, "column": 67}}, {"id": 97, "type": "identifier", "text": "xslt", "parent": 95, "children": [], "start_point": {"row": 63, "column": 67}, "end_point": {"row": 63, "column": 71}}, {"id": 98, "type": "declaration", "text": "static Node *handleThisExprMutator (Node *node, void *context);", "parent": null, "children": [99, 100], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 63}}, {"id": 99, "type": "type_identifier", "text": "Node", "parent": 98, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 11}}, {"id": 100, "type": "pointer_declarator", "text": "*handleThisExprMutator (Node *node, void *context)", "parent": 98, "children": [101, 102], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 62}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 102, "type": "function_declarator", "text": "handleThisExprMutator (Node *node, void *context)", "parent": 100, "children": [103, 104], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 62}}, {"id": 103, "type": "identifier", "text": "handleThisExprMutator", "parent": 102, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 34}}, {"id": 104, "type": "parameter_list", "text": "(Node *node, void *context)", "parent": 102, "children": [105, 110], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 62}}, {"id": 105, "type": "parameter_declaration", "text": "Node *node", "parent": 104, "children": [106, 107], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 46}}, {"id": 106, "type": "type_identifier", "text": "Node", "parent": 105, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 40}}, {"id": 107, "type": "pointer_declarator", "text": "*node", "parent": 105, "children": [108, 109], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 46}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 42}}, {"id": 109, "type": "identifier", "text": "node", "parent": 107, "children": [], "start_point": {"row": 64, "column": 42}, "end_point": {"row": 64, "column": 46}}, {"id": 110, "type": "parameter_declaration", "text": "void *context", "parent": 104, "children": [111, 112], "start_point": {"row": 64, "column": 48}, "end_point": {"row": 64, "column": 61}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 64, "column": 48}, "end_point": {"row": 64, "column": 52}}, {"id": 112, "type": "pointer_declarator", "text": "*context", "parent": 110, "children": [113, 114], "start_point": {"row": 64, "column": 53}, "end_point": {"row": 64, "column": 61}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 64, "column": 53}, "end_point": {"row": 64, "column": 54}}, {"id": 114, "type": "identifier", "text": "context", "parent": 112, "children": [], "start_point": {"row": 64, "column": 54}, "end_point": {"row": 64, "column": 61}}, {"id": 115, "type": "declaration", "text": "static Node *transformThisExpr (ThisExpr *this, ThisWalkerContext *context);", "parent": null, "children": [116, 117], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 76}}, {"id": 116, "type": "type_identifier", "text": "Node", "parent": 115, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 11}}, {"id": 117, "type": "pointer_declarator", "text": "*transformThisExpr (ThisExpr *this, ThisWalkerContext *context)", "parent": 115, "children": [118, 119], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 75}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 119, "type": "function_declarator", "text": "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)", "parent": 117, "children": [120, 121], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 75}}, {"id": 120, "type": "identifier", "text": "transformThisExpr", "parent": 119, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 30}}, {"id": 121, "type": "parameter_list", "text": "(ThisExpr *this, ThisWalkerContext *context)", "parent": 119, "children": [122, 127], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 75}}, {"id": 122, "type": "parameter_declaration", "text": "ThisExpr *this", "parent": 121, "children": [123, 124], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 46}}, {"id": 123, "type": "type_identifier", "text": "ThisExpr", "parent": 122, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 40}}, {"id": 124, "type": "pointer_declarator", "text": "*this", "parent": 122, "children": [125, 126], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 46}}, {"id": 125, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 42}}, {"id": 126, "type": "identifier", "text": "this", "parent": 124, "children": [], "start_point": {"row": 65, "column": 42}, "end_point": {"row": 65, "column": 46}}, {"id": 127, "type": "parameter_declaration", "text": "ThisWalkerContext *context", "parent": 121, "children": [128, 129], "start_point": {"row": 65, "column": 48}, "end_point": {"row": 65, "column": 74}}, {"id": 128, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 127, "children": [], "start_point": {"row": 65, "column": 48}, "end_point": {"row": 65, "column": 65}}, {"id": 129, "type": "pointer_declarator", "text": "*context", "parent": 127, "children": [130, 131], "start_point": {"row": 65, "column": 66}, "end_point": {"row": 65, "column": 74}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 65, "column": 66}, "end_point": {"row": 65, "column": 67}}, {"id": 131, "type": "identifier", "text": "context", "parent": 129, "children": [], "start_point": {"row": 65, "column": 67}, "end_point": {"row": 65, "column": 74}}, {"id": 132, "type": "function_definition", "text": "Node *\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tFuncExpr *result;\n\tOid xsltOid;\n\tOid paramOids[2] = {TEXTOID, TEXTOID};\n\tList *args;\n\tNode *param;\n\tOid paramType;\n\n\t/* inform the analyzer of the new sublink */\n\tpstate->p_hasSubLinks = true;\n\n\t/* get xsltOid */\n\txsltOid = LookupFuncName(list_make1(makeString(\"xslt_process\")), 2, paramOids, true); //TODO cache\n\n\t/* analyze the parameter and if necessary cast it to text */\n\tparam = transformExpr(pstate, xslt->param);\n\tparamType = exprType(param);\n\n\tif (paramType != TEXTOID)\n\t{\n\t\tparam = coerce_to_target_type(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST);\n\n\t\tif (!param)\n\t\t\tereport(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))));\n\t}\n\t/* generate args */\n\targs = list_make2(\n\t\t\t\tparam,\n\t\t\t\tgenerateXsltLookup(pstate, xslt)\n\t\t\t\t);\n\n\tresult = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);\n\n\treturn (Node *) result;\n}", "parent": null, "children": [133, 134], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 133, "type": "type_identifier", "text": "Node", "parent": 132, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 4}}, {"id": 134, "type": "pointer_declarator", "text": "*\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 132, "children": [135, 136], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 72, "column": 62}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 6}}, {"id": 136, "type": "function_declarator", "text": "transformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 134, "children": [137, 138], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 62}}, {"id": 137, "type": "identifier", "text": "transformXsltFuncCall", "parent": 136, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 21}}, {"id": 138, "type": "parameter_list", "text": "(ParseState *pstate, XsltFuncExpr *xslt)", "parent": 136, "children": [139, 144], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 62}}, {"id": 139, "type": "parameter_declaration", "text": "ParseState *pstate", "parent": 138, "children": [140, 141], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 41}}, {"id": 140, "type": "type_identifier", "text": "ParseState", "parent": 139, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 33}}, {"id": 141, "type": "pointer_declarator", "text": "*pstate", "parent": 139, "children": [142, 143], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 41}}, {"id": 142, "type": "*", "text": "*", "parent": 141, "children": [], "start_point": {"row": 72, "column": 34}, "end_point": {"row": 72, "column": 35}}, {"id": 143, "type": "identifier", "text": "pstate", "parent": 141, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 41}}, {"id": 144, "type": "parameter_declaration", "text": "XsltFuncExpr *xslt", "parent": 138, "children": [145, 146], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 61}}, {"id": 145, "type": "type_identifier", "text": "XsltFuncExpr", "parent": 144, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 55}}, {"id": 146, "type": "pointer_declarator", "text": "*xslt", "parent": 144, "children": [147, 148], "start_point": {"row": 72, "column": 56}, "end_point": {"row": 72, "column": 61}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 72, "column": 56}, "end_point": {"row": 72, "column": 57}}, {"id": 148, "type": "identifier", "text": "xslt", "parent": 146, "children": [], "start_point": {"row": 72, "column": 57}, "end_point": {"row": 72, "column": 61}}, {"id": 149, "type": "declaration", "text": "FuncExpr *result;", "parent": 132, "children": [150, 151], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 18}}, {"id": 150, "type": "type_identifier", "text": "FuncExpr", "parent": 149, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 9}}, {"id": 151, "type": "pointer_declarator", "text": "*result", "parent": 149, "children": [152, 153], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 17}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 153, "type": "identifier", "text": "result", "parent": 151, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 17}}, {"id": 154, "type": "declaration", "text": "Oid xsltOid;", "parent": 132, "children": [155, 156], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 13}}, {"id": 155, "type": "type_identifier", "text": "Oid", "parent": 154, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 4}}, {"id": 156, "type": "identifier", "text": "xsltOid", "parent": 154, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 12}}, {"id": 157, "type": "declaration", "text": "Oid paramOids[2] = {TEXTOID, TEXTOID};", "parent": 132, "children": [158, 159], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 39}}, {"id": 158, "type": "type_identifier", "text": "Oid", "parent": 157, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 4}}, {"id": 159, "type": "init_declarator", "text": "paramOids[2] = {TEXTOID, TEXTOID}", "parent": 157, "children": [160, 163, 164], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 38}}, {"id": 160, "type": "array_declarator", "text": "paramOids[2]", "parent": 159, "children": [161, 162], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 17}}, {"id": 161, "type": "identifier", "text": "paramOids", "parent": 160, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 14}}, {"id": 162, "type": "number_literal", "text": "2", "parent": 160, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 16}}, {"id": 163, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 19}}, {"id": 164, "type": "initializer_list", "text": "{TEXTOID, TEXTOID}", "parent": 159, "children": [165, 166], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 38}}, {"id": 165, "type": "identifier", "text": "TEXTOID", "parent": 164, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 28}}, {"id": 166, "type": "identifier", "text": "TEXTOID", "parent": 164, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 37}}, {"id": 167, "type": "declaration", "text": "List *args;", "parent": 132, "children": [168, 169], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 12}}, {"id": 168, "type": "type_identifier", "text": "List", "parent": 167, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 169, "type": "pointer_declarator", "text": "*args", "parent": 167, "children": [170, 171], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 11}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 7}}, {"id": 171, "type": "identifier", "text": "args", "parent": 169, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 11}}, {"id": 172, "type": "declaration", "text": "Node *param;", "parent": 132, "children": [173, 174], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 13}}, {"id": 173, "type": "type_identifier", "text": "Node", "parent": 172, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 5}}, {"id": 174, "type": "pointer_declarator", "text": "*param", "parent": 172, "children": [175, 176], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 12}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 7}}, {"id": 176, "type": "identifier", "text": "param", "parent": 174, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 12}}, {"id": 177, "type": "declaration", "text": "Oid paramType;", "parent": 132, "children": [178, 179], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 15}}, {"id": 178, "type": "type_identifier", "text": "Oid", "parent": 177, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 179, "type": "identifier", "text": "paramType", "parent": 177, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 14}}, {"id": 180, "type": "assignment_expression", "text": "pstate->p_hasSubLinks = true", "parent": 132, "children": [181, 184, 185], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 29}}, {"id": 181, "type": "field_expression", "text": "pstate->p_hasSubLinks", "parent": 180, "children": [182, 183], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 22}}, {"id": 182, "type": "identifier", "text": "pstate", "parent": 181, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 7}}, {"id": 183, "type": "field_identifier", "text": "p_hasSubLinks", "parent": 181, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 22}}, {"id": 184, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 24}}, {"id": 185, "type": "true", "text": "true", "parent": 180, "children": [], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 29}}, {"id": 186, "type": "assignment_expression", "text": "xsltOid = LookupFuncName(list_make1(makeString(\"xslt_process\")), 2, paramOids, true)", "parent": 132, "children": [187, 188, 189], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 85}}, {"id": 187, "type": "identifier", "text": "xsltOid", "parent": 186, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 8}}, {"id": 188, "type": "=", "text": "=", "parent": 186, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 10}}, {"id": 189, "type": "call_expression", "text": "LookupFuncName(list_make1(makeString(\"xslt_process\")), 2, paramOids, true)", "parent": 186, "children": [190, 191], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 85}}, {"id": 190, "type": "identifier", "text": "LookupFuncName", "parent": 189, "children": [], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 25}}, {"id": 191, "type": "argument_list", "text": "(list_make1(makeString(\"xslt_process\")), 2, paramOids, true)", "parent": 189, "children": [192, 199, 200, 201], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 85}}, {"id": 192, "type": "call_expression", "text": "list_make1(makeString(\"xslt_process\"))", "parent": 191, "children": [193, 194], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 64}}, {"id": 193, "type": "identifier", "text": "list_make1", "parent": 192, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 36}}, {"id": 194, "type": "argument_list", "text": "(makeString(\"xslt_process\"))", "parent": 192, "children": [195], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 64}}, {"id": 195, "type": "call_expression", "text": "makeString(\"xslt_process\")", "parent": 194, "children": [196, 197], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 63}}, {"id": 196, "type": "identifier", "text": "makeString", "parent": 195, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 47}}, {"id": 197, "type": "argument_list", "text": "(\"xslt_process\")", "parent": 195, "children": [198], "start_point": {"row": 85, "column": 47}, "end_point": {"row": 85, "column": 63}}, {"id": 198, "type": "string_literal", "text": "\"xslt_process\"", "parent": 197, "children": [], "start_point": {"row": 85, "column": 48}, "end_point": {"row": 85, "column": 62}}, {"id": 199, "type": "number_literal", "text": "2", "parent": 191, "children": [], "start_point": {"row": 85, "column": 66}, "end_point": {"row": 85, "column": 67}}, {"id": 200, "type": "identifier", "text": "paramOids", "parent": 191, "children": [], "start_point": {"row": 85, "column": 69}, "end_point": {"row": 85, "column": 78}}, {"id": 201, "type": "true", "text": "true", "parent": 191, "children": [], "start_point": {"row": 85, "column": 80}, "end_point": {"row": 85, "column": 84}}, {"id": 202, "type": "assignment_expression", "text": "param = transformExpr(pstate, xslt->param)", "parent": 132, "children": [203, 204, 205], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 43}}, {"id": 203, "type": "identifier", "text": "param", "parent": 202, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 6}}, {"id": 204, "type": "=", "text": "=", "parent": 202, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 8}}, {"id": 205, "type": "call_expression", "text": "transformExpr(pstate, xslt->param)", "parent": 202, "children": [206, 207], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 43}}, {"id": 206, "type": "identifier", "text": "transformExpr", "parent": 205, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 22}}, {"id": 207, "type": "argument_list", "text": "(pstate, xslt->param)", "parent": 205, "children": [208, 209], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 43}}, {"id": 208, "type": "identifier", "text": "pstate", "parent": 207, "children": [], "start_point": {"row": 88, "column": 23}, "end_point": {"row": 88, "column": 29}}, {"id": 209, "type": "field_expression", "text": "xslt->param", "parent": 207, "children": [210, 211], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 42}}, {"id": 210, "type": "identifier", "text": "xslt", "parent": 209, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 35}}, {"id": 211, "type": "field_identifier", "text": "param", "parent": 209, "children": [], "start_point": {"row": 88, "column": 37}, "end_point": {"row": 88, "column": 42}}, {"id": 212, "type": "assignment_expression", "text": "paramType = exprType(param)", "parent": 132, "children": [213, 214, 215], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 28}}, {"id": 213, "type": "identifier", "text": "paramType", "parent": 212, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 10}}, {"id": 214, "type": "=", "text": "=", "parent": 212, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 12}}, {"id": 215, "type": "call_expression", "text": "exprType(param)", "parent": 212, "children": [216, 217], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 28}}, {"id": 216, "type": "identifier", "text": "exprType", "parent": 215, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 21}}, {"id": 217, "type": "argument_list", "text": "(param)", "parent": 215, "children": [218], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 28}}, {"id": 218, "type": "identifier", "text": "param", "parent": 217, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 27}}, {"id": 219, "type": "if_statement", "text": "if (paramType != TEXTOID)\n\t{\n\t\tparam = coerce_to_target_type(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST);\n\n\t\tif (!param)\n\t\t\tereport(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))));\n\t}", "parent": 132, "children": [220], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 220, "type": "parenthesized_expression", "text": "(paramType != TEXTOID)", "parent": 219, "children": [221], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 26}}, {"id": 221, "type": "binary_expression", "text": "paramType != TEXTOID", "parent": 220, "children": [222, 223, 224], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 25}}, {"id": 222, "type": "identifier", "text": "paramType", "parent": 221, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 14}}, {"id": 223, "type": "!=", "text": "!=", "parent": 221, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 17}}, {"id": 224, "type": "identifier", "text": "TEXTOID", "parent": 221, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 25}}, {"id": 225, "type": "assignment_expression", "text": "param = coerce_to_target_type(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST)", "parent": 219, "children": [226, 227, 228], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 99, "column": 30}}, {"id": 226, "type": "identifier", "text": "param", "parent": 225, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 7}}, {"id": 227, "type": "=", "text": "=", "parent": 225, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 9}}, {"id": 228, "type": "call_expression", "text": "coerce_to_target_type(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST)", "parent": 225, "children": [229, 230], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 99, "column": 30}}, {"id": 229, "type": "identifier", "text": "coerce_to_target_type", "parent": 228, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 31}}, {"id": 230, "type": "argument_list", "text": "(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST)", "parent": 228, "children": [231, 232, 233, 234, 235, 236, 237], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 99, "column": 30}}, {"id": 231, "type": "identifier", "text": "pstate", "parent": 230, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 38}}, {"id": 232, "type": "identifier", "text": "param", "parent": 230, "children": [], "start_point": {"row": 94, "column": 9}, "end_point": {"row": 94, "column": 14}}, {"id": 233, "type": "identifier", "text": "paramType", "parent": 230, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 18}}, {"id": 234, "type": "identifier", "text": "TEXTOID", "parent": 230, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 16}}, {"id": 235, "type": "number_literal", "text": "-1", "parent": 230, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 11}}, {"id": 236, "type": "identifier", "text": "COERCION_EXPLICIT", "parent": 230, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 26}}, {"id": 237, "type": "identifier", "text": "COERCE_IMPLICIT_CAST", "parent": 230, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 29}}, {"id": 238, "type": "if_statement", "text": "if (!param)\n\t\t\tereport(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))));", "parent": 219, "children": [239], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 104, "column": 74}}, {"id": 239, "type": "parenthesized_expression", "text": "(!param)", "parent": 238, "children": [240], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 13}}, {"id": 240, "type": "unary_expression", "text": "!param", "parent": 239, "children": [241, 242], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 12}}, {"id": 241, "type": "!", "text": "!", "parent": 240, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 7}}, {"id": 242, "type": "identifier", "text": "param", "parent": 240, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 12}}, {"id": 243, "type": "call_expression", "text": "ereport(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))))", "parent": 238, "children": [244, 245], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 104, "column": 73}}, {"id": 244, "type": "identifier", "text": "ereport", "parent": 243, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 10}}, {"id": 245, "type": "argument_list", "text": "(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))))", "parent": 243, "children": [246, 247], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 104, "column": 73}}, {"id": 246, "type": "identifier", "text": "ERROR", "parent": 245, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 16}}, {"id": 247, "type": "parenthesized_expression", "text": "(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType)))", "parent": 245, "children": [248], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 104, "column": 72}}, {"id": 248, "type": "comma_expression", "text": "errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))", "parent": 247, "children": [249, 253], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 104, "column": 71}}, {"id": 249, "type": "call_expression", "text": "errcode(ERRCODE_UNDEFINED_PARAMETER)", "parent": 248, "children": [250, 251], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 42}}, {"id": 250, "type": "identifier", "text": "errcode", "parent": 249, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 13}}, {"id": 251, "type": "argument_list", "text": "(ERRCODE_UNDEFINED_PARAMETER)", "parent": 249, "children": [252], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 42}}, {"id": 252, "type": "identifier", "text": "ERRCODE_UNDEFINED_PARAMETER", "parent": 251, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 41}}, {"id": 253, "type": "call_expression", "text": "errmsg(\"cannot coerce type %s to text\", format_type_be(paramType))", "parent": 248, "children": [254, 255], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 71}}, {"id": 254, "type": "identifier", "text": "errmsg", "parent": 253, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 11}}, {"id": 255, "type": "argument_list", "text": "(\"cannot coerce type %s to text\", format_type_be(paramType))", "parent": 253, "children": [256, 257], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 71}}, {"id": 256, "type": "string_literal", "text": "\"cannot coerce type %s to text\"", "parent": 255, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 43}}, {"id": 257, "type": "call_expression", "text": "format_type_be(paramType)", "parent": 255, "children": [258, 259], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 70}}, {"id": 258, "type": "identifier", "text": "format_type_be", "parent": 257, "children": [], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 59}}, {"id": 259, "type": "argument_list", "text": "(paramType)", "parent": 257, "children": [260], "start_point": {"row": 104, "column": 59}, "end_point": {"row": 104, "column": 70}}, {"id": 260, "type": "identifier", "text": "paramType", "parent": 259, "children": [], "start_point": {"row": 104, "column": 60}, "end_point": {"row": 104, "column": 69}}, {"id": 261, "type": "assignment_expression", "text": "args = list_make2(\n\t\t\t\tparam,\n\t\t\t\tgenerateXsltLookup(pstate, xslt)\n\t\t\t\t)", "parent": 132, "children": [262, 263, 264], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 110, "column": 5}}, {"id": 262, "type": "identifier", "text": "args", "parent": 261, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 5}}, {"id": 263, "type": "=", "text": "=", "parent": 261, "children": [], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 7}}, {"id": 264, "type": "call_expression", "text": "list_make2(\n\t\t\t\tparam,\n\t\t\t\tgenerateXsltLookup(pstate, xslt)\n\t\t\t\t)", "parent": 261, "children": [265, 266], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 110, "column": 5}}, {"id": 265, "type": "identifier", "text": "list_make2", "parent": 264, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 18}}, {"id": 266, "type": "argument_list", "text": "(\n\t\t\t\tparam,\n\t\t\t\tgenerateXsltLookup(pstate, xslt)\n\t\t\t\t)", "parent": 264, "children": [267, 268], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 110, "column": 5}}, {"id": 267, "type": "identifier", "text": "param", "parent": 266, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 9}}, {"id": 268, "type": "call_expression", "text": "generateXsltLookup(pstate, xslt)", "parent": 266, "children": [269, 270], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 36}}, {"id": 269, "type": "identifier", "text": "generateXsltLookup", "parent": 268, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 22}}, {"id": 270, "type": "argument_list", "text": "(pstate, xslt)", "parent": 268, "children": [271, 272], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 36}}, {"id": 271, "type": "identifier", "text": "pstate", "parent": 270, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 29}}, {"id": 272, "type": "identifier", "text": "xslt", "parent": 270, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 35}}, {"id": 273, "type": "assignment_expression", "text": "result = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)", "parent": 132, "children": [274, 275, 276], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 68}}, {"id": 274, "type": "identifier", "text": "result", "parent": 273, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 7}}, {"id": 275, "type": "=", "text": "=", "parent": 273, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 9}}, {"id": 276, "type": "call_expression", "text": "makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)", "parent": 273, "children": [277, 278], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 68}}, {"id": 277, "type": "identifier", "text": "makeFuncExpr", "parent": 276, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 22}}, {"id": 278, "type": "argument_list", "text": "(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL)", "parent": 276, "children": [279, 280, 281, 282], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 68}}, {"id": 279, "type": "identifier", "text": "xsltOid", "parent": 278, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 30}}, {"id": 280, "type": "identifier", "text": "TEXTOID", "parent": 278, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 39}}, {"id": 281, "type": "identifier", "text": "args", "parent": 278, "children": [], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 45}}, {"id": 282, "type": "identifier", "text": "COERCE_EXPLICIT_CALL", "parent": 278, "children": [], "start_point": {"row": 112, "column": 47}, "end_point": {"row": 112, "column": 67}}, {"id": 283, "type": "return_statement", "text": "return (Node *) result;", "parent": 132, "children": [284], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 24}}, {"id": 284, "type": "cast_expression", "text": "(Node *) result", "parent": 283, "children": [285, 289], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 23}}, {"id": 285, "type": "type_descriptor", "text": "Node *", "parent": 284, "children": [286, 287], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 15}}, {"id": 286, "type": "type_identifier", "text": "Node", "parent": 285, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 13}}, {"id": 287, "type": "abstract_pointer_declarator", "text": "*", "parent": 285, "children": [288], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 288, "type": "*", "text": "*", "parent": 287, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 289, "type": "identifier", "text": "result", "parent": 284, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 23}}, {"id": 290, "type": "function_definition", "text": "static Node *\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tRelabelType *caster;\n\tSubLink *result;\n\tQuery *query;\n\tRangeTblRef *rtRef;\n\tRangeTblEntry *rte;\n\tRangeVar *rangeVar;\n\tConst *funcNameConst;\n\tDatum constVal;\n\n\tresult = makeNode(SubLink);\n\tquery = makeQuery ();\n\n\tresult->operName = NIL;\n\tresult->subLinkType = EXPR_SUBLINK;\n\tresult->testexpr = NULL;\n\tresult->subselect = (Node *) query;\n\n\t/* create target entry (the XSLT-script) */\n\tquery->targetList = list_make1(makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false));\n\n//\trte = makeRte(RTE_RELATION);\n//\trte->relid = RelnameGetRelid(\"xslt_funcs\");\n\n\t/* create range table entry for xslt_funcs */\n\trangeVar = makeNode(RangeVar);\n\n\trangeVar->relname = \"xslt_funcs\";\n\trangeVar->catalogname = NULL;\n\trangeVar->schemaname = NULL;\n\trangeVar->isProvBase = false;\n\trangeVar->istemp = false;\n\trangeVar->provAttrs = NIL;\n\trangeVar->inhOpt = INH_NO;\n\trangeVar->alias = NULL;\n\n\trte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);\n\tquery->rtable = list_make1(rte);\n\n\t/* create jointree and qual that checks for the correct function name */\n\tMAKE_RTREF(rtRef, 1);\n\tquery->jointree->fromlist = list_make1(rtRef);\n\n\tconstVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));\n\tfuncNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);\n\tquery->jointree->quals = createEqualityConditionForNodes(\n\t\t\t\t\t\t\t\t\t(Node *) makeVar(1,1,TEXTOID,-1,0),\n\t\t\t\t\t\t\t\t\t(Node *) funcNameConst);\n\n\tcaster = makeNode(RelabelType);\n\tcaster->arg = (Expr *) result;\n\tcaster->resulttype = TEXTOID;\n\tcaster->resulttypmod = -1;\n\tcaster->relabelformat = COERCE_EXPLICIT_CAST;\n\n\treturn (Node *) caster;\n}", "parent": null, "children": [291, 292], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 180, "column": 1}}, {"id": 291, "type": "type_identifier", "text": "Node", "parent": 290, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 11}}, {"id": 292, "type": "pointer_declarator", "text": "*\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 290, "children": [293, 294], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 122, "column": 59}}, {"id": 293, "type": "*", "text": "*", "parent": 292, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 13}}, {"id": 294, "type": "function_declarator", "text": "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)", "parent": 292, "children": [295, 296], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 59}}, {"id": 295, "type": "identifier", "text": "generateXsltLookup", "parent": 294, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 18}}, {"id": 296, "type": "parameter_list", "text": "(ParseState *pstate, XsltFuncExpr *xslt)", "parent": 294, "children": [297, 302], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 59}}, {"id": 297, "type": "parameter_declaration", "text": "ParseState *pstate", "parent": 296, "children": [298, 299], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 38}}, {"id": 298, "type": "type_identifier", "text": "ParseState", "parent": 297, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 30}}, {"id": 299, "type": "pointer_declarator", "text": "*pstate", "parent": 297, "children": [300, 301], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 38}}, {"id": 300, "type": "*", "text": "*", "parent": 299, "children": [], "start_point": {"row": 122, "column": 31}, "end_point": {"row": 122, "column": 32}}, {"id": 301, "type": "identifier", "text": "pstate", "parent": 299, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 38}}, {"id": 302, "type": "parameter_declaration", "text": "XsltFuncExpr *xslt", "parent": 296, "children": [303, 304], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 58}}, {"id": 303, "type": "type_identifier", "text": "XsltFuncExpr", "parent": 302, "children": [], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 52}}, {"id": 304, "type": "pointer_declarator", "text": "*xslt", "parent": 302, "children": [305, 306], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 58}}, {"id": 305, "type": "*", "text": "*", "parent": 304, "children": [], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 54}}, {"id": 306, "type": "identifier", "text": "xslt", "parent": 304, "children": [], "start_point": {"row": 122, "column": 54}, "end_point": {"row": 122, "column": 58}}, {"id": 307, "type": "declaration", "text": "RelabelType *caster;", "parent": 290, "children": [308, 309], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 21}}, {"id": 308, "type": "type_identifier", "text": "RelabelType", "parent": 307, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 12}}, {"id": 309, "type": "pointer_declarator", "text": "*caster", "parent": 307, "children": [310, 311], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 20}}, {"id": 310, "type": "*", "text": "*", "parent": 309, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 14}}, {"id": 311, "type": "identifier", "text": "caster", "parent": 309, "children": [], "start_point": {"row": 124, "column": 14}, "end_point": {"row": 124, "column": 20}}, {"id": 312, "type": "declaration", "text": "SubLink *result;", "parent": 290, "children": [313, 314], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 17}}, {"id": 313, "type": "type_identifier", "text": "SubLink", "parent": 312, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 8}}, {"id": 314, "type": "pointer_declarator", "text": "*result", "parent": 312, "children": [315, 316], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 16}}, {"id": 315, "type": "*", "text": "*", "parent": 314, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 10}}, {"id": 316, "type": "identifier", "text": "result", "parent": 314, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 16}}, {"id": 317, "type": "declaration", "text": "Query *query;", "parent": 290, "children": [318, 319], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 14}}, {"id": 318, "type": "type_identifier", "text": "Query", "parent": 317, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 6}}, {"id": 319, "type": "pointer_declarator", "text": "*query", "parent": 317, "children": [320, 321], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 8}}, {"id": 321, "type": "identifier", "text": "query", "parent": 319, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 13}}, {"id": 322, "type": "declaration", "text": "RangeTblRef *rtRef;", "parent": 290, "children": [323, 324], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 20}}, {"id": 323, "type": "type_identifier", "text": "RangeTblRef", "parent": 322, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 12}}, {"id": 324, "type": "pointer_declarator", "text": "*rtRef", "parent": 322, "children": [325, 326], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 19}}, {"id": 325, "type": "*", "text": "*", "parent": 324, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 14}}, {"id": 326, "type": "identifier", "text": "rtRef", "parent": 324, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 19}}, {"id": 327, "type": "declaration", "text": "RangeTblEntry *rte;", "parent": 290, "children": [328, 329], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 20}}, {"id": 328, "type": "type_identifier", "text": "RangeTblEntry", "parent": 327, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 14}}, {"id": 329, "type": "pointer_declarator", "text": "*rte", "parent": 327, "children": [330, 331], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 19}}, {"id": 330, "type": "*", "text": "*", "parent": 329, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 16}}, {"id": 331, "type": "identifier", "text": "rte", "parent": 329, "children": [], "start_point": {"row": 128, "column": 16}, "end_point": {"row": 128, "column": 19}}, {"id": 332, "type": "declaration", "text": "RangeVar *rangeVar;", "parent": 290, "children": [333, 334], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 20}}, {"id": 333, "type": "type_identifier", "text": "RangeVar", "parent": 332, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 9}}, {"id": 334, "type": "pointer_declarator", "text": "*rangeVar", "parent": 332, "children": [335, 336], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 19}}, {"id": 335, "type": "*", "text": "*", "parent": 334, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 336, "type": "identifier", "text": "rangeVar", "parent": 334, "children": [], "start_point": {"row": 129, "column": 11}, "end_point": {"row": 129, "column": 19}}, {"id": 337, "type": "declaration", "text": "Const *funcNameConst;", "parent": 290, "children": [338, 339], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 22}}, {"id": 338, "type": "type_identifier", "text": "Const", "parent": 337, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 6}}, {"id": 339, "type": "pointer_declarator", "text": "*funcNameConst", "parent": 337, "children": [340, 341], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 21}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 8}}, {"id": 341, "type": "identifier", "text": "funcNameConst", "parent": 339, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 21}}, {"id": 342, "type": "declaration", "text": "Datum constVal;", "parent": 290, "children": [343, 344], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 16}}, {"id": 343, "type": "type_identifier", "text": "Datum", "parent": 342, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 6}}, {"id": 344, "type": "identifier", "text": "constVal", "parent": 342, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 15}}, {"id": 345, "type": "assignment_expression", "text": "result = makeNode(SubLink)", "parent": 290, "children": [346, 347, 348], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 27}}, {"id": 346, "type": "identifier", "text": "result", "parent": 345, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 7}}, {"id": 347, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 9}}, {"id": 348, "type": "call_expression", "text": "makeNode(SubLink)", "parent": 345, "children": [349, 350], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 27}}, {"id": 349, "type": "identifier", "text": "makeNode", "parent": 348, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 18}}, {"id": 350, "type": "argument_list", "text": "(SubLink)", "parent": 348, "children": [351], "start_point": {"row": 133, "column": 18}, "end_point": {"row": 133, "column": 27}}, {"id": 351, "type": "identifier", "text": "SubLink", "parent": 350, "children": [], "start_point": {"row": 133, "column": 19}, "end_point": {"row": 133, "column": 26}}, {"id": 352, "type": "assignment_expression", "text": "query = makeQuery ()", "parent": 290, "children": [353, 354, 355], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 21}}, {"id": 353, "type": "identifier", "text": "query", "parent": 352, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 6}}, {"id": 354, "type": "=", "text": "=", "parent": 352, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 8}}, {"id": 355, "type": "call_expression", "text": "makeQuery ()", "parent": 352, "children": [356, 357], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 21}}, {"id": 356, "type": "identifier", "text": "makeQuery", "parent": 355, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 18}}, {"id": 357, "type": "argument_list", "text": "()", "parent": 355, "children": [], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 21}}, {"id": 358, "type": "assignment_expression", "text": "result->operName = NIL", "parent": 290, "children": [359, 362, 363], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 23}}, {"id": 359, "type": "field_expression", "text": "result->operName", "parent": 358, "children": [360, 361], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 17}}, {"id": 360, "type": "identifier", "text": "result", "parent": 359, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 7}}, {"id": 361, "type": "field_identifier", "text": "operName", "parent": 359, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 17}}, {"id": 362, "type": "=", "text": "=", "parent": 358, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 19}}, {"id": 363, "type": "identifier", "text": "NIL", "parent": 358, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 23}}, {"id": 364, "type": "assignment_expression", "text": "result->subLinkType = EXPR_SUBLINK", "parent": 290, "children": [365, 368, 369], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 35}}, {"id": 365, "type": "field_expression", "text": "result->subLinkType", "parent": 364, "children": [366, 367], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 20}}, {"id": 366, "type": "identifier", "text": "result", "parent": 365, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 7}}, {"id": 367, "type": "field_identifier", "text": "subLinkType", "parent": 365, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 20}}, {"id": 368, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 22}}, {"id": 369, "type": "identifier", "text": "EXPR_SUBLINK", "parent": 364, "children": [], "start_point": {"row": 137, "column": 23}, "end_point": {"row": 137, "column": 35}}, {"id": 370, "type": "assignment_expression", "text": "result->testexpr = NULL", "parent": 290, "children": [371, 374, 375], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 24}}, {"id": 371, "type": "field_expression", "text": "result->testexpr", "parent": 370, "children": [372, 373], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 17}}, {"id": 372, "type": "identifier", "text": "result", "parent": 371, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 7}}, {"id": 373, "type": "field_identifier", "text": "testexpr", "parent": 371, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 17}}, {"id": 374, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 19}}, {"id": 375, "type": "null", "text": "NULL", "parent": 370, "children": [376], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 24}}, {"id": 376, "type": "NULL", "text": "NULL", "parent": 375, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 24}}, {"id": 377, "type": "assignment_expression", "text": "result->subselect = (Node *) query", "parent": 290, "children": [378, 381, 382], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 35}}, {"id": 378, "type": "field_expression", "text": "result->subselect", "parent": 377, "children": [379, 380], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 18}}, {"id": 379, "type": "identifier", "text": "result", "parent": 378, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 7}}, {"id": 380, "type": "field_identifier", "text": "subselect", "parent": 378, "children": [], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 18}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 20}}, {"id": 382, "type": "cast_expression", "text": "(Node *) query", "parent": 377, "children": [383, 387], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 35}}, {"id": 383, "type": "type_descriptor", "text": "Node *", "parent": 382, "children": [384, 385], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 28}}, {"id": 384, "type": "type_identifier", "text": "Node", "parent": 383, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 26}}, {"id": 385, "type": "abstract_pointer_declarator", "text": "*", "parent": 383, "children": [386], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 386, "type": "*", "text": "*", "parent": 385, "children": [], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 387, "type": "identifier", "text": "query", "parent": 382, "children": [], "start_point": {"row": 139, "column": 30}, "end_point": {"row": 139, "column": 35}}, {"id": 388, "type": "assignment_expression", "text": "query->targetList = list_make1(makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false))", "parent": 290, "children": [389, 392, 393], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 143, "column": 61}}, {"id": 389, "type": "field_expression", "text": "query->targetList", "parent": 388, "children": [390, 391], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 18}}, {"id": 390, "type": "identifier", "text": "query", "parent": 389, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 6}}, {"id": 391, "type": "field_identifier", "text": "targetList", "parent": 389, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 18}}, {"id": 392, "type": "=", "text": "=", "parent": 388, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 20}}, {"id": 393, "type": "call_expression", "text": "list_make1(makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false))", "parent": 388, "children": [394, 395], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 143, "column": 61}}, {"id": 394, "type": "identifier", "text": "list_make1", "parent": 393, "children": [], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 31}}, {"id": 395, "type": "argument_list", "text": "(makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false))", "parent": 393, "children": [396], "start_point": {"row": 142, "column": 31}, "end_point": {"row": 143, "column": 61}}, {"id": 396, "type": "call_expression", "text": "makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false)", "parent": 395, "children": [397, 398], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 143, "column": 60}}, {"id": 397, "type": "identifier", "text": "makeTargetEntry", "parent": 396, "children": [], "start_point": {"row": 142, "column": 32}, "end_point": {"row": 142, "column": 47}}, {"id": 398, "type": "argument_list", "text": "(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false)", "parent": 396, "children": [399, 412, 413, 414], "start_point": {"row": 142, "column": 47}, "end_point": {"row": 143, "column": 60}}, {"id": 399, "type": "cast_expression", "text": "(Expr *) makeVar(1,2,XMLOID,-1 ,0)", "parent": 398, "children": [400, 404], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 41}}, {"id": 400, "type": "type_descriptor", "text": "Expr *", "parent": 399, "children": [401, 402], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 14}}, {"id": 401, "type": "type_identifier", "text": "Expr", "parent": 400, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 12}}, {"id": 402, "type": "abstract_pointer_declarator", "text": "*", "parent": 400, "children": [403], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 14}}, {"id": 403, "type": "*", "text": "*", "parent": 402, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 14}}, {"id": 404, "type": "call_expression", "text": "makeVar(1,2,XMLOID,-1 ,0)", "parent": 399, "children": [405, 406], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 41}}, {"id": 405, "type": "identifier", "text": "makeVar", "parent": 404, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 23}}, {"id": 406, "type": "argument_list", "text": "(1,2,XMLOID,-1 ,0)", "parent": 404, "children": [407, 408, 409, 410, 411], "start_point": {"row": 143, "column": 23}, "end_point": {"row": 143, "column": 41}}, {"id": 407, "type": "number_literal", "text": "1", "parent": 406, "children": [], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 25}}, {"id": 408, "type": "number_literal", "text": "2", "parent": 406, "children": [], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 27}}, {"id": 409, "type": "identifier", "text": "XMLOID", "parent": 406, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 34}}, {"id": 410, "type": "number_literal", "text": "-1", "parent": 406, "children": [], "start_point": {"row": 143, "column": 35}, "end_point": {"row": 143, "column": 37}}, {"id": 411, "type": "number_literal", "text": "0", "parent": 406, "children": [], "start_point": {"row": 143, "column": 39}, "end_point": {"row": 143, "column": 40}}, {"id": 412, "type": "number_literal", "text": "1", "parent": 398, "children": [], "start_point": {"row": 143, "column": 43}, "end_point": {"row": 143, "column": 44}}, {"id": 413, "type": "string_literal", "text": "\"func\"", "parent": 398, "children": [], "start_point": {"row": 143, "column": 46}, "end_point": {"row": 143, "column": 52}}, {"id": 414, "type": "false", "text": "false", "parent": 398, "children": [], "start_point": {"row": 143, "column": 54}, "end_point": {"row": 143, "column": 59}}, {"id": 415, "type": "assignment_expression", "text": "rangeVar = makeNode(RangeVar)", "parent": 290, "children": [416, 417, 418], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 30}}, {"id": 416, "type": "identifier", "text": "rangeVar", "parent": 415, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 9}}, {"id": 417, "type": "=", "text": "=", "parent": 415, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 11}}, {"id": 418, "type": "call_expression", "text": "makeNode(RangeVar)", "parent": 415, "children": [419, 420], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 30}}, {"id": 419, "type": "identifier", "text": "makeNode", "parent": 418, "children": [], "start_point": {"row": 149, "column": 12}, "end_point": {"row": 149, "column": 20}}, {"id": 420, "type": "argument_list", "text": "(RangeVar)", "parent": 418, "children": [421], "start_point": {"row": 149, "column": 20}, "end_point": {"row": 149, "column": 30}}, {"id": 421, "type": "identifier", "text": "RangeVar", "parent": 420, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 29}}, {"id": 422, "type": "assignment_expression", "text": "rangeVar->relname = \"xslt_funcs\"", "parent": 290, "children": [423, 426, 427], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 33}}, {"id": 423, "type": "field_expression", "text": "rangeVar->relname", "parent": 422, "children": [424, 425], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 18}}, {"id": 424, "type": "identifier", "text": "rangeVar", "parent": 423, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 9}}, {"id": 425, "type": "field_identifier", "text": "relname", "parent": 423, "children": [], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 18}}, {"id": 426, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 20}}, {"id": 427, "type": "string_literal", "text": "\"xslt_funcs\"", "parent": 422, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 33}}, {"id": 428, "type": "assignment_expression", "text": "rangeVar->catalogname = NULL", "parent": 290, "children": [429, 432, 433], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 29}}, {"id": 429, "type": "field_expression", "text": "rangeVar->catalogname", "parent": 428, "children": [430, 431], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 22}}, {"id": 430, "type": "identifier", "text": "rangeVar", "parent": 429, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 9}}, {"id": 431, "type": "field_identifier", "text": "catalogname", "parent": 429, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 22}}, {"id": 432, "type": "=", "text": "=", "parent": 428, "children": [], "start_point": {"row": 152, "column": 23}, "end_point": {"row": 152, "column": 24}}, {"id": 433, "type": "null", "text": "NULL", "parent": 428, "children": [434], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 29}}, {"id": 434, "type": "NULL", "text": "NULL", "parent": 433, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 29}}, {"id": 435, "type": "assignment_expression", "text": "rangeVar->schemaname = NULL", "parent": 290, "children": [436, 439, 440], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 28}}, {"id": 436, "type": "field_expression", "text": "rangeVar->schemaname", "parent": 435, "children": [437, 438], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 21}}, {"id": 437, "type": "identifier", "text": "rangeVar", "parent": 436, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 9}}, {"id": 438, "type": "field_identifier", "text": "schemaname", "parent": 436, "children": [], "start_point": {"row": 153, "column": 11}, "end_point": {"row": 153, "column": 21}}, {"id": 439, "type": "=", "text": "=", "parent": 435, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 23}}, {"id": 440, "type": "null", "text": "NULL", "parent": 435, "children": [441], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 28}}, {"id": 441, "type": "NULL", "text": "NULL", "parent": 440, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 28}}, {"id": 442, "type": "assignment_expression", "text": "rangeVar->isProvBase = false", "parent": 290, "children": [443, 446, 447], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 29}}, {"id": 443, "type": "field_expression", "text": "rangeVar->isProvBase", "parent": 442, "children": [444, 445], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 21}}, {"id": 444, "type": "identifier", "text": "rangeVar", "parent": 443, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 9}}, {"id": 445, "type": "field_identifier", "text": "isProvBase", "parent": 443, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 21}}, {"id": 446, "type": "=", "text": "=", "parent": 442, "children": [], "start_point": {"row": 154, "column": 22}, "end_point": {"row": 154, "column": 23}}, {"id": 447, "type": "false", "text": "false", "parent": 442, "children": [], "start_point": {"row": 154, "column": 24}, "end_point": {"row": 154, "column": 29}}, {"id": 448, "type": "assignment_expression", "text": "rangeVar->istemp = false", "parent": 290, "children": [449, 452, 453], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 25}}, {"id": 449, "type": "field_expression", "text": "rangeVar->istemp", "parent": 448, "children": [450, 451], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 17}}, {"id": 450, "type": "identifier", "text": "rangeVar", "parent": 449, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 9}}, {"id": 451, "type": "field_identifier", "text": "istemp", "parent": 449, "children": [], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 17}}, {"id": 452, "type": "=", "text": "=", "parent": 448, "children": [], "start_point": {"row": 155, "column": 18}, "end_point": {"row": 155, "column": 19}}, {"id": 453, "type": "false", "text": "false", "parent": 448, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 25}}, {"id": 454, "type": "assignment_expression", "text": "rangeVar->provAttrs = NIL", "parent": 290, "children": [455, 458, 459], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 26}}, {"id": 455, "type": "field_expression", "text": "rangeVar->provAttrs", "parent": 454, "children": [456, 457], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 20}}, {"id": 456, "type": "identifier", "text": "rangeVar", "parent": 455, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 9}}, {"id": 457, "type": "field_identifier", "text": "provAttrs", "parent": 455, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 20}}, {"id": 458, "type": "=", "text": "=", "parent": 454, "children": [], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 22}}, {"id": 459, "type": "identifier", "text": "NIL", "parent": 454, "children": [], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 26}}, {"id": 460, "type": "assignment_expression", "text": "rangeVar->inhOpt = INH_NO", "parent": 290, "children": [461, 464, 465], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 26}}, {"id": 461, "type": "field_expression", "text": "rangeVar->inhOpt", "parent": 460, "children": [462, 463], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 17}}, {"id": 462, "type": "identifier", "text": "rangeVar", "parent": 461, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 9}}, {"id": 463, "type": "field_identifier", "text": "inhOpt", "parent": 461, "children": [], "start_point": {"row": 157, "column": 11}, "end_point": {"row": 157, "column": 17}}, {"id": 464, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 157, "column": 18}, "end_point": {"row": 157, "column": 19}}, {"id": 465, "type": "identifier", "text": "INH_NO", "parent": 460, "children": [], "start_point": {"row": 157, "column": 20}, "end_point": {"row": 157, "column": 26}}, {"id": 466, "type": "assignment_expression", "text": "rangeVar->alias = NULL", "parent": 290, "children": [467, 470, 471], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 23}}, {"id": 467, "type": "field_expression", "text": "rangeVar->alias", "parent": 466, "children": [468, 469], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 16}}, {"id": 468, "type": "identifier", "text": "rangeVar", "parent": 467, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 9}}, {"id": 469, "type": "field_identifier", "text": "alias", "parent": 467, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 16}}, {"id": 470, "type": "=", "text": "=", "parent": 466, "children": [], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 18}}, {"id": 471, "type": "null", "text": "NULL", "parent": 466, "children": [472], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 23}}, {"id": 472, "type": "NULL", "text": "NULL", "parent": 471, "children": [], "start_point": {"row": 158, "column": 19}, "end_point": {"row": 158, "column": 23}}, {"id": 473, "type": "assignment_expression", "text": "rte = addRangeTableEntry(pstate, rangeVar, NULL, false, true)", "parent": 290, "children": [474, 475, 476], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 62}}, {"id": 474, "type": "identifier", "text": "rte", "parent": 473, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 4}}, {"id": 475, "type": "=", "text": "=", "parent": 473, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 6}}, {"id": 476, "type": "call_expression", "text": "addRangeTableEntry(pstate, rangeVar, NULL, false, true)", "parent": 473, "children": [477, 478], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 62}}, {"id": 477, "type": "identifier", "text": "addRangeTableEntry", "parent": 476, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 25}}, {"id": 478, "type": "argument_list", "text": "(pstate, rangeVar, NULL, false, true)", "parent": 476, "children": [479, 480, 481, 483, 484], "start_point": {"row": 160, "column": 25}, "end_point": {"row": 160, "column": 62}}, {"id": 479, "type": "identifier", "text": "pstate", "parent": 478, "children": [], "start_point": {"row": 160, "column": 26}, "end_point": {"row": 160, "column": 32}}, {"id": 480, "type": "identifier", "text": "rangeVar", "parent": 478, "children": [], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 42}}, {"id": 481, "type": "null", "text": "NULL", "parent": 478, "children": [482], "start_point": {"row": 160, "column": 44}, "end_point": {"row": 160, "column": 48}}, {"id": 482, "type": "NULL", "text": "NULL", "parent": 481, "children": [], "start_point": {"row": 160, "column": 44}, "end_point": {"row": 160, "column": 48}}, {"id": 483, "type": "false", "text": "false", "parent": 478, "children": [], "start_point": {"row": 160, "column": 50}, "end_point": {"row": 160, "column": 55}}, {"id": 484, "type": "true", "text": "true", "parent": 478, "children": [], "start_point": {"row": 160, "column": 57}, "end_point": {"row": 160, "column": 61}}, {"id": 485, "type": "assignment_expression", "text": "query->rtable = list_make1(rte)", "parent": 290, "children": [486, 489, 490], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 32}}, {"id": 486, "type": "field_expression", "text": "query->rtable", "parent": 485, "children": [487, 488], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 14}}, {"id": 487, "type": "identifier", "text": "query", "parent": 486, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 6}}, {"id": 488, "type": "field_identifier", "text": "rtable", "parent": 486, "children": [], "start_point": {"row": 161, "column": 8}, "end_point": {"row": 161, "column": 14}}, {"id": 489, "type": "=", "text": "=", "parent": 485, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 16}}, {"id": 490, "type": "call_expression", "text": "list_make1(rte)", "parent": 485, "children": [491, 492], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 32}}, {"id": 491, "type": "identifier", "text": "list_make1", "parent": 490, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 27}}, {"id": 492, "type": "argument_list", "text": "(rte)", "parent": 490, "children": [493], "start_point": {"row": 161, "column": 27}, "end_point": {"row": 161, "column": 32}}, {"id": 493, "type": "identifier", "text": "rte", "parent": 492, "children": [], "start_point": {"row": 161, "column": 28}, "end_point": {"row": 161, "column": 31}}, {"id": 494, "type": "call_expression", "text": "MAKE_RTREF(rtRef, 1)", "parent": 290, "children": [495, 496], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 21}}, {"id": 495, "type": "identifier", "text": "MAKE_RTREF", "parent": 494, "children": [], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 11}}, {"id": 496, "type": "argument_list", "text": "(rtRef, 1)", "parent": 494, "children": [497, 498], "start_point": {"row": 164, "column": 11}, "end_point": {"row": 164, "column": 21}}, {"id": 497, "type": "identifier", "text": "rtRef", "parent": 496, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 17}}, {"id": 498, "type": "number_literal", "text": "1", "parent": 496, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 20}}, {"id": 499, "type": "assignment_expression", "text": "query->jointree->fromlist = list_make1(rtRef)", "parent": 290, "children": [500, 505, 506], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 46}}, {"id": 500, "type": "field_expression", "text": "query->jointree->fromlist", "parent": 499, "children": [501, 504], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 26}}, {"id": 501, "type": "field_expression", "text": "query->jointree", "parent": 500, "children": [502, 503], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 16}}, {"id": 502, "type": "identifier", "text": "query", "parent": 501, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 6}}, {"id": 503, "type": "field_identifier", "text": "jointree", "parent": 501, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 16}}, {"id": 504, "type": "field_identifier", "text": "fromlist", "parent": 500, "children": [], "start_point": {"row": 165, "column": 18}, "end_point": {"row": 165, "column": 26}}, {"id": 505, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 28}}, {"id": 506, "type": "call_expression", "text": "list_make1(rtRef)", "parent": 499, "children": [507, 508], "start_point": {"row": 165, "column": 29}, "end_point": {"row": 165, "column": 46}}, {"id": 507, "type": "identifier", "text": "list_make1", "parent": 506, "children": [], "start_point": {"row": 165, "column": 29}, "end_point": {"row": 165, "column": 39}}, {"id": 508, "type": "argument_list", "text": "(rtRef)", "parent": 506, "children": [509], "start_point": {"row": 165, "column": 39}, "end_point": {"row": 165, "column": 46}}, {"id": 509, "type": "identifier", "text": "rtRef", "parent": 508, "children": [], "start_point": {"row": 165, "column": 40}, "end_point": {"row": 165, "column": 45}}, {"id": 510, "type": "assignment_expression", "text": "constVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName))", "parent": 290, "children": [511, 512, 513], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 72}}, {"id": 511, "type": "identifier", "text": "constVal", "parent": 510, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 9}}, {"id": 512, "type": "=", "text": "=", "parent": 510, "children": [], "start_point": {"row": 167, "column": 10}, "end_point": {"row": 167, "column": 11}}, {"id": 513, "type": "call_expression", "text": "DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName))", "parent": 510, "children": [514, 515], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 72}}, {"id": 514, "type": "identifier", "text": "DirectFunctionCall1", "parent": 513, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 31}}, {"id": 515, "type": "argument_list", "text": "(textin, CStringGetDatum(xslt->funcName))", "parent": 513, "children": [516, 517], "start_point": {"row": 167, "column": 31}, "end_point": {"row": 167, "column": 72}}, {"id": 516, "type": "identifier", "text": "textin", "parent": 515, "children": [], "start_point": {"row": 167, "column": 32}, "end_point": {"row": 167, "column": 38}}, {"id": 517, "type": "call_expression", "text": "CStringGetDatum(xslt->funcName)", "parent": 515, "children": [518, 519], "start_point": {"row": 167, "column": 40}, "end_point": {"row": 167, "column": 71}}, {"id": 518, "type": "identifier", "text": "CStringGetDatum", "parent": 517, "children": [], "start_point": {"row": 167, "column": 40}, "end_point": {"row": 167, "column": 55}}, {"id": 519, "type": "argument_list", "text": "(xslt->funcName)", "parent": 517, "children": [520], "start_point": {"row": 167, "column": 55}, "end_point": {"row": 167, "column": 71}}, {"id": 520, "type": "field_expression", "text": "xslt->funcName", "parent": 519, "children": [521, 522], "start_point": {"row": 167, "column": 56}, "end_point": {"row": 167, "column": 70}}, {"id": 521, "type": "identifier", "text": "xslt", "parent": 520, "children": [], "start_point": {"row": 167, "column": 56}, "end_point": {"row": 167, "column": 60}}, {"id": 522, "type": "field_identifier", "text": "funcName", "parent": 520, "children": [], "start_point": {"row": 167, "column": 62}, "end_point": {"row": 167, "column": 70}}, {"id": 523, "type": "assignment_expression", "text": "funcNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false)", "parent": 290, "children": [524, 525, 526], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 67}}, {"id": 524, "type": "identifier", "text": "funcNameConst", "parent": 523, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 14}}, {"id": 525, "type": "=", "text": "=", "parent": 523, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 16}}, {"id": 526, "type": "call_expression", "text": "makeConst(TEXTOID, -1, -1, constVal, false, false)", "parent": 523, "children": [527, 528], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 67}}, {"id": 527, "type": "identifier", "text": "makeConst", "parent": 526, "children": [], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 26}}, {"id": 528, "type": "argument_list", "text": "(TEXTOID, -1, -1, constVal, false, false)", "parent": 526, "children": [529, 530, 531, 532, 533, 534], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 67}}, {"id": 529, "type": "identifier", "text": "TEXTOID", "parent": 528, "children": [], "start_point": {"row": 168, "column": 27}, "end_point": {"row": 168, "column": 34}}, {"id": 530, "type": "number_literal", "text": "-1", "parent": 528, "children": [], "start_point": {"row": 168, "column": 36}, "end_point": {"row": 168, "column": 38}}, {"id": 531, "type": "number_literal", "text": "-1", "parent": 528, "children": [], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 42}}, {"id": 532, "type": "identifier", "text": "constVal", "parent": 528, "children": [], "start_point": {"row": 168, "column": 44}, "end_point": {"row": 168, "column": 52}}, {"id": 533, "type": "false", "text": "false", "parent": 528, "children": [], "start_point": {"row": 168, "column": 54}, "end_point": {"row": 168, "column": 59}}, {"id": 534, "type": "false", "text": "false", "parent": 528, "children": [], "start_point": {"row": 168, "column": 61}, "end_point": {"row": 168, "column": 66}}, {"id": 535, "type": "assignment_expression", "text": "query->jointree->quals = createEqualityConditionForNodes(\n\t\t\t\t\t\t\t\t\t(Node *) makeVar(1,1,TEXTOID,-1,0),\n\t\t\t\t\t\t\t\t\t(Node *) funcNameConst)", "parent": 290, "children": [536, 541, 542], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 171, "column": 32}}, {"id": 536, "type": "field_expression", "text": "query->jointree->quals", "parent": 535, "children": [537, 540], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 23}}, {"id": 537, "type": "field_expression", "text": "query->jointree", "parent": 536, "children": [538, 539], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 16}}, {"id": 538, "type": "identifier", "text": "query", "parent": 537, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 6}}, {"id": 539, "type": "field_identifier", "text": "jointree", "parent": 537, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 16}}, {"id": 540, "type": "field_identifier", "text": "quals", "parent": 536, "children": [], "start_point": {"row": 169, "column": 18}, "end_point": {"row": 169, "column": 23}}, {"id": 541, "type": "=", "text": "=", "parent": 535, "children": [], "start_point": {"row": 169, "column": 24}, "end_point": {"row": 169, "column": 25}}, {"id": 542, "type": "call_expression", "text": "createEqualityConditionForNodes(\n\t\t\t\t\t\t\t\t\t(Node *) makeVar(1,1,TEXTOID,-1,0),\n\t\t\t\t\t\t\t\t\t(Node *) funcNameConst)", "parent": 535, "children": [543, 544], "start_point": {"row": 169, "column": 26}, "end_point": {"row": 171, "column": 32}}, {"id": 543, "type": "identifier", "text": "createEqualityConditionForNodes", "parent": 542, "children": [], "start_point": {"row": 169, "column": 26}, "end_point": {"row": 169, "column": 57}}, {"id": 544, "type": "argument_list", "text": "(\n\t\t\t\t\t\t\t\t\t(Node *) makeVar(1,1,TEXTOID,-1,0),\n\t\t\t\t\t\t\t\t\t(Node *) funcNameConst)", "parent": 542, "children": [545, 558], "start_point": {"row": 169, "column": 57}, "end_point": {"row": 171, "column": 32}}, {"id": 545, "type": "cast_expression", "text": "(Node *) makeVar(1,1,TEXTOID,-1,0)", "parent": 544, "children": [546, 550], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 43}}, {"id": 546, "type": "type_descriptor", "text": "Node *", "parent": 545, "children": [547, 548], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 16}}, {"id": 547, "type": "type_identifier", "text": "Node", "parent": 546, "children": [], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 14}}, {"id": 548, "type": "abstract_pointer_declarator", "text": "*", "parent": 546, "children": [549], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 16}}, {"id": 549, "type": "*", "text": "*", "parent": 548, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 16}}, {"id": 550, "type": "call_expression", "text": "makeVar(1,1,TEXTOID,-1,0)", "parent": 545, "children": [551, 552], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 43}}, {"id": 551, "type": "identifier", "text": "makeVar", "parent": 550, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 25}}, {"id": 552, "type": "argument_list", "text": "(1,1,TEXTOID,-1,0)", "parent": 550, "children": [553, 554, 555, 556, 557], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 43}}, {"id": 553, "type": "number_literal", "text": "1", "parent": 552, "children": [], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 27}}, {"id": 554, "type": "number_literal", "text": "1", "parent": 552, "children": [], "start_point": {"row": 170, "column": 28}, "end_point": {"row": 170, "column": 29}}, {"id": 555, "type": "identifier", "text": "TEXTOID", "parent": 552, "children": [], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 37}}, {"id": 556, "type": "number_literal", "text": "-1", "parent": 552, "children": [], "start_point": {"row": 170, "column": 38}, "end_point": {"row": 170, "column": 40}}, {"id": 557, "type": "number_literal", "text": "0", "parent": 552, "children": [], "start_point": {"row": 170, "column": 41}, "end_point": {"row": 170, "column": 42}}, {"id": 558, "type": "cast_expression", "text": "(Node *) funcNameConst", "parent": 544, "children": [559, 563], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 31}}, {"id": 559, "type": "type_descriptor", "text": "Node *", "parent": 558, "children": [560, 561], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 16}}, {"id": 560, "type": "type_identifier", "text": "Node", "parent": 559, "children": [], "start_point": {"row": 171, "column": 10}, "end_point": {"row": 171, "column": 14}}, {"id": 561, "type": "abstract_pointer_declarator", "text": "*", "parent": 559, "children": [562], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 16}}, {"id": 562, "type": "*", "text": "*", "parent": 561, "children": [], "start_point": {"row": 171, "column": 15}, "end_point": {"row": 171, "column": 16}}, {"id": 563, "type": "identifier", "text": "funcNameConst", "parent": 558, "children": [], "start_point": {"row": 171, "column": 18}, "end_point": {"row": 171, "column": 31}}, {"id": 564, "type": "assignment_expression", "text": "caster = makeNode(RelabelType)", "parent": 290, "children": [565, 566, 567], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 31}}, {"id": 565, "type": "identifier", "text": "caster", "parent": 564, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 7}}, {"id": 566, "type": "=", "text": "=", "parent": 564, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 9}}, {"id": 567, "type": "call_expression", "text": "makeNode(RelabelType)", "parent": 564, "children": [568, 569], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 31}}, {"id": 568, "type": "identifier", "text": "makeNode", "parent": 567, "children": [], "start_point": {"row": 173, "column": 10}, "end_point": {"row": 173, "column": 18}}, {"id": 569, "type": "argument_list", "text": "(RelabelType)", "parent": 567, "children": [570], "start_point": {"row": 173, "column": 18}, "end_point": {"row": 173, "column": 31}}, {"id": 570, "type": "identifier", "text": "RelabelType", "parent": 569, "children": [], "start_point": {"row": 173, "column": 19}, "end_point": {"row": 173, "column": 30}}, {"id": 571, "type": "assignment_expression", "text": "caster->arg = (Expr *) result", "parent": 290, "children": [572, 575, 576], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 30}}, {"id": 572, "type": "field_expression", "text": "caster->arg", "parent": 571, "children": [573, 574], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 12}}, {"id": 573, "type": "identifier", "text": "caster", "parent": 572, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 7}}, {"id": 574, "type": "field_identifier", "text": "arg", "parent": 572, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 12}}, {"id": 575, "type": "=", "text": "=", "parent": 571, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 576, "type": "cast_expression", "text": "(Expr *) result", "parent": 571, "children": [577, 581], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 30}}, {"id": 577, "type": "type_descriptor", "text": "Expr *", "parent": 576, "children": [578, 579], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 22}}, {"id": 578, "type": "type_identifier", "text": "Expr", "parent": 577, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 20}}, {"id": 579, "type": "abstract_pointer_declarator", "text": "*", "parent": 577, "children": [580], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 22}}, {"id": 580, "type": "*", "text": "*", "parent": 579, "children": [], "start_point": {"row": 174, "column": 21}, "end_point": {"row": 174, "column": 22}}, {"id": 581, "type": "identifier", "text": "result", "parent": 576, "children": [], "start_point": {"row": 174, "column": 24}, "end_point": {"row": 174, "column": 30}}, {"id": 582, "type": "assignment_expression", "text": "caster->resulttype = TEXTOID", "parent": 290, "children": [583, 586, 587], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 29}}, {"id": 583, "type": "field_expression", "text": "caster->resulttype", "parent": 582, "children": [584, 585], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 19}}, {"id": 584, "type": "identifier", "text": "caster", "parent": 583, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 7}}, {"id": 585, "type": "field_identifier", "text": "resulttype", "parent": 583, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 19}}, {"id": 586, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 175, "column": 20}, "end_point": {"row": 175, "column": 21}}, {"id": 587, "type": "identifier", "text": "TEXTOID", "parent": 582, "children": [], "start_point": {"row": 175, "column": 22}, "end_point": {"row": 175, "column": 29}}, {"id": 588, "type": "assignment_expression", "text": "caster->resulttypmod = -1", "parent": 290, "children": [589, 592, 593], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 26}}, {"id": 589, "type": "field_expression", "text": "caster->resulttypmod", "parent": 588, "children": [590, 591], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 21}}, {"id": 590, "type": "identifier", "text": "caster", "parent": 589, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 7}}, {"id": 591, "type": "field_identifier", "text": "resulttypmod", "parent": 589, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 21}}, {"id": 592, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 176, "column": 22}, "end_point": {"row": 176, "column": 23}}, {"id": 593, "type": "number_literal", "text": "-1", "parent": 588, "children": [], "start_point": {"row": 176, "column": 24}, "end_point": {"row": 176, "column": 26}}, {"id": 594, "type": "assignment_expression", "text": "caster->relabelformat = COERCE_EXPLICIT_CAST", "parent": 290, "children": [595, 598, 599], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 45}}, {"id": 595, "type": "field_expression", "text": "caster->relabelformat", "parent": 594, "children": [596, 597], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 22}}, {"id": 596, "type": "identifier", "text": "caster", "parent": 595, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 7}}, {"id": 597, "type": "field_identifier", "text": "relabelformat", "parent": 595, "children": [], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 22}}, {"id": 598, "type": "=", "text": "=", "parent": 594, "children": [], "start_point": {"row": 177, "column": 23}, "end_point": {"row": 177, "column": 24}}, {"id": 599, "type": "identifier", "text": "COERCE_EXPLICIT_CAST", "parent": 594, "children": [], "start_point": {"row": 177, "column": 25}, "end_point": {"row": 177, "column": 45}}, {"id": 600, "type": "return_statement", "text": "return (Node *) caster;", "parent": 290, "children": [601], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 24}}, {"id": 601, "type": "cast_expression", "text": "(Node *) caster", "parent": 600, "children": [602, 606], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 23}}, {"id": 602, "type": "type_descriptor", "text": "Node *", "parent": 601, "children": [603, 604], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 15}}, {"id": 603, "type": "type_identifier", "text": "Node", "parent": 602, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 13}}, {"id": 604, "type": "abstract_pointer_declarator", "text": "*", "parent": 602, "children": [605], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 15}}, {"id": 605, "type": "*", "text": "*", "parent": 604, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 15}}, {"id": 606, "type": "identifier", "text": "caster", "parent": 601, "children": [], "start_point": {"row": 179, "column": 17}, "end_point": {"row": 179, "column": 23}}, {"id": 607, "type": "function_definition", "text": "Query *\nhandleThisExprs (Query *query)\n{\n\tThisWalkerContext *context;\n\n\tMAKE_THISCONTEXT(context, query, query);\n\n\tquery = (Query *) handleThisExprMutator((Node *) query, context);\n\n\tpfree(context);\n\n\treturn query;\n}", "parent": null, "children": [608, 609], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 198, "column": 1}}, {"id": 608, "type": "type_identifier", "text": "Query", "parent": 607, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 5}}, {"id": 609, "type": "pointer_declarator", "text": "*\nhandleThisExprs (Query *query)", "parent": 607, "children": [610, 611], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 187, "column": 30}}, {"id": 610, "type": "*", "text": "*", "parent": 609, "children": [], "start_point": {"row": 186, "column": 6}, "end_point": {"row": 186, "column": 7}}, {"id": 611, "type": "function_declarator", "text": "handleThisExprs (Query *query)", "parent": 609, "children": [612, 613], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 30}}, {"id": 612, "type": "identifier", "text": "handleThisExprs", "parent": 611, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 15}}, {"id": 613, "type": "parameter_list", "text": "(Query *query)", "parent": 611, "children": [614], "start_point": {"row": 187, "column": 16}, "end_point": {"row": 187, "column": 30}}, {"id": 614, "type": "parameter_declaration", "text": "Query *query", "parent": 613, "children": [615, 616], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 29}}, {"id": 615, "type": "type_identifier", "text": "Query", "parent": 614, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 22}}, {"id": 616, "type": "pointer_declarator", "text": "*query", "parent": 614, "children": [617, 618], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 29}}, {"id": 617, "type": "*", "text": "*", "parent": 616, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 24}}, {"id": 618, "type": "identifier", "text": "query", "parent": 616, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 29}}, {"id": 619, "type": "declaration", "text": "ThisWalkerContext *context;", "parent": 607, "children": [620, 621], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 28}}, {"id": 620, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 619, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 18}}, {"id": 621, "type": "pointer_declarator", "text": "*context", "parent": 619, "children": [622, 623], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 27}}, {"id": 622, "type": "*", "text": "*", "parent": 621, "children": [], "start_point": {"row": 189, "column": 19}, "end_point": {"row": 189, "column": 20}}, {"id": 623, "type": "identifier", "text": "context", "parent": 621, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 27}}, {"id": 624, "type": "call_expression", "text": "MAKE_THISCONTEXT(context, query, query)", "parent": 607, "children": [625, 626], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 40}}, {"id": 625, "type": "identifier", "text": "MAKE_THISCONTEXT", "parent": 624, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 17}}, {"id": 626, "type": "argument_list", "text": "(context, query, query)", "parent": 624, "children": [627, 628, 629], "start_point": {"row": 191, "column": 17}, "end_point": {"row": 191, "column": 40}}, {"id": 627, "type": "identifier", "text": "context", "parent": 626, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 25}}, {"id": 628, "type": "identifier", "text": "query", "parent": 626, "children": [], "start_point": {"row": 191, "column": 27}, "end_point": {"row": 191, "column": 32}}, {"id": 629, "type": "identifier", "text": "query", "parent": 626, "children": [], "start_point": {"row": 191, "column": 34}, "end_point": {"row": 191, "column": 39}}, {"id": 630, "type": "assignment_expression", "text": "query = (Query *) handleThisExprMutator((Node *) query, context)", "parent": 607, "children": [631, 632, 633], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 65}}, {"id": 631, "type": "identifier", "text": "query", "parent": 630, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 6}}, {"id": 632, "type": "=", "text": "=", "parent": 630, "children": [], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 193, "column": 8}}, {"id": 633, "type": "cast_expression", "text": "(Query *) handleThisExprMutator((Node *) query, context)", "parent": 630, "children": [634, 638], "start_point": {"row": 193, "column": 9}, "end_point": {"row": 193, "column": 65}}, {"id": 634, "type": "type_descriptor", "text": "Query *", "parent": 633, "children": [635, 636], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 17}}, {"id": 635, "type": "type_identifier", "text": "Query", "parent": 634, "children": [], "start_point": {"row": 193, "column": 10}, "end_point": {"row": 193, "column": 15}}, {"id": 636, "type": "abstract_pointer_declarator", "text": "*", "parent": 634, "children": [637], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 17}}, {"id": 637, "type": "*", "text": "*", "parent": 636, "children": [], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 17}}, {"id": 638, "type": "call_expression", "text": "handleThisExprMutator((Node *) query, context)", "parent": 633, "children": [639, 640], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 65}}, {"id": 639, "type": "identifier", "text": "handleThisExprMutator", "parent": 638, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 40}}, {"id": 640, "type": "argument_list", "text": "((Node *) query, context)", "parent": 638, "children": [641, 647], "start_point": {"row": 193, "column": 40}, "end_point": {"row": 193, "column": 65}}, {"id": 641, "type": "cast_expression", "text": "(Node *) query", "parent": 640, "children": [642, 646], "start_point": {"row": 193, "column": 41}, "end_point": {"row": 193, "column": 55}}, {"id": 642, "type": "type_descriptor", "text": "Node *", "parent": 641, "children": [643, 644], "start_point": {"row": 193, "column": 42}, "end_point": {"row": 193, "column": 48}}, {"id": 643, "type": "type_identifier", "text": "Node", "parent": 642, "children": [], "start_point": {"row": 193, "column": 42}, "end_point": {"row": 193, "column": 46}}, {"id": 644, "type": "abstract_pointer_declarator", "text": "*", "parent": 642, "children": [645], "start_point": {"row": 193, "column": 47}, "end_point": {"row": 193, "column": 48}}, {"id": 645, "type": "*", "text": "*", "parent": 644, "children": [], "start_point": {"row": 193, "column": 47}, "end_point": {"row": 193, "column": 48}}, {"id": 646, "type": "identifier", "text": "query", "parent": 641, "children": [], "start_point": {"row": 193, "column": 50}, "end_point": {"row": 193, "column": 55}}, {"id": 647, "type": "identifier", "text": "context", "parent": 640, "children": [], "start_point": {"row": 193, "column": 57}, "end_point": {"row": 193, "column": 64}}, {"id": 648, "type": "call_expression", "text": "pfree(context)", "parent": 607, "children": [649, 650], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 15}}, {"id": 649, "type": "identifier", "text": "pfree", "parent": 648, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 6}}, {"id": 650, "type": "argument_list", "text": "(context)", "parent": 648, "children": [651], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 15}}, {"id": 651, "type": "identifier", "text": "context", "parent": 650, "children": [], "start_point": {"row": 195, "column": 7}, "end_point": {"row": 195, "column": 14}}, {"id": 652, "type": "return_statement", "text": "return query;", "parent": 607, "children": [653], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 14}}, {"id": 653, "type": "identifier", "text": "query", "parent": 652, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 13}}, {"id": 654, "type": "function_definition", "text": "static Node *\nhandleThisExprMutator (Node *node, void *context)\n{\n\tThisWalkerContext *newContext;\n\tNode *result;\n\n\tif (node == NULL)\n\t\treturn false;\n\n\tif (IsA(node, Query))\n\t{\n\t\tMAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n\t\tresult = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n\t\tpfree(newContext);\n\n\t\treturn result;\n\t}\n\telse if (IsA(node,ThisExpr))\n\t\treturn transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);\n\n\treturn expression_tree_mutator(node, handleThisExprMutator, context);\n}", "parent": null, "children": [655, 656], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 225, "column": 1}}, {"id": 655, "type": "type_identifier", "text": "Node", "parent": 654, "children": [], "start_point": {"row": 204, "column": 7}, "end_point": {"row": 204, "column": 11}}, {"id": 656, "type": "pointer_declarator", "text": "*\nhandleThisExprMutator (Node *node, void *context)", "parent": 654, "children": [657, 658], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 205, "column": 49}}, {"id": 657, "type": "*", "text": "*", "parent": 656, "children": [], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 13}}, {"id": 658, "type": "function_declarator", "text": "handleThisExprMutator (Node *node, void *context)", "parent": 656, "children": [659, 660], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 49}}, {"id": 659, "type": "identifier", "text": "handleThisExprMutator", "parent": 658, "children": [], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 21}}, {"id": 660, "type": "parameter_list", "text": "(Node *node, void *context)", "parent": 658, "children": [661, 666], "start_point": {"row": 205, "column": 22}, "end_point": {"row": 205, "column": 49}}, {"id": 661, "type": "parameter_declaration", "text": "Node *node", "parent": 660, "children": [662, 663], "start_point": {"row": 205, "column": 23}, "end_point": {"row": 205, "column": 33}}, {"id": 662, "type": "type_identifier", "text": "Node", "parent": 661, "children": [], "start_point": {"row": 205, "column": 23}, "end_point": {"row": 205, "column": 27}}, {"id": 663, "type": "pointer_declarator", "text": "*node", "parent": 661, "children": [664, 665], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 33}}, {"id": 664, "type": "*", "text": "*", "parent": 663, "children": [], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 29}}, {"id": 665, "type": "identifier", "text": "node", "parent": 663, "children": [], "start_point": {"row": 205, "column": 29}, "end_point": {"row": 205, "column": 33}}, {"id": 666, "type": "parameter_declaration", "text": "void *context", "parent": 660, "children": [667, 668], "start_point": {"row": 205, "column": 35}, "end_point": {"row": 205, "column": 48}}, {"id": 667, "type": "primitive_type", "text": "void", "parent": 666, "children": [], "start_point": {"row": 205, "column": 35}, "end_point": {"row": 205, "column": 39}}, {"id": 668, "type": "pointer_declarator", "text": "*context", "parent": 666, "children": [669, 670], "start_point": {"row": 205, "column": 40}, "end_point": {"row": 205, "column": 48}}, {"id": 669, "type": "*", "text": "*", "parent": 668, "children": [], "start_point": {"row": 205, "column": 40}, "end_point": {"row": 205, "column": 41}}, {"id": 670, "type": "identifier", "text": "context", "parent": 668, "children": [], "start_point": {"row": 205, "column": 41}, "end_point": {"row": 205, "column": 48}}, {"id": 671, "type": "declaration", "text": "ThisWalkerContext *newContext;", "parent": 654, "children": [672, 673], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 31}}, {"id": 672, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 671, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 18}}, {"id": 673, "type": "pointer_declarator", "text": "*newContext", "parent": 671, "children": [674, 675], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 30}}, {"id": 674, "type": "*", "text": "*", "parent": 673, "children": [], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 20}}, {"id": 675, "type": "identifier", "text": "newContext", "parent": 673, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 30}}, {"id": 676, "type": "declaration", "text": "Node *result;", "parent": 654, "children": [677, 678], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 14}}, {"id": 677, "type": "type_identifier", "text": "Node", "parent": 676, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 5}}, {"id": 678, "type": "pointer_declarator", "text": "*result", "parent": 676, "children": [679, 680], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 13}}, {"id": 679, "type": "*", "text": "*", "parent": 678, "children": [], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 7}}, {"id": 680, "type": "identifier", "text": "result", "parent": 678, "children": [], "start_point": {"row": 208, "column": 7}, "end_point": {"row": 208, "column": 13}}, {"id": 681, "type": "if_statement", "text": "if (node == NULL)\n\t\treturn false;", "parent": 654, "children": [682, 688], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 211, "column": 15}}, {"id": 682, "type": "parenthesized_expression", "text": "(node == NULL)", "parent": 681, "children": [683], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 18}}, {"id": 683, "type": "binary_expression", "text": "node == NULL", "parent": 682, "children": [684, 685, 686], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 17}}, {"id": 684, "type": "identifier", "text": "node", "parent": 683, "children": [], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 9}}, {"id": 685, "type": "==", "text": "==", "parent": 683, "children": [], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 12}}, {"id": 686, "type": "null", "text": "NULL", "parent": 683, "children": [687], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 17}}, {"id": 687, "type": "NULL", "text": "NULL", "parent": 686, "children": [], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 17}}, {"id": 688, "type": "return_statement", "text": "return false;", "parent": 681, "children": [689], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 15}}, {"id": 689, "type": "false", "text": "false", "parent": 688, "children": [], "start_point": {"row": 211, "column": 9}, "end_point": {"row": 211, "column": 14}}, {"id": 690, "type": "if_statement", "text": "if (IsA(node, Query))\n\t{\n\t\tMAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n\t\tresult = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n\t\tpfree(newContext);\n\n\t\treturn result;\n\t}\n\telse if (IsA(node,ThisExpr))\n\t\treturn transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);", "parent": 654, "children": [691, 747], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 222, "column": 77}}, {"id": 691, "type": "parenthesized_expression", "text": "(IsA(node, Query))", "parent": 690, "children": [692], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 22}}, {"id": 692, "type": "call_expression", "text": "IsA(node, Query)", "parent": 691, "children": [693, 694], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 21}}, {"id": 693, "type": "identifier", "text": "IsA", "parent": 692, "children": [], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 8}}, {"id": 694, "type": "argument_list", "text": "(node, Query)", "parent": 692, "children": [695, 696], "start_point": {"row": 213, "column": 8}, "end_point": {"row": 213, "column": 21}}, {"id": 695, "type": "identifier", "text": "node", "parent": 694, "children": [], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 213, "column": 13}}, {"id": 696, "type": "identifier", "text": "Query", "parent": 694, "children": [], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 20}}, {"id": 697, "type": "call_expression", "text": "MAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node)", "parent": 690, "children": [698, 699], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 89}}, {"id": 698, "type": "identifier", "text": "MAKE_THISCONTEXT", "parent": 697, "children": [], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 18}}, {"id": 699, "type": "argument_list", "text": "(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node)", "parent": 697, "children": [700, 701, 710], "start_point": {"row": 215, "column": 18}, "end_point": {"row": 215, "column": 89}}, {"id": 700, "type": "identifier", "text": "newContext", "parent": 699, "children": [], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 29}}, {"id": 701, "type": "field_expression", "text": "((ThisWalkerContext *) context)->topQuery", "parent": 699, "children": [702, 709], "start_point": {"row": 215, "column": 31}, "end_point": {"row": 215, "column": 72}}, {"id": 702, "type": "parenthesized_expression", "text": "((ThisWalkerContext *) context)", "parent": 701, "children": [703], "start_point": {"row": 215, "column": 31}, "end_point": {"row": 215, "column": 62}}, {"id": 703, "type": "cast_expression", "text": "(ThisWalkerContext *) context", "parent": 702, "children": [704, 708], "start_point": {"row": 215, "column": 32}, "end_point": {"row": 215, "column": 61}}, {"id": 704, "type": "type_descriptor", "text": "ThisWalkerContext *", "parent": 703, "children": [705, 706], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 52}}, {"id": 705, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 704, "children": [], "start_point": {"row": 215, "column": 33}, "end_point": {"row": 215, "column": 50}}, {"id": 706, "type": "abstract_pointer_declarator", "text": "*", "parent": 704, "children": [707], "start_point": {"row": 215, "column": 51}, "end_point": {"row": 215, "column": 52}}, {"id": 707, "type": "*", "text": "*", "parent": 706, "children": [], "start_point": {"row": 215, "column": 51}, "end_point": {"row": 215, "column": 52}}, {"id": 708, "type": "identifier", "text": "context", "parent": 703, "children": [], "start_point": {"row": 215, "column": 54}, "end_point": {"row": 215, "column": 61}}, {"id": 709, "type": "field_identifier", "text": "topQuery", "parent": 701, "children": [], "start_point": {"row": 215, "column": 64}, "end_point": {"row": 215, "column": 72}}, {"id": 710, "type": "cast_expression", "text": "(Query *) node", "parent": 699, "children": [711, 715], "start_point": {"row": 215, "column": 74}, "end_point": {"row": 215, "column": 88}}, {"id": 711, "type": "type_descriptor", "text": "Query *", "parent": 710, "children": [712, 713], "start_point": {"row": 215, "column": 75}, "end_point": {"row": 215, "column": 82}}, {"id": 712, "type": "type_identifier", "text": "Query", "parent": 711, "children": [], "start_point": {"row": 215, "column": 75}, "end_point": {"row": 215, "column": 80}}, {"id": 713, "type": "abstract_pointer_declarator", "text": "*", "parent": 711, "children": [714], "start_point": {"row": 215, "column": 81}, "end_point": {"row": 215, "column": 82}}, {"id": 714, "type": "*", "text": "*", "parent": 713, "children": [], "start_point": {"row": 215, "column": 81}, "end_point": {"row": 215, "column": 82}}, {"id": 715, "type": "identifier", "text": "node", "parent": 710, "children": [], "start_point": {"row": 215, "column": 84}, "end_point": {"row": 215, "column": 88}}, {"id": 716, "type": "assignment_expression", "text": "result = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)", "parent": 690, "children": [717, 718, 719], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 119}}, {"id": 717, "type": "identifier", "text": "result", "parent": 716, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 8}}, {"id": 718, "type": "=", "text": "=", "parent": 716, "children": [], "start_point": {"row": 216, "column": 9}, "end_point": {"row": 216, "column": 10}}, {"id": 719, "type": "cast_expression", "text": "(Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)", "parent": 716, "children": [720, 724], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 119}}, {"id": 720, "type": "type_descriptor", "text": "Node *", "parent": 719, "children": [721, 722], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 18}}, {"id": 721, "type": "type_identifier", "text": "Node", "parent": 720, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 16}}, {"id": 722, "type": "abstract_pointer_declarator", "text": "*", "parent": 720, "children": [723], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 18}}, {"id": 723, "type": "*", "text": "*", "parent": 722, "children": [], "start_point": {"row": 216, "column": 17}, "end_point": {"row": 216, "column": 18}}, {"id": 724, "type": "call_expression", "text": "query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)", "parent": 719, "children": [725, 726], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 119}}, {"id": 725, "type": "identifier", "text": "query_tree_mutator", "parent": 724, "children": [], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 38}}, {"id": 726, "type": "argument_list", "text": "((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY)", "parent": 724, "children": [727, 733, 734, 740], "start_point": {"row": 216, "column": 38}, "end_point": {"row": 216, "column": 119}}, {"id": 727, "type": "cast_expression", "text": "(Query *) node", "parent": 726, "children": [728, 732], "start_point": {"row": 216, "column": 39}, "end_point": {"row": 216, "column": 53}}, {"id": 728, "type": "type_descriptor", "text": "Query *", "parent": 727, "children": [729, 730], "start_point": {"row": 216, "column": 40}, "end_point": {"row": 216, "column": 47}}, {"id": 729, "type": "type_identifier", "text": "Query", "parent": 728, "children": [], "start_point": {"row": 216, "column": 40}, "end_point": {"row": 216, "column": 45}}, {"id": 730, "type": "abstract_pointer_declarator", "text": "*", "parent": 728, "children": [731], "start_point": {"row": 216, "column": 46}, "end_point": {"row": 216, "column": 47}}, {"id": 731, "type": "*", "text": "*", "parent": 730, "children": [], "start_point": {"row": 216, "column": 46}, "end_point": {"row": 216, "column": 47}}, {"id": 732, "type": "identifier", "text": "node", "parent": 727, "children": [], "start_point": {"row": 216, "column": 49}, "end_point": {"row": 216, "column": 53}}, {"id": 733, "type": "identifier", "text": "handleThisExprMutator", "parent": 726, "children": [], "start_point": {"row": 216, "column": 55}, "end_point": {"row": 216, "column": 76}}, {"id": 734, "type": "cast_expression", "text": "(void *) newContext", "parent": 726, "children": [735, 739], "start_point": {"row": 216, "column": 78}, "end_point": {"row": 216, "column": 97}}, {"id": 735, "type": "type_descriptor", "text": "void *", "parent": 734, "children": [736, 737], "start_point": {"row": 216, "column": 79}, "end_point": {"row": 216, "column": 85}}, {"id": 736, "type": "primitive_type", "text": "void", "parent": 735, "children": [], "start_point": {"row": 216, "column": 79}, "end_point": {"row": 216, "column": 83}}, {"id": 737, "type": "abstract_pointer_declarator", "text": "*", "parent": 735, "children": [738], "start_point": {"row": 216, "column": 84}, "end_point": {"row": 216, "column": 85}}, {"id": 738, "type": "*", "text": "*", "parent": 737, "children": [], "start_point": {"row": 216, "column": 84}, "end_point": {"row": 216, "column": 85}}, {"id": 739, "type": "identifier", "text": "newContext", "parent": 734, "children": [], "start_point": {"row": 216, "column": 87}, "end_point": {"row": 216, "column": 97}}, {"id": 740, "type": "identifier", "text": "QTW_DONT_COPY_QUERY", "parent": 726, "children": [], "start_point": {"row": 216, "column": 99}, "end_point": {"row": 216, "column": 118}}, {"id": 741, "type": "call_expression", "text": "pfree(newContext)", "parent": 690, "children": [742, 743], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 19}}, {"id": 742, "type": "identifier", "text": "pfree", "parent": 741, "children": [], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 7}}, {"id": 743, "type": "argument_list", "text": "(newContext)", "parent": 741, "children": [744], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 19}}, {"id": 744, "type": "identifier", "text": "newContext", "parent": 743, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 18}}, {"id": 745, "type": "return_statement", "text": "return result;", "parent": 690, "children": [746], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 16}}, {"id": 746, "type": "identifier", "text": "result", "parent": 745, "children": [], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 15}}, {"id": 747, "type": "else_clause", "text": "else if (IsA(node,ThisExpr))\n\t\treturn transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);", "parent": 690, "children": [748], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 222, "column": 77}}, {"id": 748, "type": "if_statement", "text": "if (IsA(node,ThisExpr))\n\t\treturn transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);", "parent": 747, "children": [749, 755], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 222, "column": 77}}, {"id": 749, "type": "parenthesized_expression", "text": "(IsA(node,ThisExpr))", "parent": 748, "children": [750], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 29}}, {"id": 750, "type": "call_expression", "text": "IsA(node,ThisExpr)", "parent": 749, "children": [751, 752], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 28}}, {"id": 751, "type": "identifier", "text": "IsA", "parent": 750, "children": [], "start_point": {"row": 221, "column": 10}, "end_point": {"row": 221, "column": 13}}, {"id": 752, "type": "argument_list", "text": "(node,ThisExpr)", "parent": 750, "children": [753, 754], "start_point": {"row": 221, "column": 13}, "end_point": {"row": 221, "column": 28}}, {"id": 753, "type": "identifier", "text": "node", "parent": 752, "children": [], "start_point": {"row": 221, "column": 14}, "end_point": {"row": 221, "column": 18}}, {"id": 754, "type": "identifier", "text": "ThisExpr", "parent": 752, "children": [], "start_point": {"row": 221, "column": 19}, "end_point": {"row": 221, "column": 27}}, {"id": 755, "type": "return_statement", "text": "return transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);", "parent": 748, "children": [756], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 77}}, {"id": 756, "type": "call_expression", "text": "transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context)", "parent": 755, "children": [757, 758], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 222, "column": 76}}, {"id": 757, "type": "identifier", "text": "transformThisExpr", "parent": 756, "children": [], "start_point": {"row": 222, "column": 9}, "end_point": {"row": 222, "column": 26}}, {"id": 758, "type": "argument_list", "text": "((ThisExpr *) node, (ThisWalkerContext *) context)", "parent": 756, "children": [759, 765], "start_point": {"row": 222, "column": 26}, "end_point": {"row": 222, "column": 76}}, {"id": 759, "type": "cast_expression", "text": "(ThisExpr *) node", "parent": 758, "children": [760, 764], "start_point": {"row": 222, "column": 27}, "end_point": {"row": 222, "column": 44}}, {"id": 760, "type": "type_descriptor", "text": "ThisExpr *", "parent": 759, "children": [761, 762], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 38}}, {"id": 761, "type": "type_identifier", "text": "ThisExpr", "parent": 760, "children": [], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 36}}, {"id": 762, "type": "abstract_pointer_declarator", "text": "*", "parent": 760, "children": [763], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 38}}, {"id": 763, "type": "*", "text": "*", "parent": 762, "children": [], "start_point": {"row": 222, "column": 37}, "end_point": {"row": 222, "column": 38}}, {"id": 764, "type": "identifier", "text": "node", "parent": 759, "children": [], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 44}}, {"id": 765, "type": "cast_expression", "text": "(ThisWalkerContext *) context", "parent": 758, "children": [766, 770], "start_point": {"row": 222, "column": 46}, "end_point": {"row": 222, "column": 75}}, {"id": 766, "type": "type_descriptor", "text": "ThisWalkerContext *", "parent": 765, "children": [767, 768], "start_point": {"row": 222, "column": 47}, "end_point": {"row": 222, "column": 66}}, {"id": 767, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 766, "children": [], "start_point": {"row": 222, "column": 47}, "end_point": {"row": 222, "column": 64}}, {"id": 768, "type": "abstract_pointer_declarator", "text": "*", "parent": 766, "children": [769], "start_point": {"row": 222, "column": 65}, "end_point": {"row": 222, "column": 66}}, {"id": 769, "type": "*", "text": "*", "parent": 768, "children": [], "start_point": {"row": 222, "column": 65}, "end_point": {"row": 222, "column": 66}}, {"id": 770, "type": "identifier", "text": "context", "parent": 765, "children": [], "start_point": {"row": 222, "column": 68}, "end_point": {"row": 222, "column": 75}}, {"id": 771, "type": "return_statement", "text": "return expression_tree_mutator(node, handleThisExprMutator, context);", "parent": 654, "children": [772], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 70}}, {"id": 772, "type": "call_expression", "text": "expression_tree_mutator(node, handleThisExprMutator, context)", "parent": 771, "children": [773, 774], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 69}}, {"id": 773, "type": "identifier", "text": "expression_tree_mutator", "parent": 772, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 31}}, {"id": 774, "type": "argument_list", "text": "(node, handleThisExprMutator, context)", "parent": 772, "children": [775, 776, 777], "start_point": {"row": 224, "column": 31}, "end_point": {"row": 224, "column": 69}}, {"id": 775, "type": "identifier", "text": "node", "parent": 774, "children": [], "start_point": {"row": 224, "column": 32}, "end_point": {"row": 224, "column": 36}}, {"id": 776, "type": "identifier", "text": "handleThisExprMutator", "parent": 774, "children": [], "start_point": {"row": 224, "column": 38}, "end_point": {"row": 224, "column": 59}}, {"id": 777, "type": "identifier", "text": "context", "parent": 774, "children": [], "start_point": {"row": 224, "column": 61}, "end_point": {"row": 224, "column": 68}}, {"id": 778, "type": "function_definition", "text": "static Node *\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)\n{\n\tConst *cons;\n\tDatum xmlDatum;\n\tQuery *queryPart;\n\tchar *typePart;\n\tint childNum;\n\tRangeTblEntry *rte;\n\n\tif(strcmp(this->thisType, \"local\") == 0)\n\t\tqueryPart = context->curQuery;\n\telse if (strcmp(this->thisType, \"top\") == 0)\n\t\tqueryPart = context->topQuery;\n\telse if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}\n\n\txmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));\n\n\tcons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);\n\n\treturn (Node *) cons;\n}", "parent": null, "children": [779, 780], "start_point": {"row": 231, "column": 0}, "end_point": {"row": 278, "column": 1}}, {"id": 779, "type": "type_identifier", "text": "Node", "parent": 778, "children": [], "start_point": {"row": 231, "column": 7}, "end_point": {"row": 231, "column": 11}}, {"id": 780, "type": "pointer_declarator", "text": "*\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)", "parent": 778, "children": [781, 782], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 232, "column": 62}}, {"id": 781, "type": "*", "text": "*", "parent": 780, "children": [], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 13}}, {"id": 782, "type": "function_declarator", "text": "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)", "parent": 780, "children": [783, 784], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 232, "column": 62}}, {"id": 783, "type": "identifier", "text": "transformThisExpr", "parent": 782, "children": [], "start_point": {"row": 232, "column": 0}, "end_point": {"row": 232, "column": 17}}, {"id": 784, "type": "parameter_list", "text": "(ThisExpr *this, ThisWalkerContext *context)", "parent": 782, "children": [785, 790], "start_point": {"row": 232, "column": 18}, "end_point": {"row": 232, "column": 62}}, {"id": 785, "type": "parameter_declaration", "text": "ThisExpr *this", "parent": 784, "children": [786, 787], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 33}}, {"id": 786, "type": "type_identifier", "text": "ThisExpr", "parent": 785, "children": [], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 27}}, {"id": 787, "type": "pointer_declarator", "text": "*this", "parent": 785, "children": [788, 789], "start_point": {"row": 232, "column": 28}, "end_point": {"row": 232, "column": 33}}, {"id": 788, "type": "*", "text": "*", "parent": 787, "children": [], "start_point": {"row": 232, "column": 28}, "end_point": {"row": 232, "column": 29}}, {"id": 789, "type": "identifier", "text": "this", "parent": 787, "children": [], "start_point": {"row": 232, "column": 29}, "end_point": {"row": 232, "column": 33}}, {"id": 790, "type": "parameter_declaration", "text": "ThisWalkerContext *context", "parent": 784, "children": [791, 792], "start_point": {"row": 232, "column": 35}, "end_point": {"row": 232, "column": 61}}, {"id": 791, "type": "type_identifier", "text": "ThisWalkerContext", "parent": 790, "children": [], "start_point": {"row": 232, "column": 35}, "end_point": {"row": 232, "column": 52}}, {"id": 792, "type": "pointer_declarator", "text": "*context", "parent": 790, "children": [793, 794], "start_point": {"row": 232, "column": 53}, "end_point": {"row": 232, "column": 61}}, {"id": 793, "type": "*", "text": "*", "parent": 792, "children": [], "start_point": {"row": 232, "column": 53}, "end_point": {"row": 232, "column": 54}}, {"id": 794, "type": "identifier", "text": "context", "parent": 792, "children": [], "start_point": {"row": 232, "column": 54}, "end_point": {"row": 232, "column": 61}}, {"id": 795, "type": "declaration", "text": "Const *cons;", "parent": 778, "children": [796, 797], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 13}}, {"id": 796, "type": "type_identifier", "text": "Const", "parent": 795, "children": [], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 6}}, {"id": 797, "type": "pointer_declarator", "text": "*cons", "parent": 795, "children": [798, 799], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 12}}, {"id": 798, "type": "*", "text": "*", "parent": 797, "children": [], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 8}}, {"id": 799, "type": "identifier", "text": "cons", "parent": 797, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 12}}, {"id": 800, "type": "declaration", "text": "Datum xmlDatum;", "parent": 778, "children": [801, 802], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 16}}, {"id": 801, "type": "type_identifier", "text": "Datum", "parent": 800, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 6}}, {"id": 802, "type": "identifier", "text": "xmlDatum", "parent": 800, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 15}}, {"id": 803, "type": "declaration", "text": "Query *queryPart;", "parent": 778, "children": [804, 805], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 18}}, {"id": 804, "type": "type_identifier", "text": "Query", "parent": 803, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 6}}, {"id": 805, "type": "pointer_declarator", "text": "*queryPart", "parent": 803, "children": [806, 807], "start_point": {"row": 236, "column": 7}, "end_point": {"row": 236, "column": 17}}, {"id": 806, "type": "*", "text": "*", "parent": 805, "children": [], "start_point": {"row": 236, "column": 7}, "end_point": {"row": 236, "column": 8}}, {"id": 807, "type": "identifier", "text": "queryPart", "parent": 805, "children": [], "start_point": {"row": 236, "column": 8}, "end_point": {"row": 236, "column": 17}}, {"id": 808, "type": "declaration", "text": "char *typePart;", "parent": 778, "children": [809, 810], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 16}}, {"id": 809, "type": "primitive_type", "text": "char", "parent": 808, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 5}}, {"id": 810, "type": "pointer_declarator", "text": "*typePart", "parent": 808, "children": [811, 812], "start_point": {"row": 237, "column": 6}, "end_point": {"row": 237, "column": 15}}, {"id": 811, "type": "*", "text": "*", "parent": 810, "children": [], "start_point": {"row": 237, "column": 6}, "end_point": {"row": 237, "column": 7}}, {"id": 812, "type": "identifier", "text": "typePart", "parent": 810, "children": [], "start_point": {"row": 237, "column": 7}, "end_point": {"row": 237, "column": 15}}, {"id": 813, "type": "declaration", "text": "int childNum;", "parent": 778, "children": [814, 815], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 14}}, {"id": 814, "type": "primitive_type", "text": "int", "parent": 813, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 4}}, {"id": 815, "type": "identifier", "text": "childNum", "parent": 813, "children": [], "start_point": {"row": 238, "column": 5}, "end_point": {"row": 238, "column": 13}}, {"id": 816, "type": "declaration", "text": "RangeTblEntry *rte;", "parent": 778, "children": [817, 818], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 20}}, {"id": 817, "type": "type_identifier", "text": "RangeTblEntry", "parent": 816, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 14}}, {"id": 818, "type": "pointer_declarator", "text": "*rte", "parent": 816, "children": [819, 820], "start_point": {"row": 239, "column": 15}, "end_point": {"row": 239, "column": 19}}, {"id": 819, "type": "*", "text": "*", "parent": 818, "children": [], "start_point": {"row": 239, "column": 15}, "end_point": {"row": 239, "column": 16}}, {"id": 820, "type": "identifier", "text": "rte", "parent": 818, "children": [], "start_point": {"row": 239, "column": 16}, "end_point": {"row": 239, "column": 19}}, {"id": 821, "type": "if_statement", "text": "if(strcmp(this->thisType, \"local\") == 0)\n\t\tqueryPart = context->curQuery;\n\telse if (strcmp(this->thisType, \"top\") == 0)\n\t\tqueryPart = context->topQuery;\n\telse if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 778, "children": [822, 839], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 271, "column": 2}}, {"id": 822, "type": "parenthesized_expression", "text": "(strcmp(this->thisType, \"local\") == 0)", "parent": 821, "children": [823], "start_point": {"row": 241, "column": 3}, "end_point": {"row": 241, "column": 41}}, {"id": 823, "type": "binary_expression", "text": "strcmp(this->thisType, \"local\") == 0", "parent": 822, "children": [824, 831, 832], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 40}}, {"id": 824, "type": "call_expression", "text": "strcmp(this->thisType, \"local\")", "parent": 823, "children": [825, 826], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 35}}, {"id": 825, "type": "identifier", "text": "strcmp", "parent": 824, "children": [], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 10}}, {"id": 826, "type": "argument_list", "text": "(this->thisType, \"local\")", "parent": 824, "children": [827, 830], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 35}}, {"id": 827, "type": "field_expression", "text": "this->thisType", "parent": 826, "children": [828, 829], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 25}}, {"id": 828, "type": "identifier", "text": "this", "parent": 827, "children": [], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 15}}, {"id": 829, "type": "field_identifier", "text": "thisType", "parent": 827, "children": [], "start_point": {"row": 241, "column": 17}, "end_point": {"row": 241, "column": 25}}, {"id": 830, "type": "string_literal", "text": "\"local\"", "parent": 826, "children": [], "start_point": {"row": 241, "column": 27}, "end_point": {"row": 241, "column": 34}}, {"id": 831, "type": "==", "text": "==", "parent": 823, "children": [], "start_point": {"row": 241, "column": 36}, "end_point": {"row": 241, "column": 38}}, {"id": 832, "type": "number_literal", "text": "0", "parent": 823, "children": [], "start_point": {"row": 241, "column": 39}, "end_point": {"row": 241, "column": 40}}, {"id": 833, "type": "assignment_expression", "text": "queryPart = context->curQuery", "parent": 821, "children": [834, 835, 836], "start_point": {"row": 242, "column": 2}, "end_point": {"row": 242, "column": 31}}, {"id": 834, "type": "identifier", "text": "queryPart", "parent": 833, "children": [], "start_point": {"row": 242, "column": 2}, "end_point": {"row": 242, "column": 11}}, {"id": 835, "type": "=", "text": "=", "parent": 833, "children": [], "start_point": {"row": 242, "column": 12}, "end_point": {"row": 242, "column": 13}}, {"id": 836, "type": "field_expression", "text": "context->curQuery", "parent": 833, "children": [837, 838], "start_point": {"row": 242, "column": 14}, "end_point": {"row": 242, "column": 31}}, {"id": 837, "type": "identifier", "text": "context", "parent": 836, "children": [], "start_point": {"row": 242, "column": 14}, "end_point": {"row": 242, "column": 21}}, {"id": 838, "type": "field_identifier", "text": "curQuery", "parent": 836, "children": [], "start_point": {"row": 242, "column": 23}, "end_point": {"row": 242, "column": 31}}, {"id": 839, "type": "else_clause", "text": "else if (strcmp(this->thisType, \"top\") == 0)\n\t\tqueryPart = context->topQuery;\n\telse if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 821, "children": [840], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 271, "column": 2}}, {"id": 840, "type": "if_statement", "text": "if (strcmp(this->thisType, \"top\") == 0)\n\t\tqueryPart = context->topQuery;\n\telse if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 839, "children": [841, 858], "start_point": {"row": 243, "column": 6}, "end_point": {"row": 271, "column": 2}}, {"id": 841, "type": "parenthesized_expression", "text": "(strcmp(this->thisType, \"top\") == 0)", "parent": 840, "children": [842], "start_point": {"row": 243, "column": 9}, "end_point": {"row": 243, "column": 45}}, {"id": 842, "type": "binary_expression", "text": "strcmp(this->thisType, \"top\") == 0", "parent": 841, "children": [843, 850, 851], "start_point": {"row": 243, "column": 10}, "end_point": {"row": 243, "column": 44}}, {"id": 843, "type": "call_expression", "text": "strcmp(this->thisType, \"top\")", "parent": 842, "children": [844, 845], "start_point": {"row": 243, "column": 10}, "end_point": {"row": 243, "column": 39}}, {"id": 844, "type": "identifier", "text": "strcmp", "parent": 843, "children": [], "start_point": {"row": 243, "column": 10}, "end_point": {"row": 243, "column": 16}}, {"id": 845, "type": "argument_list", "text": "(this->thisType, \"top\")", "parent": 843, "children": [846, 849], "start_point": {"row": 243, "column": 16}, "end_point": {"row": 243, "column": 39}}, {"id": 846, "type": "field_expression", "text": "this->thisType", "parent": 845, "children": [847, 848], "start_point": {"row": 243, "column": 17}, "end_point": {"row": 243, "column": 31}}, {"id": 847, "type": "identifier", "text": "this", "parent": 846, "children": [], "start_point": {"row": 243, "column": 17}, "end_point": {"row": 243, "column": 21}}, {"id": 848, "type": "field_identifier", "text": "thisType", "parent": 846, "children": [], "start_point": {"row": 243, "column": 23}, "end_point": {"row": 243, "column": 31}}, {"id": 849, "type": "string_literal", "text": "\"top\"", "parent": 845, "children": [], "start_point": {"row": 243, "column": 33}, "end_point": {"row": 243, "column": 38}}, {"id": 850, "type": "==", "text": "==", "parent": 842, "children": [], "start_point": {"row": 243, "column": 40}, "end_point": {"row": 243, "column": 42}}, {"id": 851, "type": "number_literal", "text": "0", "parent": 842, "children": [], "start_point": {"row": 243, "column": 43}, "end_point": {"row": 243, "column": 44}}, {"id": 852, "type": "assignment_expression", "text": "queryPart = context->topQuery", "parent": 840, "children": [853, 854, 855], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 31}}, {"id": 853, "type": "identifier", "text": "queryPart", "parent": 852, "children": [], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 11}}, {"id": 854, "type": "=", "text": "=", "parent": 852, "children": [], "start_point": {"row": 244, "column": 12}, "end_point": {"row": 244, "column": 13}}, {"id": 855, "type": "field_expression", "text": "context->topQuery", "parent": 852, "children": [856, 857], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 31}}, {"id": 856, "type": "identifier", "text": "context", "parent": 855, "children": [], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 21}}, {"id": 857, "type": "field_identifier", "text": "topQuery", "parent": 855, "children": [], "start_point": {"row": 244, "column": 23}, "end_point": {"row": 244, "column": 31}}, {"id": 858, "type": "else_clause", "text": "else if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 840, "children": [859], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 271, "column": 2}}, {"id": 859, "type": "if_statement", "text": "if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 858, "children": [860, 960], "start_point": {"row": 245, "column": 6}, "end_point": {"row": 271, "column": 2}}, {"id": 860, "type": "parenthesized_expression", "text": "(strncmp(this->thisType, \"child\", 5) == 0)", "parent": 859, "children": [861], "start_point": {"row": 245, "column": 9}, "end_point": {"row": 245, "column": 51}}, {"id": 861, "type": "binary_expression", "text": "strncmp(this->thisType, \"child\", 5) == 0", "parent": 860, "children": [862, 870, 871], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 50}}, {"id": 862, "type": "call_expression", "text": "strncmp(this->thisType, \"child\", 5)", "parent": 861, "children": [863, 864], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 45}}, {"id": 863, "type": "identifier", "text": "strncmp", "parent": 862, "children": [], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 17}}, {"id": 864, "type": "argument_list", "text": "(this->thisType, \"child\", 5)", "parent": 862, "children": [865, 868, 869], "start_point": {"row": 245, "column": 17}, "end_point": {"row": 245, "column": 45}}, {"id": 865, "type": "field_expression", "text": "this->thisType", "parent": 864, "children": [866, 867], "start_point": {"row": 245, "column": 18}, "end_point": {"row": 245, "column": 32}}, {"id": 866, "type": "identifier", "text": "this", "parent": 865, "children": [], "start_point": {"row": 245, "column": 18}, "end_point": {"row": 245, "column": 22}}, {"id": 867, "type": "field_identifier", "text": "thisType", "parent": 865, "children": [], "start_point": {"row": 245, "column": 24}, "end_point": {"row": 245, "column": 32}}, {"id": 868, "type": "string_literal", "text": "\"child\"", "parent": 864, "children": [], "start_point": {"row": 245, "column": 34}, "end_point": {"row": 245, "column": 41}}, {"id": 869, "type": "number_literal", "text": "5", "parent": 864, "children": [], "start_point": {"row": 245, "column": 43}, "end_point": {"row": 245, "column": 44}}, {"id": 870, "type": "==", "text": "==", "parent": 861, "children": [], "start_point": {"row": 245, "column": 46}, "end_point": {"row": 245, "column": 48}}, {"id": 871, "type": "number_literal", "text": "0", "parent": 861, "children": [], "start_point": {"row": 245, "column": 49}, "end_point": {"row": 245, "column": 50}}, {"id": 872, "type": "assignment_expression", "text": "typePart = this->thisType + 4", "parent": 859, "children": [873, 874, 875], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 31}}, {"id": 873, "type": "identifier", "text": "typePart", "parent": 872, "children": [], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 247, "column": 10}}, {"id": 874, "type": "=", "text": "=", "parent": 872, "children": [], "start_point": {"row": 247, "column": 11}, "end_point": {"row": 247, "column": 12}}, {"id": 875, "type": "binary_expression", "text": "this->thisType + 4", "parent": 872, "children": [876, 879, 880], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 31}}, {"id": 876, "type": "field_expression", "text": "this->thisType", "parent": 875, "children": [877, 878], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 27}}, {"id": 877, "type": "identifier", "text": "this", "parent": 876, "children": [], "start_point": {"row": 247, "column": 13}, "end_point": {"row": 247, "column": 17}}, {"id": 878, "type": "field_identifier", "text": "thisType", "parent": 876, "children": [], "start_point": {"row": 247, "column": 19}, "end_point": {"row": 247, "column": 27}}, {"id": 879, "type": "+", "text": "+", "parent": 875, "children": [], "start_point": {"row": 247, "column": 28}, "end_point": {"row": 247, "column": 29}}, {"id": 880, "type": "number_literal", "text": "4", "parent": 875, "children": [], "start_point": {"row": 247, "column": 30}, "end_point": {"row": 247, "column": 31}}, {"id": 881, "type": "assignment_expression", "text": "queryPart = context->curQuery", "parent": 859, "children": [882, 883, 884], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 248, "column": 31}}, {"id": 882, "type": "identifier", "text": "queryPart", "parent": 881, "children": [], "start_point": {"row": 248, "column": 2}, "end_point": {"row": 248, "column": 11}}, {"id": 883, "type": "=", "text": "=", "parent": 881, "children": [], "start_point": {"row": 248, "column": 12}, "end_point": {"row": 248, "column": 13}}, {"id": 884, "type": "field_expression", "text": "context->curQuery", "parent": 881, "children": [885, 886], "start_point": {"row": 248, "column": 14}, "end_point": {"row": 248, "column": 31}}, {"id": 885, "type": "identifier", "text": "context", "parent": 884, "children": [], "start_point": {"row": 248, "column": 14}, "end_point": {"row": 248, "column": 21}}, {"id": 886, "type": "field_identifier", "text": "curQuery", "parent": 884, "children": [], "start_point": {"row": 248, "column": 23}, "end_point": {"row": 248, "column": 31}}, {"id": 887, "type": "while_statement", "text": "while(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}", "parent": 859, "children": [888], "start_point": {"row": 250, "column": 2}, "end_point": {"row": 266, "column": 3}}, {"id": 888, "type": "parenthesized_expression", "text": "(*(++typePart))", "parent": 887, "children": [889], "start_point": {"row": 250, "column": 7}, "end_point": {"row": 250, "column": 22}}, {"id": 889, "type": "pointer_expression", "text": "*(++typePart)", "parent": 888, "children": [890, 891], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 21}}, {"id": 890, "type": "*", "text": "*", "parent": 889, "children": [], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 9}}, {"id": 891, "type": "parenthesized_expression", "text": "(++typePart)", "parent": 889, "children": [892], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 21}}, {"id": 892, "type": "update_expression", "text": "++typePart", "parent": 891, "children": [893, 894], "start_point": {"row": 250, "column": 10}, "end_point": {"row": 250, "column": 20}}, {"id": 893, "type": "++", "text": "++", "parent": 892, "children": [], "start_point": {"row": 250, "column": 10}, "end_point": {"row": 250, "column": 12}}, {"id": 894, "type": "identifier", "text": "typePart", "parent": 892, "children": [], "start_point": {"row": 250, "column": 12}, "end_point": {"row": 250, "column": 20}}, {"id": 895, "type": "if_statement", "text": "if (!isdigit(*typePart))\n\t\t\t\t;", "parent": 887, "children": [896], "start_point": {"row": 252, "column": 3}, "end_point": {"row": 253, "column": 5}}, {"id": 896, "type": "parenthesized_expression", "text": "(!isdigit(*typePart))", "parent": 895, "children": [897], "start_point": {"row": 252, "column": 6}, "end_point": {"row": 252, "column": 27}}, {"id": 897, "type": "unary_expression", "text": "!isdigit(*typePart)", "parent": 896, "children": [898, 899], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 26}}, {"id": 898, "type": "!", "text": "!", "parent": 897, "children": [], "start_point": {"row": 252, "column": 7}, "end_point": {"row": 252, "column": 8}}, {"id": 899, "type": "call_expression", "text": "isdigit(*typePart)", "parent": 897, "children": [900, 901], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 26}}, {"id": 900, "type": "identifier", "text": "isdigit", "parent": 899, "children": [], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 15}}, {"id": 901, "type": "argument_list", "text": "(*typePart)", "parent": 899, "children": [902], "start_point": {"row": 252, "column": 15}, "end_point": {"row": 252, "column": 26}}, {"id": 902, "type": "pointer_expression", "text": "*typePart", "parent": 901, "children": [903, 904], "start_point": {"row": 252, "column": 16}, "end_point": {"row": 252, "column": 25}}, {"id": 903, "type": "*", "text": "*", "parent": 902, "children": [], "start_point": {"row": 252, "column": 16}, "end_point": {"row": 252, "column": 17}}, {"id": 904, "type": "identifier", "text": "typePart", "parent": 902, "children": [], "start_point": {"row": 252, "column": 17}, "end_point": {"row": 252, "column": 25}}, {"id": 905, "type": "assignment_expression", "text": "childNum = *typePart - '0'", "parent": 887, "children": [906, 907, 908], "start_point": {"row": 255, "column": 3}, "end_point": {"row": 255, "column": 29}}, {"id": 906, "type": "identifier", "text": "childNum", "parent": 905, "children": [], "start_point": {"row": 255, "column": 3}, "end_point": {"row": 255, "column": 11}}, {"id": 907, "type": "=", "text": "=", "parent": 905, "children": [], "start_point": {"row": 255, "column": 12}, "end_point": {"row": 255, "column": 13}}, {"id": 908, "type": "binary_expression", "text": "*typePart - '0'", "parent": 905, "children": [909, 912, 913], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 29}}, {"id": 909, "type": "pointer_expression", "text": "*typePart", "parent": 908, "children": [910, 911], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 23}}, {"id": 910, "type": "*", "text": "*", "parent": 909, "children": [], "start_point": {"row": 255, "column": 14}, "end_point": {"row": 255, "column": 15}}, {"id": 911, "type": "identifier", "text": "typePart", "parent": 909, "children": [], "start_point": {"row": 255, "column": 15}, "end_point": {"row": 255, "column": 23}}, {"id": 912, "type": "-", "text": "-", "parent": 908, "children": [], "start_point": {"row": 255, "column": 24}, "end_point": {"row": 255, "column": 25}}, {"id": 913, "type": "char_literal", "text": "'0'", "parent": 908, "children": [914, 915, 916], "start_point": {"row": 255, "column": 26}, "end_point": {"row": 255, "column": 29}}, {"id": 914, "type": "'", "text": "'", "parent": 913, "children": [], "start_point": {"row": 255, "column": 26}, "end_point": {"row": 255, "column": 27}}, {"id": 915, "type": "character", "text": "0", "parent": 913, "children": [], "start_point": {"row": 255, "column": 27}, "end_point": {"row": 255, "column": 28}}, {"id": 916, "type": "'", "text": "'", "parent": 913, "children": [], "start_point": {"row": 255, "column": 28}, "end_point": {"row": 255, "column": 29}}, {"id": 917, "type": "if_statement", "text": "if (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;", "parent": 887, "children": [918], "start_point": {"row": 257, "column": 3}, "end_point": {"row": 258, "column": 5}}, {"id": 918, "type": "parenthesized_expression", "text": "(childNum < 1 || childNum > list_length(queryPart->rtable))", "parent": 917, "children": [919], "start_point": {"row": 257, "column": 6}, "end_point": {"row": 257, "column": 65}}, {"id": 919, "type": "binary_expression", "text": "childNum < 1 || childNum > list_length(queryPart->rtable)", "parent": 918, "children": [920, 924, 925], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 64}}, {"id": 920, "type": "binary_expression", "text": "childNum < 1", "parent": 919, "children": [921, 922, 923], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 19}}, {"id": 921, "type": "identifier", "text": "childNum", "parent": 920, "children": [], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 15}}, {"id": 922, "type": "<", "text": "<", "parent": 920, "children": [], "start_point": {"row": 257, "column": 16}, "end_point": {"row": 257, "column": 17}}, {"id": 923, "type": "number_literal", "text": "1", "parent": 920, "children": [], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 19}}, {"id": 924, "type": "||", "text": "||", "parent": 919, "children": [], "start_point": {"row": 257, "column": 20}, "end_point": {"row": 257, "column": 22}}, {"id": 925, "type": "binary_expression", "text": "childNum > list_length(queryPart->rtable)", "parent": 919, "children": [926, 927, 928], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 64}}, {"id": 926, "type": "identifier", "text": "childNum", "parent": 925, "children": [], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 31}}, {"id": 927, "type": ">", "text": ">", "parent": 925, "children": [], "start_point": {"row": 257, "column": 32}, "end_point": {"row": 257, "column": 33}}, {"id": 928, "type": "call_expression", "text": "list_length(queryPart->rtable)", "parent": 925, "children": [929, 930], "start_point": {"row": 257, "column": 34}, "end_point": {"row": 257, "column": 64}}, {"id": 929, "type": "identifier", "text": "list_length", "parent": 928, "children": [], "start_point": {"row": 257, "column": 34}, "end_point": {"row": 257, "column": 45}}, {"id": 930, "type": "argument_list", "text": "(queryPart->rtable)", "parent": 928, "children": [931], "start_point": {"row": 257, "column": 45}, "end_point": {"row": 257, "column": 64}}, {"id": 931, "type": "field_expression", "text": "queryPart->rtable", "parent": 930, "children": [932, 933], "start_point": {"row": 257, "column": 46}, "end_point": {"row": 257, "column": 63}}, {"id": 932, "type": "identifier", "text": "queryPart", "parent": 931, "children": [], "start_point": {"row": 257, "column": 46}, "end_point": {"row": 257, "column": 55}}, {"id": 933, "type": "field_identifier", "text": "rtable", "parent": 931, "children": [], "start_point": {"row": 257, "column": 57}, "end_point": {"row": 257, "column": 63}}, {"id": 934, "type": "assignment_expression", "text": "rte = rt_fetch(childNum, queryPart->rtable)", "parent": 887, "children": [935, 936, 937], "start_point": {"row": 260, "column": 3}, "end_point": {"row": 260, "column": 46}}, {"id": 935, "type": "identifier", "text": "rte", "parent": 934, "children": [], "start_point": {"row": 260, "column": 3}, "end_point": {"row": 260, "column": 6}}, {"id": 936, "type": "=", "text": "=", "parent": 934, "children": [], "start_point": {"row": 260, "column": 7}, "end_point": {"row": 260, "column": 8}}, {"id": 937, "type": "call_expression", "text": "rt_fetch(childNum, queryPart->rtable)", "parent": 934, "children": [938, 939], "start_point": {"row": 260, "column": 9}, "end_point": {"row": 260, "column": 46}}, {"id": 938, "type": "identifier", "text": "rt_fetch", "parent": 937, "children": [], "start_point": {"row": 260, "column": 9}, "end_point": {"row": 260, "column": 17}}, {"id": 939, "type": "argument_list", "text": "(childNum, queryPart->rtable)", "parent": 937, "children": [940, 941], "start_point": {"row": 260, "column": 17}, "end_point": {"row": 260, "column": 46}}, {"id": 940, "type": "identifier", "text": "childNum", "parent": 939, "children": [], "start_point": {"row": 260, "column": 18}, "end_point": {"row": 260, "column": 26}}, {"id": 941, "type": "field_expression", "text": "queryPart->rtable", "parent": 939, "children": [942, 943], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 45}}, {"id": 942, "type": "identifier", "text": "queryPart", "parent": 941, "children": [], "start_point": {"row": 260, "column": 28}, "end_point": {"row": 260, "column": 37}}, {"id": 943, "type": "field_identifier", "text": "rtable", "parent": 941, "children": [], "start_point": {"row": 260, "column": 39}, "end_point": {"row": 260, "column": 45}}, {"id": 944, "type": "if_statement", "text": "if (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;", "parent": 887, "children": [945], "start_point": {"row": 262, "column": 3}, "end_point": {"row": 263, "column": 5}}, {"id": 945, "type": "parenthesized_expression", "text": "(!rte->rtekind == RTE_SUBQUERY)", "parent": 944, "children": [946], "start_point": {"row": 262, "column": 6}, "end_point": {"row": 262, "column": 37}}, {"id": 946, "type": "binary_expression", "text": "!rte->rtekind == RTE_SUBQUERY", "parent": 945, "children": [947, 952, 953], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 36}}, {"id": 947, "type": "unary_expression", "text": "!rte->rtekind", "parent": 946, "children": [948, 949], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 20}}, {"id": 948, "type": "!", "text": "!", "parent": 947, "children": [], "start_point": {"row": 262, "column": 7}, "end_point": {"row": 262, "column": 8}}, {"id": 949, "type": "field_expression", "text": "rte->rtekind", "parent": 947, "children": [950, 951], "start_point": {"row": 262, "column": 8}, "end_point": {"row": 262, "column": 20}}, {"id": 950, "type": "identifier", "text": "rte", "parent": 949, "children": [], "start_point": {"row": 262, "column": 8}, "end_point": {"row": 262, "column": 11}}, {"id": 951, "type": "field_identifier", "text": "rtekind", "parent": 949, "children": [], "start_point": {"row": 262, "column": 13}, "end_point": {"row": 262, "column": 20}}, {"id": 952, "type": "==", "text": "==", "parent": 946, "children": [], "start_point": {"row": 262, "column": 21}, "end_point": {"row": 262, "column": 23}}, {"id": 953, "type": "identifier", "text": "RTE_SUBQUERY", "parent": 946, "children": [], "start_point": {"row": 262, "column": 24}, "end_point": {"row": 262, "column": 36}}, {"id": 954, "type": "assignment_expression", "text": "queryPart = rte->subquery", "parent": 887, "children": [955, 956, 957], "start_point": {"row": 265, "column": 3}, "end_point": {"row": 265, "column": 28}}, {"id": 955, "type": "identifier", "text": "queryPart", "parent": 954, "children": [], "start_point": {"row": 265, "column": 3}, "end_point": {"row": 265, "column": 12}}, {"id": 956, "type": "=", "text": "=", "parent": 954, "children": [], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 14}}, {"id": 957, "type": "field_expression", "text": "rte->subquery", "parent": 954, "children": [958, 959], "start_point": {"row": 265, "column": 15}, "end_point": {"row": 265, "column": 28}}, {"id": 958, "type": "identifier", "text": "rte", "parent": 957, "children": [], "start_point": {"row": 265, "column": 15}, "end_point": {"row": 265, "column": 18}}, {"id": 959, "type": "field_identifier", "text": "subquery", "parent": 957, "children": [], "start_point": {"row": 265, "column": 20}, "end_point": {"row": 265, "column": 28}}, {"id": 960, "type": "else_clause", "text": "else\n\t{\n\t\t//TODO ERROR unknown this type\n\t}", "parent": 859, "children": [], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 271, "column": 2}}, {"id": 961, "type": "assignment_expression", "text": "xmlDatum = XmlPGetDatum(queryTreeToXml(queryPart))", "parent": 778, "children": [962, 963, 964], "start_point": {"row": 273, "column": 1}, "end_point": {"row": 273, "column": 51}}, {"id": 962, "type": "identifier", "text": "xmlDatum", "parent": 961, "children": [], "start_point": {"row": 273, "column": 1}, "end_point": {"row": 273, "column": 9}}, {"id": 963, "type": "=", "text": "=", "parent": 961, "children": [], "start_point": {"row": 273, "column": 10}, "end_point": {"row": 273, "column": 11}}, {"id": 964, "type": "call_expression", "text": "XmlPGetDatum(queryTreeToXml(queryPart))", "parent": 961, "children": [965, 966], "start_point": {"row": 273, "column": 12}, "end_point": {"row": 273, "column": 51}}, {"id": 965, "type": "identifier", "text": "XmlPGetDatum", "parent": 964, "children": [], "start_point": {"row": 273, "column": 12}, "end_point": {"row": 273, "column": 24}}, {"id": 966, "type": "argument_list", "text": "(queryTreeToXml(queryPart))", "parent": 964, "children": [967], "start_point": {"row": 273, "column": 24}, "end_point": {"row": 273, "column": 51}}, {"id": 967, "type": "call_expression", "text": "queryTreeToXml(queryPart)", "parent": 966, "children": [968, 969], "start_point": {"row": 273, "column": 25}, "end_point": {"row": 273, "column": 50}}, {"id": 968, "type": "identifier", "text": "queryTreeToXml", "parent": 967, "children": [], "start_point": {"row": 273, "column": 25}, "end_point": {"row": 273, "column": 39}}, {"id": 969, "type": "argument_list", "text": "(queryPart)", "parent": 967, "children": [970], "start_point": {"row": 273, "column": 39}, "end_point": {"row": 273, "column": 50}}, {"id": 970, "type": "identifier", "text": "queryPart", "parent": 969, "children": [], "start_point": {"row": 273, "column": 40}, "end_point": {"row": 273, "column": 49}}, {"id": 971, "type": "assignment_expression", "text": "cons = makeConst(XMLOID, -1, -1, xmlDatum, false, false)", "parent": 778, "children": [972, 973, 974], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 275, "column": 57}}, {"id": 972, "type": "identifier", "text": "cons", "parent": 971, "children": [], "start_point": {"row": 275, "column": 1}, "end_point": {"row": 275, "column": 5}}, {"id": 973, "type": "=", "text": "=", "parent": 971, "children": [], "start_point": {"row": 275, "column": 6}, "end_point": {"row": 275, "column": 7}}, {"id": 974, "type": "call_expression", "text": "makeConst(XMLOID, -1, -1, xmlDatum, false, false)", "parent": 971, "children": [975, 976], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 57}}, {"id": 975, "type": "identifier", "text": "makeConst", "parent": 974, "children": [], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 17}}, {"id": 976, "type": "argument_list", "text": "(XMLOID, -1, -1, xmlDatum, false, false)", "parent": 974, "children": [977, 978, 979, 980, 981, 982], "start_point": {"row": 275, "column": 17}, "end_point": {"row": 275, "column": 57}}, {"id": 977, "type": "identifier", "text": "XMLOID", "parent": 976, "children": [], "start_point": {"row": 275, "column": 18}, "end_point": {"row": 275, "column": 24}}, {"id": 978, "type": "number_literal", "text": "-1", "parent": 976, "children": [], "start_point": {"row": 275, "column": 26}, "end_point": {"row": 275, "column": 28}}, {"id": 979, "type": "number_literal", "text": "-1", "parent": 976, "children": [], "start_point": {"row": 275, "column": 30}, "end_point": {"row": 275, "column": 32}}, {"id": 980, "type": "identifier", "text": "xmlDatum", "parent": 976, "children": [], "start_point": {"row": 275, "column": 34}, "end_point": {"row": 275, "column": 42}}, {"id": 981, "type": "false", "text": "false", "parent": 976, "children": [], "start_point": {"row": 275, "column": 44}, "end_point": {"row": 275, "column": 49}}, {"id": 982, "type": "false", "text": "false", "parent": 976, "children": [], "start_point": {"row": 275, "column": 51}, "end_point": {"row": 275, "column": 56}}, {"id": 983, "type": "return_statement", "text": "return (Node *) cons;", "parent": 778, "children": [984], "start_point": {"row": 277, "column": 1}, "end_point": {"row": 277, "column": 22}}, {"id": 984, "type": "cast_expression", "text": "(Node *) cons", "parent": 983, "children": [985, 989], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 21}}, {"id": 985, "type": "type_descriptor", "text": "Node *", "parent": 984, "children": [986, 987], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 15}}, {"id": 986, "type": "type_identifier", "text": "Node", "parent": 985, "children": [], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 13}}, {"id": 987, "type": "abstract_pointer_declarator", "text": "*", "parent": 985, "children": [988], "start_point": {"row": 277, "column": 14}, "end_point": {"row": 277, "column": 15}}, {"id": 988, "type": "*", "text": "*", "parent": 987, "children": [], "start_point": {"row": 277, "column": 14}, "end_point": {"row": 277, "column": 15}}, {"id": 989, "type": "identifier", "text": "cons", "parent": 984, "children": [], "start_point": {"row": 277, "column": 17}, "end_point": {"row": 277, "column": 21}}]}, "node_categories": {"declarations": {"functions": [73, 85, 102, 119, 132, 136, 290, 294, 607, 611, 654, 658, 778, 782], "variables": [57, 62, 67, 81, 88, 93, 98, 105, 110, 115, 122, 127, 139, 144, 149, 154, 157, 167, 172, 177, 297, 302, 307, 312, 317, 322, 327, 332, 337, 342, 614, 619, 661, 666, 671, 676, 785, 790, 795, 800, 803, 808, 813, 816], "classes": [59, 60], "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], "modules": [], "enums": []}, "statements": {"expressions": [181, 189, 192, 195, 205, 209, 215, 220, 221, 228, 239, 240, 243, 247, 248, 249, 253, 257, 264, 268, 276, 284, 348, 355, 359, 365, 371, 378, 382, 389, 393, 396, 399, 404, 418, 423, 429, 436, 443, 449, 455, 461, 467, 476, 486, 490, 494, 500, 501, 506, 513, 517, 520, 526, 536, 537, 542, 545, 550, 558, 567, 572, 576, 583, 589, 595, 601, 624, 633, 638, 641, 648, 682, 683, 691, 692, 697, 701, 702, 703, 710, 719, 724, 727, 734, 741, 749, 750, 756, 759, 765, 772, 822, 823, 824, 827, 836, 841, 842, 843, 846, 855, 860, 861, 862, 865, 875, 876, 884, 888, 889, 891, 892, 896, 897, 899, 902, 908, 909, 918, 919, 920, 925, 928, 931, 937, 941, 945, 946, 947, 949, 957, 964, 967, 974, 984], "assignments": [180, 186, 202, 212, 225, 261, 273, 345, 352, 358, 364, 370, 377, 388, 415, 422, 428, 435, 442, 448, 454, 460, 466, 473, 485, 499, 510, 523, 535, 564, 571, 582, 588, 594, 630, 716, 833, 852, 872, 881, 905, 934, 954, 961, 971], "loops": [887], "conditionals": [61, 63, 66, 68, 71, 72, 75, 77, 78, 79, 82, 86, 89, 92, 94, 97, 99, 103, 106, 109, 114, 116, 120, 123, 126, 128, 131, 133, 137, 140, 143, 145, 148, 150, 153, 155, 156, 158, 161, 165, 166, 168, 171, 173, 176, 178, 179, 182, 183, 187, 190, 193, 196, 200, 203, 206, 208, 210, 211, 213, 216, 218, 219, 222, 224, 226, 229, 231, 232, 233, 234, 236, 237, 238, 242, 244, 246, 250, 252, 254, 258, 260, 262, 265, 267, 269, 271, 272, 274, 277, 279, 280, 281, 282, 286, 289, 291, 295, 298, 301, 303, 306, 308, 311, 313, 316, 318, 321, 323, 326, 328, 331, 333, 336, 338, 341, 343, 344, 346, 349, 351, 353, 356, 360, 361, 363, 366, 367, 369, 372, 373, 379, 380, 384, 387, 390, 391, 394, 397, 401, 405, 409, 416, 419, 421, 424, 425, 430, 431, 437, 438, 444, 445, 450, 451, 456, 457, 459, 462, 463, 465, 468, 469, 474, 477, 479, 480, 487, 488, 491, 493, 495, 497, 502, 503, 504, 507, 509, 511, 514, 516, 518, 521, 522, 524, 527, 529, 532, 538, 539, 540, 543, 547, 551, 555, 560, 563, 565, 568, 570, 573, 574, 578, 581, 584, 585, 587, 590, 591, 596, 597, 599, 603, 606, 608, 612, 615, 618, 620, 623, 625, 627, 628, 629, 631, 635, 639, 643, 646, 647, 649, 651, 653, 655, 659, 662, 665, 670, 672, 675, 677, 680, 681, 684, 690, 693, 695, 696, 698, 700, 705, 708, 709, 712, 715, 717, 721, 725, 729, 732, 733, 739, 740, 742, 744, 746, 748, 751, 753, 754, 757, 761, 764, 767, 770, 773, 775, 776, 777, 779, 783, 786, 789, 791, 794, 796, 799, 801, 802, 804, 807, 812, 815, 817, 820, 821, 825, 828, 829, 834, 837, 838, 840, 844, 847, 848, 853, 856, 857, 859, 863, 866, 867, 873, 877, 878, 882, 885, 886, 894, 895, 900, 904, 906, 911, 917, 921, 926, 929, 932, 933, 935, 938, 940, 942, 943, 944, 950, 951, 953, 955, 958, 959, 962, 965, 968, 970, 972, 975, 977, 980, 986, 989], "returns": [283, 600, 652, 688, 745, 755, 771, 983], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 162, 198, 199, 235, 256, 407, 408, 410, 411, 412, 413, 427, 498, 530, 531, 553, 554, 556, 557, 593, 830, 832, 849, 851, 868, 869, 871, 880, 913, 923, 978, 979], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "#define MAKE_THISCONTEXT(context, top, cur) \\\n\tdo { \\\n\t\tcontext = (ThisWalkerContext *) palloc(sizeo"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)"}, {"node_id": 102, "universal_type": "function", "name": "*context)", "text_snippet": "handleThisExprMutator (Node *node, void *context)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "Node *\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tFuncExpr *result;\n\tOid xslt"}, {"node_id": 136, "universal_type": "function", "name": "unknown", "text_snippet": "transformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)"}, {"node_id": 290, "universal_type": "function", "name": "unknown", "text_snippet": "static Node *\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tRelabelType *caster;\n\tS"}, {"node_id": 294, "universal_type": "function", "name": "unknown", "text_snippet": "generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)"}, {"node_id": 607, "universal_type": "function", "name": "unknown", "text_snippet": "Query *\nhandleThisExprs (Query *query)\n{\n\tThisWalkerContext *context;\n\n\tMAKE_THISCONTEXT(context, qu"}, {"node_id": 611, "universal_type": "function", "name": "unknown", "text_snippet": "handleThisExprs (Query *query)"}, {"node_id": 654, "universal_type": "function", "name": "*context)", "text_snippet": "static Node *\nhandleThisExprMutator (Node *node, void *context)\n{\n\tThisWalkerContext *newContext;\n\tN"}, {"node_id": 658, "universal_type": "function", "name": "*context)", "text_snippet": "handleThisExprMutator (Node *node, void *context)"}, {"node_id": 778, "universal_type": "function", "name": "childNum;", "text_snippet": "static Node *\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)\n{\n\tConst *cons;\n\tDatum "}, {"node_id": 782, "universal_type": "function", "name": "unknown", "text_snippet": "transformThisExpr (ThisExpr *this, ThisWalkerContext *context)"}], "class_declarations": [{"node_id": 59, "universal_type": "class", "name": "ThisWalkerContext", "text_snippet": "struct ThisWalkerContext\n{\n\tQuery *topQuery;\n\tQuery *curQuery;\n}"}, {"node_id": 60, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"postgres.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"catalog/namespace.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"catalog/pg_type.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"parser/parse_node.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"parser/parse_expr.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"parser/parse_func.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"parser/parse_coerce.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"parser/parse_relation.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"parser/parsetree.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"nodes/makefuncs.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"nodes/primnodes.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"fmgr.h\"\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include \"utils/builtins.h\"\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"optimizer/clauses.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"utils/xml.h\"\n"}, {"node_id": 43, "text": "#include"}, {"node_id": 45, "text": "#include \"provrewrite/prov_nodes.h\"\n"}, {"node_id": 46, "text": "#include"}, {"node_id": 48, "text": "#include \"provrewrite/prov_util.h\"\n"}, {"node_id": 49, "text": "#include"}, {"node_id": 51, "text": "#include \"metaq/parse_metaq.h\"\n"}, {"node_id": 52, "text": "#include"}, {"node_id": 54, "text": "#include \"metaq/xmlqtree.h\"\n"}, {"node_id": 55, "text": "#include"}]}, "original_source_code": "/*-------------------------------------------------------------------------\n *\n * parse_metaq.c\n *\t POSTGRES C\t- parser support for meta querying language constructs. These are:\n *\t \t\tXsltFuncExpr: call to an XSLT function. This is translated into a call to the\n *\t \t\t\t\t\tgeneric xslt_process function of postgres. The definition of the\n *\t \t\t\t\t\tXSLT script implementing the function is fetched from relation xslt_funcs.\n *\t \t\tThisExpr\t: is transformed into an XML constant that is the XML representation of\n *\t \t\t\t\t\tthe current query tree.\n *\n * Portions Copyright (c) 2008 <NAME>\n *\n *\n * IDENTIFICATION\n *\t $PostgreSQL: /postgres/src/backend/metaq/parse_metaq.c,v 1.542 29.09.2009 19:29:04 bglav Exp $\n *\n * NOTES\n *\n *\n *-------------------------------------------------------------------------\n */\n\n#include \"postgres.h\"\n\n#include \"catalog/namespace.h\"\n#include \"catalog/pg_type.h\"\n#include \"parser/parse_node.h\"\n#include \"parser/parse_expr.h\"\n#include \"parser/parse_func.h\"\n#include \"parser/parse_coerce.h\"\n#include \"parser/parse_relation.h\"\n#include \"parser/parsetree.h\"\n#include \"nodes/makefuncs.h\"\n#include \"nodes/primnodes.h\"\n#include \"fmgr.h\"\n#include \"utils/builtins.h\"\n#include \"optimizer/clauses.h\"\n#include \"utils/xml.h\"\n\n#include \"provrewrite/prov_nodes.h\"\n#include \"provrewrite/prov_util.h\"\n#include \"metaq/parse_metaq.h\"\n#include \"metaq/xmlqtree.h\"\n\n/* types */\ntypedef struct ThisWalkerContext\n{\n\tQuery *topQuery;\n\tQuery *curQuery;\n} ThisWalkerContext;\n\n\n\n\n/* macros */\n#define MAKE_THISCONTEXT(context, top, cur) \\\n\tdo { \\\n\t\tcontext = (ThisWalkerContext *) palloc(sizeof(ThisWalkerContext)); \\\n\t\tcontext->topQuery = (top); \\\n\t\tcontext->curQuery = (cur); \\\n\t} while (0)\n\n/* functions */\nstatic Node *generateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt);\nstatic Node *handleThisExprMutator (Node *node, void *context);\nstatic Node *transformThisExpr (ThisExpr *this, ThisWalkerContext *context);\n\n/*\n *\n */\n\nNode *\ntransformXsltFuncCall (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tFuncExpr *result;\n\tOid xsltOid;\n\tOid paramOids[2] = {TEXTOID, TEXTOID};\n\tList *args;\n\tNode *param;\n\tOid paramType;\n\n\t/* inform the analyzer of the new sublink */\n\tpstate->p_hasSubLinks = true;\n\n\t/* get xsltOid */\n\txsltOid = LookupFuncName(list_make1(makeString(\"xslt_process\")), 2, paramOids, true); //TODO cache\n\n\t/* analyze the parameter and if necessary cast it to text */\n\tparam = transformExpr(pstate, xslt->param);\n\tparamType = exprType(param);\n\n\tif (paramType != TEXTOID)\n\t{\n\t\tparam = coerce_to_target_type(pstate,\n\t\t\t\t\t\t\t\t\tparam,\n\t\t\t\t\t\t\t\t\tparamType,\n\t\t\t\t\t\t\t\t\tTEXTOID,\n\t\t\t\t\t\t\t\t\t-1,\n\t\t\t\t\t\t\t\t\tCOERCION_EXPLICIT,\n\t\t\t\t\t\t\t\t\tCOERCE_IMPLICIT_CAST);\n\n\t\tif (!param)\n\t\t\tereport(ERROR,\n\t\t\t\t\t(errcode(ERRCODE_UNDEFINED_PARAMETER),\n\t\t\t\t\terrmsg(\"cannot coerce type %s to text\", format_type_be(paramType))));\n\t}\n\t/* generate args */\n\targs = list_make2(\n\t\t\t\tparam,\n\t\t\t\tgenerateXsltLookup(pstate, xslt)\n\t\t\t\t);\n\n\tresult = makeFuncExpr(xsltOid, TEXTOID, args, COERCE_EXPLICIT_CALL);\n\n\treturn (Node *) result;\n}\n\n/*\n *\n */\n\nstatic Node *\ngenerateXsltLookup (ParseState *pstate, XsltFuncExpr *xslt)\n{\n\tRelabelType *caster;\n\tSubLink *result;\n\tQuery *query;\n\tRangeTblRef *rtRef;\n\tRangeTblEntry *rte;\n\tRangeVar *rangeVar;\n\tConst *funcNameConst;\n\tDatum constVal;\n\n\tresult = makeNode(SubLink);\n\tquery = makeQuery ();\n\n\tresult->operName = NIL;\n\tresult->subLinkType = EXPR_SUBLINK;\n\tresult->testexpr = NULL;\n\tresult->subselect = (Node *) query;\n\n\t/* create target entry (the XSLT-script) */\n\tquery->targetList = list_make1(makeTargetEntry(\n\t\t\t\t\t\t\t(Expr *) makeVar(1,2,XMLOID,-1 ,0), 1, \"func\", false));\n\n//\trte = makeRte(RTE_RELATION);\n//\trte->relid = RelnameGetRelid(\"xslt_funcs\");\n\n\t/* create range table entry for xslt_funcs */\n\trangeVar = makeNode(RangeVar);\n\n\trangeVar->relname = \"xslt_funcs\";\n\trangeVar->catalogname = NULL;\n\trangeVar->schemaname = NULL;\n\trangeVar->isProvBase = false;\n\trangeVar->istemp = false;\n\trangeVar->provAttrs = NIL;\n\trangeVar->inhOpt = INH_NO;\n\trangeVar->alias = NULL;\n\n\trte = addRangeTableEntry(pstate, rangeVar, NULL, false, true);\n\tquery->rtable = list_make1(rte);\n\n\t/* create jointree and qual that checks for the correct function name */\n\tMAKE_RTREF(rtRef, 1);\n\tquery->jointree->fromlist = list_make1(rtRef);\n\n\tconstVal = DirectFunctionCall1(textin, CStringGetDatum(xslt->funcName));\n\tfuncNameConst = makeConst(TEXTOID, -1, -1, constVal, false, false);\n\tquery->jointree->quals = createEqualityConditionForNodes(\n\t\t\t\t\t\t\t\t\t(Node *) makeVar(1,1,TEXTOID,-1,0),\n\t\t\t\t\t\t\t\t\t(Node *) funcNameConst);\n\n\tcaster = makeNode(RelabelType);\n\tcaster->arg = (Expr *) result;\n\tcaster->resulttype = TEXTOID;\n\tcaster->resulttypmod = -1;\n\tcaster->relabelformat = COERCE_EXPLICIT_CAST;\n\n\treturn (Node *) caster;\n}\n\n/*\n *\n */\n\nQuery *\nhandleThisExprs (Query *query)\n{\n\tThisWalkerContext *context;\n\n\tMAKE_THISCONTEXT(context, query, query);\n\n\tquery = (Query *) handleThisExprMutator((Node *) query, context);\n\n\tpfree(context);\n\n\treturn query;\n}\n\n/*\n *\n */\n\nstatic Node *\nhandleThisExprMutator (Node *node, void *context)\n{\n\tThisWalkerContext *newContext;\n\tNode *result;\n\n\tif (node == NULL)\n\t\treturn false;\n\n\tif (IsA(node, Query))\n\t{\n\t\tMAKE_THISCONTEXT(newContext, ((ThisWalkerContext *) context)->topQuery, (Query *) node);\n\t\tresult = (Node *) query_tree_mutator((Query *) node, handleThisExprMutator, (void *) newContext, QTW_DONT_COPY_QUERY);\n\t\tpfree(newContext);\n\n\t\treturn result;\n\t}\n\telse if (IsA(node,ThisExpr))\n\t\treturn transformThisExpr((ThisExpr *) node, (ThisWalkerContext *) context);\n\n\treturn expression_tree_mutator(node, handleThisExprMutator, context);\n}\n\n/*\n *\n */\n\nstatic Node *\ntransformThisExpr (ThisExpr *this, ThisWalkerContext *context)\n{\n\tConst *cons;\n\tDatum xmlDatum;\n\tQuery *queryPart;\n\tchar *typePart;\n\tint childNum;\n\tRangeTblEntry *rte;\n\n\tif(strcmp(this->thisType, \"local\") == 0)\n\t\tqueryPart = context->curQuery;\n\telse if (strcmp(this->thisType, \"top\") == 0)\n\t\tqueryPart = context->topQuery;\n\telse if (strncmp(this->thisType, \"child\", 5) == 0)\n\t{\n\t\ttypePart = this->thisType + 4;\n\t\tqueryPart = context->curQuery;\n\n\t\twhile(*(++typePart))\n\t\t{\n\t\t\tif (!isdigit(*typePart))\n\t\t\t\t;//TODO ERROR\n\n\t\t\tchildNum = *typePart - '0';\n\n\t\t\tif (childNum < 1 || childNum > list_length(queryPart->rtable))\n\t\t\t\t;//TODO error\n\n\t\t\trte = rt_fetch(childNum, queryPart->rtable);\n\n\t\t\tif (!rte->rtekind == RTE_SUBQUERY)\n\t\t\t\t;//TODO error\n\n\t\t\tqueryPart = rte->subquery;\n\t\t}\n\t}\n\telse\n\t{\n\t\t//TODO ERROR unknown this type\n\t}\n\n\txmlDatum = XmlPGetDatum(queryTreeToXml(queryPart));\n\n\tcons = makeConst(XMLOID, -1, -1, xmlDatum, false, false);\n\n\treturn (Node *) cons;\n}\n"}
80,729
c
#include "private.h" static timer linsysTimer; static scs_float totalSolveTime; char * getLinSysMethod(Data * d, Priv * p) { char * tmp = scs_malloc(sizeof(char) * 128); sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]); return tmp; } char * getLinSysSummary(Priv * p, Info * info) { char * str = scs_malloc(sizeof(char) * 128); scs_int n = p->L->n; sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n), totalSolveTime / (info->iter + 1) / 1e3); totalSolveTime = 0; return str; } void freePriv(Priv * p) { if (p) { if (p->L) cs_spfree(p->L); if (p->P) scs_free(p->P); if (p->D) scs_free(p->D); if (p->bp) scs_free(p->bp); scs_free(p); } } cs * formKKT(Data * d) { /* ONLY UPPER TRIANGULAR PART IS STUFFED * forms column compressed KKT matrix * assumes column compressed form A matrix * * forms upper triangular part of [I A'; A -I] */ scs_int j, k, kk; cs * K_cs; AMatrix * A = d->A; /* I at top left */ const scs_int Anz = A->p[d->n]; const scs_int Knzmax = d->n + d->m + Anz; cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1); #ifdef EXTRAVERBOSE scs_printf("forming KKT\n"); #endif if (!K) { return NULL; } kk = 0; for (k = 0; k < d->n; k++) { K->i[kk] = k; K->p[kk] = k; K->x[kk] = d->rho_x; kk++; } /* A^T at top right : CCS: */ for (j = 0; j < d->n; j++) { for (k = A->p[j]; k < A->p[j + 1]; k++) { K->p[kk] = A->i[k] + d->n; K->i[kk] = j; K->x[kk] = A->x[k]; kk++; } } /* -I at bottom right */ for (k = 0; k < d->m; k++) { K->i[kk] = k + d->n; K->p[kk] = k + d->n; K->x[kk] = -1; kk++; } /* assert kk == Knzmax */ K->nz = Knzmax; K_cs = cs_compress(K); cs_spfree(K); return (K_cs); } scs_int LDLInit(cs * A, scs_int P[], scs_float **info) { *info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float)); #ifdef DLONG return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)); #else return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)); #endif } scs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) { scs_int kk, n = A->n; scs_int * Parent = scs_malloc(n * sizeof(scs_int)); scs_int * Lnz = scs_malloc(n * sizeof(scs_int)); scs_int * Flag = scs_malloc(n * sizeof(scs_int)); scs_int * Pattern = scs_malloc(n * sizeof(scs_int)); scs_float * Y = scs_malloc(n * sizeof(scs_float)); (*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int)); /*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */ /*scs_float Y[n]; */ LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv); (*L)->nzmax = *((*L)->p + n); (*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float)); (*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int)); *D = (scs_float *) scs_malloc(n * sizeof(scs_float)); if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent) return -1; #ifdef EXTRAVERBOSE scs_printf("numeric factorization\n"); #endif kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv); #ifdef EXTRAVERBOSE scs_printf("finished numeric factorization\n"); #endif scs_free(Parent); scs_free(Lnz); scs_free(Flag); scs_free(Pattern); scs_free(Y); return (n - kk); } void LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) { /* solves PLDL'P' x = b for x */ scs_int n = L->n; if (P == NULL) { if (x != b) /* if they're different addresses */ memcpy(x, b, n * sizeof(scs_float)); LDL_lsolve(n, x, L->p, L->i, L->x); LDL_dsolve(n, x, D); LDL_ltsolve(n, x, L->p, L->i, L->x); } else { LDL_perm(n, bp, b, P); LDL_lsolve(n, bp, L->p, L->i, L->x); LDL_dsolve(n, bp, D); LDL_ltsolve(n, bp, L->p, L->i, L->x); LDL_permt(n, x, bp, P); } } void _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) { /* y = A'*x A in column compressed format parallelizes over columns (rows of A') */ scs_int p, j; scs_int c1, c2; scs_float yj; #ifdef OPENMP #pragma omp parallel for private(p,c1,c2,yj) #endif for (j = 0; j < n; j++) { yj = y[j]; c1 = Ap[j]; c2 = Ap[j + 1]; for (p = c1; p < c2; p++) { yj += Ax[p] * x[Ai[p]]; } y[j] = yj; } } void _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) { /*y = A*x A in column compressed format this parallelizes over columns and uses pragma atomic to prevent concurrent writes to y */ scs_int p, j; scs_int c1, c2; scs_float xj; /*#pragma omp parallel for private(p,c1,c2,xj) */ for (j = 0; j < n; j++) { xj = x[j]; c1 = Ap[j]; c2 = Ap[j + 1]; for (p = c1; p < c2; p++) { /*#pragma omp atomic */ y[Ai[p]] += Ax[p] * xj; } } } void accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) { AMatrix * A = d->A; _accumByAtrans(d->n, A->x, A->i, A->p, x, y); } void accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) { AMatrix * A = d->A; _accumByA(d->n, A->x, A->i, A->p, x, y); } scs_int factorize(Data * d, Priv * p) { scs_float *info; scs_int *Pinv, amd_status, ldl_status; cs *C, *K = formKKT(d); if (!K) { return -1; } amd_status = LDLInit(K, p->P, &info); if (amd_status < 0) return (amd_status); #ifdef EXTRAVERBOSE if(d->verbose) { scs_printf("Matrix factorization info:\n"); #ifdef DLONG amd_l_info(info); #else amd_info(info); #endif } #endif Pinv = cs_pinv(p->P, d->n + d->m); C = cs_symperm(K, Pinv, 1); ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D); cs_spfree(C); cs_spfree(K); scs_free(Pinv); scs_free(info); return (ldl_status); } Priv * initPriv(Data * d) { Priv * p = scs_calloc(1, sizeof(Priv)); scs_int n_plus_m = d->n + d->m; p->P = scs_malloc(sizeof(scs_int) * n_plus_m); p->L = scs_malloc(sizeof(cs)); p->bp = scs_malloc(n_plus_m * sizeof(scs_float)); p->L->m = n_plus_m; p->L->n = n_plus_m; p->L->nz = -1; if (factorize(d, p) < 0) { freePriv(p); return NULL; } totalSolveTime = 0.0; return p; } scs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) { /* returns solution to linear system */ /* Ax = b with solution stored in b */ tic(&linsysTimer); LDLSolve(b, b, p->L, p->D, p->P, p->bp); totalSolveTime += tocq(&linsysTimer); #ifdef EXTRAVERBOSE scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3); #endif return 0; }
26.03
239
(translation_unit) "#include "private.h"\n\nstatic timer linsysTimer;\nstatic scs_float totalSolveTime;\n\nchar * getLinSysMethod(Data * d, Priv * p) {\n char * tmp = scs_malloc(sizeof(char) * 128);\n sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]);\n return tmp;\n}\n\nchar * getLinSysSummary(Priv * p, Info * info) {\n char * str = scs_malloc(sizeof(char) * 128);\n scs_int n = p->L->n;\n sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3);\n totalSolveTime = 0;\n return str;\n}\n\nvoid freePriv(Priv * p) {\n if (p) {\n if (p->L)\n cs_spfree(p->L);\n if (p->P)\n scs_free(p->P);\n if (p->D)\n scs_free(p->D);\n if (p->bp)\n scs_free(p->bp);\n scs_free(p);\n }\n}\n\ncs * formKKT(Data * d) {\n /* ONLY UPPER TRIANGULAR PART IS STUFFED\n * forms column compressed KKT matrix\n * assumes column compressed form A matrix\n *\n * forms upper triangular part of [I A'; A -I]\n */\n scs_int j, k, kk;\n cs * K_cs;\n AMatrix * A = d->A;\n /* I at top left */\n const scs_int Anz = A->p[d->n];\n const scs_int Knzmax = d->n + d->m + Anz;\n cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);\n\n#ifdef EXTRAVERBOSE\n scs_printf("forming KKT\n");\n#endif\n\n if (!K) {\n return NULL;\n }\n kk = 0;\n for (k = 0; k < d->n; k++) {\n K->i[kk] = k;\n K->p[kk] = k;\n K->x[kk] = d->rho_x;\n kk++;\n }\n /* A^T at top right : CCS: */\n for (j = 0; j < d->n; j++) {\n for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }\n }\n /* -I at bottom right */\n for (k = 0; k < d->m; k++) {\n K->i[kk] = k + d->n;\n K->p[kk] = k + d->n;\n K->x[kk] = -1;\n kk++;\n }\n /* assert kk == Knzmax */\n K->nz = Knzmax;\n K_cs = cs_compress(K);\n cs_spfree(K);\n return (K_cs);\n}\n\nscs_int LDLInit(cs * A, scs_int P[], scs_float **info) {\n *info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));\n#ifdef DLONG\n return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif\n}\n\nscs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) {\n scs_int kk, n = A->n;\n scs_int * Parent = scs_malloc(n * sizeof(scs_int));\n scs_int * Lnz = scs_malloc(n * sizeof(scs_int));\n scs_int * Flag = scs_malloc(n * sizeof(scs_int));\n scs_int * Pattern = scs_malloc(n * sizeof(scs_int));\n scs_float * Y = scs_malloc(n * sizeof(scs_float));\n (*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));\n\n /*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */\n /*scs_float Y[n]; */\n\n LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);\n\n (*L)->nzmax = *((*L)->p + n);\n (*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));\n (*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));\n *D = (scs_float *) scs_malloc(n * sizeof(scs_float));\n\n if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n return -1;\n\n#ifdef EXTRAVERBOSE\n scs_printf("numeric factorization\n");\n#endif\n kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);\n#ifdef EXTRAVERBOSE\n scs_printf("finished numeric factorization\n");\n#endif\n\n scs_free(Parent);\n scs_free(Lnz);\n scs_free(Flag);\n scs_free(Pattern);\n scs_free(Y);\n return (n - kk);\n}\n\nvoid LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) {\n /* solves PLDL'P' x = b for x */\n scs_int n = L->n;\n if (P == NULL) {\n if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));\n LDL_lsolve(n, x, L->p, L->i, L->x);\n LDL_dsolve(n, x, D);\n LDL_ltsolve(n, x, L->p, L->i, L->x);\n } else {\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }\n}\n\nvoid _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n /* y = A'*x\n A in column compressed format\n parallelizes over columns (rows of A')\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float yj;\n#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif\n for (j = 0; j < n; j++) {\n yj = y[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }\n y[j] = yj;\n }\n}\n\nvoid _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n /*y = A*x\n A in column compressed format\n this parallelizes over columns and uses\n pragma atomic to prevent concurrent writes to y\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float xj;\n /*#pragma omp parallel for private(p,c1,c2,xj) */\n for (j = 0; j < n; j++) {\n xj = x[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }\n }\n}\n\nvoid accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n AMatrix * A = d->A;\n _accumByAtrans(d->n, A->x, A->i, A->p, x, y);\n}\n\nvoid accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n AMatrix * A = d->A;\n _accumByA(d->n, A->x, A->i, A->p, x, y);\n}\n\nscs_int factorize(Data * d, Priv * p) {\n scs_float *info;\n scs_int *Pinv, amd_status, ldl_status;\n cs *C, *K = formKKT(d);\n if (!K) {\n return -1;\n }\n amd_status = LDLInit(K, p->P, &info);\n if (amd_status < 0)\n return (amd_status);\n#ifdef EXTRAVERBOSE\n if(d->verbose) {\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }\n#endif\n Pinv = cs_pinv(p->P, d->n + d->m);\n C = cs_symperm(K, Pinv, 1);\n ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);\n cs_spfree(C);\n cs_spfree(K);\n scs_free(Pinv);\n scs_free(info);\n return (ldl_status);\n}\n\nPriv * initPriv(Data * d) {\n Priv * p = scs_calloc(1, sizeof(Priv));\n scs_int n_plus_m = d->n + d->m;\n p->P = scs_malloc(sizeof(scs_int) * n_plus_m);\n p->L = scs_malloc(sizeof(cs));\n p->bp = scs_malloc(n_plus_m * sizeof(scs_float));\n p->L->m = n_plus_m;\n p->L->n = n_plus_m;\n p->L->nz = -1;\n\n if (factorize(d, p) < 0) {\n freePriv(p);\n return NULL;\n }\n totalSolveTime = 0.0;\n return p;\n}\n\nscs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) {\n /* returns solution to linear system */\n /* Ax = b with solution stored in b */\n tic(&linsysTimer);\n LDLSolve(b, b, p->L, p->D, p->P, p->bp);\n totalSolveTime += tocq(&linsysTimer);\n#ifdef EXTRAVERBOSE\n scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3);\n#endif\n return 0;\n}\n\n" (preproc_include) "#include "private.h"\n" (#include) "#include" (string_literal) ""private.h"" (") """ (string_content) "private.h" (") """ (declaration) "static timer linsysTimer;" (storage_class_specifier) "static" (static) "static" (type_identifier) "timer" (identifier) "linsysTimer" (;) ";" (declaration) "static scs_float totalSolveTime;" (storage_class_specifier) "static" (static) "static" (type_identifier) "scs_float" (identifier) "totalSolveTime" (;) ";" (function_definition) "char * getLinSysMethod(Data * d, Priv * p) {\n char * tmp = scs_malloc(sizeof(char) * 128);\n sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]);\n return tmp;\n}" (primitive_type) "char" (pointer_declarator) "* getLinSysMethod(Data * d, Priv * p)" (*) "*" (function_declarator) "getLinSysMethod(Data * d, Priv * p)" (identifier) "getLinSysMethod" (parameter_list) "(Data * d, Priv * p)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n char * tmp = scs_malloc(sizeof(char) * 128);\n sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]);\n return tmp;\n}" ({) "{" (declaration) "char * tmp = scs_malloc(sizeof(char) * 128);" (primitive_type) "char" (init_declarator) "* tmp = scs_malloc(sizeof(char) * 128)" (pointer_declarator) "* tmp" (*) "*" (identifier) "tmp" (=) "=" (call_expression) "scs_malloc(sizeof(char) * 128)" (identifier) "scs_malloc" (argument_list) "(sizeof(char) * 128)" (() "(" (binary_expression) "sizeof(char) * 128" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (*) "*" (number_literal) "128" ()) ")" (;) ";" (expression_statement) "sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n]);" (call_expression) "sprintf(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n])" (identifier) "sprintf" (argument_list) "(tmp, "sparse-direct, nnz in A = %li", (long) d->A->p[d->n])" (() "(" (identifier) "tmp" (,) "," (string_literal) ""sparse-direct, nnz in A = %li"" (") """ (string_content) "sparse-direct, nnz in A = %li" (") """ (,) "," (cast_expression) "(long) d->A->p[d->n]" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (subscript_expression) "d->A->p[d->n]" (field_expression) "d->A->p" (field_expression) "d->A" (identifier) "d" (->) "->" (field_identifier) "A" (->) "->" (field_identifier) "p" ([) "[" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (]) "]" ()) ")" (;) ";" (return_statement) "return tmp;" (return) "return" (identifier) "tmp" (;) ";" (}) "}" (function_definition) "char * getLinSysSummary(Priv * p, Info * info) {\n char * str = scs_malloc(sizeof(char) * 128);\n scs_int n = p->L->n;\n sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3);\n totalSolveTime = 0;\n return str;\n}" (primitive_type) "char" (pointer_declarator) "* getLinSysSummary(Priv * p, Info * info)" (*) "*" (function_declarator) "getLinSysSummary(Priv * p, Info * info)" (identifier) "getLinSysSummary" (parameter_list) "(Priv * p, Info * info)" (() "(" (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "Info * info" (type_identifier) "Info" (pointer_declarator) "* info" (*) "*" (identifier) "info" ()) ")" (compound_statement) "{\n char * str = scs_malloc(sizeof(char) * 128);\n scs_int n = p->L->n;\n sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3);\n totalSolveTime = 0;\n return str;\n}" ({) "{" (declaration) "char * str = scs_malloc(sizeof(char) * 128);" (primitive_type) "char" (init_declarator) "* str = scs_malloc(sizeof(char) * 128)" (pointer_declarator) "* str" (*) "*" (identifier) "str" (=) "=" (call_expression) "scs_malloc(sizeof(char) * 128)" (identifier) "scs_malloc" (argument_list) "(sizeof(char) * 128)" (() "(" (binary_expression) "sizeof(char) * 128" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" (*) "*" (number_literal) "128" ()) ")" (;) ";" (declaration) "scs_int n = p->L->n;" (type_identifier) "scs_int" (init_declarator) "n = p->L->n" (identifier) "n" (=) "=" (field_expression) "p->L->n" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (->) "->" (field_identifier) "n" (;) ";" (expression_statement) "sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3);" (call_expression) "sprintf(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3)" (identifier) "sprintf" (argument_list) "(str, "\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n", (long ) (p->L->p[n] + n),\n totalSolveTime / (info->iter + 1) / 1e3)" (() "(" (identifier) "str" (,) "," (string_literal) ""\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\n"" (") """ (escape_sequence) "\t" (string_content) "Lin-sys: nnz in L factor: %li, avg solve time: %1.2es" (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(long ) (p->L->p[n] + n)" (() "(" (type_descriptor) "long" (sized_type_specifier) "long" (long) "long" ()) ")" (parenthesized_expression) "(p->L->p[n] + n)" (() "(" (binary_expression) "p->L->p[n] + n" (subscript_expression) "p->L->p[n]" (field_expression) "p->L->p" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (->) "->" (field_identifier) "p" ([) "[" (identifier) "n" (]) "]" (+) "+" (identifier) "n" ()) ")" (,) "," (binary_expression) "totalSolveTime / (info->iter + 1) / 1e3" (binary_expression) "totalSolveTime / (info->iter + 1)" (identifier) "totalSolveTime" (/) "/" (parenthesized_expression) "(info->iter + 1)" (() "(" (binary_expression) "info->iter + 1" (field_expression) "info->iter" (identifier) "info" (->) "->" (field_identifier) "iter" (+) "+" (number_literal) "1" ()) ")" (/) "/" (number_literal) "1e3" ()) ")" (;) ";" (expression_statement) "totalSolveTime = 0;" (assignment_expression) "totalSolveTime = 0" (identifier) "totalSolveTime" (=) "=" (number_literal) "0" (;) ";" (return_statement) "return str;" (return) "return" (identifier) "str" (;) ";" (}) "}" (function_definition) "void freePriv(Priv * p) {\n if (p) {\n if (p->L)\n cs_spfree(p->L);\n if (p->P)\n scs_free(p->P);\n if (p->D)\n scs_free(p->D);\n if (p->bp)\n scs_free(p->bp);\n scs_free(p);\n }\n}" (primitive_type) "void" (function_declarator) "freePriv(Priv * p)" (identifier) "freePriv" (parameter_list) "(Priv * p)" (() "(" (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n if (p) {\n if (p->L)\n cs_spfree(p->L);\n if (p->P)\n scs_free(p->P);\n if (p->D)\n scs_free(p->D);\n if (p->bp)\n scs_free(p->bp);\n scs_free(p);\n }\n}" ({) "{" (if_statement) "if (p) {\n if (p->L)\n cs_spfree(p->L);\n if (p->P)\n scs_free(p->P);\n if (p->D)\n scs_free(p->D);\n if (p->bp)\n scs_free(p->bp);\n scs_free(p);\n }" (if) "if" (parenthesized_expression) "(p)" (() "(" (identifier) "p" ()) ")" (compound_statement) "{\n if (p->L)\n cs_spfree(p->L);\n if (p->P)\n scs_free(p->P);\n if (p->D)\n scs_free(p->D);\n if (p->bp)\n scs_free(p->bp);\n scs_free(p);\n }" ({) "{" (if_statement) "if (p->L)\n cs_spfree(p->L);" (if) "if" (parenthesized_expression) "(p->L)" (() "(" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" ()) ")" (expression_statement) "cs_spfree(p->L);" (call_expression) "cs_spfree(p->L)" (identifier) "cs_spfree" (argument_list) "(p->L)" (() "(" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" ()) ")" (;) ";" (if_statement) "if (p->P)\n scs_free(p->P);" (if) "if" (parenthesized_expression) "(p->P)" (() "(" (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" ()) ")" (expression_statement) "scs_free(p->P);" (call_expression) "scs_free(p->P)" (identifier) "scs_free" (argument_list) "(p->P)" (() "(" (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" ()) ")" (;) ";" (if_statement) "if (p->D)\n scs_free(p->D);" (if) "if" (parenthesized_expression) "(p->D)" (() "(" (field_expression) "p->D" (identifier) "p" (->) "->" (field_identifier) "D" ()) ")" (expression_statement) "scs_free(p->D);" (call_expression) "scs_free(p->D)" (identifier) "scs_free" (argument_list) "(p->D)" (() "(" (field_expression) "p->D" (identifier) "p" (->) "->" (field_identifier) "D" ()) ")" (;) ";" (if_statement) "if (p->bp)\n scs_free(p->bp);" (if) "if" (parenthesized_expression) "(p->bp)" (() "(" (field_expression) "p->bp" (identifier) "p" (->) "->" (field_identifier) "bp" ()) ")" (expression_statement) "scs_free(p->bp);" (call_expression) "scs_free(p->bp)" (identifier) "scs_free" (argument_list) "(p->bp)" (() "(" (field_expression) "p->bp" (identifier) "p" (->) "->" (field_identifier) "bp" ()) ")" (;) ";" (expression_statement) "scs_free(p);" (call_expression) "scs_free(p)" (identifier) "scs_free" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "cs * formKKT(Data * d) {\n /* ONLY UPPER TRIANGULAR PART IS STUFFED\n * forms column compressed KKT matrix\n * assumes column compressed form A matrix\n *\n * forms upper triangular part of [I A'; A -I]\n */\n scs_int j, k, kk;\n cs * K_cs;\n AMatrix * A = d->A;\n /* I at top left */\n const scs_int Anz = A->p[d->n];\n const scs_int Knzmax = d->n + d->m + Anz;\n cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);\n\n#ifdef EXTRAVERBOSE\n scs_printf("forming KKT\n");\n#endif\n\n if (!K) {\n return NULL;\n }\n kk = 0;\n for (k = 0; k < d->n; k++) {\n K->i[kk] = k;\n K->p[kk] = k;\n K->x[kk] = d->rho_x;\n kk++;\n }\n /* A^T at top right : CCS: */\n for (j = 0; j < d->n; j++) {\n for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }\n }\n /* -I at bottom right */\n for (k = 0; k < d->m; k++) {\n K->i[kk] = k + d->n;\n K->p[kk] = k + d->n;\n K->x[kk] = -1;\n kk++;\n }\n /* assert kk == Knzmax */\n K->nz = Knzmax;\n K_cs = cs_compress(K);\n cs_spfree(K);\n return (K_cs);\n}" (type_identifier) "cs" (pointer_declarator) "* formKKT(Data * d)" (*) "*" (function_declarator) "formKKT(Data * d)" (identifier) "formKKT" (parameter_list) "(Data * d)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" ()) ")" (compound_statement) "{\n /* ONLY UPPER TRIANGULAR PART IS STUFFED\n * forms column compressed KKT matrix\n * assumes column compressed form A matrix\n *\n * forms upper triangular part of [I A'; A -I]\n */\n scs_int j, k, kk;\n cs * K_cs;\n AMatrix * A = d->A;\n /* I at top left */\n const scs_int Anz = A->p[d->n];\n const scs_int Knzmax = d->n + d->m + Anz;\n cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);\n\n#ifdef EXTRAVERBOSE\n scs_printf("forming KKT\n");\n#endif\n\n if (!K) {\n return NULL;\n }\n kk = 0;\n for (k = 0; k < d->n; k++) {\n K->i[kk] = k;\n K->p[kk] = k;\n K->x[kk] = d->rho_x;\n kk++;\n }\n /* A^T at top right : CCS: */\n for (j = 0; j < d->n; j++) {\n for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }\n }\n /* -I at bottom right */\n for (k = 0; k < d->m; k++) {\n K->i[kk] = k + d->n;\n K->p[kk] = k + d->n;\n K->x[kk] = -1;\n kk++;\n }\n /* assert kk == Knzmax */\n K->nz = Knzmax;\n K_cs = cs_compress(K);\n cs_spfree(K);\n return (K_cs);\n}" ({) "{" (comment) "/* ONLY UPPER TRIANGULAR PART IS STUFFED\n * forms column compressed KKT matrix\n * assumes column compressed form A matrix\n *\n * forms upper triangular part of [I A'; A -I]\n */" (declaration) "scs_int j, k, kk;" (type_identifier) "scs_int" (identifier) "j" (,) "," (identifier) "k" (,) "," (identifier) "kk" (;) ";" (declaration) "cs * K_cs;" (type_identifier) "cs" (pointer_declarator) "* K_cs" (*) "*" (identifier) "K_cs" (;) ";" (declaration) "AMatrix * A = d->A;" (type_identifier) "AMatrix" (init_declarator) "* A = d->A" (pointer_declarator) "* A" (*) "*" (identifier) "A" (=) "=" (field_expression) "d->A" (identifier) "d" (->) "->" (field_identifier) "A" (;) ";" (comment) "/* I at top left */" (declaration) "const scs_int Anz = A->p[d->n];" (type_qualifier) "const" (const) "const" (type_identifier) "scs_int" (init_declarator) "Anz = A->p[d->n]" (identifier) "Anz" (=) "=" (subscript_expression) "A->p[d->n]" (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" ([) "[" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (]) "]" (;) ";" (declaration) "const scs_int Knzmax = d->n + d->m + Anz;" (type_qualifier) "const" (const) "const" (type_identifier) "scs_int" (init_declarator) "Knzmax = d->n + d->m + Anz" (identifier) "Knzmax" (=) "=" (binary_expression) "d->n + d->m + Anz" (binary_expression) "d->n + d->m" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (+) "+" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" (+) "+" (identifier) "Anz" (;) ";" (declaration) "cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);" (type_identifier) "cs" (init_declarator) "* K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1)" (pointer_declarator) "* K" (*) "*" (identifier) "K" (=) "=" (call_expression) "cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1)" (identifier) "cs_spalloc" (argument_list) "(d->m + d->n, d->m + d->n, Knzmax, 1, 1)" (() "(" (binary_expression) "d->m + d->n" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" (+) "+" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (,) "," (binary_expression) "d->m + d->n" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" (+) "+" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (,) "," (identifier) "Knzmax" (,) "," (number_literal) "1" (,) "," (number_literal) "1" ()) ")" (;) ";" (preproc_ifdef) "#ifdef EXTRAVERBOSE\n scs_printf("forming KKT\n");\n#endif" (#ifdef) "#ifdef" (identifier) "EXTRAVERBOSE" (expression_statement) "scs_printf("forming KKT\n");" (call_expression) "scs_printf("forming KKT\n")" (identifier) "scs_printf" (argument_list) "("forming KKT\n")" (() "(" (string_literal) ""forming KKT\n"" (") """ (string_content) "forming KKT" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (if_statement) "if (!K) {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(!K)" (() "(" (unary_expression) "!K" (!) "!" (identifier) "K" ()) ")" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "kk = 0;" (assignment_expression) "kk = 0" (identifier) "kk" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (k = 0; k < d->n; k++) {\n K->i[kk] = k;\n K->p[kk] = k;\n K->x[kk] = d->rho_x;\n kk++;\n }" (for) "for" (() "(" (assignment_expression) "k = 0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "k < d->n" (identifier) "k" (<) "<" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (;) ";" (update_expression) "k++" (identifier) "k" (++) "++" ()) ")" (compound_statement) "{\n K->i[kk] = k;\n K->p[kk] = k;\n K->x[kk] = d->rho_x;\n kk++;\n }" ({) "{" (expression_statement) "K->i[kk] = k;" (assignment_expression) "K->i[kk] = k" (subscript_expression) "K->i[kk]" (field_expression) "K->i" (identifier) "K" (->) "->" (field_identifier) "i" ([) "[" (identifier) "kk" (]) "]" (=) "=" (identifier) "k" (;) ";" (expression_statement) "K->p[kk] = k;" (assignment_expression) "K->p[kk] = k" (subscript_expression) "K->p[kk]" (field_expression) "K->p" (identifier) "K" (->) "->" (field_identifier) "p" ([) "[" (identifier) "kk" (]) "]" (=) "=" (identifier) "k" (;) ";" (expression_statement) "K->x[kk] = d->rho_x;" (assignment_expression) "K->x[kk] = d->rho_x" (subscript_expression) "K->x[kk]" (field_expression) "K->x" (identifier) "K" (->) "->" (field_identifier) "x" ([) "[" (identifier) "kk" (]) "]" (=) "=" (field_expression) "d->rho_x" (identifier) "d" (->) "->" (field_identifier) "rho_x" (;) ";" (expression_statement) "kk++;" (update_expression) "kk++" (identifier) "kk" (++) "++" (;) ";" (}) "}" (comment) "/* A^T at top right : CCS: */" (for_statement) "for (j = 0; j < d->n; j++) {\n for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }\n }" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < d->n" (identifier) "j" (<) "<" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }\n }" ({) "{" (for_statement) "for (k = A->p[j]; k < A->p[j + 1]; k++) {\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }" (for) "for" (() "(" (assignment_expression) "k = A->p[j]" (identifier) "k" (=) "=" (subscript_expression) "A->p[j]" (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" ([) "[" (identifier) "j" (]) "]" (;) ";" (binary_expression) "k < A->p[j + 1]" (identifier) "k" (<) "<" (subscript_expression) "A->p[j + 1]" (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" ([) "[" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" (]) "]" (;) ";" (update_expression) "k++" (identifier) "k" (++) "++" ()) ")" (compound_statement) "{\n K->p[kk] = A->i[k] + d->n;\n K->i[kk] = j;\n K->x[kk] = A->x[k];\n kk++;\n }" ({) "{" (expression_statement) "K->p[kk] = A->i[k] + d->n;" (assignment_expression) "K->p[kk] = A->i[k] + d->n" (subscript_expression) "K->p[kk]" (field_expression) "K->p" (identifier) "K" (->) "->" (field_identifier) "p" ([) "[" (identifier) "kk" (]) "]" (=) "=" (binary_expression) "A->i[k] + d->n" (subscript_expression) "A->i[k]" (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" ([) "[" (identifier) "k" (]) "]" (+) "+" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (;) ";" (expression_statement) "K->i[kk] = j;" (assignment_expression) "K->i[kk] = j" (subscript_expression) "K->i[kk]" (field_expression) "K->i" (identifier) "K" (->) "->" (field_identifier) "i" ([) "[" (identifier) "kk" (]) "]" (=) "=" (identifier) "j" (;) ";" (expression_statement) "K->x[kk] = A->x[k];" (assignment_expression) "K->x[kk] = A->x[k]" (subscript_expression) "K->x[kk]" (field_expression) "K->x" (identifier) "K" (->) "->" (field_identifier) "x" ([) "[" (identifier) "kk" (]) "]" (=) "=" (subscript_expression) "A->x[k]" (field_expression) "A->x" (identifier) "A" (->) "->" (field_identifier) "x" ([) "[" (identifier) "k" (]) "]" (;) ";" (expression_statement) "kk++;" (update_expression) "kk++" (identifier) "kk" (++) "++" (;) ";" (}) "}" (}) "}" (comment) "/* -I at bottom right */" (for_statement) "for (k = 0; k < d->m; k++) {\n K->i[kk] = k + d->n;\n K->p[kk] = k + d->n;\n K->x[kk] = -1;\n kk++;\n }" (for) "for" (() "(" (assignment_expression) "k = 0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "k < d->m" (identifier) "k" (<) "<" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" (;) ";" (update_expression) "k++" (identifier) "k" (++) "++" ()) ")" (compound_statement) "{\n K->i[kk] = k + d->n;\n K->p[kk] = k + d->n;\n K->x[kk] = -1;\n kk++;\n }" ({) "{" (expression_statement) "K->i[kk] = k + d->n;" (assignment_expression) "K->i[kk] = k + d->n" (subscript_expression) "K->i[kk]" (field_expression) "K->i" (identifier) "K" (->) "->" (field_identifier) "i" ([) "[" (identifier) "kk" (]) "]" (=) "=" (binary_expression) "k + d->n" (identifier) "k" (+) "+" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (;) ";" (expression_statement) "K->p[kk] = k + d->n;" (assignment_expression) "K->p[kk] = k + d->n" (subscript_expression) "K->p[kk]" (field_expression) "K->p" (identifier) "K" (->) "->" (field_identifier) "p" ([) "[" (identifier) "kk" (]) "]" (=) "=" (binary_expression) "k + d->n" (identifier) "k" (+) "+" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (;) ";" (expression_statement) "K->x[kk] = -1;" (assignment_expression) "K->x[kk] = -1" (subscript_expression) "K->x[kk]" (field_expression) "K->x" (identifier) "K" (->) "->" (field_identifier) "x" ([) "[" (identifier) "kk" (]) "]" (=) "=" (number_literal) "-1" (;) ";" (expression_statement) "kk++;" (update_expression) "kk++" (identifier) "kk" (++) "++" (;) ";" (}) "}" (comment) "/* assert kk == Knzmax */" (expression_statement) "K->nz = Knzmax;" (assignment_expression) "K->nz = Knzmax" (field_expression) "K->nz" (identifier) "K" (->) "->" (field_identifier) "nz" (=) "=" (identifier) "Knzmax" (;) ";" (expression_statement) "K_cs = cs_compress(K);" (assignment_expression) "K_cs = cs_compress(K)" (identifier) "K_cs" (=) "=" (call_expression) "cs_compress(K)" (identifier) "cs_compress" (argument_list) "(K)" (() "(" (identifier) "K" ()) ")" (;) ";" (expression_statement) "cs_spfree(K);" (call_expression) "cs_spfree(K)" (identifier) "cs_spfree" (argument_list) "(K)" (() "(" (identifier) "K" ()) ")" (;) ";" (return_statement) "return (K_cs);" (return) "return" (parenthesized_expression) "(K_cs)" (() "(" (identifier) "K_cs" ()) ")" (;) ";" (}) "}" (function_definition) "scs_int LDLInit(cs * A, scs_int P[], scs_float **info) {\n *info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));\n#ifdef DLONG\n return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif\n}" (type_identifier) "scs_int" (function_declarator) "LDLInit(cs * A, scs_int P[], scs_float **info)" (identifier) "LDLInit" (parameter_list) "(cs * A, scs_int P[], scs_float **info)" (() "(" (parameter_declaration) "cs * A" (type_identifier) "cs" (pointer_declarator) "* A" (*) "*" (identifier) "A" (,) "," (parameter_declaration) "scs_int P[]" (type_identifier) "scs_int" (array_declarator) "P[]" (identifier) "P" ([) "[" (]) "]" (,) "," (parameter_declaration) "scs_float **info" (type_identifier) "scs_float" (pointer_declarator) "**info" (*) "*" (pointer_declarator) "*info" (*) "*" (identifier) "info" ()) ")" (compound_statement) "{\n *info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));\n#ifdef DLONG\n return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif\n}" ({) "{" (expression_statement) "*info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));" (assignment_expression) "*info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float))" (pointer_expression) "*info" (*) "*" (identifier) "info" (=) "=" (cast_expression) "(scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float))" (() "(" (type_descriptor) "scs_float *" (type_identifier) "scs_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "scs_malloc(AMD_INFO * sizeof(scs_float))" (identifier) "scs_malloc" (argument_list) "(AMD_INFO * sizeof(scs_float))" (() "(" (binary_expression) "AMD_INFO * sizeof(scs_float)" (identifier) "AMD_INFO" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (preproc_ifdef) "#ifdef DLONG\n return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif" (#ifdef) "#ifdef" (identifier) "DLONG" (return_statement) "return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));" (return) "return" (parenthesized_expression) "(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info))" (() "(" (call_expression) "amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)" (identifier) "amd_l_order" (argument_list) "(A->n, A->p, A->i, P, (scs_float *) NULL, *info)" (() "(" (field_expression) "A->n" (identifier) "A" (->) "->" (field_identifier) "n" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (identifier) "P" (,) "," (cast_expression) "(scs_float *) NULL" (() "(" (type_descriptor) "scs_float *" (type_identifier) "scs_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "*info" (*) "*" (identifier) "info" ()) ")" ()) ")" (;) ";" (preproc_else) "#else\n return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));" (#else) "#else" (return_statement) "return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));" (return) "return" (parenthesized_expression) "(amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info))" (() "(" (call_expression) "amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)" (identifier) "amd_order" (argument_list) "(A->n, A->p, A->i, P, (scs_float *) NULL, *info)" (() "(" (field_expression) "A->n" (identifier) "A" (->) "->" (field_identifier) "n" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (identifier) "P" (,) "," (cast_expression) "(scs_float *) NULL" (() "(" (type_descriptor) "scs_float *" (type_identifier) "scs_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "*info" (*) "*" (identifier) "info" ()) ")" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "scs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) {\n scs_int kk, n = A->n;\n scs_int * Parent = scs_malloc(n * sizeof(scs_int));\n scs_int * Lnz = scs_malloc(n * sizeof(scs_int));\n scs_int * Flag = scs_malloc(n * sizeof(scs_int));\n scs_int * Pattern = scs_malloc(n * sizeof(scs_int));\n scs_float * Y = scs_malloc(n * sizeof(scs_float));\n (*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));\n\n /*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */\n /*scs_float Y[n]; */\n\n LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);\n\n (*L)->nzmax = *((*L)->p + n);\n (*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));\n (*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));\n *D = (scs_float *) scs_malloc(n * sizeof(scs_float));\n\n if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n return -1;\n\n#ifdef EXTRAVERBOSE\n scs_printf("numeric factorization\n");\n#endif\n kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);\n#ifdef EXTRAVERBOSE\n scs_printf("finished numeric factorization\n");\n#endif\n\n scs_free(Parent);\n scs_free(Lnz);\n scs_free(Flag);\n scs_free(Pattern);\n scs_free(Y);\n return (n - kk);\n}" (type_identifier) "scs_int" (function_declarator) "LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D)" (identifier) "LDLFactor" (parameter_list) "(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D)" (() "(" (parameter_declaration) "cs * A" (type_identifier) "cs" (pointer_declarator) "* A" (*) "*" (identifier) "A" (,) "," (parameter_declaration) "scs_int P[]" (type_identifier) "scs_int" (array_declarator) "P[]" (identifier) "P" ([) "[" (]) "]" (,) "," (parameter_declaration) "scs_int Pinv[]" (type_identifier) "scs_int" (array_declarator) "Pinv[]" (identifier) "Pinv" ([) "[" (]) "]" (,) "," (parameter_declaration) "cs **L" (type_identifier) "cs" (pointer_declarator) "**L" (*) "*" (pointer_declarator) "*L" (*) "*" (identifier) "L" (,) "," (parameter_declaration) "scs_float **D" (type_identifier) "scs_float" (pointer_declarator) "**D" (*) "*" (pointer_declarator) "*D" (*) "*" (identifier) "D" ()) ")" (compound_statement) "{\n scs_int kk, n = A->n;\n scs_int * Parent = scs_malloc(n * sizeof(scs_int));\n scs_int * Lnz = scs_malloc(n * sizeof(scs_int));\n scs_int * Flag = scs_malloc(n * sizeof(scs_int));\n scs_int * Pattern = scs_malloc(n * sizeof(scs_int));\n scs_float * Y = scs_malloc(n * sizeof(scs_float));\n (*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));\n\n /*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */\n /*scs_float Y[n]; */\n\n LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);\n\n (*L)->nzmax = *((*L)->p + n);\n (*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));\n (*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));\n *D = (scs_float *) scs_malloc(n * sizeof(scs_float));\n\n if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n return -1;\n\n#ifdef EXTRAVERBOSE\n scs_printf("numeric factorization\n");\n#endif\n kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);\n#ifdef EXTRAVERBOSE\n scs_printf("finished numeric factorization\n");\n#endif\n\n scs_free(Parent);\n scs_free(Lnz);\n scs_free(Flag);\n scs_free(Pattern);\n scs_free(Y);\n return (n - kk);\n}" ({) "{" (declaration) "scs_int kk, n = A->n;" (type_identifier) "scs_int" (identifier) "kk" (,) "," (init_declarator) "n = A->n" (identifier) "n" (=) "=" (field_expression) "A->n" (identifier) "A" (->) "->" (field_identifier) "n" (;) ";" (declaration) "scs_int * Parent = scs_malloc(n * sizeof(scs_int));" (type_identifier) "scs_int" (init_declarator) "* Parent = scs_malloc(n * sizeof(scs_int))" (pointer_declarator) "* Parent" (*) "*" (identifier) "Parent" (=) "=" (call_expression) "scs_malloc(n * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_int))" (() "(" (binary_expression) "n * sizeof(scs_int)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (declaration) "scs_int * Lnz = scs_malloc(n * sizeof(scs_int));" (type_identifier) "scs_int" (init_declarator) "* Lnz = scs_malloc(n * sizeof(scs_int))" (pointer_declarator) "* Lnz" (*) "*" (identifier) "Lnz" (=) "=" (call_expression) "scs_malloc(n * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_int))" (() "(" (binary_expression) "n * sizeof(scs_int)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (declaration) "scs_int * Flag = scs_malloc(n * sizeof(scs_int));" (type_identifier) "scs_int" (init_declarator) "* Flag = scs_malloc(n * sizeof(scs_int))" (pointer_declarator) "* Flag" (*) "*" (identifier) "Flag" (=) "=" (call_expression) "scs_malloc(n * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_int))" (() "(" (binary_expression) "n * sizeof(scs_int)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (declaration) "scs_int * Pattern = scs_malloc(n * sizeof(scs_int));" (type_identifier) "scs_int" (init_declarator) "* Pattern = scs_malloc(n * sizeof(scs_int))" (pointer_declarator) "* Pattern" (*) "*" (identifier) "Pattern" (=) "=" (call_expression) "scs_malloc(n * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_int))" (() "(" (binary_expression) "n * sizeof(scs_int)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (declaration) "scs_float * Y = scs_malloc(n * sizeof(scs_float));" (type_identifier) "scs_float" (init_declarator) "* Y = scs_malloc(n * sizeof(scs_float))" (pointer_declarator) "* Y" (*) "*" (identifier) "Y" (=) "=" (call_expression) "scs_malloc(n * sizeof(scs_float))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_float))" (() "(" (binary_expression) "n * sizeof(scs_float)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (expression_statement) "(*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));" (assignment_expression) "(*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int))" (field_expression) "(*L)->p" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "p" (=) "=" (cast_expression) "(scs_int *) scs_malloc((1 + n) * sizeof(scs_int))" (() "(" (type_descriptor) "scs_int *" (type_identifier) "scs_int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "scs_malloc((1 + n) * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "((1 + n) * sizeof(scs_int))" (() "(" (binary_expression) "(1 + n) * sizeof(scs_int)" (parenthesized_expression) "(1 + n)" (() "(" (binary_expression) "1 + n" (number_literal) "1" (+) "+" (identifier) "n" ()) ")" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (comment) "/*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */" (comment) "/*scs_float Y[n]; */" (expression_statement) "LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);" (call_expression) "LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv)" (identifier) "LDL_symbolic" (argument_list) "(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv)" (() "(" (identifier) "n" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (field_expression) "(*L)->p" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "p" (,) "," (identifier) "Parent" (,) "," (identifier) "Lnz" (,) "," (identifier) "Flag" (,) "," (identifier) "P" (,) "," (identifier) "Pinv" ()) ")" (;) ";" (expression_statement) "(*L)->nzmax = *((*L)->p + n);" (assignment_expression) "(*L)->nzmax = *((*L)->p + n)" (field_expression) "(*L)->nzmax" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "nzmax" (=) "=" (pointer_expression) "*((*L)->p + n)" (*) "*" (parenthesized_expression) "((*L)->p + n)" (() "(" (binary_expression) "(*L)->p + n" (field_expression) "(*L)->p" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "p" (+) "+" (identifier) "n" ()) ")" (;) ";" (expression_statement) "(*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));" (assignment_expression) "(*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float))" (field_expression) "(*L)->x" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "x" (=) "=" (cast_expression) "(scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float))" (() "(" (type_descriptor) "scs_float *" (type_identifier) "scs_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "scs_malloc((*L)->nzmax * sizeof(scs_float))" (identifier) "scs_malloc" (argument_list) "((*L)->nzmax * sizeof(scs_float))" (() "(" (binary_expression) "(*L)->nzmax * sizeof(scs_float)" (field_expression) "(*L)->nzmax" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "nzmax" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (expression_statement) "(*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));" (assignment_expression) "(*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int))" (field_expression) "(*L)->i" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "i" (=) "=" (cast_expression) "(scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int))" (() "(" (type_descriptor) "scs_int *" (type_identifier) "scs_int" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "scs_malloc((*L)->nzmax * sizeof(scs_int))" (identifier) "scs_malloc" (argument_list) "((*L)->nzmax * sizeof(scs_int))" (() "(" (binary_expression) "(*L)->nzmax * sizeof(scs_int)" (field_expression) "(*L)->nzmax" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "nzmax" (*) "*" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" ()) ")" (;) ";" (expression_statement) "*D = (scs_float *) scs_malloc(n * sizeof(scs_float));" (assignment_expression) "*D = (scs_float *) scs_malloc(n * sizeof(scs_float))" (pointer_expression) "*D" (*) "*" (identifier) "D" (=) "=" (cast_expression) "(scs_float *) scs_malloc(n * sizeof(scs_float))" (() "(" (type_descriptor) "scs_float *" (type_identifier) "scs_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "scs_malloc(n * sizeof(scs_float))" (identifier) "scs_malloc" (argument_list) "(n * sizeof(scs_float))" (() "(" (binary_expression) "n * sizeof(scs_float)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (if_statement) "if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n return -1;" (if) "if" (parenthesized_expression) "(!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)" (() "(" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x || !Y" (binary_expression) "!(*D) || !(*L)->i || !(*L)->x" (binary_expression) "!(*D) || !(*L)->i" (unary_expression) "!(*D)" (!) "!" (parenthesized_expression) "(*D)" (() "(" (pointer_expression) "*D" (*) "*" (identifier) "D" ()) ")" (||) "||" (unary_expression) "!(*L)->i" (!) "!" (field_expression) "(*L)->i" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "i" (||) "||" (unary_expression) "!(*L)->x" (!) "!" (field_expression) "(*L)->x" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "x" (||) "||" (unary_expression) "!Y" (!) "!" (identifier) "Y" (||) "||" (unary_expression) "!Pattern" (!) "!" (identifier) "Pattern" (||) "||" (unary_expression) "!Flag" (!) "!" (identifier) "Flag" (||) "||" (unary_expression) "!Lnz" (!) "!" (identifier) "Lnz" (||) "||" (unary_expression) "!Parent" (!) "!" (identifier) "Parent" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (preproc_ifdef) "#ifdef EXTRAVERBOSE\n scs_printf("numeric factorization\n");\n#endif" (#ifdef) "#ifdef" (identifier) "EXTRAVERBOSE" (expression_statement) "scs_printf("numeric factorization\n");" (call_expression) "scs_printf("numeric factorization\n")" (identifier) "scs_printf" (argument_list) "("numeric factorization\n")" (() "(" (string_literal) ""numeric factorization\n"" (") """ (string_content) "numeric factorization" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);" (assignment_expression) "kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)" (identifier) "kk" (=) "=" (call_expression) "LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)" (identifier) "LDL_numeric" (argument_list) "(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)" (() "(" (identifier) "n" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (field_expression) "A->x" (identifier) "A" (->) "->" (field_identifier) "x" (,) "," (field_expression) "(*L)->p" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "p" (,) "," (identifier) "Parent" (,) "," (identifier) "Lnz" (,) "," (field_expression) "(*L)->i" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "i" (,) "," (field_expression) "(*L)->x" (parenthesized_expression) "(*L)" (() "(" (pointer_expression) "*L" (*) "*" (identifier) "L" ()) ")" (->) "->" (field_identifier) "x" (,) "," (pointer_expression) "*D" (*) "*" (identifier) "D" (,) "," (identifier) "Y" (,) "," (identifier) "Pattern" (,) "," (identifier) "Flag" (,) "," (identifier) "P" (,) "," (identifier) "Pinv" ()) ")" (;) ";" (preproc_ifdef) "#ifdef EXTRAVERBOSE\n scs_printf("finished numeric factorization\n");\n#endif" (#ifdef) "#ifdef" (identifier) "EXTRAVERBOSE" (expression_statement) "scs_printf("finished numeric factorization\n");" (call_expression) "scs_printf("finished numeric factorization\n")" (identifier) "scs_printf" (argument_list) "("finished numeric factorization\n")" (() "(" (string_literal) ""finished numeric factorization\n"" (") """ (string_content) "finished numeric factorization" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "scs_free(Parent);" (call_expression) "scs_free(Parent)" (identifier) "scs_free" (argument_list) "(Parent)" (() "(" (identifier) "Parent" ()) ")" (;) ";" (expression_statement) "scs_free(Lnz);" (call_expression) "scs_free(Lnz)" (identifier) "scs_free" (argument_list) "(Lnz)" (() "(" (identifier) "Lnz" ()) ")" (;) ";" (expression_statement) "scs_free(Flag);" (call_expression) "scs_free(Flag)" (identifier) "scs_free" (argument_list) "(Flag)" (() "(" (identifier) "Flag" ()) ")" (;) ";" (expression_statement) "scs_free(Pattern);" (call_expression) "scs_free(Pattern)" (identifier) "scs_free" (argument_list) "(Pattern)" (() "(" (identifier) "Pattern" ()) ")" (;) ";" (expression_statement) "scs_free(Y);" (call_expression) "scs_free(Y)" (identifier) "scs_free" (argument_list) "(Y)" (() "(" (identifier) "Y" ()) ")" (;) ";" (return_statement) "return (n - kk);" (return) "return" (parenthesized_expression) "(n - kk)" (() "(" (binary_expression) "n - kk" (identifier) "n" (-) "-" (identifier) "kk" ()) ")" (;) ";" (}) "}" (function_definition) "void LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) {\n /* solves PLDL'P' x = b for x */\n scs_int n = L->n;\n if (P == NULL) {\n if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));\n LDL_lsolve(n, x, L->p, L->i, L->x);\n LDL_dsolve(n, x, D);\n LDL_ltsolve(n, x, L->p, L->i, L->x);\n } else {\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }\n}" (primitive_type) "void" (function_declarator) "LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp)" (identifier) "LDLSolve" (parameter_list) "(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp)" (() "(" (parameter_declaration) "scs_float *x" (type_identifier) "scs_float" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "scs_float b[]" (type_identifier) "scs_float" (array_declarator) "b[]" (identifier) "b" ([) "[" (]) "]" (,) "," (parameter_declaration) "cs * L" (type_identifier) "cs" (pointer_declarator) "* L" (*) "*" (identifier) "L" (,) "," (parameter_declaration) "scs_float D[]" (type_identifier) "scs_float" (array_declarator) "D[]" (identifier) "D" ([) "[" (]) "]" (,) "," (parameter_declaration) "scs_int P[]" (type_identifier) "scs_int" (array_declarator) "P[]" (identifier) "P" ([) "[" (]) "]" (,) "," (parameter_declaration) "scs_float * bp" (type_identifier) "scs_float" (pointer_declarator) "* bp" (*) "*" (identifier) "bp" ()) ")" (compound_statement) "{\n /* solves PLDL'P' x = b for x */\n scs_int n = L->n;\n if (P == NULL) {\n if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));\n LDL_lsolve(n, x, L->p, L->i, L->x);\n LDL_dsolve(n, x, D);\n LDL_ltsolve(n, x, L->p, L->i, L->x);\n } else {\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }\n}" ({) "{" (comment) "/* solves PLDL'P' x = b for x */" (declaration) "scs_int n = L->n;" (type_identifier) "scs_int" (init_declarator) "n = L->n" (identifier) "n" (=) "=" (field_expression) "L->n" (identifier) "L" (->) "->" (field_identifier) "n" (;) ";" (if_statement) "if (P == NULL) {\n if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));\n LDL_lsolve(n, x, L->p, L->i, L->x);\n LDL_dsolve(n, x, D);\n LDL_ltsolve(n, x, L->p, L->i, L->x);\n } else {\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }" (if) "if" (parenthesized_expression) "(P == NULL)" (() "(" (binary_expression) "P == NULL" (identifier) "P" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));\n LDL_lsolve(n, x, L->p, L->i, L->x);\n LDL_dsolve(n, x, D);\n LDL_ltsolve(n, x, L->p, L->i, L->x);\n }" ({) "{" (if_statement) "if (x != b) /* if they're different addresses */\n memcpy(x, b, n * sizeof(scs_float));" (if) "if" (parenthesized_expression) "(x != b)" (() "(" (binary_expression) "x != b" (identifier) "x" (!=) "!=" (identifier) "b" ()) ")" (comment) "/* if they're different addresses */" (expression_statement) "memcpy(x, b, n * sizeof(scs_float));" (call_expression) "memcpy(x, b, n * sizeof(scs_float))" (identifier) "memcpy" (argument_list) "(x, b, n * sizeof(scs_float))" (() "(" (identifier) "x" (,) "," (identifier) "b" (,) "," (binary_expression) "n * sizeof(scs_float)" (identifier) "n" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (expression_statement) "LDL_lsolve(n, x, L->p, L->i, L->x);" (call_expression) "LDL_lsolve(n, x, L->p, L->i, L->x)" (identifier) "LDL_lsolve" (argument_list) "(n, x, L->p, L->i, L->x)" (() "(" (identifier) "n" (,) "," (identifier) "x" (,) "," (field_expression) "L->p" (identifier) "L" (->) "->" (field_identifier) "p" (,) "," (field_expression) "L->i" (identifier) "L" (->) "->" (field_identifier) "i" (,) "," (field_expression) "L->x" (identifier) "L" (->) "->" (field_identifier) "x" ()) ")" (;) ";" (expression_statement) "LDL_dsolve(n, x, D);" (call_expression) "LDL_dsolve(n, x, D)" (identifier) "LDL_dsolve" (argument_list) "(n, x, D)" (() "(" (identifier) "n" (,) "," (identifier) "x" (,) "," (identifier) "D" ()) ")" (;) ";" (expression_statement) "LDL_ltsolve(n, x, L->p, L->i, L->x);" (call_expression) "LDL_ltsolve(n, x, L->p, L->i, L->x)" (identifier) "LDL_ltsolve" (argument_list) "(n, x, L->p, L->i, L->x)" (() "(" (identifier) "n" (,) "," (identifier) "x" (,) "," (field_expression) "L->p" (identifier) "L" (->) "->" (field_identifier) "p" (,) "," (field_expression) "L->i" (identifier) "L" (->) "->" (field_identifier) "i" (,) "," (field_expression) "L->x" (identifier) "L" (->) "->" (field_identifier) "x" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }" (else) "else" (compound_statement) "{\n LDL_perm(n, bp, b, P);\n LDL_lsolve(n, bp, L->p, L->i, L->x);\n LDL_dsolve(n, bp, D);\n LDL_ltsolve(n, bp, L->p, L->i, L->x);\n LDL_permt(n, x, bp, P);\n }" ({) "{" (expression_statement) "LDL_perm(n, bp, b, P);" (call_expression) "LDL_perm(n, bp, b, P)" (identifier) "LDL_perm" (argument_list) "(n, bp, b, P)" (() "(" (identifier) "n" (,) "," (identifier) "bp" (,) "," (identifier) "b" (,) "," (identifier) "P" ()) ")" (;) ";" (expression_statement) "LDL_lsolve(n, bp, L->p, L->i, L->x);" (call_expression) "LDL_lsolve(n, bp, L->p, L->i, L->x)" (identifier) "LDL_lsolve" (argument_list) "(n, bp, L->p, L->i, L->x)" (() "(" (identifier) "n" (,) "," (identifier) "bp" (,) "," (field_expression) "L->p" (identifier) "L" (->) "->" (field_identifier) "p" (,) "," (field_expression) "L->i" (identifier) "L" (->) "->" (field_identifier) "i" (,) "," (field_expression) "L->x" (identifier) "L" (->) "->" (field_identifier) "x" ()) ")" (;) ";" (expression_statement) "LDL_dsolve(n, bp, D);" (call_expression) "LDL_dsolve(n, bp, D)" (identifier) "LDL_dsolve" (argument_list) "(n, bp, D)" (() "(" (identifier) "n" (,) "," (identifier) "bp" (,) "," (identifier) "D" ()) ")" (;) ";" (expression_statement) "LDL_ltsolve(n, bp, L->p, L->i, L->x);" (call_expression) "LDL_ltsolve(n, bp, L->p, L->i, L->x)" (identifier) "LDL_ltsolve" (argument_list) "(n, bp, L->p, L->i, L->x)" (() "(" (identifier) "n" (,) "," (identifier) "bp" (,) "," (field_expression) "L->p" (identifier) "L" (->) "->" (field_identifier) "p" (,) "," (field_expression) "L->i" (identifier) "L" (->) "->" (field_identifier) "i" (,) "," (field_expression) "L->x" (identifier) "L" (->) "->" (field_identifier) "x" ()) ")" (;) ";" (expression_statement) "LDL_permt(n, x, bp, P);" (call_expression) "LDL_permt(n, x, bp, P)" (identifier) "LDL_permt" (argument_list) "(n, x, bp, P)" (() "(" (identifier) "n" (,) "," (identifier) "x" (,) "," (identifier) "bp" (,) "," (identifier) "P" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n /* y = A'*x\n A in column compressed format\n parallelizes over columns (rows of A')\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float yj;\n#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif\n for (j = 0; j < n; j++) {\n yj = y[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }\n y[j] = yj;\n }\n}" (primitive_type) "void" (function_declarator) "_accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)" (identifier) "_accumByAtrans" (parameter_list) "(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)" (() "(" (parameter_declaration) "scs_int n" (type_identifier) "scs_int" (identifier) "n" (,) "," (parameter_declaration) "scs_float * Ax" (type_identifier) "scs_float" (pointer_declarator) "* Ax" (*) "*" (identifier) "Ax" (,) "," (parameter_declaration) "scs_int * Ai" (type_identifier) "scs_int" (pointer_declarator) "* Ai" (*) "*" (identifier) "Ai" (,) "," (parameter_declaration) "scs_int * Ap" (type_identifier) "scs_int" (pointer_declarator) "* Ap" (*) "*" (identifier) "Ap" (,) "," (parameter_declaration) "const scs_float *x" (type_qualifier) "const" (const) "const" (type_identifier) "scs_float" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "scs_float *y" (type_identifier) "scs_float" (pointer_declarator) "*y" (*) "*" (identifier) "y" ()) ")" (compound_statement) "{\n /* y = A'*x\n A in column compressed format\n parallelizes over columns (rows of A')\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float yj;\n#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif\n for (j = 0; j < n; j++) {\n yj = y[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }\n y[j] = yj;\n }\n}" ({) "{" (comment) "/* y = A'*x\n A in column compressed format\n parallelizes over columns (rows of A')\n */" (declaration) "scs_int p, j;" (type_identifier) "scs_int" (identifier) "p" (,) "," (identifier) "j" (;) ";" (declaration) "scs_int c1, c2;" (type_identifier) "scs_int" (identifier) "c1" (,) "," (identifier) "c2" (;) ";" (declaration) "scs_float yj;" (type_identifier) "scs_float" (identifier) "yj" (;) ";" (preproc_ifdef) "#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif" (#ifdef) "#ifdef" (identifier) "OPENMP" (preproc_call) "#pragma omp parallel for private(p,c1,c2,yj)\n" (preproc_directive) "#pragma" (preproc_arg) "omp parallel for private(p,c1,c2,yj)" (#endif) "#endif" (for_statement) "for (j = 0; j < n; j++) {\n yj = y[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }\n y[j] = yj;\n }" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < n" (identifier) "j" (<) "<" (identifier) "n" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n yj = y[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }\n y[j] = yj;\n }" ({) "{" (expression_statement) "yj = y[j];" (assignment_expression) "yj = y[j]" (identifier) "yj" (=) "=" (subscript_expression) "y[j]" (identifier) "y" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "c1 = Ap[j];" (assignment_expression) "c1 = Ap[j]" (identifier) "c1" (=) "=" (subscript_expression) "Ap[j]" (identifier) "Ap" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "c2 = Ap[j + 1];" (assignment_expression) "c2 = Ap[j + 1]" (identifier) "c2" (=) "=" (subscript_expression) "Ap[j + 1]" (identifier) "Ap" ([) "[" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" (]) "]" (;) ";" (for_statement) "for (p = c1; p < c2; p++) {\n yj += Ax[p] * x[Ai[p]];\n }" (for) "for" (() "(" (assignment_expression) "p = c1" (identifier) "p" (=) "=" (identifier) "c1" (;) ";" (binary_expression) "p < c2" (identifier) "p" (<) "<" (identifier) "c2" (;) ";" (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n yj += Ax[p] * x[Ai[p]];\n }" ({) "{" (expression_statement) "yj += Ax[p] * x[Ai[p]];" (assignment_expression) "yj += Ax[p] * x[Ai[p]]" (identifier) "yj" (+=) "+=" (binary_expression) "Ax[p] * x[Ai[p]]" (subscript_expression) "Ax[p]" (identifier) "Ax" ([) "[" (identifier) "p" (]) "]" (*) "*" (subscript_expression) "x[Ai[p]]" (identifier) "x" ([) "[" (subscript_expression) "Ai[p]" (identifier) "Ai" ([) "[" (identifier) "p" (]) "]" (]) "]" (;) ";" (}) "}" (expression_statement) "y[j] = yj;" (assignment_expression) "y[j] = yj" (subscript_expression) "y[j]" (identifier) "y" ([) "[" (identifier) "j" (]) "]" (=) "=" (identifier) "yj" (;) ";" (}) "}" (}) "}" (function_definition) "void _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n /*y = A*x\n A in column compressed format\n this parallelizes over columns and uses\n pragma atomic to prevent concurrent writes to y\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float xj;\n /*#pragma omp parallel for private(p,c1,c2,xj) */\n for (j = 0; j < n; j++) {\n xj = x[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }\n }\n}" (primitive_type) "void" (function_declarator) "_accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)" (identifier) "_accumByA" (parameter_list) "(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)" (() "(" (parameter_declaration) "scs_int n" (type_identifier) "scs_int" (identifier) "n" (,) "," (parameter_declaration) "scs_float * Ax" (type_identifier) "scs_float" (pointer_declarator) "* Ax" (*) "*" (identifier) "Ax" (,) "," (parameter_declaration) "scs_int * Ai" (type_identifier) "scs_int" (pointer_declarator) "* Ai" (*) "*" (identifier) "Ai" (,) "," (parameter_declaration) "scs_int * Ap" (type_identifier) "scs_int" (pointer_declarator) "* Ap" (*) "*" (identifier) "Ap" (,) "," (parameter_declaration) "const scs_float *x" (type_qualifier) "const" (const) "const" (type_identifier) "scs_float" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "scs_float *y" (type_identifier) "scs_float" (pointer_declarator) "*y" (*) "*" (identifier) "y" ()) ")" (compound_statement) "{\n /*y = A*x\n A in column compressed format\n this parallelizes over columns and uses\n pragma atomic to prevent concurrent writes to y\n */\n scs_int p, j;\n scs_int c1, c2;\n scs_float xj;\n /*#pragma omp parallel for private(p,c1,c2,xj) */\n for (j = 0; j < n; j++) {\n xj = x[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }\n }\n}" ({) "{" (comment) "/*y = A*x\n A in column compressed format\n this parallelizes over columns and uses\n pragma atomic to prevent concurrent writes to y\n */" (declaration) "scs_int p, j;" (type_identifier) "scs_int" (identifier) "p" (,) "," (identifier) "j" (;) ";" (declaration) "scs_int c1, c2;" (type_identifier) "scs_int" (identifier) "c1" (,) "," (identifier) "c2" (;) ";" (declaration) "scs_float xj;" (type_identifier) "scs_float" (identifier) "xj" (;) ";" (comment) "/*#pragma omp parallel for private(p,c1,c2,xj) */" (for_statement) "for (j = 0; j < n; j++) {\n xj = x[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }\n }" (for) "for" (() "(" (assignment_expression) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < n" (identifier) "j" (<) "<" (identifier) "n" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n xj = x[j];\n c1 = Ap[j];\n c2 = Ap[j + 1];\n for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }\n }" ({) "{" (expression_statement) "xj = x[j];" (assignment_expression) "xj = x[j]" (identifier) "xj" (=) "=" (subscript_expression) "x[j]" (identifier) "x" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "c1 = Ap[j];" (assignment_expression) "c1 = Ap[j]" (identifier) "c1" (=) "=" (subscript_expression) "Ap[j]" (identifier) "Ap" ([) "[" (identifier) "j" (]) "]" (;) ";" (expression_statement) "c2 = Ap[j + 1];" (assignment_expression) "c2 = Ap[j + 1]" (identifier) "c2" (=) "=" (subscript_expression) "Ap[j + 1]" (identifier) "Ap" ([) "[" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" (]) "]" (;) ";" (for_statement) "for (p = c1; p < c2; p++) {\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }" (for) "for" (() "(" (assignment_expression) "p = c1" (identifier) "p" (=) "=" (identifier) "c1" (;) ";" (binary_expression) "p < c2" (identifier) "p" (<) "<" (identifier) "c2" (;) ";" (update_expression) "p++" (identifier) "p" (++) "++" ()) ")" (compound_statement) "{\n /*#pragma omp atomic */\n y[Ai[p]] += Ax[p] * xj;\n }" ({) "{" (comment) "/*#pragma omp atomic */" (expression_statement) "y[Ai[p]] += Ax[p] * xj;" (assignment_expression) "y[Ai[p]] += Ax[p] * xj" (subscript_expression) "y[Ai[p]]" (identifier) "y" ([) "[" (subscript_expression) "Ai[p]" (identifier) "Ai" ([) "[" (identifier) "p" (]) "]" (]) "]" (+=) "+=" (binary_expression) "Ax[p] * xj" (subscript_expression) "Ax[p]" (identifier) "Ax" ([) "[" (identifier) "p" (]) "]" (*) "*" (identifier) "xj" (;) ";" (}) "}" (}) "}" (}) "}" (function_definition) "void accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n AMatrix * A = d->A;\n _accumByAtrans(d->n, A->x, A->i, A->p, x, y);\n}" (primitive_type) "void" (function_declarator) "accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y)" (identifier) "accumByAtrans" (parameter_list) "(Data * d, Priv * p, const scs_float *x, scs_float *y)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "const scs_float *x" (type_qualifier) "const" (const) "const" (type_identifier) "scs_float" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "scs_float *y" (type_identifier) "scs_float" (pointer_declarator) "*y" (*) "*" (identifier) "y" ()) ")" (compound_statement) "{\n AMatrix * A = d->A;\n _accumByAtrans(d->n, A->x, A->i, A->p, x, y);\n}" ({) "{" (declaration) "AMatrix * A = d->A;" (type_identifier) "AMatrix" (init_declarator) "* A = d->A" (pointer_declarator) "* A" (*) "*" (identifier) "A" (=) "=" (field_expression) "d->A" (identifier) "d" (->) "->" (field_identifier) "A" (;) ";" (expression_statement) "_accumByAtrans(d->n, A->x, A->i, A->p, x, y);" (call_expression) "_accumByAtrans(d->n, A->x, A->i, A->p, x, y)" (identifier) "_accumByAtrans" (argument_list) "(d->n, A->x, A->i, A->p, x, y)" (() "(" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (,) "," (field_expression) "A->x" (identifier) "A" (->) "->" (field_identifier) "x" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (identifier) "x" (,) "," (identifier) "y" ()) ")" (;) ";" (}) "}" (function_definition) "void accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n AMatrix * A = d->A;\n _accumByA(d->n, A->x, A->i, A->p, x, y);\n}" (primitive_type) "void" (function_declarator) "accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y)" (identifier) "accumByA" (parameter_list) "(Data * d, Priv * p, const scs_float *x, scs_float *y)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "const scs_float *x" (type_qualifier) "const" (const) "const" (type_identifier) "scs_float" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (parameter_declaration) "scs_float *y" (type_identifier) "scs_float" (pointer_declarator) "*y" (*) "*" (identifier) "y" ()) ")" (compound_statement) "{\n AMatrix * A = d->A;\n _accumByA(d->n, A->x, A->i, A->p, x, y);\n}" ({) "{" (declaration) "AMatrix * A = d->A;" (type_identifier) "AMatrix" (init_declarator) "* A = d->A" (pointer_declarator) "* A" (*) "*" (identifier) "A" (=) "=" (field_expression) "d->A" (identifier) "d" (->) "->" (field_identifier) "A" (;) ";" (expression_statement) "_accumByA(d->n, A->x, A->i, A->p, x, y);" (call_expression) "_accumByA(d->n, A->x, A->i, A->p, x, y)" (identifier) "_accumByA" (argument_list) "(d->n, A->x, A->i, A->p, x, y)" (() "(" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (,) "," (field_expression) "A->x" (identifier) "A" (->) "->" (field_identifier) "x" (,) "," (field_expression) "A->i" (identifier) "A" (->) "->" (field_identifier) "i" (,) "," (field_expression) "A->p" (identifier) "A" (->) "->" (field_identifier) "p" (,) "," (identifier) "x" (,) "," (identifier) "y" ()) ")" (;) ";" (}) "}" (function_definition) "scs_int factorize(Data * d, Priv * p) {\n scs_float *info;\n scs_int *Pinv, amd_status, ldl_status;\n cs *C, *K = formKKT(d);\n if (!K) {\n return -1;\n }\n amd_status = LDLInit(K, p->P, &info);\n if (amd_status < 0)\n return (amd_status);\n#ifdef EXTRAVERBOSE\n if(d->verbose) {\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }\n#endif\n Pinv = cs_pinv(p->P, d->n + d->m);\n C = cs_symperm(K, Pinv, 1);\n ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);\n cs_spfree(C);\n cs_spfree(K);\n scs_free(Pinv);\n scs_free(info);\n return (ldl_status);\n}" (type_identifier) "scs_int" (function_declarator) "factorize(Data * d, Priv * p)" (identifier) "factorize" (parameter_list) "(Data * d, Priv * p)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" ()) ")" (compound_statement) "{\n scs_float *info;\n scs_int *Pinv, amd_status, ldl_status;\n cs *C, *K = formKKT(d);\n if (!K) {\n return -1;\n }\n amd_status = LDLInit(K, p->P, &info);\n if (amd_status < 0)\n return (amd_status);\n#ifdef EXTRAVERBOSE\n if(d->verbose) {\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }\n#endif\n Pinv = cs_pinv(p->P, d->n + d->m);\n C = cs_symperm(K, Pinv, 1);\n ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);\n cs_spfree(C);\n cs_spfree(K);\n scs_free(Pinv);\n scs_free(info);\n return (ldl_status);\n}" ({) "{" (declaration) "scs_float *info;" (type_identifier) "scs_float" (pointer_declarator) "*info" (*) "*" (identifier) "info" (;) ";" (declaration) "scs_int *Pinv, amd_status, ldl_status;" (type_identifier) "scs_int" (pointer_declarator) "*Pinv" (*) "*" (identifier) "Pinv" (,) "," (identifier) "amd_status" (,) "," (identifier) "ldl_status" (;) ";" (declaration) "cs *C, *K = formKKT(d);" (type_identifier) "cs" (pointer_declarator) "*C" (*) "*" (identifier) "C" (,) "," (init_declarator) "*K = formKKT(d)" (pointer_declarator) "*K" (*) "*" (identifier) "K" (=) "=" (call_expression) "formKKT(d)" (identifier) "formKKT" (argument_list) "(d)" (() "(" (identifier) "d" ()) ")" (;) ";" (if_statement) "if (!K) {\n return -1;\n }" (if) "if" (parenthesized_expression) "(!K)" (() "(" (unary_expression) "!K" (!) "!" (identifier) "K" ()) ")" (compound_statement) "{\n return -1;\n }" ({) "{" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (expression_statement) "amd_status = LDLInit(K, p->P, &info);" (assignment_expression) "amd_status = LDLInit(K, p->P, &info)" (identifier) "amd_status" (=) "=" (call_expression) "LDLInit(K, p->P, &info)" (identifier) "LDLInit" (argument_list) "(K, p->P, &info)" (() "(" (identifier) "K" (,) "," (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" (,) "," (pointer_expression) "&info" (&) "&" (identifier) "info" ()) ")" (;) ";" (if_statement) "if (amd_status < 0)\n return (amd_status);" (if) "if" (parenthesized_expression) "(amd_status < 0)" (() "(" (binary_expression) "amd_status < 0" (identifier) "amd_status" (<) "<" (number_literal) "0" ()) ")" (return_statement) "return (amd_status);" (return) "return" (parenthesized_expression) "(amd_status)" (() "(" (identifier) "amd_status" ()) ")" (;) ";" (preproc_ifdef) "#ifdef EXTRAVERBOSE\n if(d->verbose) {\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }\n#endif" (#ifdef) "#ifdef" (identifier) "EXTRAVERBOSE" (if_statement) "if(d->verbose) {\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }" (if) "if" (parenthesized_expression) "(d->verbose)" (() "(" (field_expression) "d->verbose" (identifier) "d" (->) "->" (field_identifier) "verbose" ()) ")" (compound_statement) "{\n scs_printf("Matrix factorization info:\n");\n#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif\n }" ({) "{" (expression_statement) "scs_printf("Matrix factorization info:\n");" (call_expression) "scs_printf("Matrix factorization info:\n")" (identifier) "scs_printf" (argument_list) "("Matrix factorization info:\n")" (() "(" (string_literal) ""Matrix factorization info:\n"" (") """ (string_content) "Matrix factorization info:" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (preproc_ifdef) "#ifdef DLONG\n amd_l_info(info);\n#else\n amd_info(info);\n#endif" (#ifdef) "#ifdef" (identifier) "DLONG" (expression_statement) "amd_l_info(info);" (call_expression) "amd_l_info(info)" (identifier) "amd_l_info" (argument_list) "(info)" (() "(" (identifier) "info" ()) ")" (;) ";" (preproc_else) "#else\n amd_info(info);" (#else) "#else" (expression_statement) "amd_info(info);" (call_expression) "amd_info(info)" (identifier) "amd_info" (argument_list) "(info)" (() "(" (identifier) "info" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (#endif) "#endif" (expression_statement) "Pinv = cs_pinv(p->P, d->n + d->m);" (assignment_expression) "Pinv = cs_pinv(p->P, d->n + d->m)" (identifier) "Pinv" (=) "=" (call_expression) "cs_pinv(p->P, d->n + d->m)" (identifier) "cs_pinv" (argument_list) "(p->P, d->n + d->m)" (() "(" (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" (,) "," (binary_expression) "d->n + d->m" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (+) "+" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" ()) ")" (;) ";" (expression_statement) "C = cs_symperm(K, Pinv, 1);" (assignment_expression) "C = cs_symperm(K, Pinv, 1)" (identifier) "C" (=) "=" (call_expression) "cs_symperm(K, Pinv, 1)" (identifier) "cs_symperm" (argument_list) "(K, Pinv, 1)" (() "(" (identifier) "K" (,) "," (identifier) "Pinv" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);" (assignment_expression) "ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D)" (identifier) "ldl_status" (=) "=" (call_expression) "LDLFactor(C, NULL, NULL, &p->L, &p->D)" (identifier) "LDLFactor" (argument_list) "(C, NULL, NULL, &p->L, &p->D)" (() "(" (identifier) "C" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&p->L" (&) "&" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (,) "," (pointer_expression) "&p->D" (&) "&" (field_expression) "p->D" (identifier) "p" (->) "->" (field_identifier) "D" ()) ")" (;) ";" (expression_statement) "cs_spfree(C);" (call_expression) "cs_spfree(C)" (identifier) "cs_spfree" (argument_list) "(C)" (() "(" (identifier) "C" ()) ")" (;) ";" (expression_statement) "cs_spfree(K);" (call_expression) "cs_spfree(K)" (identifier) "cs_spfree" (argument_list) "(K)" (() "(" (identifier) "K" ()) ")" (;) ";" (expression_statement) "scs_free(Pinv);" (call_expression) "scs_free(Pinv)" (identifier) "scs_free" (argument_list) "(Pinv)" (() "(" (identifier) "Pinv" ()) ")" (;) ";" (expression_statement) "scs_free(info);" (call_expression) "scs_free(info)" (identifier) "scs_free" (argument_list) "(info)" (() "(" (identifier) "info" ()) ")" (;) ";" (return_statement) "return (ldl_status);" (return) "return" (parenthesized_expression) "(ldl_status)" (() "(" (identifier) "ldl_status" ()) ")" (;) ";" (}) "}" (function_definition) "Priv * initPriv(Data * d) {\n Priv * p = scs_calloc(1, sizeof(Priv));\n scs_int n_plus_m = d->n + d->m;\n p->P = scs_malloc(sizeof(scs_int) * n_plus_m);\n p->L = scs_malloc(sizeof(cs));\n p->bp = scs_malloc(n_plus_m * sizeof(scs_float));\n p->L->m = n_plus_m;\n p->L->n = n_plus_m;\n p->L->nz = -1;\n\n if (factorize(d, p) < 0) {\n freePriv(p);\n return NULL;\n }\n totalSolveTime = 0.0;\n return p;\n}" (type_identifier) "Priv" (pointer_declarator) "* initPriv(Data * d)" (*) "*" (function_declarator) "initPriv(Data * d)" (identifier) "initPriv" (parameter_list) "(Data * d)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" ()) ")" (compound_statement) "{\n Priv * p = scs_calloc(1, sizeof(Priv));\n scs_int n_plus_m = d->n + d->m;\n p->P = scs_malloc(sizeof(scs_int) * n_plus_m);\n p->L = scs_malloc(sizeof(cs));\n p->bp = scs_malloc(n_plus_m * sizeof(scs_float));\n p->L->m = n_plus_m;\n p->L->n = n_plus_m;\n p->L->nz = -1;\n\n if (factorize(d, p) < 0) {\n freePriv(p);\n return NULL;\n }\n totalSolveTime = 0.0;\n return p;\n}" ({) "{" (declaration) "Priv * p = scs_calloc(1, sizeof(Priv));" (type_identifier) "Priv" (init_declarator) "* p = scs_calloc(1, sizeof(Priv))" (pointer_declarator) "* p" (*) "*" (identifier) "p" (=) "=" (call_expression) "scs_calloc(1, sizeof(Priv))" (identifier) "scs_calloc" (argument_list) "(1, sizeof(Priv))" (() "(" (number_literal) "1" (,) "," (sizeof_expression) "sizeof(Priv)" (sizeof) "sizeof" (parenthesized_expression) "(Priv)" (() "(" (identifier) "Priv" ()) ")" ()) ")" (;) ";" (declaration) "scs_int n_plus_m = d->n + d->m;" (type_identifier) "scs_int" (init_declarator) "n_plus_m = d->n + d->m" (identifier) "n_plus_m" (=) "=" (binary_expression) "d->n + d->m" (field_expression) "d->n" (identifier) "d" (->) "->" (field_identifier) "n" (+) "+" (field_expression) "d->m" (identifier) "d" (->) "->" (field_identifier) "m" (;) ";" (expression_statement) "p->P = scs_malloc(sizeof(scs_int) * n_plus_m);" (assignment_expression) "p->P = scs_malloc(sizeof(scs_int) * n_plus_m)" (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" (=) "=" (call_expression) "scs_malloc(sizeof(scs_int) * n_plus_m)" (identifier) "scs_malloc" (argument_list) "(sizeof(scs_int) * n_plus_m)" (() "(" (binary_expression) "sizeof(scs_int) * n_plus_m" (sizeof_expression) "sizeof(scs_int)" (sizeof) "sizeof" (parenthesized_expression) "(scs_int)" (() "(" (identifier) "scs_int" ()) ")" (*) "*" (identifier) "n_plus_m" ()) ")" (;) ";" (expression_statement) "p->L = scs_malloc(sizeof(cs));" (assignment_expression) "p->L = scs_malloc(sizeof(cs))" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (=) "=" (call_expression) "scs_malloc(sizeof(cs))" (identifier) "scs_malloc" (argument_list) "(sizeof(cs))" (() "(" (sizeof_expression) "sizeof(cs)" (sizeof) "sizeof" (parenthesized_expression) "(cs)" (() "(" (identifier) "cs" ()) ")" ()) ")" (;) ";" (expression_statement) "p->bp = scs_malloc(n_plus_m * sizeof(scs_float));" (assignment_expression) "p->bp = scs_malloc(n_plus_m * sizeof(scs_float))" (field_expression) "p->bp" (identifier) "p" (->) "->" (field_identifier) "bp" (=) "=" (call_expression) "scs_malloc(n_plus_m * sizeof(scs_float))" (identifier) "scs_malloc" (argument_list) "(n_plus_m * sizeof(scs_float))" (() "(" (binary_expression) "n_plus_m * sizeof(scs_float)" (identifier) "n_plus_m" (*) "*" (sizeof_expression) "sizeof(scs_float)" (sizeof) "sizeof" (parenthesized_expression) "(scs_float)" (() "(" (identifier) "scs_float" ()) ")" ()) ")" (;) ";" (expression_statement) "p->L->m = n_plus_m;" (assignment_expression) "p->L->m = n_plus_m" (field_expression) "p->L->m" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (->) "->" (field_identifier) "m" (=) "=" (identifier) "n_plus_m" (;) ";" (expression_statement) "p->L->n = n_plus_m;" (assignment_expression) "p->L->n = n_plus_m" (field_expression) "p->L->n" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (->) "->" (field_identifier) "n" (=) "=" (identifier) "n_plus_m" (;) ";" (expression_statement) "p->L->nz = -1;" (assignment_expression) "p->L->nz = -1" (field_expression) "p->L->nz" (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (->) "->" (field_identifier) "nz" (=) "=" (number_literal) "-1" (;) ";" (if_statement) "if (factorize(d, p) < 0) {\n freePriv(p);\n return NULL;\n }" (if) "if" (parenthesized_expression) "(factorize(d, p) < 0)" (() "(" (binary_expression) "factorize(d, p) < 0" (call_expression) "factorize(d, p)" (identifier) "factorize" (argument_list) "(d, p)" (() "(" (identifier) "d" (,) "," (identifier) "p" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n freePriv(p);\n return NULL;\n }" ({) "{" (expression_statement) "freePriv(p);" (call_expression) "freePriv(p)" (identifier) "freePriv" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "totalSolveTime = 0.0;" (assignment_expression) "totalSolveTime = 0.0" (identifier) "totalSolveTime" (=) "=" (number_literal) "0.0" (;) ";" (return_statement) "return p;" (return) "return" (identifier) "p" (;) ";" (}) "}" (function_definition) "scs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) {\n /* returns solution to linear system */\n /* Ax = b with solution stored in b */\n tic(&linsysTimer);\n LDLSolve(b, b, p->L, p->D, p->P, p->bp);\n totalSolveTime += tocq(&linsysTimer);\n#ifdef EXTRAVERBOSE\n scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3);\n#endif\n return 0;\n}" (type_identifier) "scs_int" (function_declarator) "solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter)" (identifier) "solveLinSys" (parameter_list) "(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter)" (() "(" (parameter_declaration) "Data * d" (type_identifier) "Data" (pointer_declarator) "* d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "Priv * p" (type_identifier) "Priv" (pointer_declarator) "* p" (*) "*" (identifier) "p" (,) "," (parameter_declaration) "scs_float * b" (type_identifier) "scs_float" (pointer_declarator) "* b" (*) "*" (identifier) "b" (,) "," (parameter_declaration) "const scs_float * s" (type_qualifier) "const" (const) "const" (type_identifier) "scs_float" (pointer_declarator) "* s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "scs_int iter" (type_identifier) "scs_int" (identifier) "iter" ()) ")" (compound_statement) "{\n /* returns solution to linear system */\n /* Ax = b with solution stored in b */\n tic(&linsysTimer);\n LDLSolve(b, b, p->L, p->D, p->P, p->bp);\n totalSolveTime += tocq(&linsysTimer);\n#ifdef EXTRAVERBOSE\n scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3);\n#endif\n return 0;\n}" ({) "{" (comment) "/* returns solution to linear system */" (comment) "/* Ax = b with solution stored in b */" (expression_statement) "tic(&linsysTimer);" (call_expression) "tic(&linsysTimer)" (identifier) "tic" (argument_list) "(&linsysTimer)" (() "(" (pointer_expression) "&linsysTimer" (&) "&" (identifier) "linsysTimer" ()) ")" (;) ";" (expression_statement) "LDLSolve(b, b, p->L, p->D, p->P, p->bp);" (call_expression) "LDLSolve(b, b, p->L, p->D, p->P, p->bp)" (identifier) "LDLSolve" (argument_list) "(b, b, p->L, p->D, p->P, p->bp)" (() "(" (identifier) "b" (,) "," (identifier) "b" (,) "," (field_expression) "p->L" (identifier) "p" (->) "->" (field_identifier) "L" (,) "," (field_expression) "p->D" (identifier) "p" (->) "->" (field_identifier) "D" (,) "," (field_expression) "p->P" (identifier) "p" (->) "->" (field_identifier) "P" (,) "," (field_expression) "p->bp" (identifier) "p" (->) "->" (field_identifier) "bp" ()) ")" (;) ";" (expression_statement) "totalSolveTime += tocq(&linsysTimer);" (assignment_expression) "totalSolveTime += tocq(&linsysTimer)" (identifier) "totalSolveTime" (+=) "+=" (call_expression) "tocq(&linsysTimer)" (identifier) "tocq" (argument_list) "(&linsysTimer)" (() "(" (pointer_expression) "&linsysTimer" (&) "&" (identifier) "linsysTimer" ()) ")" (;) ";" (preproc_ifdef) "#ifdef EXTRAVERBOSE\n scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3);\n#endif" (#ifdef) "#ifdef" (identifier) "EXTRAVERBOSE" (expression_statement) "scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3);" (call_expression) "scs_printf("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3)" (identifier) "scs_printf" (argument_list) "("linsys solve time: %1.2es\n", tocq(&linsysTimer) / 1e3)" (() "(" (string_literal) ""linsys solve time: %1.2es\n"" (") """ (string_content) "linsys solve time: %1.2es" (escape_sequence) "\n" (") """ (,) "," (binary_expression) "tocq(&linsysTimer) / 1e3" (call_expression) "tocq(&linsysTimer)" (identifier) "tocq" (argument_list) "(&linsysTimer)" (() "(" (pointer_expression) "&linsysTimer" (&) "&" (identifier) "linsysTimer" ()) ")" (/) "/" (number_literal) "1e3" ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
2,902
0
{"language": "c", "success": true, "metadata": {"lines": 239, "avg_line_length": 26.03, "nodes": 1839, "errors": 0, "source_hash": "2c41d8657ec2eab676e434d6ec3b8117aaf334344dceaa5d3a2ee036aab3a47d", "categorized_nodes": 1374}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"private.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": "\"private.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "declaration", "text": "static timer linsysTimer;", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 25}}, {"id": 4, "type": "type_identifier", "text": "timer", "parent": 3, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 12}}, {"id": 5, "type": "identifier", "text": "linsysTimer", "parent": 3, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 24}}, {"id": 6, "type": "declaration", "text": "static scs_float totalSolveTime;", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 32}}, {"id": 7, "type": "type_identifier", "text": "scs_float", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 16}}, {"id": 8, "type": "identifier", "text": "totalSolveTime", "parent": 6, "children": [], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 31}}, {"id": 9, "type": "function_definition", "text": "char * getLinSysMethod(Data * d, Priv * p) {\n\tchar * tmp = scs_malloc(sizeof(char) * 128);\n\tsprintf(tmp, \"sparse-direct, nnz in A = %li\", (long) d->A->p[d->n]);\n\treturn tmp;\n}", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "char", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 11, "type": "pointer_declarator", "text": "* getLinSysMethod(Data * d, Priv * p)", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 42}}, {"id": 12, "type": "*", "text": "*", "parent": 11, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 6}}, {"id": 13, "type": "function_declarator", "text": "getLinSysMethod(Data * d, Priv * p)", "parent": 11, "children": [14, 15], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 42}}, {"id": 14, "type": "identifier", "text": "getLinSysMethod", "parent": 13, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 22}}, {"id": 15, "type": "parameter_list", "text": "(Data * d, Priv * p)", "parent": 13, "children": [16, 21], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 42}}, {"id": 16, "type": "parameter_declaration", "text": "Data * d", "parent": 15, "children": [17, 18], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 31}}, {"id": 17, "type": "type_identifier", "text": "Data", "parent": 16, "children": [], "start_point": {"row": 5, "column": 23}, "end_point": {"row": 5, "column": 27}}, {"id": 18, "type": "pointer_declarator", "text": "* d", "parent": 16, "children": [19, 20], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 31}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 29}}, {"id": 20, "type": "identifier", "text": "d", "parent": 18, "children": [], "start_point": {"row": 5, "column": 30}, "end_point": {"row": 5, "column": 31}}, {"id": 21, "type": "parameter_declaration", "text": "Priv * p", "parent": 15, "children": [22, 23], "start_point": {"row": 5, "column": 33}, "end_point": {"row": 5, "column": 41}}, {"id": 22, "type": "type_identifier", "text": "Priv", "parent": 21, "children": [], "start_point": {"row": 5, "column": 33}, "end_point": {"row": 5, "column": 37}}, {"id": 23, "type": "pointer_declarator", "text": "* p", "parent": 21, "children": [24, 25], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 41}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 39}}, {"id": 25, "type": "identifier", "text": "p", "parent": 23, "children": [], "start_point": {"row": 5, "column": 40}, "end_point": {"row": 5, "column": 41}}, {"id": 26, "type": "declaration", "text": "char * tmp = scs_malloc(sizeof(char) * 128);", "parent": 9, "children": [27, 28], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 45}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 26, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 5}}, {"id": 28, "type": "init_declarator", "text": "* tmp = scs_malloc(sizeof(char) * 128)", "parent": 26, "children": [29, 32, 33], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 44}}, {"id": 29, "type": "pointer_declarator", "text": "* tmp", "parent": 28, "children": [30, 31], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 11}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 7}}, {"id": 31, "type": "identifier", "text": "tmp", "parent": 29, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 11}}, {"id": 32, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 33, "type": "call_expression", "text": "scs_malloc(sizeof(char) * 128)", "parent": 28, "children": [34, 35], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 44}}, {"id": 34, "type": "identifier", "text": "scs_malloc", "parent": 33, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 24}}, {"id": 35, "type": "argument_list", "text": "(sizeof(char) * 128)", "parent": 33, "children": [36], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 44}}, {"id": 36, "type": "binary_expression", "text": "sizeof(char) * 128", "parent": 35, "children": [37, 40, 41], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 43}}, {"id": 37, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 36, "children": [38], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 37}}, {"id": 38, "type": "type_descriptor", "text": "char", "parent": 37, "children": [39], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 36}}, {"id": 39, "type": "primitive_type", "text": "char", "parent": 38, "children": [], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 36}}, {"id": 40, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 39}}, {"id": 41, "type": "number_literal", "text": "128", "parent": 36, "children": [], "start_point": {"row": 6, "column": 40}, "end_point": {"row": 6, "column": 43}}, {"id": 42, "type": "call_expression", "text": "sprintf(tmp, \"sparse-direct, nnz in A = %li\", (long) d->A->p[d->n])", "parent": 9, "children": [43, 44], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 68}}, {"id": 43, "type": "identifier", "text": "sprintf", "parent": 42, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 8}}, {"id": 44, "type": "argument_list", "text": "(tmp, \"sparse-direct, nnz in A = %li\", (long) d->A->p[d->n])", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 68}}, {"id": 45, "type": "identifier", "text": "tmp", "parent": 44, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 12}}, {"id": 46, "type": "string_literal", "text": "\"sparse-direct, nnz in A = %li\"", "parent": 44, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 45}}, {"id": 47, "type": "cast_expression", "text": "(long) d->A->p[d->n]", "parent": 44, "children": [48, 51], "start_point": {"row": 7, "column": 47}, "end_point": {"row": 7, "column": 67}}, {"id": 48, "type": "type_descriptor", "text": "long", "parent": 47, "children": [49], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 52}}, {"id": 49, "type": "sized_type_specifier", "text": "long", "parent": 48, "children": [50], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 52}}, {"id": 50, "type": "long", "text": "long", "parent": 49, "children": [], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 52}}, {"id": 51, "type": "subscript_expression", "text": "d->A->p[d->n]", "parent": 47, "children": [52, 57], "start_point": {"row": 7, "column": 54}, "end_point": {"row": 7, "column": 67}}, {"id": 52, "type": "field_expression", "text": "d->A->p", "parent": 51, "children": [53, 56], "start_point": {"row": 7, "column": 54}, "end_point": {"row": 7, "column": 61}}, {"id": 53, "type": "field_expression", "text": "d->A", "parent": 52, "children": [54, 55], "start_point": {"row": 7, "column": 54}, "end_point": {"row": 7, "column": 58}}, {"id": 54, "type": "identifier", "text": "d", "parent": 53, "children": [], "start_point": {"row": 7, "column": 54}, "end_point": {"row": 7, "column": 55}}, {"id": 55, "type": "field_identifier", "text": "A", "parent": 53, "children": [], "start_point": {"row": 7, "column": 57}, "end_point": {"row": 7, "column": 58}}, {"id": 56, "type": "field_identifier", "text": "p", "parent": 52, "children": [], "start_point": {"row": 7, "column": 60}, "end_point": {"row": 7, "column": 61}}, {"id": 57, "type": "field_expression", "text": "d->n", "parent": 51, "children": [58, 59], "start_point": {"row": 7, "column": 62}, "end_point": {"row": 7, "column": 66}}, {"id": 58, "type": "identifier", "text": "d", "parent": 57, "children": [], "start_point": {"row": 7, "column": 62}, "end_point": {"row": 7, "column": 63}}, {"id": 59, "type": "field_identifier", "text": "n", "parent": 57, "children": [], "start_point": {"row": 7, "column": 65}, "end_point": {"row": 7, "column": 66}}, {"id": 60, "type": "return_statement", "text": "return tmp;", "parent": 9, "children": [61], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 12}}, {"id": 61, "type": "identifier", "text": "tmp", "parent": 60, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 62, "type": "function_definition", "text": "char * getLinSysSummary(Priv * p, Info * info) {\n\tchar * str = scs_malloc(sizeof(char) * 128);\n\tscs_int n = p->L->n;\n\tsprintf(str, \"\\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\\n\", (long ) (p->L->p[n] + n),\n\t\t\ttotalSolveTime / (info->iter + 1) / 1e3);\n\ttotalSolveTime = 0;\n\treturn str;\n}", "parent": null, "children": [63, 64], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 63, "type": "primitive_type", "text": "char", "parent": 62, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 64, "type": "pointer_declarator", "text": "* getLinSysSummary(Priv * p, Info * info)", "parent": 62, "children": [65, 66], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 46}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 6}}, {"id": 66, "type": "function_declarator", "text": "getLinSysSummary(Priv * p, Info * info)", "parent": 64, "children": [67, 68], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 46}}, {"id": 67, "type": "identifier", "text": "getLinSysSummary", "parent": 66, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 23}}, {"id": 68, "type": "parameter_list", "text": "(Priv * p, Info * info)", "parent": 66, "children": [69, 74], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 46}}, {"id": 69, "type": "parameter_declaration", "text": "Priv * p", "parent": 68, "children": [70, 71], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 32}}, {"id": 70, "type": "type_identifier", "text": "Priv", "parent": 69, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 28}}, {"id": 71, "type": "pointer_declarator", "text": "* p", "parent": 69, "children": [72, 73], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 32}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 30}}, {"id": 73, "type": "identifier", "text": "p", "parent": 71, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 74, "type": "parameter_declaration", "text": "Info * info", "parent": 68, "children": [75, 76], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 45}}, {"id": 75, "type": "type_identifier", "text": "Info", "parent": 74, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 38}}, {"id": 76, "type": "pointer_declarator", "text": "* info", "parent": 74, "children": [77, 78], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 45}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 40}}, {"id": 78, "type": "identifier", "text": "info", "parent": 76, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 45}}, {"id": 79, "type": "declaration", "text": "char * str = scs_malloc(sizeof(char) * 128);", "parent": 62, "children": [80, 81], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 45}}, {"id": 80, "type": "primitive_type", "text": "char", "parent": 79, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 5}}, {"id": 81, "type": "init_declarator", "text": "* str = scs_malloc(sizeof(char) * 128)", "parent": 79, "children": [82, 85, 86], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 44}}, {"id": 82, "type": "pointer_declarator", "text": "* str", "parent": 81, "children": [83, 84], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 11}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 7}}, {"id": 84, "type": "identifier", "text": "str", "parent": 82, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 85, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 86, "type": "call_expression", "text": "scs_malloc(sizeof(char) * 128)", "parent": 81, "children": [87, 88], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 44}}, {"id": 87, "type": "identifier", "text": "scs_malloc", "parent": 86, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 24}}, {"id": 88, "type": "argument_list", "text": "(sizeof(char) * 128)", "parent": 86, "children": [89], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 44}}, {"id": 89, "type": "binary_expression", "text": "sizeof(char) * 128", "parent": 88, "children": [90, 93, 94], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 43}}, {"id": 90, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 89, "children": [91], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 37}}, {"id": 91, "type": "type_descriptor", "text": "char", "parent": 90, "children": [92], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 36}}, {"id": 92, "type": "primitive_type", "text": "char", "parent": 91, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 36}}, {"id": 93, "type": "*", "text": "*", "parent": 89, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 39}}, {"id": 94, "type": "number_literal", "text": "128", "parent": 89, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 43}}, {"id": 95, "type": "declaration", "text": "scs_int n = p->L->n;", "parent": 62, "children": [96, 97], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 21}}, {"id": 96, "type": "type_identifier", "text": "scs_int", "parent": 95, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 8}}, {"id": 97, "type": "init_declarator", "text": "n = p->L->n", "parent": 95, "children": [98, 99, 100], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 20}}, {"id": 98, "type": "identifier", "text": "n", "parent": 97, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 100, "type": "field_expression", "text": "p->L->n", "parent": 97, "children": [101, 104], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 20}}, {"id": 101, "type": "field_expression", "text": "p->L", "parent": 100, "children": [102, 103], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 17}}, {"id": 102, "type": "identifier", "text": "p", "parent": 101, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 103, "type": "field_identifier", "text": "L", "parent": 101, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 104, "type": "field_identifier", "text": "n", "parent": 100, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 20}}, {"id": 105, "type": "call_expression", "text": "sprintf(str, \"\\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\\n\", (long ) (p->L->p[n] + n),\n\t\t\ttotalSolveTime / (info->iter + 1) / 1e3)", "parent": 62, "children": [106, 107], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 15, "column": 43}}, {"id": 106, "type": "identifier", "text": "sprintf", "parent": 105, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 107, "type": "argument_list", "text": "(str, \"\\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\\n\", (long ) (p->L->p[n] + n),\n\t\t\ttotalSolveTime / (info->iter + 1) / 1e3)", "parent": 105, "children": [108, 109, 112, 127], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 15, "column": 43}}, {"id": 108, "type": "identifier", "text": "str", "parent": 107, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 12}}, {"id": 109, "type": "string_literal", "text": "\"\\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\\n\"", "parent": 107, "children": [110, 111], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 73}}, {"id": 110, "type": "escape_sequence", "text": "\\t", "parent": 109, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 17}}, {"id": 111, "type": "escape_sequence", "text": "\\n", "parent": 109, "children": [], "start_point": {"row": 14, "column": 70}, "end_point": {"row": 14, "column": 72}}, {"id": 112, "type": "cast_expression", "text": "(long ) (p->L->p[n] + n)", "parent": 107, "children": [113, 116], "start_point": {"row": 14, "column": 75}, "end_point": {"row": 14, "column": 99}}, {"id": 113, "type": "type_descriptor", "text": "long", "parent": 112, "children": [114], "start_point": {"row": 14, "column": 76}, "end_point": {"row": 14, "column": 80}}, {"id": 114, "type": "sized_type_specifier", "text": "long", "parent": 113, "children": [115], "start_point": {"row": 14, "column": 76}, "end_point": {"row": 14, "column": 80}}, {"id": 115, "type": "long", "text": "long", "parent": 114, "children": [], "start_point": {"row": 14, "column": 76}, "end_point": {"row": 14, "column": 80}}, {"id": 116, "type": "parenthesized_expression", "text": "(p->L->p[n] + n)", "parent": 112, "children": [117], "start_point": {"row": 14, "column": 83}, "end_point": {"row": 14, "column": 99}}, {"id": 117, "type": "binary_expression", "text": "p->L->p[n] + n", "parent": 116, "children": [118, 125, 126], "start_point": {"row": 14, "column": 84}, "end_point": {"row": 14, "column": 98}}, {"id": 118, "type": "subscript_expression", "text": "p->L->p[n]", "parent": 117, "children": [119, 124], "start_point": {"row": 14, "column": 84}, "end_point": {"row": 14, "column": 94}}, {"id": 119, "type": "field_expression", "text": "p->L->p", "parent": 118, "children": [120, 123], "start_point": {"row": 14, "column": 84}, "end_point": {"row": 14, "column": 91}}, {"id": 120, "type": "field_expression", "text": "p->L", "parent": 119, "children": [121, 122], "start_point": {"row": 14, "column": 84}, "end_point": {"row": 14, "column": 88}}, {"id": 121, "type": "identifier", "text": "p", "parent": 120, "children": [], "start_point": {"row": 14, "column": 84}, "end_point": {"row": 14, "column": 85}}, {"id": 122, "type": "field_identifier", "text": "L", "parent": 120, "children": [], "start_point": {"row": 14, "column": 87}, "end_point": {"row": 14, "column": 88}}, {"id": 123, "type": "field_identifier", "text": "p", "parent": 119, "children": [], "start_point": {"row": 14, "column": 90}, "end_point": {"row": 14, "column": 91}}, {"id": 124, "type": "identifier", "text": "n", "parent": 118, "children": [], "start_point": {"row": 14, "column": 92}, "end_point": {"row": 14, "column": 93}}, {"id": 125, "type": "+", "text": "+", "parent": 117, "children": [], "start_point": {"row": 14, "column": 95}, "end_point": {"row": 14, "column": 96}}, {"id": 126, "type": "identifier", "text": "n", "parent": 117, "children": [], "start_point": {"row": 14, "column": 97}, "end_point": {"row": 14, "column": 98}}, {"id": 127, "type": "binary_expression", "text": "totalSolveTime / (info->iter + 1) / 1e3", "parent": 107, "children": [128, 138, 139], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 42}}, {"id": 128, "type": "binary_expression", "text": "totalSolveTime / (info->iter + 1)", "parent": 127, "children": [129, 130, 131], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 36}}, {"id": 129, "type": "identifier", "text": "totalSolveTime", "parent": 128, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 17}}, {"id": 130, "type": "/", "text": "/", "parent": 128, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 19}}, {"id": 131, "type": "parenthesized_expression", "text": "(info->iter + 1)", "parent": 128, "children": [132], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 36}}, {"id": 132, "type": "binary_expression", "text": "info->iter + 1", "parent": 131, "children": [133, 136, 137], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 35}}, {"id": 133, "type": "field_expression", "text": "info->iter", "parent": 132, "children": [134, 135], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 31}}, {"id": 134, "type": "identifier", "text": "info", "parent": 133, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 135, "type": "field_identifier", "text": "iter", "parent": 133, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 31}}, {"id": 136, "type": "+", "text": "+", "parent": 132, "children": [], "start_point": {"row": 15, "column": 32}, "end_point": {"row": 15, "column": 33}}, {"id": 137, "type": "number_literal", "text": "1", "parent": 132, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 35}}, {"id": 138, "type": "/", "text": "/", "parent": 127, "children": [], "start_point": {"row": 15, "column": 37}, "end_point": {"row": 15, "column": 38}}, {"id": 139, "type": "number_literal", "text": "1e3", "parent": 127, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 42}}, {"id": 140, "type": "assignment_expression", "text": "totalSolveTime = 0", "parent": 62, "children": [141, 142, 143], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 19}}, {"id": 141, "type": "identifier", "text": "totalSolveTime", "parent": 140, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 15}}, {"id": 142, "type": "=", "text": "=", "parent": 140, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 143, "type": "number_literal", "text": "0", "parent": 140, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 19}}, {"id": 144, "type": "return_statement", "text": "return str;", "parent": 62, "children": [145], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 12}}, {"id": 145, "type": "identifier", "text": "str", "parent": 144, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 146, "type": "function_definition", "text": "void freePriv(Priv * p) {\n\tif (p) {\n\t\tif (p->L)\n\t\t\tcs_spfree(p->L);\n\t\tif (p->P)\n\t\t\tscs_free(p->P);\n\t\tif (p->D)\n\t\t\tscs_free(p->D);\n\t\tif (p->bp)\n\t\t\tscs_free(p->bp);\n\t\tscs_free(p);\n\t}\n}", "parent": null, "children": [147, 148], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 147, "type": "primitive_type", "text": "void", "parent": 146, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 148, "type": "function_declarator", "text": "freePriv(Priv * p)", "parent": 146, "children": [149, 150], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 23}}, {"id": 149, "type": "identifier", "text": "freePriv", "parent": 148, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 13}}, {"id": 150, "type": "parameter_list", "text": "(Priv * p)", "parent": 148, "children": [151], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 23}}, {"id": 151, "type": "parameter_declaration", "text": "Priv * p", "parent": 150, "children": [152, 153], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 22}}, {"id": 152, "type": "type_identifier", "text": "Priv", "parent": 151, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 18}}, {"id": 153, "type": "pointer_declarator", "text": "* p", "parent": 151, "children": [154, 155], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 22}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 155, "type": "identifier", "text": "p", "parent": 153, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 22}}, {"id": 156, "type": "if_statement", "text": "if (p) {\n\t\tif (p->L)\n\t\t\tcs_spfree(p->L);\n\t\tif (p->P)\n\t\t\tscs_free(p->P);\n\t\tif (p->D)\n\t\t\tscs_free(p->D);\n\t\tif (p->bp)\n\t\t\tscs_free(p->bp);\n\t\tscs_free(p);\n\t}", "parent": 146, "children": [157], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 31, "column": 2}}, {"id": 157, "type": "parenthesized_expression", "text": "(p)", "parent": 156, "children": [158], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 158, "type": "identifier", "text": "p", "parent": 157, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 6}}, {"id": 159, "type": "if_statement", "text": "if (p->L)\n\t\t\tcs_spfree(p->L);", "parent": 156, "children": [160], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 23, "column": 19}}, {"id": 160, "type": "parenthesized_expression", "text": "(p->L)", "parent": 159, "children": [161], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 11}}, {"id": 161, "type": "field_expression", "text": "p->L", "parent": 160, "children": [162, 163], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 10}}, {"id": 162, "type": "identifier", "text": "p", "parent": 161, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 7}}, {"id": 163, "type": "field_identifier", "text": "L", "parent": 161, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 10}}, {"id": 164, "type": "call_expression", "text": "cs_spfree(p->L)", "parent": 159, "children": [165, 166], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 18}}, {"id": 165, "type": "identifier", "text": "cs_spfree", "parent": 164, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 12}}, {"id": 166, "type": "argument_list", "text": "(p->L)", "parent": 164, "children": [167], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 18}}, {"id": 167, "type": "field_expression", "text": "p->L", "parent": 166, "children": [168, 169], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 17}}, {"id": 168, "type": "identifier", "text": "p", "parent": 167, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 169, "type": "field_identifier", "text": "L", "parent": 167, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 17}}, {"id": 170, "type": "if_statement", "text": "if (p->P)\n\t\t\tscs_free(p->P);", "parent": 156, "children": [171], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 25, "column": 18}}, {"id": 171, "type": "parenthesized_expression", "text": "(p->P)", "parent": 170, "children": [172], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 11}}, {"id": 172, "type": "field_expression", "text": "p->P", "parent": 171, "children": [173, 174], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 173, "type": "identifier", "text": "p", "parent": 172, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 174, "type": "field_identifier", "text": "P", "parent": 172, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 175, "type": "call_expression", "text": "scs_free(p->P)", "parent": 170, "children": [176, 177], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 17}}, {"id": 176, "type": "identifier", "text": "scs_free", "parent": 175, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 11}}, {"id": 177, "type": "argument_list", "text": "(p->P)", "parent": 175, "children": [178], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 178, "type": "field_expression", "text": "p->P", "parent": 177, "children": [179, 180], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 179, "type": "identifier", "text": "p", "parent": 178, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 180, "type": "field_identifier", "text": "P", "parent": 178, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 16}}, {"id": 181, "type": "if_statement", "text": "if (p->D)\n\t\t\tscs_free(p->D);", "parent": 156, "children": [182], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 27, "column": 18}}, {"id": 182, "type": "parenthesized_expression", "text": "(p->D)", "parent": 181, "children": [183], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 11}}, {"id": 183, "type": "field_expression", "text": "p->D", "parent": 182, "children": [184, 185], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 10}}, {"id": 184, "type": "identifier", "text": "p", "parent": 183, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 7}}, {"id": 185, "type": "field_identifier", "text": "D", "parent": 183, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 186, "type": "call_expression", "text": "scs_free(p->D)", "parent": 181, "children": [187, 188], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 17}}, {"id": 187, "type": "identifier", "text": "scs_free", "parent": 186, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 11}}, {"id": 188, "type": "argument_list", "text": "(p->D)", "parent": 186, "children": [189], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 17}}, {"id": 189, "type": "field_expression", "text": "p->D", "parent": 188, "children": [190, 191], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 16}}, {"id": 190, "type": "identifier", "text": "p", "parent": 189, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 191, "type": "field_identifier", "text": "D", "parent": 189, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 16}}, {"id": 192, "type": "if_statement", "text": "if (p->bp)\n\t\t\tscs_free(p->bp);", "parent": 156, "children": [193], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 29, "column": 19}}, {"id": 193, "type": "parenthesized_expression", "text": "(p->bp)", "parent": 192, "children": [194], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 12}}, {"id": 194, "type": "field_expression", "text": "p->bp", "parent": 193, "children": [195, 196], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 11}}, {"id": 195, "type": "identifier", "text": "p", "parent": 194, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 196, "type": "field_identifier", "text": "bp", "parent": 194, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 11}}, {"id": 197, "type": "call_expression", "text": "scs_free(p->bp)", "parent": 192, "children": [198, 199], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 18}}, {"id": 198, "type": "identifier", "text": "scs_free", "parent": 197, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 11}}, {"id": 199, "type": "argument_list", "text": "(p->bp)", "parent": 197, "children": [200], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 18}}, {"id": 200, "type": "field_expression", "text": "p->bp", "parent": 199, "children": [201, 202], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 17}}, {"id": 201, "type": "identifier", "text": "p", "parent": 200, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 202, "type": "field_identifier", "text": "bp", "parent": 200, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 17}}, {"id": 203, "type": "call_expression", "text": "scs_free(p)", "parent": 156, "children": [204, 205], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 13}}, {"id": 204, "type": "identifier", "text": "scs_free", "parent": 203, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 10}}, {"id": 205, "type": "argument_list", "text": "(p)", "parent": 203, "children": [206], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 13}}, {"id": 206, "type": "identifier", "text": "p", "parent": 205, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 12}}, {"id": 207, "type": "function_definition", "text": "cs * formKKT(Data * d) {\n\t/* ONLY UPPER TRIANGULAR PART IS STUFFED\n\t * forms column compressed KKT matrix\n\t * assumes column compressed form A matrix\n\t *\n\t * forms upper triangular part of [I A'; A -I]\n\t */\n\tscs_int j, k, kk;\n\tcs * K_cs;\n\tAMatrix * A = d->A;\n\t/* I at top left */\n\tconst scs_int Anz = A->p[d->n];\n\tconst scs_int Knzmax = d->n + d->m + Anz;\n\tcs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);\n\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"forming KKT\\n\");\n#endif\n\n\tif (!K) {\n\t\treturn NULL;\n\t}\n\tkk = 0;\n\tfor (k = 0; k < d->n; k++) {\n\t\tK->i[kk] = k;\n\t\tK->p[kk] = k;\n\t\tK->x[kk] = d->rho_x;\n\t\tkk++;\n\t}\n\t/* A^T at top right : CCS: */\n\tfor (j = 0; j < d->n; j++) {\n\t\tfor (k = A->p[j]; k < A->p[j + 1]; k++) {\n\t\t\tK->p[kk] = A->i[k] + d->n;\n\t\t\tK->i[kk] = j;\n\t\t\tK->x[kk] = A->x[k];\n\t\t\tkk++;\n\t\t}\n\t}\n\t/* -I at bottom right */\n\tfor (k = 0; k < d->m; k++) {\n\t\tK->i[kk] = k + d->n;\n\t\tK->p[kk] = k + d->n;\n\t\tK->x[kk] = -1;\n\t\tkk++;\n\t}\n\t/* assert kk == Knzmax */\n\tK->nz = Knzmax;\n\tK_cs = cs_compress(K);\n\tcs_spfree(K);\n\treturn (K_cs);\n}", "parent": null, "children": [208, 209], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 208, "type": "type_identifier", "text": "cs", "parent": 207, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 2}}, {"id": 209, "type": "pointer_declarator", "text": "* formKKT(Data * d)", "parent": 207, "children": [210, 211], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 22}}, {"id": 210, "type": "*", "text": "*", "parent": 209, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 4}}, {"id": 211, "type": "function_declarator", "text": "formKKT(Data * d)", "parent": 209, "children": [212, 213], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 22}}, {"id": 212, "type": "identifier", "text": "formKKT", "parent": 211, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 12}}, {"id": 213, "type": "parameter_list", "text": "(Data * d)", "parent": 211, "children": [214], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 22}}, {"id": 214, "type": "parameter_declaration", "text": "Data * d", "parent": 213, "children": [215, 216], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 21}}, {"id": 215, "type": "type_identifier", "text": "Data", "parent": 214, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 17}}, {"id": 216, "type": "pointer_declarator", "text": "* d", "parent": 214, "children": [217, 218], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 21}}, {"id": 217, "type": "*", "text": "*", "parent": 216, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 19}}, {"id": 218, "type": "identifier", "text": "d", "parent": 216, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 219, "type": "declaration", "text": "scs_int j, k, kk;", "parent": 207, "children": [220, 221, 222, 223], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 18}}, {"id": 220, "type": "type_identifier", "text": "scs_int", "parent": 219, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 8}}, {"id": 221, "type": "identifier", "text": "j", "parent": 219, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 10}}, {"id": 222, "type": "identifier", "text": "k", "parent": 219, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 223, "type": "identifier", "text": "kk", "parent": 219, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 17}}, {"id": 224, "type": "declaration", "text": "cs * K_cs;", "parent": 207, "children": [225, 226], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 11}}, {"id": 225, "type": "type_identifier", "text": "cs", "parent": 224, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 3}}, {"id": 226, "type": "pointer_declarator", "text": "* K_cs", "parent": 224, "children": [227, 228], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 5}}, {"id": 228, "type": "identifier", "text": "K_cs", "parent": 226, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 10}}, {"id": 229, "type": "declaration", "text": "AMatrix * A = d->A;", "parent": 207, "children": [230, 231], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 20}}, {"id": 230, "type": "type_identifier", "text": "AMatrix", "parent": 229, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 231, "type": "init_declarator", "text": "* A = d->A", "parent": 229, "children": [232, 235, 236], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 19}}, {"id": 232, "type": "pointer_declarator", "text": "* A", "parent": 231, "children": [233, 234], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 233, "type": "*", "text": "*", "parent": 232, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 234, "type": "identifier", "text": "A", "parent": 232, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 12}}, {"id": 235, "type": "=", "text": "=", "parent": 231, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 14}}, {"id": 236, "type": "field_expression", "text": "d->A", "parent": 231, "children": [237, 238], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 19}}, {"id": 237, "type": "identifier", "text": "d", "parent": 236, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 238, "type": "field_identifier", "text": "A", "parent": 236, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 19}}, {"id": 239, "type": "declaration", "text": "const scs_int Anz = A->p[d->n];", "parent": 207, "children": [240, 241], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 32}}, {"id": 240, "type": "type_identifier", "text": "scs_int", "parent": 239, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 14}}, {"id": 241, "type": "init_declarator", "text": "Anz = A->p[d->n]", "parent": 239, "children": [242, 243, 244], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 31}}, {"id": 242, "type": "identifier", "text": "Anz", "parent": 241, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 18}}, {"id": 243, "type": "=", "text": "=", "parent": 241, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 244, "type": "subscript_expression", "text": "A->p[d->n]", "parent": 241, "children": [245, 248], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 31}}, {"id": 245, "type": "field_expression", "text": "A->p", "parent": 244, "children": [246, 247], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 25}}, {"id": 246, "type": "identifier", "text": "A", "parent": 245, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 22}}, {"id": 247, "type": "field_identifier", "text": "p", "parent": 245, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 25}}, {"id": 248, "type": "field_expression", "text": "d->n", "parent": 244, "children": [249, 250], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 30}}, {"id": 249, "type": "identifier", "text": "d", "parent": 248, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 27}}, {"id": 250, "type": "field_identifier", "text": "n", "parent": 248, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 30}}, {"id": 251, "type": "declaration", "text": "const scs_int Knzmax = d->n + d->m + Anz;", "parent": 207, "children": [252, 253], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 42}}, {"id": 252, "type": "type_identifier", "text": "scs_int", "parent": 251, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 14}}, {"id": 253, "type": "init_declarator", "text": "Knzmax = d->n + d->m + Anz", "parent": 251, "children": [254, 255, 256], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 41}}, {"id": 254, "type": "identifier", "text": "Knzmax", "parent": 253, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 21}}, {"id": 255, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 23}}, {"id": 256, "type": "binary_expression", "text": "d->n + d->m + Anz", "parent": 253, "children": [257, 265, 266], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 41}}, {"id": 257, "type": "binary_expression", "text": "d->n + d->m", "parent": 256, "children": [258, 261, 262], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 35}}, {"id": 258, "type": "field_expression", "text": "d->n", "parent": 257, "children": [259, 260], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 28}}, {"id": 259, "type": "identifier", "text": "d", "parent": 258, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 25}}, {"id": 260, "type": "field_identifier", "text": "n", "parent": 258, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 28}}, {"id": 261, "type": "+", "text": "+", "parent": 257, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 30}}, {"id": 262, "type": "field_expression", "text": "d->m", "parent": 257, "children": [263, 264], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 35}}, {"id": 263, "type": "identifier", "text": "d", "parent": 262, "children": [], "start_point": {"row": 46, "column": 31}, "end_point": {"row": 46, "column": 32}}, {"id": 264, "type": "field_identifier", "text": "m", "parent": 262, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 35}}, {"id": 265, "type": "+", "text": "+", "parent": 256, "children": [], "start_point": {"row": 46, "column": 36}, "end_point": {"row": 46, "column": 37}}, {"id": 266, "type": "identifier", "text": "Anz", "parent": 256, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 41}}, {"id": 267, "type": "declaration", "text": "cs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);", "parent": 207, "children": [268, 269], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 61}}, {"id": 268, "type": "type_identifier", "text": "cs", "parent": 267, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 3}}, {"id": 269, "type": "init_declarator", "text": "* K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1)", "parent": 267, "children": [270, 273, 274], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 60}}, {"id": 270, "type": "pointer_declarator", "text": "* K", "parent": 269, "children": [271, 272], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 7}}, {"id": 271, "type": "*", "text": "*", "parent": 270, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 272, "type": "identifier", "text": "K", "parent": 270, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 7}}, {"id": 273, "type": "=", "text": "=", "parent": 269, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 274, "type": "call_expression", "text": "cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1)", "parent": 269, "children": [275, 276], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 60}}, {"id": 275, "type": "identifier", "text": "cs_spalloc", "parent": 274, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 20}}, {"id": 276, "type": "argument_list", "text": "(d->m + d->n, d->m + d->n, Knzmax, 1, 1)", "parent": 274, "children": [277, 285, 293, 294, 295], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 60}}, {"id": 277, "type": "binary_expression", "text": "d->m + d->n", "parent": 276, "children": [278, 281, 282], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 32}}, {"id": 278, "type": "field_expression", "text": "d->m", "parent": 277, "children": [279, 280], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 25}}, {"id": 279, "type": "identifier", "text": "d", "parent": 278, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 22}}, {"id": 280, "type": "field_identifier", "text": "m", "parent": 278, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 25}}, {"id": 281, "type": "+", "text": "+", "parent": 277, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 27}}, {"id": 282, "type": "field_expression", "text": "d->n", "parent": 277, "children": [283, 284], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 32}}, {"id": 283, "type": "identifier", "text": "d", "parent": 282, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 29}}, {"id": 284, "type": "field_identifier", "text": "n", "parent": 282, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 32}}, {"id": 285, "type": "binary_expression", "text": "d->m + d->n", "parent": 276, "children": [286, 289, 290], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 45}}, {"id": 286, "type": "field_expression", "text": "d->m", "parent": 285, "children": [287, 288], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 38}}, {"id": 287, "type": "identifier", "text": "d", "parent": 286, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 35}}, {"id": 288, "type": "field_identifier", "text": "m", "parent": 286, "children": [], "start_point": {"row": 47, "column": 37}, "end_point": {"row": 47, "column": 38}}, {"id": 289, "type": "+", "text": "+", "parent": 285, "children": [], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 40}}, {"id": 290, "type": "field_expression", "text": "d->n", "parent": 285, "children": [291, 292], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 45}}, {"id": 291, "type": "identifier", "text": "d", "parent": 290, "children": [], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 42}}, {"id": 292, "type": "field_identifier", "text": "n", "parent": 290, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 45}}, {"id": 293, "type": "identifier", "text": "Knzmax", "parent": 276, "children": [], "start_point": {"row": 47, "column": 47}, "end_point": {"row": 47, "column": 53}}, {"id": 294, "type": "number_literal", "text": "1", "parent": 276, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 56}}, {"id": 295, "type": "number_literal", "text": "1", "parent": 276, "children": [], "start_point": {"row": 47, "column": 58}, "end_point": {"row": 47, "column": 59}}, {"id": 296, "type": "preproc_ifdef", "text": "#ifdef EXTRAVERBOSE\n\tscs_printf(\"forming KKT\\n\");\n#endif", "parent": 207, "children": [297, 298, 304], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 297, "type": "#ifdef", "text": "#ifdef", "parent": 296, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 298, "type": "identifier", "text": "EXTRAVERBOSE", "parent": 296, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 19}}, {"id": 299, "type": "call_expression", "text": "scs_printf(\"forming KKT\\n\")", "parent": 296, "children": [300, 301], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 28}}, {"id": 300, "type": "identifier", "text": "scs_printf", "parent": 299, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 11}}, {"id": 301, "type": "argument_list", "text": "(\"forming KKT\\n\")", "parent": 299, "children": [302], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 28}}, {"id": 302, "type": "string_literal", "text": "\"forming KKT\\n\"", "parent": 301, "children": [303], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 27}}, {"id": 303, "type": "escape_sequence", "text": "\\n", "parent": 302, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 26}}, {"id": 304, "type": "#endif", "text": "#endif", "parent": 296, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 305, "type": "if_statement", "text": "if (!K) {\n\t\treturn NULL;\n\t}", "parent": 207, "children": [306], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 55, "column": 2}}, {"id": 306, "type": "parenthesized_expression", "text": "(!K)", "parent": 305, "children": [307], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 307, "type": "unary_expression", "text": "!K", "parent": 306, "children": [308, 309], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 7}}, {"id": 308, "type": "!", "text": "!", "parent": 307, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 6}}, {"id": 309, "type": "identifier", "text": "K", "parent": 307, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 7}}, {"id": 310, "type": "return_statement", "text": "return NULL;", "parent": 305, "children": [311], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 14}}, {"id": 311, "type": "null", "text": "NULL", "parent": 310, "children": [312], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 13}}, {"id": 312, "type": "NULL", "text": "NULL", "parent": 311, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 13}}, {"id": 313, "type": "assignment_expression", "text": "kk = 0", "parent": 207, "children": [314, 315, 316], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 7}}, {"id": 314, "type": "identifier", "text": "kk", "parent": 313, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 3}}, {"id": 315, "type": "=", "text": "=", "parent": 313, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 316, "type": "number_literal", "text": "0", "parent": 313, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 7}}, {"id": 317, "type": "for_statement", "text": "for (k = 0; k < d->n; k++) {\n\t\tK->i[kk] = k;\n\t\tK->p[kk] = k;\n\t\tK->x[kk] = d->rho_x;\n\t\tkk++;\n\t}", "parent": 207, "children": [318, 322, 328], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 62, "column": 2}}, {"id": 318, "type": "assignment_expression", "text": "k = 0", "parent": 317, "children": [319, 320, 321], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 11}}, {"id": 319, "type": "identifier", "text": "k", "parent": 318, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 7}}, {"id": 320, "type": "=", "text": "=", "parent": 318, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 321, "type": "number_literal", "text": "0", "parent": 318, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 11}}, {"id": 322, "type": "binary_expression", "text": "k < d->n", "parent": 317, "children": [323, 324, 325], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 21}}, {"id": 323, "type": "identifier", "text": "k", "parent": 322, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 324, "type": "<", "text": "<", "parent": 322, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 325, "type": "field_expression", "text": "d->n", "parent": 322, "children": [326, 327], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 21}}, {"id": 326, "type": "identifier", "text": "d", "parent": 325, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 18}}, {"id": 327, "type": "field_identifier", "text": "n", "parent": 325, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 21}}, {"id": 328, "type": "update_expression", "text": "k++", "parent": 317, "children": [329, 330], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 26}}, {"id": 329, "type": "identifier", "text": "k", "parent": 328, "children": [], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 57, "column": 24}}, {"id": 330, "type": "++", "text": "++", "parent": 328, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 26}}, {"id": 331, "type": "assignment_expression", "text": "K->i[kk] = k", "parent": 317, "children": [332, 337, 338], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 14}}, {"id": 332, "type": "subscript_expression", "text": "K->i[kk]", "parent": 331, "children": [333, 336], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 10}}, {"id": 333, "type": "field_expression", "text": "K->i", "parent": 332, "children": [334, 335], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 6}}, {"id": 334, "type": "identifier", "text": "K", "parent": 333, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 3}}, {"id": 335, "type": "field_identifier", "text": "i", "parent": 333, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 6}}, {"id": 336, "type": "identifier", "text": "kk", "parent": 332, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 9}}, {"id": 337, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 12}}, {"id": 338, "type": "identifier", "text": "k", "parent": 331, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 14}}, {"id": 339, "type": "assignment_expression", "text": "K->p[kk] = k", "parent": 317, "children": [340, 345, 346], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 14}}, {"id": 340, "type": "subscript_expression", "text": "K->p[kk]", "parent": 339, "children": [341, 344], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 10}}, {"id": 341, "type": "field_expression", "text": "K->p", "parent": 340, "children": [342, 343], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 6}}, {"id": 342, "type": "identifier", "text": "K", "parent": 341, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 3}}, {"id": 343, "type": "field_identifier", "text": "p", "parent": 341, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 6}}, {"id": 344, "type": "identifier", "text": "kk", "parent": 340, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 9}}, {"id": 345, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 12}}, {"id": 346, "type": "identifier", "text": "k", "parent": 339, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 14}}, {"id": 347, "type": "assignment_expression", "text": "K->x[kk] = d->rho_x", "parent": 317, "children": [348, 353, 354], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 21}}, {"id": 348, "type": "subscript_expression", "text": "K->x[kk]", "parent": 347, "children": [349, 352], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 10}}, {"id": 349, "type": "field_expression", "text": "K->x", "parent": 348, "children": [350, 351], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 350, "type": "identifier", "text": "K", "parent": 349, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 3}}, {"id": 351, "type": "field_identifier", "text": "x", "parent": 349, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 6}}, {"id": 352, "type": "identifier", "text": "kk", "parent": 348, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 9}}, {"id": 353, "type": "=", "text": "=", "parent": 347, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 12}}, {"id": 354, "type": "field_expression", "text": "d->rho_x", "parent": 347, "children": [355, 356], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 21}}, {"id": 355, "type": "identifier", "text": "d", "parent": 354, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 356, "type": "field_identifier", "text": "rho_x", "parent": 354, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 21}}, {"id": 357, "type": "update_expression", "text": "kk++", "parent": 317, "children": [358, 359], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 358, "type": "identifier", "text": "kk", "parent": 357, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 4}}, {"id": 359, "type": "++", "text": "++", "parent": 357, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 6}}, {"id": 360, "type": "for_statement", "text": "for (j = 0; j < d->n; j++) {\n\t\tfor (k = A->p[j]; k < A->p[j + 1]; k++) {\n\t\t\tK->p[kk] = A->i[k] + d->n;\n\t\t\tK->i[kk] = j;\n\t\t\tK->x[kk] = A->x[k];\n\t\t\tkk++;\n\t\t}\n\t}", "parent": 207, "children": [361, 365, 371], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 71, "column": 2}}, {"id": 361, "type": "assignment_expression", "text": "j = 0", "parent": 360, "children": [362, 363, 364], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 11}}, {"id": 362, "type": "identifier", "text": "j", "parent": 361, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 7}}, {"id": 363, "type": "=", "text": "=", "parent": 361, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 364, "type": "number_literal", "text": "0", "parent": 361, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 365, "type": "binary_expression", "text": "j < d->n", "parent": 360, "children": [366, 367, 368], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 21}}, {"id": 366, "type": "identifier", "text": "j", "parent": 365, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 14}}, {"id": 367, "type": "<", "text": "<", "parent": 365, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 16}}, {"id": 368, "type": "field_expression", "text": "d->n", "parent": 365, "children": [369, 370], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 21}}, {"id": 369, "type": "identifier", "text": "d", "parent": 368, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 18}}, {"id": 370, "type": "field_identifier", "text": "n", "parent": 368, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 21}}, {"id": 371, "type": "update_expression", "text": "j++", "parent": 360, "children": [372, 373], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 26}}, {"id": 372, "type": "identifier", "text": "j", "parent": 371, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 24}}, {"id": 373, "type": "++", "text": "++", "parent": 371, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 26}}, {"id": 374, "type": "for_statement", "text": "for (k = A->p[j]; k < A->p[j + 1]; k++) {\n\t\t\tK->p[kk] = A->i[k] + d->n;\n\t\t\tK->i[kk] = j;\n\t\t\tK->x[kk] = A->x[k];\n\t\t\tkk++;\n\t\t}", "parent": 360, "children": [375, 383, 394], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 70, "column": 3}}, {"id": 375, "type": "assignment_expression", "text": "k = A->p[j]", "parent": 374, "children": [376, 377, 378], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 18}}, {"id": 376, "type": "identifier", "text": "k", "parent": 375, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 8}}, {"id": 377, "type": "=", "text": "=", "parent": 375, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 378, "type": "subscript_expression", "text": "A->p[j]", "parent": 375, "children": [379, 382], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 18}}, {"id": 379, "type": "field_expression", "text": "A->p", "parent": 378, "children": [380, 381], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 15}}, {"id": 380, "type": "identifier", "text": "A", "parent": 379, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 381, "type": "field_identifier", "text": "p", "parent": 379, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 382, "type": "identifier", "text": "j", "parent": 378, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 383, "type": "binary_expression", "text": "k < A->p[j + 1]", "parent": 374, "children": [384, 385, 386], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 35}}, {"id": 384, "type": "identifier", "text": "k", "parent": 383, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 21}}, {"id": 385, "type": "<", "text": "<", "parent": 383, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 23}}, {"id": 386, "type": "subscript_expression", "text": "A->p[j + 1]", "parent": 383, "children": [387, 390], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 35}}, {"id": 387, "type": "field_expression", "text": "A->p", "parent": 386, "children": [388, 389], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 28}}, {"id": 388, "type": "identifier", "text": "A", "parent": 387, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 25}}, {"id": 389, "type": "field_identifier", "text": "p", "parent": 387, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 28}}, {"id": 390, "type": "binary_expression", "text": "j + 1", "parent": 386, "children": [391, 392, 393], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 34}}, {"id": 391, "type": "identifier", "text": "j", "parent": 390, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 392, "type": "+", "text": "+", "parent": 390, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 393, "type": "number_literal", "text": "1", "parent": 390, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 34}}, {"id": 394, "type": "update_expression", "text": "k++", "parent": 374, "children": [395, 396], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 40}}, {"id": 395, "type": "identifier", "text": "k", "parent": 394, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 38}}, {"id": 396, "type": "++", "text": "++", "parent": 394, "children": [], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 40}}, {"id": 397, "type": "assignment_expression", "text": "K->p[kk] = A->i[k] + d->n", "parent": 374, "children": [398, 403, 404], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 28}}, {"id": 398, "type": "subscript_expression", "text": "K->p[kk]", "parent": 397, "children": [399, 402], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 11}}, {"id": 399, "type": "field_expression", "text": "K->p", "parent": 398, "children": [400, 401], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 7}}, {"id": 400, "type": "identifier", "text": "K", "parent": 399, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 4}}, {"id": 401, "type": "field_identifier", "text": "p", "parent": 399, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 402, "type": "identifier", "text": "kk", "parent": 398, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 10}}, {"id": 403, "type": "=", "text": "=", "parent": 397, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 404, "type": "binary_expression", "text": "A->i[k] + d->n", "parent": 397, "children": [405, 410, 411], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 28}}, {"id": 405, "type": "subscript_expression", "text": "A->i[k]", "parent": 404, "children": [406, 409], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 21}}, {"id": 406, "type": "field_expression", "text": "A->i", "parent": 405, "children": [407, 408], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 18}}, {"id": 407, "type": "identifier", "text": "A", "parent": 406, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 15}}, {"id": 408, "type": "field_identifier", "text": "i", "parent": 406, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 18}}, {"id": 409, "type": "identifier", "text": "k", "parent": 405, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 20}}, {"id": 410, "type": "+", "text": "+", "parent": 404, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 23}}, {"id": 411, "type": "field_expression", "text": "d->n", "parent": 404, "children": [412, 413], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 28}}, {"id": 412, "type": "identifier", "text": "d", "parent": 411, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 25}}, {"id": 413, "type": "field_identifier", "text": "n", "parent": 411, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 28}}, {"id": 414, "type": "assignment_expression", "text": "K->i[kk] = j", "parent": 374, "children": [415, 420, 421], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 15}}, {"id": 415, "type": "subscript_expression", "text": "K->i[kk]", "parent": 414, "children": [416, 419], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 11}}, {"id": 416, "type": "field_expression", "text": "K->i", "parent": 415, "children": [417, 418], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 7}}, {"id": 417, "type": "identifier", "text": "K", "parent": 416, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 4}}, {"id": 418, "type": "field_identifier", "text": "i", "parent": 416, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 419, "type": "identifier", "text": "kk", "parent": 415, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 10}}, {"id": 420, "type": "=", "text": "=", "parent": 414, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 13}}, {"id": 421, "type": "identifier", "text": "j", "parent": 414, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 15}}, {"id": 422, "type": "assignment_expression", "text": "K->x[kk] = A->x[k]", "parent": 374, "children": [423, 428, 429], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 21}}, {"id": 423, "type": "subscript_expression", "text": "K->x[kk]", "parent": 422, "children": [424, 427], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 11}}, {"id": 424, "type": "field_expression", "text": "K->x", "parent": 423, "children": [425, 426], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 7}}, {"id": 425, "type": "identifier", "text": "K", "parent": 424, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 4}}, {"id": 426, "type": "field_identifier", "text": "x", "parent": 424, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 7}}, {"id": 427, "type": "identifier", "text": "kk", "parent": 423, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 10}}, {"id": 428, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 13}}, {"id": 429, "type": "subscript_expression", "text": "A->x[k]", "parent": 422, "children": [430, 433], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 21}}, {"id": 430, "type": "field_expression", "text": "A->x", "parent": 429, "children": [431, 432], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 18}}, {"id": 431, "type": "identifier", "text": "A", "parent": 430, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 432, "type": "field_identifier", "text": "x", "parent": 430, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 433, "type": "identifier", "text": "k", "parent": 429, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 20}}, {"id": 434, "type": "update_expression", "text": "kk++", "parent": 374, "children": [435, 436], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 7}}, {"id": 435, "type": "identifier", "text": "kk", "parent": 434, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 5}}, {"id": 436, "type": "++", "text": "++", "parent": 434, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 7}}, {"id": 437, "type": "for_statement", "text": "for (k = 0; k < d->m; k++) {\n\t\tK->i[kk] = k + d->n;\n\t\tK->p[kk] = k + d->n;\n\t\tK->x[kk] = -1;\n\t\tkk++;\n\t}", "parent": 207, "children": [438, 442, 448], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 438, "type": "assignment_expression", "text": "k = 0", "parent": 437, "children": [439, 440, 441], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 11}}, {"id": 439, "type": "identifier", "text": "k", "parent": 438, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 7}}, {"id": 440, "type": "=", "text": "=", "parent": 438, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 441, "type": "number_literal", "text": "0", "parent": 438, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 11}}, {"id": 442, "type": "binary_expression", "text": "k < d->m", "parent": 437, "children": [443, 444, 445], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 21}}, {"id": 443, "type": "identifier", "text": "k", "parent": 442, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 444, "type": "<", "text": "<", "parent": 442, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 16}}, {"id": 445, "type": "field_expression", "text": "d->m", "parent": 442, "children": [446, 447], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 21}}, {"id": 446, "type": "identifier", "text": "d", "parent": 445, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 18}}, {"id": 447, "type": "field_identifier", "text": "m", "parent": 445, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 21}}, {"id": 448, "type": "update_expression", "text": "k++", "parent": 437, "children": [449, 450], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 26}}, {"id": 449, "type": "identifier", "text": "k", "parent": 448, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 24}}, {"id": 450, "type": "++", "text": "++", "parent": 448, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 26}}, {"id": 451, "type": "assignment_expression", "text": "K->i[kk] = k + d->n", "parent": 437, "children": [452, 457, 458], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 21}}, {"id": 452, "type": "subscript_expression", "text": "K->i[kk]", "parent": 451, "children": [453, 456], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 10}}, {"id": 453, "type": "field_expression", "text": "K->i", "parent": 452, "children": [454, 455], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 6}}, {"id": 454, "type": "identifier", "text": "K", "parent": 453, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 3}}, {"id": 455, "type": "field_identifier", "text": "i", "parent": 453, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 6}}, {"id": 456, "type": "identifier", "text": "kk", "parent": 452, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 9}}, {"id": 457, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 12}}, {"id": 458, "type": "binary_expression", "text": "k + d->n", "parent": 451, "children": [459, 460, 461], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 21}}, {"id": 459, "type": "identifier", "text": "k", "parent": 458, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 460, "type": "+", "text": "+", "parent": 458, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 16}}, {"id": 461, "type": "field_expression", "text": "d->n", "parent": 458, "children": [462, 463], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 21}}, {"id": 462, "type": "identifier", "text": "d", "parent": 461, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 18}}, {"id": 463, "type": "field_identifier", "text": "n", "parent": 461, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 21}}, {"id": 464, "type": "assignment_expression", "text": "K->p[kk] = k + d->n", "parent": 437, "children": [465, 470, 471], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 21}}, {"id": 465, "type": "subscript_expression", "text": "K->p[kk]", "parent": 464, "children": [466, 469], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 10}}, {"id": 466, "type": "field_expression", "text": "K->p", "parent": 465, "children": [467, 468], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 467, "type": "identifier", "text": "K", "parent": 466, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 468, "type": "field_identifier", "text": "p", "parent": 466, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 6}}, {"id": 469, "type": "identifier", "text": "kk", "parent": 465, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 9}}, {"id": 470, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 471, "type": "binary_expression", "text": "k + d->n", "parent": 464, "children": [472, 473, 474], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 21}}, {"id": 472, "type": "identifier", "text": "k", "parent": 471, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 14}}, {"id": 473, "type": "+", "text": "+", "parent": 471, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 16}}, {"id": 474, "type": "field_expression", "text": "d->n", "parent": 471, "children": [475, 476], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 21}}, {"id": 475, "type": "identifier", "text": "d", "parent": 474, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 476, "type": "field_identifier", "text": "n", "parent": 474, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 21}}, {"id": 477, "type": "assignment_expression", "text": "K->x[kk] = -1", "parent": 437, "children": [478, 483, 484], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 15}}, {"id": 478, "type": "subscript_expression", "text": "K->x[kk]", "parent": 477, "children": [479, 482], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 479, "type": "field_expression", "text": "K->x", "parent": 478, "children": [480, 481], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 6}}, {"id": 480, "type": "identifier", "text": "K", "parent": 479, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 3}}, {"id": 481, "type": "field_identifier", "text": "x", "parent": 479, "children": [], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 6}}, {"id": 482, "type": "identifier", "text": "kk", "parent": 478, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 9}}, {"id": 483, "type": "=", "text": "=", "parent": 477, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 12}}, {"id": 484, "type": "number_literal", "text": "-1", "parent": 477, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 15}}, {"id": 485, "type": "update_expression", "text": "kk++", "parent": 437, "children": [486, 487], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 486, "type": "identifier", "text": "kk", "parent": 485, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 4}}, {"id": 487, "type": "++", "text": "++", "parent": 485, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 6}}, {"id": 488, "type": "assignment_expression", "text": "K->nz = Knzmax", "parent": 207, "children": [489, 492, 493], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 15}}, {"id": 489, "type": "field_expression", "text": "K->nz", "parent": 488, "children": [490, 491], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 6}}, {"id": 490, "type": "identifier", "text": "K", "parent": 489, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 2}}, {"id": 491, "type": "field_identifier", "text": "nz", "parent": 489, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 6}}, {"id": 492, "type": "=", "text": "=", "parent": 488, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 8}}, {"id": 493, "type": "identifier", "text": "Knzmax", "parent": 488, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 15}}, {"id": 494, "type": "assignment_expression", "text": "K_cs = cs_compress(K)", "parent": 207, "children": [495, 496, 497], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 22}}, {"id": 495, "type": "identifier", "text": "K_cs", "parent": 494, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 496, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 7}}, {"id": 497, "type": "call_expression", "text": "cs_compress(K)", "parent": 494, "children": [498, 499], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 22}}, {"id": 498, "type": "identifier", "text": "cs_compress", "parent": 497, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 19}}, {"id": 499, "type": "argument_list", "text": "(K)", "parent": 497, "children": [500], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 22}}, {"id": 500, "type": "identifier", "text": "K", "parent": 499, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 21}}, {"id": 501, "type": "call_expression", "text": "cs_spfree(K)", "parent": 207, "children": [502, 503], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 13}}, {"id": 502, "type": "identifier", "text": "cs_spfree", "parent": 501, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 10}}, {"id": 503, "type": "argument_list", "text": "(K)", "parent": 501, "children": [504], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 13}}, {"id": 504, "type": "identifier", "text": "K", "parent": 503, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 505, "type": "return_statement", "text": "return (K_cs);", "parent": 207, "children": [506], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 15}}, {"id": 506, "type": "parenthesized_expression", "text": "(K_cs)", "parent": 505, "children": [507], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 14}}, {"id": 507, "type": "identifier", "text": "K_cs", "parent": 506, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 13}}, {"id": 508, "type": "function_definition", "text": "scs_int LDLInit(cs * A, scs_int P[], scs_float **info) {\n\t*info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));\n#ifdef DLONG\n\treturn(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n\treturn (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif\n}", "parent": null, "children": [509, 510], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 509, "type": "type_identifier", "text": "scs_int", "parent": 508, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 7}}, {"id": 510, "type": "function_declarator", "text": "LDLInit(cs * A, scs_int P[], scs_float **info)", "parent": 508, "children": [511, 512], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 54}}, {"id": 511, "type": "identifier", "text": "LDLInit", "parent": 510, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 15}}, {"id": 512, "type": "parameter_list", "text": "(cs * A, scs_int P[], scs_float **info)", "parent": 510, "children": [513, 518, 522], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 54}}, {"id": 513, "type": "parameter_declaration", "text": "cs * A", "parent": 512, "children": [514, 515], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 22}}, {"id": 514, "type": "type_identifier", "text": "cs", "parent": 513, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 18}}, {"id": 515, "type": "pointer_declarator", "text": "* A", "parent": 513, "children": [516, 517], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 22}}, {"id": 516, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 20}}, {"id": 517, "type": "identifier", "text": "A", "parent": 515, "children": [], "start_point": {"row": 86, "column": 21}, "end_point": {"row": 86, "column": 22}}, {"id": 518, "type": "parameter_declaration", "text": "scs_int P[]", "parent": 512, "children": [519, 520], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 35}}, {"id": 519, "type": "type_identifier", "text": "scs_int", "parent": 518, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 31}}, {"id": 520, "type": "array_declarator", "text": "P[]", "parent": 518, "children": [521], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 35}}, {"id": 521, "type": "identifier", "text": "P", "parent": 520, "children": [], "start_point": {"row": 86, "column": 32}, "end_point": {"row": 86, "column": 33}}, {"id": 522, "type": "parameter_declaration", "text": "scs_float **info", "parent": 512, "children": [523, 524], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 53}}, {"id": 523, "type": "type_identifier", "text": "scs_float", "parent": 522, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 46}}, {"id": 524, "type": "pointer_declarator", "text": "**info", "parent": 522, "children": [525, 526], "start_point": {"row": 86, "column": 47}, "end_point": {"row": 86, "column": 53}}, {"id": 525, "type": "*", "text": "*", "parent": 524, "children": [], "start_point": {"row": 86, "column": 47}, "end_point": {"row": 86, "column": 48}}, {"id": 526, "type": "pointer_declarator", "text": "*info", "parent": 524, "children": [527, 528], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 53}}, {"id": 527, "type": "*", "text": "*", "parent": 526, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 49}}, {"id": 528, "type": "identifier", "text": "info", "parent": 526, "children": [], "start_point": {"row": 86, "column": 49}, "end_point": {"row": 86, "column": 53}}, {"id": 529, "type": "assignment_expression", "text": "*info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float))", "parent": 508, "children": [530, 533, 534], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 63}}, {"id": 530, "type": "pointer_expression", "text": "*info", "parent": 529, "children": [531, 532], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 6}}, {"id": 531, "type": "*", "text": "*", "parent": 530, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 2}}, {"id": 532, "type": "identifier", "text": "info", "parent": 530, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 6}}, {"id": 533, "type": "=", "text": "=", "parent": 529, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 534, "type": "cast_expression", "text": "(scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float))", "parent": 529, "children": [535, 539], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 63}}, {"id": 535, "type": "type_descriptor", "text": "scs_float *", "parent": 534, "children": [536, 537], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 21}}, {"id": 536, "type": "type_identifier", "text": "scs_float", "parent": 535, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 19}}, {"id": 537, "type": "abstract_pointer_declarator", "text": "*", "parent": 535, "children": [538], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 538, "type": "*", "text": "*", "parent": 537, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 539, "type": "call_expression", "text": "scs_malloc(AMD_INFO * sizeof(scs_float))", "parent": 534, "children": [540, 541], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 63}}, {"id": 540, "type": "identifier", "text": "scs_malloc", "parent": 539, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 33}}, {"id": 541, "type": "argument_list", "text": "(AMD_INFO * sizeof(scs_float))", "parent": 539, "children": [542], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 63}}, {"id": 542, "type": "binary_expression", "text": "AMD_INFO * sizeof(scs_float)", "parent": 541, "children": [543, 544, 545], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 62}}, {"id": 543, "type": "identifier", "text": "AMD_INFO", "parent": 542, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 42}}, {"id": 544, "type": "*", "text": "*", "parent": 542, "children": [], "start_point": {"row": 87, "column": 43}, "end_point": {"row": 87, "column": 44}}, {"id": 545, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 542, "children": [546], "start_point": {"row": 87, "column": 45}, "end_point": {"row": 87, "column": 62}}, {"id": 546, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 545, "children": [547], "start_point": {"row": 87, "column": 51}, "end_point": {"row": 87, "column": 62}}, {"id": 547, "type": "identifier", "text": "scs_float", "parent": 546, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 61}}, {"id": 548, "type": "preproc_ifdef", "text": "#ifdef DLONG\n\treturn(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n\treturn (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif", "parent": 508, "children": [549, 550, 551, 576, 603], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 92, "column": 6}}, {"id": 549, "type": "#ifdef", "text": "#ifdef", "parent": 548, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 550, "type": "identifier", "text": "DLONG", "parent": 548, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 12}}, {"id": 551, "type": "return_statement", "text": "return(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));", "parent": 548, "children": [552], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 69}}, {"id": 552, "type": "parenthesized_expression", "text": "(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info))", "parent": 551, "children": [553], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 68}}, {"id": 553, "type": "call_expression", "text": "amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)", "parent": 552, "children": [554, 555], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 67}}, {"id": 554, "type": "identifier", "text": "amd_l_order", "parent": 553, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 19}}, {"id": 555, "type": "argument_list", "text": "(A->n, A->p, A->i, P, (scs_float *) NULL, *info)", "parent": 553, "children": [556, 559, 562, 565, 566, 573], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 67}}, {"id": 556, "type": "field_expression", "text": "A->n", "parent": 555, "children": [557, 558], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 24}}, {"id": 557, "type": "identifier", "text": "A", "parent": 556, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 21}}, {"id": 558, "type": "field_identifier", "text": "n", "parent": 556, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 24}}, {"id": 559, "type": "field_expression", "text": "A->p", "parent": 555, "children": [560, 561], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 30}}, {"id": 560, "type": "identifier", "text": "A", "parent": 559, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 27}}, {"id": 561, "type": "field_identifier", "text": "p", "parent": 559, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 30}}, {"id": 562, "type": "field_expression", "text": "A->i", "parent": 555, "children": [563, 564], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 36}}, {"id": 563, "type": "identifier", "text": "A", "parent": 562, "children": [], "start_point": {"row": 89, "column": 32}, "end_point": {"row": 89, "column": 33}}, {"id": 564, "type": "field_identifier", "text": "i", "parent": 562, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 36}}, {"id": 565, "type": "identifier", "text": "P", "parent": 555, "children": [], "start_point": {"row": 89, "column": 38}, "end_point": {"row": 89, "column": 39}}, {"id": 566, "type": "cast_expression", "text": "(scs_float *) NULL", "parent": 555, "children": [567, 571], "start_point": {"row": 89, "column": 41}, "end_point": {"row": 89, "column": 59}}, {"id": 567, "type": "type_descriptor", "text": "scs_float *", "parent": 566, "children": [568, 569], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 53}}, {"id": 568, "type": "type_identifier", "text": "scs_float", "parent": 567, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 51}}, {"id": 569, "type": "abstract_pointer_declarator", "text": "*", "parent": 567, "children": [570], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 53}}, {"id": 570, "type": "*", "text": "*", "parent": 569, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 53}}, {"id": 571, "type": "null", "text": "NULL", "parent": 566, "children": [572], "start_point": {"row": 89, "column": 55}, "end_point": {"row": 89, "column": 59}}, {"id": 572, "type": "NULL", "text": "NULL", "parent": 571, "children": [], "start_point": {"row": 89, "column": 55}, "end_point": {"row": 89, "column": 59}}, {"id": 573, "type": "pointer_expression", "text": "*info", "parent": 555, "children": [574, 575], "start_point": {"row": 89, "column": 61}, "end_point": {"row": 89, "column": 66}}, {"id": 574, "type": "*", "text": "*", "parent": 573, "children": [], "start_point": {"row": 89, "column": 61}, "end_point": {"row": 89, "column": 62}}, {"id": 575, "type": "identifier", "text": "info", "parent": 573, "children": [], "start_point": {"row": 89, "column": 62}, "end_point": {"row": 89, "column": 66}}, {"id": 576, "type": "preproc_else", "text": "#else\n\treturn (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));", "parent": 548, "children": [577, 578], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 68}}, {"id": 577, "type": "#else", "text": "#else", "parent": 576, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 5}}, {"id": 578, "type": "return_statement", "text": "return (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));", "parent": 576, "children": [579], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 68}}, {"id": 579, "type": "parenthesized_expression", "text": "(amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info))", "parent": 578, "children": [580], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 67}}, {"id": 580, "type": "call_expression", "text": "amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info)", "parent": 579, "children": [581, 582], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 66}}, {"id": 581, "type": "identifier", "text": "amd_order", "parent": 580, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 18}}, {"id": 582, "type": "argument_list", "text": "(A->n, A->p, A->i, P, (scs_float *) NULL, *info)", "parent": 580, "children": [583, 586, 589, 592, 593, 600], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 66}}, {"id": 583, "type": "field_expression", "text": "A->n", "parent": 582, "children": [584, 585], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 23}}, {"id": 584, "type": "identifier", "text": "A", "parent": 583, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 20}}, {"id": 585, "type": "field_identifier", "text": "n", "parent": 583, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 23}}, {"id": 586, "type": "field_expression", "text": "A->p", "parent": 582, "children": [587, 588], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 29}}, {"id": 587, "type": "identifier", "text": "A", "parent": 586, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 26}}, {"id": 588, "type": "field_identifier", "text": "p", "parent": 586, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 589, "type": "field_expression", "text": "A->i", "parent": 582, "children": [590, 591], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 35}}, {"id": 590, "type": "identifier", "text": "A", "parent": 589, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 591, "type": "field_identifier", "text": "i", "parent": 589, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 35}}, {"id": 592, "type": "identifier", "text": "P", "parent": 582, "children": [], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 38}}, {"id": 593, "type": "cast_expression", "text": "(scs_float *) NULL", "parent": 582, "children": [594, 598], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 58}}, {"id": 594, "type": "type_descriptor", "text": "scs_float *", "parent": 593, "children": [595, 596], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 52}}, {"id": 595, "type": "type_identifier", "text": "scs_float", "parent": 594, "children": [], "start_point": {"row": 91, "column": 41}, "end_point": {"row": 91, "column": 50}}, {"id": 596, "type": "abstract_pointer_declarator", "text": "*", "parent": 594, "children": [597], "start_point": {"row": 91, "column": 51}, "end_point": {"row": 91, "column": 52}}, {"id": 597, "type": "*", "text": "*", "parent": 596, "children": [], "start_point": {"row": 91, "column": 51}, "end_point": {"row": 91, "column": 52}}, {"id": 598, "type": "null", "text": "NULL", "parent": 593, "children": [599], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 58}}, {"id": 599, "type": "NULL", "text": "NULL", "parent": 598, "children": [], "start_point": {"row": 91, "column": 54}, "end_point": {"row": 91, "column": 58}}, {"id": 600, "type": "pointer_expression", "text": "*info", "parent": 582, "children": [601, 602], "start_point": {"row": 91, "column": 60}, "end_point": {"row": 91, "column": 65}}, {"id": 601, "type": "*", "text": "*", "parent": 600, "children": [], "start_point": {"row": 91, "column": 60}, "end_point": {"row": 91, "column": 61}}, {"id": 602, "type": "identifier", "text": "info", "parent": 600, "children": [], "start_point": {"row": 91, "column": 61}, "end_point": {"row": 91, "column": 65}}, {"id": 603, "type": "#endif", "text": "#endif", "parent": 548, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}, {"id": 604, "type": "function_definition", "text": "scs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) {\n\tscs_int kk, n = A->n;\n\tscs_int * Parent = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Lnz = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Flag = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Pattern = scs_malloc(n * sizeof(scs_int));\n\tscs_float * Y = scs_malloc(n * sizeof(scs_float));\n\t(*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));\n\n\t/*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */\n\t/*scs_float Y[n]; */\n\n\tLDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);\n\n\t(*L)->nzmax = *((*L)->p + n);\n\t(*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));\n\t(*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));\n\t*D = (scs_float *) scs_malloc(n * sizeof(scs_float));\n\n\tif (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n\t\treturn -1;\n\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"numeric factorization\\n\");\n#endif\n\tkk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"finished numeric factorization\\n\");\n#endif\n\n\tscs_free(Parent);\n\tscs_free(Lnz);\n\tscs_free(Flag);\n\tscs_free(Pattern);\n\tscs_free(Y);\n\treturn (n - kk);\n}", "parent": null, "children": [605, 606], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 131, "column": 1}}, {"id": 605, "type": "type_identifier", "text": "scs_int", "parent": 604, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 606, "type": "function_declarator", "text": "LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D)", "parent": 604, "children": [607, 608], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 77}}, {"id": 607, "type": "identifier", "text": "LDLFactor", "parent": 606, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 17}}, {"id": 608, "type": "parameter_list", "text": "(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D)", "parent": 606, "children": [609, 614, 618, 622, 629], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 77}}, {"id": 609, "type": "parameter_declaration", "text": "cs * A", "parent": 608, "children": [610, 611], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 24}}, {"id": 610, "type": "type_identifier", "text": "cs", "parent": 609, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 20}}, {"id": 611, "type": "pointer_declarator", "text": "* A", "parent": 609, "children": [612, 613], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 24}}, {"id": 612, "type": "*", "text": "*", "parent": 611, "children": [], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 22}}, {"id": 613, "type": "identifier", "text": "A", "parent": 611, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 24}}, {"id": 614, "type": "parameter_declaration", "text": "scs_int P[]", "parent": 608, "children": [615, 616], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 37}}, {"id": 615, "type": "type_identifier", "text": "scs_int", "parent": 614, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 33}}, {"id": 616, "type": "array_declarator", "text": "P[]", "parent": 614, "children": [617], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 37}}, {"id": 617, "type": "identifier", "text": "P", "parent": 616, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 35}}, {"id": 618, "type": "parameter_declaration", "text": "scs_int Pinv[]", "parent": 608, "children": [619, 620], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 53}}, {"id": 619, "type": "type_identifier", "text": "scs_int", "parent": 618, "children": [], "start_point": {"row": 95, "column": 39}, "end_point": {"row": 95, "column": 46}}, {"id": 620, "type": "array_declarator", "text": "Pinv[]", "parent": 618, "children": [621], "start_point": {"row": 95, "column": 47}, "end_point": {"row": 95, "column": 53}}, {"id": 621, "type": "identifier", "text": "Pinv", "parent": 620, "children": [], "start_point": {"row": 95, "column": 47}, "end_point": {"row": 95, "column": 51}}, {"id": 622, "type": "parameter_declaration", "text": "cs **L", "parent": 608, "children": [623, 624], "start_point": {"row": 95, "column": 55}, "end_point": {"row": 95, "column": 61}}, {"id": 623, "type": "type_identifier", "text": "cs", "parent": 622, "children": [], "start_point": {"row": 95, "column": 55}, "end_point": {"row": 95, "column": 57}}, {"id": 624, "type": "pointer_declarator", "text": "**L", "parent": 622, "children": [625, 626], "start_point": {"row": 95, "column": 58}, "end_point": {"row": 95, "column": 61}}, {"id": 625, "type": "*", "text": "*", "parent": 624, "children": [], "start_point": {"row": 95, "column": 58}, "end_point": {"row": 95, "column": 59}}, {"id": 626, "type": "pointer_declarator", "text": "*L", "parent": 624, "children": [627, 628], "start_point": {"row": 95, "column": 59}, "end_point": {"row": 95, "column": 61}}, {"id": 627, "type": "*", "text": "*", "parent": 626, "children": [], "start_point": {"row": 95, "column": 59}, "end_point": {"row": 95, "column": 60}}, {"id": 628, "type": "identifier", "text": "L", "parent": 626, "children": [], "start_point": {"row": 95, "column": 60}, "end_point": {"row": 95, "column": 61}}, {"id": 629, "type": "parameter_declaration", "text": "scs_float **D", "parent": 608, "children": [630, 631], "start_point": {"row": 95, "column": 63}, "end_point": {"row": 95, "column": 76}}, {"id": 630, "type": "type_identifier", "text": "scs_float", "parent": 629, "children": [], "start_point": {"row": 95, "column": 63}, "end_point": {"row": 95, "column": 72}}, {"id": 631, "type": "pointer_declarator", "text": "**D", "parent": 629, "children": [632, 633], "start_point": {"row": 95, "column": 73}, "end_point": {"row": 95, "column": 76}}, {"id": 632, "type": "*", "text": "*", "parent": 631, "children": [], "start_point": {"row": 95, "column": 73}, "end_point": {"row": 95, "column": 74}}, {"id": 633, "type": "pointer_declarator", "text": "*D", "parent": 631, "children": [634, 635], "start_point": {"row": 95, "column": 74}, "end_point": {"row": 95, "column": 76}}, {"id": 634, "type": "*", "text": "*", "parent": 633, "children": [], "start_point": {"row": 95, "column": 74}, "end_point": {"row": 95, "column": 75}}, {"id": 635, "type": "identifier", "text": "D", "parent": 633, "children": [], "start_point": {"row": 95, "column": 75}, "end_point": {"row": 95, "column": 76}}, {"id": 636, "type": "declaration", "text": "scs_int kk, n = A->n;", "parent": 604, "children": [637, 638, 639], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 22}}, {"id": 637, "type": "type_identifier", "text": "scs_int", "parent": 636, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 8}}, {"id": 638, "type": "identifier", "text": "kk", "parent": 636, "children": [], "start_point": {"row": 96, "column": 9}, "end_point": {"row": 96, "column": 11}}, {"id": 639, "type": "init_declarator", "text": "n = A->n", "parent": 636, "children": [640, 641, 642], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 21}}, {"id": 640, "type": "identifier", "text": "n", "parent": 639, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 14}}, {"id": 641, "type": "=", "text": "=", "parent": 639, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 16}}, {"id": 642, "type": "field_expression", "text": "A->n", "parent": 639, "children": [643, 644], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 21}}, {"id": 643, "type": "identifier", "text": "A", "parent": 642, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 18}}, {"id": 644, "type": "field_identifier", "text": "n", "parent": 642, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 21}}, {"id": 645, "type": "declaration", "text": "scs_int * Parent = scs_malloc(n * sizeof(scs_int));", "parent": 604, "children": [646, 647], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 52}}, {"id": 646, "type": "type_identifier", "text": "scs_int", "parent": 645, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 8}}, {"id": 647, "type": "init_declarator", "text": "* Parent = scs_malloc(n * sizeof(scs_int))", "parent": 645, "children": [648, 651, 652], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 51}}, {"id": 648, "type": "pointer_declarator", "text": "* Parent", "parent": 647, "children": [649, 650], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 17}}, {"id": 649, "type": "*", "text": "*", "parent": 648, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 650, "type": "identifier", "text": "Parent", "parent": 648, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 17}}, {"id": 651, "type": "=", "text": "=", "parent": 647, "children": [], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 19}}, {"id": 652, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_int))", "parent": 647, "children": [653, 654], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 51}}, {"id": 653, "type": "identifier", "text": "scs_malloc", "parent": 652, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 30}}, {"id": 654, "type": "argument_list", "text": "(n * sizeof(scs_int))", "parent": 652, "children": [655], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 51}}, {"id": 655, "type": "binary_expression", "text": "n * sizeof(scs_int)", "parent": 654, "children": [656, 657, 658], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 50}}, {"id": 656, "type": "identifier", "text": "n", "parent": 655, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 32}}, {"id": 657, "type": "*", "text": "*", "parent": 655, "children": [], "start_point": {"row": 97, "column": 33}, "end_point": {"row": 97, "column": 34}}, {"id": 658, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 655, "children": [659], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 50}}, {"id": 659, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 658, "children": [660], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 50}}, {"id": 660, "type": "identifier", "text": "scs_int", "parent": 659, "children": [], "start_point": {"row": 97, "column": 42}, "end_point": {"row": 97, "column": 49}}, {"id": 661, "type": "declaration", "text": "scs_int * Lnz = scs_malloc(n * sizeof(scs_int));", "parent": 604, "children": [662, 663], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 49}}, {"id": 662, "type": "type_identifier", "text": "scs_int", "parent": 661, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 8}}, {"id": 663, "type": "init_declarator", "text": "* Lnz = scs_malloc(n * sizeof(scs_int))", "parent": 661, "children": [664, 667, 668], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 48}}, {"id": 664, "type": "pointer_declarator", "text": "* Lnz", "parent": 663, "children": [665, 666], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 14}}, {"id": 665, "type": "*", "text": "*", "parent": 664, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 666, "type": "identifier", "text": "Lnz", "parent": 664, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 14}}, {"id": 667, "type": "=", "text": "=", "parent": 663, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 16}}, {"id": 668, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_int))", "parent": 663, "children": [669, 670], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 48}}, {"id": 669, "type": "identifier", "text": "scs_malloc", "parent": 668, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 27}}, {"id": 670, "type": "argument_list", "text": "(n * sizeof(scs_int))", "parent": 668, "children": [671], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 48}}, {"id": 671, "type": "binary_expression", "text": "n * sizeof(scs_int)", "parent": 670, "children": [672, 673, 674], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 47}}, {"id": 672, "type": "identifier", "text": "n", "parent": 671, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 29}}, {"id": 673, "type": "*", "text": "*", "parent": 671, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 31}}, {"id": 674, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 671, "children": [675], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 47}}, {"id": 675, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 674, "children": [676], "start_point": {"row": 98, "column": 38}, "end_point": {"row": 98, "column": 47}}, {"id": 676, "type": "identifier", "text": "scs_int", "parent": 675, "children": [], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 46}}, {"id": 677, "type": "declaration", "text": "scs_int * Flag = scs_malloc(n * sizeof(scs_int));", "parent": 604, "children": [678, 679], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 50}}, {"id": 678, "type": "type_identifier", "text": "scs_int", "parent": 677, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 8}}, {"id": 679, "type": "init_declarator", "text": "* Flag = scs_malloc(n * sizeof(scs_int))", "parent": 677, "children": [680, 683, 684], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 49}}, {"id": 680, "type": "pointer_declarator", "text": "* Flag", "parent": 679, "children": [681, 682], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 15}}, {"id": 681, "type": "*", "text": "*", "parent": 680, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 10}}, {"id": 682, "type": "identifier", "text": "Flag", "parent": 680, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 15}}, {"id": 683, "type": "=", "text": "=", "parent": 679, "children": [], "start_point": {"row": 99, "column": 16}, "end_point": {"row": 99, "column": 17}}, {"id": 684, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_int))", "parent": 679, "children": [685, 686], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 49}}, {"id": 685, "type": "identifier", "text": "scs_malloc", "parent": 684, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 28}}, {"id": 686, "type": "argument_list", "text": "(n * sizeof(scs_int))", "parent": 684, "children": [687], "start_point": {"row": 99, "column": 28}, "end_point": {"row": 99, "column": 49}}, {"id": 687, "type": "binary_expression", "text": "n * sizeof(scs_int)", "parent": 686, "children": [688, 689, 690], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 48}}, {"id": 688, "type": "identifier", "text": "n", "parent": 687, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 30}}, {"id": 689, "type": "*", "text": "*", "parent": 687, "children": [], "start_point": {"row": 99, "column": 31}, "end_point": {"row": 99, "column": 32}}, {"id": 690, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 687, "children": [691], "start_point": {"row": 99, "column": 33}, "end_point": {"row": 99, "column": 48}}, {"id": 691, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 690, "children": [692], "start_point": {"row": 99, "column": 39}, "end_point": {"row": 99, "column": 48}}, {"id": 692, "type": "identifier", "text": "scs_int", "parent": 691, "children": [], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 47}}, {"id": 693, "type": "declaration", "text": "scs_int * Pattern = scs_malloc(n * sizeof(scs_int));", "parent": 604, "children": [694, 695], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 53}}, {"id": 694, "type": "type_identifier", "text": "scs_int", "parent": 693, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 8}}, {"id": 695, "type": "init_declarator", "text": "* Pattern = scs_malloc(n * sizeof(scs_int))", "parent": 693, "children": [696, 699, 700], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 52}}, {"id": 696, "type": "pointer_declarator", "text": "* Pattern", "parent": 695, "children": [697, 698], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 18}}, {"id": 697, "type": "*", "text": "*", "parent": 696, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 10}}, {"id": 698, "type": "identifier", "text": "Pattern", "parent": 696, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 18}}, {"id": 699, "type": "=", "text": "=", "parent": 695, "children": [], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 20}}, {"id": 700, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_int))", "parent": 695, "children": [701, 702], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 52}}, {"id": 701, "type": "identifier", "text": "scs_malloc", "parent": 700, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 31}}, {"id": 702, "type": "argument_list", "text": "(n * sizeof(scs_int))", "parent": 700, "children": [703], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 52}}, {"id": 703, "type": "binary_expression", "text": "n * sizeof(scs_int)", "parent": 702, "children": [704, 705, 706], "start_point": {"row": 100, "column": 32}, "end_point": {"row": 100, "column": 51}}, {"id": 704, "type": "identifier", "text": "n", "parent": 703, "children": [], "start_point": {"row": 100, "column": 32}, "end_point": {"row": 100, "column": 33}}, {"id": 705, "type": "*", "text": "*", "parent": 703, "children": [], "start_point": {"row": 100, "column": 34}, "end_point": {"row": 100, "column": 35}}, {"id": 706, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 703, "children": [707], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 51}}, {"id": 707, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 706, "children": [708], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 51}}, {"id": 708, "type": "identifier", "text": "scs_int", "parent": 707, "children": [], "start_point": {"row": 100, "column": 43}, "end_point": {"row": 100, "column": 50}}, {"id": 709, "type": "declaration", "text": "scs_float * Y = scs_malloc(n * sizeof(scs_float));", "parent": 604, "children": [710, 711], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 51}}, {"id": 710, "type": "type_identifier", "text": "scs_float", "parent": 709, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 10}}, {"id": 711, "type": "init_declarator", "text": "* Y = scs_malloc(n * sizeof(scs_float))", "parent": 709, "children": [712, 715, 716], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 50}}, {"id": 712, "type": "pointer_declarator", "text": "* Y", "parent": 711, "children": [713, 714], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 14}}, {"id": 713, "type": "*", "text": "*", "parent": 712, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 12}}, {"id": 714, "type": "identifier", "text": "Y", "parent": 712, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 14}}, {"id": 715, "type": "=", "text": "=", "parent": 711, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 16}}, {"id": 716, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_float))", "parent": 711, "children": [717, 718], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 50}}, {"id": 717, "type": "identifier", "text": "scs_malloc", "parent": 716, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 27}}, {"id": 718, "type": "argument_list", "text": "(n * sizeof(scs_float))", "parent": 716, "children": [719], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 50}}, {"id": 719, "type": "binary_expression", "text": "n * sizeof(scs_float)", "parent": 718, "children": [720, 721, 722], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 49}}, {"id": 720, "type": "identifier", "text": "n", "parent": 719, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 29}}, {"id": 721, "type": "*", "text": "*", "parent": 719, "children": [], "start_point": {"row": 101, "column": 30}, "end_point": {"row": 101, "column": 31}}, {"id": 722, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 719, "children": [723], "start_point": {"row": 101, "column": 32}, "end_point": {"row": 101, "column": 49}}, {"id": 723, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 722, "children": [724], "start_point": {"row": 101, "column": 38}, "end_point": {"row": 101, "column": 49}}, {"id": 724, "type": "identifier", "text": "scs_float", "parent": 723, "children": [], "start_point": {"row": 101, "column": 39}, "end_point": {"row": 101, "column": 48}}, {"id": 725, "type": "assignment_expression", "text": "(*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int))", "parent": 604, "children": [726, 732, 733], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 60}}, {"id": 726, "type": "field_expression", "text": "(*L)->p", "parent": 725, "children": [727, 731], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 8}}, {"id": 727, "type": "parenthesized_expression", "text": "(*L)", "parent": 726, "children": [728], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 5}}, {"id": 728, "type": "pointer_expression", "text": "*L", "parent": 727, "children": [729, 730], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 4}}, {"id": 729, "type": "*", "text": "*", "parent": 728, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 3}}, {"id": 730, "type": "identifier", "text": "L", "parent": 728, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 4}}, {"id": 731, "type": "field_identifier", "text": "p", "parent": 726, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 8}}, {"id": 732, "type": "=", "text": "=", "parent": 725, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 10}}, {"id": 733, "type": "cast_expression", "text": "(scs_int *) scs_malloc((1 + n) * sizeof(scs_int))", "parent": 725, "children": [734, 738], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 60}}, {"id": 734, "type": "type_descriptor", "text": "scs_int *", "parent": 733, "children": [735, 736], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 21}}, {"id": 735, "type": "type_identifier", "text": "scs_int", "parent": 734, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 19}}, {"id": 736, "type": "abstract_pointer_declarator", "text": "*", "parent": 734, "children": [737], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 737, "type": "*", "text": "*", "parent": 736, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 738, "type": "call_expression", "text": "scs_malloc((1 + n) * sizeof(scs_int))", "parent": 733, "children": [739, 740], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 60}}, {"id": 739, "type": "identifier", "text": "scs_malloc", "parent": 738, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 33}}, {"id": 740, "type": "argument_list", "text": "((1 + n) * sizeof(scs_int))", "parent": 738, "children": [741], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 60}}, {"id": 741, "type": "binary_expression", "text": "(1 + n) * sizeof(scs_int)", "parent": 740, "children": [742, 747, 748], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 59}}, {"id": 742, "type": "parenthesized_expression", "text": "(1 + n)", "parent": 741, "children": [743], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 41}}, {"id": 743, "type": "binary_expression", "text": "1 + n", "parent": 742, "children": [744, 745, 746], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 40}}, {"id": 744, "type": "number_literal", "text": "1", "parent": 743, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 36}}, {"id": 745, "type": "+", "text": "+", "parent": 743, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 38}}, {"id": 746, "type": "identifier", "text": "n", "parent": 743, "children": [], "start_point": {"row": 102, "column": 39}, "end_point": {"row": 102, "column": 40}}, {"id": 747, "type": "*", "text": "*", "parent": 741, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 43}}, {"id": 748, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 741, "children": [749], "start_point": {"row": 102, "column": 44}, "end_point": {"row": 102, "column": 59}}, {"id": 749, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 748, "children": [750], "start_point": {"row": 102, "column": 50}, "end_point": {"row": 102, "column": 59}}, {"id": 750, "type": "identifier", "text": "scs_int", "parent": 749, "children": [], "start_point": {"row": 102, "column": 51}, "end_point": {"row": 102, "column": 58}}, {"id": 751, "type": "call_expression", "text": "LDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv)", "parent": 604, "children": [752, 753], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 65}}, {"id": 752, "type": "identifier", "text": "LDL_symbolic", "parent": 751, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 13}}, {"id": 753, "type": "argument_list", "text": "(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv)", "parent": 751, "children": [754, 755, 758, 761, 767, 768, 769, 770, 771], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 65}}, {"id": 754, "type": "identifier", "text": "n", "parent": 753, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 15}}, {"id": 755, "type": "field_expression", "text": "A->p", "parent": 753, "children": [756, 757], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 21}}, {"id": 756, "type": "identifier", "text": "A", "parent": 755, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 18}}, {"id": 757, "type": "field_identifier", "text": "p", "parent": 755, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 21}}, {"id": 758, "type": "field_expression", "text": "A->i", "parent": 753, "children": [759, 760], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 27}}, {"id": 759, "type": "identifier", "text": "A", "parent": 758, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 24}}, {"id": 760, "type": "field_identifier", "text": "i", "parent": 758, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 27}}, {"id": 761, "type": "field_expression", "text": "(*L)->p", "parent": 753, "children": [762, 766], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 36}}, {"id": 762, "type": "parenthesized_expression", "text": "(*L)", "parent": 761, "children": [763], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 33}}, {"id": 763, "type": "pointer_expression", "text": "*L", "parent": 762, "children": [764, 765], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 32}}, {"id": 764, "type": "*", "text": "*", "parent": 763, "children": [], "start_point": {"row": 107, "column": 30}, "end_point": {"row": 107, "column": 31}}, {"id": 765, "type": "identifier", "text": "L", "parent": 763, "children": [], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 32}}, {"id": 766, "type": "field_identifier", "text": "p", "parent": 761, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 36}}, {"id": 767, "type": "identifier", "text": "Parent", "parent": 753, "children": [], "start_point": {"row": 107, "column": 38}, "end_point": {"row": 107, "column": 44}}, {"id": 768, "type": "identifier", "text": "Lnz", "parent": 753, "children": [], "start_point": {"row": 107, "column": 46}, "end_point": {"row": 107, "column": 49}}, {"id": 769, "type": "identifier", "text": "Flag", "parent": 753, "children": [], "start_point": {"row": 107, "column": 51}, "end_point": {"row": 107, "column": 55}}, {"id": 770, "type": "identifier", "text": "P", "parent": 753, "children": [], "start_point": {"row": 107, "column": 57}, "end_point": {"row": 107, "column": 58}}, {"id": 771, "type": "identifier", "text": "Pinv", "parent": 753, "children": [], "start_point": {"row": 107, "column": 60}, "end_point": {"row": 107, "column": 64}}, {"id": 772, "type": "assignment_expression", "text": "(*L)->nzmax = *((*L)->p + n)", "parent": 604, "children": [773, 779, 780], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 29}}, {"id": 773, "type": "field_expression", "text": "(*L)->nzmax", "parent": 772, "children": [774, 778], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 12}}, {"id": 774, "type": "parenthesized_expression", "text": "(*L)", "parent": 773, "children": [775], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 5}}, {"id": 775, "type": "pointer_expression", "text": "*L", "parent": 774, "children": [776, 777], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 4}}, {"id": 776, "type": "*", "text": "*", "parent": 775, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 3}}, {"id": 777, "type": "identifier", "text": "L", "parent": 775, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 4}}, {"id": 778, "type": "field_identifier", "text": "nzmax", "parent": 773, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 12}}, {"id": 779, "type": "=", "text": "=", "parent": 772, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 14}}, {"id": 780, "type": "pointer_expression", "text": "*((*L)->p + n)", "parent": 772, "children": [781, 782], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 29}}, {"id": 781, "type": "*", "text": "*", "parent": 780, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 16}}, {"id": 782, "type": "parenthesized_expression", "text": "((*L)->p + n)", "parent": 780, "children": [783], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 29}}, {"id": 783, "type": "binary_expression", "text": "(*L)->p + n", "parent": 782, "children": [784, 790, 791], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 28}}, {"id": 784, "type": "field_expression", "text": "(*L)->p", "parent": 783, "children": [785, 789], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 24}}, {"id": 785, "type": "parenthesized_expression", "text": "(*L)", "parent": 784, "children": [786], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 109, "column": 21}}, {"id": 786, "type": "pointer_expression", "text": "*L", "parent": 785, "children": [787, 788], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 20}}, {"id": 787, "type": "*", "text": "*", "parent": 786, "children": [], "start_point": {"row": 109, "column": 18}, "end_point": {"row": 109, "column": 19}}, {"id": 788, "type": "identifier", "text": "L", "parent": 786, "children": [], "start_point": {"row": 109, "column": 19}, "end_point": {"row": 109, "column": 20}}, {"id": 789, "type": "field_identifier", "text": "p", "parent": 784, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 24}}, {"id": 790, "type": "+", "text": "+", "parent": 783, "children": [], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 26}}, {"id": 791, "type": "identifier", "text": "n", "parent": 783, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 28}}, {"id": 792, "type": "assignment_expression", "text": "(*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float))", "parent": 604, "children": [793, 799, 800], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 68}}, {"id": 793, "type": "field_expression", "text": "(*L)->x", "parent": 792, "children": [794, 798], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 8}}, {"id": 794, "type": "parenthesized_expression", "text": "(*L)", "parent": 793, "children": [795], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 5}}, {"id": 795, "type": "pointer_expression", "text": "*L", "parent": 794, "children": [796, 797], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 4}}, {"id": 796, "type": "*", "text": "*", "parent": 795, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 3}}, {"id": 797, "type": "identifier", "text": "L", "parent": 795, "children": [], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 4}}, {"id": 798, "type": "field_identifier", "text": "x", "parent": 793, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 8}}, {"id": 799, "type": "=", "text": "=", "parent": 792, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 10}}, {"id": 800, "type": "cast_expression", "text": "(scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float))", "parent": 792, "children": [801, 805], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 68}}, {"id": 801, "type": "type_descriptor", "text": "scs_float *", "parent": 800, "children": [802, 803], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 23}}, {"id": 802, "type": "type_identifier", "text": "scs_float", "parent": 801, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 21}}, {"id": 803, "type": "abstract_pointer_declarator", "text": "*", "parent": 801, "children": [804], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 23}}, {"id": 804, "type": "*", "text": "*", "parent": 803, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 23}}, {"id": 805, "type": "call_expression", "text": "scs_malloc((*L)->nzmax * sizeof(scs_float))", "parent": 800, "children": [806, 807], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 68}}, {"id": 806, "type": "identifier", "text": "scs_malloc", "parent": 805, "children": [], "start_point": {"row": 110, "column": 25}, "end_point": {"row": 110, "column": 35}}, {"id": 807, "type": "argument_list", "text": "((*L)->nzmax * sizeof(scs_float))", "parent": 805, "children": [808], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 68}}, {"id": 808, "type": "binary_expression", "text": "(*L)->nzmax * sizeof(scs_float)", "parent": 807, "children": [809, 815, 816], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 67}}, {"id": 809, "type": "field_expression", "text": "(*L)->nzmax", "parent": 808, "children": [810, 814], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 47}}, {"id": 810, "type": "parenthesized_expression", "text": "(*L)", "parent": 809, "children": [811], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 40}}, {"id": 811, "type": "pointer_expression", "text": "*L", "parent": 810, "children": [812, 813], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 39}}, {"id": 812, "type": "*", "text": "*", "parent": 811, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 38}}, {"id": 813, "type": "identifier", "text": "L", "parent": 811, "children": [], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 39}}, {"id": 814, "type": "field_identifier", "text": "nzmax", "parent": 809, "children": [], "start_point": {"row": 110, "column": 42}, "end_point": {"row": 110, "column": 47}}, {"id": 815, "type": "*", "text": "*", "parent": 808, "children": [], "start_point": {"row": 110, "column": 48}, "end_point": {"row": 110, "column": 49}}, {"id": 816, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 808, "children": [817], "start_point": {"row": 110, "column": 50}, "end_point": {"row": 110, "column": 67}}, {"id": 817, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 816, "children": [818], "start_point": {"row": 110, "column": 56}, "end_point": {"row": 110, "column": 67}}, {"id": 818, "type": "identifier", "text": "scs_float", "parent": 817, "children": [], "start_point": {"row": 110, "column": 57}, "end_point": {"row": 110, "column": 66}}, {"id": 819, "type": "assignment_expression", "text": "(*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int))", "parent": 604, "children": [820, 826, 827], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 64}}, {"id": 820, "type": "field_expression", "text": "(*L)->i", "parent": 819, "children": [821, 825], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 8}}, {"id": 821, "type": "parenthesized_expression", "text": "(*L)", "parent": 820, "children": [822], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 5}}, {"id": 822, "type": "pointer_expression", "text": "*L", "parent": 821, "children": [823, 824], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 4}}, {"id": 823, "type": "*", "text": "*", "parent": 822, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 3}}, {"id": 824, "type": "identifier", "text": "L", "parent": 822, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 4}}, {"id": 825, "type": "field_identifier", "text": "i", "parent": 820, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 8}}, {"id": 826, "type": "=", "text": "=", "parent": 819, "children": [], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 10}}, {"id": 827, "type": "cast_expression", "text": "(scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int))", "parent": 819, "children": [828, 832], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 64}}, {"id": 828, "type": "type_descriptor", "text": "scs_int *", "parent": 827, "children": [829, 830], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 21}}, {"id": 829, "type": "type_identifier", "text": "scs_int", "parent": 828, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 19}}, {"id": 830, "type": "abstract_pointer_declarator", "text": "*", "parent": 828, "children": [831], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 21}}, {"id": 831, "type": "*", "text": "*", "parent": 830, "children": [], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 21}}, {"id": 832, "type": "call_expression", "text": "scs_malloc((*L)->nzmax * sizeof(scs_int))", "parent": 827, "children": [833, 834], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 64}}, {"id": 833, "type": "identifier", "text": "scs_malloc", "parent": 832, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 33}}, {"id": 834, "type": "argument_list", "text": "((*L)->nzmax * sizeof(scs_int))", "parent": 832, "children": [835], "start_point": {"row": 111, "column": 33}, "end_point": {"row": 111, "column": 64}}, {"id": 835, "type": "binary_expression", "text": "(*L)->nzmax * sizeof(scs_int)", "parent": 834, "children": [836, 842, 843], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 63}}, {"id": 836, "type": "field_expression", "text": "(*L)->nzmax", "parent": 835, "children": [837, 841], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 45}}, {"id": 837, "type": "parenthesized_expression", "text": "(*L)", "parent": 836, "children": [838], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 38}}, {"id": 838, "type": "pointer_expression", "text": "*L", "parent": 837, "children": [839, 840], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 37}}, {"id": 839, "type": "*", "text": "*", "parent": 838, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 36}}, {"id": 840, "type": "identifier", "text": "L", "parent": 838, "children": [], "start_point": {"row": 111, "column": 36}, "end_point": {"row": 111, "column": 37}}, {"id": 841, "type": "field_identifier", "text": "nzmax", "parent": 836, "children": [], "start_point": {"row": 111, "column": 40}, "end_point": {"row": 111, "column": 45}}, {"id": 842, "type": "*", "text": "*", "parent": 835, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 47}}, {"id": 843, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 835, "children": [844], "start_point": {"row": 111, "column": 48}, "end_point": {"row": 111, "column": 63}}, {"id": 844, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 843, "children": [845], "start_point": {"row": 111, "column": 54}, "end_point": {"row": 111, "column": 63}}, {"id": 845, "type": "identifier", "text": "scs_int", "parent": 844, "children": [], "start_point": {"row": 111, "column": 55}, "end_point": {"row": 111, "column": 62}}, {"id": 846, "type": "assignment_expression", "text": "*D = (scs_float *) scs_malloc(n * sizeof(scs_float))", "parent": 604, "children": [847, 850, 851], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 53}}, {"id": 847, "type": "pointer_expression", "text": "*D", "parent": 846, "children": [848, 849], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 3}}, {"id": 848, "type": "*", "text": "*", "parent": 847, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 2}}, {"id": 849, "type": "identifier", "text": "D", "parent": 847, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 3}}, {"id": 850, "type": "=", "text": "=", "parent": 846, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 5}}, {"id": 851, "type": "cast_expression", "text": "(scs_float *) scs_malloc(n * sizeof(scs_float))", "parent": 846, "children": [852, 856], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 53}}, {"id": 852, "type": "type_descriptor", "text": "scs_float *", "parent": 851, "children": [853, 854], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 18}}, {"id": 853, "type": "type_identifier", "text": "scs_float", "parent": 852, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 16}}, {"id": 854, "type": "abstract_pointer_declarator", "text": "*", "parent": 852, "children": [855], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 18}}, {"id": 855, "type": "*", "text": "*", "parent": 854, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 18}}, {"id": 856, "type": "call_expression", "text": "scs_malloc(n * sizeof(scs_float))", "parent": 851, "children": [857, 858], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 53}}, {"id": 857, "type": "identifier", "text": "scs_malloc", "parent": 856, "children": [], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 30}}, {"id": 858, "type": "argument_list", "text": "(n * sizeof(scs_float))", "parent": 856, "children": [859], "start_point": {"row": 112, "column": 30}, "end_point": {"row": 112, "column": 53}}, {"id": 859, "type": "binary_expression", "text": "n * sizeof(scs_float)", "parent": 858, "children": [860, 861, 862], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 52}}, {"id": 860, "type": "identifier", "text": "n", "parent": 859, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 32}}, {"id": 861, "type": "*", "text": "*", "parent": 859, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 34}}, {"id": 862, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 859, "children": [863], "start_point": {"row": 112, "column": 35}, "end_point": {"row": 112, "column": 52}}, {"id": 863, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 862, "children": [864], "start_point": {"row": 112, "column": 41}, "end_point": {"row": 112, "column": 52}}, {"id": 864, "type": "identifier", "text": "scs_float", "parent": 863, "children": [], "start_point": {"row": 112, "column": 42}, "end_point": {"row": 112, "column": 51}}, {"id": 865, "type": "if_statement", "text": "if (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n\t\treturn -1;", "parent": 604, "children": [866, 918], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 115, "column": 12}}, {"id": 866, "type": "parenthesized_expression", "text": "(!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)", "parent": 865, "children": [867], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 81}}, {"id": 867, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent", "parent": 866, "children": [868, 914, 915], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 80}}, {"id": 868, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz", "parent": 867, "children": [869, 910, 911], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 69}}, {"id": 869, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag", "parent": 868, "children": [870, 906, 907], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 61}}, {"id": 870, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern", "parent": 869, "children": [871, 902, 903], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 52}}, {"id": 871, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x || !Y", "parent": 870, "children": [872, 898, 899], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 40}}, {"id": 872, "type": "binary_expression", "text": "!(*D) || !(*L)->i || !(*L)->x", "parent": 871, "children": [873, 889, 890], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 34}}, {"id": 873, "type": "binary_expression", "text": "!(*D) || !(*L)->i", "parent": 872, "children": [874, 880, 881], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 22}}, {"id": 874, "type": "unary_expression", "text": "!(*D)", "parent": 873, "children": [875, 876], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 10}}, {"id": 875, "type": "!", "text": "!", "parent": 874, "children": [], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 6}}, {"id": 876, "type": "parenthesized_expression", "text": "(*D)", "parent": 874, "children": [877], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 10}}, {"id": 877, "type": "pointer_expression", "text": "*D", "parent": 876, "children": [878, 879], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 9}}, {"id": 878, "type": "*", "text": "*", "parent": 877, "children": [], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 8}}, {"id": 879, "type": "identifier", "text": "D", "parent": 877, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 9}}, {"id": 880, "type": "||", "text": "||", "parent": 873, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 13}}, {"id": 881, "type": "unary_expression", "text": "!(*L)->i", "parent": 873, "children": [882, 883], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 22}}, {"id": 882, "type": "!", "text": "!", "parent": 881, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 883, "type": "field_expression", "text": "(*L)->i", "parent": 881, "children": [884, 888], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 22}}, {"id": 884, "type": "parenthesized_expression", "text": "(*L)", "parent": 883, "children": [885], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 19}}, {"id": 885, "type": "pointer_expression", "text": "*L", "parent": 884, "children": [886, 887], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 18}}, {"id": 886, "type": "*", "text": "*", "parent": 885, "children": [], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 17}}, {"id": 887, "type": "identifier", "text": "L", "parent": 885, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 18}}, {"id": 888, "type": "field_identifier", "text": "i", "parent": 883, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 22}}, {"id": 889, "type": "||", "text": "||", "parent": 872, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 25}}, {"id": 890, "type": "unary_expression", "text": "!(*L)->x", "parent": 872, "children": [891, 892], "start_point": {"row": 114, "column": 26}, "end_point": {"row": 114, "column": 34}}, {"id": 891, "type": "!", "text": "!", "parent": 890, "children": [], "start_point": {"row": 114, "column": 26}, "end_point": {"row": 114, "column": 27}}, {"id": 892, "type": "field_expression", "text": "(*L)->x", "parent": 890, "children": [893, 897], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 34}}, {"id": 893, "type": "parenthesized_expression", "text": "(*L)", "parent": 892, "children": [894], "start_point": {"row": 114, "column": 27}, "end_point": {"row": 114, "column": 31}}, {"id": 894, "type": "pointer_expression", "text": "*L", "parent": 893, "children": [895, 896], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 30}}, {"id": 895, "type": "*", "text": "*", "parent": 894, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 29}}, {"id": 896, "type": "identifier", "text": "L", "parent": 894, "children": [], "start_point": {"row": 114, "column": 29}, "end_point": {"row": 114, "column": 30}}, {"id": 897, "type": "field_identifier", "text": "x", "parent": 892, "children": [], "start_point": {"row": 114, "column": 33}, "end_point": {"row": 114, "column": 34}}, {"id": 898, "type": "||", "text": "||", "parent": 871, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 37}}, {"id": 899, "type": "unary_expression", "text": "!Y", "parent": 871, "children": [900, 901], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 40}}, {"id": 900, "type": "!", "text": "!", "parent": 899, "children": [], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 39}}, {"id": 901, "type": "identifier", "text": "Y", "parent": 899, "children": [], "start_point": {"row": 114, "column": 39}, "end_point": {"row": 114, "column": 40}}, {"id": 902, "type": "||", "text": "||", "parent": 870, "children": [], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 43}}, {"id": 903, "type": "unary_expression", "text": "!Pattern", "parent": 870, "children": [904, 905], "start_point": {"row": 114, "column": 44}, "end_point": {"row": 114, "column": 52}}, {"id": 904, "type": "!", "text": "!", "parent": 903, "children": [], "start_point": {"row": 114, "column": 44}, "end_point": {"row": 114, "column": 45}}, {"id": 905, "type": "identifier", "text": "Pattern", "parent": 903, "children": [], "start_point": {"row": 114, "column": 45}, "end_point": {"row": 114, "column": 52}}, {"id": 906, "type": "||", "text": "||", "parent": 869, "children": [], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 55}}, {"id": 907, "type": "unary_expression", "text": "!Flag", "parent": 869, "children": [908, 909], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 61}}, {"id": 908, "type": "!", "text": "!", "parent": 907, "children": [], "start_point": {"row": 114, "column": 56}, "end_point": {"row": 114, "column": 57}}, {"id": 909, "type": "identifier", "text": "Flag", "parent": 907, "children": [], "start_point": {"row": 114, "column": 57}, "end_point": {"row": 114, "column": 61}}, {"id": 910, "type": "||", "text": "||", "parent": 868, "children": [], "start_point": {"row": 114, "column": 62}, "end_point": {"row": 114, "column": 64}}, {"id": 911, "type": "unary_expression", "text": "!Lnz", "parent": 868, "children": [912, 913], "start_point": {"row": 114, "column": 65}, "end_point": {"row": 114, "column": 69}}, {"id": 912, "type": "!", "text": "!", "parent": 911, "children": [], "start_point": {"row": 114, "column": 65}, "end_point": {"row": 114, "column": 66}}, {"id": 913, "type": "identifier", "text": "Lnz", "parent": 911, "children": [], "start_point": {"row": 114, "column": 66}, "end_point": {"row": 114, "column": 69}}, {"id": 914, "type": "||", "text": "||", "parent": 867, "children": [], "start_point": {"row": 114, "column": 70}, "end_point": {"row": 114, "column": 72}}, {"id": 915, "type": "unary_expression", "text": "!Parent", "parent": 867, "children": [916, 917], "start_point": {"row": 114, "column": 73}, "end_point": {"row": 114, "column": 80}}, {"id": 916, "type": "!", "text": "!", "parent": 915, "children": [], "start_point": {"row": 114, "column": 73}, "end_point": {"row": 114, "column": 74}}, {"id": 917, "type": "identifier", "text": "Parent", "parent": 915, "children": [], "start_point": {"row": 114, "column": 74}, "end_point": {"row": 114, "column": 80}}, {"id": 918, "type": "return_statement", "text": "return -1;", "parent": 865, "children": [919], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 12}}, {"id": 919, "type": "number_literal", "text": "-1", "parent": 918, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 11}}, {"id": 920, "type": "preproc_ifdef", "text": "#ifdef EXTRAVERBOSE\n\tscs_printf(\"numeric factorization\\n\");\n#endif", "parent": 604, "children": [921, 922, 928], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 921, "type": "#ifdef", "text": "#ifdef", "parent": 920, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 6}}, {"id": 922, "type": "identifier", "text": "EXTRAVERBOSE", "parent": 920, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 19}}, {"id": 923, "type": "call_expression", "text": "scs_printf(\"numeric factorization\\n\")", "parent": 920, "children": [924, 925], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 38}}, {"id": 924, "type": "identifier", "text": "scs_printf", "parent": 923, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 11}}, {"id": 925, "type": "argument_list", "text": "(\"numeric factorization\\n\")", "parent": 923, "children": [926], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 38}}, {"id": 926, "type": "string_literal", "text": "\"numeric factorization\\n\"", "parent": 925, "children": [927], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 37}}, {"id": 927, "type": "escape_sequence", "text": "\\n", "parent": 926, "children": [], "start_point": {"row": 118, "column": 34}, "end_point": {"row": 118, "column": 36}}, {"id": 928, "type": "#endif", "text": "#endif", "parent": 920, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 6}}, {"id": 929, "type": "assignment_expression", "text": "kk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)", "parent": 604, "children": [930, 931, 932], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 109}}, {"id": 930, "type": "identifier", "text": "kk", "parent": 929, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 3}}, {"id": 931, "type": "=", "text": "=", "parent": 929, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 5}}, {"id": 932, "type": "call_expression", "text": "LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)", "parent": 929, "children": [933, 934], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 109}}, {"id": 933, "type": "identifier", "text": "LDL_numeric", "parent": 932, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 17}}, {"id": 934, "type": "argument_list", "text": "(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv)", "parent": 932, "children": [935, 936, 939, 942, 945, 951, 952, 953, 959, 965, 968, 969, 970, 971, 972], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 109}}, {"id": 935, "type": "identifier", "text": "n", "parent": 934, "children": [], "start_point": {"row": 120, "column": 18}, "end_point": {"row": 120, "column": 19}}, {"id": 936, "type": "field_expression", "text": "A->p", "parent": 934, "children": [937, 938], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 25}}, {"id": 937, "type": "identifier", "text": "A", "parent": 936, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 22}}, {"id": 938, "type": "field_identifier", "text": "p", "parent": 936, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 25}}, {"id": 939, "type": "field_expression", "text": "A->i", "parent": 934, "children": [940, 941], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 31}}, {"id": 940, "type": "identifier", "text": "A", "parent": 939, "children": [], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 28}}, {"id": 941, "type": "field_identifier", "text": "i", "parent": 939, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 31}}, {"id": 942, "type": "field_expression", "text": "A->x", "parent": 934, "children": [943, 944], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 37}}, {"id": 943, "type": "identifier", "text": "A", "parent": 942, "children": [], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 34}}, {"id": 944, "type": "field_identifier", "text": "x", "parent": 942, "children": [], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 37}}, {"id": 945, "type": "field_expression", "text": "(*L)->p", "parent": 934, "children": [946, 950], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 46}}, {"id": 946, "type": "parenthesized_expression", "text": "(*L)", "parent": 945, "children": [947], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 43}}, {"id": 947, "type": "pointer_expression", "text": "*L", "parent": 946, "children": [948, 949], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 42}}, {"id": 948, "type": "*", "text": "*", "parent": 947, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 41}}, {"id": 949, "type": "identifier", "text": "L", "parent": 947, "children": [], "start_point": {"row": 120, "column": 41}, "end_point": {"row": 120, "column": 42}}, {"id": 950, "type": "field_identifier", "text": "p", "parent": 945, "children": [], "start_point": {"row": 120, "column": 45}, "end_point": {"row": 120, "column": 46}}, {"id": 951, "type": "identifier", "text": "Parent", "parent": 934, "children": [], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 54}}, {"id": 952, "type": "identifier", "text": "Lnz", "parent": 934, "children": [], "start_point": {"row": 120, "column": 56}, "end_point": {"row": 120, "column": 59}}, {"id": 953, "type": "field_expression", "text": "(*L)->i", "parent": 934, "children": [954, 958], "start_point": {"row": 120, "column": 61}, "end_point": {"row": 120, "column": 68}}, {"id": 954, "type": "parenthesized_expression", "text": "(*L)", "parent": 953, "children": [955], "start_point": {"row": 120, "column": 61}, "end_point": {"row": 120, "column": 65}}, {"id": 955, "type": "pointer_expression", "text": "*L", "parent": 954, "children": [956, 957], "start_point": {"row": 120, "column": 62}, "end_point": {"row": 120, "column": 64}}, {"id": 956, "type": "*", "text": "*", "parent": 955, "children": [], "start_point": {"row": 120, "column": 62}, "end_point": {"row": 120, "column": 63}}, {"id": 957, "type": "identifier", "text": "L", "parent": 955, "children": [], "start_point": {"row": 120, "column": 63}, "end_point": {"row": 120, "column": 64}}, {"id": 958, "type": "field_identifier", "text": "i", "parent": 953, "children": [], "start_point": {"row": 120, "column": 67}, "end_point": {"row": 120, "column": 68}}, {"id": 959, "type": "field_expression", "text": "(*L)->x", "parent": 934, "children": [960, 964], "start_point": {"row": 120, "column": 70}, "end_point": {"row": 120, "column": 77}}, {"id": 960, "type": "parenthesized_expression", "text": "(*L)", "parent": 959, "children": [961], "start_point": {"row": 120, "column": 70}, "end_point": {"row": 120, "column": 74}}, {"id": 961, "type": "pointer_expression", "text": "*L", "parent": 960, "children": [962, 963], "start_point": {"row": 120, "column": 71}, "end_point": {"row": 120, "column": 73}}, {"id": 962, "type": "*", "text": "*", "parent": 961, "children": [], "start_point": {"row": 120, "column": 71}, "end_point": {"row": 120, "column": 72}}, {"id": 963, "type": "identifier", "text": "L", "parent": 961, "children": [], "start_point": {"row": 120, "column": 72}, "end_point": {"row": 120, "column": 73}}, {"id": 964, "type": "field_identifier", "text": "x", "parent": 959, "children": [], "start_point": {"row": 120, "column": 76}, "end_point": {"row": 120, "column": 77}}, {"id": 965, "type": "pointer_expression", "text": "*D", "parent": 934, "children": [966, 967], "start_point": {"row": 120, "column": 79}, "end_point": {"row": 120, "column": 81}}, {"id": 966, "type": "*", "text": "*", "parent": 965, "children": [], "start_point": {"row": 120, "column": 79}, "end_point": {"row": 120, "column": 80}}, {"id": 967, "type": "identifier", "text": "D", "parent": 965, "children": [], "start_point": {"row": 120, "column": 80}, "end_point": {"row": 120, "column": 81}}, {"id": 968, "type": "identifier", "text": "Y", "parent": 934, "children": [], "start_point": {"row": 120, "column": 83}, "end_point": {"row": 120, "column": 84}}, {"id": 969, "type": "identifier", "text": "Pattern", "parent": 934, "children": [], "start_point": {"row": 120, "column": 86}, "end_point": {"row": 120, "column": 93}}, {"id": 970, "type": "identifier", "text": "Flag", "parent": 934, "children": [], "start_point": {"row": 120, "column": 95}, "end_point": {"row": 120, "column": 99}}, {"id": 971, "type": "identifier", "text": "P", "parent": 934, "children": [], "start_point": {"row": 120, "column": 101}, "end_point": {"row": 120, "column": 102}}, {"id": 972, "type": "identifier", "text": "Pinv", "parent": 934, "children": [], "start_point": {"row": 120, "column": 104}, "end_point": {"row": 120, "column": 108}}, {"id": 973, "type": "preproc_ifdef", "text": "#ifdef EXTRAVERBOSE\n\tscs_printf(\"finished numeric factorization\\n\");\n#endif", "parent": 604, "children": [974, 975, 981], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 974, "type": "#ifdef", "text": "#ifdef", "parent": 973, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 6}}, {"id": 975, "type": "identifier", "text": "EXTRAVERBOSE", "parent": 973, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 19}}, {"id": 976, "type": "call_expression", "text": "scs_printf(\"finished numeric factorization\\n\")", "parent": 973, "children": [977, 978], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 47}}, {"id": 977, "type": "identifier", "text": "scs_printf", "parent": 976, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 11}}, {"id": 978, "type": "argument_list", "text": "(\"finished numeric factorization\\n\")", "parent": 976, "children": [979], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 47}}, {"id": 979, "type": "string_literal", "text": "\"finished numeric factorization\\n\"", "parent": 978, "children": [980], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 46}}, {"id": 980, "type": "escape_sequence", "text": "\\n", "parent": 979, "children": [], "start_point": {"row": 122, "column": 43}, "end_point": {"row": 122, "column": 45}}, {"id": 981, "type": "#endif", "text": "#endif", "parent": 973, "children": [], "start_point": {"row": 123, "column": 0}, "end_point": {"row": 123, "column": 6}}, {"id": 982, "type": "call_expression", "text": "scs_free(Parent)", "parent": 604, "children": [983, 984], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 17}}, {"id": 983, "type": "identifier", "text": "scs_free", "parent": 982, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 9}}, {"id": 984, "type": "argument_list", "text": "(Parent)", "parent": 982, "children": [985], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 17}}, {"id": 985, "type": "identifier", "text": "Parent", "parent": 984, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 16}}, {"id": 986, "type": "call_expression", "text": "scs_free(Lnz)", "parent": 604, "children": [987, 988], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 14}}, {"id": 987, "type": "identifier", "text": "scs_free", "parent": 986, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 9}}, {"id": 988, "type": "argument_list", "text": "(Lnz)", "parent": 986, "children": [989], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 14}}, {"id": 989, "type": "identifier", "text": "Lnz", "parent": 988, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 13}}, {"id": 990, "type": "call_expression", "text": "scs_free(Flag)", "parent": 604, "children": [991, 992], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 15}}, {"id": 991, "type": "identifier", "text": "scs_free", "parent": 990, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 992, "type": "argument_list", "text": "(Flag)", "parent": 990, "children": [993], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 15}}, {"id": 993, "type": "identifier", "text": "Flag", "parent": 992, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 14}}, {"id": 994, "type": "call_expression", "text": "scs_free(Pattern)", "parent": 604, "children": [995, 996], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 18}}, {"id": 995, "type": "identifier", "text": "scs_free", "parent": 994, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 9}}, {"id": 996, "type": "argument_list", "text": "(Pattern)", "parent": 994, "children": [997], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 18}}, {"id": 997, "type": "identifier", "text": "Pattern", "parent": 996, "children": [], "start_point": {"row": 128, "column": 10}, "end_point": {"row": 128, "column": 17}}, {"id": 998, "type": "call_expression", "text": "scs_free(Y)", "parent": 604, "children": [999, 1000], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 12}}, {"id": 999, "type": "identifier", "text": "scs_free", "parent": 998, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 9}}, {"id": 1000, "type": "argument_list", "text": "(Y)", "parent": 998, "children": [1001], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 12}}, {"id": 1001, "type": "identifier", "text": "Y", "parent": 1000, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 1002, "type": "return_statement", "text": "return (n - kk);", "parent": 604, "children": [1003], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 17}}, {"id": 1003, "type": "parenthesized_expression", "text": "(n - kk)", "parent": 1002, "children": [1004], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 16}}, {"id": 1004, "type": "binary_expression", "text": "n - kk", "parent": 1003, "children": [1005, 1006, 1007], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 15}}, {"id": 1005, "type": "identifier", "text": "n", "parent": 1004, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 10}}, {"id": 1006, "type": "-", "text": "-", "parent": 1004, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 12}}, {"id": 1007, "type": "identifier", "text": "kk", "parent": 1004, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 15}}, {"id": 1008, "type": "function_definition", "text": "void LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) {\n\t/* solves PLDL'P' x = b for x */\n\tscs_int n = L->n;\n\tif (P == NULL) {\n\t\tif (x != b) /* if they're different addresses */\n\t\t\tmemcpy(x, b, n * sizeof(scs_float));\n\t\tLDL_lsolve(n, x, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, x, D);\n\t\tLDL_ltsolve(n, x, L->p, L->i, L->x);\n\t} else {\n\t\tLDL_perm(n, bp, b, P);\n\t\tLDL_lsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, bp, D);\n\t\tLDL_ltsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_permt(n, x, bp, P);\n\t}\n}", "parent": null, "children": [1009, 1010], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 149, "column": 1}}, {"id": 1009, "type": "primitive_type", "text": "void", "parent": 1008, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 4}}, {"id": 1010, "type": "function_declarator", "text": "LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp)", "parent": 1008, "children": [1011, 1012], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 94}}, {"id": 1011, "type": "identifier", "text": "LDLSolve", "parent": 1010, "children": [], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 13}}, {"id": 1012, "type": "parameter_list", "text": "(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp)", "parent": 1010, "children": [1013, 1018, 1022, 1027, 1031, 1035], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 94}}, {"id": 1013, "type": "parameter_declaration", "text": "scs_float *x", "parent": 1012, "children": [1014, 1015], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 26}}, {"id": 1014, "type": "type_identifier", "text": "scs_float", "parent": 1013, "children": [], "start_point": {"row": 133, "column": 14}, "end_point": {"row": 133, "column": 23}}, {"id": 1015, "type": "pointer_declarator", "text": "*x", "parent": 1013, "children": [1016, 1017], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 26}}, {"id": 1016, "type": "*", "text": "*", "parent": 1015, "children": [], "start_point": {"row": 133, "column": 24}, "end_point": {"row": 133, "column": 25}}, {"id": 1017, "type": "identifier", "text": "x", "parent": 1015, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 26}}, {"id": 1018, "type": "parameter_declaration", "text": "scs_float b[]", "parent": 1012, "children": [1019, 1020], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 41}}, {"id": 1019, "type": "type_identifier", "text": "scs_float", "parent": 1018, "children": [], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 37}}, {"id": 1020, "type": "array_declarator", "text": "b[]", "parent": 1018, "children": [1021], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 41}}, {"id": 1021, "type": "identifier", "text": "b", "parent": 1020, "children": [], "start_point": {"row": 133, "column": 38}, "end_point": {"row": 133, "column": 39}}, {"id": 1022, "type": "parameter_declaration", "text": "cs * L", "parent": 1012, "children": [1023, 1024], "start_point": {"row": 133, "column": 43}, "end_point": {"row": 133, "column": 49}}, {"id": 1023, "type": "type_identifier", "text": "cs", "parent": 1022, "children": [], "start_point": {"row": 133, "column": 43}, "end_point": {"row": 133, "column": 45}}, {"id": 1024, "type": "pointer_declarator", "text": "* L", "parent": 1022, "children": [1025, 1026], "start_point": {"row": 133, "column": 46}, "end_point": {"row": 133, "column": 49}}, {"id": 1025, "type": "*", "text": "*", "parent": 1024, "children": [], "start_point": {"row": 133, "column": 46}, "end_point": {"row": 133, "column": 47}}, {"id": 1026, "type": "identifier", "text": "L", "parent": 1024, "children": [], "start_point": {"row": 133, "column": 48}, "end_point": {"row": 133, "column": 49}}, {"id": 1027, "type": "parameter_declaration", "text": "scs_float D[]", "parent": 1012, "children": [1028, 1029], "start_point": {"row": 133, "column": 51}, "end_point": {"row": 133, "column": 64}}, {"id": 1028, "type": "type_identifier", "text": "scs_float", "parent": 1027, "children": [], "start_point": {"row": 133, "column": 51}, "end_point": {"row": 133, "column": 60}}, {"id": 1029, "type": "array_declarator", "text": "D[]", "parent": 1027, "children": [1030], "start_point": {"row": 133, "column": 61}, "end_point": {"row": 133, "column": 64}}, {"id": 1030, "type": "identifier", "text": "D", "parent": 1029, "children": [], "start_point": {"row": 133, "column": 61}, "end_point": {"row": 133, "column": 62}}, {"id": 1031, "type": "parameter_declaration", "text": "scs_int P[]", "parent": 1012, "children": [1032, 1033], "start_point": {"row": 133, "column": 66}, "end_point": {"row": 133, "column": 77}}, {"id": 1032, "type": "type_identifier", "text": "scs_int", "parent": 1031, "children": [], "start_point": {"row": 133, "column": 66}, "end_point": {"row": 133, "column": 73}}, {"id": 1033, "type": "array_declarator", "text": "P[]", "parent": 1031, "children": [1034], "start_point": {"row": 133, "column": 74}, "end_point": {"row": 133, "column": 77}}, {"id": 1034, "type": "identifier", "text": "P", "parent": 1033, "children": [], "start_point": {"row": 133, "column": 74}, "end_point": {"row": 133, "column": 75}}, {"id": 1035, "type": "parameter_declaration", "text": "scs_float * bp", "parent": 1012, "children": [1036, 1037], "start_point": {"row": 133, "column": 79}, "end_point": {"row": 133, "column": 93}}, {"id": 1036, "type": "type_identifier", "text": "scs_float", "parent": 1035, "children": [], "start_point": {"row": 133, "column": 79}, "end_point": {"row": 133, "column": 88}}, {"id": 1037, "type": "pointer_declarator", "text": "* bp", "parent": 1035, "children": [1038, 1039], "start_point": {"row": 133, "column": 89}, "end_point": {"row": 133, "column": 93}}, {"id": 1038, "type": "*", "text": "*", "parent": 1037, "children": [], "start_point": {"row": 133, "column": 89}, "end_point": {"row": 133, "column": 90}}, {"id": 1039, "type": "identifier", "text": "bp", "parent": 1037, "children": [], "start_point": {"row": 133, "column": 91}, "end_point": {"row": 133, "column": 93}}, {"id": 1040, "type": "declaration", "text": "scs_int n = L->n;", "parent": 1008, "children": [1041, 1042], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 18}}, {"id": 1041, "type": "type_identifier", "text": "scs_int", "parent": 1040, "children": [], "start_point": {"row": 135, "column": 1}, "end_point": {"row": 135, "column": 8}}, {"id": 1042, "type": "init_declarator", "text": "n = L->n", "parent": 1040, "children": [1043, 1044, 1045], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 17}}, {"id": 1043, "type": "identifier", "text": "n", "parent": 1042, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 10}}, {"id": 1044, "type": "=", "text": "=", "parent": 1042, "children": [], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 12}}, {"id": 1045, "type": "field_expression", "text": "L->n", "parent": 1042, "children": [1046, 1047], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 17}}, {"id": 1046, "type": "identifier", "text": "L", "parent": 1045, "children": [], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 14}}, {"id": 1047, "type": "field_identifier", "text": "n", "parent": 1045, "children": [], "start_point": {"row": 135, "column": 16}, "end_point": {"row": 135, "column": 17}}, {"id": 1048, "type": "if_statement", "text": "if (P == NULL) {\n\t\tif (x != b) /* if they're different addresses */\n\t\t\tmemcpy(x, b, n * sizeof(scs_float));\n\t\tLDL_lsolve(n, x, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, x, D);\n\t\tLDL_ltsolve(n, x, L->p, L->i, L->x);\n\t} else {\n\t\tLDL_perm(n, bp, b, P);\n\t\tLDL_lsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, bp, D);\n\t\tLDL_ltsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_permt(n, x, bp, P);\n\t}", "parent": 1008, "children": [1049, 1106], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 148, "column": 2}}, {"id": 1049, "type": "parenthesized_expression", "text": "(P == NULL)", "parent": 1048, "children": [1050], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 15}}, {"id": 1050, "type": "binary_expression", "text": "P == NULL", "parent": 1049, "children": [1051, 1052, 1053], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 14}}, {"id": 1051, "type": "identifier", "text": "P", "parent": 1050, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 6}}, {"id": 1052, "type": "==", "text": "==", "parent": 1050, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 9}}, {"id": 1053, "type": "null", "text": "NULL", "parent": 1050, "children": [1054], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 14}}, {"id": 1054, "type": "NULL", "text": "NULL", "parent": 1053, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 14}}, {"id": 1055, "type": "if_statement", "text": "if (x != b) /* if they're different addresses */\n\t\t\tmemcpy(x, b, n * sizeof(scs_float));", "parent": 1048, "children": [1056], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 138, "column": 39}}, {"id": 1056, "type": "parenthesized_expression", "text": "(x != b)", "parent": 1055, "children": [1057], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 13}}, {"id": 1057, "type": "binary_expression", "text": "x != b", "parent": 1056, "children": [1058, 1059, 1060], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 12}}, {"id": 1058, "type": "identifier", "text": "x", "parent": 1057, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 7}}, {"id": 1059, "type": "!=", "text": "!=", "parent": 1057, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 10}}, {"id": 1060, "type": "identifier", "text": "b", "parent": 1057, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 12}}, {"id": 1061, "type": "call_expression", "text": "memcpy(x, b, n * sizeof(scs_float))", "parent": 1055, "children": [1062, 1063], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 38}}, {"id": 1062, "type": "identifier", "text": "memcpy", "parent": 1061, "children": [], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 9}}, {"id": 1063, "type": "argument_list", "text": "(x, b, n * sizeof(scs_float))", "parent": 1061, "children": [1064, 1065, 1066], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 38}}, {"id": 1064, "type": "identifier", "text": "x", "parent": 1063, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 11}}, {"id": 1065, "type": "identifier", "text": "b", "parent": 1063, "children": [], "start_point": {"row": 138, "column": 13}, "end_point": {"row": 138, "column": 14}}, {"id": 1066, "type": "binary_expression", "text": "n * sizeof(scs_float)", "parent": 1063, "children": [1067, 1068, 1069], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 37}}, {"id": 1067, "type": "identifier", "text": "n", "parent": 1066, "children": [], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 17}}, {"id": 1068, "type": "*", "text": "*", "parent": 1066, "children": [], "start_point": {"row": 138, "column": 18}, "end_point": {"row": 138, "column": 19}}, {"id": 1069, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 1066, "children": [1070], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 37}}, {"id": 1070, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 1069, "children": [1071], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 37}}, {"id": 1071, "type": "identifier", "text": "scs_float", "parent": 1070, "children": [], "start_point": {"row": 138, "column": 27}, "end_point": {"row": 138, "column": 36}}, {"id": 1072, "type": "call_expression", "text": "LDL_lsolve(n, x, L->p, L->i, L->x)", "parent": 1048, "children": [1073, 1074], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 36}}, {"id": 1073, "type": "identifier", "text": "LDL_lsolve", "parent": 1072, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 12}}, {"id": 1074, "type": "argument_list", "text": "(n, x, L->p, L->i, L->x)", "parent": 1072, "children": [1075, 1076, 1077, 1080, 1083], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 36}}, {"id": 1075, "type": "identifier", "text": "n", "parent": 1074, "children": [], "start_point": {"row": 139, "column": 13}, "end_point": {"row": 139, "column": 14}}, {"id": 1076, "type": "identifier", "text": "x", "parent": 1074, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 17}}, {"id": 1077, "type": "field_expression", "text": "L->p", "parent": 1074, "children": [1078, 1079], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 23}}, {"id": 1078, "type": "identifier", "text": "L", "parent": 1077, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 20}}, {"id": 1079, "type": "field_identifier", "text": "p", "parent": 1077, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 23}}, {"id": 1080, "type": "field_expression", "text": "L->i", "parent": 1074, "children": [1081, 1082], "start_point": {"row": 139, "column": 25}, "end_point": {"row": 139, "column": 29}}, {"id": 1081, "type": "identifier", "text": "L", "parent": 1080, "children": [], "start_point": {"row": 139, "column": 25}, "end_point": {"row": 139, "column": 26}}, {"id": 1082, "type": "field_identifier", "text": "i", "parent": 1080, "children": [], "start_point": {"row": 139, "column": 28}, "end_point": {"row": 139, "column": 29}}, {"id": 1083, "type": "field_expression", "text": "L->x", "parent": 1074, "children": [1084, 1085], "start_point": {"row": 139, "column": 31}, "end_point": {"row": 139, "column": 35}}, {"id": 1084, "type": "identifier", "text": "L", "parent": 1083, "children": [], "start_point": {"row": 139, "column": 31}, "end_point": {"row": 139, "column": 32}}, {"id": 1085, "type": "field_identifier", "text": "x", "parent": 1083, "children": [], "start_point": {"row": 139, "column": 34}, "end_point": {"row": 139, "column": 35}}, {"id": 1086, "type": "call_expression", "text": "LDL_dsolve(n, x, D)", "parent": 1048, "children": [1087, 1088], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 21}}, {"id": 1087, "type": "identifier", "text": "LDL_dsolve", "parent": 1086, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 12}}, {"id": 1088, "type": "argument_list", "text": "(n, x, D)", "parent": 1086, "children": [1089, 1090, 1091], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 21}}, {"id": 1089, "type": "identifier", "text": "n", "parent": 1088, "children": [], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 14}}, {"id": 1090, "type": "identifier", "text": "x", "parent": 1088, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 17}}, {"id": 1091, "type": "identifier", "text": "D", "parent": 1088, "children": [], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 20}}, {"id": 1092, "type": "call_expression", "text": "LDL_ltsolve(n, x, L->p, L->i, L->x)", "parent": 1048, "children": [1093, 1094], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 37}}, {"id": 1093, "type": "identifier", "text": "LDL_ltsolve", "parent": 1092, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 13}}, {"id": 1094, "type": "argument_list", "text": "(n, x, L->p, L->i, L->x)", "parent": 1092, "children": [1095, 1096, 1097, 1100, 1103], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 37}}, {"id": 1095, "type": "identifier", "text": "n", "parent": 1094, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 1096, "type": "identifier", "text": "x", "parent": 1094, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 18}}, {"id": 1097, "type": "field_expression", "text": "L->p", "parent": 1094, "children": [1098, 1099], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 24}}, {"id": 1098, "type": "identifier", "text": "L", "parent": 1097, "children": [], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 21}}, {"id": 1099, "type": "field_identifier", "text": "p", "parent": 1097, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 24}}, {"id": 1100, "type": "field_expression", "text": "L->i", "parent": 1094, "children": [1101, 1102], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 30}}, {"id": 1101, "type": "identifier", "text": "L", "parent": 1100, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 27}}, {"id": 1102, "type": "field_identifier", "text": "i", "parent": 1100, "children": [], "start_point": {"row": 141, "column": 29}, "end_point": {"row": 141, "column": 30}}, {"id": 1103, "type": "field_expression", "text": "L->x", "parent": 1094, "children": [1104, 1105], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 36}}, {"id": 1104, "type": "identifier", "text": "L", "parent": 1103, "children": [], "start_point": {"row": 141, "column": 32}, "end_point": {"row": 141, "column": 33}}, {"id": 1105, "type": "field_identifier", "text": "x", "parent": 1103, "children": [], "start_point": {"row": 141, "column": 35}, "end_point": {"row": 141, "column": 36}}, {"id": 1106, "type": "else_clause", "text": "else {\n\t\tLDL_perm(n, bp, b, P);\n\t\tLDL_lsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, bp, D);\n\t\tLDL_ltsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_permt(n, x, bp, P);\n\t}", "parent": 1048, "children": [], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 148, "column": 2}}, {"id": 1107, "type": "call_expression", "text": "LDL_perm(n, bp, b, P)", "parent": 1106, "children": [1108, 1109], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 23}}, {"id": 1108, "type": "identifier", "text": "LDL_perm", "parent": 1107, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 10}}, {"id": 1109, "type": "argument_list", "text": "(n, bp, b, P)", "parent": 1107, "children": [1110, 1111, 1112, 1113], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 23}}, {"id": 1110, "type": "identifier", "text": "n", "parent": 1109, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 12}}, {"id": 1111, "type": "identifier", "text": "bp", "parent": 1109, "children": [], "start_point": {"row": 143, "column": 14}, "end_point": {"row": 143, "column": 16}}, {"id": 1112, "type": "identifier", "text": "b", "parent": 1109, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 19}}, {"id": 1113, "type": "identifier", "text": "P", "parent": 1109, "children": [], "start_point": {"row": 143, "column": 21}, "end_point": {"row": 143, "column": 22}}, {"id": 1114, "type": "call_expression", "text": "LDL_lsolve(n, bp, L->p, L->i, L->x)", "parent": 1106, "children": [1115, 1116], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 37}}, {"id": 1115, "type": "identifier", "text": "LDL_lsolve", "parent": 1114, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 12}}, {"id": 1116, "type": "argument_list", "text": "(n, bp, L->p, L->i, L->x)", "parent": 1114, "children": [1117, 1118, 1119, 1122, 1125], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 37}}, {"id": 1117, "type": "identifier", "text": "n", "parent": 1116, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 14}}, {"id": 1118, "type": "identifier", "text": "bp", "parent": 1116, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 18}}, {"id": 1119, "type": "field_expression", "text": "L->p", "parent": 1116, "children": [1120, 1121], "start_point": {"row": 144, "column": 20}, "end_point": {"row": 144, "column": 24}}, {"id": 1120, "type": "identifier", "text": "L", "parent": 1119, "children": [], "start_point": {"row": 144, "column": 20}, "end_point": {"row": 144, "column": 21}}, {"id": 1121, "type": "field_identifier", "text": "p", "parent": 1119, "children": [], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 24}}, {"id": 1122, "type": "field_expression", "text": "L->i", "parent": 1116, "children": [1123, 1124], "start_point": {"row": 144, "column": 26}, "end_point": {"row": 144, "column": 30}}, {"id": 1123, "type": "identifier", "text": "L", "parent": 1122, "children": [], "start_point": {"row": 144, "column": 26}, "end_point": {"row": 144, "column": 27}}, {"id": 1124, "type": "field_identifier", "text": "i", "parent": 1122, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 30}}, {"id": 1125, "type": "field_expression", "text": "L->x", "parent": 1116, "children": [1126, 1127], "start_point": {"row": 144, "column": 32}, "end_point": {"row": 144, "column": 36}}, {"id": 1126, "type": "identifier", "text": "L", "parent": 1125, "children": [], "start_point": {"row": 144, "column": 32}, "end_point": {"row": 144, "column": 33}}, {"id": 1127, "type": "field_identifier", "text": "x", "parent": 1125, "children": [], "start_point": {"row": 144, "column": 35}, "end_point": {"row": 144, "column": 36}}, {"id": 1128, "type": "call_expression", "text": "LDL_dsolve(n, bp, D)", "parent": 1106, "children": [1129, 1130], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 22}}, {"id": 1129, "type": "identifier", "text": "LDL_dsolve", "parent": 1128, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 12}}, {"id": 1130, "type": "argument_list", "text": "(n, bp, D)", "parent": 1128, "children": [1131, 1132, 1133], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 22}}, {"id": 1131, "type": "identifier", "text": "n", "parent": 1130, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 14}}, {"id": 1132, "type": "identifier", "text": "bp", "parent": 1130, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 18}}, {"id": 1133, "type": "identifier", "text": "D", "parent": 1130, "children": [], "start_point": {"row": 145, "column": 20}, "end_point": {"row": 145, "column": 21}}, {"id": 1134, "type": "call_expression", "text": "LDL_ltsolve(n, bp, L->p, L->i, L->x)", "parent": 1106, "children": [1135, 1136], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 38}}, {"id": 1135, "type": "identifier", "text": "LDL_ltsolve", "parent": 1134, "children": [], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 13}}, {"id": 1136, "type": "argument_list", "text": "(n, bp, L->p, L->i, L->x)", "parent": 1134, "children": [1137, 1138, 1139, 1142, 1145], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 38}}, {"id": 1137, "type": "identifier", "text": "n", "parent": 1136, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 15}}, {"id": 1138, "type": "identifier", "text": "bp", "parent": 1136, "children": [], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 19}}, {"id": 1139, "type": "field_expression", "text": "L->p", "parent": 1136, "children": [1140, 1141], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 25}}, {"id": 1140, "type": "identifier", "text": "L", "parent": 1139, "children": [], "start_point": {"row": 146, "column": 21}, "end_point": {"row": 146, "column": 22}}, {"id": 1141, "type": "field_identifier", "text": "p", "parent": 1139, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 25}}, {"id": 1142, "type": "field_expression", "text": "L->i", "parent": 1136, "children": [1143, 1144], "start_point": {"row": 146, "column": 27}, "end_point": {"row": 146, "column": 31}}, {"id": 1143, "type": "identifier", "text": "L", "parent": 1142, "children": [], "start_point": {"row": 146, "column": 27}, "end_point": {"row": 146, "column": 28}}, {"id": 1144, "type": "field_identifier", "text": "i", "parent": 1142, "children": [], "start_point": {"row": 146, "column": 30}, "end_point": {"row": 146, "column": 31}}, {"id": 1145, "type": "field_expression", "text": "L->x", "parent": 1136, "children": [1146, 1147], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 37}}, {"id": 1146, "type": "identifier", "text": "L", "parent": 1145, "children": [], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 34}}, {"id": 1147, "type": "field_identifier", "text": "x", "parent": 1145, "children": [], "start_point": {"row": 146, "column": 36}, "end_point": {"row": 146, "column": 37}}, {"id": 1148, "type": "call_expression", "text": "LDL_permt(n, x, bp, P)", "parent": 1106, "children": [1149, 1150], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 24}}, {"id": 1149, "type": "identifier", "text": "LDL_permt", "parent": 1148, "children": [], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 147, "column": 11}}, {"id": 1150, "type": "argument_list", "text": "(n, x, bp, P)", "parent": 1148, "children": [1151, 1152, 1153, 1154], "start_point": {"row": 147, "column": 11}, "end_point": {"row": 147, "column": 24}}, {"id": 1151, "type": "identifier", "text": "n", "parent": 1150, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 13}}, {"id": 1152, "type": "identifier", "text": "x", "parent": 1150, "children": [], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 16}}, {"id": 1153, "type": "identifier", "text": "bp", "parent": 1150, "children": [], "start_point": {"row": 147, "column": 18}, "end_point": {"row": 147, "column": 20}}, {"id": 1154, "type": "identifier", "text": "P", "parent": 1150, "children": [], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 23}}, {"id": 1155, "type": "function_definition", "text": "void _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n\t/* y = A'*x\n\t A in column compressed format\n\t parallelizes over columns (rows of A')\n\t */\n\tscs_int p, j;\n\tscs_int c1, c2;\n\tscs_float yj;\n#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif\n\tfor (j = 0; j < n; j++) {\n\t\tyj = y[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\tyj += Ax[p] * x[Ai[p]];\n\t\t}\n\t\ty[j] = yj;\n\t}\n}", "parent": null, "children": [1156, 1157], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 1156, "type": "primitive_type", "text": "void", "parent": 1155, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 4}}, {"id": 1157, "type": "function_declarator", "text": "_accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)", "parent": 1155, "children": [1158, 1159], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 108}}, {"id": 1158, "type": "identifier", "text": "_accumByAtrans", "parent": 1157, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 19}}, {"id": 1159, "type": "parameter_list", "text": "(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)", "parent": 1157, "children": [1160, 1163, 1168, 1173, 1178, 1183], "start_point": {"row": 151, "column": 19}, "end_point": {"row": 151, "column": 108}}, {"id": 1160, "type": "parameter_declaration", "text": "scs_int n", "parent": 1159, "children": [1161, 1162], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 29}}, {"id": 1161, "type": "type_identifier", "text": "scs_int", "parent": 1160, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 27}}, {"id": 1162, "type": "identifier", "text": "n", "parent": 1160, "children": [], "start_point": {"row": 151, "column": 28}, "end_point": {"row": 151, "column": 29}}, {"id": 1163, "type": "parameter_declaration", "text": "scs_float * Ax", "parent": 1159, "children": [1164, 1165], "start_point": {"row": 151, "column": 31}, "end_point": {"row": 151, "column": 45}}, {"id": 1164, "type": "type_identifier", "text": "scs_float", "parent": 1163, "children": [], "start_point": {"row": 151, "column": 31}, "end_point": {"row": 151, "column": 40}}, {"id": 1165, "type": "pointer_declarator", "text": "* Ax", "parent": 1163, "children": [1166, 1167], "start_point": {"row": 151, "column": 41}, "end_point": {"row": 151, "column": 45}}, {"id": 1166, "type": "*", "text": "*", "parent": 1165, "children": [], "start_point": {"row": 151, "column": 41}, "end_point": {"row": 151, "column": 42}}, {"id": 1167, "type": "identifier", "text": "Ax", "parent": 1165, "children": [], "start_point": {"row": 151, "column": 43}, "end_point": {"row": 151, "column": 45}}, {"id": 1168, "type": "parameter_declaration", "text": "scs_int * Ai", "parent": 1159, "children": [1169, 1170], "start_point": {"row": 151, "column": 47}, "end_point": {"row": 151, "column": 59}}, {"id": 1169, "type": "type_identifier", "text": "scs_int", "parent": 1168, "children": [], "start_point": {"row": 151, "column": 47}, "end_point": {"row": 151, "column": 54}}, {"id": 1170, "type": "pointer_declarator", "text": "* Ai", "parent": 1168, "children": [1171, 1172], "start_point": {"row": 151, "column": 55}, "end_point": {"row": 151, "column": 59}}, {"id": 1171, "type": "*", "text": "*", "parent": 1170, "children": [], "start_point": {"row": 151, "column": 55}, "end_point": {"row": 151, "column": 56}}, {"id": 1172, "type": "identifier", "text": "Ai", "parent": 1170, "children": [], "start_point": {"row": 151, "column": 57}, "end_point": {"row": 151, "column": 59}}, {"id": 1173, "type": "parameter_declaration", "text": "scs_int * Ap", "parent": 1159, "children": [1174, 1175], "start_point": {"row": 151, "column": 61}, "end_point": {"row": 151, "column": 73}}, {"id": 1174, "type": "type_identifier", "text": "scs_int", "parent": 1173, "children": [], "start_point": {"row": 151, "column": 61}, "end_point": {"row": 151, "column": 68}}, {"id": 1175, "type": "pointer_declarator", "text": "* Ap", "parent": 1173, "children": [1176, 1177], "start_point": {"row": 151, "column": 69}, "end_point": {"row": 151, "column": 73}}, {"id": 1176, "type": "*", "text": "*", "parent": 1175, "children": [], "start_point": {"row": 151, "column": 69}, "end_point": {"row": 151, "column": 70}}, {"id": 1177, "type": "identifier", "text": "Ap", "parent": 1175, "children": [], "start_point": {"row": 151, "column": 71}, "end_point": {"row": 151, "column": 73}}, {"id": 1178, "type": "parameter_declaration", "text": "const scs_float *x", "parent": 1159, "children": [1179, 1180], "start_point": {"row": 151, "column": 75}, "end_point": {"row": 151, "column": 93}}, {"id": 1179, "type": "type_identifier", "text": "scs_float", "parent": 1178, "children": [], "start_point": {"row": 151, "column": 81}, "end_point": {"row": 151, "column": 90}}, {"id": 1180, "type": "pointer_declarator", "text": "*x", "parent": 1178, "children": [1181, 1182], "start_point": {"row": 151, "column": 91}, "end_point": {"row": 151, "column": 93}}, {"id": 1181, "type": "*", "text": "*", "parent": 1180, "children": [], "start_point": {"row": 151, "column": 91}, "end_point": {"row": 151, "column": 92}}, {"id": 1182, "type": "identifier", "text": "x", "parent": 1180, "children": [], "start_point": {"row": 151, "column": 92}, "end_point": {"row": 151, "column": 93}}, {"id": 1183, "type": "parameter_declaration", "text": "scs_float *y", "parent": 1159, "children": [1184, 1185], "start_point": {"row": 151, "column": 95}, "end_point": {"row": 151, "column": 107}}, {"id": 1184, "type": "type_identifier", "text": "scs_float", "parent": 1183, "children": [], "start_point": {"row": 151, "column": 95}, "end_point": {"row": 151, "column": 104}}, {"id": 1185, "type": "pointer_declarator", "text": "*y", "parent": 1183, "children": [1186, 1187], "start_point": {"row": 151, "column": 105}, "end_point": {"row": 151, "column": 107}}, {"id": 1186, "type": "*", "text": "*", "parent": 1185, "children": [], "start_point": {"row": 151, "column": 105}, "end_point": {"row": 151, "column": 106}}, {"id": 1187, "type": "identifier", "text": "y", "parent": 1185, "children": [], "start_point": {"row": 151, "column": 106}, "end_point": {"row": 151, "column": 107}}, {"id": 1188, "type": "declaration", "text": "scs_int p, j;", "parent": 1155, "children": [1189, 1190, 1191], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 14}}, {"id": 1189, "type": "type_identifier", "text": "scs_int", "parent": 1188, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 8}}, {"id": 1190, "type": "identifier", "text": "p", "parent": 1188, "children": [], "start_point": {"row": 156, "column": 9}, "end_point": {"row": 156, "column": 10}}, {"id": 1191, "type": "identifier", "text": "j", "parent": 1188, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 1192, "type": "declaration", "text": "scs_int c1, c2;", "parent": 1155, "children": [1193, 1194, 1195], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 16}}, {"id": 1193, "type": "type_identifier", "text": "scs_int", "parent": 1192, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 8}}, {"id": 1194, "type": "identifier", "text": "c1", "parent": 1192, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 11}}, {"id": 1195, "type": "identifier", "text": "c2", "parent": 1192, "children": [], "start_point": {"row": 157, "column": 13}, "end_point": {"row": 157, "column": 15}}, {"id": 1196, "type": "declaration", "text": "scs_float yj;", "parent": 1155, "children": [1197, 1198], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 14}}, {"id": 1197, "type": "type_identifier", "text": "scs_float", "parent": 1196, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 10}}, {"id": 1198, "type": "identifier", "text": "yj", "parent": 1196, "children": [], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 13}}, {"id": 1199, "type": "preproc_ifdef", "text": "#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif", "parent": 1155, "children": [1200, 1201, 1202, 1205], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 161, "column": 6}}, {"id": 1200, "type": "#ifdef", "text": "#ifdef", "parent": 1199, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 6}}, {"id": 1201, "type": "identifier", "text": "OPENMP", "parent": 1199, "children": [], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 13}}, {"id": 1202, "type": "preproc_call", "text": "#pragma omp parallel for private(p,c1,c2,yj)\n", "parent": 1199, "children": [1203, 1204], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 161, "column": 0}}, {"id": 1203, "type": "preproc_directive", "text": "#pragma", "parent": 1202, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 7}}, {"id": 1204, "type": "preproc_arg", "text": "omp parallel for private(p,c1,c2,yj)", "parent": 1202, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 44}}, {"id": 1205, "type": "#endif", "text": "#endif", "parent": 1199, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 6}}, {"id": 1206, "type": "for_statement", "text": "for (j = 0; j < n; j++) {\n\t\tyj = y[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\tyj += Ax[p] * x[Ai[p]];\n\t\t}\n\t\ty[j] = yj;\n\t}", "parent": 1155, "children": [1207, 1211, 1215], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 170, "column": 2}}, {"id": 1207, "type": "assignment_expression", "text": "j = 0", "parent": 1206, "children": [1208, 1209, 1210], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 11}}, {"id": 1208, "type": "identifier", "text": "j", "parent": 1207, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 7}}, {"id": 1209, "type": "=", "text": "=", "parent": 1207, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 9}}, {"id": 1210, "type": "number_literal", "text": "0", "parent": 1207, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 11}}, {"id": 1211, "type": "binary_expression", "text": "j < n", "parent": 1206, "children": [1212, 1213, 1214], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 18}}, {"id": 1212, "type": "identifier", "text": "j", "parent": 1211, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 14}}, {"id": 1213, "type": "<", "text": "<", "parent": 1211, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 16}}, {"id": 1214, "type": "identifier", "text": "n", "parent": 1211, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 18}}, {"id": 1215, "type": "update_expression", "text": "j++", "parent": 1206, "children": [1216, 1217], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 23}}, {"id": 1216, "type": "identifier", "text": "j", "parent": 1215, "children": [], "start_point": {"row": 162, "column": 20}, "end_point": {"row": 162, "column": 21}}, {"id": 1217, "type": "++", "text": "++", "parent": 1215, "children": [], "start_point": {"row": 162, "column": 21}, "end_point": {"row": 162, "column": 23}}, {"id": 1218, "type": "assignment_expression", "text": "yj = y[j]", "parent": 1206, "children": [1219, 1220, 1221], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 11}}, {"id": 1219, "type": "identifier", "text": "yj", "parent": 1218, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 4}}, {"id": 1220, "type": "=", "text": "=", "parent": 1218, "children": [], "start_point": {"row": 163, "column": 5}, "end_point": {"row": 163, "column": 6}}, {"id": 1221, "type": "subscript_expression", "text": "y[j]", "parent": 1218, "children": [1222, 1223], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 11}}, {"id": 1222, "type": "identifier", "text": "y", "parent": 1221, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 8}}, {"id": 1223, "type": "identifier", "text": "j", "parent": 1221, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 10}}, {"id": 1224, "type": "assignment_expression", "text": "c1 = Ap[j]", "parent": 1206, "children": [1225, 1226, 1227], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 12}}, {"id": 1225, "type": "identifier", "text": "c1", "parent": 1224, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 4}}, {"id": 1226, "type": "=", "text": "=", "parent": 1224, "children": [], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 6}}, {"id": 1227, "type": "subscript_expression", "text": "Ap[j]", "parent": 1224, "children": [1228, 1229], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 12}}, {"id": 1228, "type": "identifier", "text": "Ap", "parent": 1227, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 9}}, {"id": 1229, "type": "identifier", "text": "j", "parent": 1227, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 1230, "type": "assignment_expression", "text": "c2 = Ap[j + 1]", "parent": 1206, "children": [1231, 1232, 1233], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 16}}, {"id": 1231, "type": "identifier", "text": "c2", "parent": 1230, "children": [], "start_point": {"row": 165, "column": 2}, "end_point": {"row": 165, "column": 4}}, {"id": 1232, "type": "=", "text": "=", "parent": 1230, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 6}}, {"id": 1233, "type": "subscript_expression", "text": "Ap[j + 1]", "parent": 1230, "children": [1234, 1235], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 16}}, {"id": 1234, "type": "identifier", "text": "Ap", "parent": 1233, "children": [], "start_point": {"row": 165, "column": 7}, "end_point": {"row": 165, "column": 9}}, {"id": 1235, "type": "binary_expression", "text": "j + 1", "parent": 1233, "children": [1236, 1237, 1238], "start_point": {"row": 165, "column": 10}, "end_point": {"row": 165, "column": 15}}, {"id": 1236, "type": "identifier", "text": "j", "parent": 1235, "children": [], "start_point": {"row": 165, "column": 10}, "end_point": {"row": 165, "column": 11}}, {"id": 1237, "type": "+", "text": "+", "parent": 1235, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 13}}, {"id": 1238, "type": "number_literal", "text": "1", "parent": 1235, "children": [], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 15}}, {"id": 1239, "type": "for_statement", "text": "for (p = c1; p < c2; p++) {\n\t\t\tyj += Ax[p] * x[Ai[p]];\n\t\t}", "parent": 1206, "children": [1240, 1244, 1248], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 168, "column": 3}}, {"id": 1240, "type": "assignment_expression", "text": "p = c1", "parent": 1239, "children": [1241, 1242, 1243], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 13}}, {"id": 1241, "type": "identifier", "text": "p", "parent": 1240, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 8}}, {"id": 1242, "type": "=", "text": "=", "parent": 1240, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 10}}, {"id": 1243, "type": "identifier", "text": "c1", "parent": 1240, "children": [], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 13}}, {"id": 1244, "type": "binary_expression", "text": "p < c2", "parent": 1239, "children": [1245, 1246, 1247], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 21}}, {"id": 1245, "type": "identifier", "text": "p", "parent": 1244, "children": [], "start_point": {"row": 166, "column": 15}, "end_point": {"row": 166, "column": 16}}, {"id": 1246, "type": "<", "text": "<", "parent": 1244, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 18}}, {"id": 1247, "type": "identifier", "text": "c2", "parent": 1244, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 21}}, {"id": 1248, "type": "update_expression", "text": "p++", "parent": 1239, "children": [1249, 1250], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 26}}, {"id": 1249, "type": "identifier", "text": "p", "parent": 1248, "children": [], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 24}}, {"id": 1250, "type": "++", "text": "++", "parent": 1248, "children": [], "start_point": {"row": 166, "column": 24}, "end_point": {"row": 166, "column": 26}}, {"id": 1251, "type": "assignment_expression", "text": "yj += Ax[p] * x[Ai[p]]", "parent": 1239, "children": [1252, 1253, 1254], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 25}}, {"id": 1252, "type": "identifier", "text": "yj", "parent": 1251, "children": [], "start_point": {"row": 167, "column": 3}, "end_point": {"row": 167, "column": 5}}, {"id": 1253, "type": "+=", "text": "+=", "parent": 1251, "children": [], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 8}}, {"id": 1254, "type": "binary_expression", "text": "Ax[p] * x[Ai[p]]", "parent": 1251, "children": [1255, 1258, 1259], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 25}}, {"id": 1255, "type": "subscript_expression", "text": "Ax[p]", "parent": 1254, "children": [1256, 1257], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 14}}, {"id": 1256, "type": "identifier", "text": "Ax", "parent": 1255, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 11}}, {"id": 1257, "type": "identifier", "text": "p", "parent": 1255, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 13}}, {"id": 1258, "type": "*", "text": "*", "parent": 1254, "children": [], "start_point": {"row": 167, "column": 15}, "end_point": {"row": 167, "column": 16}}, {"id": 1259, "type": "subscript_expression", "text": "x[Ai[p]]", "parent": 1254, "children": [1260, 1261], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 25}}, {"id": 1260, "type": "identifier", "text": "x", "parent": 1259, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 18}}, {"id": 1261, "type": "subscript_expression", "text": "Ai[p]", "parent": 1259, "children": [1262, 1263], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 24}}, {"id": 1262, "type": "identifier", "text": "Ai", "parent": 1261, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 21}}, {"id": 1263, "type": "identifier", "text": "p", "parent": 1261, "children": [], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 23}}, {"id": 1264, "type": "assignment_expression", "text": "y[j] = yj", "parent": 1206, "children": [1265, 1268, 1269], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 11}}, {"id": 1265, "type": "subscript_expression", "text": "y[j]", "parent": 1264, "children": [1266, 1267], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 6}}, {"id": 1266, "type": "identifier", "text": "y", "parent": 1265, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 3}}, {"id": 1267, "type": "identifier", "text": "j", "parent": 1265, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 1268, "type": "=", "text": "=", "parent": 1264, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 8}}, {"id": 1269, "type": "identifier", "text": "yj", "parent": 1264, "children": [], "start_point": {"row": 169, "column": 9}, "end_point": {"row": 169, "column": 11}}, {"id": 1270, "type": "function_definition", "text": "void _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n\t/*y = A*x\n\t A in column compressed format\n\t this parallelizes over columns and uses\n\t pragma atomic to prevent concurrent writes to y\n\t */\n\tscs_int p, j;\n\tscs_int c1, c2;\n\tscs_float xj;\n\t/*#pragma omp parallel for private(p,c1,c2,xj) */\n\tfor (j = 0; j < n; j++) {\n\t\txj = x[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\t/*#pragma omp atomic */\n\t\t\ty[Ai[p]] += Ax[p] * xj;\n\t\t}\n\t}\n}", "parent": null, "children": [1271, 1272], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 192, "column": 1}}, {"id": 1271, "type": "primitive_type", "text": "void", "parent": 1270, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 4}}, {"id": 1272, "type": "function_declarator", "text": "_accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)", "parent": 1270, "children": [1273, 1274], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 103}}, {"id": 1273, "type": "identifier", "text": "_accumByA", "parent": 1272, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 14}}, {"id": 1274, "type": "parameter_list", "text": "(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)", "parent": 1272, "children": [1275, 1278, 1283, 1288, 1293, 1298], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 103}}, {"id": 1275, "type": "parameter_declaration", "text": "scs_int n", "parent": 1274, "children": [1276, 1277], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 24}}, {"id": 1276, "type": "type_identifier", "text": "scs_int", "parent": 1275, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 22}}, {"id": 1277, "type": "identifier", "text": "n", "parent": 1275, "children": [], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 24}}, {"id": 1278, "type": "parameter_declaration", "text": "scs_float * Ax", "parent": 1274, "children": [1279, 1280], "start_point": {"row": 173, "column": 26}, "end_point": {"row": 173, "column": 40}}, {"id": 1279, "type": "type_identifier", "text": "scs_float", "parent": 1278, "children": [], "start_point": {"row": 173, "column": 26}, "end_point": {"row": 173, "column": 35}}, {"id": 1280, "type": "pointer_declarator", "text": "* Ax", "parent": 1278, "children": [1281, 1282], "start_point": {"row": 173, "column": 36}, "end_point": {"row": 173, "column": 40}}, {"id": 1281, "type": "*", "text": "*", "parent": 1280, "children": [], "start_point": {"row": 173, "column": 36}, "end_point": {"row": 173, "column": 37}}, {"id": 1282, "type": "identifier", "text": "Ax", "parent": 1280, "children": [], "start_point": {"row": 173, "column": 38}, "end_point": {"row": 173, "column": 40}}, {"id": 1283, "type": "parameter_declaration", "text": "scs_int * Ai", "parent": 1274, "children": [1284, 1285], "start_point": {"row": 173, "column": 42}, "end_point": {"row": 173, "column": 54}}, {"id": 1284, "type": "type_identifier", "text": "scs_int", "parent": 1283, "children": [], "start_point": {"row": 173, "column": 42}, "end_point": {"row": 173, "column": 49}}, {"id": 1285, "type": "pointer_declarator", "text": "* Ai", "parent": 1283, "children": [1286, 1287], "start_point": {"row": 173, "column": 50}, "end_point": {"row": 173, "column": 54}}, {"id": 1286, "type": "*", "text": "*", "parent": 1285, "children": [], "start_point": {"row": 173, "column": 50}, "end_point": {"row": 173, "column": 51}}, {"id": 1287, "type": "identifier", "text": "Ai", "parent": 1285, "children": [], "start_point": {"row": 173, "column": 52}, "end_point": {"row": 173, "column": 54}}, {"id": 1288, "type": "parameter_declaration", "text": "scs_int * Ap", "parent": 1274, "children": [1289, 1290], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 68}}, {"id": 1289, "type": "type_identifier", "text": "scs_int", "parent": 1288, "children": [], "start_point": {"row": 173, "column": 56}, "end_point": {"row": 173, "column": 63}}, {"id": 1290, "type": "pointer_declarator", "text": "* Ap", "parent": 1288, "children": [1291, 1292], "start_point": {"row": 173, "column": 64}, "end_point": {"row": 173, "column": 68}}, {"id": 1291, "type": "*", "text": "*", "parent": 1290, "children": [], "start_point": {"row": 173, "column": 64}, "end_point": {"row": 173, "column": 65}}, {"id": 1292, "type": "identifier", "text": "Ap", "parent": 1290, "children": [], "start_point": {"row": 173, "column": 66}, "end_point": {"row": 173, "column": 68}}, {"id": 1293, "type": "parameter_declaration", "text": "const scs_float *x", "parent": 1274, "children": [1294, 1295], "start_point": {"row": 173, "column": 70}, "end_point": {"row": 173, "column": 88}}, {"id": 1294, "type": "type_identifier", "text": "scs_float", "parent": 1293, "children": [], "start_point": {"row": 173, "column": 76}, "end_point": {"row": 173, "column": 85}}, {"id": 1295, "type": "pointer_declarator", "text": "*x", "parent": 1293, "children": [1296, 1297], "start_point": {"row": 173, "column": 86}, "end_point": {"row": 173, "column": 88}}, {"id": 1296, "type": "*", "text": "*", "parent": 1295, "children": [], "start_point": {"row": 173, "column": 86}, "end_point": {"row": 173, "column": 87}}, {"id": 1297, "type": "identifier", "text": "x", "parent": 1295, "children": [], "start_point": {"row": 173, "column": 87}, "end_point": {"row": 173, "column": 88}}, {"id": 1298, "type": "parameter_declaration", "text": "scs_float *y", "parent": 1274, "children": [1299, 1300], "start_point": {"row": 173, "column": 90}, "end_point": {"row": 173, "column": 102}}, {"id": 1299, "type": "type_identifier", "text": "scs_float", "parent": 1298, "children": [], "start_point": {"row": 173, "column": 90}, "end_point": {"row": 173, "column": 99}}, {"id": 1300, "type": "pointer_declarator", "text": "*y", "parent": 1298, "children": [1301, 1302], "start_point": {"row": 173, "column": 100}, "end_point": {"row": 173, "column": 102}}, {"id": 1301, "type": "*", "text": "*", "parent": 1300, "children": [], "start_point": {"row": 173, "column": 100}, "end_point": {"row": 173, "column": 101}}, {"id": 1302, "type": "identifier", "text": "y", "parent": 1300, "children": [], "start_point": {"row": 173, "column": 101}, "end_point": {"row": 173, "column": 102}}, {"id": 1303, "type": "declaration", "text": "scs_int p, j;", "parent": 1270, "children": [1304, 1305, 1306], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 14}}, {"id": 1304, "type": "type_identifier", "text": "scs_int", "parent": 1303, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 8}}, {"id": 1305, "type": "identifier", "text": "p", "parent": 1303, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 10}}, {"id": 1306, "type": "identifier", "text": "j", "parent": 1303, "children": [], "start_point": {"row": 179, "column": 12}, "end_point": {"row": 179, "column": 13}}, {"id": 1307, "type": "declaration", "text": "scs_int c1, c2;", "parent": 1270, "children": [1308, 1309, 1310], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 16}}, {"id": 1308, "type": "type_identifier", "text": "scs_int", "parent": 1307, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 8}}, {"id": 1309, "type": "identifier", "text": "c1", "parent": 1307, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 11}}, {"id": 1310, "type": "identifier", "text": "c2", "parent": 1307, "children": [], "start_point": {"row": 180, "column": 13}, "end_point": {"row": 180, "column": 15}}, {"id": 1311, "type": "declaration", "text": "scs_float xj;", "parent": 1270, "children": [1312, 1313], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 14}}, {"id": 1312, "type": "type_identifier", "text": "scs_float", "parent": 1311, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 10}}, {"id": 1313, "type": "identifier", "text": "xj", "parent": 1311, "children": [], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 13}}, {"id": 1314, "type": "for_statement", "text": "for (j = 0; j < n; j++) {\n\t\txj = x[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\t/*#pragma omp atomic */\n\t\t\ty[Ai[p]] += Ax[p] * xj;\n\t\t}\n\t}", "parent": 1270, "children": [1315, 1319, 1323], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 191, "column": 2}}, {"id": 1315, "type": "assignment_expression", "text": "j = 0", "parent": 1314, "children": [1316, 1317, 1318], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 11}}, {"id": 1316, "type": "identifier", "text": "j", "parent": 1315, "children": [], "start_point": {"row": 183, "column": 6}, "end_point": {"row": 183, "column": 7}}, {"id": 1317, "type": "=", "text": "=", "parent": 1315, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 9}}, {"id": 1318, "type": "number_literal", "text": "0", "parent": 1315, "children": [], "start_point": {"row": 183, "column": 10}, "end_point": {"row": 183, "column": 11}}, {"id": 1319, "type": "binary_expression", "text": "j < n", "parent": 1314, "children": [1320, 1321, 1322], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 18}}, {"id": 1320, "type": "identifier", "text": "j", "parent": 1319, "children": [], "start_point": {"row": 183, "column": 13}, "end_point": {"row": 183, "column": 14}}, {"id": 1321, "type": "<", "text": "<", "parent": 1319, "children": [], "start_point": {"row": 183, "column": 15}, "end_point": {"row": 183, "column": 16}}, {"id": 1322, "type": "identifier", "text": "n", "parent": 1319, "children": [], "start_point": {"row": 183, "column": 17}, "end_point": {"row": 183, "column": 18}}, {"id": 1323, "type": "update_expression", "text": "j++", "parent": 1314, "children": [1324, 1325], "start_point": {"row": 183, "column": 20}, "end_point": {"row": 183, "column": 23}}, {"id": 1324, "type": "identifier", "text": "j", "parent": 1323, "children": [], "start_point": {"row": 183, "column": 20}, "end_point": {"row": 183, "column": 21}}, {"id": 1325, "type": "++", "text": "++", "parent": 1323, "children": [], "start_point": {"row": 183, "column": 21}, "end_point": {"row": 183, "column": 23}}, {"id": 1326, "type": "assignment_expression", "text": "xj = x[j]", "parent": 1314, "children": [1327, 1328, 1329], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 11}}, {"id": 1327, "type": "identifier", "text": "xj", "parent": 1326, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 4}}, {"id": 1328, "type": "=", "text": "=", "parent": 1326, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 6}}, {"id": 1329, "type": "subscript_expression", "text": "x[j]", "parent": 1326, "children": [1330, 1331], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 11}}, {"id": 1330, "type": "identifier", "text": "x", "parent": 1329, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 8}}, {"id": 1331, "type": "identifier", "text": "j", "parent": 1329, "children": [], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 10}}, {"id": 1332, "type": "assignment_expression", "text": "c1 = Ap[j]", "parent": 1314, "children": [1333, 1334, 1335], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 12}}, {"id": 1333, "type": "identifier", "text": "c1", "parent": 1332, "children": [], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 185, "column": 4}}, {"id": 1334, "type": "=", "text": "=", "parent": 1332, "children": [], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 6}}, {"id": 1335, "type": "subscript_expression", "text": "Ap[j]", "parent": 1332, "children": [1336, 1337], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 12}}, {"id": 1336, "type": "identifier", "text": "Ap", "parent": 1335, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 9}}, {"id": 1337, "type": "identifier", "text": "j", "parent": 1335, "children": [], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 11}}, {"id": 1338, "type": "assignment_expression", "text": "c2 = Ap[j + 1]", "parent": 1314, "children": [1339, 1340, 1341], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 16}}, {"id": 1339, "type": "identifier", "text": "c2", "parent": 1338, "children": [], "start_point": {"row": 186, "column": 2}, "end_point": {"row": 186, "column": 4}}, {"id": 1340, "type": "=", "text": "=", "parent": 1338, "children": [], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 6}}, {"id": 1341, "type": "subscript_expression", "text": "Ap[j + 1]", "parent": 1338, "children": [1342, 1343], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 16}}, {"id": 1342, "type": "identifier", "text": "Ap", "parent": 1341, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 9}}, {"id": 1343, "type": "binary_expression", "text": "j + 1", "parent": 1341, "children": [1344, 1345, 1346], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 15}}, {"id": 1344, "type": "identifier", "text": "j", "parent": 1343, "children": [], "start_point": {"row": 186, "column": 10}, "end_point": {"row": 186, "column": 11}}, {"id": 1345, "type": "+", "text": "+", "parent": 1343, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 13}}, {"id": 1346, "type": "number_literal", "text": "1", "parent": 1343, "children": [], "start_point": {"row": 186, "column": 14}, "end_point": {"row": 186, "column": 15}}, {"id": 1347, "type": "for_statement", "text": "for (p = c1; p < c2; p++) {\n\t\t\t/*#pragma omp atomic */\n\t\t\ty[Ai[p]] += Ax[p] * xj;\n\t\t}", "parent": 1314, "children": [1348, 1352, 1356], "start_point": {"row": 187, "column": 2}, "end_point": {"row": 190, "column": 3}}, {"id": 1348, "type": "assignment_expression", "text": "p = c1", "parent": 1347, "children": [1349, 1350, 1351], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 13}}, {"id": 1349, "type": "identifier", "text": "p", "parent": 1348, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 8}}, {"id": 1350, "type": "=", "text": "=", "parent": 1348, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 1351, "type": "identifier", "text": "c1", "parent": 1348, "children": [], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 13}}, {"id": 1352, "type": "binary_expression", "text": "p < c2", "parent": 1347, "children": [1353, 1354, 1355], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 21}}, {"id": 1353, "type": "identifier", "text": "p", "parent": 1352, "children": [], "start_point": {"row": 187, "column": 15}, "end_point": {"row": 187, "column": 16}}, {"id": 1354, "type": "<", "text": "<", "parent": 1352, "children": [], "start_point": {"row": 187, "column": 17}, "end_point": {"row": 187, "column": 18}}, {"id": 1355, "type": "identifier", "text": "c2", "parent": 1352, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 21}}, {"id": 1356, "type": "update_expression", "text": "p++", "parent": 1347, "children": [1357, 1358], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 26}}, {"id": 1357, "type": "identifier", "text": "p", "parent": 1356, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 24}}, {"id": 1358, "type": "++", "text": "++", "parent": 1356, "children": [], "start_point": {"row": 187, "column": 24}, "end_point": {"row": 187, "column": 26}}, {"id": 1359, "type": "assignment_expression", "text": "y[Ai[p]] += Ax[p] * xj", "parent": 1347, "children": [1360, 1365, 1366], "start_point": {"row": 189, "column": 3}, "end_point": {"row": 189, "column": 25}}, {"id": 1360, "type": "subscript_expression", "text": "y[Ai[p]]", "parent": 1359, "children": [1361, 1362], "start_point": {"row": 189, "column": 3}, "end_point": {"row": 189, "column": 11}}, {"id": 1361, "type": "identifier", "text": "y", "parent": 1360, "children": [], "start_point": {"row": 189, "column": 3}, "end_point": {"row": 189, "column": 4}}, {"id": 1362, "type": "subscript_expression", "text": "Ai[p]", "parent": 1360, "children": [1363, 1364], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 10}}, {"id": 1363, "type": "identifier", "text": "Ai", "parent": 1362, "children": [], "start_point": {"row": 189, "column": 5}, "end_point": {"row": 189, "column": 7}}, {"id": 1364, "type": "identifier", "text": "p", "parent": 1362, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 9}}, {"id": 1365, "type": "+=", "text": "+=", "parent": 1359, "children": [], "start_point": {"row": 189, "column": 12}, "end_point": {"row": 189, "column": 14}}, {"id": 1366, "type": "binary_expression", "text": "Ax[p] * xj", "parent": 1359, "children": [1367, 1370, 1371], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 25}}, {"id": 1367, "type": "subscript_expression", "text": "Ax[p]", "parent": 1366, "children": [1368, 1369], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 20}}, {"id": 1368, "type": "identifier", "text": "Ax", "parent": 1367, "children": [], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 17}}, {"id": 1369, "type": "identifier", "text": "p", "parent": 1367, "children": [], "start_point": {"row": 189, "column": 18}, "end_point": {"row": 189, "column": 19}}, {"id": 1370, "type": "*", "text": "*", "parent": 1366, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 22}}, {"id": 1371, "type": "identifier", "text": "xj", "parent": 1366, "children": [], "start_point": {"row": 189, "column": 23}, "end_point": {"row": 189, "column": 25}}, {"id": 1372, "type": "function_definition", "text": "void accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_accumByAtrans(d->n, A->x, A->i, A->p, x, y);\n}", "parent": null, "children": [1373, 1374], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 197, "column": 1}}, {"id": 1373, "type": "primitive_type", "text": "void", "parent": 1372, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 4}}, {"id": 1374, "type": "function_declarator", "text": "accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y)", "parent": 1372, "children": [1375, 1376], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 72}}, {"id": 1375, "type": "identifier", "text": "accumByAtrans", "parent": 1374, "children": [], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 18}}, {"id": 1376, "type": "parameter_list", "text": "(Data * d, Priv * p, const scs_float *x, scs_float *y)", "parent": 1374, "children": [1377, 1382, 1387, 1392], "start_point": {"row": 194, "column": 18}, "end_point": {"row": 194, "column": 72}}, {"id": 1377, "type": "parameter_declaration", "text": "Data * d", "parent": 1376, "children": [1378, 1379], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 27}}, {"id": 1378, "type": "type_identifier", "text": "Data", "parent": 1377, "children": [], "start_point": {"row": 194, "column": 19}, "end_point": {"row": 194, "column": 23}}, {"id": 1379, "type": "pointer_declarator", "text": "* d", "parent": 1377, "children": [1380, 1381], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 27}}, {"id": 1380, "type": "*", "text": "*", "parent": 1379, "children": [], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 25}}, {"id": 1381, "type": "identifier", "text": "d", "parent": 1379, "children": [], "start_point": {"row": 194, "column": 26}, "end_point": {"row": 194, "column": 27}}, {"id": 1382, "type": "parameter_declaration", "text": "Priv * p", "parent": 1376, "children": [1383, 1384], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 37}}, {"id": 1383, "type": "type_identifier", "text": "Priv", "parent": 1382, "children": [], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 33}}, {"id": 1384, "type": "pointer_declarator", "text": "* p", "parent": 1382, "children": [1385, 1386], "start_point": {"row": 194, "column": 34}, "end_point": {"row": 194, "column": 37}}, {"id": 1385, "type": "*", "text": "*", "parent": 1384, "children": [], "start_point": {"row": 194, "column": 34}, "end_point": {"row": 194, "column": 35}}, {"id": 1386, "type": "identifier", "text": "p", "parent": 1384, "children": [], "start_point": {"row": 194, "column": 36}, "end_point": {"row": 194, "column": 37}}, {"id": 1387, "type": "parameter_declaration", "text": "const scs_float *x", "parent": 1376, "children": [1388, 1389], "start_point": {"row": 194, "column": 39}, "end_point": {"row": 194, "column": 57}}, {"id": 1388, "type": "type_identifier", "text": "scs_float", "parent": 1387, "children": [], "start_point": {"row": 194, "column": 45}, "end_point": {"row": 194, "column": 54}}, {"id": 1389, "type": "pointer_declarator", "text": "*x", "parent": 1387, "children": [1390, 1391], "start_point": {"row": 194, "column": 55}, "end_point": {"row": 194, "column": 57}}, {"id": 1390, "type": "*", "text": "*", "parent": 1389, "children": [], "start_point": {"row": 194, "column": 55}, "end_point": {"row": 194, "column": 56}}, {"id": 1391, "type": "identifier", "text": "x", "parent": 1389, "children": [], "start_point": {"row": 194, "column": 56}, "end_point": {"row": 194, "column": 57}}, {"id": 1392, "type": "parameter_declaration", "text": "scs_float *y", "parent": 1376, "children": [1393, 1394], "start_point": {"row": 194, "column": 59}, "end_point": {"row": 194, "column": 71}}, {"id": 1393, "type": "type_identifier", "text": "scs_float", "parent": 1392, "children": [], "start_point": {"row": 194, "column": 59}, "end_point": {"row": 194, "column": 68}}, {"id": 1394, "type": "pointer_declarator", "text": "*y", "parent": 1392, "children": [1395, 1396], "start_point": {"row": 194, "column": 69}, "end_point": {"row": 194, "column": 71}}, {"id": 1395, "type": "*", "text": "*", "parent": 1394, "children": [], "start_point": {"row": 194, "column": 69}, "end_point": {"row": 194, "column": 70}}, {"id": 1396, "type": "identifier", "text": "y", "parent": 1394, "children": [], "start_point": {"row": 194, "column": 70}, "end_point": {"row": 194, "column": 71}}, {"id": 1397, "type": "declaration", "text": "AMatrix * A = d->A;", "parent": 1372, "children": [1398, 1399], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 20}}, {"id": 1398, "type": "type_identifier", "text": "AMatrix", "parent": 1397, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 8}}, {"id": 1399, "type": "init_declarator", "text": "* A = d->A", "parent": 1397, "children": [1400, 1403, 1404], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 19}}, {"id": 1400, "type": "pointer_declarator", "text": "* A", "parent": 1399, "children": [1401, 1402], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 12}}, {"id": 1401, "type": "*", "text": "*", "parent": 1400, "children": [], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 10}}, {"id": 1402, "type": "identifier", "text": "A", "parent": 1400, "children": [], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 12}}, {"id": 1403, "type": "=", "text": "=", "parent": 1399, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 14}}, {"id": 1404, "type": "field_expression", "text": "d->A", "parent": 1399, "children": [1405, 1406], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 19}}, {"id": 1405, "type": "identifier", "text": "d", "parent": 1404, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 16}}, {"id": 1406, "type": "field_identifier", "text": "A", "parent": 1404, "children": [], "start_point": {"row": 195, "column": 18}, "end_point": {"row": 195, "column": 19}}, {"id": 1407, "type": "call_expression", "text": "_accumByAtrans(d->n, A->x, A->i, A->p, x, y)", "parent": 1372, "children": [1408, 1409], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 45}}, {"id": 1408, "type": "identifier", "text": "_accumByAtrans", "parent": 1407, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 15}}, {"id": 1409, "type": "argument_list", "text": "(d->n, A->x, A->i, A->p, x, y)", "parent": 1407, "children": [1410, 1413, 1416, 1419, 1422, 1423], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 45}}, {"id": 1410, "type": "field_expression", "text": "d->n", "parent": 1409, "children": [1411, 1412], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 20}}, {"id": 1411, "type": "identifier", "text": "d", "parent": 1410, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 17}}, {"id": 1412, "type": "field_identifier", "text": "n", "parent": 1410, "children": [], "start_point": {"row": 196, "column": 19}, "end_point": {"row": 196, "column": 20}}, {"id": 1413, "type": "field_expression", "text": "A->x", "parent": 1409, "children": [1414, 1415], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 26}}, {"id": 1414, "type": "identifier", "text": "A", "parent": 1413, "children": [], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 23}}, {"id": 1415, "type": "field_identifier", "text": "x", "parent": 1413, "children": [], "start_point": {"row": 196, "column": 25}, "end_point": {"row": 196, "column": 26}}, {"id": 1416, "type": "field_expression", "text": "A->i", "parent": 1409, "children": [1417, 1418], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 32}}, {"id": 1417, "type": "identifier", "text": "A", "parent": 1416, "children": [], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 29}}, {"id": 1418, "type": "field_identifier", "text": "i", "parent": 1416, "children": [], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 32}}, {"id": 1419, "type": "field_expression", "text": "A->p", "parent": 1409, "children": [1420, 1421], "start_point": {"row": 196, "column": 34}, "end_point": {"row": 196, "column": 38}}, {"id": 1420, "type": "identifier", "text": "A", "parent": 1419, "children": [], "start_point": {"row": 196, "column": 34}, "end_point": {"row": 196, "column": 35}}, {"id": 1421, "type": "field_identifier", "text": "p", "parent": 1419, "children": [], "start_point": {"row": 196, "column": 37}, "end_point": {"row": 196, "column": 38}}, {"id": 1422, "type": "identifier", "text": "x", "parent": 1409, "children": [], "start_point": {"row": 196, "column": 40}, "end_point": {"row": 196, "column": 41}}, {"id": 1423, "type": "identifier", "text": "y", "parent": 1409, "children": [], "start_point": {"row": 196, "column": 43}, "end_point": {"row": 196, "column": 44}}, {"id": 1424, "type": "function_definition", "text": "void accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_accumByA(d->n, A->x, A->i, A->p, x, y);\n}", "parent": null, "children": [1425, 1426], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 202, "column": 1}}, {"id": 1425, "type": "primitive_type", "text": "void", "parent": 1424, "children": [], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 4}}, {"id": 1426, "type": "function_declarator", "text": "accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y)", "parent": 1424, "children": [1427, 1428], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 67}}, {"id": 1427, "type": "identifier", "text": "accumByA", "parent": 1426, "children": [], "start_point": {"row": 199, "column": 5}, "end_point": {"row": 199, "column": 13}}, {"id": 1428, "type": "parameter_list", "text": "(Data * d, Priv * p, const scs_float *x, scs_float *y)", "parent": 1426, "children": [1429, 1434, 1439, 1444], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 67}}, {"id": 1429, "type": "parameter_declaration", "text": "Data * d", "parent": 1428, "children": [1430, 1431], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 22}}, {"id": 1430, "type": "type_identifier", "text": "Data", "parent": 1429, "children": [], "start_point": {"row": 199, "column": 14}, "end_point": {"row": 199, "column": 18}}, {"id": 1431, "type": "pointer_declarator", "text": "* d", "parent": 1429, "children": [1432, 1433], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 22}}, {"id": 1432, "type": "*", "text": "*", "parent": 1431, "children": [], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 20}}, {"id": 1433, "type": "identifier", "text": "d", "parent": 1431, "children": [], "start_point": {"row": 199, "column": 21}, "end_point": {"row": 199, "column": 22}}, {"id": 1434, "type": "parameter_declaration", "text": "Priv * p", "parent": 1428, "children": [1435, 1436], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 32}}, {"id": 1435, "type": "type_identifier", "text": "Priv", "parent": 1434, "children": [], "start_point": {"row": 199, "column": 24}, "end_point": {"row": 199, "column": 28}}, {"id": 1436, "type": "pointer_declarator", "text": "* p", "parent": 1434, "children": [1437, 1438], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 32}}, {"id": 1437, "type": "*", "text": "*", "parent": 1436, "children": [], "start_point": {"row": 199, "column": 29}, "end_point": {"row": 199, "column": 30}}, {"id": 1438, "type": "identifier", "text": "p", "parent": 1436, "children": [], "start_point": {"row": 199, "column": 31}, "end_point": {"row": 199, "column": 32}}, {"id": 1439, "type": "parameter_declaration", "text": "const scs_float *x", "parent": 1428, "children": [1440, 1441], "start_point": {"row": 199, "column": 34}, "end_point": {"row": 199, "column": 52}}, {"id": 1440, "type": "type_identifier", "text": "scs_float", "parent": 1439, "children": [], "start_point": {"row": 199, "column": 40}, "end_point": {"row": 199, "column": 49}}, {"id": 1441, "type": "pointer_declarator", "text": "*x", "parent": 1439, "children": [1442, 1443], "start_point": {"row": 199, "column": 50}, "end_point": {"row": 199, "column": 52}}, {"id": 1442, "type": "*", "text": "*", "parent": 1441, "children": [], "start_point": {"row": 199, "column": 50}, "end_point": {"row": 199, "column": 51}}, {"id": 1443, "type": "identifier", "text": "x", "parent": 1441, "children": [], "start_point": {"row": 199, "column": 51}, "end_point": {"row": 199, "column": 52}}, {"id": 1444, "type": "parameter_declaration", "text": "scs_float *y", "parent": 1428, "children": [1445, 1446], "start_point": {"row": 199, "column": 54}, "end_point": {"row": 199, "column": 66}}, {"id": 1445, "type": "type_identifier", "text": "scs_float", "parent": 1444, "children": [], "start_point": {"row": 199, "column": 54}, "end_point": {"row": 199, "column": 63}}, {"id": 1446, "type": "pointer_declarator", "text": "*y", "parent": 1444, "children": [1447, 1448], "start_point": {"row": 199, "column": 64}, "end_point": {"row": 199, "column": 66}}, {"id": 1447, "type": "*", "text": "*", "parent": 1446, "children": [], "start_point": {"row": 199, "column": 64}, "end_point": {"row": 199, "column": 65}}, {"id": 1448, "type": "identifier", "text": "y", "parent": 1446, "children": [], "start_point": {"row": 199, "column": 65}, "end_point": {"row": 199, "column": 66}}, {"id": 1449, "type": "declaration", "text": "AMatrix * A = d->A;", "parent": 1424, "children": [1450, 1451], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 20}}, {"id": 1450, "type": "type_identifier", "text": "AMatrix", "parent": 1449, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 8}}, {"id": 1451, "type": "init_declarator", "text": "* A = d->A", "parent": 1449, "children": [1452, 1455, 1456], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 19}}, {"id": 1452, "type": "pointer_declarator", "text": "* A", "parent": 1451, "children": [1453, 1454], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 12}}, {"id": 1453, "type": "*", "text": "*", "parent": 1452, "children": [], "start_point": {"row": 200, "column": 9}, "end_point": {"row": 200, "column": 10}}, {"id": 1454, "type": "identifier", "text": "A", "parent": 1452, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 12}}, {"id": 1455, "type": "=", "text": "=", "parent": 1451, "children": [], "start_point": {"row": 200, "column": 13}, "end_point": {"row": 200, "column": 14}}, {"id": 1456, "type": "field_expression", "text": "d->A", "parent": 1451, "children": [1457, 1458], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 19}}, {"id": 1457, "type": "identifier", "text": "d", "parent": 1456, "children": [], "start_point": {"row": 200, "column": 15}, "end_point": {"row": 200, "column": 16}}, {"id": 1458, "type": "field_identifier", "text": "A", "parent": 1456, "children": [], "start_point": {"row": 200, "column": 18}, "end_point": {"row": 200, "column": 19}}, {"id": 1459, "type": "call_expression", "text": "_accumByA(d->n, A->x, A->i, A->p, x, y)", "parent": 1424, "children": [1460, 1461], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 40}}, {"id": 1460, "type": "identifier", "text": "_accumByA", "parent": 1459, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 10}}, {"id": 1461, "type": "argument_list", "text": "(d->n, A->x, A->i, A->p, x, y)", "parent": 1459, "children": [1462, 1465, 1468, 1471, 1474, 1475], "start_point": {"row": 201, "column": 10}, "end_point": {"row": 201, "column": 40}}, {"id": 1462, "type": "field_expression", "text": "d->n", "parent": 1461, "children": [1463, 1464], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 15}}, {"id": 1463, "type": "identifier", "text": "d", "parent": 1462, "children": [], "start_point": {"row": 201, "column": 11}, "end_point": {"row": 201, "column": 12}}, {"id": 1464, "type": "field_identifier", "text": "n", "parent": 1462, "children": [], "start_point": {"row": 201, "column": 14}, "end_point": {"row": 201, "column": 15}}, {"id": 1465, "type": "field_expression", "text": "A->x", "parent": 1461, "children": [1466, 1467], "start_point": {"row": 201, "column": 17}, "end_point": {"row": 201, "column": 21}}, {"id": 1466, "type": "identifier", "text": "A", "parent": 1465, "children": [], "start_point": {"row": 201, "column": 17}, "end_point": {"row": 201, "column": 18}}, {"id": 1467, "type": "field_identifier", "text": "x", "parent": 1465, "children": [], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 21}}, {"id": 1468, "type": "field_expression", "text": "A->i", "parent": 1461, "children": [1469, 1470], "start_point": {"row": 201, "column": 23}, "end_point": {"row": 201, "column": 27}}, {"id": 1469, "type": "identifier", "text": "A", "parent": 1468, "children": [], "start_point": {"row": 201, "column": 23}, "end_point": {"row": 201, "column": 24}}, {"id": 1470, "type": "field_identifier", "text": "i", "parent": 1468, "children": [], "start_point": {"row": 201, "column": 26}, "end_point": {"row": 201, "column": 27}}, {"id": 1471, "type": "field_expression", "text": "A->p", "parent": 1461, "children": [1472, 1473], "start_point": {"row": 201, "column": 29}, "end_point": {"row": 201, "column": 33}}, {"id": 1472, "type": "identifier", "text": "A", "parent": 1471, "children": [], "start_point": {"row": 201, "column": 29}, "end_point": {"row": 201, "column": 30}}, {"id": 1473, "type": "field_identifier", "text": "p", "parent": 1471, "children": [], "start_point": {"row": 201, "column": 32}, "end_point": {"row": 201, "column": 33}}, {"id": 1474, "type": "identifier", "text": "x", "parent": 1461, "children": [], "start_point": {"row": 201, "column": 35}, "end_point": {"row": 201, "column": 36}}, {"id": 1475, "type": "identifier", "text": "y", "parent": 1461, "children": [], "start_point": {"row": 201, "column": 38}, "end_point": {"row": 201, "column": 39}}, {"id": 1476, "type": "function_definition", "text": "scs_int factorize(Data * d, Priv * p) {\n\tscs_float *info;\n\tscs_int *Pinv, amd_status, ldl_status;\n\tcs *C, *K = formKKT(d);\n\tif (!K) {\n\t\treturn -1;\n\t}\n\tamd_status = LDLInit(K, p->P, &info);\n\tif (amd_status < 0)\n\t\treturn (amd_status);\n#ifdef EXTRAVERBOSE\n\tif(d->verbose) {\n\t\tscs_printf(\"Matrix factorization info:\\n\");\n#ifdef DLONG\n\t\tamd_l_info(info);\n#else\n\t\tamd_info(info);\n#endif\n\t}\n#endif\n\tPinv = cs_pinv(p->P, d->n + d->m);\n\tC = cs_symperm(K, Pinv, 1);\n\tldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);\n\tcs_spfree(C);\n\tcs_spfree(K);\n\tscs_free(Pinv);\n\tscs_free(info);\n\treturn (ldl_status);\n}", "parent": null, "children": [1477, 1478], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 232, "column": 1}}, {"id": 1477, "type": "type_identifier", "text": "scs_int", "parent": 1476, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 7}}, {"id": 1478, "type": "function_declarator", "text": "factorize(Data * d, Priv * p)", "parent": 1476, "children": [1479, 1480], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 37}}, {"id": 1479, "type": "identifier", "text": "factorize", "parent": 1478, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 17}}, {"id": 1480, "type": "parameter_list", "text": "(Data * d, Priv * p)", "parent": 1478, "children": [1481, 1486], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 37}}, {"id": 1481, "type": "parameter_declaration", "text": "Data * d", "parent": 1480, "children": [1482, 1483], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 26}}, {"id": 1482, "type": "type_identifier", "text": "Data", "parent": 1481, "children": [], "start_point": {"row": 204, "column": 18}, "end_point": {"row": 204, "column": 22}}, {"id": 1483, "type": "pointer_declarator", "text": "* d", "parent": 1481, "children": [1484, 1485], "start_point": {"row": 204, "column": 23}, "end_point": {"row": 204, "column": 26}}, {"id": 1484, "type": "*", "text": "*", "parent": 1483, "children": [], "start_point": {"row": 204, "column": 23}, "end_point": {"row": 204, "column": 24}}, {"id": 1485, "type": "identifier", "text": "d", "parent": 1483, "children": [], "start_point": {"row": 204, "column": 25}, "end_point": {"row": 204, "column": 26}}, {"id": 1486, "type": "parameter_declaration", "text": "Priv * p", "parent": 1480, "children": [1487, 1488], "start_point": {"row": 204, "column": 28}, "end_point": {"row": 204, "column": 36}}, {"id": 1487, "type": "type_identifier", "text": "Priv", "parent": 1486, "children": [], "start_point": {"row": 204, "column": 28}, "end_point": {"row": 204, "column": 32}}, {"id": 1488, "type": "pointer_declarator", "text": "* p", "parent": 1486, "children": [1489, 1490], "start_point": {"row": 204, "column": 33}, "end_point": {"row": 204, "column": 36}}, {"id": 1489, "type": "*", "text": "*", "parent": 1488, "children": [], "start_point": {"row": 204, "column": 33}, "end_point": {"row": 204, "column": 34}}, {"id": 1490, "type": "identifier", "text": "p", "parent": 1488, "children": [], "start_point": {"row": 204, "column": 35}, "end_point": {"row": 204, "column": 36}}, {"id": 1491, "type": "declaration", "text": "scs_float *info;", "parent": 1476, "children": [1492, 1493], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 17}}, {"id": 1492, "type": "type_identifier", "text": "scs_float", "parent": 1491, "children": [], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 10}}, {"id": 1493, "type": "pointer_declarator", "text": "*info", "parent": 1491, "children": [1494, 1495], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 16}}, {"id": 1494, "type": "*", "text": "*", "parent": 1493, "children": [], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 12}}, {"id": 1495, "type": "identifier", "text": "info", "parent": 1493, "children": [], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 16}}, {"id": 1496, "type": "declaration", "text": "scs_int *Pinv, amd_status, ldl_status;", "parent": 1476, "children": [1497, 1498, 1501, 1502], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 39}}, {"id": 1497, "type": "type_identifier", "text": "scs_int", "parent": 1496, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 8}}, {"id": 1498, "type": "pointer_declarator", "text": "*Pinv", "parent": 1496, "children": [1499, 1500], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 14}}, {"id": 1499, "type": "*", "text": "*", "parent": 1498, "children": [], "start_point": {"row": 206, "column": 9}, "end_point": {"row": 206, "column": 10}}, {"id": 1500, "type": "identifier", "text": "Pinv", "parent": 1498, "children": [], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 14}}, {"id": 1501, "type": "identifier", "text": "amd_status", "parent": 1496, "children": [], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 26}}, {"id": 1502, "type": "identifier", "text": "ldl_status", "parent": 1496, "children": [], "start_point": {"row": 206, "column": 28}, "end_point": {"row": 206, "column": 38}}, {"id": 1503, "type": "declaration", "text": "cs *C, *K = formKKT(d);", "parent": 1476, "children": [1504, 1505, 1508], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 24}}, {"id": 1504, "type": "type_identifier", "text": "cs", "parent": 1503, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 3}}, {"id": 1505, "type": "pointer_declarator", "text": "*C", "parent": 1503, "children": [1506, 1507], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 6}}, {"id": 1506, "type": "*", "text": "*", "parent": 1505, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 5}}, {"id": 1507, "type": "identifier", "text": "C", "parent": 1505, "children": [], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 6}}, {"id": 1508, "type": "init_declarator", "text": "*K = formKKT(d)", "parent": 1503, "children": [1509, 1512, 1513], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 23}}, {"id": 1509, "type": "pointer_declarator", "text": "*K", "parent": 1508, "children": [1510, 1511], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 10}}, {"id": 1510, "type": "*", "text": "*", "parent": 1509, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 9}}, {"id": 1511, "type": "identifier", "text": "K", "parent": 1509, "children": [], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 10}}, {"id": 1512, "type": "=", "text": "=", "parent": 1508, "children": [], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 12}}, {"id": 1513, "type": "call_expression", "text": "formKKT(d)", "parent": 1508, "children": [1514, 1515], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 23}}, {"id": 1514, "type": "identifier", "text": "formKKT", "parent": 1513, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 20}}, {"id": 1515, "type": "argument_list", "text": "(d)", "parent": 1513, "children": [1516], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 23}}, {"id": 1516, "type": "identifier", "text": "d", "parent": 1515, "children": [], "start_point": {"row": 207, "column": 21}, "end_point": {"row": 207, "column": 22}}, {"id": 1517, "type": "if_statement", "text": "if (!K) {\n\t\treturn -1;\n\t}", "parent": 1476, "children": [1518], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 210, "column": 2}}, {"id": 1518, "type": "parenthesized_expression", "text": "(!K)", "parent": 1517, "children": [1519], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 8}}, {"id": 1519, "type": "unary_expression", "text": "!K", "parent": 1518, "children": [1520, 1521], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 7}}, {"id": 1520, "type": "!", "text": "!", "parent": 1519, "children": [], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 6}}, {"id": 1521, "type": "identifier", "text": "K", "parent": 1519, "children": [], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 7}}, {"id": 1522, "type": "return_statement", "text": "return -1;", "parent": 1517, "children": [1523], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 12}}, {"id": 1523, "type": "number_literal", "text": "-1", "parent": 1522, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 11}}, {"id": 1524, "type": "assignment_expression", "text": "amd_status = LDLInit(K, p->P, &info)", "parent": 1476, "children": [1525, 1526, 1527], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 37}}, {"id": 1525, "type": "identifier", "text": "amd_status", "parent": 1524, "children": [], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 11}}, {"id": 1526, "type": "=", "text": "=", "parent": 1524, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 13}}, {"id": 1527, "type": "call_expression", "text": "LDLInit(K, p->P, &info)", "parent": 1524, "children": [1528, 1529], "start_point": {"row": 211, "column": 14}, "end_point": {"row": 211, "column": 37}}, {"id": 1528, "type": "identifier", "text": "LDLInit", "parent": 1527, "children": [], "start_point": {"row": 211, "column": 14}, "end_point": {"row": 211, "column": 21}}, {"id": 1529, "type": "argument_list", "text": "(K, p->P, &info)", "parent": 1527, "children": [1530, 1531, 1534], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 37}}, {"id": 1530, "type": "identifier", "text": "K", "parent": 1529, "children": [], "start_point": {"row": 211, "column": 22}, "end_point": {"row": 211, "column": 23}}, {"id": 1531, "type": "field_expression", "text": "p->P", "parent": 1529, "children": [1532, 1533], "start_point": {"row": 211, "column": 25}, "end_point": {"row": 211, "column": 29}}, {"id": 1532, "type": "identifier", "text": "p", "parent": 1531, "children": [], "start_point": {"row": 211, "column": 25}, "end_point": {"row": 211, "column": 26}}, {"id": 1533, "type": "field_identifier", "text": "P", "parent": 1531, "children": [], "start_point": {"row": 211, "column": 28}, "end_point": {"row": 211, "column": 29}}, {"id": 1534, "type": "pointer_expression", "text": "&info", "parent": 1529, "children": [1535], "start_point": {"row": 211, "column": 31}, "end_point": {"row": 211, "column": 36}}, {"id": 1535, "type": "identifier", "text": "info", "parent": 1534, "children": [], "start_point": {"row": 211, "column": 32}, "end_point": {"row": 211, "column": 36}}, {"id": 1536, "type": "if_statement", "text": "if (amd_status < 0)\n\t\treturn (amd_status);", "parent": 1476, "children": [1537, 1542], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 213, "column": 22}}, {"id": 1537, "type": "parenthesized_expression", "text": "(amd_status < 0)", "parent": 1536, "children": [1538], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 20}}, {"id": 1538, "type": "binary_expression", "text": "amd_status < 0", "parent": 1537, "children": [1539, 1540, 1541], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 19}}, {"id": 1539, "type": "identifier", "text": "amd_status", "parent": 1538, "children": [], "start_point": {"row": 212, "column": 5}, "end_point": {"row": 212, "column": 15}}, {"id": 1540, "type": "<", "text": "<", "parent": 1538, "children": [], "start_point": {"row": 212, "column": 16}, "end_point": {"row": 212, "column": 17}}, {"id": 1541, "type": "number_literal", "text": "0", "parent": 1538, "children": [], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 19}}, {"id": 1542, "type": "return_statement", "text": "return (amd_status);", "parent": 1536, "children": [1543], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 22}}, {"id": 1543, "type": "parenthesized_expression", "text": "(amd_status)", "parent": 1542, "children": [1544], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 213, "column": 21}}, {"id": 1544, "type": "identifier", "text": "amd_status", "parent": 1543, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 20}}, {"id": 1545, "type": "preproc_ifdef", "text": "#ifdef EXTRAVERBOSE\n\tif(d->verbose) {\n\t\tscs_printf(\"Matrix factorization info:\\n\");\n#ifdef DLONG\n\t\tamd_l_info(info);\n#else\n\t\tamd_info(info);\n#endif\n\t}\n#endif", "parent": 1476, "children": [1546, 1547, 1548, 1572], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 1546, "type": "#ifdef", "text": "#ifdef", "parent": 1545, "children": [], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 6}}, {"id": 1547, "type": "identifier", "text": "EXTRAVERBOSE", "parent": 1545, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 19}}, {"id": 1548, "type": "if_statement", "text": "if(d->verbose) {\n\t\tscs_printf(\"Matrix factorization info:\\n\");\n#ifdef DLONG\n\t\tamd_l_info(info);\n#else\n\t\tamd_info(info);\n#endif\n\t}", "parent": 1545, "children": [1549], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 222, "column": 2}}, {"id": 1549, "type": "parenthesized_expression", "text": "(d->verbose)", "parent": 1548, "children": [1550], "start_point": {"row": 215, "column": 3}, "end_point": {"row": 215, "column": 15}}, {"id": 1550, "type": "field_expression", "text": "d->verbose", "parent": 1549, "children": [1551, 1552], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 14}}, {"id": 1551, "type": "identifier", "text": "d", "parent": 1550, "children": [], "start_point": {"row": 215, "column": 4}, "end_point": {"row": 215, "column": 5}}, {"id": 1552, "type": "field_identifier", "text": "verbose", "parent": 1550, "children": [], "start_point": {"row": 215, "column": 7}, "end_point": {"row": 215, "column": 14}}, {"id": 1553, "type": "call_expression", "text": "scs_printf(\"Matrix factorization info:\\n\")", "parent": 1548, "children": [1554, 1555], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 44}}, {"id": 1554, "type": "identifier", "text": "scs_printf", "parent": 1553, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 12}}, {"id": 1555, "type": "argument_list", "text": "(\"Matrix factorization info:\\n\")", "parent": 1553, "children": [1556], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 44}}, {"id": 1556, "type": "string_literal", "text": "\"Matrix factorization info:\\n\"", "parent": 1555, "children": [1557], "start_point": {"row": 216, "column": 13}, "end_point": {"row": 216, "column": 43}}, {"id": 1557, "type": "escape_sequence", "text": "\\n", "parent": 1556, "children": [], "start_point": {"row": 216, "column": 40}, "end_point": {"row": 216, "column": 42}}, {"id": 1558, "type": "preproc_ifdef", "text": "#ifdef DLONG\n\t\tamd_l_info(info);\n#else\n\t\tamd_info(info);\n#endif", "parent": 1548, "children": [1559, 1560, 1565, 1571], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 221, "column": 6}}, {"id": 1559, "type": "#ifdef", "text": "#ifdef", "parent": 1558, "children": [], "start_point": {"row": 217, "column": 0}, "end_point": {"row": 217, "column": 6}}, {"id": 1560, "type": "identifier", "text": "DLONG", "parent": 1558, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 12}}, {"id": 1561, "type": "call_expression", "text": "amd_l_info(info)", "parent": 1558, "children": [1562, 1563], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 18}}, {"id": 1562, "type": "identifier", "text": "amd_l_info", "parent": 1561, "children": [], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 12}}, {"id": 1563, "type": "argument_list", "text": "(info)", "parent": 1561, "children": [1564], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 18}}, {"id": 1564, "type": "identifier", "text": "info", "parent": 1563, "children": [], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 17}}, {"id": 1565, "type": "preproc_else", "text": "#else\n\t\tamd_info(info);", "parent": 1558, "children": [1566], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 220, "column": 17}}, {"id": 1566, "type": "#else", "text": "#else", "parent": 1565, "children": [], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 219, "column": 5}}, {"id": 1567, "type": "call_expression", "text": "amd_info(info)", "parent": 1565, "children": [1568, 1569], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 16}}, {"id": 1568, "type": "identifier", "text": "amd_info", "parent": 1567, "children": [], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 10}}, {"id": 1569, "type": "argument_list", "text": "(info)", "parent": 1567, "children": [1570], "start_point": {"row": 220, "column": 10}, "end_point": {"row": 220, "column": 16}}, {"id": 1570, "type": "identifier", "text": "info", "parent": 1569, "children": [], "start_point": {"row": 220, "column": 11}, "end_point": {"row": 220, "column": 15}}, {"id": 1571, "type": "#endif", "text": "#endif", "parent": 1558, "children": [], "start_point": {"row": 221, "column": 0}, "end_point": {"row": 221, "column": 6}}, {"id": 1572, "type": "#endif", "text": "#endif", "parent": 1545, "children": [], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 223, "column": 6}}, {"id": 1573, "type": "assignment_expression", "text": "Pinv = cs_pinv(p->P, d->n + d->m)", "parent": 1476, "children": [1574, 1575, 1576], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 34}}, {"id": 1574, "type": "identifier", "text": "Pinv", "parent": 1573, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 5}}, {"id": 1575, "type": "=", "text": "=", "parent": 1573, "children": [], "start_point": {"row": 224, "column": 6}, "end_point": {"row": 224, "column": 7}}, {"id": 1576, "type": "call_expression", "text": "cs_pinv(p->P, d->n + d->m)", "parent": 1573, "children": [1577, 1578], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 34}}, {"id": 1577, "type": "identifier", "text": "cs_pinv", "parent": 1576, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 15}}, {"id": 1578, "type": "argument_list", "text": "(p->P, d->n + d->m)", "parent": 1576, "children": [1579, 1582], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 34}}, {"id": 1579, "type": "field_expression", "text": "p->P", "parent": 1578, "children": [1580, 1581], "start_point": {"row": 224, "column": 16}, "end_point": {"row": 224, "column": 20}}, {"id": 1580, "type": "identifier", "text": "p", "parent": 1579, "children": [], "start_point": {"row": 224, "column": 16}, "end_point": {"row": 224, "column": 17}}, {"id": 1581, "type": "field_identifier", "text": "P", "parent": 1579, "children": [], "start_point": {"row": 224, "column": 19}, "end_point": {"row": 224, "column": 20}}, {"id": 1582, "type": "binary_expression", "text": "d->n + d->m", "parent": 1578, "children": [1583, 1586, 1587], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 33}}, {"id": 1583, "type": "field_expression", "text": "d->n", "parent": 1582, "children": [1584, 1585], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 26}}, {"id": 1584, "type": "identifier", "text": "d", "parent": 1583, "children": [], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 23}}, {"id": 1585, "type": "field_identifier", "text": "n", "parent": 1583, "children": [], "start_point": {"row": 224, "column": 25}, "end_point": {"row": 224, "column": 26}}, {"id": 1586, "type": "+", "text": "+", "parent": 1582, "children": [], "start_point": {"row": 224, "column": 27}, "end_point": {"row": 224, "column": 28}}, {"id": 1587, "type": "field_expression", "text": "d->m", "parent": 1582, "children": [1588, 1589], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 33}}, {"id": 1588, "type": "identifier", "text": "d", "parent": 1587, "children": [], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 30}}, {"id": 1589, "type": "field_identifier", "text": "m", "parent": 1587, "children": [], "start_point": {"row": 224, "column": 32}, "end_point": {"row": 224, "column": 33}}, {"id": 1590, "type": "assignment_expression", "text": "C = cs_symperm(K, Pinv, 1)", "parent": 1476, "children": [1591, 1592, 1593], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 27}}, {"id": 1591, "type": "identifier", "text": "C", "parent": 1590, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 2}}, {"id": 1592, "type": "=", "text": "=", "parent": 1590, "children": [], "start_point": {"row": 225, "column": 3}, "end_point": {"row": 225, "column": 4}}, {"id": 1593, "type": "call_expression", "text": "cs_symperm(K, Pinv, 1)", "parent": 1590, "children": [1594, 1595], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 27}}, {"id": 1594, "type": "identifier", "text": "cs_symperm", "parent": 1593, "children": [], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 15}}, {"id": 1595, "type": "argument_list", "text": "(K, Pinv, 1)", "parent": 1593, "children": [1596, 1597, 1598], "start_point": {"row": 225, "column": 15}, "end_point": {"row": 225, "column": 27}}, {"id": 1596, "type": "identifier", "text": "K", "parent": 1595, "children": [], "start_point": {"row": 225, "column": 16}, "end_point": {"row": 225, "column": 17}}, {"id": 1597, "type": "identifier", "text": "Pinv", "parent": 1595, "children": [], "start_point": {"row": 225, "column": 19}, "end_point": {"row": 225, "column": 23}}, {"id": 1598, "type": "number_literal", "text": "1", "parent": 1595, "children": [], "start_point": {"row": 225, "column": 25}, "end_point": {"row": 225, "column": 26}}, {"id": 1599, "type": "assignment_expression", "text": "ldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D)", "parent": 1476, "children": [1600, 1601, 1602], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 52}}, {"id": 1600, "type": "identifier", "text": "ldl_status", "parent": 1599, "children": [], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 11}}, {"id": 1601, "type": "=", "text": "=", "parent": 1599, "children": [], "start_point": {"row": 226, "column": 12}, "end_point": {"row": 226, "column": 13}}, {"id": 1602, "type": "call_expression", "text": "LDLFactor(C, NULL, NULL, &p->L, &p->D)", "parent": 1599, "children": [1603, 1604], "start_point": {"row": 226, "column": 14}, "end_point": {"row": 226, "column": 52}}, {"id": 1603, "type": "identifier", "text": "LDLFactor", "parent": 1602, "children": [], "start_point": {"row": 226, "column": 14}, "end_point": {"row": 226, "column": 23}}, {"id": 1604, "type": "argument_list", "text": "(C, NULL, NULL, &p->L, &p->D)", "parent": 1602, "children": [1605, 1606, 1608, 1610, 1614], "start_point": {"row": 226, "column": 23}, "end_point": {"row": 226, "column": 52}}, {"id": 1605, "type": "identifier", "text": "C", "parent": 1604, "children": [], "start_point": {"row": 226, "column": 24}, "end_point": {"row": 226, "column": 25}}, {"id": 1606, "type": "null", "text": "NULL", "parent": 1604, "children": [1607], "start_point": {"row": 226, "column": 27}, "end_point": {"row": 226, "column": 31}}, {"id": 1607, "type": "NULL", "text": "NULL", "parent": 1606, "children": [], "start_point": {"row": 226, "column": 27}, "end_point": {"row": 226, "column": 31}}, {"id": 1608, "type": "null", "text": "NULL", "parent": 1604, "children": [1609], "start_point": {"row": 226, "column": 33}, "end_point": {"row": 226, "column": 37}}, {"id": 1609, "type": "NULL", "text": "NULL", "parent": 1608, "children": [], "start_point": {"row": 226, "column": 33}, "end_point": {"row": 226, "column": 37}}, {"id": 1610, "type": "pointer_expression", "text": "&p->L", "parent": 1604, "children": [1611], "start_point": {"row": 226, "column": 39}, "end_point": {"row": 226, "column": 44}}, {"id": 1611, "type": "field_expression", "text": "p->L", "parent": 1610, "children": [1612, 1613], "start_point": {"row": 226, "column": 40}, "end_point": {"row": 226, "column": 44}}, {"id": 1612, "type": "identifier", "text": "p", "parent": 1611, "children": [], "start_point": {"row": 226, "column": 40}, "end_point": {"row": 226, "column": 41}}, {"id": 1613, "type": "field_identifier", "text": "L", "parent": 1611, "children": [], "start_point": {"row": 226, "column": 43}, "end_point": {"row": 226, "column": 44}}, {"id": 1614, "type": "pointer_expression", "text": "&p->D", "parent": 1604, "children": [1615], "start_point": {"row": 226, "column": 46}, "end_point": {"row": 226, "column": 51}}, {"id": 1615, "type": "field_expression", "text": "p->D", "parent": 1614, "children": [1616, 1617], "start_point": {"row": 226, "column": 47}, "end_point": {"row": 226, "column": 51}}, {"id": 1616, "type": "identifier", "text": "p", "parent": 1615, "children": [], "start_point": {"row": 226, "column": 47}, "end_point": {"row": 226, "column": 48}}, {"id": 1617, "type": "field_identifier", "text": "D", "parent": 1615, "children": [], "start_point": {"row": 226, "column": 50}, "end_point": {"row": 226, "column": 51}}, {"id": 1618, "type": "call_expression", "text": "cs_spfree(C)", "parent": 1476, "children": [1619, 1620], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 13}}, {"id": 1619, "type": "identifier", "text": "cs_spfree", "parent": 1618, "children": [], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 10}}, {"id": 1620, "type": "argument_list", "text": "(C)", "parent": 1618, "children": [1621], "start_point": {"row": 227, "column": 10}, "end_point": {"row": 227, "column": 13}}, {"id": 1621, "type": "identifier", "text": "C", "parent": 1620, "children": [], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 12}}, {"id": 1622, "type": "call_expression", "text": "cs_spfree(K)", "parent": 1476, "children": [1623, 1624], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 13}}, {"id": 1623, "type": "identifier", "text": "cs_spfree", "parent": 1622, "children": [], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 10}}, {"id": 1624, "type": "argument_list", "text": "(K)", "parent": 1622, "children": [1625], "start_point": {"row": 228, "column": 10}, "end_point": {"row": 228, "column": 13}}, {"id": 1625, "type": "identifier", "text": "K", "parent": 1624, "children": [], "start_point": {"row": 228, "column": 11}, "end_point": {"row": 228, "column": 12}}, {"id": 1626, "type": "call_expression", "text": "scs_free(Pinv)", "parent": 1476, "children": [1627, 1628], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 15}}, {"id": 1627, "type": "identifier", "text": "scs_free", "parent": 1626, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 9}}, {"id": 1628, "type": "argument_list", "text": "(Pinv)", "parent": 1626, "children": [1629], "start_point": {"row": 229, "column": 9}, "end_point": {"row": 229, "column": 15}}, {"id": 1629, "type": "identifier", "text": "Pinv", "parent": 1628, "children": [], "start_point": {"row": 229, "column": 10}, "end_point": {"row": 229, "column": 14}}, {"id": 1630, "type": "call_expression", "text": "scs_free(info)", "parent": 1476, "children": [1631, 1632], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 15}}, {"id": 1631, "type": "identifier", "text": "scs_free", "parent": 1630, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 9}}, {"id": 1632, "type": "argument_list", "text": "(info)", "parent": 1630, "children": [1633], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 15}}, {"id": 1633, "type": "identifier", "text": "info", "parent": 1632, "children": [], "start_point": {"row": 230, "column": 10}, "end_point": {"row": 230, "column": 14}}, {"id": 1634, "type": "return_statement", "text": "return (ldl_status);", "parent": 1476, "children": [1635], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 21}}, {"id": 1635, "type": "parenthesized_expression", "text": "(ldl_status)", "parent": 1634, "children": [1636], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 20}}, {"id": 1636, "type": "identifier", "text": "ldl_status", "parent": 1635, "children": [], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 19}}, {"id": 1637, "type": "function_definition", "text": "Priv * initPriv(Data * d) {\n\tPriv * p = scs_calloc(1, sizeof(Priv));\n\tscs_int n_plus_m = d->n + d->m;\n\tp->P = scs_malloc(sizeof(scs_int) * n_plus_m);\n\tp->L = scs_malloc(sizeof(cs));\n\tp->bp = scs_malloc(n_plus_m * sizeof(scs_float));\n\tp->L->m = n_plus_m;\n\tp->L->n = n_plus_m;\n\tp->L->nz = -1;\n\n\tif (factorize(d, p) < 0) {\n\t\tfreePriv(p);\n\t\treturn NULL;\n\t}\n\ttotalSolveTime = 0.0;\n\treturn p;\n}", "parent": null, "children": [1638, 1639], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 250, "column": 1}}, {"id": 1638, "type": "type_identifier", "text": "Priv", "parent": 1637, "children": [], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 4}}, {"id": 1639, "type": "pointer_declarator", "text": "* initPriv(Data * d)", "parent": 1637, "children": [1640, 1641], "start_point": {"row": 234, "column": 5}, "end_point": {"row": 234, "column": 25}}, {"id": 1640, "type": "*", "text": "*", "parent": 1639, "children": [], "start_point": {"row": 234, "column": 5}, "end_point": {"row": 234, "column": 6}}, {"id": 1641, "type": "function_declarator", "text": "initPriv(Data * d)", "parent": 1639, "children": [1642, 1643], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 25}}, {"id": 1642, "type": "identifier", "text": "initPriv", "parent": 1641, "children": [], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 15}}, {"id": 1643, "type": "parameter_list", "text": "(Data * d)", "parent": 1641, "children": [1644], "start_point": {"row": 234, "column": 15}, "end_point": {"row": 234, "column": 25}}, {"id": 1644, "type": "parameter_declaration", "text": "Data * d", "parent": 1643, "children": [1645, 1646], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 24}}, {"id": 1645, "type": "type_identifier", "text": "Data", "parent": 1644, "children": [], "start_point": {"row": 234, "column": 16}, "end_point": {"row": 234, "column": 20}}, {"id": 1646, "type": "pointer_declarator", "text": "* d", "parent": 1644, "children": [1647, 1648], "start_point": {"row": 234, "column": 21}, "end_point": {"row": 234, "column": 24}}, {"id": 1647, "type": "*", "text": "*", "parent": 1646, "children": [], "start_point": {"row": 234, "column": 21}, "end_point": {"row": 234, "column": 22}}, {"id": 1648, "type": "identifier", "text": "d", "parent": 1646, "children": [], "start_point": {"row": 234, "column": 23}, "end_point": {"row": 234, "column": 24}}, {"id": 1649, "type": "declaration", "text": "Priv * p = scs_calloc(1, sizeof(Priv));", "parent": 1637, "children": [1650, 1651], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 40}}, {"id": 1650, "type": "type_identifier", "text": "Priv", "parent": 1649, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 5}}, {"id": 1651, "type": "init_declarator", "text": "* p = scs_calloc(1, sizeof(Priv))", "parent": 1649, "children": [1652, 1655, 1656], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 39}}, {"id": 1652, "type": "pointer_declarator", "text": "* p", "parent": 1651, "children": [1653, 1654], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 9}}, {"id": 1653, "type": "*", "text": "*", "parent": 1652, "children": [], "start_point": {"row": 235, "column": 6}, "end_point": {"row": 235, "column": 7}}, {"id": 1654, "type": "identifier", "text": "p", "parent": 1652, "children": [], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 9}}, {"id": 1655, "type": "=", "text": "=", "parent": 1651, "children": [], "start_point": {"row": 235, "column": 10}, "end_point": {"row": 235, "column": 11}}, {"id": 1656, "type": "call_expression", "text": "scs_calloc(1, sizeof(Priv))", "parent": 1651, "children": [1657, 1658], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 39}}, {"id": 1657, "type": "identifier", "text": "scs_calloc", "parent": 1656, "children": [], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 22}}, {"id": 1658, "type": "argument_list", "text": "(1, sizeof(Priv))", "parent": 1656, "children": [1659, 1660], "start_point": {"row": 235, "column": 22}, "end_point": {"row": 235, "column": 39}}, {"id": 1659, "type": "number_literal", "text": "1", "parent": 1658, "children": [], "start_point": {"row": 235, "column": 23}, "end_point": {"row": 235, "column": 24}}, {"id": 1660, "type": "sizeof_expression", "text": "sizeof(Priv)", "parent": 1658, "children": [1661], "start_point": {"row": 235, "column": 26}, "end_point": {"row": 235, "column": 38}}, {"id": 1661, "type": "parenthesized_expression", "text": "(Priv)", "parent": 1660, "children": [1662], "start_point": {"row": 235, "column": 32}, "end_point": {"row": 235, "column": 38}}, {"id": 1662, "type": "identifier", "text": "Priv", "parent": 1661, "children": [], "start_point": {"row": 235, "column": 33}, "end_point": {"row": 235, "column": 37}}, {"id": 1663, "type": "declaration", "text": "scs_int n_plus_m = d->n + d->m;", "parent": 1637, "children": [1664, 1665], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 32}}, {"id": 1664, "type": "type_identifier", "text": "scs_int", "parent": 1663, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 8}}, {"id": 1665, "type": "init_declarator", "text": "n_plus_m = d->n + d->m", "parent": 1663, "children": [1666, 1667, 1668], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 31}}, {"id": 1666, "type": "identifier", "text": "n_plus_m", "parent": 1665, "children": [], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 17}}, {"id": 1667, "type": "=", "text": "=", "parent": 1665, "children": [], "start_point": {"row": 236, "column": 18}, "end_point": {"row": 236, "column": 19}}, {"id": 1668, "type": "binary_expression", "text": "d->n + d->m", "parent": 1665, "children": [1669, 1672, 1673], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 31}}, {"id": 1669, "type": "field_expression", "text": "d->n", "parent": 1668, "children": [1670, 1671], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 24}}, {"id": 1670, "type": "identifier", "text": "d", "parent": 1669, "children": [], "start_point": {"row": 236, "column": 20}, "end_point": {"row": 236, "column": 21}}, {"id": 1671, "type": "field_identifier", "text": "n", "parent": 1669, "children": [], "start_point": {"row": 236, "column": 23}, "end_point": {"row": 236, "column": 24}}, {"id": 1672, "type": "+", "text": "+", "parent": 1668, "children": [], "start_point": {"row": 236, "column": 25}, "end_point": {"row": 236, "column": 26}}, {"id": 1673, "type": "field_expression", "text": "d->m", "parent": 1668, "children": [1674, 1675], "start_point": {"row": 236, "column": 27}, "end_point": {"row": 236, "column": 31}}, {"id": 1674, "type": "identifier", "text": "d", "parent": 1673, "children": [], "start_point": {"row": 236, "column": 27}, "end_point": {"row": 236, "column": 28}}, {"id": 1675, "type": "field_identifier", "text": "m", "parent": 1673, "children": [], "start_point": {"row": 236, "column": 30}, "end_point": {"row": 236, "column": 31}}, {"id": 1676, "type": "assignment_expression", "text": "p->P = scs_malloc(sizeof(scs_int) * n_plus_m)", "parent": 1637, "children": [1677, 1680, 1681], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 46}}, {"id": 1677, "type": "field_expression", "text": "p->P", "parent": 1676, "children": [1678, 1679], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 5}}, {"id": 1678, "type": "identifier", "text": "p", "parent": 1677, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 2}}, {"id": 1679, "type": "field_identifier", "text": "P", "parent": 1677, "children": [], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 5}}, {"id": 1680, "type": "=", "text": "=", "parent": 1676, "children": [], "start_point": {"row": 237, "column": 6}, "end_point": {"row": 237, "column": 7}}, {"id": 1681, "type": "call_expression", "text": "scs_malloc(sizeof(scs_int) * n_plus_m)", "parent": 1676, "children": [1682, 1683], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 46}}, {"id": 1682, "type": "identifier", "text": "scs_malloc", "parent": 1681, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 18}}, {"id": 1683, "type": "argument_list", "text": "(sizeof(scs_int) * n_plus_m)", "parent": 1681, "children": [1684], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 46}}, {"id": 1684, "type": "binary_expression", "text": "sizeof(scs_int) * n_plus_m", "parent": 1683, "children": [1685, 1688, 1689], "start_point": {"row": 237, "column": 19}, "end_point": {"row": 237, "column": 45}}, {"id": 1685, "type": "sizeof_expression", "text": "sizeof(scs_int)", "parent": 1684, "children": [1686], "start_point": {"row": 237, "column": 19}, "end_point": {"row": 237, "column": 34}}, {"id": 1686, "type": "parenthesized_expression", "text": "(scs_int)", "parent": 1685, "children": [1687], "start_point": {"row": 237, "column": 25}, "end_point": {"row": 237, "column": 34}}, {"id": 1687, "type": "identifier", "text": "scs_int", "parent": 1686, "children": [], "start_point": {"row": 237, "column": 26}, "end_point": {"row": 237, "column": 33}}, {"id": 1688, "type": "*", "text": "*", "parent": 1684, "children": [], "start_point": {"row": 237, "column": 35}, "end_point": {"row": 237, "column": 36}}, {"id": 1689, "type": "identifier", "text": "n_plus_m", "parent": 1684, "children": [], "start_point": {"row": 237, "column": 37}, "end_point": {"row": 237, "column": 45}}, {"id": 1690, "type": "assignment_expression", "text": "p->L = scs_malloc(sizeof(cs))", "parent": 1637, "children": [1691, 1694, 1695], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 30}}, {"id": 1691, "type": "field_expression", "text": "p->L", "parent": 1690, "children": [1692, 1693], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 5}}, {"id": 1692, "type": "identifier", "text": "p", "parent": 1691, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 2}}, {"id": 1693, "type": "field_identifier", "text": "L", "parent": 1691, "children": [], "start_point": {"row": 238, "column": 4}, "end_point": {"row": 238, "column": 5}}, {"id": 1694, "type": "=", "text": "=", "parent": 1690, "children": [], "start_point": {"row": 238, "column": 6}, "end_point": {"row": 238, "column": 7}}, {"id": 1695, "type": "call_expression", "text": "scs_malloc(sizeof(cs))", "parent": 1690, "children": [1696, 1697], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 30}}, {"id": 1696, "type": "identifier", "text": "scs_malloc", "parent": 1695, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 18}}, {"id": 1697, "type": "argument_list", "text": "(sizeof(cs))", "parent": 1695, "children": [1698], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 30}}, {"id": 1698, "type": "sizeof_expression", "text": "sizeof(cs)", "parent": 1697, "children": [1699], "start_point": {"row": 238, "column": 19}, "end_point": {"row": 238, "column": 29}}, {"id": 1699, "type": "parenthesized_expression", "text": "(cs)", "parent": 1698, "children": [1700], "start_point": {"row": 238, "column": 25}, "end_point": {"row": 238, "column": 29}}, {"id": 1700, "type": "identifier", "text": "cs", "parent": 1699, "children": [], "start_point": {"row": 238, "column": 26}, "end_point": {"row": 238, "column": 28}}, {"id": 1701, "type": "assignment_expression", "text": "p->bp = scs_malloc(n_plus_m * sizeof(scs_float))", "parent": 1637, "children": [1702, 1705, 1706], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 49}}, {"id": 1702, "type": "field_expression", "text": "p->bp", "parent": 1701, "children": [1703, 1704], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 6}}, {"id": 1703, "type": "identifier", "text": "p", "parent": 1702, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 2}}, {"id": 1704, "type": "field_identifier", "text": "bp", "parent": 1702, "children": [], "start_point": {"row": 239, "column": 4}, "end_point": {"row": 239, "column": 6}}, {"id": 1705, "type": "=", "text": "=", "parent": 1701, "children": [], "start_point": {"row": 239, "column": 7}, "end_point": {"row": 239, "column": 8}}, {"id": 1706, "type": "call_expression", "text": "scs_malloc(n_plus_m * sizeof(scs_float))", "parent": 1701, "children": [1707, 1708], "start_point": {"row": 239, "column": 9}, "end_point": {"row": 239, "column": 49}}, {"id": 1707, "type": "identifier", "text": "scs_malloc", "parent": 1706, "children": [], "start_point": {"row": 239, "column": 9}, "end_point": {"row": 239, "column": 19}}, {"id": 1708, "type": "argument_list", "text": "(n_plus_m * sizeof(scs_float))", "parent": 1706, "children": [1709], "start_point": {"row": 239, "column": 19}, "end_point": {"row": 239, "column": 49}}, {"id": 1709, "type": "binary_expression", "text": "n_plus_m * sizeof(scs_float)", "parent": 1708, "children": [1710, 1711, 1712], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 48}}, {"id": 1710, "type": "identifier", "text": "n_plus_m", "parent": 1709, "children": [], "start_point": {"row": 239, "column": 20}, "end_point": {"row": 239, "column": 28}}, {"id": 1711, "type": "*", "text": "*", "parent": 1709, "children": [], "start_point": {"row": 239, "column": 29}, "end_point": {"row": 239, "column": 30}}, {"id": 1712, "type": "sizeof_expression", "text": "sizeof(scs_float)", "parent": 1709, "children": [1713], "start_point": {"row": 239, "column": 31}, "end_point": {"row": 239, "column": 48}}, {"id": 1713, "type": "parenthesized_expression", "text": "(scs_float)", "parent": 1712, "children": [1714], "start_point": {"row": 239, "column": 37}, "end_point": {"row": 239, "column": 48}}, {"id": 1714, "type": "identifier", "text": "scs_float", "parent": 1713, "children": [], "start_point": {"row": 239, "column": 38}, "end_point": {"row": 239, "column": 47}}, {"id": 1715, "type": "assignment_expression", "text": "p->L->m = n_plus_m", "parent": 1637, "children": [1716, 1721, 1722], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 19}}, {"id": 1716, "type": "field_expression", "text": "p->L->m", "parent": 1715, "children": [1717, 1720], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 8}}, {"id": 1717, "type": "field_expression", "text": "p->L", "parent": 1716, "children": [1718, 1719], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 5}}, {"id": 1718, "type": "identifier", "text": "p", "parent": 1717, "children": [], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 2}}, {"id": 1719, "type": "field_identifier", "text": "L", "parent": 1717, "children": [], "start_point": {"row": 240, "column": 4}, "end_point": {"row": 240, "column": 5}}, {"id": 1720, "type": "field_identifier", "text": "m", "parent": 1716, "children": [], "start_point": {"row": 240, "column": 7}, "end_point": {"row": 240, "column": 8}}, {"id": 1721, "type": "=", "text": "=", "parent": 1715, "children": [], "start_point": {"row": 240, "column": 9}, "end_point": {"row": 240, "column": 10}}, {"id": 1722, "type": "identifier", "text": "n_plus_m", "parent": 1715, "children": [], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 19}}, {"id": 1723, "type": "assignment_expression", "text": "p->L->n = n_plus_m", "parent": 1637, "children": [1724, 1729, 1730], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 19}}, {"id": 1724, "type": "field_expression", "text": "p->L->n", "parent": 1723, "children": [1725, 1728], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 8}}, {"id": 1725, "type": "field_expression", "text": "p->L", "parent": 1724, "children": [1726, 1727], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 5}}, {"id": 1726, "type": "identifier", "text": "p", "parent": 1725, "children": [], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 2}}, {"id": 1727, "type": "field_identifier", "text": "L", "parent": 1725, "children": [], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 5}}, {"id": 1728, "type": "field_identifier", "text": "n", "parent": 1724, "children": [], "start_point": {"row": 241, "column": 7}, "end_point": {"row": 241, "column": 8}}, {"id": 1729, "type": "=", "text": "=", "parent": 1723, "children": [], "start_point": {"row": 241, "column": 9}, "end_point": {"row": 241, "column": 10}}, {"id": 1730, "type": "identifier", "text": "n_plus_m", "parent": 1723, "children": [], "start_point": {"row": 241, "column": 11}, "end_point": {"row": 241, "column": 19}}, {"id": 1731, "type": "assignment_expression", "text": "p->L->nz = -1", "parent": 1637, "children": [1732, 1737, 1738], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 14}}, {"id": 1732, "type": "field_expression", "text": "p->L->nz", "parent": 1731, "children": [1733, 1736], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 9}}, {"id": 1733, "type": "field_expression", "text": "p->L", "parent": 1732, "children": [1734, 1735], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 5}}, {"id": 1734, "type": "identifier", "text": "p", "parent": 1733, "children": [], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 2}}, {"id": 1735, "type": "field_identifier", "text": "L", "parent": 1733, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 5}}, {"id": 1736, "type": "field_identifier", "text": "nz", "parent": 1732, "children": [], "start_point": {"row": 242, "column": 7}, "end_point": {"row": 242, "column": 9}}, {"id": 1737, "type": "=", "text": "=", "parent": 1731, "children": [], "start_point": {"row": 242, "column": 10}, "end_point": {"row": 242, "column": 11}}, {"id": 1738, "type": "number_literal", "text": "-1", "parent": 1731, "children": [], "start_point": {"row": 242, "column": 12}, "end_point": {"row": 242, "column": 14}}, {"id": 1739, "type": "if_statement", "text": "if (factorize(d, p) < 0) {\n\t\tfreePriv(p);\n\t\treturn NULL;\n\t}", "parent": 1637, "children": [1740], "start_point": {"row": 244, "column": 1}, "end_point": {"row": 247, "column": 2}}, {"id": 1740, "type": "parenthesized_expression", "text": "(factorize(d, p) < 0)", "parent": 1739, "children": [1741], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 244, "column": 25}}, {"id": 1741, "type": "binary_expression", "text": "factorize(d, p) < 0", "parent": 1740, "children": [1742, 1747, 1748], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 24}}, {"id": 1742, "type": "call_expression", "text": "factorize(d, p)", "parent": 1741, "children": [1743, 1744], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 20}}, {"id": 1743, "type": "identifier", "text": "factorize", "parent": 1742, "children": [], "start_point": {"row": 244, "column": 5}, "end_point": {"row": 244, "column": 14}}, {"id": 1744, "type": "argument_list", "text": "(d, p)", "parent": 1742, "children": [1745, 1746], "start_point": {"row": 244, "column": 14}, "end_point": {"row": 244, "column": 20}}, {"id": 1745, "type": "identifier", "text": "d", "parent": 1744, "children": [], "start_point": {"row": 244, "column": 15}, "end_point": {"row": 244, "column": 16}}, {"id": 1746, "type": "identifier", "text": "p", "parent": 1744, "children": [], "start_point": {"row": 244, "column": 18}, "end_point": {"row": 244, "column": 19}}, {"id": 1747, "type": "<", "text": "<", "parent": 1741, "children": [], "start_point": {"row": 244, "column": 21}, "end_point": {"row": 244, "column": 22}}, {"id": 1748, "type": "number_literal", "text": "0", "parent": 1741, "children": [], "start_point": {"row": 244, "column": 23}, "end_point": {"row": 244, "column": 24}}, {"id": 1749, "type": "call_expression", "text": "freePriv(p)", "parent": 1739, "children": [1750, 1751], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 13}}, {"id": 1750, "type": "identifier", "text": "freePriv", "parent": 1749, "children": [], "start_point": {"row": 245, "column": 2}, "end_point": {"row": 245, "column": 10}}, {"id": 1751, "type": "argument_list", "text": "(p)", "parent": 1749, "children": [1752], "start_point": {"row": 245, "column": 10}, "end_point": {"row": 245, "column": 13}}, {"id": 1752, "type": "identifier", "text": "p", "parent": 1751, "children": [], "start_point": {"row": 245, "column": 11}, "end_point": {"row": 245, "column": 12}}, {"id": 1753, "type": "return_statement", "text": "return NULL;", "parent": 1739, "children": [1754], "start_point": {"row": 246, "column": 2}, "end_point": {"row": 246, "column": 14}}, {"id": 1754, "type": "null", "text": "NULL", "parent": 1753, "children": [1755], "start_point": {"row": 246, "column": 9}, "end_point": {"row": 246, "column": 13}}, {"id": 1755, "type": "NULL", "text": "NULL", "parent": 1754, "children": [], "start_point": {"row": 246, "column": 9}, "end_point": {"row": 246, "column": 13}}, {"id": 1756, "type": "assignment_expression", "text": "totalSolveTime = 0.0", "parent": 1637, "children": [1757, 1758, 1759], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 21}}, {"id": 1757, "type": "identifier", "text": "totalSolveTime", "parent": 1756, "children": [], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 15}}, {"id": 1758, "type": "=", "text": "=", "parent": 1756, "children": [], "start_point": {"row": 248, "column": 16}, "end_point": {"row": 248, "column": 17}}, {"id": 1759, "type": "number_literal", "text": "0.0", "parent": 1756, "children": [], "start_point": {"row": 248, "column": 18}, "end_point": {"row": 248, "column": 21}}, {"id": 1760, "type": "return_statement", "text": "return p;", "parent": 1637, "children": [1761], "start_point": {"row": 249, "column": 1}, "end_point": {"row": 249, "column": 10}}, {"id": 1761, "type": "identifier", "text": "p", "parent": 1760, "children": [], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 9}}, {"id": 1762, "type": "function_definition", "text": "scs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) {\n\t/* returns solution to linear system */\n\t/* Ax = b with solution stored in b */\n\ttic(&linsysTimer);\n\tLDLSolve(b, b, p->L, p->D, p->P, p->bp);\n\ttotalSolveTime += tocq(&linsysTimer);\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"linsys solve time: %1.2es\\n\", tocq(&linsysTimer) / 1e3);\n#endif\n\treturn 0;\n}", "parent": null, "children": [1763, 1764], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 262, "column": 1}}, {"id": 1763, "type": "type_identifier", "text": "scs_int", "parent": 1762, "children": [], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 252, "column": 7}}, {"id": 1764, "type": "function_declarator", "text": "solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter)", "parent": 1762, "children": [1765, 1766], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 89}}, {"id": 1765, "type": "identifier", "text": "solveLinSys", "parent": 1764, "children": [], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 19}}, {"id": 1766, "type": "parameter_list", "text": "(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter)", "parent": 1764, "children": [1767, 1772, 1777, 1782, 1787], "start_point": {"row": 252, "column": 19}, "end_point": {"row": 252, "column": 89}}, {"id": 1767, "type": "parameter_declaration", "text": "Data * d", "parent": 1766, "children": [1768, 1769], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 28}}, {"id": 1768, "type": "type_identifier", "text": "Data", "parent": 1767, "children": [], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 24}}, {"id": 1769, "type": "pointer_declarator", "text": "* d", "parent": 1767, "children": [1770, 1771], "start_point": {"row": 252, "column": 25}, "end_point": {"row": 252, "column": 28}}, {"id": 1770, "type": "*", "text": "*", "parent": 1769, "children": [], "start_point": {"row": 252, "column": 25}, "end_point": {"row": 252, "column": 26}}, {"id": 1771, "type": "identifier", "text": "d", "parent": 1769, "children": [], "start_point": {"row": 252, "column": 27}, "end_point": {"row": 252, "column": 28}}, {"id": 1772, "type": "parameter_declaration", "text": "Priv * p", "parent": 1766, "children": [1773, 1774], "start_point": {"row": 252, "column": 30}, "end_point": {"row": 252, "column": 38}}, {"id": 1773, "type": "type_identifier", "text": "Priv", "parent": 1772, "children": [], "start_point": {"row": 252, "column": 30}, "end_point": {"row": 252, "column": 34}}, {"id": 1774, "type": "pointer_declarator", "text": "* p", "parent": 1772, "children": [1775, 1776], "start_point": {"row": 252, "column": 35}, "end_point": {"row": 252, "column": 38}}, {"id": 1775, "type": "*", "text": "*", "parent": 1774, "children": [], "start_point": {"row": 252, "column": 35}, "end_point": {"row": 252, "column": 36}}, {"id": 1776, "type": "identifier", "text": "p", "parent": 1774, "children": [], "start_point": {"row": 252, "column": 37}, "end_point": {"row": 252, "column": 38}}, {"id": 1777, "type": "parameter_declaration", "text": "scs_float * b", "parent": 1766, "children": [1778, 1779], "start_point": {"row": 252, "column": 40}, "end_point": {"row": 252, "column": 53}}, {"id": 1778, "type": "type_identifier", "text": "scs_float", "parent": 1777, "children": [], "start_point": {"row": 252, "column": 40}, "end_point": {"row": 252, "column": 49}}, {"id": 1779, "type": "pointer_declarator", "text": "* b", "parent": 1777, "children": [1780, 1781], "start_point": {"row": 252, "column": 50}, "end_point": {"row": 252, "column": 53}}, {"id": 1780, "type": "*", "text": "*", "parent": 1779, "children": [], "start_point": {"row": 252, "column": 50}, "end_point": {"row": 252, "column": 51}}, {"id": 1781, "type": "identifier", "text": "b", "parent": 1779, "children": [], "start_point": {"row": 252, "column": 52}, "end_point": {"row": 252, "column": 53}}, {"id": 1782, "type": "parameter_declaration", "text": "const scs_float * s", "parent": 1766, "children": [1783, 1784], "start_point": {"row": 252, "column": 55}, "end_point": {"row": 252, "column": 74}}, {"id": 1783, "type": "type_identifier", "text": "scs_float", "parent": 1782, "children": [], "start_point": {"row": 252, "column": 61}, "end_point": {"row": 252, "column": 70}}, {"id": 1784, "type": "pointer_declarator", "text": "* s", "parent": 1782, "children": [1785, 1786], "start_point": {"row": 252, "column": 71}, "end_point": {"row": 252, "column": 74}}, {"id": 1785, "type": "*", "text": "*", "parent": 1784, "children": [], "start_point": {"row": 252, "column": 71}, "end_point": {"row": 252, "column": 72}}, {"id": 1786, "type": "identifier", "text": "s", "parent": 1784, "children": [], "start_point": {"row": 252, "column": 73}, "end_point": {"row": 252, "column": 74}}, {"id": 1787, "type": "parameter_declaration", "text": "scs_int iter", "parent": 1766, "children": [1788, 1789], "start_point": {"row": 252, "column": 76}, "end_point": {"row": 252, "column": 88}}, {"id": 1788, "type": "type_identifier", "text": "scs_int", "parent": 1787, "children": [], "start_point": {"row": 252, "column": 76}, "end_point": {"row": 252, "column": 83}}, {"id": 1789, "type": "identifier", "text": "iter", "parent": 1787, "children": [], "start_point": {"row": 252, "column": 84}, "end_point": {"row": 252, "column": 88}}, {"id": 1790, "type": "call_expression", "text": "tic(&linsysTimer)", "parent": 1762, "children": [1791, 1792], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 18}}, {"id": 1791, "type": "identifier", "text": "tic", "parent": 1790, "children": [], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 4}}, {"id": 1792, "type": "argument_list", "text": "(&linsysTimer)", "parent": 1790, "children": [1793], "start_point": {"row": 255, "column": 4}, "end_point": {"row": 255, "column": 18}}, {"id": 1793, "type": "pointer_expression", "text": "&linsysTimer", "parent": 1792, "children": [1794], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 17}}, {"id": 1794, "type": "identifier", "text": "linsysTimer", "parent": 1793, "children": [], "start_point": {"row": 255, "column": 6}, "end_point": {"row": 255, "column": 17}}, {"id": 1795, "type": "call_expression", "text": "LDLSolve(b, b, p->L, p->D, p->P, p->bp)", "parent": 1762, "children": [1796, 1797], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 40}}, {"id": 1796, "type": "identifier", "text": "LDLSolve", "parent": 1795, "children": [], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 9}}, {"id": 1797, "type": "argument_list", "text": "(b, b, p->L, p->D, p->P, p->bp)", "parent": 1795, "children": [1798, 1799, 1800, 1803, 1806, 1809], "start_point": {"row": 256, "column": 9}, "end_point": {"row": 256, "column": 40}}, {"id": 1798, "type": "identifier", "text": "b", "parent": 1797, "children": [], "start_point": {"row": 256, "column": 10}, "end_point": {"row": 256, "column": 11}}, {"id": 1799, "type": "identifier", "text": "b", "parent": 1797, "children": [], "start_point": {"row": 256, "column": 13}, "end_point": {"row": 256, "column": 14}}, {"id": 1800, "type": "field_expression", "text": "p->L", "parent": 1797, "children": [1801, 1802], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 20}}, {"id": 1801, "type": "identifier", "text": "p", "parent": 1800, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 17}}, {"id": 1802, "type": "field_identifier", "text": "L", "parent": 1800, "children": [], "start_point": {"row": 256, "column": 19}, "end_point": {"row": 256, "column": 20}}, {"id": 1803, "type": "field_expression", "text": "p->D", "parent": 1797, "children": [1804, 1805], "start_point": {"row": 256, "column": 22}, "end_point": {"row": 256, "column": 26}}, {"id": 1804, "type": "identifier", "text": "p", "parent": 1803, "children": [], "start_point": {"row": 256, "column": 22}, "end_point": {"row": 256, "column": 23}}, {"id": 1805, "type": "field_identifier", "text": "D", "parent": 1803, "children": [], "start_point": {"row": 256, "column": 25}, "end_point": {"row": 256, "column": 26}}, {"id": 1806, "type": "field_expression", "text": "p->P", "parent": 1797, "children": [1807, 1808], "start_point": {"row": 256, "column": 28}, "end_point": {"row": 256, "column": 32}}, {"id": 1807, "type": "identifier", "text": "p", "parent": 1806, "children": [], "start_point": {"row": 256, "column": 28}, "end_point": {"row": 256, "column": 29}}, {"id": 1808, "type": "field_identifier", "text": "P", "parent": 1806, "children": [], "start_point": {"row": 256, "column": 31}, "end_point": {"row": 256, "column": 32}}, {"id": 1809, "type": "field_expression", "text": "p->bp", "parent": 1797, "children": [1810, 1811], "start_point": {"row": 256, "column": 34}, "end_point": {"row": 256, "column": 39}}, {"id": 1810, "type": "identifier", "text": "p", "parent": 1809, "children": [], "start_point": {"row": 256, "column": 34}, "end_point": {"row": 256, "column": 35}}, {"id": 1811, "type": "field_identifier", "text": "bp", "parent": 1809, "children": [], "start_point": {"row": 256, "column": 37}, "end_point": {"row": 256, "column": 39}}, {"id": 1812, "type": "assignment_expression", "text": "totalSolveTime += tocq(&linsysTimer)", "parent": 1762, "children": [1813, 1814, 1815], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 37}}, {"id": 1813, "type": "identifier", "text": "totalSolveTime", "parent": 1812, "children": [], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 15}}, {"id": 1814, "type": "+=", "text": "+=", "parent": 1812, "children": [], "start_point": {"row": 257, "column": 16}, "end_point": {"row": 257, "column": 18}}, {"id": 1815, "type": "call_expression", "text": "tocq(&linsysTimer)", "parent": 1812, "children": [1816, 1817], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 37}}, {"id": 1816, "type": "identifier", "text": "tocq", "parent": 1815, "children": [], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 23}}, {"id": 1817, "type": "argument_list", "text": "(&linsysTimer)", "parent": 1815, "children": [1818], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 37}}, {"id": 1818, "type": "pointer_expression", "text": "&linsysTimer", "parent": 1817, "children": [1819], "start_point": {"row": 257, "column": 24}, "end_point": {"row": 257, "column": 36}}, {"id": 1819, "type": "identifier", "text": "linsysTimer", "parent": 1818, "children": [], "start_point": {"row": 257, "column": 25}, "end_point": {"row": 257, "column": 36}}, {"id": 1820, "type": "preproc_ifdef", "text": "#ifdef EXTRAVERBOSE\n\tscs_printf(\"linsys solve time: %1.2es\\n\", tocq(&linsysTimer) / 1e3);\n#endif", "parent": 1762, "children": [1821, 1822, 1836], "start_point": {"row": 258, "column": 0}, "end_point": {"row": 260, "column": 6}}, {"id": 1821, "type": "#ifdef", "text": "#ifdef", "parent": 1820, "children": [], "start_point": {"row": 258, "column": 0}, "end_point": {"row": 258, "column": 6}}, {"id": 1822, "type": "identifier", "text": "EXTRAVERBOSE", "parent": 1820, "children": [], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 258, "column": 19}}, {"id": 1823, "type": "call_expression", "text": "scs_printf(\"linsys solve time: %1.2es\\n\", tocq(&linsysTimer) / 1e3)", "parent": 1820, "children": [1824, 1825], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 68}}, {"id": 1824, "type": "identifier", "text": "scs_printf", "parent": 1823, "children": [], "start_point": {"row": 259, "column": 1}, "end_point": {"row": 259, "column": 11}}, {"id": 1825, "type": "argument_list", "text": "(\"linsys solve time: %1.2es\\n\", tocq(&linsysTimer) / 1e3)", "parent": 1823, "children": [1826, 1828], "start_point": {"row": 259, "column": 11}, "end_point": {"row": 259, "column": 68}}, {"id": 1826, "type": "string_literal", "text": "\"linsys solve time: %1.2es\\n\"", "parent": 1825, "children": [1827], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 41}}, {"id": 1827, "type": "escape_sequence", "text": "\\n", "parent": 1826, "children": [], "start_point": {"row": 259, "column": 38}, "end_point": {"row": 259, "column": 40}}, {"id": 1828, "type": "binary_expression", "text": "tocq(&linsysTimer) / 1e3", "parent": 1825, "children": [1829, 1834, 1835], "start_point": {"row": 259, "column": 43}, "end_point": {"row": 259, "column": 67}}, {"id": 1829, "type": "call_expression", "text": "tocq(&linsysTimer)", "parent": 1828, "children": [1830, 1831], "start_point": {"row": 259, "column": 43}, "end_point": {"row": 259, "column": 61}}, {"id": 1830, "type": "identifier", "text": "tocq", "parent": 1829, "children": [], "start_point": {"row": 259, "column": 43}, "end_point": {"row": 259, "column": 47}}, {"id": 1831, "type": "argument_list", "text": "(&linsysTimer)", "parent": 1829, "children": [1832], "start_point": {"row": 259, "column": 47}, "end_point": {"row": 259, "column": 61}}, {"id": 1832, "type": "pointer_expression", "text": "&linsysTimer", "parent": 1831, "children": [1833], "start_point": {"row": 259, "column": 48}, "end_point": {"row": 259, "column": 60}}, {"id": 1833, "type": "identifier", "text": "linsysTimer", "parent": 1832, "children": [], "start_point": {"row": 259, "column": 49}, "end_point": {"row": 259, "column": 60}}, {"id": 1834, "type": "/", "text": "/", "parent": 1828, "children": [], "start_point": {"row": 259, "column": 62}, "end_point": {"row": 259, "column": 63}}, {"id": 1835, "type": "number_literal", "text": "1e3", "parent": 1828, "children": [], "start_point": {"row": 259, "column": 64}, "end_point": {"row": 259, "column": 67}}, {"id": 1836, "type": "#endif", "text": "#endif", "parent": 1820, "children": [], "start_point": {"row": 260, "column": 0}, "end_point": {"row": 260, "column": 6}}, {"id": 1837, "type": "return_statement", "text": "return 0;", "parent": 1762, "children": [1838], "start_point": {"row": 261, "column": 1}, "end_point": {"row": 261, "column": 10}}, {"id": 1838, "type": "number_literal", "text": "0", "parent": 1837, "children": [], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 9}}]}, "node_categories": {"declarations": {"functions": [9, 13, 62, 66, 146, 148, 207, 211, 508, 510, 604, 606, 1008, 1010, 1155, 1157, 1270, 1272, 1372, 1374, 1424, 1426, 1476, 1478, 1637, 1641, 1762, 1764], "variables": [3, 6, 16, 21, 26, 69, 74, 79, 95, 151, 214, 219, 224, 229, 239, 251, 267, 513, 518, 522, 609, 614, 618, 622, 629, 636, 645, 661, 677, 693, 709, 1013, 1018, 1022, 1027, 1031, 1035, 1040, 1160, 1163, 1168, 1173, 1178, 1183, 1188, 1192, 1196, 1275, 1278, 1283, 1288, 1293, 1298, 1303, 1307, 1311, 1377, 1382, 1387, 1392, 1397, 1429, 1434, 1439, 1444, 1449, 1481, 1486, 1491, 1496, 1503, 1644, 1649, 1663, 1767, 1772, 1777, 1782, 1787], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [33, 36, 37, 42, 47, 51, 52, 53, 57, 86, 89, 90, 100, 101, 105, 112, 116, 117, 118, 119, 120, 127, 128, 131, 132, 133, 157, 160, 161, 164, 167, 171, 172, 175, 178, 182, 183, 186, 189, 193, 194, 197, 200, 203, 236, 244, 245, 248, 256, 257, 258, 262, 274, 277, 278, 282, 285, 286, 290, 299, 306, 307, 322, 325, 328, 332, 333, 340, 341, 348, 349, 354, 357, 365, 368, 371, 378, 379, 383, 386, 387, 390, 394, 398, 399, 404, 405, 406, 411, 415, 416, 423, 424, 429, 430, 434, 442, 445, 448, 452, 453, 458, 461, 465, 466, 471, 474, 478, 479, 485, 489, 497, 501, 506, 530, 534, 539, 542, 545, 546, 552, 553, 556, 559, 562, 566, 573, 579, 580, 583, 586, 589, 593, 600, 642, 652, 655, 658, 659, 668, 671, 674, 675, 684, 687, 690, 691, 700, 703, 706, 707, 716, 719, 722, 723, 726, 727, 728, 733, 738, 741, 742, 743, 748, 749, 751, 755, 758, 761, 762, 763, 773, 774, 775, 780, 782, 783, 784, 785, 786, 793, 794, 795, 800, 805, 808, 809, 810, 811, 816, 817, 820, 821, 822, 827, 832, 835, 836, 837, 838, 843, 844, 847, 851, 856, 859, 862, 863, 866, 867, 868, 869, 870, 871, 872, 873, 874, 876, 877, 881, 883, 884, 885, 890, 892, 893, 894, 899, 903, 907, 911, 915, 923, 932, 936, 939, 942, 945, 946, 947, 953, 954, 955, 959, 960, 961, 965, 976, 982, 986, 990, 994, 998, 1003, 1004, 1045, 1049, 1050, 1056, 1057, 1061, 1066, 1069, 1070, 1072, 1077, 1080, 1083, 1086, 1092, 1097, 1100, 1103, 1107, 1114, 1119, 1122, 1125, 1128, 1134, 1139, 1142, 1145, 1148, 1211, 1215, 1221, 1227, 1233, 1235, 1244, 1248, 1254, 1255, 1259, 1261, 1265, 1319, 1323, 1329, 1335, 1341, 1343, 1352, 1356, 1360, 1362, 1366, 1367, 1404, 1407, 1410, 1413, 1416, 1419, 1456, 1459, 1462, 1465, 1468, 1471, 1513, 1518, 1519, 1527, 1531, 1534, 1537, 1538, 1543, 1549, 1550, 1553, 1561, 1567, 1576, 1579, 1582, 1583, 1587, 1593, 1602, 1610, 1611, 1614, 1615, 1618, 1622, 1626, 1630, 1635, 1656, 1660, 1661, 1668, 1669, 1673, 1677, 1681, 1684, 1685, 1686, 1691, 1695, 1698, 1699, 1702, 1706, 1709, 1712, 1713, 1716, 1717, 1724, 1725, 1732, 1733, 1740, 1741, 1742, 1749, 1790, 1793, 1795, 1800, 1803, 1806, 1809, 1815, 1818, 1823, 1828, 1829, 1832], "assignments": [140, 313, 318, 331, 339, 347, 361, 375, 397, 414, 422, 438, 451, 464, 477, 488, 494, 529, 725, 772, 792, 819, 846, 929, 1207, 1218, 1224, 1230, 1240, 1251, 1264, 1315, 1326, 1332, 1338, 1348, 1359, 1524, 1573, 1590, 1599, 1676, 1690, 1701, 1715, 1723, 1731, 1756, 1812], "loops": [317, 360, 374, 437, 1206, 1239, 1314, 1347], "conditionals": [4, 5, 7, 8, 14, 17, 20, 22, 25, 31, 34, 43, 45, 49, 54, 55, 56, 58, 59, 61, 67, 70, 73, 75, 78, 84, 87, 96, 98, 102, 103, 104, 106, 108, 114, 121, 122, 123, 124, 126, 129, 134, 135, 141, 145, 149, 152, 155, 156, 158, 159, 162, 163, 165, 168, 169, 170, 173, 174, 176, 179, 180, 181, 184, 185, 187, 190, 191, 192, 195, 196, 198, 201, 202, 204, 206, 208, 212, 215, 218, 220, 221, 222, 223, 225, 228, 230, 234, 237, 238, 240, 242, 246, 247, 249, 250, 252, 254, 259, 260, 263, 264, 266, 268, 272, 275, 279, 280, 283, 284, 287, 288, 291, 292, 293, 296, 297, 298, 300, 304, 305, 309, 314, 319, 323, 326, 327, 329, 334, 335, 336, 338, 342, 343, 344, 346, 350, 351, 352, 355, 356, 358, 362, 366, 369, 370, 372, 376, 380, 381, 382, 384, 388, 389, 391, 395, 400, 401, 402, 407, 408, 409, 412, 413, 417, 418, 419, 421, 425, 426, 427, 431, 432, 433, 435, 439, 443, 446, 447, 449, 454, 455, 456, 459, 462, 463, 467, 468, 469, 472, 475, 476, 480, 481, 482, 486, 490, 491, 493, 495, 498, 500, 502, 504, 507, 509, 511, 514, 517, 519, 521, 523, 528, 532, 536, 540, 543, 547, 548, 549, 550, 554, 557, 558, 560, 561, 563, 564, 565, 568, 575, 581, 584, 585, 587, 588, 590, 591, 592, 595, 602, 603, 605, 607, 610, 613, 615, 617, 619, 621, 623, 628, 630, 635, 637, 638, 640, 643, 644, 646, 650, 653, 656, 660, 662, 666, 669, 672, 676, 678, 682, 685, 688, 692, 694, 698, 701, 704, 708, 710, 714, 717, 720, 724, 730, 731, 735, 739, 746, 750, 752, 754, 756, 757, 759, 760, 765, 766, 767, 768, 769, 770, 771, 777, 778, 788, 789, 791, 797, 798, 802, 806, 813, 814, 818, 824, 825, 829, 833, 840, 841, 845, 849, 853, 857, 860, 864, 865, 879, 887, 888, 896, 897, 901, 905, 909, 913, 917, 920, 921, 922, 924, 928, 930, 933, 935, 937, 938, 940, 941, 943, 944, 949, 950, 951, 952, 957, 958, 963, 964, 967, 968, 969, 970, 971, 972, 973, 974, 975, 977, 981, 983, 985, 987, 989, 991, 993, 995, 997, 999, 1001, 1005, 1007, 1011, 1014, 1017, 1019, 1021, 1023, 1026, 1028, 1030, 1032, 1034, 1036, 1039, 1041, 1043, 1046, 1047, 1048, 1051, 1055, 1058, 1060, 1062, 1064, 1065, 1067, 1071, 1073, 1075, 1076, 1078, 1079, 1081, 1082, 1084, 1085, 1087, 1089, 1090, 1091, 1093, 1095, 1096, 1098, 1099, 1101, 1102, 1104, 1105, 1108, 1110, 1111, 1112, 1113, 1115, 1117, 1118, 1120, 1121, 1123, 1124, 1126, 1127, 1129, 1131, 1132, 1133, 1135, 1137, 1138, 1140, 1141, 1143, 1144, 1146, 1147, 1149, 1151, 1152, 1153, 1154, 1158, 1161, 1162, 1164, 1167, 1169, 1172, 1174, 1177, 1179, 1182, 1184, 1187, 1189, 1190, 1191, 1193, 1194, 1195, 1197, 1198, 1199, 1200, 1201, 1205, 1208, 1212, 1214, 1216, 1219, 1222, 1223, 1225, 1228, 1229, 1231, 1234, 1236, 1241, 1243, 1245, 1247, 1249, 1252, 1256, 1257, 1260, 1262, 1263, 1266, 1267, 1269, 1273, 1276, 1277, 1279, 1282, 1284, 1287, 1289, 1292, 1294, 1297, 1299, 1302, 1304, 1305, 1306, 1308, 1309, 1310, 1312, 1313, 1316, 1320, 1322, 1324, 1327, 1330, 1331, 1333, 1336, 1337, 1339, 1342, 1344, 1349, 1351, 1353, 1355, 1357, 1361, 1363, 1364, 1368, 1369, 1371, 1375, 1378, 1381, 1383, 1386, 1388, 1391, 1393, 1396, 1398, 1402, 1405, 1406, 1408, 1411, 1412, 1414, 1415, 1417, 1418, 1420, 1421, 1422, 1423, 1427, 1430, 1433, 1435, 1438, 1440, 1443, 1445, 1448, 1450, 1454, 1457, 1458, 1460, 1463, 1464, 1466, 1467, 1469, 1470, 1472, 1473, 1474, 1475, 1477, 1479, 1482, 1485, 1487, 1490, 1492, 1495, 1497, 1500, 1501, 1502, 1504, 1507, 1511, 1514, 1516, 1517, 1521, 1525, 1528, 1530, 1532, 1533, 1535, 1536, 1539, 1544, 1545, 1546, 1547, 1548, 1551, 1552, 1554, 1558, 1559, 1560, 1562, 1564, 1568, 1570, 1571, 1572, 1574, 1577, 1580, 1581, 1584, 1585, 1588, 1589, 1591, 1594, 1596, 1597, 1600, 1603, 1605, 1612, 1613, 1616, 1617, 1619, 1621, 1623, 1625, 1627, 1629, 1631, 1633, 1636, 1638, 1642, 1645, 1648, 1650, 1654, 1657, 1662, 1664, 1666, 1670, 1671, 1674, 1675, 1678, 1679, 1682, 1687, 1689, 1692, 1693, 1696, 1700, 1703, 1704, 1707, 1710, 1714, 1718, 1719, 1720, 1722, 1726, 1727, 1728, 1730, 1734, 1735, 1736, 1739, 1743, 1745, 1746, 1750, 1752, 1757, 1761, 1763, 1765, 1768, 1771, 1773, 1776, 1778, 1781, 1783, 1786, 1788, 1789, 1791, 1794, 1796, 1798, 1799, 1801, 1802, 1804, 1805, 1807, 1808, 1810, 1811, 1813, 1816, 1819, 1820, 1821, 1822, 1824, 1830, 1833, 1836], "returns": [60, 144, 310, 505, 551, 578, 918, 1002, 1522, 1542, 1634, 1753, 1760, 1837], "exceptions": []}, "expressions": {"calls": [1202], "literals": [2, 41, 46, 94, 109, 137, 139, 143, 294, 295, 302, 316, 321, 364, 393, 441, 484, 744, 919, 926, 979, 1210, 1238, 1318, 1346, 1523, 1541, 1556, 1598, 1659, 1738, 1748, 1759, 1826, 1835, 1838], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "char * getLinSysMethod(Data * d, Priv * p) {\n\tchar * tmp = scs_malloc(sizeof(char) * 128);\n\tsprintf("}, {"node_id": 13, "universal_type": "function", "name": "unknown", "text_snippet": "getLinSysMethod(Data * d, Priv * p)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "char * getLinSysSummary(Priv * p, Info * info) {\n\tchar * str = scs_malloc(sizeof(char) * 128);\n\tscs_"}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "getLinSysSummary(Priv * p, Info * info)"}, {"node_id": 146, "universal_type": "function", "name": "freePriv", "text_snippet": "void freePriv(Priv * p) {\n\tif (p) {\n\t\tif (p->L)\n\t\t\tcs_spfree(p->L);\n\t\tif (p->P)\n\t\t\tscs_free(p->P);\n\t"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "freePriv(Priv * p)"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "cs * formKKT(Data * d) {\n\t/* ONLY UPPER TRIANGULAR PART IS STUFFED\n\t * forms column compressed KKT m"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "formKKT(Data * d)"}, {"node_id": 508, "universal_type": "function", "name": "unknown", "text_snippet": "scs_int LDLInit(cs * A, scs_int P[], scs_float **info) {\n\t*info = (scs_float *) scs_malloc(AMD_INFO "}, {"node_id": 510, "universal_type": "function", "name": "unknown", "text_snippet": "LDLInit(cs * A, scs_int P[], scs_float **info)"}, {"node_id": 604, "universal_type": "function", "name": "unknown", "text_snippet": "scs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) {\n\tscs_int kk, n = A->"}, {"node_id": 606, "universal_type": "function", "name": "unknown", "text_snippet": "LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D)"}, {"node_id": 1008, "universal_type": "function", "name": "LDLSolve", "text_snippet": "void LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) {\n\t/*"}, {"node_id": 1010, "universal_type": "function", "name": "unknown", "text_snippet": "LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp)"}, {"node_id": 1155, "universal_type": "function", "name": "_accumByAtrans", "text_snippet": "void _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_f"}, {"node_id": 1157, "universal_type": "function", "name": "unknown", "text_snippet": "_accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float "}, {"node_id": 1270, "universal_type": "function", "name": "_accumByA", "text_snippet": "void _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float "}, {"node_id": 1272, "universal_type": "function", "name": "unknown", "text_snippet": "_accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y)"}, {"node_id": 1372, "universal_type": "function", "name": "accumByAtrans", "text_snippet": "void accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_ac"}, {"node_id": 1374, "universal_type": "function", "name": "unknown", "text_snippet": "accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y)"}, {"node_id": 1424, "universal_type": "function", "name": "accumByA", "text_snippet": "void accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_accumBy"}, {"node_id": 1426, "universal_type": "function", "name": "unknown", "text_snippet": "accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y)"}, {"node_id": 1476, "universal_type": "function", "name": "unknown", "text_snippet": "scs_int factorize(Data * d, Priv * p) {\n\tscs_float *info;\n\tscs_int *Pinv, amd_status, ldl_status;\n\tc"}, {"node_id": 1478, "universal_type": "function", "name": "unknown", "text_snippet": "factorize(Data * d, Priv * p)"}, {"node_id": 1637, "universal_type": "function", "name": "unknown", "text_snippet": "Priv * initPriv(Data * d) {\n\tPriv * p = scs_calloc(1, sizeof(Priv));\n\tscs_int n_plus_m = d->n + d->m"}, {"node_id": 1641, "universal_type": "function", "name": "unknown", "text_snippet": "initPriv(Data * d)"}, {"node_id": 1762, "universal_type": "function", "name": "unknown", "text_snippet": "scs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) {\n\t/* retu"}, {"node_id": 1764, "universal_type": "function", "name": "unknown", "text_snippet": "solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"private.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"private.h\"\n\nstatic timer linsysTimer;\nstatic scs_float totalSolveTime;\n\nchar * getLinSysMethod(Data * d, Priv * p) {\n\tchar * tmp = scs_malloc(sizeof(char) * 128);\n\tsprintf(tmp, \"sparse-direct, nnz in A = %li\", (long) d->A->p[d->n]);\n\treturn tmp;\n}\n\nchar * getLinSysSummary(Priv * p, Info * info) {\n\tchar * str = scs_malloc(sizeof(char) * 128);\n\tscs_int n = p->L->n;\n\tsprintf(str, \"\\tLin-sys: nnz in L factor: %li, avg solve time: %1.2es\\n\", (long ) (p->L->p[n] + n),\n\t\t\ttotalSolveTime / (info->iter + 1) / 1e3);\n\ttotalSolveTime = 0;\n\treturn str;\n}\n\nvoid freePriv(Priv * p) {\n\tif (p) {\n\t\tif (p->L)\n\t\t\tcs_spfree(p->L);\n\t\tif (p->P)\n\t\t\tscs_free(p->P);\n\t\tif (p->D)\n\t\t\tscs_free(p->D);\n\t\tif (p->bp)\n\t\t\tscs_free(p->bp);\n\t\tscs_free(p);\n\t}\n}\n\ncs * formKKT(Data * d) {\n\t/* ONLY UPPER TRIANGULAR PART IS STUFFED\n\t * forms column compressed KKT matrix\n\t * assumes column compressed form A matrix\n\t *\n\t * forms upper triangular part of [I A'; A -I]\n\t */\n\tscs_int j, k, kk;\n\tcs * K_cs;\n\tAMatrix * A = d->A;\n\t/* I at top left */\n\tconst scs_int Anz = A->p[d->n];\n\tconst scs_int Knzmax = d->n + d->m + Anz;\n\tcs * K = cs_spalloc(d->m + d->n, d->m + d->n, Knzmax, 1, 1);\n\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"forming KKT\\n\");\n#endif\n\n\tif (!K) {\n\t\treturn NULL;\n\t}\n\tkk = 0;\n\tfor (k = 0; k < d->n; k++) {\n\t\tK->i[kk] = k;\n\t\tK->p[kk] = k;\n\t\tK->x[kk] = d->rho_x;\n\t\tkk++;\n\t}\n\t/* A^T at top right : CCS: */\n\tfor (j = 0; j < d->n; j++) {\n\t\tfor (k = A->p[j]; k < A->p[j + 1]; k++) {\n\t\t\tK->p[kk] = A->i[k] + d->n;\n\t\t\tK->i[kk] = j;\n\t\t\tK->x[kk] = A->x[k];\n\t\t\tkk++;\n\t\t}\n\t}\n\t/* -I at bottom right */\n\tfor (k = 0; k < d->m; k++) {\n\t\tK->i[kk] = k + d->n;\n\t\tK->p[kk] = k + d->n;\n\t\tK->x[kk] = -1;\n\t\tkk++;\n\t}\n\t/* assert kk == Knzmax */\n\tK->nz = Knzmax;\n\tK_cs = cs_compress(K);\n\tcs_spfree(K);\n\treturn (K_cs);\n}\n\nscs_int LDLInit(cs * A, scs_int P[], scs_float **info) {\n\t*info = (scs_float *) scs_malloc(AMD_INFO * sizeof(scs_float));\n#ifdef DLONG\n\treturn(amd_l_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#else\n\treturn (amd_order(A->n, A->p, A->i, P, (scs_float *) NULL, *info));\n#endif\n}\n\nscs_int LDLFactor(cs * A, scs_int P[], scs_int Pinv[], cs **L, scs_float **D) {\n\tscs_int kk, n = A->n;\n\tscs_int * Parent = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Lnz = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Flag = scs_malloc(n * sizeof(scs_int));\n\tscs_int * Pattern = scs_malloc(n * sizeof(scs_int));\n\tscs_float * Y = scs_malloc(n * sizeof(scs_float));\n\t(*L)->p = (scs_int *) scs_malloc((1 + n) * sizeof(scs_int));\n\n\t/*scs_int Parent[n], Lnz[n], Flag[n], Pattern[n]; */\n\t/*scs_float Y[n]; */\n\n\tLDL_symbolic(n, A->p, A->i, (*L)->p, Parent, Lnz, Flag, P, Pinv);\n\n\t(*L)->nzmax = *((*L)->p + n);\n\t(*L)->x = (scs_float *) scs_malloc((*L)->nzmax * sizeof(scs_float));\n\t(*L)->i = (scs_int *) scs_malloc((*L)->nzmax * sizeof(scs_int));\n\t*D = (scs_float *) scs_malloc(n * sizeof(scs_float));\n\n\tif (!(*D) || !(*L)->i || !(*L)->x || !Y || !Pattern || !Flag || !Lnz || !Parent)\n\t\treturn -1;\n\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"numeric factorization\\n\");\n#endif\n\tkk = LDL_numeric(n, A->p, A->i, A->x, (*L)->p, Parent, Lnz, (*L)->i, (*L)->x, *D, Y, Pattern, Flag, P, Pinv);\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"finished numeric factorization\\n\");\n#endif\n\n\tscs_free(Parent);\n\tscs_free(Lnz);\n\tscs_free(Flag);\n\tscs_free(Pattern);\n\tscs_free(Y);\n\treturn (n - kk);\n}\n\nvoid LDLSolve(scs_float *x, scs_float b[], cs * L, scs_float D[], scs_int P[], scs_float * bp) {\n\t/* solves PLDL'P' x = b for x */\n\tscs_int n = L->n;\n\tif (P == NULL) {\n\t\tif (x != b) /* if they're different addresses */\n\t\t\tmemcpy(x, b, n * sizeof(scs_float));\n\t\tLDL_lsolve(n, x, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, x, D);\n\t\tLDL_ltsolve(n, x, L->p, L->i, L->x);\n\t} else {\n\t\tLDL_perm(n, bp, b, P);\n\t\tLDL_lsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_dsolve(n, bp, D);\n\t\tLDL_ltsolve(n, bp, L->p, L->i, L->x);\n\t\tLDL_permt(n, x, bp, P);\n\t}\n}\n\nvoid _accumByAtrans(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n\t/* y = A'*x\n\t A in column compressed format\n\t parallelizes over columns (rows of A')\n\t */\n\tscs_int p, j;\n\tscs_int c1, c2;\n\tscs_float yj;\n#ifdef OPENMP\n#pragma omp parallel for private(p,c1,c2,yj)\n#endif\n\tfor (j = 0; j < n; j++) {\n\t\tyj = y[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\tyj += Ax[p] * x[Ai[p]];\n\t\t}\n\t\ty[j] = yj;\n\t}\n}\n\nvoid _accumByA(scs_int n, scs_float * Ax, scs_int * Ai, scs_int * Ap, const scs_float *x, scs_float *y) {\n\t/*y = A*x\n\t A in column compressed format\n\t this parallelizes over columns and uses\n\t pragma atomic to prevent concurrent writes to y\n\t */\n\tscs_int p, j;\n\tscs_int c1, c2;\n\tscs_float xj;\n\t/*#pragma omp parallel for private(p,c1,c2,xj) */\n\tfor (j = 0; j < n; j++) {\n\t\txj = x[j];\n\t\tc1 = Ap[j];\n\t\tc2 = Ap[j + 1];\n\t\tfor (p = c1; p < c2; p++) {\n\t\t\t/*#pragma omp atomic */\n\t\t\ty[Ai[p]] += Ax[p] * xj;\n\t\t}\n\t}\n}\n\nvoid accumByAtrans(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_accumByAtrans(d->n, A->x, A->i, A->p, x, y);\n}\n\nvoid accumByA(Data * d, Priv * p, const scs_float *x, scs_float *y) {\n\tAMatrix * A = d->A;\n\t_accumByA(d->n, A->x, A->i, A->p, x, y);\n}\n\nscs_int factorize(Data * d, Priv * p) {\n\tscs_float *info;\n\tscs_int *Pinv, amd_status, ldl_status;\n\tcs *C, *K = formKKT(d);\n\tif (!K) {\n\t\treturn -1;\n\t}\n\tamd_status = LDLInit(K, p->P, &info);\n\tif (amd_status < 0)\n\t\treturn (amd_status);\n#ifdef EXTRAVERBOSE\n\tif(d->verbose) {\n\t\tscs_printf(\"Matrix factorization info:\\n\");\n#ifdef DLONG\n\t\tamd_l_info(info);\n#else\n\t\tamd_info(info);\n#endif\n\t}\n#endif\n\tPinv = cs_pinv(p->P, d->n + d->m);\n\tC = cs_symperm(K, Pinv, 1);\n\tldl_status = LDLFactor(C, NULL, NULL, &p->L, &p->D);\n\tcs_spfree(C);\n\tcs_spfree(K);\n\tscs_free(Pinv);\n\tscs_free(info);\n\treturn (ldl_status);\n}\n\nPriv * initPriv(Data * d) {\n\tPriv * p = scs_calloc(1, sizeof(Priv));\n\tscs_int n_plus_m = d->n + d->m;\n\tp->P = scs_malloc(sizeof(scs_int) * n_plus_m);\n\tp->L = scs_malloc(sizeof(cs));\n\tp->bp = scs_malloc(n_plus_m * sizeof(scs_float));\n\tp->L->m = n_plus_m;\n\tp->L->n = n_plus_m;\n\tp->L->nz = -1;\n\n\tif (factorize(d, p) < 0) {\n\t\tfreePriv(p);\n\t\treturn NULL;\n\t}\n\ttotalSolveTime = 0.0;\n\treturn p;\n}\n\nscs_int solveLinSys(Data * d, Priv * p, scs_float * b, const scs_float * s, scs_int iter) {\n\t/* returns solution to linear system */\n\t/* Ax = b with solution stored in b */\n\ttic(&linsysTimer);\n\tLDLSolve(b, b, p->L, p->D, p->P, p->bp);\n\ttotalSolveTime += tocq(&linsysTimer);\n#ifdef EXTRAVERBOSE\n\tscs_printf(\"linsys solve time: %1.2es\\n\", tocq(&linsysTimer) / 1e3);\n#endif\n\treturn 0;\n}\n\n"}
80,730
c
/* compare258.c -- aligned and unaligned versions of compare258 * Copyright (C) 2020 <NAME> * For conditions of distribution and use, see copyright notice in zlib.h */ #include "zbuild.h" #include "zutil.h" #include "fallback_builtins.h" /* ALIGNED, byte comparison */ static inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) { uint32_t len = 0; do { if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; if (*src0 != *src1) return len; src0 += 1, src1 += 1, len += 1; } while (len < 256); return 256; } static inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) { if (*src0 != *src1) return 0; src0 += 1, src1 += 1; if (*src0 != *src1) return 1; src0 += 1, src1 += 1; return compare256_c_static(src0, src1) + 2; } Z_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) { return compare258_c_static(src0, src1); } #define LONGEST_MATCH longest_match_c #define COMPARE256 compare256_c_static #define COMPARE258 compare258_c_static #include "match_tpl.h" #define LONGEST_MATCH_SLOW #define LONGEST_MATCH longest_match_slow_c #define COMPARE256 compare256_c_static #define COMPARE258 compare258_c_staticc #include "match_tpl.h" #ifdef UNALIGNED_OK /* UNALIGNED_OK, 16-bit integer comparison */ static inline uint32_t compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) { uint32_t len = 0; do { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return len + (*src0 == *src1); src0 += 2, src1 += 2, len += 2; #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return len + (*src0 == *src1); src0 += 2, src1 += 2, len += 2; #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return len + (*src0 == *src1); src0 += 2, src1 += 2, len += 2; #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return len + (*src0 == *src1); src0 += 2, src1 += 2, len += 2; } while (len < 256); return 256; } static inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return (*src0 == *src1); return compare256_unaligned_16_static(src0+2, src1+2) + 2; } Z_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) { return compare258_unaligned_16_static(src0, src1); } #define LONGEST_MATCH longest_match_unaligned_16 #define COMPARE256 compare256_unaligned_16_static #define COMPARE258 compare258_unaligned_16_static #include "match_tpl.h" #define LONGEST_MATCH_SLOW #define LONGEST_MATCH longest_match_slow_unaligned_16 #define COMPARE256 compare256_unaligned_16_static #define COMPARE258 compare258_unaligned_16_static #include "match_tpl.h" #ifdef HAVE_BUILTIN_CTZ /* UNALIGNED_OK, 32-bit integer comparison */ static inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) { uint32_t len = 0; do { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 uint32_t sv = *(uint32_t *)src0; uint32_t mv = *(uint32_t *)src1; #else uint32_t sv, mv; memcpy(&sv, src0, 4); memcpy(&mv, src1, 4); #endif uint32_t diff = sv ^ mv; if (diff) { uint32_t match_byte = __builtin_ctz(diff) / 8; return len + match_byte; } src0 += 4, src1 += 4, len += 4; } while (len < 256); return 256; } static inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return (*src0 == *src1); return compare256_unaligned_32_static(src0+2, src1+2) + 2; } Z_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) { return compare258_unaligned_32_static(src0, src1); } #define LONGEST_MATCH longest_match_unaligned_32 #define COMPARE256 compare256_unaligned_32_static #define COMPARE258 compare258_unaligned_32_static #include "match_tpl.h" #define LONGEST_MATCH_SLOW #define LONGEST_MATCH longest_match_slow_unaligned_32 #define COMPARE256 compare256_unaligned_32_static #define COMPARE258 compare258_unaligned_32_static #include "match_tpl.h" #endif #if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL) /* UNALIGNED64_OK, 64-bit integer comparison */ static inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) { uint32_t len = 0; do { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 uint64_t sv = *(uint64_t *)src0; uint64_t mv = *(uint64_t *)src1; #else uint64_t sv, mv; memcpy(&sv, src0, 8); memcpy(&mv, src1, 8); #endif uint64_t diff = sv ^ mv; if (diff) { uint64_t match_byte = __builtin_ctzll(diff) / 8; return len + (uint32_t)match_byte; } src0 += 8, src1 += 8, len += 8; } while (len < 256); return 256; } static inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) { #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8 if (*(uint16_t *)src0 != *(uint16_t *)src1) #else if (memcmp(src0, src1, 2)) #endif return (*src0 == *src1); return compare256_unaligned_64_static(src0+2, src1+2) + 2; } Z_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) { return compare258_unaligned_64_static(src0, src1); } #define LONGEST_MATCH longest_match_unaligned_64 #define COMPARE256 compare256_unaligned_64_static #define COMPARE258 compare258_unaligned_64_static #include "match_tpl.h" #define LONGEST_MATCH_SLOW #define LONGEST_MATCH longest_match_slow_unaligned_64 #define COMPARE256 compare256_unaligned_64_static #define COMPARE258 compare258_unaligned_64_static #include "match_tpl.h" #endif #endif
35.44
205
(ERROR) "/* compare258.c -- aligned and unaligned versions of compare258\n * Copyright (C) 2020 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n#include "zbuild.h"\n#include "zutil.h"\n\n#include "fallback_builtins.h"\n\n/* ALIGNED, byte comparison */\nstatic inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return compare258_c_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_staticc\n\n#include "match_tpl.h"\n\n#ifdef UNALIGNED_OK\n/* UNALIGNED_OK, 16-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include "match_tpl.h"\n\n#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#endif\n\n#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#endif\n\n#endif\n" (comment) "/* compare258.c -- aligned and unaligned versions of compare258\n * Copyright (C) 2020 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h\n */" (preproc_include) "#include "zbuild.h"\n" (#include) "#include" (string_literal) ""zbuild.h"" (") """ (string_content) "zbuild.h" (") """ (preproc_include) "#include "zutil.h"\n" (#include) "#include" (string_literal) ""zutil.h"" (") """ (string_content) "zutil.h" (") """ (preproc_include) "#include "fallback_builtins.h"\n" (#include) "#include" (string_literal) ""fallback_builtins.h"" (") """ (string_content) "fallback_builtins.h" (") """ (comment) "/* ALIGNED, byte comparison */" (function_definition) "static inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare256_c_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare256_c_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}" ({) "{" (declaration) "uint32_t len = 0;" (primitive_type) "uint32_t" (init_declarator) "len = 0" (identifier) "len" (=) "=" (number_literal) "0" (;) ";" (do_statement) "do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);" (do) "do" (compound_statement) "{\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n }" ({) "{" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return len;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return len;" (return) "return" (identifier) "len" (;) ";" (expression_statement) "src0 += 1, src1 += 1, len += 1;" (comma_expression) "src0 += 1, src1 += 1, len += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (comma_expression) "src1 += 1, len += 1" (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "len += 1" (identifier) "len" (+=) "+=" (number_literal) "1" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(len < 256)" (() "(" (binary_expression) "len < 256" (identifier) "len" (<) "<" (number_literal) "256" ()) ")" (;) ";" (return_statement) "return 256;" (return) "return" (number_literal) "256" (;) ";" (}) "}" (function_definition) "static inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare258_c_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_c_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}" ({) "{" (if_statement) "if (*src0 != *src1)\n return 0;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "src0 += 1, src1 += 1;" (comma_expression) "src0 += 1, src1 += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (;) ";" (if_statement) "if (*src0 != *src1)\n return 1;" (if) "if" (parenthesized_expression) "(*src0 != *src1)" (() "(" (binary_expression) "*src0 != *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (!=) "!=" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "src0 += 1, src1 += 1;" (comma_expression) "src0 += 1, src1 += 1" (assignment_expression) "src0 += 1" (identifier) "src0" (+=) "+=" (number_literal) "1" (,) "," (assignment_expression) "src1 += 1" (identifier) "src1" (+=) "+=" (number_literal) "1" (;) ";" (return_statement) "return compare256_c_static(src0, src1) + 2;" (return) "return" (binary_expression) "compare256_c_static(src0, src1) + 2" (call_expression) "compare256_c_static(src0, src1)" (identifier) "compare256_c_static" (argument_list) "(src0, src1)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" ()) ")" (+) "+" (number_literal) "2" (;) ";" (}) "}" (function_definition) "Z_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return compare258_c_static(src0, src1);\n}" (type_identifier) "Z_INTERNAL" (ERROR) "uint32_t" (identifier) "uint32_t" (function_declarator) "compare258_c(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_c" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n return compare258_c_static(src0, src1);\n}" ({) "{" (return_statement) "return compare258_c_static(src0, src1);" (return) "return" (call_expression) "compare258_c_static(src0, src1)" (identifier) "compare258_c_static" (argument_list) "(src0, src1)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" ()) ")" (;) ";" (}) "}" (preproc_def) "#define LONGEST_MATCH longest_match_c\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_c" (preproc_def) "#define COMPARE256 compare256_c_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_c_static" (preproc_def) "#define COMPARE258 compare258_c_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_c_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (preproc_def) "#define LONGEST_MATCH_SLOW\n" (#define) "#define" (identifier) "LONGEST_MATCH_SLOW" (preproc_def) "#define LONGEST_MATCH longest_match_slow_c\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_slow_c" (preproc_def) "#define COMPARE256 compare256_c_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_c_static" (preproc_def) "#define COMPARE258 compare258_c_staticc\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_c_staticc" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (#ifdef) "#ifdef" (identifier) "UNALIGNED_OK" (comment) "/* UNALIGNED_OK, 16-bit integer comparison */" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare256_unaligned_16_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" ({) "{" (declaration) "uint32_t len = 0;" (primitive_type) "uint32_t" (init_declarator) "len = 0" (identifier) "len" (=) "=" (number_literal) "0" (;) ";" (do) "do" ({) "{" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (ERROR) "#endif" (preproc_directive) "#endif" (return_statement) "return len + (*src0 == *src1);" (return) "return" (binary_expression) "len + (*src0 == *src1)" (identifier) "len" (+) "+" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (expression_statement) "src0 += 2, src1 += 2, len += 2;" (comma_expression) "src0 += 2, src1 += 2, len += 2" (assignment_expression) "src0 += 2" (identifier) "src0" (+=) "+=" (number_literal) "2" (,) "," (comma_expression) "src1 += 2, len += 2" (assignment_expression) "src1 += 2" (identifier) "src1" (+=) "+=" (number_literal) "2" (,) "," (assignment_expression) "len += 2" (identifier) "len" (+=) "+=" (number_literal) "2" (;) ";" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (ERROR) "#endif" (preproc_directive) "#endif" (return_statement) "return len + (*src0 == *src1);" (return) "return" (binary_expression) "len + (*src0 == *src1)" (identifier) "len" (+) "+" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (expression_statement) "src0 += 2, src1 += 2, len += 2;" (comma_expression) "src0 += 2, src1 += 2, len += 2" (assignment_expression) "src0 += 2" (identifier) "src0" (+=) "+=" (number_literal) "2" (,) "," (comma_expression) "src1 += 2, len += 2" (assignment_expression) "src1 += 2" (identifier) "src1" (+=) "+=" (number_literal) "2" (,) "," (assignment_expression) "len += 2" (identifier) "len" (+=) "+=" (number_literal) "2" (;) ";" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (ERROR) "#endif" (preproc_directive) "#endif" (return_statement) "return len + (*src0 == *src1);" (return) "return" (binary_expression) "len + (*src0 == *src1)" (identifier) "len" (+) "+" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (expression_statement) "src0 += 2, src1 += 2, len += 2;" (comma_expression) "src0 += 2, src1 += 2, len += 2" (assignment_expression) "src0 += 2" (identifier) "src0" (+=) "+=" (number_literal) "2" (,) "," (comma_expression) "src1 += 2, len += 2" (assignment_expression) "src1 += 2" (identifier) "src1" (+=) "+=" (number_literal) "2" (,) "," (assignment_expression) "len += 2" (identifier) "len" (+=) "+=" (number_literal) "2" (;) ";" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include "match_tpl.h"\n\n#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#endif\n\n#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#endif\n\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (ERROR) "#endif" (preproc_directive) "#endif" (return_statement) "return len + (*src0 == *src1);" (return) "return" (binary_expression) "len + (*src0 == *src1)" (identifier) "len" (+) "+" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (expression_statement) "src0 += 2, src1 += 2, len += 2;" (comma_expression) "src0 += 2, src1 += 2, len += 2" (assignment_expression) "src0 += 2" (identifier) "src0" (+=) "+=" (number_literal) "2" (,) "," (comma_expression) "src1 += 2, len += 2" (assignment_expression) "src1 += 2" (identifier) "src1" (+=) "+=" (number_literal) "2" (,) "," (assignment_expression) "len += 2" (identifier) "len" (+=) "+=" (number_literal) "2" (;) ";" (ERROR) "}" (}) "}" (while_statement) "while (len < 256);" (while) "while" (parenthesized_expression) "(len < 256)" (() "(" (binary_expression) "len < 256" (identifier) "len" (<) "<" (number_literal) "256" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return 256;" (return) "return" (number_literal) "256" (;) ";" (ERROR) "}" (}) "}" (function_definition) "static inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_16_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}" ({) "{" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (expression_statement) "" (;) "" (#endif) "#endif" (return_statement) "return (*src0 == *src1);" (return) "return" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (return_statement) "return compare256_unaligned_16_static(src0+2, src1+2) + 2;" (return) "return" (binary_expression) "compare256_unaligned_16_static(src0+2, src1+2) + 2" (call_expression) "compare256_unaligned_16_static(src0+2, src1+2)" (identifier) "compare256_unaligned_16_static" (argument_list) "(src0+2, src1+2)" (() "(" (binary_expression) "src0+2" (identifier) "src0" (+) "+" (number_literal) "2" (,) "," (binary_expression) "src1+2" (identifier) "src1" (+) "+" (number_literal) "2" ()) ")" (+) "+" (number_literal) "2" (;) ";" (}) "}" (function_definition) "Z_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}" (type_identifier) "Z_INTERNAL" (ERROR) "uint32_t" (identifier) "uint32_t" (function_declarator) "compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_16" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n return compare258_unaligned_16_static(src0, src1);\n}" ({) "{" (return_statement) "return compare258_unaligned_16_static(src0, src1);" (return) "return" (call_expression) "compare258_unaligned_16_static(src0, src1)" (identifier) "compare258_unaligned_16_static" (argument_list) "(src0, src1)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" ()) ")" (;) ";" (}) "}" (preproc_def) "#define LONGEST_MATCH longest_match_unaligned_16\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_unaligned_16" (preproc_def) "#define COMPARE256 compare256_unaligned_16_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_16_static" (preproc_def) "#define COMPARE258 compare258_unaligned_16_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_16_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (preproc_def) "#define LONGEST_MATCH_SLOW\n" (#define) "#define" (identifier) "LONGEST_MATCH_SLOW" (preproc_def) "#define LONGEST_MATCH longest_match_slow_unaligned_16\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_slow_unaligned_16" (preproc_def) "#define COMPARE256 compare256_unaligned_16_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_16_static" (preproc_def) "#define COMPARE258 compare258_unaligned_16_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_16_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (preproc_ifdef) "#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include "match_tpl.h"\n\n#endif" (#ifdef) "#ifdef" (identifier) "HAVE_BUILTIN_CTZ" (comment) "/* UNALIGNED_OK, 32-bit integer comparison */" (function_definition) "static inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare256_unaligned_32_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}" ({) "{" (declaration) "uint32_t len = 0;" (primitive_type) "uint32_t" (init_declarator) "len = 0" (identifier) "len" (=) "=" (number_literal) "0" (;) ";" (do_statement) "do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);" (do) "do" (compound_statement) "{\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n }" ({) "{" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (declaration) "uint32_t sv = *(uint32_t *)src0;" (primitive_type) "uint32_t" (init_declarator) "sv = *(uint32_t *)src0" (identifier) "sv" (=) "=" (pointer_expression) "*(uint32_t *)src0" (*) "*" (cast_expression) "(uint32_t *)src0" (() "(" (type_descriptor) "uint32_t *" (primitive_type) "uint32_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (;) ";" (declaration) "uint32_t mv = *(uint32_t *)src1;" (primitive_type) "uint32_t" (init_declarator) "mv = *(uint32_t *)src1" (identifier) "mv" (=) "=" (pointer_expression) "*(uint32_t *)src1" (*) "*" (cast_expression) "(uint32_t *)src1" (() "(" (type_descriptor) "uint32_t *" (primitive_type) "uint32_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" (;) ";" (preproc_else) "#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);" (#else) "#else" (declaration) "uint32_t sv, mv;" (primitive_type) "uint32_t" (identifier) "sv" (,) "," (identifier) "mv" (;) ";" (expression_statement) "memcpy(&sv, src0, 4);" (call_expression) "memcpy(&sv, src0, 4)" (identifier) "memcpy" (argument_list) "(&sv, src0, 4)" (() "(" (pointer_expression) "&sv" (&) "&" (identifier) "sv" (,) "," (identifier) "src0" (,) "," (number_literal) "4" ()) ")" (;) ";" (expression_statement) "memcpy(&mv, src1, 4);" (call_expression) "memcpy(&mv, src1, 4)" (identifier) "memcpy" (argument_list) "(&mv, src1, 4)" (() "(" (pointer_expression) "&mv" (&) "&" (identifier) "mv" (,) "," (identifier) "src1" (,) "," (number_literal) "4" ()) ")" (;) ";" (#endif) "#endif" (declaration) "uint32_t diff = sv ^ mv;" (primitive_type) "uint32_t" (init_declarator) "diff = sv ^ mv" (identifier) "diff" (=) "=" (binary_expression) "sv ^ mv" (identifier) "sv" (^) "^" (identifier) "mv" (;) ";" (if_statement) "if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }" (if) "if" (parenthesized_expression) "(diff)" (() "(" (identifier) "diff" ()) ")" (compound_statement) "{\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }" ({) "{" (declaration) "uint32_t match_byte = __builtin_ctz(diff) / 8;" (primitive_type) "uint32_t" (init_declarator) "match_byte = __builtin_ctz(diff) / 8" (identifier) "match_byte" (=) "=" (binary_expression) "__builtin_ctz(diff) / 8" (call_expression) "__builtin_ctz(diff)" (identifier) "__builtin_ctz" (argument_list) "(diff)" (() "(" (identifier) "diff" ()) ")" (/) "/" (number_literal) "8" (;) ";" (return_statement) "return len + match_byte;" (return) "return" (binary_expression) "len + match_byte" (identifier) "len" (+) "+" (identifier) "match_byte" (;) ";" (}) "}" (expression_statement) "src0 += 4, src1 += 4, len += 4;" (comma_expression) "src0 += 4, src1 += 4, len += 4" (assignment_expression) "src0 += 4" (identifier) "src0" (+=) "+=" (number_literal) "4" (,) "," (comma_expression) "src1 += 4, len += 4" (assignment_expression) "src1 += 4" (identifier) "src1" (+=) "+=" (number_literal) "4" (,) "," (assignment_expression) "len += 4" (identifier) "len" (+=) "+=" (number_literal) "4" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(len < 256)" (() "(" (binary_expression) "len < 256" (identifier) "len" (<) "<" (number_literal) "256" ()) ")" (;) ";" (return_statement) "return 256;" (return) "return" (number_literal) "256" (;) ";" (}) "}" (function_definition) "static inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_32_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}" ({) "{" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (expression_statement) "" (;) "" (#endif) "#endif" (return_statement) "return (*src0 == *src1);" (return) "return" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (return_statement) "return compare256_unaligned_32_static(src0+2, src1+2) + 2;" (return) "return" (binary_expression) "compare256_unaligned_32_static(src0+2, src1+2) + 2" (call_expression) "compare256_unaligned_32_static(src0+2, src1+2)" (identifier) "compare256_unaligned_32_static" (argument_list) "(src0+2, src1+2)" (() "(" (binary_expression) "src0+2" (identifier) "src0" (+) "+" (number_literal) "2" (,) "," (binary_expression) "src1+2" (identifier) "src1" (+) "+" (number_literal) "2" ()) ")" (+) "+" (number_literal) "2" (;) ";" (}) "}" (function_definition) "Z_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}" (type_identifier) "Z_INTERNAL" (ERROR) "uint32_t" (identifier) "uint32_t" (function_declarator) "compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_32" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n return compare258_unaligned_32_static(src0, src1);\n}" ({) "{" (return_statement) "return compare258_unaligned_32_static(src0, src1);" (return) "return" (call_expression) "compare258_unaligned_32_static(src0, src1)" (identifier) "compare258_unaligned_32_static" (argument_list) "(src0, src1)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" ()) ")" (;) ";" (}) "}" (preproc_def) "#define LONGEST_MATCH longest_match_unaligned_32\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_unaligned_32" (preproc_def) "#define COMPARE256 compare256_unaligned_32_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_32_static" (preproc_def) "#define COMPARE258 compare258_unaligned_32_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_32_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (preproc_def) "#define LONGEST_MATCH_SLOW\n" (#define) "#define" (identifier) "LONGEST_MATCH_SLOW" (preproc_def) "#define LONGEST_MATCH longest_match_slow_unaligned_32\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_slow_unaligned_32" (preproc_def) "#define COMPARE256 compare256_unaligned_32_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_32_static" (preproc_def) "#define COMPARE258 compare258_unaligned_32_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_32_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (#endif) "#endif" (preproc_if) "#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include "match_tpl.h"\n\n#endif" (#if) "#if" (binary_expression) "defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)" (preproc_defined) "defined(UNALIGNED64_OK)" (defined) "defined" (() "(" (identifier) "UNALIGNED64_OK" ()) ")" (&&) "&&" (preproc_defined) "defined(HAVE_BUILTIN_CTZLL)" (defined) "defined" (() "(" (identifier) "HAVE_BUILTIN_CTZLL" ()) ")" ( ) "\n" (comment) "/* UNALIGNED64_OK, 64-bit integer comparison */" (function_definition) "static inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare256_unaligned_64_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}" ({) "{" (declaration) "uint32_t len = 0;" (primitive_type) "uint32_t" (init_declarator) "len = 0" (identifier) "len" (=) "=" (number_literal) "0" (;) ";" (do_statement) "do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);" (do) "do" (compound_statement) "{\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n }" ({) "{" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (declaration) "uint64_t sv = *(uint64_t *)src0;" (primitive_type) "uint64_t" (init_declarator) "sv = *(uint64_t *)src0" (identifier) "sv" (=) "=" (pointer_expression) "*(uint64_t *)src0" (*) "*" (cast_expression) "(uint64_t *)src0" (() "(" (type_descriptor) "uint64_t *" (primitive_type) "uint64_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (;) ";" (declaration) "uint64_t mv = *(uint64_t *)src1;" (primitive_type) "uint64_t" (init_declarator) "mv = *(uint64_t *)src1" (identifier) "mv" (=) "=" (pointer_expression) "*(uint64_t *)src1" (*) "*" (cast_expression) "(uint64_t *)src1" (() "(" (type_descriptor) "uint64_t *" (primitive_type) "uint64_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" (;) ";" (preproc_else) "#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);" (#else) "#else" (declaration) "uint64_t sv, mv;" (primitive_type) "uint64_t" (identifier) "sv" (,) "," (identifier) "mv" (;) ";" (expression_statement) "memcpy(&sv, src0, 8);" (call_expression) "memcpy(&sv, src0, 8)" (identifier) "memcpy" (argument_list) "(&sv, src0, 8)" (() "(" (pointer_expression) "&sv" (&) "&" (identifier) "sv" (,) "," (identifier) "src0" (,) "," (number_literal) "8" ()) ")" (;) ";" (expression_statement) "memcpy(&mv, src1, 8);" (call_expression) "memcpy(&mv, src1, 8)" (identifier) "memcpy" (argument_list) "(&mv, src1, 8)" (() "(" (pointer_expression) "&mv" (&) "&" (identifier) "mv" (,) "," (identifier) "src1" (,) "," (number_literal) "8" ()) ")" (;) ";" (#endif) "#endif" (declaration) "uint64_t diff = sv ^ mv;" (primitive_type) "uint64_t" (init_declarator) "diff = sv ^ mv" (identifier) "diff" (=) "=" (binary_expression) "sv ^ mv" (identifier) "sv" (^) "^" (identifier) "mv" (;) ";" (if_statement) "if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }" (if) "if" (parenthesized_expression) "(diff)" (() "(" (identifier) "diff" ()) ")" (compound_statement) "{\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }" ({) "{" (declaration) "uint64_t match_byte = __builtin_ctzll(diff) / 8;" (primitive_type) "uint64_t" (init_declarator) "match_byte = __builtin_ctzll(diff) / 8" (identifier) "match_byte" (=) "=" (binary_expression) "__builtin_ctzll(diff) / 8" (call_expression) "__builtin_ctzll(diff)" (identifier) "__builtin_ctzll" (argument_list) "(diff)" (() "(" (identifier) "diff" ()) ")" (/) "/" (number_literal) "8" (;) ";" (return_statement) "return len + (uint32_t)match_byte;" (return) "return" (binary_expression) "len + (uint32_t)match_byte" (identifier) "len" (+) "+" (cast_expression) "(uint32_t)match_byte" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (identifier) "match_byte" (;) ";" (}) "}" (expression_statement) "src0 += 8, src1 += 8, len += 8;" (comma_expression) "src0 += 8, src1 += 8, len += 8" (assignment_expression) "src0 += 8" (identifier) "src0" (+=) "+=" (number_literal) "8" (,) "," (comma_expression) "src1 += 8, len += 8" (assignment_expression) "src1 += 8" (identifier) "src1" (+=) "+=" (number_literal) "8" (,) "," (assignment_expression) "len += 8" (identifier) "len" (+=) "+=" (number_literal) "8" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(len < 256)" (() "(" (binary_expression) "len < 256" (identifier) "len" (<) "<" (number_literal) "256" ()) ")" (;) ";" (return_statement) "return 256;" (return) "return" (number_literal) "256" (;) ";" (}) "}" (function_definition) "static inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint32_t" (function_declarator) "compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_64_static" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}" ({) "{" (preproc_if) "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8" (binary_expression) "defined(__GNUC__) && !defined(__clang__)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (unary_expression) "!defined(__clang__)" (!) "!" (preproc_defined) "defined(__clang__)" (defined) "defined" (() "(" (identifier) "__clang__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ < 8" (identifier) "__GNUC__" (<) "<" (number_literal) "8" ( ) "\n" (if_statement) "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(*(uint16_t *)src0 != *(uint16_t *)src1)" (() "(" (binary_expression) "*(uint16_t *)src0 != *(uint16_t *)src1" (pointer_expression) "*(uint16_t *)src0" (*) "*" (cast_expression) "(uint16_t *)src0" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src0" (!=) "!=" (pointer_expression) "*(uint16_t *)src1" (*) "*" (cast_expression) "(uint16_t *)src1" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "src1" ()) ")" (ERROR) "#else" (preproc_directive) "#else" (if_statement) "if (memcmp(src0, src1, 2))" (if) "if" (parenthesized_expression) "(memcmp(src0, src1, 2))" (() "(" (call_expression) "memcmp(src0, src1, 2)" (identifier) "memcmp" (argument_list) "(src0, src1, 2)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" (,) "," (number_literal) "2" ()) ")" ()) ")" (expression_statement) "" (;) "" (#endif) "#endif" (return_statement) "return (*src0 == *src1);" (return) "return" (parenthesized_expression) "(*src0 == *src1)" (() "(" (binary_expression) "*src0 == *src1" (pointer_expression) "*src0" (*) "*" (identifier) "src0" (==) "==" (pointer_expression) "*src1" (*) "*" (identifier) "src1" ()) ")" (;) ";" (return_statement) "return compare256_unaligned_64_static(src0+2, src1+2) + 2;" (return) "return" (binary_expression) "compare256_unaligned_64_static(src0+2, src1+2) + 2" (call_expression) "compare256_unaligned_64_static(src0+2, src1+2)" (identifier) "compare256_unaligned_64_static" (argument_list) "(src0+2, src1+2)" (() "(" (binary_expression) "src0+2" (identifier) "src0" (+) "+" (number_literal) "2" (,) "," (binary_expression) "src1+2" (identifier) "src1" (+) "+" (number_literal) "2" ()) ")" (+) "+" (number_literal) "2" (;) ";" (}) "}" (function_definition) "Z_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}" (type_identifier) "Z_INTERNAL" (ERROR) "uint32_t" (identifier) "uint32_t" (function_declarator) "compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1)" (identifier) "compare258_unaligned_64" (parameter_list) "(const unsigned char *src0, const unsigned char *src1)" (() "(" (parameter_declaration) "const unsigned char *src0" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src0" (*) "*" (identifier) "src0" (,) "," (parameter_declaration) "const unsigned char *src1" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src1" (*) "*" (identifier) "src1" ()) ")" (compound_statement) "{\n return compare258_unaligned_64_static(src0, src1);\n}" ({) "{" (return_statement) "return compare258_unaligned_64_static(src0, src1);" (return) "return" (call_expression) "compare258_unaligned_64_static(src0, src1)" (identifier) "compare258_unaligned_64_static" (argument_list) "(src0, src1)" (() "(" (identifier) "src0" (,) "," (identifier) "src1" ()) ")" (;) ";" (}) "}" (preproc_def) "#define LONGEST_MATCH longest_match_unaligned_64\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_unaligned_64" (preproc_def) "#define COMPARE256 compare256_unaligned_64_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_64_static" (preproc_def) "#define COMPARE258 compare258_unaligned_64_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_64_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (preproc_def) "#define LONGEST_MATCH_SLOW\n" (#define) "#define" (identifier) "LONGEST_MATCH_SLOW" (preproc_def) "#define LONGEST_MATCH longest_match_slow_unaligned_64\n" (#define) "#define" (identifier) "LONGEST_MATCH" (preproc_arg) "longest_match_slow_unaligned_64" (preproc_def) "#define COMPARE256 compare256_unaligned_64_static\n" (#define) "#define" (identifier) "COMPARE256" (preproc_arg) "compare256_unaligned_64_static" (preproc_def) "#define COMPARE258 compare258_unaligned_64_static\n" (#define) "#define" (identifier) "COMPARE258" (preproc_arg) "compare258_unaligned_64_static" (preproc_include) "#include "match_tpl.h"\n" (#include) "#include" (string_literal) ""match_tpl.h"" (") """ (string_content) "match_tpl.h" (") """ (#endif) "#endif" (#endif) "#endif"
2,119
18
{"language": "c", "success": true, "metadata": {"lines": 205, "avg_line_length": 35.44, "nodes": 1506, "errors": 0, "source_hash": "021e6a82a70e5f6e841ac0987d0d1d50f4c7b34ed6f669c9b18d83a591774c7f", "categorized_nodes": 902}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/* compare258.c -- aligned and unaligned versions of compare258\n * Copyright (C) 2020 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n#include \"zbuild.h\"\n#include \"zutil.h\"\n\n#include \"fallback_builtins.h\"\n\n/* ALIGNED, byte comparison */\nstatic inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return compare258_c_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_staticc\n\n#include \"match_tpl.h\"\n\n#ifdef UNALIGNED_OK\n/* UNALIGNED_OK, 16-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#endif\n", "parent": null, "children": [1, 4, 7, 10, 253, 325, 352, 356, 360, 364, 367, 370, 374, 378, 382, 385, 386, 387, 389, 390, 407, 413, 414, 430, 431, 490, 491, 507, 508, 567, 568, 584, 585, 644], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 254, "column": 0}}, {"id": 1, "type": "preproc_include", "text": "#include \"zbuild.h\"\n", "parent": 0, "children": [2, 3], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 2, "type": "#include", "text": "#include", "parent": 1, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 3, "type": "string_literal", "text": "\"zbuild.h\"", "parent": 1, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 19}}, {"id": 4, "type": "preproc_include", "text": "#include \"zutil.h\"\n", "parent": 0, "children": [5, 6], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 5, "type": "#include", "text": "#include", "parent": 4, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 6, "type": "string_literal", "text": "\"zutil.h\"", "parent": 4, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 7, "type": "preproc_include", "text": "#include \"fallback_builtins.h\"\n", "parent": 0, "children": [8, 9], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 8, "type": "#include", "text": "#include", "parent": 7, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 9, "type": "string_literal", "text": "\"fallback_builtins.h\"", "parent": 7, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 30}}, {"id": 10, "type": "function_definition", "text": "static inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}", "parent": 0, "children": [11, 13, 14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 11, "type": "storage_class_specifier", "text": "inline", "parent": 10, "children": [12], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 13}}, {"id": 12, "type": "inline", "text": "inline", "parent": 11, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 13}}, {"id": 13, "type": "primitive_type", "text": "uint32_t", "parent": 10, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 22}}, {"id": 14, "type": "function_declarator", "text": "compare256_c_static(const unsigned char *src0, const unsigned char *src1)", "parent": 10, "children": [15, 16], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 96}}, {"id": 15, "type": "identifier", "text": "compare256_c_static", "parent": 14, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 42}}, {"id": 16, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 14, "children": [17, 24], "start_point": {"row": 11, "column": 42}, "end_point": {"row": 11, "column": 96}}, {"id": 17, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 16, "children": [18, 21], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 68}}, {"id": 18, "type": "sized_type_specifier", "text": "unsigned char", "parent": 17, "children": [19, 20], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 62}}, {"id": 19, "type": "unsigned", "text": "unsigned", "parent": 18, "children": [], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 57}}, {"id": 20, "type": "primitive_type", "text": "char", "parent": 18, "children": [], "start_point": {"row": 11, "column": 58}, "end_point": {"row": 11, "column": 62}}, {"id": 21, "type": "pointer_declarator", "text": "*src0", "parent": 17, "children": [22, 23], "start_point": {"row": 11, "column": 63}, "end_point": {"row": 11, "column": 68}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 11, "column": 63}, "end_point": {"row": 11, "column": 64}}, {"id": 23, "type": "identifier", "text": "src0", "parent": 21, "children": [], "start_point": {"row": 11, "column": 64}, "end_point": {"row": 11, "column": 68}}, {"id": 24, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 16, "children": [25, 28], "start_point": {"row": 11, "column": 70}, "end_point": {"row": 11, "column": 95}}, {"id": 25, "type": "sized_type_specifier", "text": "unsigned char", "parent": 24, "children": [26, 27], "start_point": {"row": 11, "column": 76}, "end_point": {"row": 11, "column": 89}}, {"id": 26, "type": "unsigned", "text": "unsigned", "parent": 25, "children": [], "start_point": {"row": 11, "column": 76}, "end_point": {"row": 11, "column": 84}}, {"id": 27, "type": "primitive_type", "text": "char", "parent": 25, "children": [], "start_point": {"row": 11, "column": 85}, "end_point": {"row": 11, "column": 89}}, {"id": 28, "type": "pointer_declarator", "text": "*src1", "parent": 24, "children": [29, 30], "start_point": {"row": 11, "column": 90}, "end_point": {"row": 11, "column": 95}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 11, "column": 90}, "end_point": {"row": 11, "column": 91}}, {"id": 30, "type": "identifier", "text": "src1", "parent": 28, "children": [], "start_point": {"row": 11, "column": 91}, "end_point": {"row": 11, "column": 95}}, {"id": 31, "type": "declaration", "text": "uint32_t len = 0;", "parent": 10, "children": [32, 33], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 21}}, {"id": 32, "type": "primitive_type", "text": "uint32_t", "parent": 31, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 33, "type": "init_declarator", "text": "len = 0", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 20}}, {"id": 34, "type": "identifier", "text": "len", "parent": 33, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 16}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 36, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 37, "type": "do_statement", "text": "do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);", "parent": 10, "children": [246], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 39, "column": 24}}, {"id": 38, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [39, 48], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 16, "column": 23}}, {"id": 39, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 38, "children": [40], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 27}}, {"id": 40, "type": "binary_expression", "text": "*src0 != *src1", "parent": 39, "children": [41, 44, 45], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 26}}, {"id": 41, "type": "pointer_expression", "text": "*src0", "parent": 40, "children": [42, 43], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 17}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 13}}, {"id": 43, "type": "identifier", "text": "src0", "parent": 41, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 17}}, {"id": 44, "type": "!=", "text": "!=", "parent": 40, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 20}}, {"id": 45, "type": "pointer_expression", "text": "*src1", "parent": 40, "children": [46, 47], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 26}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 47, "type": "identifier", "text": "src1", "parent": 45, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 26}}, {"id": 48, "type": "return_statement", "text": "return len;", "parent": 38, "children": [49], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 23}}, {"id": 49, "type": "identifier", "text": "len", "parent": 48, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 22}}, {"id": 50, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [51, 55], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 38}}, {"id": 51, "type": "assignment_expression", "text": "src0 += 1", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 17}}, {"id": 52, "type": "identifier", "text": "src0", "parent": 51, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 12}}, {"id": 53, "type": "+=", "text": "+=", "parent": 51, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 54, "type": "number_literal", "text": "1", "parent": 51, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 17}}, {"id": 55, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 50, "children": [56, 60], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 38}}, {"id": 56, "type": "assignment_expression", "text": "src1 += 1", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 28}}, {"id": 57, "type": "identifier", "text": "src1", "parent": 56, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 23}}, {"id": 58, "type": "+=", "text": "+=", "parent": 56, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 26}}, {"id": 59, "type": "number_literal", "text": "1", "parent": 56, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 28}}, {"id": 60, "type": "assignment_expression", "text": "len += 1", "parent": 55, "children": [61, 62, 63], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 38}}, {"id": 61, "type": "identifier", "text": "len", "parent": 60, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 33}}, {"id": 62, "type": "+=", "text": "+=", "parent": 60, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 36}}, {"id": 63, "type": "number_literal", "text": "1", "parent": 60, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 64, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [65, 74], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 19, "column": 23}}, {"id": 65, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 64, "children": [66], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 27}}, {"id": 66, "type": "binary_expression", "text": "*src0 != *src1", "parent": 65, "children": [67, 70, 71], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 26}}, {"id": 67, "type": "pointer_expression", "text": "*src0", "parent": 66, "children": [68, 69], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 17}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 13}}, {"id": 69, "type": "identifier", "text": "src0", "parent": 67, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 17}}, {"id": 70, "type": "!=", "text": "!=", "parent": 66, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 20}}, {"id": 71, "type": "pointer_expression", "text": "*src1", "parent": 66, "children": [72, 73], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 26}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 22}}, {"id": 73, "type": "identifier", "text": "src1", "parent": 71, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 74, "type": "return_statement", "text": "return len;", "parent": 64, "children": [75], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 23}}, {"id": 75, "type": "identifier", "text": "len", "parent": 74, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 22}}, {"id": 76, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [77, 81], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 38}}, {"id": 77, "type": "assignment_expression", "text": "src0 += 1", "parent": 76, "children": [78, 79, 80], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 17}}, {"id": 78, "type": "identifier", "text": "src0", "parent": 77, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 79, "type": "+=", "text": "+=", "parent": 77, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 15}}, {"id": 80, "type": "number_literal", "text": "1", "parent": 77, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 81, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 76, "children": [82, 86], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 38}}, {"id": 82, "type": "assignment_expression", "text": "src1 += 1", "parent": 81, "children": [83, 84, 85], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 28}}, {"id": 83, "type": "identifier", "text": "src1", "parent": 82, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 23}}, {"id": 84, "type": "+=", "text": "+=", "parent": 82, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 26}}, {"id": 85, "type": "number_literal", "text": "1", "parent": 82, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 28}}, {"id": 86, "type": "assignment_expression", "text": "len += 1", "parent": 81, "children": [87, 88, 89], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 38}}, {"id": 87, "type": "identifier", "text": "len", "parent": 86, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 33}}, {"id": 88, "type": "+=", "text": "+=", "parent": 86, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 36}}, {"id": 89, "type": "number_literal", "text": "1", "parent": 86, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 38}}, {"id": 90, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [91, 100], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 22, "column": 23}}, {"id": 91, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 90, "children": [92], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 27}}, {"id": 92, "type": "binary_expression", "text": "*src0 != *src1", "parent": 91, "children": [93, 96, 97], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 26}}, {"id": 93, "type": "pointer_expression", "text": "*src0", "parent": 92, "children": [94, 95], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 17}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 95, "type": "identifier", "text": "src0", "parent": 93, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 17}}, {"id": 96, "type": "!=", "text": "!=", "parent": 92, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 20}}, {"id": 97, "type": "pointer_expression", "text": "*src1", "parent": 92, "children": [98, 99], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 26}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 21, "column": 21}, "end_point": {"row": 21, "column": 22}}, {"id": 99, "type": "identifier", "text": "src1", "parent": 97, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 26}}, {"id": 100, "type": "return_statement", "text": "return len;", "parent": 90, "children": [101], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 23}}, {"id": 101, "type": "identifier", "text": "len", "parent": 100, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 22}}, {"id": 102, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [103, 107], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 38}}, {"id": 103, "type": "assignment_expression", "text": "src0 += 1", "parent": 102, "children": [104, 105, 106], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 17}}, {"id": 104, "type": "identifier", "text": "src0", "parent": 103, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 12}}, {"id": 105, "type": "+=", "text": "+=", "parent": 103, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 15}}, {"id": 106, "type": "number_literal", "text": "1", "parent": 103, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 17}}, {"id": 107, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 102, "children": [108, 112], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 38}}, {"id": 108, "type": "assignment_expression", "text": "src1 += 1", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 28}}, {"id": 109, "type": "identifier", "text": "src1", "parent": 108, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 23}}, {"id": 110, "type": "+=", "text": "+=", "parent": 108, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 26}}, {"id": 111, "type": "number_literal", "text": "1", "parent": 108, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 28}}, {"id": 112, "type": "assignment_expression", "text": "len += 1", "parent": 107, "children": [113, 114, 115], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 38}}, {"id": 113, "type": "identifier", "text": "len", "parent": 112, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 33}}, {"id": 114, "type": "+=", "text": "+=", "parent": 112, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 36}}, {"id": 115, "type": "number_literal", "text": "1", "parent": 112, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 116, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [117, 126], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 25, "column": 23}}, {"id": 117, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 116, "children": [118], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 27}}, {"id": 118, "type": "binary_expression", "text": "*src0 != *src1", "parent": 117, "children": [119, 122, 123], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 26}}, {"id": 119, "type": "pointer_expression", "text": "*src0", "parent": 118, "children": [120, 121], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 17}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 13}}, {"id": 121, "type": "identifier", "text": "src0", "parent": 119, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 17}}, {"id": 122, "type": "!=", "text": "!=", "parent": 118, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 123, "type": "pointer_expression", "text": "*src1", "parent": 118, "children": [124, 125], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 26}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 22}}, {"id": 125, "type": "identifier", "text": "src1", "parent": 123, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 26}}, {"id": 126, "type": "return_statement", "text": "return len;", "parent": 116, "children": [127], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 23}}, {"id": 127, "type": "identifier", "text": "len", "parent": 126, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 22}}, {"id": 128, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [129, 133], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 38}}, {"id": 129, "type": "assignment_expression", "text": "src0 += 1", "parent": 128, "children": [130, 131, 132], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 17}}, {"id": 130, "type": "identifier", "text": "src0", "parent": 129, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 131, "type": "+=", "text": "+=", "parent": 129, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 15}}, {"id": 132, "type": "number_literal", "text": "1", "parent": 129, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 133, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 128, "children": [134, 138], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 38}}, {"id": 134, "type": "assignment_expression", "text": "src1 += 1", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 28}}, {"id": 135, "type": "identifier", "text": "src1", "parent": 134, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 23}}, {"id": 136, "type": "+=", "text": "+=", "parent": 134, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 137, "type": "number_literal", "text": "1", "parent": 134, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 28}}, {"id": 138, "type": "assignment_expression", "text": "len += 1", "parent": 133, "children": [139, 140, 141], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 38}}, {"id": 139, "type": "identifier", "text": "len", "parent": 138, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 33}}, {"id": 140, "type": "+=", "text": "+=", "parent": 138, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 36}}, {"id": 141, "type": "number_literal", "text": "1", "parent": 138, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 38}}, {"id": 142, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [143, 152], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 28, "column": 23}}, {"id": 143, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 142, "children": [144], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 27}}, {"id": 144, "type": "binary_expression", "text": "*src0 != *src1", "parent": 143, "children": [145, 148, 149], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 26}}, {"id": 145, "type": "pointer_expression", "text": "*src0", "parent": 144, "children": [146, 147], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 17}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 147, "type": "identifier", "text": "src0", "parent": 145, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 17}}, {"id": 148, "type": "!=", "text": "!=", "parent": 144, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 20}}, {"id": 149, "type": "pointer_expression", "text": "*src1", "parent": 144, "children": [150, 151], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 26}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 151, "type": "identifier", "text": "src1", "parent": 149, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 26}}, {"id": 152, "type": "return_statement", "text": "return len;", "parent": 142, "children": [153], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 23}}, {"id": 153, "type": "identifier", "text": "len", "parent": 152, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 22}}, {"id": 154, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [155, 159], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 38}}, {"id": 155, "type": "assignment_expression", "text": "src0 += 1", "parent": 154, "children": [156, 157, 158], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 17}}, {"id": 156, "type": "identifier", "text": "src0", "parent": 155, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 12}}, {"id": 157, "type": "+=", "text": "+=", "parent": 155, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 15}}, {"id": 158, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 159, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 154, "children": [160, 164], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 38}}, {"id": 160, "type": "assignment_expression", "text": "src1 += 1", "parent": 159, "children": [161, 162, 163], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 28}}, {"id": 161, "type": "identifier", "text": "src1", "parent": 160, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 23}}, {"id": 162, "type": "+=", "text": "+=", "parent": 160, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 26}}, {"id": 163, "type": "number_literal", "text": "1", "parent": 160, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 28}}, {"id": 164, "type": "assignment_expression", "text": "len += 1", "parent": 159, "children": [165, 166, 167], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 38}}, {"id": 165, "type": "identifier", "text": "len", "parent": 164, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 33}}, {"id": 166, "type": "+=", "text": "+=", "parent": 164, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 36}}, {"id": 167, "type": "number_literal", "text": "1", "parent": 164, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 168, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [169, 178], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 31, "column": 23}}, {"id": 169, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 168, "children": [170], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 27}}, {"id": 170, "type": "binary_expression", "text": "*src0 != *src1", "parent": 169, "children": [171, 174, 175], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 26}}, {"id": 171, "type": "pointer_expression", "text": "*src0", "parent": 170, "children": [172, 173], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 17}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 173, "type": "identifier", "text": "src0", "parent": 171, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 17}}, {"id": 174, "type": "!=", "text": "!=", "parent": 170, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 20}}, {"id": 175, "type": "pointer_expression", "text": "*src1", "parent": 170, "children": [176, 177], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 26}}, {"id": 176, "type": "*", "text": "*", "parent": 175, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 22}}, {"id": 177, "type": "identifier", "text": "src1", "parent": 175, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 26}}, {"id": 178, "type": "return_statement", "text": "return len;", "parent": 168, "children": [179], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 23}}, {"id": 179, "type": "identifier", "text": "len", "parent": 178, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 22}}, {"id": 180, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [181, 185], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 38}}, {"id": 181, "type": "assignment_expression", "text": "src0 += 1", "parent": 180, "children": [182, 183, 184], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 17}}, {"id": 182, "type": "identifier", "text": "src0", "parent": 181, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 12}}, {"id": 183, "type": "+=", "text": "+=", "parent": 181, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 15}}, {"id": 184, "type": "number_literal", "text": "1", "parent": 181, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 185, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 180, "children": [186, 190], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 38}}, {"id": 186, "type": "assignment_expression", "text": "src1 += 1", "parent": 185, "children": [187, 188, 189], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 28}}, {"id": 187, "type": "identifier", "text": "src1", "parent": 186, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 23}}, {"id": 188, "type": "+=", "text": "+=", "parent": 186, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 26}}, {"id": 189, "type": "number_literal", "text": "1", "parent": 186, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 28}}, {"id": 190, "type": "assignment_expression", "text": "len += 1", "parent": 185, "children": [191, 192, 193], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 38}}, {"id": 191, "type": "identifier", "text": "len", "parent": 190, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 33}}, {"id": 192, "type": "+=", "text": "+=", "parent": 190, "children": [], "start_point": {"row": 32, "column": 34}, "end_point": {"row": 32, "column": 36}}, {"id": 193, "type": "number_literal", "text": "1", "parent": 190, "children": [], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 38}}, {"id": 194, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [195, 204], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 34, "column": 23}}, {"id": 195, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 194, "children": [196], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 27}}, {"id": 196, "type": "binary_expression", "text": "*src0 != *src1", "parent": 195, "children": [197, 200, 201], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 26}}, {"id": 197, "type": "pointer_expression", "text": "*src0", "parent": 196, "children": [198, 199], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 17}}, {"id": 198, "type": "*", "text": "*", "parent": 197, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 13}}, {"id": 199, "type": "identifier", "text": "src0", "parent": 197, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 17}}, {"id": 200, "type": "!=", "text": "!=", "parent": 196, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 20}}, {"id": 201, "type": "pointer_expression", "text": "*src1", "parent": 196, "children": [202, 203], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 26}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 203, "type": "identifier", "text": "src1", "parent": 201, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 26}}, {"id": 204, "type": "return_statement", "text": "return len;", "parent": 194, "children": [205], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 23}}, {"id": 205, "type": "identifier", "text": "len", "parent": 204, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 22}}, {"id": 206, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [207, 211], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 38}}, {"id": 207, "type": "assignment_expression", "text": "src0 += 1", "parent": 206, "children": [208, 209, 210], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 17}}, {"id": 208, "type": "identifier", "text": "src0", "parent": 207, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 209, "type": "+=", "text": "+=", "parent": 207, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 15}}, {"id": 210, "type": "number_literal", "text": "1", "parent": 207, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 17}}, {"id": 211, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 206, "children": [212, 216], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 38}}, {"id": 212, "type": "assignment_expression", "text": "src1 += 1", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 28}}, {"id": 213, "type": "identifier", "text": "src1", "parent": 212, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 23}}, {"id": 214, "type": "+=", "text": "+=", "parent": 212, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 26}}, {"id": 215, "type": "number_literal", "text": "1", "parent": 212, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 216, "type": "assignment_expression", "text": "len += 1", "parent": 211, "children": [217, 218, 219], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 38}}, {"id": 217, "type": "identifier", "text": "len", "parent": 216, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 33}}, {"id": 218, "type": "+=", "text": "+=", "parent": 216, "children": [], "start_point": {"row": 35, "column": 34}, "end_point": {"row": 35, "column": 36}}, {"id": 219, "type": "number_literal", "text": "1", "parent": 216, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 38}}, {"id": 220, "type": "if_statement", "text": "if (*src0 != *src1)\n return len;", "parent": 37, "children": [221, 230], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 37, "column": 23}}, {"id": 221, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 220, "children": [222], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 27}}, {"id": 222, "type": "binary_expression", "text": "*src0 != *src1", "parent": 221, "children": [223, 226, 227], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 26}}, {"id": 223, "type": "pointer_expression", "text": "*src0", "parent": 222, "children": [224, 225], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 17}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 13}}, {"id": 225, "type": "identifier", "text": "src0", "parent": 223, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 17}}, {"id": 226, "type": "!=", "text": "!=", "parent": 222, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 20}}, {"id": 227, "type": "pointer_expression", "text": "*src1", "parent": 222, "children": [228, 229], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 26}}, {"id": 228, "type": "*", "text": "*", "parent": 227, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 22}}, {"id": 229, "type": "identifier", "text": "src1", "parent": 227, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 26}}, {"id": 230, "type": "return_statement", "text": "return len;", "parent": 220, "children": [231], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 23}}, {"id": 231, "type": "identifier", "text": "len", "parent": 230, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 22}}, {"id": 232, "type": "comma_expression", "text": "src0 += 1, src1 += 1, len += 1", "parent": 37, "children": [233, 237], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 38}}, {"id": 233, "type": "assignment_expression", "text": "src0 += 1", "parent": 232, "children": [234, 235, 236], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 17}}, {"id": 234, "type": "identifier", "text": "src0", "parent": 233, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 12}}, {"id": 235, "type": "+=", "text": "+=", "parent": 233, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 15}}, {"id": 236, "type": "number_literal", "text": "1", "parent": 233, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 17}}, {"id": 237, "type": "comma_expression", "text": "src1 += 1, len += 1", "parent": 232, "children": [238, 242], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 38}}, {"id": 238, "type": "assignment_expression", "text": "src1 += 1", "parent": 237, "children": [239, 240, 241], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 28}}, {"id": 239, "type": "identifier", "text": "src1", "parent": 238, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 23}}, {"id": 240, "type": "+=", "text": "+=", "parent": 238, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 26}}, {"id": 241, "type": "number_literal", "text": "1", "parent": 238, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 242, "type": "assignment_expression", "text": "len += 1", "parent": 237, "children": [243, 244, 245], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 38}}, {"id": 243, "type": "identifier", "text": "len", "parent": 242, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 33}}, {"id": 244, "type": "+=", "text": "+=", "parent": 242, "children": [], "start_point": {"row": 38, "column": 34}, "end_point": {"row": 38, "column": 36}}, {"id": 245, "type": "number_literal", "text": "1", "parent": 242, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 38}}, {"id": 246, "type": "parenthesized_expression", "text": "(len < 256)", "parent": 37, "children": [247], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 23}}, {"id": 247, "type": "binary_expression", "text": "len < 256", "parent": 246, "children": [248, 249, 250], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 22}}, {"id": 248, "type": "identifier", "text": "len", "parent": 247, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 16}}, {"id": 249, "type": "<", "text": "<", "parent": 247, "children": [], "start_point": {"row": 39, "column": 17}, "end_point": {"row": 39, "column": 18}}, {"id": 250, "type": "number_literal", "text": "256", "parent": 247, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 22}}, {"id": 251, "type": "return_statement", "text": "return 256;", "parent": 10, "children": [252], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 15}}, {"id": 252, "type": "number_literal", "text": "256", "parent": 251, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 14}}, {"id": 253, "type": "function_definition", "text": "static inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}", "parent": 0, "children": [254, 256, 257], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 254, "type": "storage_class_specifier", "text": "inline", "parent": 253, "children": [255], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 255, "type": "inline", "text": "inline", "parent": 254, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 13}}, {"id": 256, "type": "primitive_type", "text": "uint32_t", "parent": 253, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 22}}, {"id": 257, "type": "function_declarator", "text": "compare258_c_static(const unsigned char *src0, const unsigned char *src1)", "parent": 253, "children": [258, 259], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 96}}, {"id": 258, "type": "identifier", "text": "compare258_c_static", "parent": 257, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 42}}, {"id": 259, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 257, "children": [260, 267], "start_point": {"row": 44, "column": 42}, "end_point": {"row": 44, "column": 96}}, {"id": 260, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 259, "children": [261, 264], "start_point": {"row": 44, "column": 43}, "end_point": {"row": 44, "column": 68}}, {"id": 261, "type": "sized_type_specifier", "text": "unsigned char", "parent": 260, "children": [262, 263], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 62}}, {"id": 262, "type": "unsigned", "text": "unsigned", "parent": 261, "children": [], "start_point": {"row": 44, "column": 49}, "end_point": {"row": 44, "column": 57}}, {"id": 263, "type": "primitive_type", "text": "char", "parent": 261, "children": [], "start_point": {"row": 44, "column": 58}, "end_point": {"row": 44, "column": 62}}, {"id": 264, "type": "pointer_declarator", "text": "*src0", "parent": 260, "children": [265, 266], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 68}}, {"id": 265, "type": "*", "text": "*", "parent": 264, "children": [], "start_point": {"row": 44, "column": 63}, "end_point": {"row": 44, "column": 64}}, {"id": 266, "type": "identifier", "text": "src0", "parent": 264, "children": [], "start_point": {"row": 44, "column": 64}, "end_point": {"row": 44, "column": 68}}, {"id": 267, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 259, "children": [268, 271], "start_point": {"row": 44, "column": 70}, "end_point": {"row": 44, "column": 95}}, {"id": 268, "type": "sized_type_specifier", "text": "unsigned char", "parent": 267, "children": [269, 270], "start_point": {"row": 44, "column": 76}, "end_point": {"row": 44, "column": 89}}, {"id": 269, "type": "unsigned", "text": "unsigned", "parent": 268, "children": [], "start_point": {"row": 44, "column": 76}, "end_point": {"row": 44, "column": 84}}, {"id": 270, "type": "primitive_type", "text": "char", "parent": 268, "children": [], "start_point": {"row": 44, "column": 85}, "end_point": {"row": 44, "column": 89}}, {"id": 271, "type": "pointer_declarator", "text": "*src1", "parent": 267, "children": [272, 273], "start_point": {"row": 44, "column": 90}, "end_point": {"row": 44, "column": 95}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 44, "column": 90}, "end_point": {"row": 44, "column": 91}}, {"id": 273, "type": "identifier", "text": "src1", "parent": 271, "children": [], "start_point": {"row": 44, "column": 91}, "end_point": {"row": 44, "column": 95}}, {"id": 274, "type": "if_statement", "text": "if (*src0 != *src1)\n return 0;", "parent": 253, "children": [275, 284], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 46, "column": 17}}, {"id": 275, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 274, "children": [276], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 23}}, {"id": 276, "type": "binary_expression", "text": "*src0 != *src1", "parent": 275, "children": [277, 280, 281], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 22}}, {"id": 277, "type": "pointer_expression", "text": "*src0", "parent": 276, "children": [278, 279], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 13}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 9}}, {"id": 279, "type": "identifier", "text": "src0", "parent": 277, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 13}}, {"id": 280, "type": "!=", "text": "!=", "parent": 276, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 16}}, {"id": 281, "type": "pointer_expression", "text": "*src1", "parent": 276, "children": [282, 283], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 22}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 283, "type": "identifier", "text": "src1", "parent": 281, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 22}}, {"id": 284, "type": "return_statement", "text": "return 0;", "parent": 274, "children": [285], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 17}}, {"id": 285, "type": "number_literal", "text": "0", "parent": 284, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 16}}, {"id": 286, "type": "comma_expression", "text": "src0 += 1, src1 += 1", "parent": 253, "children": [287, 291], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 24}}, {"id": 287, "type": "assignment_expression", "text": "src0 += 1", "parent": 286, "children": [288, 289, 290], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 13}}, {"id": 288, "type": "identifier", "text": "src0", "parent": 287, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 8}}, {"id": 289, "type": "+=", "text": "+=", "parent": 287, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 11}}, {"id": 290, "type": "number_literal", "text": "1", "parent": 287, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 291, "type": "assignment_expression", "text": "src1 += 1", "parent": 286, "children": [292, 293, 294], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 24}}, {"id": 292, "type": "identifier", "text": "src1", "parent": 291, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 19}}, {"id": 293, "type": "+=", "text": "+=", "parent": 291, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 22}}, {"id": 294, "type": "number_literal", "text": "1", "parent": 291, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 24}}, {"id": 295, "type": "if_statement", "text": "if (*src0 != *src1)\n return 1;", "parent": 253, "children": [296, 305], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 49, "column": 17}}, {"id": 296, "type": "parenthesized_expression", "text": "(*src0 != *src1)", "parent": 295, "children": [297], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 23}}, {"id": 297, "type": "binary_expression", "text": "*src0 != *src1", "parent": 296, "children": [298, 301, 302], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 22}}, {"id": 298, "type": "pointer_expression", "text": "*src0", "parent": 297, "children": [299, 300], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 13}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 9}}, {"id": 300, "type": "identifier", "text": "src0", "parent": 298, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 301, "type": "!=", "text": "!=", "parent": 297, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 16}}, {"id": 302, "type": "pointer_expression", "text": "*src1", "parent": 297, "children": [303, 304], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 22}}, {"id": 303, "type": "*", "text": "*", "parent": 302, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 304, "type": "identifier", "text": "src1", "parent": 302, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 22}}, {"id": 305, "type": "return_statement", "text": "return 1;", "parent": 295, "children": [306], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 17}}, {"id": 306, "type": "number_literal", "text": "1", "parent": 305, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 16}}, {"id": 307, "type": "comma_expression", "text": "src0 += 1, src1 += 1", "parent": 253, "children": [308, 312], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 24}}, {"id": 308, "type": "assignment_expression", "text": "src0 += 1", "parent": 307, "children": [309, 310, 311], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 13}}, {"id": 309, "type": "identifier", "text": "src0", "parent": 308, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 310, "type": "+=", "text": "+=", "parent": 308, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 11}}, {"id": 311, "type": "number_literal", "text": "1", "parent": 308, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 13}}, {"id": 312, "type": "assignment_expression", "text": "src1 += 1", "parent": 307, "children": [313, 314, 315], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 24}}, {"id": 313, "type": "identifier", "text": "src1", "parent": 312, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 19}}, {"id": 314, "type": "+=", "text": "+=", "parent": 312, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 22}}, {"id": 315, "type": "number_literal", "text": "1", "parent": 312, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 24}}, {"id": 316, "type": "return_statement", "text": "return compare256_c_static(src0, src1) + 2;", "parent": 253, "children": [317], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 47}}, {"id": 317, "type": "binary_expression", "text": "compare256_c_static(src0, src1) + 2", "parent": 316, "children": [318, 323, 324], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 46}}, {"id": 318, "type": "call_expression", "text": "compare256_c_static(src0, src1)", "parent": 317, "children": [319, 320], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 42}}, {"id": 319, "type": "identifier", "text": "compare256_c_static", "parent": 318, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 30}}, {"id": 320, "type": "argument_list", "text": "(src0, src1)", "parent": 318, "children": [321, 322], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 42}}, {"id": 321, "type": "identifier", "text": "src0", "parent": 320, "children": [], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 35}}, {"id": 322, "type": "identifier", "text": "src1", "parent": 320, "children": [], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 41}}, {"id": 323, "type": "+", "text": "+", "parent": 317, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 44}}, {"id": 324, "type": "number_literal", "text": "2", "parent": 317, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 46}}, {"id": 325, "type": "function_definition", "text": "Z_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return compare258_c_static(src0, src1);\n}", "parent": 0, "children": [326, 327, 329], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 326, "type": "type_identifier", "text": "Z_INTERNAL", "parent": 325, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 10}}, {"id": 327, "type": "ERROR", "text": "uint32_t", "parent": 325, "children": [328], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 19}}, {"id": 328, "type": "identifier", "text": "uint32_t", "parent": 327, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 19}}, {"id": 329, "type": "function_declarator", "text": "compare258_c(const unsigned char *src0, const unsigned char *src1)", "parent": 325, "children": [330, 331], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 86}}, {"id": 330, "type": "identifier", "text": "compare258_c", "parent": 329, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 32}}, {"id": 331, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 329, "children": [332, 339], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 86}}, {"id": 332, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 331, "children": [333, 336], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 58}}, {"id": 333, "type": "sized_type_specifier", "text": "unsigned char", "parent": 332, "children": [334, 335], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 52}}, {"id": 334, "type": "unsigned", "text": "unsigned", "parent": 333, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 47}}, {"id": 335, "type": "primitive_type", "text": "char", "parent": 333, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 52}}, {"id": 336, "type": "pointer_declarator", "text": "*src0", "parent": 332, "children": [337, 338], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 58}}, {"id": 337, "type": "*", "text": "*", "parent": 336, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 54}}, {"id": 338, "type": "identifier", "text": "src0", "parent": 336, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 58}}, {"id": 339, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 331, "children": [340, 343], "start_point": {"row": 55, "column": 60}, "end_point": {"row": 55, "column": 85}}, {"id": 340, "type": "sized_type_specifier", "text": "unsigned char", "parent": 339, "children": [341, 342], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 79}}, {"id": 341, "type": "unsigned", "text": "unsigned", "parent": 340, "children": [], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 74}}, {"id": 342, "type": "primitive_type", "text": "char", "parent": 340, "children": [], "start_point": {"row": 55, "column": 75}, "end_point": {"row": 55, "column": 79}}, {"id": 343, "type": "pointer_declarator", "text": "*src1", "parent": 339, "children": [344, 345], "start_point": {"row": 55, "column": 80}, "end_point": {"row": 55, "column": 85}}, {"id": 344, "type": "*", "text": "*", "parent": 343, "children": [], "start_point": {"row": 55, "column": 80}, "end_point": {"row": 55, "column": 81}}, {"id": 345, "type": "identifier", "text": "src1", "parent": 343, "children": [], "start_point": {"row": 55, "column": 81}, "end_point": {"row": 55, "column": 85}}, {"id": 346, "type": "return_statement", "text": "return compare258_c_static(src0, src1);", "parent": 325, "children": [347], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 43}}, {"id": 347, "type": "call_expression", "text": "compare258_c_static(src0, src1)", "parent": 346, "children": [348, 349], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 42}}, {"id": 348, "type": "identifier", "text": "compare258_c_static", "parent": 347, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 30}}, {"id": 349, "type": "argument_list", "text": "(src0, src1)", "parent": 347, "children": [350, 351], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 42}}, {"id": 350, "type": "identifier", "text": "src0", "parent": 349, "children": [], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 35}}, {"id": 351, "type": "identifier", "text": "src1", "parent": 349, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 41}}, {"id": 352, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_c\n", "parent": 0, "children": [353, 354, 355], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 353, "type": "#define", "text": "#define", "parent": 352, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 354, "type": "identifier", "text": "LONGEST_MATCH", "parent": 352, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 21}}, {"id": 355, "type": "preproc_arg", "text": "longest_match_c", "parent": 352, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 43}}, {"id": 356, "type": "preproc_def", "text": "#define COMPARE256 compare256_c_static\n", "parent": 0, "children": [357, 358, 359], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 357, "type": "#define", "text": "#define", "parent": 356, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 358, "type": "identifier", "text": "COMPARE256", "parent": 356, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 18}}, {"id": 359, "type": "preproc_arg", "text": "compare256_c_static", "parent": 356, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 47}}, {"id": 360, "type": "preproc_def", "text": "#define COMPARE258 compare258_c_static\n", "parent": 0, "children": [361, 362, 363], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 361, "type": "#define", "text": "#define", "parent": 360, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 362, "type": "identifier", "text": "COMPARE258", "parent": 360, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 18}}, {"id": 363, "type": "preproc_arg", "text": "compare258_c_static", "parent": 360, "children": [], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 47}}, {"id": 364, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 0, "children": [365, 366], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 365, "type": "#include", "text": "#include", "parent": 364, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 8}}, {"id": 366, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 364, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 22}}, {"id": 367, "type": "preproc_def", "text": "#define LONGEST_MATCH_SLOW\n", "parent": 0, "children": [368, 369], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 368, "type": "#define", "text": "#define", "parent": 367, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 369, "type": "identifier", "text": "LONGEST_MATCH_SLOW", "parent": 367, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 26}}, {"id": 370, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_slow_c\n", "parent": 0, "children": [371, 372, 373], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 371, "type": "#define", "text": "#define", "parent": 370, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 372, "type": "identifier", "text": "LONGEST_MATCH", "parent": 370, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 21}}, {"id": 373, "type": "preproc_arg", "text": "longest_match_slow_c", "parent": 370, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 48}}, {"id": 374, "type": "preproc_def", "text": "#define COMPARE256 compare256_c_static\n", "parent": 0, "children": [375, 376, 377], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 375, "type": "#define", "text": "#define", "parent": 374, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 376, "type": "identifier", "text": "COMPARE256", "parent": 374, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 18}}, {"id": 377, "type": "preproc_arg", "text": "compare256_c_static", "parent": 374, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 47}}, {"id": 378, "type": "preproc_def", "text": "#define COMPARE258 compare258_c_staticc\n", "parent": 0, "children": [379, 380, 381], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 379, "type": "#define", "text": "#define", "parent": 378, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 380, "type": "identifier", "text": "COMPARE258", "parent": 378, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 18}}, {"id": 381, "type": "preproc_arg", "text": "compare258_c_staticc", "parent": 378, "children": [], "start_point": {"row": 68, "column": 28}, "end_point": {"row": 68, "column": 48}}, {"id": 382, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 0, "children": [383, 384], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 383, "type": "#include", "text": "#include", "parent": 382, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 8}}, {"id": 384, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 382, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 22}}, {"id": 385, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 6}}, {"id": 386, "type": "identifier", "text": "UNALIGNED_OK", "parent": 0, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 19}}, {"id": 387, "type": "storage_class_specifier", "text": "inline", "parent": 0, "children": [388], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 388, "type": "inline", "text": "inline", "parent": 387, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 13}}, {"id": 389, "type": "primitive_type", "text": "uint32_t", "parent": 0, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 22}}, {"id": 390, "type": "function_declarator", "text": "compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)", "parent": 0, "children": [391, 392], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 107}}, {"id": 391, "type": "identifier", "text": "compare256_unaligned_16_static", "parent": 390, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 53}}, {"id": 392, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 390, "children": [393, 400], "start_point": {"row": 74, "column": 53}, "end_point": {"row": 74, "column": 107}}, {"id": 393, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 392, "children": [394, 397], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 79}}, {"id": 394, "type": "sized_type_specifier", "text": "unsigned char", "parent": 393, "children": [395, 396], "start_point": {"row": 74, "column": 60}, "end_point": {"row": 74, "column": 73}}, {"id": 395, "type": "unsigned", "text": "unsigned", "parent": 394, "children": [], "start_point": {"row": 74, "column": 60}, "end_point": {"row": 74, "column": 68}}, {"id": 396, "type": "primitive_type", "text": "char", "parent": 394, "children": [], "start_point": {"row": 74, "column": 69}, "end_point": {"row": 74, "column": 73}}, {"id": 397, "type": "pointer_declarator", "text": "*src0", "parent": 393, "children": [398, 399], "start_point": {"row": 74, "column": 74}, "end_point": {"row": 74, "column": 79}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 74, "column": 74}, "end_point": {"row": 74, "column": 75}}, {"id": 399, "type": "identifier", "text": "src0", "parent": 397, "children": [], "start_point": {"row": 74, "column": 75}, "end_point": {"row": 74, "column": 79}}, {"id": 400, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 392, "children": [401, 404], "start_point": {"row": 74, "column": 81}, "end_point": {"row": 74, "column": 106}}, {"id": 401, "type": "sized_type_specifier", "text": "unsigned char", "parent": 400, "children": [402, 403], "start_point": {"row": 74, "column": 87}, "end_point": {"row": 74, "column": 100}}, {"id": 402, "type": "unsigned", "text": "unsigned", "parent": 401, "children": [], "start_point": {"row": 74, "column": 87}, "end_point": {"row": 74, "column": 95}}, {"id": 403, "type": "primitive_type", "text": "char", "parent": 401, "children": [], "start_point": {"row": 74, "column": 96}, "end_point": {"row": 74, "column": 100}}, {"id": 404, "type": "pointer_declarator", "text": "*src1", "parent": 400, "children": [405, 406], "start_point": {"row": 74, "column": 101}, "end_point": {"row": 74, "column": 106}}, {"id": 405, "type": "*", "text": "*", "parent": 404, "children": [], "start_point": {"row": 74, "column": 101}, "end_point": {"row": 74, "column": 102}}, {"id": 406, "type": "identifier", "text": "src1", "parent": 404, "children": [], "start_point": {"row": 74, "column": 102}, "end_point": {"row": 74, "column": 106}}, {"id": 407, "type": "declaration", "text": "uint32_t len = 0;", "parent": 0, "children": [408, 409], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 21}}, {"id": 408, "type": "primitive_type", "text": "uint32_t", "parent": 407, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 12}}, {"id": 409, "type": "init_declarator", "text": "len = 0", "parent": 407, "children": [410, 411, 412], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 20}}, {"id": 410, "type": "identifier", "text": "len", "parent": 409, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 16}}, {"id": 411, "type": "=", "text": "=", "parent": 409, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 18}}, {"id": 412, "type": "number_literal", "text": "0", "parent": 409, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 20}}, {"id": 413, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 3}}, {"id": 414, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 0, "children": [415, 425, 426], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 60}}, {"id": 415, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 414, "children": [416, 419, 420], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 44}}, {"id": 416, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 415, "children": [417, 418], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 21}}, {"id": 417, "type": "defined", "text": "defined", "parent": 416, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 11}}, {"id": 418, "type": "identifier", "text": "__GNUC__", "parent": 416, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 20}}, {"id": 419, "type": "&&", "text": "&&", "parent": 415, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 24}}, {"id": 420, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 415, "children": [421, 422], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 44}}, {"id": 421, "type": "!", "text": "!", "parent": 420, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 26}}, {"id": 422, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 420, "children": [423, 424], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 44}}, {"id": 423, "type": "defined", "text": "defined", "parent": 422, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 33}}, {"id": 424, "type": "identifier", "text": "__clang__", "parent": 422, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 43}}, {"id": 425, "type": "&&", "text": "&&", "parent": 414, "children": [], "start_point": {"row": 78, "column": 45}, "end_point": {"row": 78, "column": 47}}, {"id": 426, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 414, "children": [427, 428, 429], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 60}}, {"id": 427, "type": "identifier", "text": "__GNUC__", "parent": 426, "children": [], "start_point": {"row": 78, "column": 48}, "end_point": {"row": 78, "column": 56}}, {"id": 428, "type": "<", "text": "<", "parent": 426, "children": [], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 58}}, {"id": 429, "type": "number_literal", "text": "8", "parent": 426, "children": [], "start_point": {"row": 78, "column": 59}, "end_point": {"row": 78, "column": 60}}, {"id": 430, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 78, "column": 60}, "end_point": {"row": 79, "column": 0}}, {"id": 431, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 0, "children": [432, 451, 453], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 83, "column": 42}}, {"id": 432, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 431, "children": [433], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 51}}, {"id": 433, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 432, "children": [434, 442, 443], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 50}}, {"id": 434, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 433, "children": [435, 436], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 29}}, {"id": 435, "type": "*", "text": "*", "parent": 434, "children": [], "start_point": {"row": 79, "column": 12}, "end_point": {"row": 79, "column": 13}}, {"id": 436, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 434, "children": [437, 441], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 29}}, {"id": 437, "type": "type_descriptor", "text": "uint16_t *", "parent": 436, "children": [438, 439], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 24}}, {"id": 438, "type": "primitive_type", "text": "uint16_t", "parent": 437, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 22}}, {"id": 439, "type": "abstract_pointer_declarator", "text": "*", "parent": 437, "children": [440], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 24}}, {"id": 440, "type": "*", "text": "*", "parent": 439, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 24}}, {"id": 441, "type": "identifier", "text": "src0", "parent": 436, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 29}}, {"id": 442, "type": "!=", "text": "!=", "parent": 433, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 32}}, {"id": 443, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 433, "children": [444, 445], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 50}}, {"id": 444, "type": "*", "text": "*", "parent": 443, "children": [], "start_point": {"row": 79, "column": 33}, "end_point": {"row": 79, "column": 34}}, {"id": 445, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 443, "children": [446, 450], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 50}}, {"id": 446, "type": "type_descriptor", "text": "uint16_t *", "parent": 445, "children": [447, 448], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 45}}, {"id": 447, "type": "primitive_type", "text": "uint16_t", "parent": 446, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 43}}, {"id": 448, "type": "abstract_pointer_declarator", "text": "*", "parent": 446, "children": [449], "start_point": {"row": 79, "column": 44}, "end_point": {"row": 79, "column": 45}}, {"id": 449, "type": "*", "text": "*", "parent": 448, "children": [], "start_point": {"row": 79, "column": 44}, "end_point": {"row": 79, "column": 45}}, {"id": 450, "type": "identifier", "text": "src1", "parent": 445, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 50}}, {"id": 451, "type": "ERROR", "text": "#else", "parent": 431, "children": [452], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 5}}, {"id": 452, "type": "preproc_directive", "text": "#else", "parent": 451, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 5}}, {"id": 453, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 431, "children": [454, 461, 463], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 83, "column": 42}}, {"id": 454, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 453, "children": [455], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 34}}, {"id": 455, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 454, "children": [456, 457], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 33}}, {"id": 456, "type": "identifier", "text": "memcmp", "parent": 455, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 18}}, {"id": 457, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 455, "children": [458, 459, 460], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 33}}, {"id": 458, "type": "identifier", "text": "src0", "parent": 457, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 23}}, {"id": 459, "type": "identifier", "text": "src1", "parent": 457, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 29}}, {"id": 460, "type": "number_literal", "text": "2", "parent": 457, "children": [], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 32}}, {"id": 461, "type": "ERROR", "text": "#endif", "parent": 453, "children": [462], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 462, "type": "preproc_directive", "text": "#endif", "parent": 461, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 463, "type": "return_statement", "text": "return len + (*src0 == *src1);", "parent": 453, "children": [464], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 42}}, {"id": 464, "type": "binary_expression", "text": "len + (*src0 == *src1)", "parent": 463, "children": [465, 466, 467], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 41}}, {"id": 465, "type": "identifier", "text": "len", "parent": 464, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 22}}, {"id": 466, "type": "+", "text": "+", "parent": 464, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 24}}, {"id": 467, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 464, "children": [468], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 41}}, {"id": 468, "type": "binary_expression", "text": "*src0 == *src1", "parent": 467, "children": [469, 472, 473], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 40}}, {"id": 469, "type": "pointer_expression", "text": "*src0", "parent": 468, "children": [470, 471], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 31}}, {"id": 470, "type": "*", "text": "*", "parent": 469, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 27}}, {"id": 471, "type": "identifier", "text": "src0", "parent": 469, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 31}}, {"id": 472, "type": "==", "text": "==", "parent": 468, "children": [], "start_point": {"row": 83, "column": 32}, "end_point": {"row": 83, "column": 34}}, {"id": 473, "type": "pointer_expression", "text": "*src1", "parent": 468, "children": [474, 475], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 40}}, {"id": 474, "type": "*", "text": "*", "parent": 473, "children": [], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 36}}, {"id": 475, "type": "identifier", "text": "src1", "parent": 473, "children": [], "start_point": {"row": 83, "column": 36}, "end_point": {"row": 83, "column": 40}}, {"id": 476, "type": "comma_expression", "text": "src0 += 2, src1 += 2, len += 2", "parent": 0, "children": [477, 481], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 38}}, {"id": 477, "type": "assignment_expression", "text": "src0 += 2", "parent": 476, "children": [478, 479, 480], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 17}}, {"id": 478, "type": "identifier", "text": "src0", "parent": 477, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 479, "type": "+=", "text": "+=", "parent": 477, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 15}}, {"id": 480, "type": "number_literal", "text": "2", "parent": 477, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 17}}, {"id": 481, "type": "comma_expression", "text": "src1 += 2, len += 2", "parent": 476, "children": [482, 486], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 38}}, {"id": 482, "type": "assignment_expression", "text": "src1 += 2", "parent": 481, "children": [483, 484, 485], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 28}}, {"id": 483, "type": "identifier", "text": "src1", "parent": 482, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 23}}, {"id": 484, "type": "+=", "text": "+=", "parent": 482, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 26}}, {"id": 485, "type": "number_literal", "text": "2", "parent": 482, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 28}}, {"id": 486, "type": "assignment_expression", "text": "len += 2", "parent": 481, "children": [487, 488, 489], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 38}}, {"id": 487, "type": "identifier", "text": "len", "parent": 486, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 33}}, {"id": 488, "type": "+=", "text": "+=", "parent": 486, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 36}}, {"id": 489, "type": "number_literal", "text": "2", "parent": 486, "children": [], "start_point": {"row": 84, "column": 37}, "end_point": {"row": 84, "column": 38}}, {"id": 490, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 3}}, {"id": 491, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 0, "children": [492, 502, 503], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 60}}, {"id": 492, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 491, "children": [493, 496, 497], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 44}}, {"id": 493, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 492, "children": [494, 495], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 21}}, {"id": 494, "type": "defined", "text": "defined", "parent": 493, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 11}}, {"id": 495, "type": "identifier", "text": "__GNUC__", "parent": 493, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 20}}, {"id": 496, "type": "&&", "text": "&&", "parent": 492, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 24}}, {"id": 497, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 492, "children": [498, 499], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 44}}, {"id": 498, "type": "!", "text": "!", "parent": 497, "children": [], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 26}}, {"id": 499, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 497, "children": [500, 501], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 44}}, {"id": 500, "type": "defined", "text": "defined", "parent": 499, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 33}}, {"id": 501, "type": "identifier", "text": "__clang__", "parent": 499, "children": [], "start_point": {"row": 85, "column": 34}, "end_point": {"row": 85, "column": 43}}, {"id": 502, "type": "&&", "text": "&&", "parent": 491, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 47}}, {"id": 503, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 491, "children": [504, 505, 506], "start_point": {"row": 85, "column": 48}, "end_point": {"row": 85, "column": 60}}, {"id": 504, "type": "identifier", "text": "__GNUC__", "parent": 503, "children": [], "start_point": {"row": 85, "column": 48}, "end_point": {"row": 85, "column": 56}}, {"id": 505, "type": "<", "text": "<", "parent": 503, "children": [], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 58}}, {"id": 506, "type": "number_literal", "text": "8", "parent": 503, "children": [], "start_point": {"row": 85, "column": 59}, "end_point": {"row": 85, "column": 60}}, {"id": 507, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 85, "column": 60}, "end_point": {"row": 86, "column": 0}}, {"id": 508, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 0, "children": [509, 528, 530], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 90, "column": 42}}, {"id": 509, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 508, "children": [510], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 51}}, {"id": 510, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 509, "children": [511, 519, 520], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 50}}, {"id": 511, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 510, "children": [512, 513], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 29}}, {"id": 512, "type": "*", "text": "*", "parent": 511, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 13}}, {"id": 513, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 511, "children": [514, 518], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 29}}, {"id": 514, "type": "type_descriptor", "text": "uint16_t *", "parent": 513, "children": [515, 516], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 24}}, {"id": 515, "type": "primitive_type", "text": "uint16_t", "parent": 514, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 22}}, {"id": 516, "type": "abstract_pointer_declarator", "text": "*", "parent": 514, "children": [517], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 24}}, {"id": 517, "type": "*", "text": "*", "parent": 516, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 24}}, {"id": 518, "type": "identifier", "text": "src0", "parent": 513, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 29}}, {"id": 519, "type": "!=", "text": "!=", "parent": 510, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 32}}, {"id": 520, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 510, "children": [521, 522], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 50}}, {"id": 521, "type": "*", "text": "*", "parent": 520, "children": [], "start_point": {"row": 86, "column": 33}, "end_point": {"row": 86, "column": 34}}, {"id": 522, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 520, "children": [523, 527], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 50}}, {"id": 523, "type": "type_descriptor", "text": "uint16_t *", "parent": 522, "children": [524, 525], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 45}}, {"id": 524, "type": "primitive_type", "text": "uint16_t", "parent": 523, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 43}}, {"id": 525, "type": "abstract_pointer_declarator", "text": "*", "parent": 523, "children": [526], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 45}}, {"id": 526, "type": "*", "text": "*", "parent": 525, "children": [], "start_point": {"row": 86, "column": 44}, "end_point": {"row": 86, "column": 45}}, {"id": 527, "type": "identifier", "text": "src1", "parent": 522, "children": [], "start_point": {"row": 86, "column": 46}, "end_point": {"row": 86, "column": 50}}, {"id": 528, "type": "ERROR", "text": "#else", "parent": 508, "children": [529], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 5}}, {"id": 529, "type": "preproc_directive", "text": "#else", "parent": 528, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 5}}, {"id": 530, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 508, "children": [531, 538, 540], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 90, "column": 42}}, {"id": 531, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 530, "children": [532], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 34}}, {"id": 532, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 531, "children": [533, 534], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 33}}, {"id": 533, "type": "identifier", "text": "memcmp", "parent": 532, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 18}}, {"id": 534, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 532, "children": [535, 536, 537], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 33}}, {"id": 535, "type": "identifier", "text": "src0", "parent": 534, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 23}}, {"id": 536, "type": "identifier", "text": "src1", "parent": 534, "children": [], "start_point": {"row": 88, "column": 25}, "end_point": {"row": 88, "column": 29}}, {"id": 537, "type": "number_literal", "text": "2", "parent": 534, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 32}}, {"id": 538, "type": "ERROR", "text": "#endif", "parent": 530, "children": [539], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 539, "type": "preproc_directive", "text": "#endif", "parent": 538, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 540, "type": "return_statement", "text": "return len + (*src0 == *src1);", "parent": 530, "children": [541], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 42}}, {"id": 541, "type": "binary_expression", "text": "len + (*src0 == *src1)", "parent": 540, "children": [542, 543, 544], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 41}}, {"id": 542, "type": "identifier", "text": "len", "parent": 541, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 22}}, {"id": 543, "type": "+", "text": "+", "parent": 541, "children": [], "start_point": {"row": 90, "column": 23}, "end_point": {"row": 90, "column": 24}}, {"id": 544, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 541, "children": [545], "start_point": {"row": 90, "column": 25}, "end_point": {"row": 90, "column": 41}}, {"id": 545, "type": "binary_expression", "text": "*src0 == *src1", "parent": 544, "children": [546, 549, 550], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 40}}, {"id": 546, "type": "pointer_expression", "text": "*src0", "parent": 545, "children": [547, 548], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 31}}, {"id": 547, "type": "*", "text": "*", "parent": 546, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 27}}, {"id": 548, "type": "identifier", "text": "src0", "parent": 546, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 31}}, {"id": 549, "type": "==", "text": "==", "parent": 545, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 34}}, {"id": 550, "type": "pointer_expression", "text": "*src1", "parent": 545, "children": [551, 552], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 40}}, {"id": 551, "type": "*", "text": "*", "parent": 550, "children": [], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 36}}, {"id": 552, "type": "identifier", "text": "src1", "parent": 550, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 40}}, {"id": 553, "type": "comma_expression", "text": "src0 += 2, src1 += 2, len += 2", "parent": 0, "children": [554, 558], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 38}}, {"id": 554, "type": "assignment_expression", "text": "src0 += 2", "parent": 553, "children": [555, 556, 557], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 17}}, {"id": 555, "type": "identifier", "text": "src0", "parent": 554, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 12}}, {"id": 556, "type": "+=", "text": "+=", "parent": 554, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 15}}, {"id": 557, "type": "number_literal", "text": "2", "parent": 554, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 17}}, {"id": 558, "type": "comma_expression", "text": "src1 += 2, len += 2", "parent": 553, "children": [559, 563], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 38}}, {"id": 559, "type": "assignment_expression", "text": "src1 += 2", "parent": 558, "children": [560, 561, 562], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 28}}, {"id": 560, "type": "identifier", "text": "src1", "parent": 559, "children": [], "start_point": {"row": 91, "column": 19}, "end_point": {"row": 91, "column": 23}}, {"id": 561, "type": "+=", "text": "+=", "parent": 559, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 26}}, {"id": 562, "type": "number_literal", "text": "2", "parent": 559, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 28}}, {"id": 563, "type": "assignment_expression", "text": "len += 2", "parent": 558, "children": [564, 565, 566], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 38}}, {"id": 564, "type": "identifier", "text": "len", "parent": 563, "children": [], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 33}}, {"id": 565, "type": "+=", "text": "+=", "parent": 563, "children": [], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 36}}, {"id": 566, "type": "number_literal", "text": "2", "parent": 563, "children": [], "start_point": {"row": 91, "column": 37}, "end_point": {"row": 91, "column": 38}}, {"id": 567, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 3}}, {"id": 568, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 0, "children": [569, 579, 580], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 60}}, {"id": 569, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 568, "children": [570, 573, 574], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 44}}, {"id": 570, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 569, "children": [571, 572], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 21}}, {"id": 571, "type": "defined", "text": "defined", "parent": 570, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 11}}, {"id": 572, "type": "identifier", "text": "__GNUC__", "parent": 570, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 20}}, {"id": 573, "type": "&&", "text": "&&", "parent": 569, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 24}}, {"id": 574, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 569, "children": [575, 576], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 44}}, {"id": 575, "type": "!", "text": "!", "parent": 574, "children": [], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 26}}, {"id": 576, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 574, "children": [577, 578], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 44}}, {"id": 577, "type": "defined", "text": "defined", "parent": 576, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 33}}, {"id": 578, "type": "identifier", "text": "__clang__", "parent": 576, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 43}}, {"id": 579, "type": "&&", "text": "&&", "parent": 568, "children": [], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 47}}, {"id": 580, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 568, "children": [581, 582, 583], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 60}}, {"id": 581, "type": "identifier", "text": "__GNUC__", "parent": 580, "children": [], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 56}}, {"id": 582, "type": "<", "text": "<", "parent": 580, "children": [], "start_point": {"row": 92, "column": 57}, "end_point": {"row": 92, "column": 58}}, {"id": 583, "type": "number_literal", "text": "8", "parent": 580, "children": [], "start_point": {"row": 92, "column": 59}, "end_point": {"row": 92, "column": 60}}, {"id": 584, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 92, "column": 60}, "end_point": {"row": 93, "column": 0}}, {"id": 585, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 0, "children": [586, 605, 607], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 97, "column": 42}}, {"id": 586, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 585, "children": [587], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 51}}, {"id": 587, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 586, "children": [588, 596, 597], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 50}}, {"id": 588, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 587, "children": [589, 590], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 29}}, {"id": 589, "type": "*", "text": "*", "parent": 588, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 13}}, {"id": 590, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 588, "children": [591, 595], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 29}}, {"id": 591, "type": "type_descriptor", "text": "uint16_t *", "parent": 590, "children": [592, 593], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 24}}, {"id": 592, "type": "primitive_type", "text": "uint16_t", "parent": 591, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 22}}, {"id": 593, "type": "abstract_pointer_declarator", "text": "*", "parent": 591, "children": [594], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 24}}, {"id": 594, "type": "*", "text": "*", "parent": 593, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 24}}, {"id": 595, "type": "identifier", "text": "src0", "parent": 590, "children": [], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 29}}, {"id": 596, "type": "!=", "text": "!=", "parent": 587, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 32}}, {"id": 597, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 587, "children": [598, 599], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 50}}, {"id": 598, "type": "*", "text": "*", "parent": 597, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 34}}, {"id": 599, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 597, "children": [600, 604], "start_point": {"row": 93, "column": 34}, "end_point": {"row": 93, "column": 50}}, {"id": 600, "type": "type_descriptor", "text": "uint16_t *", "parent": 599, "children": [601, 602], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 45}}, {"id": 601, "type": "primitive_type", "text": "uint16_t", "parent": 600, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 43}}, {"id": 602, "type": "abstract_pointer_declarator", "text": "*", "parent": 600, "children": [603], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 45}}, {"id": 603, "type": "*", "text": "*", "parent": 602, "children": [], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 45}}, {"id": 604, "type": "identifier", "text": "src1", "parent": 599, "children": [], "start_point": {"row": 93, "column": 46}, "end_point": {"row": 93, "column": 50}}, {"id": 605, "type": "ERROR", "text": "#else", "parent": 585, "children": [606], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 5}}, {"id": 606, "type": "preproc_directive", "text": "#else", "parent": 605, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 5}}, {"id": 607, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 585, "children": [608, 615, 617], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 97, "column": 42}}, {"id": 608, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 607, "children": [609], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 34}}, {"id": 609, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 608, "children": [610, 611], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 33}}, {"id": 610, "type": "identifier", "text": "memcmp", "parent": 609, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 18}}, {"id": 611, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 609, "children": [612, 613, 614], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 33}}, {"id": 612, "type": "identifier", "text": "src0", "parent": 611, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 23}}, {"id": 613, "type": "identifier", "text": "src1", "parent": 611, "children": [], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 29}}, {"id": 614, "type": "number_literal", "text": "2", "parent": 611, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 32}}, {"id": 615, "type": "ERROR", "text": "#endif", "parent": 607, "children": [616], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 616, "type": "preproc_directive", "text": "#endif", "parent": 615, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 617, "type": "return_statement", "text": "return len + (*src0 == *src1);", "parent": 607, "children": [618], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 42}}, {"id": 618, "type": "binary_expression", "text": "len + (*src0 == *src1)", "parent": 617, "children": [619, 620, 621], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 41}}, {"id": 619, "type": "identifier", "text": "len", "parent": 618, "children": [], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 22}}, {"id": 620, "type": "+", "text": "+", "parent": 618, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 24}}, {"id": 621, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 618, "children": [622], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 41}}, {"id": 622, "type": "binary_expression", "text": "*src0 == *src1", "parent": 621, "children": [623, 626, 627], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 40}}, {"id": 623, "type": "pointer_expression", "text": "*src0", "parent": 622, "children": [624, 625], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 31}}, {"id": 624, "type": "*", "text": "*", "parent": 623, "children": [], "start_point": {"row": 97, "column": 26}, "end_point": {"row": 97, "column": 27}}, {"id": 625, "type": "identifier", "text": "src0", "parent": 623, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 31}}, {"id": 626, "type": "==", "text": "==", "parent": 622, "children": [], "start_point": {"row": 97, "column": 32}, "end_point": {"row": 97, "column": 34}}, {"id": 627, "type": "pointer_expression", "text": "*src1", "parent": 622, "children": [628, 629], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 40}}, {"id": 628, "type": "*", "text": "*", "parent": 627, "children": [], "start_point": {"row": 97, "column": 35}, "end_point": {"row": 97, "column": 36}}, {"id": 629, "type": "identifier", "text": "src1", "parent": 627, "children": [], "start_point": {"row": 97, "column": 36}, "end_point": {"row": 97, "column": 40}}, {"id": 630, "type": "comma_expression", "text": "src0 += 2, src1 += 2, len += 2", "parent": 0, "children": [631, 635], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 38}}, {"id": 631, "type": "assignment_expression", "text": "src0 += 2", "parent": 630, "children": [632, 633, 634], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 17}}, {"id": 632, "type": "identifier", "text": "src0", "parent": 631, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 12}}, {"id": 633, "type": "+=", "text": "+=", "parent": 631, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 15}}, {"id": 634, "type": "number_literal", "text": "2", "parent": 631, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 17}}, {"id": 635, "type": "comma_expression", "text": "src1 += 2, len += 2", "parent": 630, "children": [636, 640], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 38}}, {"id": 636, "type": "assignment_expression", "text": "src1 += 2", "parent": 635, "children": [637, 638, 639], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 28}}, {"id": 637, "type": "identifier", "text": "src1", "parent": 636, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 23}}, {"id": 638, "type": "+=", "text": "+=", "parent": 636, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 26}}, {"id": 639, "type": "number_literal", "text": "2", "parent": 636, "children": [], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 28}}, {"id": 640, "type": "assignment_expression", "text": "len += 2", "parent": 635, "children": [641, 642, 643], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 38}}, {"id": 641, "type": "identifier", "text": "len", "parent": 640, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 33}}, {"id": 642, "type": "+=", "text": "+=", "parent": 640, "children": [], "start_point": {"row": 98, "column": 34}, "end_point": {"row": 98, "column": 36}}, {"id": 643, "type": "number_literal", "text": "2", "parent": 640, "children": [], "start_point": {"row": 98, "column": 37}, "end_point": {"row": 98, "column": 38}}, {"id": 644, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#endif", "parent": 0, "children": [645, 646, 662, 663, 722, 728, 730, 826, 853, 857, 861, 865, 868, 871, 875, 879, 883, 886, 1190, 1505], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 253, "column": 6}}, {"id": 645, "type": "#if", "text": "#if", "parent": 644, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 3}}, {"id": 646, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 644, "children": [647, 657, 658], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 60}}, {"id": 647, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 646, "children": [648, 651, 652], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 44}}, {"id": 648, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 647, "children": [649, 650], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 21}}, {"id": 649, "type": "defined", "text": "defined", "parent": 648, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 11}}, {"id": 650, "type": "identifier", "text": "__GNUC__", "parent": 648, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 20}}, {"id": 651, "type": "&&", "text": "&&", "parent": 647, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 24}}, {"id": 652, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 647, "children": [653, 654], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 44}}, {"id": 653, "type": "!", "text": "!", "parent": 652, "children": [], "start_point": {"row": 99, "column": 25}, "end_point": {"row": 99, "column": 26}}, {"id": 654, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 652, "children": [655, 656], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 44}}, {"id": 655, "type": "defined", "text": "defined", "parent": 654, "children": [], "start_point": {"row": 99, "column": 26}, "end_point": {"row": 99, "column": 33}}, {"id": 656, "type": "identifier", "text": "__clang__", "parent": 654, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 43}}, {"id": 657, "type": "&&", "text": "&&", "parent": 646, "children": [], "start_point": {"row": 99, "column": 45}, "end_point": {"row": 99, "column": 47}}, {"id": 658, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 646, "children": [659, 660, 661], "start_point": {"row": 99, "column": 48}, "end_point": {"row": 99, "column": 60}}, {"id": 659, "type": "identifier", "text": "__GNUC__", "parent": 658, "children": [], "start_point": {"row": 99, "column": 48}, "end_point": {"row": 99, "column": 56}}, {"id": 660, "type": "<", "text": "<", "parent": 658, "children": [], "start_point": {"row": 99, "column": 57}, "end_point": {"row": 99, "column": 58}}, {"id": 661, "type": "number_literal", "text": "8", "parent": 658, "children": [], "start_point": {"row": 99, "column": 59}, "end_point": {"row": 99, "column": 60}}, {"id": 662, "type": "\n", "text": "\n", "parent": 644, "children": [], "start_point": {"row": 99, "column": 60}, "end_point": {"row": 100, "column": 0}}, {"id": 663, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 644, "children": [664, 683, 685], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 104, "column": 42}}, {"id": 664, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 663, "children": [665], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 51}}, {"id": 665, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 664, "children": [666, 674, 675], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 50}}, {"id": 666, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 665, "children": [667, 668], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 29}}, {"id": 667, "type": "*", "text": "*", "parent": 666, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 13}}, {"id": 668, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 666, "children": [669, 673], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 29}}, {"id": 669, "type": "type_descriptor", "text": "uint16_t *", "parent": 668, "children": [670, 671], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 24}}, {"id": 670, "type": "primitive_type", "text": "uint16_t", "parent": 669, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 22}}, {"id": 671, "type": "abstract_pointer_declarator", "text": "*", "parent": 669, "children": [672], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 24}}, {"id": 672, "type": "*", "text": "*", "parent": 671, "children": [], "start_point": {"row": 100, "column": 23}, "end_point": {"row": 100, "column": 24}}, {"id": 673, "type": "identifier", "text": "src0", "parent": 668, "children": [], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 29}}, {"id": 674, "type": "!=", "text": "!=", "parent": 665, "children": [], "start_point": {"row": 100, "column": 30}, "end_point": {"row": 100, "column": 32}}, {"id": 675, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 665, "children": [676, 677], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 50}}, {"id": 676, "type": "*", "text": "*", "parent": 675, "children": [], "start_point": {"row": 100, "column": 33}, "end_point": {"row": 100, "column": 34}}, {"id": 677, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 675, "children": [678, 682], "start_point": {"row": 100, "column": 34}, "end_point": {"row": 100, "column": 50}}, {"id": 678, "type": "type_descriptor", "text": "uint16_t *", "parent": 677, "children": [679, 680], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 45}}, {"id": 679, "type": "primitive_type", "text": "uint16_t", "parent": 678, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 43}}, {"id": 680, "type": "abstract_pointer_declarator", "text": "*", "parent": 678, "children": [681], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 45}}, {"id": 681, "type": "*", "text": "*", "parent": 680, "children": [], "start_point": {"row": 100, "column": 44}, "end_point": {"row": 100, "column": 45}}, {"id": 682, "type": "identifier", "text": "src1", "parent": 677, "children": [], "start_point": {"row": 100, "column": 46}, "end_point": {"row": 100, "column": 50}}, {"id": 683, "type": "ERROR", "text": "#else", "parent": 663, "children": [684], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 5}}, {"id": 684, "type": "preproc_directive", "text": "#else", "parent": 683, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 5}}, {"id": 685, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);", "parent": 663, "children": [686, 693, 695], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 104, "column": 42}}, {"id": 686, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 685, "children": [687], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 34}}, {"id": 687, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 686, "children": [688, 689], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 33}}, {"id": 688, "type": "identifier", "text": "memcmp", "parent": 687, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 18}}, {"id": 689, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 687, "children": [690, 691, 692], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 33}}, {"id": 690, "type": "identifier", "text": "src0", "parent": 689, "children": [], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 23}}, {"id": 691, "type": "identifier", "text": "src1", "parent": 689, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 29}}, {"id": 692, "type": "number_literal", "text": "2", "parent": 689, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 32}}, {"id": 693, "type": "ERROR", "text": "#endif", "parent": 685, "children": [694], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 694, "type": "preproc_directive", "text": "#endif", "parent": 693, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 695, "type": "return_statement", "text": "return len + (*src0 == *src1);", "parent": 685, "children": [696], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 42}}, {"id": 696, "type": "binary_expression", "text": "len + (*src0 == *src1)", "parent": 695, "children": [697, 698, 699], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 41}}, {"id": 697, "type": "identifier", "text": "len", "parent": 696, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 22}}, {"id": 698, "type": "+", "text": "+", "parent": 696, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 24}}, {"id": 699, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 696, "children": [700], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 41}}, {"id": 700, "type": "binary_expression", "text": "*src0 == *src1", "parent": 699, "children": [701, 704, 705], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 40}}, {"id": 701, "type": "pointer_expression", "text": "*src0", "parent": 700, "children": [702, 703], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 31}}, {"id": 702, "type": "*", "text": "*", "parent": 701, "children": [], "start_point": {"row": 104, "column": 26}, "end_point": {"row": 104, "column": 27}}, {"id": 703, "type": "identifier", "text": "src0", "parent": 701, "children": [], "start_point": {"row": 104, "column": 27}, "end_point": {"row": 104, "column": 31}}, {"id": 704, "type": "==", "text": "==", "parent": 700, "children": [], "start_point": {"row": 104, "column": 32}, "end_point": {"row": 104, "column": 34}}, {"id": 705, "type": "pointer_expression", "text": "*src1", "parent": 700, "children": [706, 707], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 40}}, {"id": 706, "type": "*", "text": "*", "parent": 705, "children": [], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 36}}, {"id": 707, "type": "identifier", "text": "src1", "parent": 705, "children": [], "start_point": {"row": 104, "column": 36}, "end_point": {"row": 104, "column": 40}}, {"id": 708, "type": "comma_expression", "text": "src0 += 2, src1 += 2, len += 2", "parent": 644, "children": [709, 713], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 38}}, {"id": 709, "type": "assignment_expression", "text": "src0 += 2", "parent": 708, "children": [710, 711, 712], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 17}}, {"id": 710, "type": "identifier", "text": "src0", "parent": 709, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 12}}, {"id": 711, "type": "+=", "text": "+=", "parent": 709, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 15}}, {"id": 712, "type": "number_literal", "text": "2", "parent": 709, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 17}}, {"id": 713, "type": "comma_expression", "text": "src1 += 2, len += 2", "parent": 708, "children": [714, 718], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 38}}, {"id": 714, "type": "assignment_expression", "text": "src1 += 2", "parent": 713, "children": [715, 716, 717], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 28}}, {"id": 715, "type": "identifier", "text": "src1", "parent": 714, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 23}}, {"id": 716, "type": "+=", "text": "+=", "parent": 714, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 26}}, {"id": 717, "type": "number_literal", "text": "2", "parent": 714, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 28}}, {"id": 718, "type": "assignment_expression", "text": "len += 2", "parent": 713, "children": [719, 720, 721], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 38}}, {"id": 719, "type": "identifier", "text": "len", "parent": 718, "children": [], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 33}}, {"id": 720, "type": "+=", "text": "+=", "parent": 718, "children": [], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 36}}, {"id": 721, "type": "number_literal", "text": "2", "parent": 718, "children": [], "start_point": {"row": 105, "column": 37}, "end_point": {"row": 105, "column": 38}}, {"id": 722, "type": "while_statement", "text": "while (len < 256);", "parent": 644, "children": [723], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 24}}, {"id": 723, "type": "parenthesized_expression", "text": "(len < 256)", "parent": 722, "children": [724], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 23}}, {"id": 724, "type": "binary_expression", "text": "len < 256", "parent": 723, "children": [725, 726, 727], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 22}}, {"id": 725, "type": "identifier", "text": "len", "parent": 724, "children": [], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 16}}, {"id": 726, "type": "<", "text": "<", "parent": 724, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 727, "type": "number_literal", "text": "256", "parent": 724, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 22}}, {"id": 728, "type": "return_statement", "text": "return 256;", "parent": 644, "children": [729], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 15}}, {"id": 729, "type": "number_literal", "text": "256", "parent": 728, "children": [], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 14}}, {"id": 730, "type": "function_definition", "text": "static inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}", "parent": 644, "children": [731, 733, 734], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 731, "type": "storage_class_specifier", "text": "inline", "parent": 730, "children": [732], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 732, "type": "inline", "text": "inline", "parent": 731, "children": [], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 13}}, {"id": 733, "type": "primitive_type", "text": "uint32_t", "parent": 730, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 22}}, {"id": 734, "type": "function_declarator", "text": "compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)", "parent": 730, "children": [735, 736], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 107}}, {"id": 735, "type": "identifier", "text": "compare258_unaligned_16_static", "parent": 734, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 53}}, {"id": 736, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 734, "children": [737, 744], "start_point": {"row": 111, "column": 53}, "end_point": {"row": 111, "column": 107}}, {"id": 737, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 736, "children": [738, 741], "start_point": {"row": 111, "column": 54}, "end_point": {"row": 111, "column": 79}}, {"id": 738, "type": "sized_type_specifier", "text": "unsigned char", "parent": 737, "children": [739, 740], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 73}}, {"id": 739, "type": "unsigned", "text": "unsigned", "parent": 738, "children": [], "start_point": {"row": 111, "column": 60}, "end_point": {"row": 111, "column": 68}}, {"id": 740, "type": "primitive_type", "text": "char", "parent": 738, "children": [], "start_point": {"row": 111, "column": 69}, "end_point": {"row": 111, "column": 73}}, {"id": 741, "type": "pointer_declarator", "text": "*src0", "parent": 737, "children": [742, 743], "start_point": {"row": 111, "column": 74}, "end_point": {"row": 111, "column": 79}}, {"id": 742, "type": "*", "text": "*", "parent": 741, "children": [], "start_point": {"row": 111, "column": 74}, "end_point": {"row": 111, "column": 75}}, {"id": 743, "type": "identifier", "text": "src0", "parent": 741, "children": [], "start_point": {"row": 111, "column": 75}, "end_point": {"row": 111, "column": 79}}, {"id": 744, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 736, "children": [745, 748], "start_point": {"row": 111, "column": 81}, "end_point": {"row": 111, "column": 106}}, {"id": 745, "type": "sized_type_specifier", "text": "unsigned char", "parent": 744, "children": [746, 747], "start_point": {"row": 111, "column": 87}, "end_point": {"row": 111, "column": 100}}, {"id": 746, "type": "unsigned", "text": "unsigned", "parent": 745, "children": [], "start_point": {"row": 111, "column": 87}, "end_point": {"row": 111, "column": 95}}, {"id": 747, "type": "primitive_type", "text": "char", "parent": 745, "children": [], "start_point": {"row": 111, "column": 96}, "end_point": {"row": 111, "column": 100}}, {"id": 748, "type": "pointer_declarator", "text": "*src1", "parent": 744, "children": [749, 750], "start_point": {"row": 111, "column": 101}, "end_point": {"row": 111, "column": 106}}, {"id": 749, "type": "*", "text": "*", "parent": 748, "children": [], "start_point": {"row": 111, "column": 101}, "end_point": {"row": 111, "column": 102}}, {"id": 750, "type": "identifier", "text": "src1", "parent": 748, "children": [], "start_point": {"row": 111, "column": 102}, "end_point": {"row": 111, "column": 106}}, {"id": 751, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif", "parent": 730, "children": [752, 753, 769, 770, 800], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 752, "type": "#if", "text": "#if", "parent": 751, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 3}}, {"id": 753, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 751, "children": [754, 764, 765], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 60}}, {"id": 754, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 753, "children": [755, 758, 759], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 44}}, {"id": 755, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 754, "children": [756, 757], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 21}}, {"id": 756, "type": "defined", "text": "defined", "parent": 755, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 11}}, {"id": 757, "type": "identifier", "text": "__GNUC__", "parent": 755, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 20}}, {"id": 758, "type": "&&", "text": "&&", "parent": 754, "children": [], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 24}}, {"id": 759, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 754, "children": [760, 761], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 44}}, {"id": 760, "type": "!", "text": "!", "parent": 759, "children": [], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 26}}, {"id": 761, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 759, "children": [762, 763], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 44}}, {"id": 762, "type": "defined", "text": "defined", "parent": 761, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 33}}, {"id": 763, "type": "identifier", "text": "__clang__", "parent": 761, "children": [], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 43}}, {"id": 764, "type": "&&", "text": "&&", "parent": 753, "children": [], "start_point": {"row": 112, "column": 45}, "end_point": {"row": 112, "column": 47}}, {"id": 765, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 753, "children": [766, 767, 768], "start_point": {"row": 112, "column": 48}, "end_point": {"row": 112, "column": 60}}, {"id": 766, "type": "identifier", "text": "__GNUC__", "parent": 765, "children": [], "start_point": {"row": 112, "column": 48}, "end_point": {"row": 112, "column": 56}}, {"id": 767, "type": "<", "text": "<", "parent": 765, "children": [], "start_point": {"row": 112, "column": 57}, "end_point": {"row": 112, "column": 58}}, {"id": 768, "type": "number_literal", "text": "8", "parent": 765, "children": [], "start_point": {"row": 112, "column": 59}, "end_point": {"row": 112, "column": 60}}, {"id": 769, "type": "\n", "text": "\n", "parent": 751, "children": [], "start_point": {"row": 112, "column": 60}, "end_point": {"row": 113, "column": 0}}, {"id": 770, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))", "parent": 751, "children": [771, 790, 792], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 115, "column": 30}}, {"id": 771, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 770, "children": [772], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 47}}, {"id": 772, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 771, "children": [773, 781, 782], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 46}}, {"id": 773, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 772, "children": [774, 775], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 25}}, {"id": 774, "type": "*", "text": "*", "parent": 773, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 775, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 773, "children": [776, 780], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 25}}, {"id": 776, "type": "type_descriptor", "text": "uint16_t *", "parent": 775, "children": [777, 778], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 20}}, {"id": 777, "type": "primitive_type", "text": "uint16_t", "parent": 776, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 18}}, {"id": 778, "type": "abstract_pointer_declarator", "text": "*", "parent": 776, "children": [779], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 20}}, {"id": 779, "type": "*", "text": "*", "parent": 778, "children": [], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 20}}, {"id": 780, "type": "identifier", "text": "src0", "parent": 775, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 25}}, {"id": 781, "type": "!=", "text": "!=", "parent": 772, "children": [], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 28}}, {"id": 782, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 772, "children": [783, 784], "start_point": {"row": 113, "column": 29}, "end_point": {"row": 113, "column": 46}}, {"id": 783, "type": "*", "text": "*", "parent": 782, "children": [], "start_point": {"row": 113, "column": 29}, "end_point": {"row": 113, "column": 30}}, {"id": 784, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 782, "children": [785, 789], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 46}}, {"id": 785, "type": "type_descriptor", "text": "uint16_t *", "parent": 784, "children": [786, 787], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 41}}, {"id": 786, "type": "primitive_type", "text": "uint16_t", "parent": 785, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 39}}, {"id": 787, "type": "abstract_pointer_declarator", "text": "*", "parent": 785, "children": [788], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 41}}, {"id": 788, "type": "*", "text": "*", "parent": 787, "children": [], "start_point": {"row": 113, "column": 40}, "end_point": {"row": 113, "column": 41}}, {"id": 789, "type": "identifier", "text": "src1", "parent": 784, "children": [], "start_point": {"row": 113, "column": 42}, "end_point": {"row": 113, "column": 46}}, {"id": 790, "type": "ERROR", "text": "#else", "parent": 770, "children": [791], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 5}}, {"id": 791, "type": "preproc_directive", "text": "#else", "parent": 790, "children": [], "start_point": {"row": 114, "column": 0}, "end_point": {"row": 114, "column": 5}}, {"id": 792, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))", "parent": 770, "children": [793], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 30}}, {"id": 793, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 792, "children": [794], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 30}}, {"id": 794, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 793, "children": [795, 796], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 29}}, {"id": 795, "type": "identifier", "text": "memcmp", "parent": 794, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 796, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 794, "children": [797, 798, 799], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 29}}, {"id": 797, "type": "identifier", "text": "src0", "parent": 796, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 19}}, {"id": 798, "type": "identifier", "text": "src1", "parent": 796, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 25}}, {"id": 799, "type": "number_literal", "text": "2", "parent": 796, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 28}}, {"id": 800, "type": "#endif", "text": "#endif", "parent": 751, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 801, "type": "return_statement", "text": "return (*src0 == *src1);", "parent": 730, "children": [802], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 32}}, {"id": 802, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 801, "children": [803], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 31}}, {"id": 803, "type": "binary_expression", "text": "*src0 == *src1", "parent": 802, "children": [804, 807, 808], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 30}}, {"id": 804, "type": "pointer_expression", "text": "*src0", "parent": 803, "children": [805, 806], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 21}}, {"id": 805, "type": "*", "text": "*", "parent": 804, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 17}}, {"id": 806, "type": "identifier", "text": "src0", "parent": 804, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 21}}, {"id": 807, "type": "==", "text": "==", "parent": 803, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 24}}, {"id": 808, "type": "pointer_expression", "text": "*src1", "parent": 803, "children": [809, 810], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 30}}, {"id": 809, "type": "*", "text": "*", "parent": 808, "children": [], "start_point": {"row": 117, "column": 25}, "end_point": {"row": 117, "column": 26}}, {"id": 810, "type": "identifier", "text": "src1", "parent": 808, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 30}}, {"id": 811, "type": "return_statement", "text": "return compare256_unaligned_16_static(src0+2, src1+2) + 2;", "parent": 730, "children": [812], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 62}}, {"id": 812, "type": "binary_expression", "text": "compare256_unaligned_16_static(src0+2, src1+2) + 2", "parent": 811, "children": [813, 824, 825], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 61}}, {"id": 813, "type": "call_expression", "text": "compare256_unaligned_16_static(src0+2, src1+2)", "parent": 812, "children": [814, 815], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 57}}, {"id": 814, "type": "identifier", "text": "compare256_unaligned_16_static", "parent": 813, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 41}}, {"id": 815, "type": "argument_list", "text": "(src0+2, src1+2)", "parent": 813, "children": [816, 820], "start_point": {"row": 119, "column": 41}, "end_point": {"row": 119, "column": 57}}, {"id": 816, "type": "binary_expression", "text": "src0+2", "parent": 815, "children": [817, 818, 819], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 48}}, {"id": 817, "type": "identifier", "text": "src0", "parent": 816, "children": [], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 46}}, {"id": 818, "type": "+", "text": "+", "parent": 816, "children": [], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 47}}, {"id": 819, "type": "number_literal", "text": "2", "parent": 816, "children": [], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 48}}, {"id": 820, "type": "binary_expression", "text": "src1+2", "parent": 815, "children": [821, 822, 823], "start_point": {"row": 119, "column": 50}, "end_point": {"row": 119, "column": 56}}, {"id": 821, "type": "identifier", "text": "src1", "parent": 820, "children": [], "start_point": {"row": 119, "column": 50}, "end_point": {"row": 119, "column": 54}}, {"id": 822, "type": "+", "text": "+", "parent": 820, "children": [], "start_point": {"row": 119, "column": 54}, "end_point": {"row": 119, "column": 55}}, {"id": 823, "type": "number_literal", "text": "2", "parent": 820, "children": [], "start_point": {"row": 119, "column": 55}, "end_point": {"row": 119, "column": 56}}, {"id": 824, "type": "+", "text": "+", "parent": 812, "children": [], "start_point": {"row": 119, "column": 58}, "end_point": {"row": 119, "column": 59}}, {"id": 825, "type": "number_literal", "text": "2", "parent": 812, "children": [], "start_point": {"row": 119, "column": 60}, "end_point": {"row": 119, "column": 61}}, {"id": 826, "type": "function_definition", "text": "Z_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}", "parent": 644, "children": [827, 828, 830], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 124, "column": 1}}, {"id": 827, "type": "type_identifier", "text": "Z_INTERNAL", "parent": 826, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 10}}, {"id": 828, "type": "ERROR", "text": "uint32_t", "parent": 826, "children": [829], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 19}}, {"id": 829, "type": "identifier", "text": "uint32_t", "parent": 828, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 19}}, {"id": 830, "type": "function_declarator", "text": "compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1)", "parent": 826, "children": [831, 832], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 97}}, {"id": 831, "type": "identifier", "text": "compare258_unaligned_16", "parent": 830, "children": [], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 43}}, {"id": 832, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 830, "children": [833, 840], "start_point": {"row": 122, "column": 43}, "end_point": {"row": 122, "column": 97}}, {"id": 833, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 832, "children": [834, 837], "start_point": {"row": 122, "column": 44}, "end_point": {"row": 122, "column": 69}}, {"id": 834, "type": "sized_type_specifier", "text": "unsigned char", "parent": 833, "children": [835, 836], "start_point": {"row": 122, "column": 50}, "end_point": {"row": 122, "column": 63}}, {"id": 835, "type": "unsigned", "text": "unsigned", "parent": 834, "children": [], "start_point": {"row": 122, "column": 50}, "end_point": {"row": 122, "column": 58}}, {"id": 836, "type": "primitive_type", "text": "char", "parent": 834, "children": [], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 63}}, {"id": 837, "type": "pointer_declarator", "text": "*src0", "parent": 833, "children": [838, 839], "start_point": {"row": 122, "column": 64}, "end_point": {"row": 122, "column": 69}}, {"id": 838, "type": "*", "text": "*", "parent": 837, "children": [], "start_point": {"row": 122, "column": 64}, "end_point": {"row": 122, "column": 65}}, {"id": 839, "type": "identifier", "text": "src0", "parent": 837, "children": [], "start_point": {"row": 122, "column": 65}, "end_point": {"row": 122, "column": 69}}, {"id": 840, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 832, "children": [841, 844], "start_point": {"row": 122, "column": 71}, "end_point": {"row": 122, "column": 96}}, {"id": 841, "type": "sized_type_specifier", "text": "unsigned char", "parent": 840, "children": [842, 843], "start_point": {"row": 122, "column": 77}, "end_point": {"row": 122, "column": 90}}, {"id": 842, "type": "unsigned", "text": "unsigned", "parent": 841, "children": [], "start_point": {"row": 122, "column": 77}, "end_point": {"row": 122, "column": 85}}, {"id": 843, "type": "primitive_type", "text": "char", "parent": 841, "children": [], "start_point": {"row": 122, "column": 86}, "end_point": {"row": 122, "column": 90}}, {"id": 844, "type": "pointer_declarator", "text": "*src1", "parent": 840, "children": [845, 846], "start_point": {"row": 122, "column": 91}, "end_point": {"row": 122, "column": 96}}, {"id": 845, "type": "*", "text": "*", "parent": 844, "children": [], "start_point": {"row": 122, "column": 91}, "end_point": {"row": 122, "column": 92}}, {"id": 846, "type": "identifier", "text": "src1", "parent": 844, "children": [], "start_point": {"row": 122, "column": 92}, "end_point": {"row": 122, "column": 96}}, {"id": 847, "type": "return_statement", "text": "return compare258_unaligned_16_static(src0, src1);", "parent": 826, "children": [848], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 54}}, {"id": 848, "type": "call_expression", "text": "compare258_unaligned_16_static(src0, src1)", "parent": 847, "children": [849, 850], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 53}}, {"id": 849, "type": "identifier", "text": "compare258_unaligned_16_static", "parent": 848, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 41}}, {"id": 850, "type": "argument_list", "text": "(src0, src1)", "parent": 848, "children": [851, 852], "start_point": {"row": 123, "column": 41}, "end_point": {"row": 123, "column": 53}}, {"id": 851, "type": "identifier", "text": "src0", "parent": 850, "children": [], "start_point": {"row": 123, "column": 42}, "end_point": {"row": 123, "column": 46}}, {"id": 852, "type": "identifier", "text": "src1", "parent": 850, "children": [], "start_point": {"row": 123, "column": 48}, "end_point": {"row": 123, "column": 52}}, {"id": 853, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_unaligned_16\n", "parent": 644, "children": [854, 855, 856], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 127, "column": 0}}, {"id": 854, "type": "#define", "text": "#define", "parent": 853, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 7}}, {"id": 855, "type": "identifier", "text": "LONGEST_MATCH", "parent": 853, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 21}}, {"id": 856, "type": "preproc_arg", "text": "longest_match_unaligned_16", "parent": 853, "children": [], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 54}}, {"id": 857, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_16_static\n", "parent": 644, "children": [858, 859, 860], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 858, "type": "#define", "text": "#define", "parent": 857, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 7}}, {"id": 859, "type": "identifier", "text": "COMPARE256", "parent": 857, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 18}}, {"id": 860, "type": "preproc_arg", "text": "compare256_unaligned_16_static", "parent": 857, "children": [], "start_point": {"row": 127, "column": 28}, "end_point": {"row": 127, "column": 58}}, {"id": 861, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_16_static\n", "parent": 644, "children": [862, 863, 864], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 129, "column": 0}}, {"id": 862, "type": "#define", "text": "#define", "parent": 861, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 7}}, {"id": 863, "type": "identifier", "text": "COMPARE258", "parent": 861, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 18}}, {"id": 864, "type": "preproc_arg", "text": "compare258_unaligned_16_static", "parent": 861, "children": [], "start_point": {"row": 128, "column": 28}, "end_point": {"row": 128, "column": 58}}, {"id": 865, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 644, "children": [866, 867], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 131, "column": 0}}, {"id": 866, "type": "#include", "text": "#include", "parent": 865, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 8}}, {"id": 867, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 865, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 22}}, {"id": 868, "type": "preproc_def", "text": "#define LONGEST_MATCH_SLOW\n", "parent": 644, "children": [869, 870], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 133, "column": 0}}, {"id": 869, "type": "#define", "text": "#define", "parent": 868, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 870, "type": "identifier", "text": "LONGEST_MATCH_SLOW", "parent": 868, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 26}}, {"id": 871, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_slow_unaligned_16\n", "parent": 644, "children": [872, 873, 874], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 134, "column": 0}}, {"id": 872, "type": "#define", "text": "#define", "parent": 871, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 7}}, {"id": 873, "type": "identifier", "text": "LONGEST_MATCH", "parent": 871, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 21}}, {"id": 874, "type": "preproc_arg", "text": "longest_match_slow_unaligned_16", "parent": 871, "children": [], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 59}}, {"id": 875, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_16_static\n", "parent": 644, "children": [876, 877, 878], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 0}}, {"id": 876, "type": "#define", "text": "#define", "parent": 875, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 7}}, {"id": 877, "type": "identifier", "text": "COMPARE256", "parent": 875, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 18}}, {"id": 878, "type": "preproc_arg", "text": "compare256_unaligned_16_static", "parent": 875, "children": [], "start_point": {"row": 134, "column": 28}, "end_point": {"row": 134, "column": 58}}, {"id": 879, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_16_static\n", "parent": 644, "children": [880, 881, 882], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 880, "type": "#define", "text": "#define", "parent": 879, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 881, "type": "identifier", "text": "COMPARE258", "parent": 879, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 18}}, {"id": 882, "type": "preproc_arg", "text": "compare258_unaligned_16_static", "parent": 879, "children": [], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 135, "column": 58}}, {"id": 883, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 644, "children": [884, 885], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 138, "column": 0}}, {"id": 884, "type": "#include", "text": "#include", "parent": 883, "children": [], "start_point": {"row": 137, "column": 0}, "end_point": {"row": 137, "column": 8}}, {"id": 885, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 883, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 22}}, {"id": 886, "type": "preproc_ifdef", "text": "#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#endif", "parent": 644, "children": [887, 888, 889, 1033, 1129, 1156, 1160, 1164, 1168, 1171, 1174, 1178, 1182, 1186, 1189], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 887, "type": "#ifdef", "text": "#ifdef", "parent": 886, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 6}}, {"id": 888, "type": "identifier", "text": "HAVE_BUILTIN_CTZ", "parent": 886, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 23}}, {"id": 889, "type": "function_definition", "text": "static inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}", "parent": 886, "children": [890, 892, 893], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 164, "column": 1}}, {"id": 890, "type": "storage_class_specifier", "text": "inline", "parent": 889, "children": [891], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 13}}, {"id": 891, "type": "inline", "text": "inline", "parent": 890, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 13}}, {"id": 892, "type": "primitive_type", "text": "uint32_t", "parent": 889, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 22}}, {"id": 893, "type": "function_declarator", "text": "compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)", "parent": 889, "children": [894, 895], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 107}}, {"id": 894, "type": "identifier", "text": "compare256_unaligned_32_static", "parent": 893, "children": [], "start_point": {"row": 141, "column": 23}, "end_point": {"row": 141, "column": 53}}, {"id": 895, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 893, "children": [896, 903], "start_point": {"row": 141, "column": 53}, "end_point": {"row": 141, "column": 107}}, {"id": 896, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 895, "children": [897, 900], "start_point": {"row": 141, "column": 54}, "end_point": {"row": 141, "column": 79}}, {"id": 897, "type": "sized_type_specifier", "text": "unsigned char", "parent": 896, "children": [898, 899], "start_point": {"row": 141, "column": 60}, "end_point": {"row": 141, "column": 73}}, {"id": 898, "type": "unsigned", "text": "unsigned", "parent": 897, "children": [], "start_point": {"row": 141, "column": 60}, "end_point": {"row": 141, "column": 68}}, {"id": 899, "type": "primitive_type", "text": "char", "parent": 897, "children": [], "start_point": {"row": 141, "column": 69}, "end_point": {"row": 141, "column": 73}}, {"id": 900, "type": "pointer_declarator", "text": "*src0", "parent": 896, "children": [901, 902], "start_point": {"row": 141, "column": 74}, "end_point": {"row": 141, "column": 79}}, {"id": 901, "type": "*", "text": "*", "parent": 900, "children": [], "start_point": {"row": 141, "column": 74}, "end_point": {"row": 141, "column": 75}}, {"id": 902, "type": "identifier", "text": "src0", "parent": 900, "children": [], "start_point": {"row": 141, "column": 75}, "end_point": {"row": 141, "column": 79}}, {"id": 903, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 895, "children": [904, 907], "start_point": {"row": 141, "column": 81}, "end_point": {"row": 141, "column": 106}}, {"id": 904, "type": "sized_type_specifier", "text": "unsigned char", "parent": 903, "children": [905, 906], "start_point": {"row": 141, "column": 87}, "end_point": {"row": 141, "column": 100}}, {"id": 905, "type": "unsigned", "text": "unsigned", "parent": 904, "children": [], "start_point": {"row": 141, "column": 87}, "end_point": {"row": 141, "column": 95}}, {"id": 906, "type": "primitive_type", "text": "char", "parent": 904, "children": [], "start_point": {"row": 141, "column": 96}, "end_point": {"row": 141, "column": 100}}, {"id": 907, "type": "pointer_declarator", "text": "*src1", "parent": 903, "children": [908, 909], "start_point": {"row": 141, "column": 101}, "end_point": {"row": 141, "column": 106}}, {"id": 908, "type": "*", "text": "*", "parent": 907, "children": [], "start_point": {"row": 141, "column": 101}, "end_point": {"row": 141, "column": 102}}, {"id": 909, "type": "identifier", "text": "src1", "parent": 907, "children": [], "start_point": {"row": 141, "column": 102}, "end_point": {"row": 141, "column": 106}}, {"id": 910, "type": "declaration", "text": "uint32_t len = 0;", "parent": 889, "children": [911, 912], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 21}}, {"id": 911, "type": "primitive_type", "text": "uint32_t", "parent": 910, "children": [], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 142, "column": 12}}, {"id": 912, "type": "init_declarator", "text": "len = 0", "parent": 910, "children": [913, 914, 915], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 20}}, {"id": 913, "type": "identifier", "text": "len", "parent": 912, "children": [], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 16}}, {"id": 914, "type": "=", "text": "=", "parent": 912, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 18}}, {"id": 915, "type": "number_literal", "text": "0", "parent": 912, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 20}}, {"id": 916, "type": "do_statement", "text": "do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);", "parent": 889, "children": [1026], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 161, "column": 24}}, {"id": 917, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif", "parent": 916, "children": [918, 919, 935, 936, 949, 962, 982], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 152, "column": 6}}, {"id": 918, "type": "#if", "text": "#if", "parent": 917, "children": [], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 145, "column": 3}}, {"id": 919, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 917, "children": [920, 930, 931], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 60}}, {"id": 920, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 919, "children": [921, 924, 925], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 44}}, {"id": 921, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 920, "children": [922, 923], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 21}}, {"id": 922, "type": "defined", "text": "defined", "parent": 921, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 11}}, {"id": 923, "type": "identifier", "text": "__GNUC__", "parent": 921, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 20}}, {"id": 924, "type": "&&", "text": "&&", "parent": 920, "children": [], "start_point": {"row": 145, "column": 22}, "end_point": {"row": 145, "column": 24}}, {"id": 925, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 920, "children": [926, 927], "start_point": {"row": 145, "column": 25}, "end_point": {"row": 145, "column": 44}}, {"id": 926, "type": "!", "text": "!", "parent": 925, "children": [], "start_point": {"row": 145, "column": 25}, "end_point": {"row": 145, "column": 26}}, {"id": 927, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 925, "children": [928, 929], "start_point": {"row": 145, "column": 26}, "end_point": {"row": 145, "column": 44}}, {"id": 928, "type": "defined", "text": "defined", "parent": 927, "children": [], "start_point": {"row": 145, "column": 26}, "end_point": {"row": 145, "column": 33}}, {"id": 929, "type": "identifier", "text": "__clang__", "parent": 927, "children": [], "start_point": {"row": 145, "column": 34}, "end_point": {"row": 145, "column": 43}}, {"id": 930, "type": "&&", "text": "&&", "parent": 919, "children": [], "start_point": {"row": 145, "column": 45}, "end_point": {"row": 145, "column": 47}}, {"id": 931, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 919, "children": [932, 933, 934], "start_point": {"row": 145, "column": 48}, "end_point": {"row": 145, "column": 60}}, {"id": 932, "type": "identifier", "text": "__GNUC__", "parent": 931, "children": [], "start_point": {"row": 145, "column": 48}, "end_point": {"row": 145, "column": 56}}, {"id": 933, "type": "<", "text": "<", "parent": 931, "children": [], "start_point": {"row": 145, "column": 57}, "end_point": {"row": 145, "column": 58}}, {"id": 934, "type": "number_literal", "text": "8", "parent": 931, "children": [], "start_point": {"row": 145, "column": 59}, "end_point": {"row": 145, "column": 60}}, {"id": 935, "type": "\n", "text": "\n", "parent": 917, "children": [], "start_point": {"row": 145, "column": 60}, "end_point": {"row": 146, "column": 0}}, {"id": 936, "type": "declaration", "text": "uint32_t sv = *(uint32_t *)src0;", "parent": 917, "children": [937, 938], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 40}}, {"id": 937, "type": "primitive_type", "text": "uint32_t", "parent": 936, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 16}}, {"id": 938, "type": "init_declarator", "text": "sv = *(uint32_t *)src0", "parent": 936, "children": [939, 940, 941], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 39}}, {"id": 939, "type": "identifier", "text": "sv", "parent": 938, "children": [], "start_point": {"row": 146, "column": 17}, "end_point": {"row": 146, "column": 19}}, {"id": 940, "type": "=", "text": "=", "parent": 938, "children": [], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 21}}, {"id": 941, "type": "pointer_expression", "text": "*(uint32_t *)src0", "parent": 938, "children": [942, 943], "start_point": {"row": 146, "column": 22}, "end_point": {"row": 146, "column": 39}}, {"id": 942, "type": "*", "text": "*", "parent": 941, "children": [], "start_point": {"row": 146, "column": 22}, "end_point": {"row": 146, "column": 23}}, {"id": 943, "type": "cast_expression", "text": "(uint32_t *)src0", "parent": 941, "children": [944, 948], "start_point": {"row": 146, "column": 23}, "end_point": {"row": 146, "column": 39}}, {"id": 944, "type": "type_descriptor", "text": "uint32_t *", "parent": 943, "children": [945, 946], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 34}}, {"id": 945, "type": "primitive_type", "text": "uint32_t", "parent": 944, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 32}}, {"id": 946, "type": "abstract_pointer_declarator", "text": "*", "parent": 944, "children": [947], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 34}}, {"id": 947, "type": "*", "text": "*", "parent": 946, "children": [], "start_point": {"row": 146, "column": 33}, "end_point": {"row": 146, "column": 34}}, {"id": 948, "type": "identifier", "text": "src0", "parent": 943, "children": [], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 39}}, {"id": 949, "type": "declaration", "text": "uint32_t mv = *(uint32_t *)src1;", "parent": 917, "children": [950, 951], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 40}}, {"id": 950, "type": "primitive_type", "text": "uint32_t", "parent": 949, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 16}}, {"id": 951, "type": "init_declarator", "text": "mv = *(uint32_t *)src1", "parent": 949, "children": [952, 953, 954], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 39}}, {"id": 952, "type": "identifier", "text": "mv", "parent": 951, "children": [], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 19}}, {"id": 953, "type": "=", "text": "=", "parent": 951, "children": [], "start_point": {"row": 147, "column": 20}, "end_point": {"row": 147, "column": 21}}, {"id": 954, "type": "pointer_expression", "text": "*(uint32_t *)src1", "parent": 951, "children": [955, 956], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 39}}, {"id": 955, "type": "*", "text": "*", "parent": 954, "children": [], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 23}}, {"id": 956, "type": "cast_expression", "text": "(uint32_t *)src1", "parent": 954, "children": [957, 961], "start_point": {"row": 147, "column": 23}, "end_point": {"row": 147, "column": 39}}, {"id": 957, "type": "type_descriptor", "text": "uint32_t *", "parent": 956, "children": [958, 959], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 34}}, {"id": 958, "type": "primitive_type", "text": "uint32_t", "parent": 957, "children": [], "start_point": {"row": 147, "column": 24}, "end_point": {"row": 147, "column": 32}}, {"id": 959, "type": "abstract_pointer_declarator", "text": "*", "parent": 957, "children": [960], "start_point": {"row": 147, "column": 33}, "end_point": {"row": 147, "column": 34}}, {"id": 960, "type": "*", "text": "*", "parent": 959, "children": [], "start_point": {"row": 147, "column": 33}, "end_point": {"row": 147, "column": 34}}, {"id": 961, "type": "identifier", "text": "src1", "parent": 956, "children": [], "start_point": {"row": 147, "column": 35}, "end_point": {"row": 147, "column": 39}}, {"id": 962, "type": "preproc_else", "text": "#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);", "parent": 917, "children": [963, 964], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 151, "column": 29}}, {"id": 963, "type": "#else", "text": "#else", "parent": 962, "children": [], "start_point": {"row": 148, "column": 0}, "end_point": {"row": 148, "column": 5}}, {"id": 964, "type": "declaration", "text": "uint32_t sv, mv;", "parent": 962, "children": [965, 966, 967], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 24}}, {"id": 965, "type": "primitive_type", "text": "uint32_t", "parent": 964, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 16}}, {"id": 966, "type": "identifier", "text": "sv", "parent": 964, "children": [], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 19}}, {"id": 967, "type": "identifier", "text": "mv", "parent": 964, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 23}}, {"id": 968, "type": "call_expression", "text": "memcpy(&sv, src0, 4)", "parent": 962, "children": [969, 970], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 28}}, {"id": 969, "type": "identifier", "text": "memcpy", "parent": 968, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 14}}, {"id": 970, "type": "argument_list", "text": "(&sv, src0, 4)", "parent": 968, "children": [971, 973, 974], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 28}}, {"id": 971, "type": "pointer_expression", "text": "&sv", "parent": 970, "children": [972], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 18}}, {"id": 972, "type": "identifier", "text": "sv", "parent": 971, "children": [], "start_point": {"row": 150, "column": 16}, "end_point": {"row": 150, "column": 18}}, {"id": 973, "type": "identifier", "text": "src0", "parent": 970, "children": [], "start_point": {"row": 150, "column": 20}, "end_point": {"row": 150, "column": 24}}, {"id": 974, "type": "number_literal", "text": "4", "parent": 970, "children": [], "start_point": {"row": 150, "column": 26}, "end_point": {"row": 150, "column": 27}}, {"id": 975, "type": "call_expression", "text": "memcpy(&mv, src1, 4)", "parent": 962, "children": [976, 977], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 28}}, {"id": 976, "type": "identifier", "text": "memcpy", "parent": 975, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 14}}, {"id": 977, "type": "argument_list", "text": "(&mv, src1, 4)", "parent": 975, "children": [978, 980, 981], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 28}}, {"id": 978, "type": "pointer_expression", "text": "&mv", "parent": 977, "children": [979], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 18}}, {"id": 979, "type": "identifier", "text": "mv", "parent": 978, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 18}}, {"id": 980, "type": "identifier", "text": "src1", "parent": 977, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 24}}, {"id": 981, "type": "number_literal", "text": "4", "parent": 977, "children": [], "start_point": {"row": 151, "column": 26}, "end_point": {"row": 151, "column": 27}}, {"id": 982, "type": "#endif", "text": "#endif", "parent": 917, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 6}}, {"id": 983, "type": "declaration", "text": "uint32_t diff = sv ^ mv;", "parent": 916, "children": [984, 985], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 32}}, {"id": 984, "type": "primitive_type", "text": "uint32_t", "parent": 983, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 16}}, {"id": 985, "type": "init_declarator", "text": "diff = sv ^ mv", "parent": 983, "children": [986, 987, 988], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 31}}, {"id": 986, "type": "identifier", "text": "diff", "parent": 985, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 21}}, {"id": 987, "type": "=", "text": "=", "parent": 985, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 23}}, {"id": 988, "type": "binary_expression", "text": "sv ^ mv", "parent": 985, "children": [989, 990, 991], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 31}}, {"id": 989, "type": "identifier", "text": "sv", "parent": 988, "children": [], "start_point": {"row": 153, "column": 24}, "end_point": {"row": 153, "column": 26}}, {"id": 990, "type": "^", "text": "^", "parent": 988, "children": [], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 28}}, {"id": 991, "type": "identifier", "text": "mv", "parent": 988, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 31}}, {"id": 992, "type": "if_statement", "text": "if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }", "parent": 916, "children": [993], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 158, "column": 9}}, {"id": 993, "type": "parenthesized_expression", "text": "(diff)", "parent": 992, "children": [994], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 17}}, {"id": 994, "type": "identifier", "text": "diff", "parent": 993, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 16}}, {"id": 995, "type": "declaration", "text": "uint32_t match_byte = __builtin_ctz(diff) / 8;", "parent": 992, "children": [996, 997], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 58}}, {"id": 996, "type": "primitive_type", "text": "uint32_t", "parent": 995, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 20}}, {"id": 997, "type": "init_declarator", "text": "match_byte = __builtin_ctz(diff) / 8", "parent": 995, "children": [998, 999, 1000], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 57}}, {"id": 998, "type": "identifier", "text": "match_byte", "parent": 997, "children": [], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 31}}, {"id": 999, "type": "=", "text": "=", "parent": 997, "children": [], "start_point": {"row": 156, "column": 32}, "end_point": {"row": 156, "column": 33}}, {"id": 1000, "type": "binary_expression", "text": "__builtin_ctz(diff) / 8", "parent": 997, "children": [1001, 1005, 1006], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 57}}, {"id": 1001, "type": "call_expression", "text": "__builtin_ctz(diff)", "parent": 1000, "children": [1002, 1003], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 53}}, {"id": 1002, "type": "identifier", "text": "__builtin_ctz", "parent": 1001, "children": [], "start_point": {"row": 156, "column": 34}, "end_point": {"row": 156, "column": 47}}, {"id": 1003, "type": "argument_list", "text": "(diff)", "parent": 1001, "children": [1004], "start_point": {"row": 156, "column": 47}, "end_point": {"row": 156, "column": 53}}, {"id": 1004, "type": "identifier", "text": "diff", "parent": 1003, "children": [], "start_point": {"row": 156, "column": 48}, "end_point": {"row": 156, "column": 52}}, {"id": 1005, "type": "/", "text": "/", "parent": 1000, "children": [], "start_point": {"row": 156, "column": 54}, "end_point": {"row": 156, "column": 55}}, {"id": 1006, "type": "number_literal", "text": "8", "parent": 1000, "children": [], "start_point": {"row": 156, "column": 56}, "end_point": {"row": 156, "column": 57}}, {"id": 1007, "type": "return_statement", "text": "return len + match_byte;", "parent": 992, "children": [1008], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 36}}, {"id": 1008, "type": "binary_expression", "text": "len + match_byte", "parent": 1007, "children": [1009, 1010, 1011], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 35}}, {"id": 1009, "type": "identifier", "text": "len", "parent": 1008, "children": [], "start_point": {"row": 157, "column": 19}, "end_point": {"row": 157, "column": 22}}, {"id": 1010, "type": "+", "text": "+", "parent": 1008, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 24}}, {"id": 1011, "type": "identifier", "text": "match_byte", "parent": 1008, "children": [], "start_point": {"row": 157, "column": 25}, "end_point": {"row": 157, "column": 35}}, {"id": 1012, "type": "comma_expression", "text": "src0 += 4, src1 += 4, len += 4", "parent": 916, "children": [1013, 1017], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 38}}, {"id": 1013, "type": "assignment_expression", "text": "src0 += 4", "parent": 1012, "children": [1014, 1015, 1016], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 17}}, {"id": 1014, "type": "identifier", "text": "src0", "parent": 1013, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 12}}, {"id": 1015, "type": "+=", "text": "+=", "parent": 1013, "children": [], "start_point": {"row": 160, "column": 13}, "end_point": {"row": 160, "column": 15}}, {"id": 1016, "type": "number_literal", "text": "4", "parent": 1013, "children": [], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 17}}, {"id": 1017, "type": "comma_expression", "text": "src1 += 4, len += 4", "parent": 1012, "children": [1018, 1022], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 38}}, {"id": 1018, "type": "assignment_expression", "text": "src1 += 4", "parent": 1017, "children": [1019, 1020, 1021], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 28}}, {"id": 1019, "type": "identifier", "text": "src1", "parent": 1018, "children": [], "start_point": {"row": 160, "column": 19}, "end_point": {"row": 160, "column": 23}}, {"id": 1020, "type": "+=", "text": "+=", "parent": 1018, "children": [], "start_point": {"row": 160, "column": 24}, "end_point": {"row": 160, "column": 26}}, {"id": 1021, "type": "number_literal", "text": "4", "parent": 1018, "children": [], "start_point": {"row": 160, "column": 27}, "end_point": {"row": 160, "column": 28}}, {"id": 1022, "type": "assignment_expression", "text": "len += 4", "parent": 1017, "children": [1023, 1024, 1025], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 38}}, {"id": 1023, "type": "identifier", "text": "len", "parent": 1022, "children": [], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 33}}, {"id": 1024, "type": "+=", "text": "+=", "parent": 1022, "children": [], "start_point": {"row": 160, "column": 34}, "end_point": {"row": 160, "column": 36}}, {"id": 1025, "type": "number_literal", "text": "4", "parent": 1022, "children": [], "start_point": {"row": 160, "column": 37}, "end_point": {"row": 160, "column": 38}}, {"id": 1026, "type": "parenthesized_expression", "text": "(len < 256)", "parent": 916, "children": [1027], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 23}}, {"id": 1027, "type": "binary_expression", "text": "len < 256", "parent": 1026, "children": [1028, 1029, 1030], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 22}}, {"id": 1028, "type": "identifier", "text": "len", "parent": 1027, "children": [], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 16}}, {"id": 1029, "type": "<", "text": "<", "parent": 1027, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 18}}, {"id": 1030, "type": "number_literal", "text": "256", "parent": 1027, "children": [], "start_point": {"row": 161, "column": 19}, "end_point": {"row": 161, "column": 22}}, {"id": 1031, "type": "return_statement", "text": "return 256;", "parent": 889, "children": [1032], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 15}}, {"id": 1032, "type": "number_literal", "text": "256", "parent": 1031, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 14}}, {"id": 1033, "type": "function_definition", "text": "static inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}", "parent": 886, "children": [1034, 1036, 1037], "start_point": {"row": 166, "column": 0}, "end_point": {"row": 175, "column": 1}}, {"id": 1034, "type": "storage_class_specifier", "text": "inline", "parent": 1033, "children": [1035], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 13}}, {"id": 1035, "type": "inline", "text": "inline", "parent": 1034, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 13}}, {"id": 1036, "type": "primitive_type", "text": "uint32_t", "parent": 1033, "children": [], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 22}}, {"id": 1037, "type": "function_declarator", "text": "compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)", "parent": 1033, "children": [1038, 1039], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 107}}, {"id": 1038, "type": "identifier", "text": "compare258_unaligned_32_static", "parent": 1037, "children": [], "start_point": {"row": 166, "column": 23}, "end_point": {"row": 166, "column": 53}}, {"id": 1039, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 1037, "children": [1040, 1047], "start_point": {"row": 166, "column": 53}, "end_point": {"row": 166, "column": 107}}, {"id": 1040, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 1039, "children": [1041, 1044], "start_point": {"row": 166, "column": 54}, "end_point": {"row": 166, "column": 79}}, {"id": 1041, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1040, "children": [1042, 1043], "start_point": {"row": 166, "column": 60}, "end_point": {"row": 166, "column": 73}}, {"id": 1042, "type": "unsigned", "text": "unsigned", "parent": 1041, "children": [], "start_point": {"row": 166, "column": 60}, "end_point": {"row": 166, "column": 68}}, {"id": 1043, "type": "primitive_type", "text": "char", "parent": 1041, "children": [], "start_point": {"row": 166, "column": 69}, "end_point": {"row": 166, "column": 73}}, {"id": 1044, "type": "pointer_declarator", "text": "*src0", "parent": 1040, "children": [1045, 1046], "start_point": {"row": 166, "column": 74}, "end_point": {"row": 166, "column": 79}}, {"id": 1045, "type": "*", "text": "*", "parent": 1044, "children": [], "start_point": {"row": 166, "column": 74}, "end_point": {"row": 166, "column": 75}}, {"id": 1046, "type": "identifier", "text": "src0", "parent": 1044, "children": [], "start_point": {"row": 166, "column": 75}, "end_point": {"row": 166, "column": 79}}, {"id": 1047, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 1039, "children": [1048, 1051], "start_point": {"row": 166, "column": 81}, "end_point": {"row": 166, "column": 106}}, {"id": 1048, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 166, "column": 87}, "end_point": {"row": 166, "column": 100}}, {"id": 1049, "type": "unsigned", "text": "unsigned", "parent": 1048, "children": [], "start_point": {"row": 166, "column": 87}, "end_point": {"row": 166, "column": 95}}, {"id": 1050, "type": "primitive_type", "text": "char", "parent": 1048, "children": [], "start_point": {"row": 166, "column": 96}, "end_point": {"row": 166, "column": 100}}, {"id": 1051, "type": "pointer_declarator", "text": "*src1", "parent": 1047, "children": [1052, 1053], "start_point": {"row": 166, "column": 101}, "end_point": {"row": 166, "column": 106}}, {"id": 1052, "type": "*", "text": "*", "parent": 1051, "children": [], "start_point": {"row": 166, "column": 101}, "end_point": {"row": 166, "column": 102}}, {"id": 1053, "type": "identifier", "text": "src1", "parent": 1051, "children": [], "start_point": {"row": 166, "column": 102}, "end_point": {"row": 166, "column": 106}}, {"id": 1054, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif", "parent": 1033, "children": [1055, 1056, 1072, 1073, 1103], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 171, "column": 6}}, {"id": 1055, "type": "#if", "text": "#if", "parent": 1054, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 3}}, {"id": 1056, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 1054, "children": [1057, 1067, 1068], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 60}}, {"id": 1057, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 1056, "children": [1058, 1061, 1062], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 44}}, {"id": 1058, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 1057, "children": [1059, 1060], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 21}}, {"id": 1059, "type": "defined", "text": "defined", "parent": 1058, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 11}}, {"id": 1060, "type": "identifier", "text": "__GNUC__", "parent": 1058, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 20}}, {"id": 1061, "type": "&&", "text": "&&", "parent": 1057, "children": [], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 24}}, {"id": 1062, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 1057, "children": [1063, 1064], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 44}}, {"id": 1063, "type": "!", "text": "!", "parent": 1062, "children": [], "start_point": {"row": 167, "column": 25}, "end_point": {"row": 167, "column": 26}}, {"id": 1064, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 1062, "children": [1065, 1066], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 44}}, {"id": 1065, "type": "defined", "text": "defined", "parent": 1064, "children": [], "start_point": {"row": 167, "column": 26}, "end_point": {"row": 167, "column": 33}}, {"id": 1066, "type": "identifier", "text": "__clang__", "parent": 1064, "children": [], "start_point": {"row": 167, "column": 34}, "end_point": {"row": 167, "column": 43}}, {"id": 1067, "type": "&&", "text": "&&", "parent": 1056, "children": [], "start_point": {"row": 167, "column": 45}, "end_point": {"row": 167, "column": 47}}, {"id": 1068, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 1056, "children": [1069, 1070, 1071], "start_point": {"row": 167, "column": 48}, "end_point": {"row": 167, "column": 60}}, {"id": 1069, "type": "identifier", "text": "__GNUC__", "parent": 1068, "children": [], "start_point": {"row": 167, "column": 48}, "end_point": {"row": 167, "column": 56}}, {"id": 1070, "type": "<", "text": "<", "parent": 1068, "children": [], "start_point": {"row": 167, "column": 57}, "end_point": {"row": 167, "column": 58}}, {"id": 1071, "type": "number_literal", "text": "8", "parent": 1068, "children": [], "start_point": {"row": 167, "column": 59}, "end_point": {"row": 167, "column": 60}}, {"id": 1072, "type": "\n", "text": "\n", "parent": 1054, "children": [], "start_point": {"row": 167, "column": 60}, "end_point": {"row": 168, "column": 0}}, {"id": 1073, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))", "parent": 1054, "children": [1074, 1093, 1095], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 170, "column": 30}}, {"id": 1074, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 1073, "children": [1075], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 47}}, {"id": 1075, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 1074, "children": [1076, 1084, 1085], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 46}}, {"id": 1076, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 1075, "children": [1077, 1078], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 25}}, {"id": 1077, "type": "*", "text": "*", "parent": 1076, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 9}}, {"id": 1078, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 1076, "children": [1079, 1083], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 25}}, {"id": 1079, "type": "type_descriptor", "text": "uint16_t *", "parent": 1078, "children": [1080, 1081], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 20}}, {"id": 1080, "type": "primitive_type", "text": "uint16_t", "parent": 1079, "children": [], "start_point": {"row": 168, "column": 10}, "end_point": {"row": 168, "column": 18}}, {"id": 1081, "type": "abstract_pointer_declarator", "text": "*", "parent": 1079, "children": [1082], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 20}}, {"id": 1082, "type": "*", "text": "*", "parent": 1081, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 20}}, {"id": 1083, "type": "identifier", "text": "src0", "parent": 1078, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 25}}, {"id": 1084, "type": "!=", "text": "!=", "parent": 1075, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 28}}, {"id": 1085, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 1075, "children": [1086, 1087], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 46}}, {"id": 1086, "type": "*", "text": "*", "parent": 1085, "children": [], "start_point": {"row": 168, "column": 29}, "end_point": {"row": 168, "column": 30}}, {"id": 1087, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 1085, "children": [1088, 1092], "start_point": {"row": 168, "column": 30}, "end_point": {"row": 168, "column": 46}}, {"id": 1088, "type": "type_descriptor", "text": "uint16_t *", "parent": 1087, "children": [1089, 1090], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 41}}, {"id": 1089, "type": "primitive_type", "text": "uint16_t", "parent": 1088, "children": [], "start_point": {"row": 168, "column": 31}, "end_point": {"row": 168, "column": 39}}, {"id": 1090, "type": "abstract_pointer_declarator", "text": "*", "parent": 1088, "children": [1091], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 41}}, {"id": 1091, "type": "*", "text": "*", "parent": 1090, "children": [], "start_point": {"row": 168, "column": 40}, "end_point": {"row": 168, "column": 41}}, {"id": 1092, "type": "identifier", "text": "src1", "parent": 1087, "children": [], "start_point": {"row": 168, "column": 42}, "end_point": {"row": 168, "column": 46}}, {"id": 1093, "type": "ERROR", "text": "#else", "parent": 1073, "children": [1094], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 5}}, {"id": 1094, "type": "preproc_directive", "text": "#else", "parent": 1093, "children": [], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 5}}, {"id": 1095, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))", "parent": 1073, "children": [1096], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 30}}, {"id": 1096, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 1095, "children": [1097], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 30}}, {"id": 1097, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 1096, "children": [1098, 1099], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 29}}, {"id": 1098, "type": "identifier", "text": "memcmp", "parent": 1097, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 14}}, {"id": 1099, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 1097, "children": [1100, 1101, 1102], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 29}}, {"id": 1100, "type": "identifier", "text": "src0", "parent": 1099, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 19}}, {"id": 1101, "type": "identifier", "text": "src1", "parent": 1099, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 25}}, {"id": 1102, "type": "number_literal", "text": "2", "parent": 1099, "children": [], "start_point": {"row": 170, "column": 27}, "end_point": {"row": 170, "column": 28}}, {"id": 1103, "type": "#endif", "text": "#endif", "parent": 1054, "children": [], "start_point": {"row": 171, "column": 0}, "end_point": {"row": 171, "column": 6}}, {"id": 1104, "type": "return_statement", "text": "return (*src0 == *src1);", "parent": 1033, "children": [1105], "start_point": {"row": 172, "column": 8}, "end_point": {"row": 172, "column": 32}}, {"id": 1105, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 1104, "children": [1106], "start_point": {"row": 172, "column": 15}, "end_point": {"row": 172, "column": 31}}, {"id": 1106, "type": "binary_expression", "text": "*src0 == *src1", "parent": 1105, "children": [1107, 1110, 1111], "start_point": {"row": 172, "column": 16}, "end_point": {"row": 172, "column": 30}}, {"id": 1107, "type": "pointer_expression", "text": "*src0", "parent": 1106, "children": [1108, 1109], "start_point": {"row": 172, "column": 16}, "end_point": {"row": 172, "column": 21}}, {"id": 1108, "type": "*", "text": "*", "parent": 1107, "children": [], "start_point": {"row": 172, "column": 16}, "end_point": {"row": 172, "column": 17}}, {"id": 1109, "type": "identifier", "text": "src0", "parent": 1107, "children": [], "start_point": {"row": 172, "column": 17}, "end_point": {"row": 172, "column": 21}}, {"id": 1110, "type": "==", "text": "==", "parent": 1106, "children": [], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 24}}, {"id": 1111, "type": "pointer_expression", "text": "*src1", "parent": 1106, "children": [1112, 1113], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 30}}, {"id": 1112, "type": "*", "text": "*", "parent": 1111, "children": [], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 26}}, {"id": 1113, "type": "identifier", "text": "src1", "parent": 1111, "children": [], "start_point": {"row": 172, "column": 26}, "end_point": {"row": 172, "column": 30}}, {"id": 1114, "type": "return_statement", "text": "return compare256_unaligned_32_static(src0+2, src1+2) + 2;", "parent": 1033, "children": [1115], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 62}}, {"id": 1115, "type": "binary_expression", "text": "compare256_unaligned_32_static(src0+2, src1+2) + 2", "parent": 1114, "children": [1116, 1127, 1128], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 61}}, {"id": 1116, "type": "call_expression", "text": "compare256_unaligned_32_static(src0+2, src1+2)", "parent": 1115, "children": [1117, 1118], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 57}}, {"id": 1117, "type": "identifier", "text": "compare256_unaligned_32_static", "parent": 1116, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 41}}, {"id": 1118, "type": "argument_list", "text": "(src0+2, src1+2)", "parent": 1116, "children": [1119, 1123], "start_point": {"row": 174, "column": 41}, "end_point": {"row": 174, "column": 57}}, {"id": 1119, "type": "binary_expression", "text": "src0+2", "parent": 1118, "children": [1120, 1121, 1122], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 48}}, {"id": 1120, "type": "identifier", "text": "src0", "parent": 1119, "children": [], "start_point": {"row": 174, "column": 42}, "end_point": {"row": 174, "column": 46}}, {"id": 1121, "type": "+", "text": "+", "parent": 1119, "children": [], "start_point": {"row": 174, "column": 46}, "end_point": {"row": 174, "column": 47}}, {"id": 1122, "type": "number_literal", "text": "2", "parent": 1119, "children": [], "start_point": {"row": 174, "column": 47}, "end_point": {"row": 174, "column": 48}}, {"id": 1123, "type": "binary_expression", "text": "src1+2", "parent": 1118, "children": [1124, 1125, 1126], "start_point": {"row": 174, "column": 50}, "end_point": {"row": 174, "column": 56}}, {"id": 1124, "type": "identifier", "text": "src1", "parent": 1123, "children": [], "start_point": {"row": 174, "column": 50}, "end_point": {"row": 174, "column": 54}}, {"id": 1125, "type": "+", "text": "+", "parent": 1123, "children": [], "start_point": {"row": 174, "column": 54}, "end_point": {"row": 174, "column": 55}}, {"id": 1126, "type": "number_literal", "text": "2", "parent": 1123, "children": [], "start_point": {"row": 174, "column": 55}, "end_point": {"row": 174, "column": 56}}, {"id": 1127, "type": "+", "text": "+", "parent": 1115, "children": [], "start_point": {"row": 174, "column": 58}, "end_point": {"row": 174, "column": 59}}, {"id": 1128, "type": "number_literal", "text": "2", "parent": 1115, "children": [], "start_point": {"row": 174, "column": 60}, "end_point": {"row": 174, "column": 61}}, {"id": 1129, "type": "function_definition", "text": "Z_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}", "parent": 886, "children": [1130, 1131, 1133], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 179, "column": 1}}, {"id": 1130, "type": "type_identifier", "text": "Z_INTERNAL", "parent": 1129, "children": [], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 10}}, {"id": 1131, "type": "ERROR", "text": "uint32_t", "parent": 1129, "children": [1132], "start_point": {"row": 177, "column": 11}, "end_point": {"row": 177, "column": 19}}, {"id": 1132, "type": "identifier", "text": "uint32_t", "parent": 1131, "children": [], "start_point": {"row": 177, "column": 11}, "end_point": {"row": 177, "column": 19}}, {"id": 1133, "type": "function_declarator", "text": "compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1)", "parent": 1129, "children": [1134, 1135], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 97}}, {"id": 1134, "type": "identifier", "text": "compare258_unaligned_32", "parent": 1133, "children": [], "start_point": {"row": 177, "column": 20}, "end_point": {"row": 177, "column": 43}}, {"id": 1135, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 1133, "children": [1136, 1143], "start_point": {"row": 177, "column": 43}, "end_point": {"row": 177, "column": 97}}, {"id": 1136, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 1135, "children": [1137, 1140], "start_point": {"row": 177, "column": 44}, "end_point": {"row": 177, "column": 69}}, {"id": 1137, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1136, "children": [1138, 1139], "start_point": {"row": 177, "column": 50}, "end_point": {"row": 177, "column": 63}}, {"id": 1138, "type": "unsigned", "text": "unsigned", "parent": 1137, "children": [], "start_point": {"row": 177, "column": 50}, "end_point": {"row": 177, "column": 58}}, {"id": 1139, "type": "primitive_type", "text": "char", "parent": 1137, "children": [], "start_point": {"row": 177, "column": 59}, "end_point": {"row": 177, "column": 63}}, {"id": 1140, "type": "pointer_declarator", "text": "*src0", "parent": 1136, "children": [1141, 1142], "start_point": {"row": 177, "column": 64}, "end_point": {"row": 177, "column": 69}}, {"id": 1141, "type": "*", "text": "*", "parent": 1140, "children": [], "start_point": {"row": 177, "column": 64}, "end_point": {"row": 177, "column": 65}}, {"id": 1142, "type": "identifier", "text": "src0", "parent": 1140, "children": [], "start_point": {"row": 177, "column": 65}, "end_point": {"row": 177, "column": 69}}, {"id": 1143, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 1135, "children": [1144, 1147], "start_point": {"row": 177, "column": 71}, "end_point": {"row": 177, "column": 96}}, {"id": 1144, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1143, "children": [1145, 1146], "start_point": {"row": 177, "column": 77}, "end_point": {"row": 177, "column": 90}}, {"id": 1145, "type": "unsigned", "text": "unsigned", "parent": 1144, "children": [], "start_point": {"row": 177, "column": 77}, "end_point": {"row": 177, "column": 85}}, {"id": 1146, "type": "primitive_type", "text": "char", "parent": 1144, "children": [], "start_point": {"row": 177, "column": 86}, "end_point": {"row": 177, "column": 90}}, {"id": 1147, "type": "pointer_declarator", "text": "*src1", "parent": 1143, "children": [1148, 1149], "start_point": {"row": 177, "column": 91}, "end_point": {"row": 177, "column": 96}}, {"id": 1148, "type": "*", "text": "*", "parent": 1147, "children": [], "start_point": {"row": 177, "column": 91}, "end_point": {"row": 177, "column": 92}}, {"id": 1149, "type": "identifier", "text": "src1", "parent": 1147, "children": [], "start_point": {"row": 177, "column": 92}, "end_point": {"row": 177, "column": 96}}, {"id": 1150, "type": "return_statement", "text": "return compare258_unaligned_32_static(src0, src1);", "parent": 1129, "children": [1151], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 54}}, {"id": 1151, "type": "call_expression", "text": "compare258_unaligned_32_static(src0, src1)", "parent": 1150, "children": [1152, 1153], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 53}}, {"id": 1152, "type": "identifier", "text": "compare258_unaligned_32_static", "parent": 1151, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 41}}, {"id": 1153, "type": "argument_list", "text": "(src0, src1)", "parent": 1151, "children": [1154, 1155], "start_point": {"row": 178, "column": 41}, "end_point": {"row": 178, "column": 53}}, {"id": 1154, "type": "identifier", "text": "src0", "parent": 1153, "children": [], "start_point": {"row": 178, "column": 42}, "end_point": {"row": 178, "column": 46}}, {"id": 1155, "type": "identifier", "text": "src1", "parent": 1153, "children": [], "start_point": {"row": 178, "column": 48}, "end_point": {"row": 178, "column": 52}}, {"id": 1156, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_unaligned_32\n", "parent": 886, "children": [1157, 1158, 1159], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 182, "column": 0}}, {"id": 1157, "type": "#define", "text": "#define", "parent": 1156, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 7}}, {"id": 1158, "type": "identifier", "text": "LONGEST_MATCH", "parent": 1156, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 21}}, {"id": 1159, "type": "preproc_arg", "text": "longest_match_unaligned_32", "parent": 1156, "children": [], "start_point": {"row": 181, "column": 28}, "end_point": {"row": 181, "column": 54}}, {"id": 1160, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_32_static\n", "parent": 886, "children": [1161, 1162, 1163], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 183, "column": 0}}, {"id": 1161, "type": "#define", "text": "#define", "parent": 1160, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 7}}, {"id": 1162, "type": "identifier", "text": "COMPARE256", "parent": 1160, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 18}}, {"id": 1163, "type": "preproc_arg", "text": "compare256_unaligned_32_static", "parent": 1160, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 58}}, {"id": 1164, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_32_static\n", "parent": 886, "children": [1165, 1166, 1167], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 184, "column": 0}}, {"id": 1165, "type": "#define", "text": "#define", "parent": 1164, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 7}}, {"id": 1166, "type": "identifier", "text": "COMPARE258", "parent": 1164, "children": [], "start_point": {"row": 183, "column": 8}, "end_point": {"row": 183, "column": 18}}, {"id": 1167, "type": "preproc_arg", "text": "compare258_unaligned_32_static", "parent": 1164, "children": [], "start_point": {"row": 183, "column": 28}, "end_point": {"row": 183, "column": 58}}, {"id": 1168, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 886, "children": [1169, 1170], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 186, "column": 0}}, {"id": 1169, "type": "#include", "text": "#include", "parent": 1168, "children": [], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 8}}, {"id": 1170, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 1168, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 22}}, {"id": 1171, "type": "preproc_def", "text": "#define LONGEST_MATCH_SLOW\n", "parent": 886, "children": [1172, 1173], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 188, "column": 0}}, {"id": 1172, "type": "#define", "text": "#define", "parent": 1171, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 7}}, {"id": 1173, "type": "identifier", "text": "LONGEST_MATCH_SLOW", "parent": 1171, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 26}}, {"id": 1174, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_slow_unaligned_32\n", "parent": 886, "children": [1175, 1176, 1177], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 189, "column": 0}}, {"id": 1175, "type": "#define", "text": "#define", "parent": 1174, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 7}}, {"id": 1176, "type": "identifier", "text": "LONGEST_MATCH", "parent": 1174, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 21}}, {"id": 1177, "type": "preproc_arg", "text": "longest_match_slow_unaligned_32", "parent": 1174, "children": [], "start_point": {"row": 188, "column": 28}, "end_point": {"row": 188, "column": 59}}, {"id": 1178, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_32_static\n", "parent": 886, "children": [1179, 1180, 1181], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 190, "column": 0}}, {"id": 1179, "type": "#define", "text": "#define", "parent": 1178, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 7}}, {"id": 1180, "type": "identifier", "text": "COMPARE256", "parent": 1178, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 18}}, {"id": 1181, "type": "preproc_arg", "text": "compare256_unaligned_32_static", "parent": 1178, "children": [], "start_point": {"row": 189, "column": 28}, "end_point": {"row": 189, "column": 58}}, {"id": 1182, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_32_static\n", "parent": 886, "children": [1183, 1184, 1185], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 191, "column": 0}}, {"id": 1183, "type": "#define", "text": "#define", "parent": 1182, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 7}}, {"id": 1184, "type": "identifier", "text": "COMPARE258", "parent": 1182, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 18}}, {"id": 1185, "type": "preproc_arg", "text": "compare258_unaligned_32_static", "parent": 1182, "children": [], "start_point": {"row": 190, "column": 28}, "end_point": {"row": 190, "column": 58}}, {"id": 1186, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 886, "children": [1187, 1188], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 0}}, {"id": 1187, "type": "#include", "text": "#include", "parent": 1186, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 8}}, {"id": 1188, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 1186, "children": [], "start_point": {"row": 192, "column": 9}, "end_point": {"row": 192, "column": 22}}, {"id": 1189, "type": "#endif", "text": "#endif", "parent": 886, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 6}}, {"id": 1190, "type": "preproc_if", "text": "#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#endif", "parent": 644, "children": [1191, 1192, 1200, 1201, 1348, 1444, 1471, 1475, 1479, 1483, 1486, 1489, 1493, 1497, 1501, 1504], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 251, "column": 6}}, {"id": 1191, "type": "#if", "text": "#if", "parent": 1190, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 3}}, {"id": 1192, "type": "binary_expression", "text": "defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)", "parent": 1190, "children": [1193, 1196, 1197], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 58}}, {"id": 1193, "type": "preproc_defined", "text": "defined(UNALIGNED64_OK)", "parent": 1192, "children": [1194, 1195], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 27}}, {"id": 1194, "type": "defined", "text": "defined", "parent": 1193, "children": [], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 11}}, {"id": 1195, "type": "identifier", "text": "UNALIGNED64_OK", "parent": 1193, "children": [], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 26}}, {"id": 1196, "type": "&&", "text": "&&", "parent": 1192, "children": [], "start_point": {"row": 196, "column": 28}, "end_point": {"row": 196, "column": 30}}, {"id": 1197, "type": "preproc_defined", "text": "defined(HAVE_BUILTIN_CTZLL)", "parent": 1192, "children": [1198, 1199], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 58}}, {"id": 1198, "type": "defined", "text": "defined", "parent": 1197, "children": [], "start_point": {"row": 196, "column": 31}, "end_point": {"row": 196, "column": 38}}, {"id": 1199, "type": "identifier", "text": "HAVE_BUILTIN_CTZLL", "parent": 1197, "children": [], "start_point": {"row": 196, "column": 39}, "end_point": {"row": 196, "column": 57}}, {"id": 1200, "type": "\n", "text": "\n", "parent": 1190, "children": [], "start_point": {"row": 196, "column": 58}, "end_point": {"row": 197, "column": 0}}, {"id": 1201, "type": "function_definition", "text": "static inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}", "parent": 1190, "children": [1202, 1204, 1205], "start_point": {"row": 198, "column": 0}, "end_point": {"row": 221, "column": 1}}, {"id": 1202, "type": "storage_class_specifier", "text": "inline", "parent": 1201, "children": [1203], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 13}}, {"id": 1203, "type": "inline", "text": "inline", "parent": 1202, "children": [], "start_point": {"row": 198, "column": 7}, "end_point": {"row": 198, "column": 13}}, {"id": 1204, "type": "primitive_type", "text": "uint32_t", "parent": 1201, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 22}}, {"id": 1205, "type": "function_declarator", "text": "compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)", "parent": 1201, "children": [1206, 1207], "start_point": {"row": 198, "column": 23}, "end_point": {"row": 198, "column": 107}}, {"id": 1206, "type": "identifier", "text": "compare256_unaligned_64_static", "parent": 1205, "children": [], "start_point": {"row": 198, "column": 23}, "end_point": {"row": 198, "column": 53}}, {"id": 1207, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 1205, "children": [1208, 1215], "start_point": {"row": 198, "column": 53}, "end_point": {"row": 198, "column": 107}}, {"id": 1208, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 1207, "children": [1209, 1212], "start_point": {"row": 198, "column": 54}, "end_point": {"row": 198, "column": 79}}, {"id": 1209, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1208, "children": [1210, 1211], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 73}}, {"id": 1210, "type": "unsigned", "text": "unsigned", "parent": 1209, "children": [], "start_point": {"row": 198, "column": 60}, "end_point": {"row": 198, "column": 68}}, {"id": 1211, "type": "primitive_type", "text": "char", "parent": 1209, "children": [], "start_point": {"row": 198, "column": 69}, "end_point": {"row": 198, "column": 73}}, {"id": 1212, "type": "pointer_declarator", "text": "*src0", "parent": 1208, "children": [1213, 1214], "start_point": {"row": 198, "column": 74}, "end_point": {"row": 198, "column": 79}}, {"id": 1213, "type": "*", "text": "*", "parent": 1212, "children": [], "start_point": {"row": 198, "column": 74}, "end_point": {"row": 198, "column": 75}}, {"id": 1214, "type": "identifier", "text": "src0", "parent": 1212, "children": [], "start_point": {"row": 198, "column": 75}, "end_point": {"row": 198, "column": 79}}, {"id": 1215, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 1207, "children": [1216, 1219], "start_point": {"row": 198, "column": 81}, "end_point": {"row": 198, "column": 106}}, {"id": 1216, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1215, "children": [1217, 1218], "start_point": {"row": 198, "column": 87}, "end_point": {"row": 198, "column": 100}}, {"id": 1217, "type": "unsigned", "text": "unsigned", "parent": 1216, "children": [], "start_point": {"row": 198, "column": 87}, "end_point": {"row": 198, "column": 95}}, {"id": 1218, "type": "primitive_type", "text": "char", "parent": 1216, "children": [], "start_point": {"row": 198, "column": 96}, "end_point": {"row": 198, "column": 100}}, {"id": 1219, "type": "pointer_declarator", "text": "*src1", "parent": 1215, "children": [1220, 1221], "start_point": {"row": 198, "column": 101}, "end_point": {"row": 198, "column": 106}}, {"id": 1220, "type": "*", "text": "*", "parent": 1219, "children": [], "start_point": {"row": 198, "column": 101}, "end_point": {"row": 198, "column": 102}}, {"id": 1221, "type": "identifier", "text": "src1", "parent": 1219, "children": [], "start_point": {"row": 198, "column": 102}, "end_point": {"row": 198, "column": 106}}, {"id": 1222, "type": "declaration", "text": "uint32_t len = 0;", "parent": 1201, "children": [1223, 1224], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 21}}, {"id": 1223, "type": "primitive_type", "text": "uint32_t", "parent": 1222, "children": [], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 12}}, {"id": 1224, "type": "init_declarator", "text": "len = 0", "parent": 1222, "children": [1225, 1226, 1227], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 20}}, {"id": 1225, "type": "identifier", "text": "len", "parent": 1224, "children": [], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 16}}, {"id": 1226, "type": "=", "text": "=", "parent": 1224, "children": [], "start_point": {"row": 199, "column": 17}, "end_point": {"row": 199, "column": 18}}, {"id": 1227, "type": "number_literal", "text": "0", "parent": 1224, "children": [], "start_point": {"row": 199, "column": 19}, "end_point": {"row": 199, "column": 20}}, {"id": 1228, "type": "do_statement", "text": "do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);", "parent": 1201, "children": [1341], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 218, "column": 24}}, {"id": 1229, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif", "parent": 1228, "children": [1230, 1231, 1247, 1248, 1261, 1274, 1294], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 209, "column": 6}}, {"id": 1230, "type": "#if", "text": "#if", "parent": 1229, "children": [], "start_point": {"row": 202, "column": 0}, "end_point": {"row": 202, "column": 3}}, {"id": 1231, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 1229, "children": [1232, 1242, 1243], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 60}}, {"id": 1232, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 1231, "children": [1233, 1236, 1237], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 44}}, {"id": 1233, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 1232, "children": [1234, 1235], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 21}}, {"id": 1234, "type": "defined", "text": "defined", "parent": 1233, "children": [], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 202, "column": 11}}, {"id": 1235, "type": "identifier", "text": "__GNUC__", "parent": 1233, "children": [], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 20}}, {"id": 1236, "type": "&&", "text": "&&", "parent": 1232, "children": [], "start_point": {"row": 202, "column": 22}, "end_point": {"row": 202, "column": 24}}, {"id": 1237, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 1232, "children": [1238, 1239], "start_point": {"row": 202, "column": 25}, "end_point": {"row": 202, "column": 44}}, {"id": 1238, "type": "!", "text": "!", "parent": 1237, "children": [], "start_point": {"row": 202, "column": 25}, "end_point": {"row": 202, "column": 26}}, {"id": 1239, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 1237, "children": [1240, 1241], "start_point": {"row": 202, "column": 26}, "end_point": {"row": 202, "column": 44}}, {"id": 1240, "type": "defined", "text": "defined", "parent": 1239, "children": [], "start_point": {"row": 202, "column": 26}, "end_point": {"row": 202, "column": 33}}, {"id": 1241, "type": "identifier", "text": "__clang__", "parent": 1239, "children": [], "start_point": {"row": 202, "column": 34}, "end_point": {"row": 202, "column": 43}}, {"id": 1242, "type": "&&", "text": "&&", "parent": 1231, "children": [], "start_point": {"row": 202, "column": 45}, "end_point": {"row": 202, "column": 47}}, {"id": 1243, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 1231, "children": [1244, 1245, 1246], "start_point": {"row": 202, "column": 48}, "end_point": {"row": 202, "column": 60}}, {"id": 1244, "type": "identifier", "text": "__GNUC__", "parent": 1243, "children": [], "start_point": {"row": 202, "column": 48}, "end_point": {"row": 202, "column": 56}}, {"id": 1245, "type": "<", "text": "<", "parent": 1243, "children": [], "start_point": {"row": 202, "column": 57}, "end_point": {"row": 202, "column": 58}}, {"id": 1246, "type": "number_literal", "text": "8", "parent": 1243, "children": [], "start_point": {"row": 202, "column": 59}, "end_point": {"row": 202, "column": 60}}, {"id": 1247, "type": "\n", "text": "\n", "parent": 1229, "children": [], "start_point": {"row": 202, "column": 60}, "end_point": {"row": 203, "column": 0}}, {"id": 1248, "type": "declaration", "text": "uint64_t sv = *(uint64_t *)src0;", "parent": 1229, "children": [1249, 1250], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 40}}, {"id": 1249, "type": "primitive_type", "text": "uint64_t", "parent": 1248, "children": [], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 16}}, {"id": 1250, "type": "init_declarator", "text": "sv = *(uint64_t *)src0", "parent": 1248, "children": [1251, 1252, 1253], "start_point": {"row": 203, "column": 17}, "end_point": {"row": 203, "column": 39}}, {"id": 1251, "type": "identifier", "text": "sv", "parent": 1250, "children": [], "start_point": {"row": 203, "column": 17}, "end_point": {"row": 203, "column": 19}}, {"id": 1252, "type": "=", "text": "=", "parent": 1250, "children": [], "start_point": {"row": 203, "column": 20}, "end_point": {"row": 203, "column": 21}}, {"id": 1253, "type": "pointer_expression", "text": "*(uint64_t *)src0", "parent": 1250, "children": [1254, 1255], "start_point": {"row": 203, "column": 22}, "end_point": {"row": 203, "column": 39}}, {"id": 1254, "type": "*", "text": "*", "parent": 1253, "children": [], "start_point": {"row": 203, "column": 22}, "end_point": {"row": 203, "column": 23}}, {"id": 1255, "type": "cast_expression", "text": "(uint64_t *)src0", "parent": 1253, "children": [1256, 1260], "start_point": {"row": 203, "column": 23}, "end_point": {"row": 203, "column": 39}}, {"id": 1256, "type": "type_descriptor", "text": "uint64_t *", "parent": 1255, "children": [1257, 1258], "start_point": {"row": 203, "column": 24}, "end_point": {"row": 203, "column": 34}}, {"id": 1257, "type": "primitive_type", "text": "uint64_t", "parent": 1256, "children": [], "start_point": {"row": 203, "column": 24}, "end_point": {"row": 203, "column": 32}}, {"id": 1258, "type": "abstract_pointer_declarator", "text": "*", "parent": 1256, "children": [1259], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 34}}, {"id": 1259, "type": "*", "text": "*", "parent": 1258, "children": [], "start_point": {"row": 203, "column": 33}, "end_point": {"row": 203, "column": 34}}, {"id": 1260, "type": "identifier", "text": "src0", "parent": 1255, "children": [], "start_point": {"row": 203, "column": 35}, "end_point": {"row": 203, "column": 39}}, {"id": 1261, "type": "declaration", "text": "uint64_t mv = *(uint64_t *)src1;", "parent": 1229, "children": [1262, 1263], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 40}}, {"id": 1262, "type": "primitive_type", "text": "uint64_t", "parent": 1261, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 16}}, {"id": 1263, "type": "init_declarator", "text": "mv = *(uint64_t *)src1", "parent": 1261, "children": [1264, 1265, 1266], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 39}}, {"id": 1264, "type": "identifier", "text": "mv", "parent": 1263, "children": [], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 19}}, {"id": 1265, "type": "=", "text": "=", "parent": 1263, "children": [], "start_point": {"row": 204, "column": 20}, "end_point": {"row": 204, "column": 21}}, {"id": 1266, "type": "pointer_expression", "text": "*(uint64_t *)src1", "parent": 1263, "children": [1267, 1268], "start_point": {"row": 204, "column": 22}, "end_point": {"row": 204, "column": 39}}, {"id": 1267, "type": "*", "text": "*", "parent": 1266, "children": [], "start_point": {"row": 204, "column": 22}, "end_point": {"row": 204, "column": 23}}, {"id": 1268, "type": "cast_expression", "text": "(uint64_t *)src1", "parent": 1266, "children": [1269, 1273], "start_point": {"row": 204, "column": 23}, "end_point": {"row": 204, "column": 39}}, {"id": 1269, "type": "type_descriptor", "text": "uint64_t *", "parent": 1268, "children": [1270, 1271], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 34}}, {"id": 1270, "type": "primitive_type", "text": "uint64_t", "parent": 1269, "children": [], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 32}}, {"id": 1271, "type": "abstract_pointer_declarator", "text": "*", "parent": 1269, "children": [1272], "start_point": {"row": 204, "column": 33}, "end_point": {"row": 204, "column": 34}}, {"id": 1272, "type": "*", "text": "*", "parent": 1271, "children": [], "start_point": {"row": 204, "column": 33}, "end_point": {"row": 204, "column": 34}}, {"id": 1273, "type": "identifier", "text": "src1", "parent": 1268, "children": [], "start_point": {"row": 204, "column": 35}, "end_point": {"row": 204, "column": 39}}, {"id": 1274, "type": "preproc_else", "text": "#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);", "parent": 1229, "children": [1275, 1276], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 208, "column": 29}}, {"id": 1275, "type": "#else", "text": "#else", "parent": 1274, "children": [], "start_point": {"row": 205, "column": 0}, "end_point": {"row": 205, "column": 5}}, {"id": 1276, "type": "declaration", "text": "uint64_t sv, mv;", "parent": 1274, "children": [1277, 1278, 1279], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 24}}, {"id": 1277, "type": "primitive_type", "text": "uint64_t", "parent": 1276, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 16}}, {"id": 1278, "type": "identifier", "text": "sv", "parent": 1276, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 19}}, {"id": 1279, "type": "identifier", "text": "mv", "parent": 1276, "children": [], "start_point": {"row": 206, "column": 21}, "end_point": {"row": 206, "column": 23}}, {"id": 1280, "type": "call_expression", "text": "memcpy(&sv, src0, 8)", "parent": 1274, "children": [1281, 1282], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 28}}, {"id": 1281, "type": "identifier", "text": "memcpy", "parent": 1280, "children": [], "start_point": {"row": 207, "column": 8}, "end_point": {"row": 207, "column": 14}}, {"id": 1282, "type": "argument_list", "text": "(&sv, src0, 8)", "parent": 1280, "children": [1283, 1285, 1286], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 28}}, {"id": 1283, "type": "pointer_expression", "text": "&sv", "parent": 1282, "children": [1284], "start_point": {"row": 207, "column": 15}, "end_point": {"row": 207, "column": 18}}, {"id": 1284, "type": "identifier", "text": "sv", "parent": 1283, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 18}}, {"id": 1285, "type": "identifier", "text": "src0", "parent": 1282, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 24}}, {"id": 1286, "type": "number_literal", "text": "8", "parent": 1282, "children": [], "start_point": {"row": 207, "column": 26}, "end_point": {"row": 207, "column": 27}}, {"id": 1287, "type": "call_expression", "text": "memcpy(&mv, src1, 8)", "parent": 1274, "children": [1288, 1289], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 28}}, {"id": 1288, "type": "identifier", "text": "memcpy", "parent": 1287, "children": [], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 14}}, {"id": 1289, "type": "argument_list", "text": "(&mv, src1, 8)", "parent": 1287, "children": [1290, 1292, 1293], "start_point": {"row": 208, "column": 14}, "end_point": {"row": 208, "column": 28}}, {"id": 1290, "type": "pointer_expression", "text": "&mv", "parent": 1289, "children": [1291], "start_point": {"row": 208, "column": 15}, "end_point": {"row": 208, "column": 18}}, {"id": 1291, "type": "identifier", "text": "mv", "parent": 1290, "children": [], "start_point": {"row": 208, "column": 16}, "end_point": {"row": 208, "column": 18}}, {"id": 1292, "type": "identifier", "text": "src1", "parent": 1289, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 24}}, {"id": 1293, "type": "number_literal", "text": "8", "parent": 1289, "children": [], "start_point": {"row": 208, "column": 26}, "end_point": {"row": 208, "column": 27}}, {"id": 1294, "type": "#endif", "text": "#endif", "parent": 1229, "children": [], "start_point": {"row": 209, "column": 0}, "end_point": {"row": 209, "column": 6}}, {"id": 1295, "type": "declaration", "text": "uint64_t diff = sv ^ mv;", "parent": 1228, "children": [1296, 1297], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 32}}, {"id": 1296, "type": "primitive_type", "text": "uint64_t", "parent": 1295, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 16}}, {"id": 1297, "type": "init_declarator", "text": "diff = sv ^ mv", "parent": 1295, "children": [1298, 1299, 1300], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 31}}, {"id": 1298, "type": "identifier", "text": "diff", "parent": 1297, "children": [], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 21}}, {"id": 1299, "type": "=", "text": "=", "parent": 1297, "children": [], "start_point": {"row": 210, "column": 22}, "end_point": {"row": 210, "column": 23}}, {"id": 1300, "type": "binary_expression", "text": "sv ^ mv", "parent": 1297, "children": [1301, 1302, 1303], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 31}}, {"id": 1301, "type": "identifier", "text": "sv", "parent": 1300, "children": [], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 26}}, {"id": 1302, "type": "^", "text": "^", "parent": 1300, "children": [], "start_point": {"row": 210, "column": 27}, "end_point": {"row": 210, "column": 28}}, {"id": 1303, "type": "identifier", "text": "mv", "parent": 1300, "children": [], "start_point": {"row": 210, "column": 29}, "end_point": {"row": 210, "column": 31}}, {"id": 1304, "type": "if_statement", "text": "if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }", "parent": 1228, "children": [1305], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 215, "column": 9}}, {"id": 1305, "type": "parenthesized_expression", "text": "(diff)", "parent": 1304, "children": [1306], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 17}}, {"id": 1306, "type": "identifier", "text": "diff", "parent": 1305, "children": [], "start_point": {"row": 212, "column": 12}, "end_point": {"row": 212, "column": 16}}, {"id": 1307, "type": "declaration", "text": "uint64_t match_byte = __builtin_ctzll(diff) / 8;", "parent": 1304, "children": [1308, 1309], "start_point": {"row": 213, "column": 12}, "end_point": {"row": 213, "column": 60}}, {"id": 1308, "type": "primitive_type", "text": "uint64_t", "parent": 1307, "children": [], "start_point": {"row": 213, "column": 12}, "end_point": {"row": 213, "column": 20}}, {"id": 1309, "type": "init_declarator", "text": "match_byte = __builtin_ctzll(diff) / 8", "parent": 1307, "children": [1310, 1311, 1312], "start_point": {"row": 213, "column": 21}, "end_point": {"row": 213, "column": 59}}, {"id": 1310, "type": "identifier", "text": "match_byte", "parent": 1309, "children": [], "start_point": {"row": 213, "column": 21}, "end_point": {"row": 213, "column": 31}}, {"id": 1311, "type": "=", "text": "=", "parent": 1309, "children": [], "start_point": {"row": 213, "column": 32}, "end_point": {"row": 213, "column": 33}}, {"id": 1312, "type": "binary_expression", "text": "__builtin_ctzll(diff) / 8", "parent": 1309, "children": [1313, 1317, 1318], "start_point": {"row": 213, "column": 34}, "end_point": {"row": 213, "column": 59}}, {"id": 1313, "type": "call_expression", "text": "__builtin_ctzll(diff)", "parent": 1312, "children": [1314, 1315], "start_point": {"row": 213, "column": 34}, "end_point": {"row": 213, "column": 55}}, {"id": 1314, "type": "identifier", "text": "__builtin_ctzll", "parent": 1313, "children": [], "start_point": {"row": 213, "column": 34}, "end_point": {"row": 213, "column": 49}}, {"id": 1315, "type": "argument_list", "text": "(diff)", "parent": 1313, "children": [1316], "start_point": {"row": 213, "column": 49}, "end_point": {"row": 213, "column": 55}}, {"id": 1316, "type": "identifier", "text": "diff", "parent": 1315, "children": [], "start_point": {"row": 213, "column": 50}, "end_point": {"row": 213, "column": 54}}, {"id": 1317, "type": "/", "text": "/", "parent": 1312, "children": [], "start_point": {"row": 213, "column": 56}, "end_point": {"row": 213, "column": 57}}, {"id": 1318, "type": "number_literal", "text": "8", "parent": 1312, "children": [], "start_point": {"row": 213, "column": 58}, "end_point": {"row": 213, "column": 59}}, {"id": 1319, "type": "return_statement", "text": "return len + (uint32_t)match_byte;", "parent": 1304, "children": [1320], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 46}}, {"id": 1320, "type": "binary_expression", "text": "len + (uint32_t)match_byte", "parent": 1319, "children": [1321, 1322, 1323], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 45}}, {"id": 1321, "type": "identifier", "text": "len", "parent": 1320, "children": [], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 22}}, {"id": 1322, "type": "+", "text": "+", "parent": 1320, "children": [], "start_point": {"row": 214, "column": 23}, "end_point": {"row": 214, "column": 24}}, {"id": 1323, "type": "cast_expression", "text": "(uint32_t)match_byte", "parent": 1320, "children": [1324, 1326], "start_point": {"row": 214, "column": 25}, "end_point": {"row": 214, "column": 45}}, {"id": 1324, "type": "type_descriptor", "text": "uint32_t", "parent": 1323, "children": [1325], "start_point": {"row": 214, "column": 26}, "end_point": {"row": 214, "column": 34}}, {"id": 1325, "type": "primitive_type", "text": "uint32_t", "parent": 1324, "children": [], "start_point": {"row": 214, "column": 26}, "end_point": {"row": 214, "column": 34}}, {"id": 1326, "type": "identifier", "text": "match_byte", "parent": 1323, "children": [], "start_point": {"row": 214, "column": 35}, "end_point": {"row": 214, "column": 45}}, {"id": 1327, "type": "comma_expression", "text": "src0 += 8, src1 += 8, len += 8", "parent": 1228, "children": [1328, 1332], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 38}}, {"id": 1328, "type": "assignment_expression", "text": "src0 += 8", "parent": 1327, "children": [1329, 1330, 1331], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 17}}, {"id": 1329, "type": "identifier", "text": "src0", "parent": 1328, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 12}}, {"id": 1330, "type": "+=", "text": "+=", "parent": 1328, "children": [], "start_point": {"row": 217, "column": 13}, "end_point": {"row": 217, "column": 15}}, {"id": 1331, "type": "number_literal", "text": "8", "parent": 1328, "children": [], "start_point": {"row": 217, "column": 16}, "end_point": {"row": 217, "column": 17}}, {"id": 1332, "type": "comma_expression", "text": "src1 += 8, len += 8", "parent": 1327, "children": [1333, 1337], "start_point": {"row": 217, "column": 19}, "end_point": {"row": 217, "column": 38}}, {"id": 1333, "type": "assignment_expression", "text": "src1 += 8", "parent": 1332, "children": [1334, 1335, 1336], "start_point": {"row": 217, "column": 19}, "end_point": {"row": 217, "column": 28}}, {"id": 1334, "type": "identifier", "text": "src1", "parent": 1333, "children": [], "start_point": {"row": 217, "column": 19}, "end_point": {"row": 217, "column": 23}}, {"id": 1335, "type": "+=", "text": "+=", "parent": 1333, "children": [], "start_point": {"row": 217, "column": 24}, "end_point": {"row": 217, "column": 26}}, {"id": 1336, "type": "number_literal", "text": "8", "parent": 1333, "children": [], "start_point": {"row": 217, "column": 27}, "end_point": {"row": 217, "column": 28}}, {"id": 1337, "type": "assignment_expression", "text": "len += 8", "parent": 1332, "children": [1338, 1339, 1340], "start_point": {"row": 217, "column": 30}, "end_point": {"row": 217, "column": 38}}, {"id": 1338, "type": "identifier", "text": "len", "parent": 1337, "children": [], "start_point": {"row": 217, "column": 30}, "end_point": {"row": 217, "column": 33}}, {"id": 1339, "type": "+=", "text": "+=", "parent": 1337, "children": [], "start_point": {"row": 217, "column": 34}, "end_point": {"row": 217, "column": 36}}, {"id": 1340, "type": "number_literal", "text": "8", "parent": 1337, "children": [], "start_point": {"row": 217, "column": 37}, "end_point": {"row": 217, "column": 38}}, {"id": 1341, "type": "parenthesized_expression", "text": "(len < 256)", "parent": 1228, "children": [1342], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 23}}, {"id": 1342, "type": "binary_expression", "text": "len < 256", "parent": 1341, "children": [1343, 1344, 1345], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 22}}, {"id": 1343, "type": "identifier", "text": "len", "parent": 1342, "children": [], "start_point": {"row": 218, "column": 13}, "end_point": {"row": 218, "column": 16}}, {"id": 1344, "type": "<", "text": "<", "parent": 1342, "children": [], "start_point": {"row": 218, "column": 17}, "end_point": {"row": 218, "column": 18}}, {"id": 1345, "type": "number_literal", "text": "256", "parent": 1342, "children": [], "start_point": {"row": 218, "column": 19}, "end_point": {"row": 218, "column": 22}}, {"id": 1346, "type": "return_statement", "text": "return 256;", "parent": 1201, "children": [1347], "start_point": {"row": 220, "column": 4}, "end_point": {"row": 220, "column": 15}}, {"id": 1347, "type": "number_literal", "text": "256", "parent": 1346, "children": [], "start_point": {"row": 220, "column": 11}, "end_point": {"row": 220, "column": 14}}, {"id": 1348, "type": "function_definition", "text": "static inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}", "parent": 1190, "children": [1349, 1351, 1352], "start_point": {"row": 223, "column": 0}, "end_point": {"row": 232, "column": 1}}, {"id": 1349, "type": "storage_class_specifier", "text": "inline", "parent": 1348, "children": [1350], "start_point": {"row": 223, "column": 7}, "end_point": {"row": 223, "column": 13}}, {"id": 1350, "type": "inline", "text": "inline", "parent": 1349, "children": [], "start_point": {"row": 223, "column": 7}, "end_point": {"row": 223, "column": 13}}, {"id": 1351, "type": "primitive_type", "text": "uint32_t", "parent": 1348, "children": [], "start_point": {"row": 223, "column": 14}, "end_point": {"row": 223, "column": 22}}, {"id": 1352, "type": "function_declarator", "text": "compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)", "parent": 1348, "children": [1353, 1354], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 107}}, {"id": 1353, "type": "identifier", "text": "compare258_unaligned_64_static", "parent": 1352, "children": [], "start_point": {"row": 223, "column": 23}, "end_point": {"row": 223, "column": 53}}, {"id": 1354, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 1352, "children": [1355, 1362], "start_point": {"row": 223, "column": 53}, "end_point": {"row": 223, "column": 107}}, {"id": 1355, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 1354, "children": [1356, 1359], "start_point": {"row": 223, "column": 54}, "end_point": {"row": 223, "column": 79}}, {"id": 1356, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1355, "children": [1357, 1358], "start_point": {"row": 223, "column": 60}, "end_point": {"row": 223, "column": 73}}, {"id": 1357, "type": "unsigned", "text": "unsigned", "parent": 1356, "children": [], "start_point": {"row": 223, "column": 60}, "end_point": {"row": 223, "column": 68}}, {"id": 1358, "type": "primitive_type", "text": "char", "parent": 1356, "children": [], "start_point": {"row": 223, "column": 69}, "end_point": {"row": 223, "column": 73}}, {"id": 1359, "type": "pointer_declarator", "text": "*src0", "parent": 1355, "children": [1360, 1361], "start_point": {"row": 223, "column": 74}, "end_point": {"row": 223, "column": 79}}, {"id": 1360, "type": "*", "text": "*", "parent": 1359, "children": [], "start_point": {"row": 223, "column": 74}, "end_point": {"row": 223, "column": 75}}, {"id": 1361, "type": "identifier", "text": "src0", "parent": 1359, "children": [], "start_point": {"row": 223, "column": 75}, "end_point": {"row": 223, "column": 79}}, {"id": 1362, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 1354, "children": [1363, 1366], "start_point": {"row": 223, "column": 81}, "end_point": {"row": 223, "column": 106}}, {"id": 1363, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1362, "children": [1364, 1365], "start_point": {"row": 223, "column": 87}, "end_point": {"row": 223, "column": 100}}, {"id": 1364, "type": "unsigned", "text": "unsigned", "parent": 1363, "children": [], "start_point": {"row": 223, "column": 87}, "end_point": {"row": 223, "column": 95}}, {"id": 1365, "type": "primitive_type", "text": "char", "parent": 1363, "children": [], "start_point": {"row": 223, "column": 96}, "end_point": {"row": 223, "column": 100}}, {"id": 1366, "type": "pointer_declarator", "text": "*src1", "parent": 1362, "children": [1367, 1368], "start_point": {"row": 223, "column": 101}, "end_point": {"row": 223, "column": 106}}, {"id": 1367, "type": "*", "text": "*", "parent": 1366, "children": [], "start_point": {"row": 223, "column": 101}, "end_point": {"row": 223, "column": 102}}, {"id": 1368, "type": "identifier", "text": "src1", "parent": 1366, "children": [], "start_point": {"row": 223, "column": 102}, "end_point": {"row": 223, "column": 106}}, {"id": 1369, "type": "preproc_if", "text": "#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif", "parent": 1348, "children": [1370, 1371, 1387, 1388, 1418], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 228, "column": 6}}, {"id": 1370, "type": "#if", "text": "#if", "parent": 1369, "children": [], "start_point": {"row": 224, "column": 0}, "end_point": {"row": 224, "column": 3}}, {"id": 1371, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8", "parent": 1369, "children": [1372, 1382, 1383], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 60}}, {"id": 1372, "type": "binary_expression", "text": "defined(__GNUC__) && !defined(__clang__)", "parent": 1371, "children": [1373, 1376, 1377], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 44}}, {"id": 1373, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 1372, "children": [1374, 1375], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 21}}, {"id": 1374, "type": "defined", "text": "defined", "parent": 1373, "children": [], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 11}}, {"id": 1375, "type": "identifier", "text": "__GNUC__", "parent": 1373, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 20}}, {"id": 1376, "type": "&&", "text": "&&", "parent": 1372, "children": [], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 24}}, {"id": 1377, "type": "unary_expression", "text": "!defined(__clang__)", "parent": 1372, "children": [1378, 1379], "start_point": {"row": 224, "column": 25}, "end_point": {"row": 224, "column": 44}}, {"id": 1378, "type": "!", "text": "!", "parent": 1377, "children": [], "start_point": {"row": 224, "column": 25}, "end_point": {"row": 224, "column": 26}}, {"id": 1379, "type": "preproc_defined", "text": "defined(__clang__)", "parent": 1377, "children": [1380, 1381], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 44}}, {"id": 1380, "type": "defined", "text": "defined", "parent": 1379, "children": [], "start_point": {"row": 224, "column": 26}, "end_point": {"row": 224, "column": 33}}, {"id": 1381, "type": "identifier", "text": "__clang__", "parent": 1379, "children": [], "start_point": {"row": 224, "column": 34}, "end_point": {"row": 224, "column": 43}}, {"id": 1382, "type": "&&", "text": "&&", "parent": 1371, "children": [], "start_point": {"row": 224, "column": 45}, "end_point": {"row": 224, "column": 47}}, {"id": 1383, "type": "binary_expression", "text": "__GNUC__ < 8", "parent": 1371, "children": [1384, 1385, 1386], "start_point": {"row": 224, "column": 48}, "end_point": {"row": 224, "column": 60}}, {"id": 1384, "type": "identifier", "text": "__GNUC__", "parent": 1383, "children": [], "start_point": {"row": 224, "column": 48}, "end_point": {"row": 224, "column": 56}}, {"id": 1385, "type": "<", "text": "<", "parent": 1383, "children": [], "start_point": {"row": 224, "column": 57}, "end_point": {"row": 224, "column": 58}}, {"id": 1386, "type": "number_literal", "text": "8", "parent": 1383, "children": [], "start_point": {"row": 224, "column": 59}, "end_point": {"row": 224, "column": 60}}, {"id": 1387, "type": "\n", "text": "\n", "parent": 1369, "children": [], "start_point": {"row": 224, "column": 60}, "end_point": {"row": 225, "column": 0}}, {"id": 1388, "type": "if_statement", "text": "if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))", "parent": 1369, "children": [1389, 1408, 1410], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 227, "column": 30}}, {"id": 1389, "type": "parenthesized_expression", "text": "(*(uint16_t *)src0 != *(uint16_t *)src1)", "parent": 1388, "children": [1390], "start_point": {"row": 225, "column": 7}, "end_point": {"row": 225, "column": 47}}, {"id": 1390, "type": "binary_expression", "text": "*(uint16_t *)src0 != *(uint16_t *)src1", "parent": 1389, "children": [1391, 1399, 1400], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 46}}, {"id": 1391, "type": "pointer_expression", "text": "*(uint16_t *)src0", "parent": 1390, "children": [1392, 1393], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 25}}, {"id": 1392, "type": "*", "text": "*", "parent": 1391, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 9}}, {"id": 1393, "type": "cast_expression", "text": "(uint16_t *)src0", "parent": 1391, "children": [1394, 1398], "start_point": {"row": 225, "column": 9}, "end_point": {"row": 225, "column": 25}}, {"id": 1394, "type": "type_descriptor", "text": "uint16_t *", "parent": 1393, "children": [1395, 1396], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 20}}, {"id": 1395, "type": "primitive_type", "text": "uint16_t", "parent": 1394, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 18}}, {"id": 1396, "type": "abstract_pointer_declarator", "text": "*", "parent": 1394, "children": [1397], "start_point": {"row": 225, "column": 19}, "end_point": {"row": 225, "column": 20}}, {"id": 1397, "type": "*", "text": "*", "parent": 1396, "children": [], "start_point": {"row": 225, "column": 19}, "end_point": {"row": 225, "column": 20}}, {"id": 1398, "type": "identifier", "text": "src0", "parent": 1393, "children": [], "start_point": {"row": 225, "column": 21}, "end_point": {"row": 225, "column": 25}}, {"id": 1399, "type": "!=", "text": "!=", "parent": 1390, "children": [], "start_point": {"row": 225, "column": 26}, "end_point": {"row": 225, "column": 28}}, {"id": 1400, "type": "pointer_expression", "text": "*(uint16_t *)src1", "parent": 1390, "children": [1401, 1402], "start_point": {"row": 225, "column": 29}, "end_point": {"row": 225, "column": 46}}, {"id": 1401, "type": "*", "text": "*", "parent": 1400, "children": [], "start_point": {"row": 225, "column": 29}, "end_point": {"row": 225, "column": 30}}, {"id": 1402, "type": "cast_expression", "text": "(uint16_t *)src1", "parent": 1400, "children": [1403, 1407], "start_point": {"row": 225, "column": 30}, "end_point": {"row": 225, "column": 46}}, {"id": 1403, "type": "type_descriptor", "text": "uint16_t *", "parent": 1402, "children": [1404, 1405], "start_point": {"row": 225, "column": 31}, "end_point": {"row": 225, "column": 41}}, {"id": 1404, "type": "primitive_type", "text": "uint16_t", "parent": 1403, "children": [], "start_point": {"row": 225, "column": 31}, "end_point": {"row": 225, "column": 39}}, {"id": 1405, "type": "abstract_pointer_declarator", "text": "*", "parent": 1403, "children": [1406], "start_point": {"row": 225, "column": 40}, "end_point": {"row": 225, "column": 41}}, {"id": 1406, "type": "*", "text": "*", "parent": 1405, "children": [], "start_point": {"row": 225, "column": 40}, "end_point": {"row": 225, "column": 41}}, {"id": 1407, "type": "identifier", "text": "src1", "parent": 1402, "children": [], "start_point": {"row": 225, "column": 42}, "end_point": {"row": 225, "column": 46}}, {"id": 1408, "type": "ERROR", "text": "#else", "parent": 1388, "children": [1409], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 5}}, {"id": 1409, "type": "preproc_directive", "text": "#else", "parent": 1408, "children": [], "start_point": {"row": 226, "column": 0}, "end_point": {"row": 226, "column": 5}}, {"id": 1410, "type": "if_statement", "text": "if (memcmp(src0, src1, 2))", "parent": 1388, "children": [1411], "start_point": {"row": 227, "column": 4}, "end_point": {"row": 227, "column": 30}}, {"id": 1411, "type": "parenthesized_expression", "text": "(memcmp(src0, src1, 2))", "parent": 1410, "children": [1412], "start_point": {"row": 227, "column": 7}, "end_point": {"row": 227, "column": 30}}, {"id": 1412, "type": "call_expression", "text": "memcmp(src0, src1, 2)", "parent": 1411, "children": [1413, 1414], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 29}}, {"id": 1413, "type": "identifier", "text": "memcmp", "parent": 1412, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 14}}, {"id": 1414, "type": "argument_list", "text": "(src0, src1, 2)", "parent": 1412, "children": [1415, 1416, 1417], "start_point": {"row": 227, "column": 14}, "end_point": {"row": 227, "column": 29}}, {"id": 1415, "type": "identifier", "text": "src0", "parent": 1414, "children": [], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 19}}, {"id": 1416, "type": "identifier", "text": "src1", "parent": 1414, "children": [], "start_point": {"row": 227, "column": 21}, "end_point": {"row": 227, "column": 25}}, {"id": 1417, "type": "number_literal", "text": "2", "parent": 1414, "children": [], "start_point": {"row": 227, "column": 27}, "end_point": {"row": 227, "column": 28}}, {"id": 1418, "type": "#endif", "text": "#endif", "parent": 1369, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 6}}, {"id": 1419, "type": "return_statement", "text": "return (*src0 == *src1);", "parent": 1348, "children": [1420], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 32}}, {"id": 1420, "type": "parenthesized_expression", "text": "(*src0 == *src1)", "parent": 1419, "children": [1421], "start_point": {"row": 229, "column": 15}, "end_point": {"row": 229, "column": 31}}, {"id": 1421, "type": "binary_expression", "text": "*src0 == *src1", "parent": 1420, "children": [1422, 1425, 1426], "start_point": {"row": 229, "column": 16}, "end_point": {"row": 229, "column": 30}}, {"id": 1422, "type": "pointer_expression", "text": "*src0", "parent": 1421, "children": [1423, 1424], "start_point": {"row": 229, "column": 16}, "end_point": {"row": 229, "column": 21}}, {"id": 1423, "type": "*", "text": "*", "parent": 1422, "children": [], "start_point": {"row": 229, "column": 16}, "end_point": {"row": 229, "column": 17}}, {"id": 1424, "type": "identifier", "text": "src0", "parent": 1422, "children": [], "start_point": {"row": 229, "column": 17}, "end_point": {"row": 229, "column": 21}}, {"id": 1425, "type": "==", "text": "==", "parent": 1421, "children": [], "start_point": {"row": 229, "column": 22}, "end_point": {"row": 229, "column": 24}}, {"id": 1426, "type": "pointer_expression", "text": "*src1", "parent": 1421, "children": [1427, 1428], "start_point": {"row": 229, "column": 25}, "end_point": {"row": 229, "column": 30}}, {"id": 1427, "type": "*", "text": "*", "parent": 1426, "children": [], "start_point": {"row": 229, "column": 25}, "end_point": {"row": 229, "column": 26}}, {"id": 1428, "type": "identifier", "text": "src1", "parent": 1426, "children": [], "start_point": {"row": 229, "column": 26}, "end_point": {"row": 229, "column": 30}}, {"id": 1429, "type": "return_statement", "text": "return compare256_unaligned_64_static(src0+2, src1+2) + 2;", "parent": 1348, "children": [1430], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 62}}, {"id": 1430, "type": "binary_expression", "text": "compare256_unaligned_64_static(src0+2, src1+2) + 2", "parent": 1429, "children": [1431, 1442, 1443], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 61}}, {"id": 1431, "type": "call_expression", "text": "compare256_unaligned_64_static(src0+2, src1+2)", "parent": 1430, "children": [1432, 1433], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 57}}, {"id": 1432, "type": "identifier", "text": "compare256_unaligned_64_static", "parent": 1431, "children": [], "start_point": {"row": 231, "column": 11}, "end_point": {"row": 231, "column": 41}}, {"id": 1433, "type": "argument_list", "text": "(src0+2, src1+2)", "parent": 1431, "children": [1434, 1438], "start_point": {"row": 231, "column": 41}, "end_point": {"row": 231, "column": 57}}, {"id": 1434, "type": "binary_expression", "text": "src0+2", "parent": 1433, "children": [1435, 1436, 1437], "start_point": {"row": 231, "column": 42}, "end_point": {"row": 231, "column": 48}}, {"id": 1435, "type": "identifier", "text": "src0", "parent": 1434, "children": [], "start_point": {"row": 231, "column": 42}, "end_point": {"row": 231, "column": 46}}, {"id": 1436, "type": "+", "text": "+", "parent": 1434, "children": [], "start_point": {"row": 231, "column": 46}, "end_point": {"row": 231, "column": 47}}, {"id": 1437, "type": "number_literal", "text": "2", "parent": 1434, "children": [], "start_point": {"row": 231, "column": 47}, "end_point": {"row": 231, "column": 48}}, {"id": 1438, "type": "binary_expression", "text": "src1+2", "parent": 1433, "children": [1439, 1440, 1441], "start_point": {"row": 231, "column": 50}, "end_point": {"row": 231, "column": 56}}, {"id": 1439, "type": "identifier", "text": "src1", "parent": 1438, "children": [], "start_point": {"row": 231, "column": 50}, "end_point": {"row": 231, "column": 54}}, {"id": 1440, "type": "+", "text": "+", "parent": 1438, "children": [], "start_point": {"row": 231, "column": 54}, "end_point": {"row": 231, "column": 55}}, {"id": 1441, "type": "number_literal", "text": "2", "parent": 1438, "children": [], "start_point": {"row": 231, "column": 55}, "end_point": {"row": 231, "column": 56}}, {"id": 1442, "type": "+", "text": "+", "parent": 1430, "children": [], "start_point": {"row": 231, "column": 58}, "end_point": {"row": 231, "column": 59}}, {"id": 1443, "type": "number_literal", "text": "2", "parent": 1430, "children": [], "start_point": {"row": 231, "column": 60}, "end_point": {"row": 231, "column": 61}}, {"id": 1444, "type": "function_definition", "text": "Z_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}", "parent": 1190, "children": [1445, 1446, 1448], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 236, "column": 1}}, {"id": 1445, "type": "type_identifier", "text": "Z_INTERNAL", "parent": 1444, "children": [], "start_point": {"row": 234, "column": 0}, "end_point": {"row": 234, "column": 10}}, {"id": 1446, "type": "ERROR", "text": "uint32_t", "parent": 1444, "children": [1447], "start_point": {"row": 234, "column": 11}, "end_point": {"row": 234, "column": 19}}, {"id": 1447, "type": "identifier", "text": "uint32_t", "parent": 1446, "children": [], "start_point": {"row": 234, "column": 11}, "end_point": {"row": 234, "column": 19}}, {"id": 1448, "type": "function_declarator", "text": "compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1)", "parent": 1444, "children": [1449, 1450], "start_point": {"row": 234, "column": 20}, "end_point": {"row": 234, "column": 97}}, {"id": 1449, "type": "identifier", "text": "compare258_unaligned_64", "parent": 1448, "children": [], "start_point": {"row": 234, "column": 20}, "end_point": {"row": 234, "column": 43}}, {"id": 1450, "type": "parameter_list", "text": "(const unsigned char *src0, const unsigned char *src1)", "parent": 1448, "children": [1451, 1458], "start_point": {"row": 234, "column": 43}, "end_point": {"row": 234, "column": 97}}, {"id": 1451, "type": "parameter_declaration", "text": "const unsigned char *src0", "parent": 1450, "children": [1452, 1455], "start_point": {"row": 234, "column": 44}, "end_point": {"row": 234, "column": 69}}, {"id": 1452, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1451, "children": [1453, 1454], "start_point": {"row": 234, "column": 50}, "end_point": {"row": 234, "column": 63}}, {"id": 1453, "type": "unsigned", "text": "unsigned", "parent": 1452, "children": [], "start_point": {"row": 234, "column": 50}, "end_point": {"row": 234, "column": 58}}, {"id": 1454, "type": "primitive_type", "text": "char", "parent": 1452, "children": [], "start_point": {"row": 234, "column": 59}, "end_point": {"row": 234, "column": 63}}, {"id": 1455, "type": "pointer_declarator", "text": "*src0", "parent": 1451, "children": [1456, 1457], "start_point": {"row": 234, "column": 64}, "end_point": {"row": 234, "column": 69}}, {"id": 1456, "type": "*", "text": "*", "parent": 1455, "children": [], "start_point": {"row": 234, "column": 64}, "end_point": {"row": 234, "column": 65}}, {"id": 1457, "type": "identifier", "text": "src0", "parent": 1455, "children": [], "start_point": {"row": 234, "column": 65}, "end_point": {"row": 234, "column": 69}}, {"id": 1458, "type": "parameter_declaration", "text": "const unsigned char *src1", "parent": 1450, "children": [1459, 1462], "start_point": {"row": 234, "column": 71}, "end_point": {"row": 234, "column": 96}}, {"id": 1459, "type": "sized_type_specifier", "text": "unsigned char", "parent": 1458, "children": [1460, 1461], "start_point": {"row": 234, "column": 77}, "end_point": {"row": 234, "column": 90}}, {"id": 1460, "type": "unsigned", "text": "unsigned", "parent": 1459, "children": [], "start_point": {"row": 234, "column": 77}, "end_point": {"row": 234, "column": 85}}, {"id": 1461, "type": "primitive_type", "text": "char", "parent": 1459, "children": [], "start_point": {"row": 234, "column": 86}, "end_point": {"row": 234, "column": 90}}, {"id": 1462, "type": "pointer_declarator", "text": "*src1", "parent": 1458, "children": [1463, 1464], "start_point": {"row": 234, "column": 91}, "end_point": {"row": 234, "column": 96}}, {"id": 1463, "type": "*", "text": "*", "parent": 1462, "children": [], "start_point": {"row": 234, "column": 91}, "end_point": {"row": 234, "column": 92}}, {"id": 1464, "type": "identifier", "text": "src1", "parent": 1462, "children": [], "start_point": {"row": 234, "column": 92}, "end_point": {"row": 234, "column": 96}}, {"id": 1465, "type": "return_statement", "text": "return compare258_unaligned_64_static(src0, src1);", "parent": 1444, "children": [1466], "start_point": {"row": 235, "column": 4}, "end_point": {"row": 235, "column": 54}}, {"id": 1466, "type": "call_expression", "text": "compare258_unaligned_64_static(src0, src1)", "parent": 1465, "children": [1467, 1468], "start_point": {"row": 235, "column": 11}, "end_point": {"row": 235, "column": 53}}, {"id": 1467, "type": "identifier", "text": "compare258_unaligned_64_static", "parent": 1466, "children": [], "start_point": {"row": 235, "column": 11}, "end_point": {"row": 235, "column": 41}}, {"id": 1468, "type": "argument_list", "text": "(src0, src1)", "parent": 1466, "children": [1469, 1470], "start_point": {"row": 235, "column": 41}, "end_point": {"row": 235, "column": 53}}, {"id": 1469, "type": "identifier", "text": "src0", "parent": 1468, "children": [], "start_point": {"row": 235, "column": 42}, "end_point": {"row": 235, "column": 46}}, {"id": 1470, "type": "identifier", "text": "src1", "parent": 1468, "children": [], "start_point": {"row": 235, "column": 48}, "end_point": {"row": 235, "column": 52}}, {"id": 1471, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_unaligned_64\n", "parent": 1190, "children": [1472, 1473, 1474], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 239, "column": 0}}, {"id": 1472, "type": "#define", "text": "#define", "parent": 1471, "children": [], "start_point": {"row": 238, "column": 0}, "end_point": {"row": 238, "column": 7}}, {"id": 1473, "type": "identifier", "text": "LONGEST_MATCH", "parent": 1471, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 21}}, {"id": 1474, "type": "preproc_arg", "text": "longest_match_unaligned_64", "parent": 1471, "children": [], "start_point": {"row": 238, "column": 28}, "end_point": {"row": 238, "column": 54}}, {"id": 1475, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_64_static\n", "parent": 1190, "children": [1476, 1477, 1478], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 240, "column": 0}}, {"id": 1476, "type": "#define", "text": "#define", "parent": 1475, "children": [], "start_point": {"row": 239, "column": 0}, "end_point": {"row": 239, "column": 7}}, {"id": 1477, "type": "identifier", "text": "COMPARE256", "parent": 1475, "children": [], "start_point": {"row": 239, "column": 8}, "end_point": {"row": 239, "column": 18}}, {"id": 1478, "type": "preproc_arg", "text": "compare256_unaligned_64_static", "parent": 1475, "children": [], "start_point": {"row": 239, "column": 28}, "end_point": {"row": 239, "column": 58}}, {"id": 1479, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_64_static\n", "parent": 1190, "children": [1480, 1481, 1482], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 241, "column": 0}}, {"id": 1480, "type": "#define", "text": "#define", "parent": 1479, "children": [], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 240, "column": 7}}, {"id": 1481, "type": "identifier", "text": "COMPARE258", "parent": 1479, "children": [], "start_point": {"row": 240, "column": 8}, "end_point": {"row": 240, "column": 18}}, {"id": 1482, "type": "preproc_arg", "text": "compare258_unaligned_64_static", "parent": 1479, "children": [], "start_point": {"row": 240, "column": 28}, "end_point": {"row": 240, "column": 58}}, {"id": 1483, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 1190, "children": [1484, 1485], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 243, "column": 0}}, {"id": 1484, "type": "#include", "text": "#include", "parent": 1483, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 8}}, {"id": 1485, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 1483, "children": [], "start_point": {"row": 242, "column": 9}, "end_point": {"row": 242, "column": 22}}, {"id": 1486, "type": "preproc_def", "text": "#define LONGEST_MATCH_SLOW\n", "parent": 1190, "children": [1487, 1488], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 245, "column": 0}}, {"id": 1487, "type": "#define", "text": "#define", "parent": 1486, "children": [], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 7}}, {"id": 1488, "type": "identifier", "text": "LONGEST_MATCH_SLOW", "parent": 1486, "children": [], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 26}}, {"id": 1489, "type": "preproc_def", "text": "#define LONGEST_MATCH longest_match_slow_unaligned_64\n", "parent": 1190, "children": [1490, 1491, 1492], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 246, "column": 0}}, {"id": 1490, "type": "#define", "text": "#define", "parent": 1489, "children": [], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 7}}, {"id": 1491, "type": "identifier", "text": "LONGEST_MATCH", "parent": 1489, "children": [], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 21}}, {"id": 1492, "type": "preproc_arg", "text": "longest_match_slow_unaligned_64", "parent": 1489, "children": [], "start_point": {"row": 245, "column": 28}, "end_point": {"row": 245, "column": 59}}, {"id": 1493, "type": "preproc_def", "text": "#define COMPARE256 compare256_unaligned_64_static\n", "parent": 1190, "children": [1494, 1495, 1496], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 247, "column": 0}}, {"id": 1494, "type": "#define", "text": "#define", "parent": 1493, "children": [], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 7}}, {"id": 1495, "type": "identifier", "text": "COMPARE256", "parent": 1493, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 18}}, {"id": 1496, "type": "preproc_arg", "text": "compare256_unaligned_64_static", "parent": 1493, "children": [], "start_point": {"row": 246, "column": 28}, "end_point": {"row": 246, "column": 58}}, {"id": 1497, "type": "preproc_def", "text": "#define COMPARE258 compare258_unaligned_64_static\n", "parent": 1190, "children": [1498, 1499, 1500], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 248, "column": 0}}, {"id": 1498, "type": "#define", "text": "#define", "parent": 1497, "children": [], "start_point": {"row": 247, "column": 0}, "end_point": {"row": 247, "column": 7}}, {"id": 1499, "type": "identifier", "text": "COMPARE258", "parent": 1497, "children": [], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 18}}, {"id": 1500, "type": "preproc_arg", "text": "compare258_unaligned_64_static", "parent": 1497, "children": [], "start_point": {"row": 247, "column": 28}, "end_point": {"row": 247, "column": 58}}, {"id": 1501, "type": "preproc_include", "text": "#include \"match_tpl.h\"\n", "parent": 1190, "children": [1502, 1503], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 250, "column": 0}}, {"id": 1502, "type": "#include", "text": "#include", "parent": 1501, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 8}}, {"id": 1503, "type": "string_literal", "text": "\"match_tpl.h\"", "parent": 1501, "children": [], "start_point": {"row": 249, "column": 9}, "end_point": {"row": 249, "column": 22}}, {"id": 1504, "type": "#endif", "text": "#endif", "parent": 1190, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 6}}, {"id": 1505, "type": "#endif", "text": "#endif", "parent": 644, "children": [], "start_point": {"row": 253, "column": 0}, "end_point": {"row": 253, "column": 6}}]}, "node_categories": {"declarations": {"functions": [10, 14, 253, 257, 325, 329, 390, 730, 734, 826, 830, 889, 893, 1033, 1037, 1129, 1133, 1201, 1205, 1348, 1352, 1444, 1448], "variables": [17, 24, 31, 260, 267, 332, 339, 393, 400, 407, 737, 744, 833, 840, 896, 903, 910, 936, 949, 964, 983, 995, 1040, 1047, 1136, 1143, 1208, 1215, 1222, 1248, 1261, 1276, 1295, 1307, 1355, 1362, 1451, 1458], "classes": [11, 254, 387, 731, 890, 1034, 1202, 1349], "imports": [1, 2, 4, 5, 7, 8, 364, 365, 382, 383, 865, 866, 883, 884, 1168, 1169, 1186, 1187, 1483, 1484, 1501, 1502], "modules": [], "enums": []}, "statements": {"expressions": [39, 40, 41, 45, 50, 55, 65, 66, 67, 71, 76, 81, 91, 92, 93, 97, 102, 107, 117, 118, 119, 123, 128, 133, 143, 144, 145, 149, 154, 159, 169, 170, 171, 175, 180, 185, 195, 196, 197, 201, 206, 211, 221, 222, 223, 227, 232, 237, 246, 247, 275, 276, 277, 281, 286, 296, 297, 298, 302, 307, 317, 318, 347, 414, 415, 420, 426, 432, 433, 434, 436, 443, 445, 454, 455, 464, 467, 468, 469, 473, 476, 481, 491, 492, 497, 503, 509, 510, 511, 513, 520, 522, 531, 532, 541, 544, 545, 546, 550, 553, 558, 568, 569, 574, 580, 586, 587, 588, 590, 597, 599, 608, 609, 618, 621, 622, 623, 627, 630, 635, 646, 647, 652, 658, 664, 665, 666, 668, 675, 677, 686, 687, 696, 699, 700, 701, 705, 708, 713, 723, 724, 753, 754, 759, 765, 771, 772, 773, 775, 782, 784, 793, 794, 802, 803, 804, 808, 812, 813, 816, 820, 848, 919, 920, 925, 931, 941, 943, 954, 956, 968, 971, 975, 978, 988, 993, 1000, 1001, 1008, 1012, 1017, 1026, 1027, 1056, 1057, 1062, 1068, 1074, 1075, 1076, 1078, 1085, 1087, 1096, 1097, 1105, 1106, 1107, 1111, 1115, 1116, 1119, 1123, 1151, 1192, 1231, 1232, 1237, 1243, 1253, 1255, 1266, 1268, 1280, 1283, 1287, 1290, 1300, 1305, 1312, 1313, 1320, 1323, 1327, 1332, 1341, 1342, 1371, 1372, 1377, 1383, 1389, 1390, 1391, 1393, 1400, 1402, 1411, 1412, 1420, 1421, 1422, 1426, 1430, 1431, 1434, 1438, 1466], "assignments": [51, 56, 60, 77, 82, 86, 103, 108, 112, 129, 134, 138, 155, 160, 164, 181, 186, 190, 207, 212, 216, 233, 238, 242, 287, 291, 308, 312, 477, 482, 486, 554, 559, 563, 631, 636, 640, 709, 714, 718, 1013, 1018, 1022, 1328, 1333, 1337], "loops": [722], "conditionals": [15, 18, 23, 25, 30, 34, 38, 43, 47, 49, 52, 57, 61, 64, 69, 73, 75, 78, 83, 87, 90, 95, 99, 101, 104, 109, 113, 116, 121, 125, 127, 130, 135, 139, 142, 147, 151, 153, 156, 161, 165, 168, 173, 177, 179, 182, 187, 191, 194, 199, 203, 205, 208, 213, 217, 220, 225, 229, 231, 234, 239, 243, 248, 258, 261, 266, 268, 273, 274, 279, 283, 288, 292, 295, 300, 304, 309, 313, 319, 321, 322, 326, 328, 330, 333, 338, 340, 345, 348, 350, 351, 354, 358, 362, 369, 372, 376, 380, 385, 386, 391, 394, 399, 401, 406, 410, 413, 418, 424, 427, 431, 441, 450, 453, 456, 458, 459, 465, 471, 475, 478, 483, 487, 490, 495, 501, 504, 508, 518, 527, 530, 533, 535, 536, 542, 548, 552, 555, 560, 564, 567, 572, 578, 581, 585, 595, 604, 607, 610, 612, 613, 619, 625, 629, 632, 637, 641, 644, 645, 650, 656, 659, 663, 673, 682, 685, 688, 690, 691, 697, 703, 707, 710, 715, 719, 725, 735, 738, 743, 745, 750, 751, 752, 757, 763, 766, 770, 780, 789, 792, 795, 797, 798, 800, 806, 810, 814, 817, 821, 827, 829, 831, 834, 839, 841, 846, 849, 851, 852, 855, 859, 863, 870, 873, 877, 881, 886, 887, 888, 894, 897, 902, 904, 909, 913, 917, 918, 923, 929, 932, 939, 948, 952, 961, 966, 967, 969, 972, 973, 976, 979, 980, 982, 986, 989, 991, 992, 994, 998, 1002, 1004, 1009, 1011, 1014, 1019, 1023, 1028, 1038, 1041, 1046, 1048, 1053, 1054, 1055, 1060, 1066, 1069, 1073, 1083, 1092, 1095, 1098, 1100, 1101, 1103, 1109, 1113, 1117, 1120, 1124, 1130, 1132, 1134, 1137, 1142, 1144, 1149, 1152, 1154, 1155, 1158, 1162, 1166, 1173, 1176, 1180, 1184, 1189, 1190, 1191, 1195, 1199, 1206, 1209, 1214, 1216, 1221, 1225, 1229, 1230, 1235, 1241, 1244, 1251, 1260, 1264, 1273, 1278, 1279, 1281, 1284, 1285, 1288, 1291, 1292, 1294, 1298, 1301, 1303, 1304, 1306, 1310, 1314, 1316, 1321, 1326, 1329, 1334, 1338, 1343, 1353, 1356, 1361, 1363, 1368, 1369, 1370, 1375, 1381, 1384, 1388, 1398, 1407, 1410, 1413, 1415, 1416, 1418, 1424, 1428, 1432, 1435, 1439, 1445, 1447, 1449, 1452, 1457, 1459, 1464, 1467, 1469, 1470, 1473, 1477, 1481, 1488, 1491, 1495, 1499, 1504, 1505], "returns": [48, 74, 100, 126, 152, 178, 204, 230, 251, 284, 305, 316, 346, 463, 540, 617, 695, 728, 801, 811, 847, 1007, 1031, 1104, 1114, 1150, 1319, 1346, 1419, 1429, 1465], "exceptions": []}, "expressions": {"calls": [], "literals": [3, 6, 9, 36, 54, 59, 63, 80, 85, 89, 106, 111, 115, 132, 137, 141, 158, 163, 167, 184, 189, 193, 210, 215, 219, 236, 241, 245, 250, 252, 285, 290, 294, 306, 311, 315, 324, 366, 384, 412, 429, 460, 480, 485, 489, 506, 537, 557, 562, 566, 583, 614, 634, 639, 643, 661, 692, 712, 717, 721, 727, 729, 768, 799, 819, 823, 825, 867, 885, 915, 934, 974, 981, 1006, 1016, 1021, 1025, 1030, 1032, 1071, 1102, 1122, 1126, 1128, 1170, 1188, 1227, 1246, 1286, 1293, 1318, 1331, 1336, 1340, 1345, 1347, 1386, 1417, 1437, 1441, 1443, 1485, 1503], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 10, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n "}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "compare256_c_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 253, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n "}, {"node_id": 257, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_c_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 325, "universal_type": "function", "name": "unknown", "text_snippet": "Z_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return "}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_c(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 390, "universal_type": "function", "name": "unknown", "text_snippet": "compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 730, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char"}, {"node_id": 734, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 826, "universal_type": "function", "name": "unknown", "text_snippet": "Z_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n"}, {"node_id": 830, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 889, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char"}, {"node_id": 893, "universal_type": "function", "name": "unknown", "text_snippet": "compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 1033, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char"}, {"node_id": 1037, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 1129, "universal_type": "function", "name": "unknown", "text_snippet": "Z_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n"}, {"node_id": 1133, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 1201, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char"}, {"node_id": 1205, "universal_type": "function", "name": "unknown", "text_snippet": "compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 1348, "universal_type": "function", "name": "unknown", "text_snippet": "static inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char"}, {"node_id": 1352, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1)"}, {"node_id": 1444, "universal_type": "function", "name": "unknown", "text_snippet": "Z_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n"}, {"node_id": 1448, "universal_type": "function", "name": "unknown", "text_snippet": "compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 254, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 387, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 731, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 890, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 1034, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 1202, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 1349, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 1, "text": "#include \"zbuild.h\"\n"}, {"node_id": 2, "text": "#include"}, {"node_id": 4, "text": "#include \"zutil.h\"\n"}, {"node_id": 5, "text": "#include"}, {"node_id": 7, "text": "#include \"fallback_builtins.h\"\n"}, {"node_id": 8, "text": "#include"}, {"node_id": 364, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 365, "text": "#include"}, {"node_id": 382, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 383, "text": "#include"}, {"node_id": 865, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 866, "text": "#include"}, {"node_id": 883, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 884, "text": "#include"}, {"node_id": 1168, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 1169, "text": "#include"}, {"node_id": 1186, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 1187, "text": "#include"}, {"node_id": 1483, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 1484, "text": "#include"}, {"node_id": 1501, "text": "#include \"match_tpl.h\"\n"}, {"node_id": 1502, "text": "#include"}]}, "original_source_code": "/* compare258.c -- aligned and unaligned versions of compare258\n * Copyright (C) 2020 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h\n */\n\n#include \"zbuild.h\"\n#include \"zutil.h\"\n\n#include \"fallback_builtins.h\"\n\n/* ALIGNED, byte comparison */\nstatic inline uint32_t compare256_c_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n if (*src0 != *src1)\n return len;\n src0 += 1, src1 += 1, len += 1;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_c_static(const unsigned char *src0, const unsigned char *src1) {\n if (*src0 != *src1)\n return 0;\n src0 += 1, src1 += 1;\n if (*src0 != *src1)\n return 1;\n src0 += 1, src1 += 1;\n\n return compare256_c_static(src0, src1) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_c(const unsigned char *src0, const unsigned char *src1) {\n return compare258_c_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_c\n#define COMPARE256 compare256_c_static\n#define COMPARE258 compare258_c_staticc\n\n#include \"match_tpl.h\"\n\n#ifdef UNALIGNED_OK\n/* UNALIGNED_OK, 16-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return len + (*src0 == *src1);\n src0 += 2, src1 += 2, len += 2;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_16_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_16_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_16(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_16_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_16\n#define COMPARE256 compare256_unaligned_16_static\n#define COMPARE258 compare258_unaligned_16_static\n\n#include \"match_tpl.h\"\n\n#ifdef HAVE_BUILTIN_CTZ\n/* UNALIGNED_OK, 32-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint32_t sv = *(uint32_t *)src0;\n uint32_t mv = *(uint32_t *)src1;\n#else\n uint32_t sv, mv;\n memcpy(&sv, src0, 4);\n memcpy(&mv, src1, 4);\n#endif\n uint32_t diff = sv ^ mv;\n\n if (diff) {\n uint32_t match_byte = __builtin_ctz(diff) / 8;\n return len + match_byte;\n }\n\n src0 += 4, src1 += 4, len += 4;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_32_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_32_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_32(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_32_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_32\n#define COMPARE256 compare256_unaligned_32_static\n#define COMPARE258 compare258_unaligned_32_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#if defined(UNALIGNED64_OK) && defined(HAVE_BUILTIN_CTZLL)\n/* UNALIGNED64_OK, 64-bit integer comparison */\nstatic inline uint32_t compare256_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n uint32_t len = 0;\n\n do {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n uint64_t sv = *(uint64_t *)src0;\n uint64_t mv = *(uint64_t *)src1;\n#else\n uint64_t sv, mv;\n memcpy(&sv, src0, 8);\n memcpy(&mv, src1, 8);\n#endif\n uint64_t diff = sv ^ mv;\n\n if (diff) {\n uint64_t match_byte = __builtin_ctzll(diff) / 8;\n return len + (uint32_t)match_byte;\n }\n\n src0 += 8, src1 += 8, len += 8;\n } while (len < 256);\n\n return 256;\n}\n\nstatic inline uint32_t compare258_unaligned_64_static(const unsigned char *src0, const unsigned char *src1) {\n#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 8\n if (*(uint16_t *)src0 != *(uint16_t *)src1)\n#else\n if (memcmp(src0, src1, 2))\n#endif\n return (*src0 == *src1);\n\n return compare256_unaligned_64_static(src0+2, src1+2) + 2;\n}\n\nZ_INTERNAL uint32_t compare258_unaligned_64(const unsigned char *src0, const unsigned char *src1) {\n return compare258_unaligned_64_static(src0, src1);\n}\n\n#define LONGEST_MATCH longest_match_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#define LONGEST_MATCH_SLOW\n#define LONGEST_MATCH longest_match_slow_unaligned_64\n#define COMPARE256 compare256_unaligned_64_static\n#define COMPARE258 compare258_unaligned_64_static\n\n#include \"match_tpl.h\"\n\n#endif\n\n#endif\n"}
80,731
c
#ifndef C4D_SYMBOLS_H__ #define C4D_SYMBOLS_H__ enum { // string table definitions GV_MENU_NODE_OPERATOR_STRING = 1000, GV_MENU_NODE_DELETE_STRING, GV_MENU_NODE_RENAME_STRING, GV_MENU_NODE_ENABLE_STRING, GV_MENU_NODE_DISABLE_STRING, GV_MENU_NODE_OPTIMIZE_STRING, GV_MENU_NODE_PACK_NODES_STRING, GV_MENU_NODE_UNPACK_NODES_STRING, GV_MENU_NODE_SELECT_CONNECTED_STRING, GV_MENU_NODE_VIEW_STRING, GV_MENU_NODE_MINIMIZED_STRING, GV_MENU_NODE_STANDARD_STRING, GV_MENU_NODE_EXTENDED_STRING, GV_MENU_NODE_FULLSCREEN_STRING, GV_MENU_NODE_LOCKED_EXTENDED_STRING, GV_MENU_NODE_CONNECTIONS_STRING, GV_MENU_NODE_CONN_REMOVE_STRING, GV_MENU_NODE_CREATE_NODE_STRING, GV_MENU_NODE_CREATE_MACRO_STRING, GV_MENU_NODE_PORTS_STRING, GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING, GV_MENU_NODE_PORTS_SHOW_NAMES_STRING, GV_MENU_NODE_ALIGN_STRING, GV_MENU_NODE_ZOOM_FIT_STRING, GV_MENU_NODE_CENTER_STRING, GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING, GV_MENU_NODE_ALIGN_TO_GRID_STRING, GV_MENU_PORT_INFO_STRING, GV_MENU_PORT_REMOVE_CONNECTIONS_STRING, GV_MENU_PORT_DELETE_STRING, GV_MENU_PORT_RENAME_STRING, GV_MENU_PORT_OPERATOR_STRING, GV_VALGROUP_TYPE_GENERAL_STRING, GV_OPCLASS_TYPE_GENERAL_STRING, GV_OPGROUP_TYPE_GENERAL_STRING, GV_OPGROUP_TYPE_OBJECT_STRING, GV_OPGROUP_TYPE_ADAPTER_STRING, GV_OPGROUP_TYPE_BOOL_STRING, GV_OPGROUP_TYPE_CALCULATE_STRING, GV_OPGROUP_TYPE_LOGICAL_STRING, GV_OPGROUP_TYPE_SCRIPTING_STRING, EX_GV_DATA_TYPE_UNDEFINED_STRING, GV_DATA_TYPE_BOOL_STRING, GV_DATA_TYPE_INTEGER_STRING, GV_DATA_TYPE_REAL_STRING, GV_DATA_TYPE_VECTOR_STRING, GV_DATA_TYPE_NORMAL_STRING, GV_DATA_TYPE_MATRIX_STRING, GV_DATA_TYPE_TIME_STRING, GV_DATA_TYPE_STRING_STRING, GV_DATA_TYPE_GENERAL_OBJECT_STRING, EX_GV_VALUE_TYPE_UNDEFINED_STRING, GV_VALUE_TYPE_BOOL_STRING, GV_VALUE_TYPE_INTEGER_STRING, GV_VALUE_TYPE_REAL_STRING, GV_VALUE_TYPE_VECTOR_STRING, GV_VALUE_TYPE_NORMAL_STRING, GV_VALUE_TYPE_MATRIX_STRING, GV_VALUE_TYPE_TIME_STRING, GV_VALUE_TYPE_STRING_STRING, GV_VALUE_TYPE_GENERAL_OBJECT_STRING, GV_GROUP_NODE_TITLE_STRING, GV_DUMMY_NODE_TITLE_STRING, GV_GROUP_ENABLE_STRING, GV_UNNAMED_PORT_STRING, GV_UNNAMED_DATA_TYPE_STRING, GV_UNNAMED_VALUE_TYPE_STRING, GV_PORT_NAME_STRING, GV_PORT_IO_STRING, GV_PORT_DATA_TYPE_STRING, GV_PORT_VALUE_TYPE_STRING, GV_GET_TITLE_STRING, GV_GET_NAME_STRING, GV_PORT_INFO_TITLE_STRING, GV_OPERATOR_INPUT_STRING, GV_OPERATOR_OUTPUT_STRING, GV_CONSTANT_INPUT_STRING, GV_CONSTANT_SELECT_STRING, GV_STATUS_STRING, GV_ERR_NONE_STRING, GV_CALC_ERR_NO_MEMORY_STRING, GV_CALC_ERR_UNDEFINED_STRING, GV_CALC_ERR_UNKNOWN_TYPE_STRING, GV_CALC_ERR_NOT_IMPLEMENTED_STRING, GV_CALC_ERR_NOT_INITIALIZED_STRING, GV_CALC_ERR_NOT_VALID_STRING, GV_CALC_ERR_NO_OUTPORT_STRING, GV_CALC_ERR_NOT_CONNECTED_STRING, GV_CALC_ERR_NO_PORT_STRING, GV_CALC_ERR_DIVISION_BY_ZERO_STRING, GV_CALC_ERR_TYPE_MISMATCH_STRING, GV_CALC_ERR_INIT_FAILED_STRING, GV_CALC_ERR_QUERY_FAILED_STRING, GV_CALC_ERR_CALCULATION_FAILED_STRING, GV_CALC_ERR_PARAMETER_STRING, GV_IO_ERR_NO_MEMORY_STRING, GV_IO_ERR_FILE_NOT_FOUND_STRING, GV_IO_ERR_READ_STRING, GV_IO_ERR_WRITE_STRING, GV_IO_ERR_NOT_A_GROUP_NODE_STRING, GV_NEW_MACRO_STRING, GV_MACRO_FILENAME_STRING, EXED_FILE_MENU_STRING, EXED_SHOW_VERSION_STRING, EXED_LOAD_XGROUP_STRING, EXED_SAVE_XGROUP_STRING, EXED_EDIT_MENU_STRING, EXED_SELECT_ALL_STRING, EXED_SELECT_NONE_STRING, EXED_ENABLE_SELECTED_STRING, EXED_DISABLE_SELECTED_STRING, EXED_CUT_SELECTED_STRING, EXED_COPY_SELECTED_STRING, EXED_PASTE_SELECTED_STRING, EXED_DELETE_SELECTED_STRING, EXED_EXTRA_MENU_STRING, EXED_PACK_NODES_STRING, EXED_LAYOUT_MENU_STRING, EXED_INPUTS_STRING, EXED_INPUTS_AT_LEFT_STRING, EXED_INPUTS_AT_RIGHT_STRING, EXED_INPUTS_AT_TOP_STRING, EXED_INPUTS_AT_BOTTOM_STRING, EXED_CONN_STRING, EXED_CONN_DIRECT_STRING, EXED_CONN_STRAIGHT_STRING, EXED_CONN_ENHANCED_STRING, EXED_CONN_CURVED_STRING, EXED_SHOW_STATUS_STRING, EXED_DEFAULT_LAYOUT_STRING, EXED_VIEW_MENU_STRING, EXED_ZOOM_MENU_STRING, EXED_ZOOM_FIT_STRING, EXED_ZOOM_FIT_SELECTED_STRING, EXED_ZOOM_100_STRING, EXED_ZOOM_75_STRING, EXED_ZOOM_50_STRING, EXED_ZOOM_25_STRING, EXED_CENTER_STRING, EXED_ALIGN_UPPER_LEFT_STRING, EXED_ALIGN_TO_GRID_STRING, EXED_HOOKS_MENU_STRING, EXED_MENU_CALCULATE_STRING, EXED_CALCULATE_STRING, EXED_LIVE_REFRESH_STRING, EXED_ANIM_REFRESH_STRING, EXED_DIALOG_TITLE_STRING, EXED_DIALOG_HELP_STRING, EXED_UNNAMED_MACRO_STRING, OP_DIALOG_TITLE_STRING, OP_MENU_NAME_STRING, OP_POOL_FILENAME_STRING, OP_UNNAMED_POOL_STRING, OP_PRESETS_POOL_STRING, OP_UNNAMED_FOLDER_STRING, OP_GET_FOLDER_STRING, OP_CREATE_POOL_STRING, OP_REMOVE_ENTRY_STRING, OP_RENAME_ENTRY_STRING, OP_CREATE_FOLDER_STRING, OP_EDIT_MENU_STRING, OP_OPERATORS_NAME_STRING, OP_RENAME_NODE_STRING, GV_BRANCH_NAME, GV_CONSTANT_0_STRING, GV_CONSTANT_1_STRING, GV_CONSTANT_10_STRING, GV_CONSTANT_100_STRING, GV_CONSTANT_1000_STRING, GV_CONSTANT_QUARTER_PI_STRING, GV_CONSTANT_HALF_PI_STRING, GV_CONSTANT_PI_STRING, GV_CONSTANT_DOUBLE_PI_STRING, GV_DIALOG_GUICONFIG, GV_DIALOG_COLORS, IDS_TP_VALUE_TYPE_PARTICLE, IDS_TP_DATA_TYPE_PARTICLE, IDS_TP_VALUE_TYPE_SHAPE, IDS_TP_DATA_TYPE_SHAPE, IDS_TP_VALUE_TYPE_GROUP, IDS_TP_DATA_TYPE_GROUP, IDS_TP_VALUE_TYPE_SPIN, IDS_TP_DATA_TYPE_SPIN, IDS_AM_MODE_NODES, GV_DATA_TYPE_GENERAL_TAG_STRING, GV_VALUE_TYPE_GENERAL_TAG_STRING, GV_DATA_TYPE_GENERAL_MATERIAL_STRING, GV_VALUE_TYPE_GENERAL_MATERIAL_STRING, GV_DATA_TYPE_GENERAL_INSTANCE_STRING, GV_VALUE_TYPE_GENERAL_INSTANCE_STRING, GV_OPGROUP_TYPE_ITERATOR_STRING, GV_PASSWORD_STRING, IDC_GV_GUI_CONFIG_SORT_MENUS, IDC_GV_GUI_CONFIG_SORT_PORTS, OP_LOAD_POOL_STRING, IDS_DATATYPE_NORMAL, IDS_UPDATE_NORMAL, GV_CONSTANT_UP_STRING, GV_CONSTANT_DOWN_STRING, GV_CONSTANT_LEFT_STRING, GV_CONSTANT_RIGHT_STRING, GV_CONSTANT_FRONT_STRING, GV_CONSTANT_BACK_STRING, EXED_PERFORMANCEVIEW_STRING, IDS_PV_TITLE, IDS_PV_ENABLE, IDS_PV_LBL_MODE, IDS_PV_LBL_INTENSITY, IDC_PV_MODE_TIME, IDC_PV_MODE_COUNT, DUMMY_ }; #endif // C4D_SYMBOLS_H__
26.89
218
(translation_unit) "#ifndef C4D_SYMBOLS_H__\n#define C4D_SYMBOLS_H__\n\nenum\n{\n // string table definitions\n\n GV_MENU_NODE_OPERATOR_STRING = 1000,\n GV_MENU_NODE_DELETE_STRING,\n GV_MENU_NODE_RENAME_STRING,\n GV_MENU_NODE_ENABLE_STRING,\n GV_MENU_NODE_DISABLE_STRING,\n GV_MENU_NODE_OPTIMIZE_STRING,\n GV_MENU_NODE_PACK_NODES_STRING,\n GV_MENU_NODE_UNPACK_NODES_STRING,\n GV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n GV_MENU_NODE_VIEW_STRING,\n GV_MENU_NODE_MINIMIZED_STRING,\n GV_MENU_NODE_STANDARD_STRING,\n GV_MENU_NODE_EXTENDED_STRING,\n GV_MENU_NODE_FULLSCREEN_STRING,\n GV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n GV_MENU_NODE_CONNECTIONS_STRING,\n GV_MENU_NODE_CONN_REMOVE_STRING,\n\n GV_MENU_NODE_CREATE_NODE_STRING,\n GV_MENU_NODE_CREATE_MACRO_STRING,\n\n GV_MENU_NODE_PORTS_STRING,\n GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n GV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n GV_MENU_NODE_ALIGN_STRING,\n GV_MENU_NODE_ZOOM_FIT_STRING,\n GV_MENU_NODE_CENTER_STRING,\n GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n GV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n GV_MENU_PORT_INFO_STRING,\n GV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n GV_MENU_PORT_DELETE_STRING,\n GV_MENU_PORT_RENAME_STRING,\n GV_MENU_PORT_OPERATOR_STRING,\n\n GV_VALGROUP_TYPE_GENERAL_STRING,\n GV_OPCLASS_TYPE_GENERAL_STRING,\n\n GV_OPGROUP_TYPE_GENERAL_STRING,\n GV_OPGROUP_TYPE_OBJECT_STRING,\n GV_OPGROUP_TYPE_ADAPTER_STRING,\n GV_OPGROUP_TYPE_BOOL_STRING,\n GV_OPGROUP_TYPE_CALCULATE_STRING,\n GV_OPGROUP_TYPE_LOGICAL_STRING,\n GV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n EX_GV_DATA_TYPE_UNDEFINED_STRING,\n GV_DATA_TYPE_BOOL_STRING,\n GV_DATA_TYPE_INTEGER_STRING,\n GV_DATA_TYPE_REAL_STRING,\n GV_DATA_TYPE_VECTOR_STRING,\n GV_DATA_TYPE_NORMAL_STRING,\n GV_DATA_TYPE_MATRIX_STRING,\n GV_DATA_TYPE_TIME_STRING,\n GV_DATA_TYPE_STRING_STRING,\n GV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n EX_GV_VALUE_TYPE_UNDEFINED_STRING,\n GV_VALUE_TYPE_BOOL_STRING,\n GV_VALUE_TYPE_INTEGER_STRING,\n GV_VALUE_TYPE_REAL_STRING,\n GV_VALUE_TYPE_VECTOR_STRING,\n GV_VALUE_TYPE_NORMAL_STRING,\n GV_VALUE_TYPE_MATRIX_STRING,\n GV_VALUE_TYPE_TIME_STRING,\n GV_VALUE_TYPE_STRING_STRING,\n GV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n GV_GROUP_NODE_TITLE_STRING,\n GV_DUMMY_NODE_TITLE_STRING,\n GV_GROUP_ENABLE_STRING,\n\n GV_UNNAMED_PORT_STRING,\n GV_UNNAMED_DATA_TYPE_STRING,\n GV_UNNAMED_VALUE_TYPE_STRING,\n\n GV_PORT_NAME_STRING,\n GV_PORT_IO_STRING,\n GV_PORT_DATA_TYPE_STRING,\n GV_PORT_VALUE_TYPE_STRING,\n\n GV_GET_TITLE_STRING,\n GV_GET_NAME_STRING,\n GV_PORT_INFO_TITLE_STRING,\n\n GV_OPERATOR_INPUT_STRING,\n GV_OPERATOR_OUTPUT_STRING,\n\n GV_CONSTANT_INPUT_STRING,\n GV_CONSTANT_SELECT_STRING,\n\n GV_STATUS_STRING,\n\n GV_ERR_NONE_STRING,\n\n GV_CALC_ERR_NO_MEMORY_STRING,\n GV_CALC_ERR_UNDEFINED_STRING,\n GV_CALC_ERR_UNKNOWN_TYPE_STRING,\n GV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n GV_CALC_ERR_NOT_INITIALIZED_STRING,\n GV_CALC_ERR_NOT_VALID_STRING,\n GV_CALC_ERR_NO_OUTPORT_STRING,\n GV_CALC_ERR_NOT_CONNECTED_STRING,\n GV_CALC_ERR_NO_PORT_STRING,\n GV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n GV_CALC_ERR_TYPE_MISMATCH_STRING,\n GV_CALC_ERR_INIT_FAILED_STRING,\n GV_CALC_ERR_QUERY_FAILED_STRING,\n GV_CALC_ERR_CALCULATION_FAILED_STRING,\n GV_CALC_ERR_PARAMETER_STRING,\n\n GV_IO_ERR_NO_MEMORY_STRING,\n GV_IO_ERR_FILE_NOT_FOUND_STRING,\n GV_IO_ERR_READ_STRING,\n GV_IO_ERR_WRITE_STRING,\n GV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n GV_NEW_MACRO_STRING,\n GV_MACRO_FILENAME_STRING,\n\n EXED_FILE_MENU_STRING,\n EXED_SHOW_VERSION_STRING,\n EXED_LOAD_XGROUP_STRING,\n EXED_SAVE_XGROUP_STRING,\n\n EXED_EDIT_MENU_STRING,\n EXED_SELECT_ALL_STRING,\n EXED_SELECT_NONE_STRING,\n EXED_ENABLE_SELECTED_STRING,\n EXED_DISABLE_SELECTED_STRING,\n EXED_CUT_SELECTED_STRING,\n EXED_COPY_SELECTED_STRING,\n EXED_PASTE_SELECTED_STRING,\n EXED_DELETE_SELECTED_STRING,\n\n EXED_EXTRA_MENU_STRING,\n EXED_PACK_NODES_STRING,\n\n EXED_LAYOUT_MENU_STRING,\n EXED_INPUTS_STRING,\n EXED_INPUTS_AT_LEFT_STRING,\n EXED_INPUTS_AT_RIGHT_STRING,\n EXED_INPUTS_AT_TOP_STRING,\n EXED_INPUTS_AT_BOTTOM_STRING,\n EXED_CONN_STRING,\n EXED_CONN_DIRECT_STRING,\n EXED_CONN_STRAIGHT_STRING,\n EXED_CONN_ENHANCED_STRING,\n EXED_CONN_CURVED_STRING,\n EXED_SHOW_STATUS_STRING,\n EXED_DEFAULT_LAYOUT_STRING,\n\n EXED_VIEW_MENU_STRING,\n EXED_ZOOM_MENU_STRING,\n EXED_ZOOM_FIT_STRING,\n EXED_ZOOM_FIT_SELECTED_STRING,\n EXED_ZOOM_100_STRING,\n EXED_ZOOM_75_STRING,\n EXED_ZOOM_50_STRING,\n EXED_ZOOM_25_STRING,\n EXED_CENTER_STRING,\n EXED_ALIGN_UPPER_LEFT_STRING,\n EXED_ALIGN_TO_GRID_STRING,\n\n EXED_HOOKS_MENU_STRING,\n\n EXED_MENU_CALCULATE_STRING,\n EXED_CALCULATE_STRING,\n EXED_LIVE_REFRESH_STRING,\n EXED_ANIM_REFRESH_STRING,\n\n EXED_DIALOG_TITLE_STRING,\n EXED_DIALOG_HELP_STRING,\n\n EXED_UNNAMED_MACRO_STRING,\n\n OP_DIALOG_TITLE_STRING,\n OP_MENU_NAME_STRING,\n\n OP_POOL_FILENAME_STRING,\n OP_UNNAMED_POOL_STRING,\n OP_PRESETS_POOL_STRING,\n OP_UNNAMED_FOLDER_STRING,\n OP_GET_FOLDER_STRING,\n\n OP_CREATE_POOL_STRING,\n OP_REMOVE_ENTRY_STRING,\n OP_RENAME_ENTRY_STRING,\n OP_CREATE_FOLDER_STRING,\n OP_EDIT_MENU_STRING,\n\n OP_OPERATORS_NAME_STRING,\n\n OP_RENAME_NODE_STRING,\n\n GV_BRANCH_NAME,\n\n GV_CONSTANT_0_STRING,\n GV_CONSTANT_1_STRING,\n GV_CONSTANT_10_STRING,\n GV_CONSTANT_100_STRING,\n GV_CONSTANT_1000_STRING,\n GV_CONSTANT_QUARTER_PI_STRING,\n GV_CONSTANT_HALF_PI_STRING,\n GV_CONSTANT_PI_STRING,\n GV_CONSTANT_DOUBLE_PI_STRING,\n\n GV_DIALOG_GUICONFIG,\n GV_DIALOG_COLORS,\n\n IDS_TP_VALUE_TYPE_PARTICLE,\n IDS_TP_DATA_TYPE_PARTICLE,\n IDS_TP_VALUE_TYPE_SHAPE,\n IDS_TP_DATA_TYPE_SHAPE,\n IDS_TP_VALUE_TYPE_GROUP,\n IDS_TP_DATA_TYPE_GROUP,\n IDS_TP_VALUE_TYPE_SPIN,\n IDS_TP_DATA_TYPE_SPIN,\n\n IDS_AM_MODE_NODES,\n\n GV_DATA_TYPE_GENERAL_TAG_STRING,\n GV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n GV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n GV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n GV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n GV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n GV_OPGROUP_TYPE_ITERATOR_STRING,\n\n GV_PASSWORD_STRING,\n\n IDC_GV_GUI_CONFIG_SORT_MENUS,\n IDC_GV_GUI_CONFIG_SORT_PORTS,\n\n OP_LOAD_POOL_STRING,\n\n IDS_DATATYPE_NORMAL,\n IDS_UPDATE_NORMAL,\n\n GV_CONSTANT_UP_STRING,\n GV_CONSTANT_DOWN_STRING,\n GV_CONSTANT_LEFT_STRING,\n GV_CONSTANT_RIGHT_STRING,\n GV_CONSTANT_FRONT_STRING,\n GV_CONSTANT_BACK_STRING,\n\n EXED_PERFORMANCEVIEW_STRING,\n\n IDS_PV_TITLE,\n IDS_PV_ENABLE,\n IDS_PV_LBL_MODE,\n IDS_PV_LBL_INTENSITY,\n IDC_PV_MODE_TIME,\n IDC_PV_MODE_COUNT,\n\n DUMMY_\n};\n\n#endif // C4D_SYMBOLS_H__\n" (preproc_ifdef) "#ifndef C4D_SYMBOLS_H__\n#define C4D_SYMBOLS_H__\n\nenum\n{\n // string table definitions\n\n GV_MENU_NODE_OPERATOR_STRING = 1000,\n GV_MENU_NODE_DELETE_STRING,\n GV_MENU_NODE_RENAME_STRING,\n GV_MENU_NODE_ENABLE_STRING,\n GV_MENU_NODE_DISABLE_STRING,\n GV_MENU_NODE_OPTIMIZE_STRING,\n GV_MENU_NODE_PACK_NODES_STRING,\n GV_MENU_NODE_UNPACK_NODES_STRING,\n GV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n GV_MENU_NODE_VIEW_STRING,\n GV_MENU_NODE_MINIMIZED_STRING,\n GV_MENU_NODE_STANDARD_STRING,\n GV_MENU_NODE_EXTENDED_STRING,\n GV_MENU_NODE_FULLSCREEN_STRING,\n GV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n GV_MENU_NODE_CONNECTIONS_STRING,\n GV_MENU_NODE_CONN_REMOVE_STRING,\n\n GV_MENU_NODE_CREATE_NODE_STRING,\n GV_MENU_NODE_CREATE_MACRO_STRING,\n\n GV_MENU_NODE_PORTS_STRING,\n GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n GV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n GV_MENU_NODE_ALIGN_STRING,\n GV_MENU_NODE_ZOOM_FIT_STRING,\n GV_MENU_NODE_CENTER_STRING,\n GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n GV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n GV_MENU_PORT_INFO_STRING,\n GV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n GV_MENU_PORT_DELETE_STRING,\n GV_MENU_PORT_RENAME_STRING,\n GV_MENU_PORT_OPERATOR_STRING,\n\n GV_VALGROUP_TYPE_GENERAL_STRING,\n GV_OPCLASS_TYPE_GENERAL_STRING,\n\n GV_OPGROUP_TYPE_GENERAL_STRING,\n GV_OPGROUP_TYPE_OBJECT_STRING,\n GV_OPGROUP_TYPE_ADAPTER_STRING,\n GV_OPGROUP_TYPE_BOOL_STRING,\n GV_OPGROUP_TYPE_CALCULATE_STRING,\n GV_OPGROUP_TYPE_LOGICAL_STRING,\n GV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n EX_GV_DATA_TYPE_UNDEFINED_STRING,\n GV_DATA_TYPE_BOOL_STRING,\n GV_DATA_TYPE_INTEGER_STRING,\n GV_DATA_TYPE_REAL_STRING,\n GV_DATA_TYPE_VECTOR_STRING,\n GV_DATA_TYPE_NORMAL_STRING,\n GV_DATA_TYPE_MATRIX_STRING,\n GV_DATA_TYPE_TIME_STRING,\n GV_DATA_TYPE_STRING_STRING,\n GV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n EX_GV_VALUE_TYPE_UNDEFINED_STRING,\n GV_VALUE_TYPE_BOOL_STRING,\n GV_VALUE_TYPE_INTEGER_STRING,\n GV_VALUE_TYPE_REAL_STRING,\n GV_VALUE_TYPE_VECTOR_STRING,\n GV_VALUE_TYPE_NORMAL_STRING,\n GV_VALUE_TYPE_MATRIX_STRING,\n GV_VALUE_TYPE_TIME_STRING,\n GV_VALUE_TYPE_STRING_STRING,\n GV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n GV_GROUP_NODE_TITLE_STRING,\n GV_DUMMY_NODE_TITLE_STRING,\n GV_GROUP_ENABLE_STRING,\n\n GV_UNNAMED_PORT_STRING,\n GV_UNNAMED_DATA_TYPE_STRING,\n GV_UNNAMED_VALUE_TYPE_STRING,\n\n GV_PORT_NAME_STRING,\n GV_PORT_IO_STRING,\n GV_PORT_DATA_TYPE_STRING,\n GV_PORT_VALUE_TYPE_STRING,\n\n GV_GET_TITLE_STRING,\n GV_GET_NAME_STRING,\n GV_PORT_INFO_TITLE_STRING,\n\n GV_OPERATOR_INPUT_STRING,\n GV_OPERATOR_OUTPUT_STRING,\n\n GV_CONSTANT_INPUT_STRING,\n GV_CONSTANT_SELECT_STRING,\n\n GV_STATUS_STRING,\n\n GV_ERR_NONE_STRING,\n\n GV_CALC_ERR_NO_MEMORY_STRING,\n GV_CALC_ERR_UNDEFINED_STRING,\n GV_CALC_ERR_UNKNOWN_TYPE_STRING,\n GV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n GV_CALC_ERR_NOT_INITIALIZED_STRING,\n GV_CALC_ERR_NOT_VALID_STRING,\n GV_CALC_ERR_NO_OUTPORT_STRING,\n GV_CALC_ERR_NOT_CONNECTED_STRING,\n GV_CALC_ERR_NO_PORT_STRING,\n GV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n GV_CALC_ERR_TYPE_MISMATCH_STRING,\n GV_CALC_ERR_INIT_FAILED_STRING,\n GV_CALC_ERR_QUERY_FAILED_STRING,\n GV_CALC_ERR_CALCULATION_FAILED_STRING,\n GV_CALC_ERR_PARAMETER_STRING,\n\n GV_IO_ERR_NO_MEMORY_STRING,\n GV_IO_ERR_FILE_NOT_FOUND_STRING,\n GV_IO_ERR_READ_STRING,\n GV_IO_ERR_WRITE_STRING,\n GV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n GV_NEW_MACRO_STRING,\n GV_MACRO_FILENAME_STRING,\n\n EXED_FILE_MENU_STRING,\n EXED_SHOW_VERSION_STRING,\n EXED_LOAD_XGROUP_STRING,\n EXED_SAVE_XGROUP_STRING,\n\n EXED_EDIT_MENU_STRING,\n EXED_SELECT_ALL_STRING,\n EXED_SELECT_NONE_STRING,\n EXED_ENABLE_SELECTED_STRING,\n EXED_DISABLE_SELECTED_STRING,\n EXED_CUT_SELECTED_STRING,\n EXED_COPY_SELECTED_STRING,\n EXED_PASTE_SELECTED_STRING,\n EXED_DELETE_SELECTED_STRING,\n\n EXED_EXTRA_MENU_STRING,\n EXED_PACK_NODES_STRING,\n\n EXED_LAYOUT_MENU_STRING,\n EXED_INPUTS_STRING,\n EXED_INPUTS_AT_LEFT_STRING,\n EXED_INPUTS_AT_RIGHT_STRING,\n EXED_INPUTS_AT_TOP_STRING,\n EXED_INPUTS_AT_BOTTOM_STRING,\n EXED_CONN_STRING,\n EXED_CONN_DIRECT_STRING,\n EXED_CONN_STRAIGHT_STRING,\n EXED_CONN_ENHANCED_STRING,\n EXED_CONN_CURVED_STRING,\n EXED_SHOW_STATUS_STRING,\n EXED_DEFAULT_LAYOUT_STRING,\n\n EXED_VIEW_MENU_STRING,\n EXED_ZOOM_MENU_STRING,\n EXED_ZOOM_FIT_STRING,\n EXED_ZOOM_FIT_SELECTED_STRING,\n EXED_ZOOM_100_STRING,\n EXED_ZOOM_75_STRING,\n EXED_ZOOM_50_STRING,\n EXED_ZOOM_25_STRING,\n EXED_CENTER_STRING,\n EXED_ALIGN_UPPER_LEFT_STRING,\n EXED_ALIGN_TO_GRID_STRING,\n\n EXED_HOOKS_MENU_STRING,\n\n EXED_MENU_CALCULATE_STRING,\n EXED_CALCULATE_STRING,\n EXED_LIVE_REFRESH_STRING,\n EXED_ANIM_REFRESH_STRING,\n\n EXED_DIALOG_TITLE_STRING,\n EXED_DIALOG_HELP_STRING,\n\n EXED_UNNAMED_MACRO_STRING,\n\n OP_DIALOG_TITLE_STRING,\n OP_MENU_NAME_STRING,\n\n OP_POOL_FILENAME_STRING,\n OP_UNNAMED_POOL_STRING,\n OP_PRESETS_POOL_STRING,\n OP_UNNAMED_FOLDER_STRING,\n OP_GET_FOLDER_STRING,\n\n OP_CREATE_POOL_STRING,\n OP_REMOVE_ENTRY_STRING,\n OP_RENAME_ENTRY_STRING,\n OP_CREATE_FOLDER_STRING,\n OP_EDIT_MENU_STRING,\n\n OP_OPERATORS_NAME_STRING,\n\n OP_RENAME_NODE_STRING,\n\n GV_BRANCH_NAME,\n\n GV_CONSTANT_0_STRING,\n GV_CONSTANT_1_STRING,\n GV_CONSTANT_10_STRING,\n GV_CONSTANT_100_STRING,\n GV_CONSTANT_1000_STRING,\n GV_CONSTANT_QUARTER_PI_STRING,\n GV_CONSTANT_HALF_PI_STRING,\n GV_CONSTANT_PI_STRING,\n GV_CONSTANT_DOUBLE_PI_STRING,\n\n GV_DIALOG_GUICONFIG,\n GV_DIALOG_COLORS,\n\n IDS_TP_VALUE_TYPE_PARTICLE,\n IDS_TP_DATA_TYPE_PARTICLE,\n IDS_TP_VALUE_TYPE_SHAPE,\n IDS_TP_DATA_TYPE_SHAPE,\n IDS_TP_VALUE_TYPE_GROUP,\n IDS_TP_DATA_TYPE_GROUP,\n IDS_TP_VALUE_TYPE_SPIN,\n IDS_TP_DATA_TYPE_SPIN,\n\n IDS_AM_MODE_NODES,\n\n GV_DATA_TYPE_GENERAL_TAG_STRING,\n GV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n GV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n GV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n GV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n GV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n GV_OPGROUP_TYPE_ITERATOR_STRING,\n\n GV_PASSWORD_STRING,\n\n IDC_GV_GUI_CONFIG_SORT_MENUS,\n IDC_GV_GUI_CONFIG_SORT_PORTS,\n\n OP_LOAD_POOL_STRING,\n\n IDS_DATATYPE_NORMAL,\n IDS_UPDATE_NORMAL,\n\n GV_CONSTANT_UP_STRING,\n GV_CONSTANT_DOWN_STRING,\n GV_CONSTANT_LEFT_STRING,\n GV_CONSTANT_RIGHT_STRING,\n GV_CONSTANT_FRONT_STRING,\n GV_CONSTANT_BACK_STRING,\n\n EXED_PERFORMANCEVIEW_STRING,\n\n IDS_PV_TITLE,\n IDS_PV_ENABLE,\n IDS_PV_LBL_MODE,\n IDS_PV_LBL_INTENSITY,\n IDC_PV_MODE_TIME,\n IDC_PV_MODE_COUNT,\n\n DUMMY_\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "C4D_SYMBOLS_H__" (preproc_def) "#define C4D_SYMBOLS_H__\n" (#define) "#define" (identifier) "C4D_SYMBOLS_H__" (enum_specifier) "enum\n{\n // string table definitions\n\n GV_MENU_NODE_OPERATOR_STRING = 1000,\n GV_MENU_NODE_DELETE_STRING,\n GV_MENU_NODE_RENAME_STRING,\n GV_MENU_NODE_ENABLE_STRING,\n GV_MENU_NODE_DISABLE_STRING,\n GV_MENU_NODE_OPTIMIZE_STRING,\n GV_MENU_NODE_PACK_NODES_STRING,\n GV_MENU_NODE_UNPACK_NODES_STRING,\n GV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n GV_MENU_NODE_VIEW_STRING,\n GV_MENU_NODE_MINIMIZED_STRING,\n GV_MENU_NODE_STANDARD_STRING,\n GV_MENU_NODE_EXTENDED_STRING,\n GV_MENU_NODE_FULLSCREEN_STRING,\n GV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n GV_MENU_NODE_CONNECTIONS_STRING,\n GV_MENU_NODE_CONN_REMOVE_STRING,\n\n GV_MENU_NODE_CREATE_NODE_STRING,\n GV_MENU_NODE_CREATE_MACRO_STRING,\n\n GV_MENU_NODE_PORTS_STRING,\n GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n GV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n GV_MENU_NODE_ALIGN_STRING,\n GV_MENU_NODE_ZOOM_FIT_STRING,\n GV_MENU_NODE_CENTER_STRING,\n GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n GV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n GV_MENU_PORT_INFO_STRING,\n GV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n GV_MENU_PORT_DELETE_STRING,\n GV_MENU_PORT_RENAME_STRING,\n GV_MENU_PORT_OPERATOR_STRING,\n\n GV_VALGROUP_TYPE_GENERAL_STRING,\n GV_OPCLASS_TYPE_GENERAL_STRING,\n\n GV_OPGROUP_TYPE_GENERAL_STRING,\n GV_OPGROUP_TYPE_OBJECT_STRING,\n GV_OPGROUP_TYPE_ADAPTER_STRING,\n GV_OPGROUP_TYPE_BOOL_STRING,\n GV_OPGROUP_TYPE_CALCULATE_STRING,\n GV_OPGROUP_TYPE_LOGICAL_STRING,\n GV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n EX_GV_DATA_TYPE_UNDEFINED_STRING,\n GV_DATA_TYPE_BOOL_STRING,\n GV_DATA_TYPE_INTEGER_STRING,\n GV_DATA_TYPE_REAL_STRING,\n GV_DATA_TYPE_VECTOR_STRING,\n GV_DATA_TYPE_NORMAL_STRING,\n GV_DATA_TYPE_MATRIX_STRING,\n GV_DATA_TYPE_TIME_STRING,\n GV_DATA_TYPE_STRING_STRING,\n GV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n EX_GV_VALUE_TYPE_UNDEFINED_STRING,\n GV_VALUE_TYPE_BOOL_STRING,\n GV_VALUE_TYPE_INTEGER_STRING,\n GV_VALUE_TYPE_REAL_STRING,\n GV_VALUE_TYPE_VECTOR_STRING,\n GV_VALUE_TYPE_NORMAL_STRING,\n GV_VALUE_TYPE_MATRIX_STRING,\n GV_VALUE_TYPE_TIME_STRING,\n GV_VALUE_TYPE_STRING_STRING,\n GV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n GV_GROUP_NODE_TITLE_STRING,\n GV_DUMMY_NODE_TITLE_STRING,\n GV_GROUP_ENABLE_STRING,\n\n GV_UNNAMED_PORT_STRING,\n GV_UNNAMED_DATA_TYPE_STRING,\n GV_UNNAMED_VALUE_TYPE_STRING,\n\n GV_PORT_NAME_STRING,\n GV_PORT_IO_STRING,\n GV_PORT_DATA_TYPE_STRING,\n GV_PORT_VALUE_TYPE_STRING,\n\n GV_GET_TITLE_STRING,\n GV_GET_NAME_STRING,\n GV_PORT_INFO_TITLE_STRING,\n\n GV_OPERATOR_INPUT_STRING,\n GV_OPERATOR_OUTPUT_STRING,\n\n GV_CONSTANT_INPUT_STRING,\n GV_CONSTANT_SELECT_STRING,\n\n GV_STATUS_STRING,\n\n GV_ERR_NONE_STRING,\n\n GV_CALC_ERR_NO_MEMORY_STRING,\n GV_CALC_ERR_UNDEFINED_STRING,\n GV_CALC_ERR_UNKNOWN_TYPE_STRING,\n GV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n GV_CALC_ERR_NOT_INITIALIZED_STRING,\n GV_CALC_ERR_NOT_VALID_STRING,\n GV_CALC_ERR_NO_OUTPORT_STRING,\n GV_CALC_ERR_NOT_CONNECTED_STRING,\n GV_CALC_ERR_NO_PORT_STRING,\n GV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n GV_CALC_ERR_TYPE_MISMATCH_STRING,\n GV_CALC_ERR_INIT_FAILED_STRING,\n GV_CALC_ERR_QUERY_FAILED_STRING,\n GV_CALC_ERR_CALCULATION_FAILED_STRING,\n GV_CALC_ERR_PARAMETER_STRING,\n\n GV_IO_ERR_NO_MEMORY_STRING,\n GV_IO_ERR_FILE_NOT_FOUND_STRING,\n GV_IO_ERR_READ_STRING,\n GV_IO_ERR_WRITE_STRING,\n GV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n GV_NEW_MACRO_STRING,\n GV_MACRO_FILENAME_STRING,\n\n EXED_FILE_MENU_STRING,\n EXED_SHOW_VERSION_STRING,\n EXED_LOAD_XGROUP_STRING,\n EXED_SAVE_XGROUP_STRING,\n\n EXED_EDIT_MENU_STRING,\n EXED_SELECT_ALL_STRING,\n EXED_SELECT_NONE_STRING,\n EXED_ENABLE_SELECTED_STRING,\n EXED_DISABLE_SELECTED_STRING,\n EXED_CUT_SELECTED_STRING,\n EXED_COPY_SELECTED_STRING,\n EXED_PASTE_SELECTED_STRING,\n EXED_DELETE_SELECTED_STRING,\n\n EXED_EXTRA_MENU_STRING,\n EXED_PACK_NODES_STRING,\n\n EXED_LAYOUT_MENU_STRING,\n EXED_INPUTS_STRING,\n EXED_INPUTS_AT_LEFT_STRING,\n EXED_INPUTS_AT_RIGHT_STRING,\n EXED_INPUTS_AT_TOP_STRING,\n EXED_INPUTS_AT_BOTTOM_STRING,\n EXED_CONN_STRING,\n EXED_CONN_DIRECT_STRING,\n EXED_CONN_STRAIGHT_STRING,\n EXED_CONN_ENHANCED_STRING,\n EXED_CONN_CURVED_STRING,\n EXED_SHOW_STATUS_STRING,\n EXED_DEFAULT_LAYOUT_STRING,\n\n EXED_VIEW_MENU_STRING,\n EXED_ZOOM_MENU_STRING,\n EXED_ZOOM_FIT_STRING,\n EXED_ZOOM_FIT_SELECTED_STRING,\n EXED_ZOOM_100_STRING,\n EXED_ZOOM_75_STRING,\n EXED_ZOOM_50_STRING,\n EXED_ZOOM_25_STRING,\n EXED_CENTER_STRING,\n EXED_ALIGN_UPPER_LEFT_STRING,\n EXED_ALIGN_TO_GRID_STRING,\n\n EXED_HOOKS_MENU_STRING,\n\n EXED_MENU_CALCULATE_STRING,\n EXED_CALCULATE_STRING,\n EXED_LIVE_REFRESH_STRING,\n EXED_ANIM_REFRESH_STRING,\n\n EXED_DIALOG_TITLE_STRING,\n EXED_DIALOG_HELP_STRING,\n\n EXED_UNNAMED_MACRO_STRING,\n\n OP_DIALOG_TITLE_STRING,\n OP_MENU_NAME_STRING,\n\n OP_POOL_FILENAME_STRING,\n OP_UNNAMED_POOL_STRING,\n OP_PRESETS_POOL_STRING,\n OP_UNNAMED_FOLDER_STRING,\n OP_GET_FOLDER_STRING,\n\n OP_CREATE_POOL_STRING,\n OP_REMOVE_ENTRY_STRING,\n OP_RENAME_ENTRY_STRING,\n OP_CREATE_FOLDER_STRING,\n OP_EDIT_MENU_STRING,\n\n OP_OPERATORS_NAME_STRING,\n\n OP_RENAME_NODE_STRING,\n\n GV_BRANCH_NAME,\n\n GV_CONSTANT_0_STRING,\n GV_CONSTANT_1_STRING,\n GV_CONSTANT_10_STRING,\n GV_CONSTANT_100_STRING,\n GV_CONSTANT_1000_STRING,\n GV_CONSTANT_QUARTER_PI_STRING,\n GV_CONSTANT_HALF_PI_STRING,\n GV_CONSTANT_PI_STRING,\n GV_CONSTANT_DOUBLE_PI_STRING,\n\n GV_DIALOG_GUICONFIG,\n GV_DIALOG_COLORS,\n\n IDS_TP_VALUE_TYPE_PARTICLE,\n IDS_TP_DATA_TYPE_PARTICLE,\n IDS_TP_VALUE_TYPE_SHAPE,\n IDS_TP_DATA_TYPE_SHAPE,\n IDS_TP_VALUE_TYPE_GROUP,\n IDS_TP_DATA_TYPE_GROUP,\n IDS_TP_VALUE_TYPE_SPIN,\n IDS_TP_DATA_TYPE_SPIN,\n\n IDS_AM_MODE_NODES,\n\n GV_DATA_TYPE_GENERAL_TAG_STRING,\n GV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n GV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n GV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n GV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n GV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n GV_OPGROUP_TYPE_ITERATOR_STRING,\n\n GV_PASSWORD_STRING,\n\n IDC_GV_GUI_CONFIG_SORT_MENUS,\n IDC_GV_GUI_CONFIG_SORT_PORTS,\n\n OP_LOAD_POOL_STRING,\n\n IDS_DATATYPE_NORMAL,\n IDS_UPDATE_NORMAL,\n\n GV_CONSTANT_UP_STRING,\n GV_CONSTANT_DOWN_STRING,\n GV_CONSTANT_LEFT_STRING,\n GV_CONSTANT_RIGHT_STRING,\n GV_CONSTANT_FRONT_STRING,\n GV_CONSTANT_BACK_STRING,\n\n EXED_PERFORMANCEVIEW_STRING,\n\n IDS_PV_TITLE,\n IDS_PV_ENABLE,\n IDS_PV_LBL_MODE,\n IDS_PV_LBL_INTENSITY,\n IDC_PV_MODE_TIME,\n IDC_PV_MODE_COUNT,\n\n DUMMY_\n}" (enum) "enum" (enumerator_list) "{\n // string table definitions\n\n GV_MENU_NODE_OPERATOR_STRING = 1000,\n GV_MENU_NODE_DELETE_STRING,\n GV_MENU_NODE_RENAME_STRING,\n GV_MENU_NODE_ENABLE_STRING,\n GV_MENU_NODE_DISABLE_STRING,\n GV_MENU_NODE_OPTIMIZE_STRING,\n GV_MENU_NODE_PACK_NODES_STRING,\n GV_MENU_NODE_UNPACK_NODES_STRING,\n GV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n GV_MENU_NODE_VIEW_STRING,\n GV_MENU_NODE_MINIMIZED_STRING,\n GV_MENU_NODE_STANDARD_STRING,\n GV_MENU_NODE_EXTENDED_STRING,\n GV_MENU_NODE_FULLSCREEN_STRING,\n GV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n GV_MENU_NODE_CONNECTIONS_STRING,\n GV_MENU_NODE_CONN_REMOVE_STRING,\n\n GV_MENU_NODE_CREATE_NODE_STRING,\n GV_MENU_NODE_CREATE_MACRO_STRING,\n\n GV_MENU_NODE_PORTS_STRING,\n GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n GV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n GV_MENU_NODE_ALIGN_STRING,\n GV_MENU_NODE_ZOOM_FIT_STRING,\n GV_MENU_NODE_CENTER_STRING,\n GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n GV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n GV_MENU_PORT_INFO_STRING,\n GV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n GV_MENU_PORT_DELETE_STRING,\n GV_MENU_PORT_RENAME_STRING,\n GV_MENU_PORT_OPERATOR_STRING,\n\n GV_VALGROUP_TYPE_GENERAL_STRING,\n GV_OPCLASS_TYPE_GENERAL_STRING,\n\n GV_OPGROUP_TYPE_GENERAL_STRING,\n GV_OPGROUP_TYPE_OBJECT_STRING,\n GV_OPGROUP_TYPE_ADAPTER_STRING,\n GV_OPGROUP_TYPE_BOOL_STRING,\n GV_OPGROUP_TYPE_CALCULATE_STRING,\n GV_OPGROUP_TYPE_LOGICAL_STRING,\n GV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n EX_GV_DATA_TYPE_UNDEFINED_STRING,\n GV_DATA_TYPE_BOOL_STRING,\n GV_DATA_TYPE_INTEGER_STRING,\n GV_DATA_TYPE_REAL_STRING,\n GV_DATA_TYPE_VECTOR_STRING,\n GV_DATA_TYPE_NORMAL_STRING,\n GV_DATA_TYPE_MATRIX_STRING,\n GV_DATA_TYPE_TIME_STRING,\n GV_DATA_TYPE_STRING_STRING,\n GV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n EX_GV_VALUE_TYPE_UNDEFINED_STRING,\n GV_VALUE_TYPE_BOOL_STRING,\n GV_VALUE_TYPE_INTEGER_STRING,\n GV_VALUE_TYPE_REAL_STRING,\n GV_VALUE_TYPE_VECTOR_STRING,\n GV_VALUE_TYPE_NORMAL_STRING,\n GV_VALUE_TYPE_MATRIX_STRING,\n GV_VALUE_TYPE_TIME_STRING,\n GV_VALUE_TYPE_STRING_STRING,\n GV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n GV_GROUP_NODE_TITLE_STRING,\n GV_DUMMY_NODE_TITLE_STRING,\n GV_GROUP_ENABLE_STRING,\n\n GV_UNNAMED_PORT_STRING,\n GV_UNNAMED_DATA_TYPE_STRING,\n GV_UNNAMED_VALUE_TYPE_STRING,\n\n GV_PORT_NAME_STRING,\n GV_PORT_IO_STRING,\n GV_PORT_DATA_TYPE_STRING,\n GV_PORT_VALUE_TYPE_STRING,\n\n GV_GET_TITLE_STRING,\n GV_GET_NAME_STRING,\n GV_PORT_INFO_TITLE_STRING,\n\n GV_OPERATOR_INPUT_STRING,\n GV_OPERATOR_OUTPUT_STRING,\n\n GV_CONSTANT_INPUT_STRING,\n GV_CONSTANT_SELECT_STRING,\n\n GV_STATUS_STRING,\n\n GV_ERR_NONE_STRING,\n\n GV_CALC_ERR_NO_MEMORY_STRING,\n GV_CALC_ERR_UNDEFINED_STRING,\n GV_CALC_ERR_UNKNOWN_TYPE_STRING,\n GV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n GV_CALC_ERR_NOT_INITIALIZED_STRING,\n GV_CALC_ERR_NOT_VALID_STRING,\n GV_CALC_ERR_NO_OUTPORT_STRING,\n GV_CALC_ERR_NOT_CONNECTED_STRING,\n GV_CALC_ERR_NO_PORT_STRING,\n GV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n GV_CALC_ERR_TYPE_MISMATCH_STRING,\n GV_CALC_ERR_INIT_FAILED_STRING,\n GV_CALC_ERR_QUERY_FAILED_STRING,\n GV_CALC_ERR_CALCULATION_FAILED_STRING,\n GV_CALC_ERR_PARAMETER_STRING,\n\n GV_IO_ERR_NO_MEMORY_STRING,\n GV_IO_ERR_FILE_NOT_FOUND_STRING,\n GV_IO_ERR_READ_STRING,\n GV_IO_ERR_WRITE_STRING,\n GV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n GV_NEW_MACRO_STRING,\n GV_MACRO_FILENAME_STRING,\n\n EXED_FILE_MENU_STRING,\n EXED_SHOW_VERSION_STRING,\n EXED_LOAD_XGROUP_STRING,\n EXED_SAVE_XGROUP_STRING,\n\n EXED_EDIT_MENU_STRING,\n EXED_SELECT_ALL_STRING,\n EXED_SELECT_NONE_STRING,\n EXED_ENABLE_SELECTED_STRING,\n EXED_DISABLE_SELECTED_STRING,\n EXED_CUT_SELECTED_STRING,\n EXED_COPY_SELECTED_STRING,\n EXED_PASTE_SELECTED_STRING,\n EXED_DELETE_SELECTED_STRING,\n\n EXED_EXTRA_MENU_STRING,\n EXED_PACK_NODES_STRING,\n\n EXED_LAYOUT_MENU_STRING,\n EXED_INPUTS_STRING,\n EXED_INPUTS_AT_LEFT_STRING,\n EXED_INPUTS_AT_RIGHT_STRING,\n EXED_INPUTS_AT_TOP_STRING,\n EXED_INPUTS_AT_BOTTOM_STRING,\n EXED_CONN_STRING,\n EXED_CONN_DIRECT_STRING,\n EXED_CONN_STRAIGHT_STRING,\n EXED_CONN_ENHANCED_STRING,\n EXED_CONN_CURVED_STRING,\n EXED_SHOW_STATUS_STRING,\n EXED_DEFAULT_LAYOUT_STRING,\n\n EXED_VIEW_MENU_STRING,\n EXED_ZOOM_MENU_STRING,\n EXED_ZOOM_FIT_STRING,\n EXED_ZOOM_FIT_SELECTED_STRING,\n EXED_ZOOM_100_STRING,\n EXED_ZOOM_75_STRING,\n EXED_ZOOM_50_STRING,\n EXED_ZOOM_25_STRING,\n EXED_CENTER_STRING,\n EXED_ALIGN_UPPER_LEFT_STRING,\n EXED_ALIGN_TO_GRID_STRING,\n\n EXED_HOOKS_MENU_STRING,\n\n EXED_MENU_CALCULATE_STRING,\n EXED_CALCULATE_STRING,\n EXED_LIVE_REFRESH_STRING,\n EXED_ANIM_REFRESH_STRING,\n\n EXED_DIALOG_TITLE_STRING,\n EXED_DIALOG_HELP_STRING,\n\n EXED_UNNAMED_MACRO_STRING,\n\n OP_DIALOG_TITLE_STRING,\n OP_MENU_NAME_STRING,\n\n OP_POOL_FILENAME_STRING,\n OP_UNNAMED_POOL_STRING,\n OP_PRESETS_POOL_STRING,\n OP_UNNAMED_FOLDER_STRING,\n OP_GET_FOLDER_STRING,\n\n OP_CREATE_POOL_STRING,\n OP_REMOVE_ENTRY_STRING,\n OP_RENAME_ENTRY_STRING,\n OP_CREATE_FOLDER_STRING,\n OP_EDIT_MENU_STRING,\n\n OP_OPERATORS_NAME_STRING,\n\n OP_RENAME_NODE_STRING,\n\n GV_BRANCH_NAME,\n\n GV_CONSTANT_0_STRING,\n GV_CONSTANT_1_STRING,\n GV_CONSTANT_10_STRING,\n GV_CONSTANT_100_STRING,\n GV_CONSTANT_1000_STRING,\n GV_CONSTANT_QUARTER_PI_STRING,\n GV_CONSTANT_HALF_PI_STRING,\n GV_CONSTANT_PI_STRING,\n GV_CONSTANT_DOUBLE_PI_STRING,\n\n GV_DIALOG_GUICONFIG,\n GV_DIALOG_COLORS,\n\n IDS_TP_VALUE_TYPE_PARTICLE,\n IDS_TP_DATA_TYPE_PARTICLE,\n IDS_TP_VALUE_TYPE_SHAPE,\n IDS_TP_DATA_TYPE_SHAPE,\n IDS_TP_VALUE_TYPE_GROUP,\n IDS_TP_DATA_TYPE_GROUP,\n IDS_TP_VALUE_TYPE_SPIN,\n IDS_TP_DATA_TYPE_SPIN,\n\n IDS_AM_MODE_NODES,\n\n GV_DATA_TYPE_GENERAL_TAG_STRING,\n GV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n GV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n GV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n GV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n GV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n GV_OPGROUP_TYPE_ITERATOR_STRING,\n\n GV_PASSWORD_STRING,\n\n IDC_GV_GUI_CONFIG_SORT_MENUS,\n IDC_GV_GUI_CONFIG_SORT_PORTS,\n\n OP_LOAD_POOL_STRING,\n\n IDS_DATATYPE_NORMAL,\n IDS_UPDATE_NORMAL,\n\n GV_CONSTANT_UP_STRING,\n GV_CONSTANT_DOWN_STRING,\n GV_CONSTANT_LEFT_STRING,\n GV_CONSTANT_RIGHT_STRING,\n GV_CONSTANT_FRONT_STRING,\n GV_CONSTANT_BACK_STRING,\n\n EXED_PERFORMANCEVIEW_STRING,\n\n IDS_PV_TITLE,\n IDS_PV_ENABLE,\n IDS_PV_LBL_MODE,\n IDS_PV_LBL_INTENSITY,\n IDC_PV_MODE_TIME,\n IDC_PV_MODE_COUNT,\n\n DUMMY_\n}" ({) "{" (comment) "// string table definitions" (enumerator) "GV_MENU_NODE_OPERATOR_STRING = 1000" (identifier) "GV_MENU_NODE_OPERATOR_STRING" (=) "=" (number_literal) "1000" (,) "," (enumerator) "GV_MENU_NODE_DELETE_STRING" (identifier) "GV_MENU_NODE_DELETE_STRING" (,) "," (enumerator) "GV_MENU_NODE_RENAME_STRING" (identifier) "GV_MENU_NODE_RENAME_STRING" (,) "," (enumerator) "GV_MENU_NODE_ENABLE_STRING" (identifier) "GV_MENU_NODE_ENABLE_STRING" (,) "," (enumerator) "GV_MENU_NODE_DISABLE_STRING" (identifier) "GV_MENU_NODE_DISABLE_STRING" (,) "," (enumerator) "GV_MENU_NODE_OPTIMIZE_STRING" (identifier) "GV_MENU_NODE_OPTIMIZE_STRING" (,) "," (enumerator) "GV_MENU_NODE_PACK_NODES_STRING" (identifier) "GV_MENU_NODE_PACK_NODES_STRING" (,) "," (enumerator) "GV_MENU_NODE_UNPACK_NODES_STRING" (identifier) "GV_MENU_NODE_UNPACK_NODES_STRING" (,) "," (enumerator) "GV_MENU_NODE_SELECT_CONNECTED_STRING" (identifier) "GV_MENU_NODE_SELECT_CONNECTED_STRING" (,) "," (enumerator) "GV_MENU_NODE_VIEW_STRING" (identifier) "GV_MENU_NODE_VIEW_STRING" (,) "," (enumerator) "GV_MENU_NODE_MINIMIZED_STRING" (identifier) "GV_MENU_NODE_MINIMIZED_STRING" (,) "," (enumerator) "GV_MENU_NODE_STANDARD_STRING" (identifier) "GV_MENU_NODE_STANDARD_STRING" (,) "," (enumerator) "GV_MENU_NODE_EXTENDED_STRING" (identifier) "GV_MENU_NODE_EXTENDED_STRING" (,) "," (enumerator) "GV_MENU_NODE_FULLSCREEN_STRING" (identifier) "GV_MENU_NODE_FULLSCREEN_STRING" (,) "," (enumerator) "GV_MENU_NODE_LOCKED_EXTENDED_STRING" (identifier) "GV_MENU_NODE_LOCKED_EXTENDED_STRING" (,) "," (enumerator) "GV_MENU_NODE_CONNECTIONS_STRING" (identifier) "GV_MENU_NODE_CONNECTIONS_STRING" (,) "," (enumerator) "GV_MENU_NODE_CONN_REMOVE_STRING" (identifier) "GV_MENU_NODE_CONN_REMOVE_STRING" (,) "," (enumerator) "GV_MENU_NODE_CREATE_NODE_STRING" (identifier) "GV_MENU_NODE_CREATE_NODE_STRING" (,) "," (enumerator) "GV_MENU_NODE_CREATE_MACRO_STRING" (identifier) "GV_MENU_NODE_CREATE_MACRO_STRING" (,) "," (enumerator) "GV_MENU_NODE_PORTS_STRING" (identifier) "GV_MENU_NODE_PORTS_STRING" (,) "," (enumerator) "GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING" (identifier) "GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING" (,) "," (enumerator) "GV_MENU_NODE_PORTS_SHOW_NAMES_STRING" (identifier) "GV_MENU_NODE_PORTS_SHOW_NAMES_STRING" (,) "," (enumerator) "GV_MENU_NODE_ALIGN_STRING" (identifier) "GV_MENU_NODE_ALIGN_STRING" (,) "," (enumerator) "GV_MENU_NODE_ZOOM_FIT_STRING" (identifier) "GV_MENU_NODE_ZOOM_FIT_STRING" (,) "," (enumerator) "GV_MENU_NODE_CENTER_STRING" (identifier) "GV_MENU_NODE_CENTER_STRING" (,) "," (enumerator) "GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING" (identifier) "GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING" (,) "," (enumerator) "GV_MENU_NODE_ALIGN_TO_GRID_STRING" (identifier) "GV_MENU_NODE_ALIGN_TO_GRID_STRING" (,) "," (enumerator) "GV_MENU_PORT_INFO_STRING" (identifier) "GV_MENU_PORT_INFO_STRING" (,) "," (enumerator) "GV_MENU_PORT_REMOVE_CONNECTIONS_STRING" (identifier) "GV_MENU_PORT_REMOVE_CONNECTIONS_STRING" (,) "," (enumerator) "GV_MENU_PORT_DELETE_STRING" (identifier) "GV_MENU_PORT_DELETE_STRING" (,) "," (enumerator) "GV_MENU_PORT_RENAME_STRING" (identifier) "GV_MENU_PORT_RENAME_STRING" (,) "," (enumerator) "GV_MENU_PORT_OPERATOR_STRING" (identifier) "GV_MENU_PORT_OPERATOR_STRING" (,) "," (enumerator) "GV_VALGROUP_TYPE_GENERAL_STRING" (identifier) "GV_VALGROUP_TYPE_GENERAL_STRING" (,) "," (enumerator) "GV_OPCLASS_TYPE_GENERAL_STRING" (identifier) "GV_OPCLASS_TYPE_GENERAL_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_GENERAL_STRING" (identifier) "GV_OPGROUP_TYPE_GENERAL_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_OBJECT_STRING" (identifier) "GV_OPGROUP_TYPE_OBJECT_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_ADAPTER_STRING" (identifier) "GV_OPGROUP_TYPE_ADAPTER_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_BOOL_STRING" (identifier) "GV_OPGROUP_TYPE_BOOL_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_CALCULATE_STRING" (identifier) "GV_OPGROUP_TYPE_CALCULATE_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_LOGICAL_STRING" (identifier) "GV_OPGROUP_TYPE_LOGICAL_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_SCRIPTING_STRING" (identifier) "GV_OPGROUP_TYPE_SCRIPTING_STRING" (,) "," (enumerator) "EX_GV_DATA_TYPE_UNDEFINED_STRING" (identifier) "EX_GV_DATA_TYPE_UNDEFINED_STRING" (,) "," (enumerator) "GV_DATA_TYPE_BOOL_STRING" (identifier) "GV_DATA_TYPE_BOOL_STRING" (,) "," (enumerator) "GV_DATA_TYPE_INTEGER_STRING" (identifier) "GV_DATA_TYPE_INTEGER_STRING" (,) "," (enumerator) "GV_DATA_TYPE_REAL_STRING" (identifier) "GV_DATA_TYPE_REAL_STRING" (,) "," (enumerator) "GV_DATA_TYPE_VECTOR_STRING" (identifier) "GV_DATA_TYPE_VECTOR_STRING" (,) "," (enumerator) "GV_DATA_TYPE_NORMAL_STRING" (identifier) "GV_DATA_TYPE_NORMAL_STRING" (,) "," (enumerator) "GV_DATA_TYPE_MATRIX_STRING" (identifier) "GV_DATA_TYPE_MATRIX_STRING" (,) "," (enumerator) "GV_DATA_TYPE_TIME_STRING" (identifier) "GV_DATA_TYPE_TIME_STRING" (,) "," (enumerator) "GV_DATA_TYPE_STRING_STRING" (identifier) "GV_DATA_TYPE_STRING_STRING" (,) "," (enumerator) "GV_DATA_TYPE_GENERAL_OBJECT_STRING" (identifier) "GV_DATA_TYPE_GENERAL_OBJECT_STRING" (,) "," (enumerator) "EX_GV_VALUE_TYPE_UNDEFINED_STRING" (identifier) "EX_GV_VALUE_TYPE_UNDEFINED_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_BOOL_STRING" (identifier) "GV_VALUE_TYPE_BOOL_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_INTEGER_STRING" (identifier) "GV_VALUE_TYPE_INTEGER_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_REAL_STRING" (identifier) "GV_VALUE_TYPE_REAL_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_VECTOR_STRING" (identifier) "GV_VALUE_TYPE_VECTOR_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_NORMAL_STRING" (identifier) "GV_VALUE_TYPE_NORMAL_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_MATRIX_STRING" (identifier) "GV_VALUE_TYPE_MATRIX_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_TIME_STRING" (identifier) "GV_VALUE_TYPE_TIME_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_STRING_STRING" (identifier) "GV_VALUE_TYPE_STRING_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_GENERAL_OBJECT_STRING" (identifier) "GV_VALUE_TYPE_GENERAL_OBJECT_STRING" (,) "," (enumerator) "GV_GROUP_NODE_TITLE_STRING" (identifier) "GV_GROUP_NODE_TITLE_STRING" (,) "," (enumerator) "GV_DUMMY_NODE_TITLE_STRING" (identifier) "GV_DUMMY_NODE_TITLE_STRING" (,) "," (enumerator) "GV_GROUP_ENABLE_STRING" (identifier) "GV_GROUP_ENABLE_STRING" (,) "," (enumerator) "GV_UNNAMED_PORT_STRING" (identifier) "GV_UNNAMED_PORT_STRING" (,) "," (enumerator) "GV_UNNAMED_DATA_TYPE_STRING" (identifier) "GV_UNNAMED_DATA_TYPE_STRING" (,) "," (enumerator) "GV_UNNAMED_VALUE_TYPE_STRING" (identifier) "GV_UNNAMED_VALUE_TYPE_STRING" (,) "," (enumerator) "GV_PORT_NAME_STRING" (identifier) "GV_PORT_NAME_STRING" (,) "," (enumerator) "GV_PORT_IO_STRING" (identifier) "GV_PORT_IO_STRING" (,) "," (enumerator) "GV_PORT_DATA_TYPE_STRING" (identifier) "GV_PORT_DATA_TYPE_STRING" (,) "," (enumerator) "GV_PORT_VALUE_TYPE_STRING" (identifier) "GV_PORT_VALUE_TYPE_STRING" (,) "," (enumerator) "GV_GET_TITLE_STRING" (identifier) "GV_GET_TITLE_STRING" (,) "," (enumerator) "GV_GET_NAME_STRING" (identifier) "GV_GET_NAME_STRING" (,) "," (enumerator) "GV_PORT_INFO_TITLE_STRING" (identifier) "GV_PORT_INFO_TITLE_STRING" (,) "," (enumerator) "GV_OPERATOR_INPUT_STRING" (identifier) "GV_OPERATOR_INPUT_STRING" (,) "," (enumerator) "GV_OPERATOR_OUTPUT_STRING" (identifier) "GV_OPERATOR_OUTPUT_STRING" (,) "," (enumerator) "GV_CONSTANT_INPUT_STRING" (identifier) "GV_CONSTANT_INPUT_STRING" (,) "," (enumerator) "GV_CONSTANT_SELECT_STRING" (identifier) "GV_CONSTANT_SELECT_STRING" (,) "," (enumerator) "GV_STATUS_STRING" (identifier) "GV_STATUS_STRING" (,) "," (enumerator) "GV_ERR_NONE_STRING" (identifier) "GV_ERR_NONE_STRING" (,) "," (enumerator) "GV_CALC_ERR_NO_MEMORY_STRING" (identifier) "GV_CALC_ERR_NO_MEMORY_STRING" (,) "," (enumerator) "GV_CALC_ERR_UNDEFINED_STRING" (identifier) "GV_CALC_ERR_UNDEFINED_STRING" (,) "," (enumerator) "GV_CALC_ERR_UNKNOWN_TYPE_STRING" (identifier) "GV_CALC_ERR_UNKNOWN_TYPE_STRING" (,) "," (enumerator) "GV_CALC_ERR_NOT_IMPLEMENTED_STRING" (identifier) "GV_CALC_ERR_NOT_IMPLEMENTED_STRING" (,) "," (enumerator) "GV_CALC_ERR_NOT_INITIALIZED_STRING" (identifier) "GV_CALC_ERR_NOT_INITIALIZED_STRING" (,) "," (enumerator) "GV_CALC_ERR_NOT_VALID_STRING" (identifier) "GV_CALC_ERR_NOT_VALID_STRING" (,) "," (enumerator) "GV_CALC_ERR_NO_OUTPORT_STRING" (identifier) "GV_CALC_ERR_NO_OUTPORT_STRING" (,) "," (enumerator) "GV_CALC_ERR_NOT_CONNECTED_STRING" (identifier) "GV_CALC_ERR_NOT_CONNECTED_STRING" (,) "," (enumerator) "GV_CALC_ERR_NO_PORT_STRING" (identifier) "GV_CALC_ERR_NO_PORT_STRING" (,) "," (enumerator) "GV_CALC_ERR_DIVISION_BY_ZERO_STRING" (identifier) "GV_CALC_ERR_DIVISION_BY_ZERO_STRING" (,) "," (enumerator) "GV_CALC_ERR_TYPE_MISMATCH_STRING" (identifier) "GV_CALC_ERR_TYPE_MISMATCH_STRING" (,) "," (enumerator) "GV_CALC_ERR_INIT_FAILED_STRING" (identifier) "GV_CALC_ERR_INIT_FAILED_STRING" (,) "," (enumerator) "GV_CALC_ERR_QUERY_FAILED_STRING" (identifier) "GV_CALC_ERR_QUERY_FAILED_STRING" (,) "," (enumerator) "GV_CALC_ERR_CALCULATION_FAILED_STRING" (identifier) "GV_CALC_ERR_CALCULATION_FAILED_STRING" (,) "," (enumerator) "GV_CALC_ERR_PARAMETER_STRING" (identifier) "GV_CALC_ERR_PARAMETER_STRING" (,) "," (enumerator) "GV_IO_ERR_NO_MEMORY_STRING" (identifier) "GV_IO_ERR_NO_MEMORY_STRING" (,) "," (enumerator) "GV_IO_ERR_FILE_NOT_FOUND_STRING" (identifier) "GV_IO_ERR_FILE_NOT_FOUND_STRING" (,) "," (enumerator) "GV_IO_ERR_READ_STRING" (identifier) "GV_IO_ERR_READ_STRING" (,) "," (enumerator) "GV_IO_ERR_WRITE_STRING" (identifier) "GV_IO_ERR_WRITE_STRING" (,) "," (enumerator) "GV_IO_ERR_NOT_A_GROUP_NODE_STRING" (identifier) "GV_IO_ERR_NOT_A_GROUP_NODE_STRING" (,) "," (enumerator) "GV_NEW_MACRO_STRING" (identifier) "GV_NEW_MACRO_STRING" (,) "," (enumerator) "GV_MACRO_FILENAME_STRING" (identifier) "GV_MACRO_FILENAME_STRING" (,) "," (enumerator) "EXED_FILE_MENU_STRING" (identifier) "EXED_FILE_MENU_STRING" (,) "," (enumerator) "EXED_SHOW_VERSION_STRING" (identifier) "EXED_SHOW_VERSION_STRING" (,) "," (enumerator) "EXED_LOAD_XGROUP_STRING" (identifier) "EXED_LOAD_XGROUP_STRING" (,) "," (enumerator) "EXED_SAVE_XGROUP_STRING" (identifier) "EXED_SAVE_XGROUP_STRING" (,) "," (enumerator) "EXED_EDIT_MENU_STRING" (identifier) "EXED_EDIT_MENU_STRING" (,) "," (enumerator) "EXED_SELECT_ALL_STRING" (identifier) "EXED_SELECT_ALL_STRING" (,) "," (enumerator) "EXED_SELECT_NONE_STRING" (identifier) "EXED_SELECT_NONE_STRING" (,) "," (enumerator) "EXED_ENABLE_SELECTED_STRING" (identifier) "EXED_ENABLE_SELECTED_STRING" (,) "," (enumerator) "EXED_DISABLE_SELECTED_STRING" (identifier) "EXED_DISABLE_SELECTED_STRING" (,) "," (enumerator) "EXED_CUT_SELECTED_STRING" (identifier) "EXED_CUT_SELECTED_STRING" (,) "," (enumerator) "EXED_COPY_SELECTED_STRING" (identifier) "EXED_COPY_SELECTED_STRING" (,) "," (enumerator) "EXED_PASTE_SELECTED_STRING" (identifier) "EXED_PASTE_SELECTED_STRING" (,) "," (enumerator) "EXED_DELETE_SELECTED_STRING" (identifier) "EXED_DELETE_SELECTED_STRING" (,) "," (enumerator) "EXED_EXTRA_MENU_STRING" (identifier) "EXED_EXTRA_MENU_STRING" (,) "," (enumerator) "EXED_PACK_NODES_STRING" (identifier) "EXED_PACK_NODES_STRING" (,) "," (enumerator) "EXED_LAYOUT_MENU_STRING" (identifier) "EXED_LAYOUT_MENU_STRING" (,) "," (enumerator) "EXED_INPUTS_STRING" (identifier) "EXED_INPUTS_STRING" (,) "," (enumerator) "EXED_INPUTS_AT_LEFT_STRING" (identifier) "EXED_INPUTS_AT_LEFT_STRING" (,) "," (enumerator) "EXED_INPUTS_AT_RIGHT_STRING" (identifier) "EXED_INPUTS_AT_RIGHT_STRING" (,) "," (enumerator) "EXED_INPUTS_AT_TOP_STRING" (identifier) "EXED_INPUTS_AT_TOP_STRING" (,) "," (enumerator) "EXED_INPUTS_AT_BOTTOM_STRING" (identifier) "EXED_INPUTS_AT_BOTTOM_STRING" (,) "," (enumerator) "EXED_CONN_STRING" (identifier) "EXED_CONN_STRING" (,) "," (enumerator) "EXED_CONN_DIRECT_STRING" (identifier) "EXED_CONN_DIRECT_STRING" (,) "," (enumerator) "EXED_CONN_STRAIGHT_STRING" (identifier) "EXED_CONN_STRAIGHT_STRING" (,) "," (enumerator) "EXED_CONN_ENHANCED_STRING" (identifier) "EXED_CONN_ENHANCED_STRING" (,) "," (enumerator) "EXED_CONN_CURVED_STRING" (identifier) "EXED_CONN_CURVED_STRING" (,) "," (enumerator) "EXED_SHOW_STATUS_STRING" (identifier) "EXED_SHOW_STATUS_STRING" (,) "," (enumerator) "EXED_DEFAULT_LAYOUT_STRING" (identifier) "EXED_DEFAULT_LAYOUT_STRING" (,) "," (enumerator) "EXED_VIEW_MENU_STRING" (identifier) "EXED_VIEW_MENU_STRING" (,) "," (enumerator) "EXED_ZOOM_MENU_STRING" (identifier) "EXED_ZOOM_MENU_STRING" (,) "," (enumerator) "EXED_ZOOM_FIT_STRING" (identifier) "EXED_ZOOM_FIT_STRING" (,) "," (enumerator) "EXED_ZOOM_FIT_SELECTED_STRING" (identifier) "EXED_ZOOM_FIT_SELECTED_STRING" (,) "," (enumerator) "EXED_ZOOM_100_STRING" (identifier) "EXED_ZOOM_100_STRING" (,) "," (enumerator) "EXED_ZOOM_75_STRING" (identifier) "EXED_ZOOM_75_STRING" (,) "," (enumerator) "EXED_ZOOM_50_STRING" (identifier) "EXED_ZOOM_50_STRING" (,) "," (enumerator) "EXED_ZOOM_25_STRING" (identifier) "EXED_ZOOM_25_STRING" (,) "," (enumerator) "EXED_CENTER_STRING" (identifier) "EXED_CENTER_STRING" (,) "," (enumerator) "EXED_ALIGN_UPPER_LEFT_STRING" (identifier) "EXED_ALIGN_UPPER_LEFT_STRING" (,) "," (enumerator) "EXED_ALIGN_TO_GRID_STRING" (identifier) "EXED_ALIGN_TO_GRID_STRING" (,) "," (enumerator) "EXED_HOOKS_MENU_STRING" (identifier) "EXED_HOOKS_MENU_STRING" (,) "," (enumerator) "EXED_MENU_CALCULATE_STRING" (identifier) "EXED_MENU_CALCULATE_STRING" (,) "," (enumerator) "EXED_CALCULATE_STRING" (identifier) "EXED_CALCULATE_STRING" (,) "," (enumerator) "EXED_LIVE_REFRESH_STRING" (identifier) "EXED_LIVE_REFRESH_STRING" (,) "," (enumerator) "EXED_ANIM_REFRESH_STRING" (identifier) "EXED_ANIM_REFRESH_STRING" (,) "," (enumerator) "EXED_DIALOG_TITLE_STRING" (identifier) "EXED_DIALOG_TITLE_STRING" (,) "," (enumerator) "EXED_DIALOG_HELP_STRING" (identifier) "EXED_DIALOG_HELP_STRING" (,) "," (enumerator) "EXED_UNNAMED_MACRO_STRING" (identifier) "EXED_UNNAMED_MACRO_STRING" (,) "," (enumerator) "OP_DIALOG_TITLE_STRING" (identifier) "OP_DIALOG_TITLE_STRING" (,) "," (enumerator) "OP_MENU_NAME_STRING" (identifier) "OP_MENU_NAME_STRING" (,) "," (enumerator) "OP_POOL_FILENAME_STRING" (identifier) "OP_POOL_FILENAME_STRING" (,) "," (enumerator) "OP_UNNAMED_POOL_STRING" (identifier) "OP_UNNAMED_POOL_STRING" (,) "," (enumerator) "OP_PRESETS_POOL_STRING" (identifier) "OP_PRESETS_POOL_STRING" (,) "," (enumerator) "OP_UNNAMED_FOLDER_STRING" (identifier) "OP_UNNAMED_FOLDER_STRING" (,) "," (enumerator) "OP_GET_FOLDER_STRING" (identifier) "OP_GET_FOLDER_STRING" (,) "," (enumerator) "OP_CREATE_POOL_STRING" (identifier) "OP_CREATE_POOL_STRING" (,) "," (enumerator) "OP_REMOVE_ENTRY_STRING" (identifier) "OP_REMOVE_ENTRY_STRING" (,) "," (enumerator) "OP_RENAME_ENTRY_STRING" (identifier) "OP_RENAME_ENTRY_STRING" (,) "," (enumerator) "OP_CREATE_FOLDER_STRING" (identifier) "OP_CREATE_FOLDER_STRING" (,) "," (enumerator) "OP_EDIT_MENU_STRING" (identifier) "OP_EDIT_MENU_STRING" (,) "," (enumerator) "OP_OPERATORS_NAME_STRING" (identifier) "OP_OPERATORS_NAME_STRING" (,) "," (enumerator) "OP_RENAME_NODE_STRING" (identifier) "OP_RENAME_NODE_STRING" (,) "," (enumerator) "GV_BRANCH_NAME" (identifier) "GV_BRANCH_NAME" (,) "," (enumerator) "GV_CONSTANT_0_STRING" (identifier) "GV_CONSTANT_0_STRING" (,) "," (enumerator) "GV_CONSTANT_1_STRING" (identifier) "GV_CONSTANT_1_STRING" (,) "," (enumerator) "GV_CONSTANT_10_STRING" (identifier) "GV_CONSTANT_10_STRING" (,) "," (enumerator) "GV_CONSTANT_100_STRING" (identifier) "GV_CONSTANT_100_STRING" (,) "," (enumerator) "GV_CONSTANT_1000_STRING" (identifier) "GV_CONSTANT_1000_STRING" (,) "," (enumerator) "GV_CONSTANT_QUARTER_PI_STRING" (identifier) "GV_CONSTANT_QUARTER_PI_STRING" (,) "," (enumerator) "GV_CONSTANT_HALF_PI_STRING" (identifier) "GV_CONSTANT_HALF_PI_STRING" (,) "," (enumerator) "GV_CONSTANT_PI_STRING" (identifier) "GV_CONSTANT_PI_STRING" (,) "," (enumerator) "GV_CONSTANT_DOUBLE_PI_STRING" (identifier) "GV_CONSTANT_DOUBLE_PI_STRING" (,) "," (enumerator) "GV_DIALOG_GUICONFIG" (identifier) "GV_DIALOG_GUICONFIG" (,) "," (enumerator) "GV_DIALOG_COLORS" (identifier) "GV_DIALOG_COLORS" (,) "," (enumerator) "IDS_TP_VALUE_TYPE_PARTICLE" (identifier) "IDS_TP_VALUE_TYPE_PARTICLE" (,) "," (enumerator) "IDS_TP_DATA_TYPE_PARTICLE" (identifier) "IDS_TP_DATA_TYPE_PARTICLE" (,) "," (enumerator) "IDS_TP_VALUE_TYPE_SHAPE" (identifier) "IDS_TP_VALUE_TYPE_SHAPE" (,) "," (enumerator) "IDS_TP_DATA_TYPE_SHAPE" (identifier) "IDS_TP_DATA_TYPE_SHAPE" (,) "," (enumerator) "IDS_TP_VALUE_TYPE_GROUP" (identifier) "IDS_TP_VALUE_TYPE_GROUP" (,) "," (enumerator) "IDS_TP_DATA_TYPE_GROUP" (identifier) "IDS_TP_DATA_TYPE_GROUP" (,) "," (enumerator) "IDS_TP_VALUE_TYPE_SPIN" (identifier) "IDS_TP_VALUE_TYPE_SPIN" (,) "," (enumerator) "IDS_TP_DATA_TYPE_SPIN" (identifier) "IDS_TP_DATA_TYPE_SPIN" (,) "," (enumerator) "IDS_AM_MODE_NODES" (identifier) "IDS_AM_MODE_NODES" (,) "," (enumerator) "GV_DATA_TYPE_GENERAL_TAG_STRING" (identifier) "GV_DATA_TYPE_GENERAL_TAG_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_GENERAL_TAG_STRING" (identifier) "GV_VALUE_TYPE_GENERAL_TAG_STRING" (,) "," (enumerator) "GV_DATA_TYPE_GENERAL_MATERIAL_STRING" (identifier) "GV_DATA_TYPE_GENERAL_MATERIAL_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_GENERAL_MATERIAL_STRING" (identifier) "GV_VALUE_TYPE_GENERAL_MATERIAL_STRING" (,) "," (enumerator) "GV_DATA_TYPE_GENERAL_INSTANCE_STRING" (identifier) "GV_DATA_TYPE_GENERAL_INSTANCE_STRING" (,) "," (enumerator) "GV_VALUE_TYPE_GENERAL_INSTANCE_STRING" (identifier) "GV_VALUE_TYPE_GENERAL_INSTANCE_STRING" (,) "," (enumerator) "GV_OPGROUP_TYPE_ITERATOR_STRING" (identifier) "GV_OPGROUP_TYPE_ITERATOR_STRING" (,) "," (enumerator) "GV_PASSWORD_STRING" (identifier) "GV_PASSWORD_STRING" (,) "," (enumerator) "IDC_GV_GUI_CONFIG_SORT_MENUS" (identifier) "IDC_GV_GUI_CONFIG_SORT_MENUS" (,) "," (enumerator) "IDC_GV_GUI_CONFIG_SORT_PORTS" (identifier) "IDC_GV_GUI_CONFIG_SORT_PORTS" (,) "," (enumerator) "OP_LOAD_POOL_STRING" (identifier) "OP_LOAD_POOL_STRING" (,) "," (enumerator) "IDS_DATATYPE_NORMAL" (identifier) "IDS_DATATYPE_NORMAL" (,) "," (enumerator) "IDS_UPDATE_NORMAL" (identifier) "IDS_UPDATE_NORMAL" (,) "," (enumerator) "GV_CONSTANT_UP_STRING" (identifier) "GV_CONSTANT_UP_STRING" (,) "," (enumerator) "GV_CONSTANT_DOWN_STRING" (identifier) "GV_CONSTANT_DOWN_STRING" (,) "," (enumerator) "GV_CONSTANT_LEFT_STRING" (identifier) "GV_CONSTANT_LEFT_STRING" (,) "," (enumerator) "GV_CONSTANT_RIGHT_STRING" (identifier) "GV_CONSTANT_RIGHT_STRING" (,) "," (enumerator) "GV_CONSTANT_FRONT_STRING" (identifier) "GV_CONSTANT_FRONT_STRING" (,) "," (enumerator) "GV_CONSTANT_BACK_STRING" (identifier) "GV_CONSTANT_BACK_STRING" (,) "," (enumerator) "EXED_PERFORMANCEVIEW_STRING" (identifier) "EXED_PERFORMANCEVIEW_STRING" (,) "," (enumerator) "IDS_PV_TITLE" (identifier) "IDS_PV_TITLE" (,) "," (enumerator) "IDS_PV_ENABLE" (identifier) "IDS_PV_ENABLE" (,) "," (enumerator) "IDS_PV_LBL_MODE" (identifier) "IDS_PV_LBL_MODE" (,) "," (enumerator) "IDS_PV_LBL_INTENSITY" (identifier) "IDS_PV_LBL_INTENSITY" (,) "," (enumerator) "IDC_PV_MODE_TIME" (identifier) "IDC_PV_MODE_TIME" (,) "," (enumerator) "IDC_PV_MODE_COUNT" (identifier) "IDC_PV_MODE_COUNT" (,) "," (enumerator) "DUMMY_" (identifier) "DUMMY_" (}) "}" (;) ";" (#endif) "#endif" (comment) "// C4D_SYMBOLS_H__"
650
0
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 26.89, "nodes": 434, "errors": 0, "source_hash": "3200ad622fe0a3b3a68e55bcb89e5a8d2292fe25f64479d71b83befb2d705032", "categorized_nodes": 431}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef C4D_SYMBOLS_H__\n#define C4D_SYMBOLS_H__\n\nenum\n{\n\t// string table definitions\n\n\tGV_MENU_NODE_OPERATOR_STRING = 1000,\n\tGV_MENU_NODE_DELETE_STRING,\n\tGV_MENU_NODE_RENAME_STRING,\n\tGV_MENU_NODE_ENABLE_STRING,\n\tGV_MENU_NODE_DISABLE_STRING,\n\tGV_MENU_NODE_OPTIMIZE_STRING,\n\tGV_MENU_NODE_PACK_NODES_STRING,\n\tGV_MENU_NODE_UNPACK_NODES_STRING,\n\tGV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n\tGV_MENU_NODE_VIEW_STRING,\n\tGV_MENU_NODE_MINIMIZED_STRING,\n\tGV_MENU_NODE_STANDARD_STRING,\n\tGV_MENU_NODE_EXTENDED_STRING,\n\tGV_MENU_NODE_FULLSCREEN_STRING,\n\tGV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n\tGV_MENU_NODE_CONNECTIONS_STRING,\n\tGV_MENU_NODE_CONN_REMOVE_STRING,\n\n\tGV_MENU_NODE_CREATE_NODE_STRING,\n\tGV_MENU_NODE_CREATE_MACRO_STRING,\n\n\tGV_MENU_NODE_PORTS_STRING,\n\tGV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n\tGV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n\tGV_MENU_NODE_ALIGN_STRING,\n\tGV_MENU_NODE_ZOOM_FIT_STRING,\n\tGV_MENU_NODE_CENTER_STRING,\n\tGV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n\tGV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n\tGV_MENU_PORT_INFO_STRING,\n\tGV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n\tGV_MENU_PORT_DELETE_STRING,\n\tGV_MENU_PORT_RENAME_STRING,\n\tGV_MENU_PORT_OPERATOR_STRING,\n\n\tGV_VALGROUP_TYPE_GENERAL_STRING,\n\tGV_OPCLASS_TYPE_GENERAL_STRING,\n\n\tGV_OPGROUP_TYPE_GENERAL_STRING,\n\tGV_OPGROUP_TYPE_OBJECT_STRING,\n\tGV_OPGROUP_TYPE_ADAPTER_STRING,\n\tGV_OPGROUP_TYPE_BOOL_STRING,\n\tGV_OPGROUP_TYPE_CALCULATE_STRING,\n\tGV_OPGROUP_TYPE_LOGICAL_STRING,\n\tGV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n\tEX_GV_DATA_TYPE_UNDEFINED_STRING,\n\tGV_DATA_TYPE_BOOL_STRING,\n\tGV_DATA_TYPE_INTEGER_STRING,\n\tGV_DATA_TYPE_REAL_STRING,\n\tGV_DATA_TYPE_VECTOR_STRING,\n\tGV_DATA_TYPE_NORMAL_STRING,\n\tGV_DATA_TYPE_MATRIX_STRING,\n\tGV_DATA_TYPE_TIME_STRING,\n\tGV_DATA_TYPE_STRING_STRING,\n\tGV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n\tEX_GV_VALUE_TYPE_UNDEFINED_STRING,\n\tGV_VALUE_TYPE_BOOL_STRING,\n\tGV_VALUE_TYPE_INTEGER_STRING,\n\tGV_VALUE_TYPE_REAL_STRING,\n\tGV_VALUE_TYPE_VECTOR_STRING,\n\tGV_VALUE_TYPE_NORMAL_STRING,\n\tGV_VALUE_TYPE_MATRIX_STRING,\n\tGV_VALUE_TYPE_TIME_STRING,\n\tGV_VALUE_TYPE_STRING_STRING,\n\tGV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n\tGV_GROUP_NODE_TITLE_STRING,\n\tGV_DUMMY_NODE_TITLE_STRING,\n\tGV_GROUP_ENABLE_STRING,\n\n\tGV_UNNAMED_PORT_STRING,\n\tGV_UNNAMED_DATA_TYPE_STRING,\n\tGV_UNNAMED_VALUE_TYPE_STRING,\n\n\tGV_PORT_NAME_STRING,\n\tGV_PORT_IO_STRING,\n\tGV_PORT_DATA_TYPE_STRING,\n\tGV_PORT_VALUE_TYPE_STRING,\n\n\tGV_GET_TITLE_STRING,\n\tGV_GET_NAME_STRING,\n\tGV_PORT_INFO_TITLE_STRING,\n\n\tGV_OPERATOR_INPUT_STRING,\n\tGV_OPERATOR_OUTPUT_STRING,\n\n\tGV_CONSTANT_INPUT_STRING,\n\tGV_CONSTANT_SELECT_STRING,\n\n\tGV_STATUS_STRING,\n\n\tGV_ERR_NONE_STRING,\n\n\tGV_CALC_ERR_NO_MEMORY_STRING,\n\tGV_CALC_ERR_UNDEFINED_STRING,\n\tGV_CALC_ERR_UNKNOWN_TYPE_STRING,\n\tGV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n\tGV_CALC_ERR_NOT_INITIALIZED_STRING,\n\tGV_CALC_ERR_NOT_VALID_STRING,\n\tGV_CALC_ERR_NO_OUTPORT_STRING,\n\tGV_CALC_ERR_NOT_CONNECTED_STRING,\n\tGV_CALC_ERR_NO_PORT_STRING,\n\tGV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n\tGV_CALC_ERR_TYPE_MISMATCH_STRING,\n\tGV_CALC_ERR_INIT_FAILED_STRING,\n\tGV_CALC_ERR_QUERY_FAILED_STRING,\n\tGV_CALC_ERR_CALCULATION_FAILED_STRING,\n\tGV_CALC_ERR_PARAMETER_STRING,\n\n\tGV_IO_ERR_NO_MEMORY_STRING,\n\tGV_IO_ERR_FILE_NOT_FOUND_STRING,\n\tGV_IO_ERR_READ_STRING,\n\tGV_IO_ERR_WRITE_STRING,\n\tGV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n\tGV_NEW_MACRO_STRING,\n\tGV_MACRO_FILENAME_STRING,\n\n\tEXED_FILE_MENU_STRING,\n\tEXED_SHOW_VERSION_STRING,\n\tEXED_LOAD_XGROUP_STRING,\n\tEXED_SAVE_XGROUP_STRING,\n\n\tEXED_EDIT_MENU_STRING,\n\tEXED_SELECT_ALL_STRING,\n\tEXED_SELECT_NONE_STRING,\n\tEXED_ENABLE_SELECTED_STRING,\n\tEXED_DISABLE_SELECTED_STRING,\n\tEXED_CUT_SELECTED_STRING,\n\tEXED_COPY_SELECTED_STRING,\n\tEXED_PASTE_SELECTED_STRING,\n\tEXED_DELETE_SELECTED_STRING,\n\n\tEXED_EXTRA_MENU_STRING,\n\tEXED_PACK_NODES_STRING,\n\n\tEXED_LAYOUT_MENU_STRING,\n\tEXED_INPUTS_STRING,\n\tEXED_INPUTS_AT_LEFT_STRING,\n\tEXED_INPUTS_AT_RIGHT_STRING,\n\tEXED_INPUTS_AT_TOP_STRING,\n\tEXED_INPUTS_AT_BOTTOM_STRING,\n\tEXED_CONN_STRING,\n\tEXED_CONN_DIRECT_STRING,\n\tEXED_CONN_STRAIGHT_STRING,\n\tEXED_CONN_ENHANCED_STRING,\n\tEXED_CONN_CURVED_STRING,\n\tEXED_SHOW_STATUS_STRING,\n\tEXED_DEFAULT_LAYOUT_STRING,\n\n\tEXED_VIEW_MENU_STRING,\n\tEXED_ZOOM_MENU_STRING,\n\tEXED_ZOOM_FIT_STRING,\n\tEXED_ZOOM_FIT_SELECTED_STRING,\n\tEXED_ZOOM_100_STRING,\n\tEXED_ZOOM_75_STRING,\n\tEXED_ZOOM_50_STRING,\n\tEXED_ZOOM_25_STRING,\n\tEXED_CENTER_STRING,\n\tEXED_ALIGN_UPPER_LEFT_STRING,\n\tEXED_ALIGN_TO_GRID_STRING,\n\n\tEXED_HOOKS_MENU_STRING,\n\n\tEXED_MENU_CALCULATE_STRING,\n\tEXED_CALCULATE_STRING,\n\tEXED_LIVE_REFRESH_STRING,\n\tEXED_ANIM_REFRESH_STRING,\n\n\tEXED_DIALOG_TITLE_STRING,\n\tEXED_DIALOG_HELP_STRING,\n\n\tEXED_UNNAMED_MACRO_STRING,\n\n\tOP_DIALOG_TITLE_STRING,\n\tOP_MENU_NAME_STRING,\n\n\tOP_POOL_FILENAME_STRING,\n\tOP_UNNAMED_POOL_STRING,\n\tOP_PRESETS_POOL_STRING,\n\tOP_UNNAMED_FOLDER_STRING,\n\tOP_GET_FOLDER_STRING,\n\n\tOP_CREATE_POOL_STRING,\n\tOP_REMOVE_ENTRY_STRING,\n\tOP_RENAME_ENTRY_STRING,\n\tOP_CREATE_FOLDER_STRING,\n\tOP_EDIT_MENU_STRING,\n\n\tOP_OPERATORS_NAME_STRING,\n\n\tOP_RENAME_NODE_STRING,\n\n\tGV_BRANCH_NAME,\n\n\tGV_CONSTANT_0_STRING,\n\tGV_CONSTANT_1_STRING,\n\tGV_CONSTANT_10_STRING,\n\tGV_CONSTANT_100_STRING,\n\tGV_CONSTANT_1000_STRING,\n\tGV_CONSTANT_QUARTER_PI_STRING,\n\tGV_CONSTANT_HALF_PI_STRING,\n\tGV_CONSTANT_PI_STRING,\n\tGV_CONSTANT_DOUBLE_PI_STRING,\n\n\tGV_DIALOG_GUICONFIG,\n\tGV_DIALOG_COLORS,\n\n\tIDS_TP_VALUE_TYPE_PARTICLE,\n\tIDS_TP_DATA_TYPE_PARTICLE,\n\tIDS_TP_VALUE_TYPE_SHAPE,\n\tIDS_TP_DATA_TYPE_SHAPE,\n\tIDS_TP_VALUE_TYPE_GROUP,\n\tIDS_TP_DATA_TYPE_GROUP,\n\tIDS_TP_VALUE_TYPE_SPIN,\n\tIDS_TP_DATA_TYPE_SPIN,\n\n\tIDS_AM_MODE_NODES,\n\n\tGV_DATA_TYPE_GENERAL_TAG_STRING,\n\tGV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n\tGV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n\tGV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n\tGV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n\tGV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n\tGV_OPGROUP_TYPE_ITERATOR_STRING,\n\n\tGV_PASSWORD_STRING,\n\n\tIDC_GV_GUI_CONFIG_SORT_MENUS,\n\tIDC_GV_GUI_CONFIG_SORT_PORTS,\n\n\tOP_LOAD_POOL_STRING,\n\n\tIDS_DATATYPE_NORMAL,\n\tIDS_UPDATE_NORMAL,\n\n\tGV_CONSTANT_UP_STRING,\n\tGV_CONSTANT_DOWN_STRING,\n\tGV_CONSTANT_LEFT_STRING,\n\tGV_CONSTANT_RIGHT_STRING,\n\tGV_CONSTANT_FRONT_STRING,\n\tGV_CONSTANT_BACK_STRING,\n\n\tEXED_PERFORMANCEVIEW_STRING,\n\n\tIDS_PV_TITLE,\n\tIDS_PV_ENABLE,\n\tIDS_PV_LBL_MODE,\n\tIDS_PV_LBL_INTENSITY,\n\tIDC_PV_MODE_TIME,\n\tIDC_PV_MODE_COUNT,\n\n\tDUMMY_\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 433], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 272, "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": "C4D_SYMBOLS_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "preproc_def", "text": "#define C4D_SYMBOLS_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": "C4D_SYMBOLS_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 23}}, {"id": 6, "type": "enum_specifier", "text": "enum\n{\n\t// string table definitions\n\n\tGV_MENU_NODE_OPERATOR_STRING = 1000,\n\tGV_MENU_NODE_DELETE_STRING,\n\tGV_MENU_NODE_RENAME_STRING,\n\tGV_MENU_NODE_ENABLE_STRING,\n\tGV_MENU_NODE_DISABLE_STRING,\n\tGV_MENU_NODE_OPTIMIZE_STRING,\n\tGV_MENU_NODE_PACK_NODES_STRING,\n\tGV_MENU_NODE_UNPACK_NODES_STRING,\n\tGV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n\tGV_MENU_NODE_VIEW_STRING,\n\tGV_MENU_NODE_MINIMIZED_STRING,\n\tGV_MENU_NODE_STANDARD_STRING,\n\tGV_MENU_NODE_EXTENDED_STRING,\n\tGV_MENU_NODE_FULLSCREEN_STRING,\n\tGV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n\tGV_MENU_NODE_CONNECTIONS_STRING,\n\tGV_MENU_NODE_CONN_REMOVE_STRING,\n\n\tGV_MENU_NODE_CREATE_NODE_STRING,\n\tGV_MENU_NODE_CREATE_MACRO_STRING,\n\n\tGV_MENU_NODE_PORTS_STRING,\n\tGV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n\tGV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n\tGV_MENU_NODE_ALIGN_STRING,\n\tGV_MENU_NODE_ZOOM_FIT_STRING,\n\tGV_MENU_NODE_CENTER_STRING,\n\tGV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n\tGV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n\tGV_MENU_PORT_INFO_STRING,\n\tGV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n\tGV_MENU_PORT_DELETE_STRING,\n\tGV_MENU_PORT_RENAME_STRING,\n\tGV_MENU_PORT_OPERATOR_STRING,\n\n\tGV_VALGROUP_TYPE_GENERAL_STRING,\n\tGV_OPCLASS_TYPE_GENERAL_STRING,\n\n\tGV_OPGROUP_TYPE_GENERAL_STRING,\n\tGV_OPGROUP_TYPE_OBJECT_STRING,\n\tGV_OPGROUP_TYPE_ADAPTER_STRING,\n\tGV_OPGROUP_TYPE_BOOL_STRING,\n\tGV_OPGROUP_TYPE_CALCULATE_STRING,\n\tGV_OPGROUP_TYPE_LOGICAL_STRING,\n\tGV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n\tEX_GV_DATA_TYPE_UNDEFINED_STRING,\n\tGV_DATA_TYPE_BOOL_STRING,\n\tGV_DATA_TYPE_INTEGER_STRING,\n\tGV_DATA_TYPE_REAL_STRING,\n\tGV_DATA_TYPE_VECTOR_STRING,\n\tGV_DATA_TYPE_NORMAL_STRING,\n\tGV_DATA_TYPE_MATRIX_STRING,\n\tGV_DATA_TYPE_TIME_STRING,\n\tGV_DATA_TYPE_STRING_STRING,\n\tGV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n\tEX_GV_VALUE_TYPE_UNDEFINED_STRING,\n\tGV_VALUE_TYPE_BOOL_STRING,\n\tGV_VALUE_TYPE_INTEGER_STRING,\n\tGV_VALUE_TYPE_REAL_STRING,\n\tGV_VALUE_TYPE_VECTOR_STRING,\n\tGV_VALUE_TYPE_NORMAL_STRING,\n\tGV_VALUE_TYPE_MATRIX_STRING,\n\tGV_VALUE_TYPE_TIME_STRING,\n\tGV_VALUE_TYPE_STRING_STRING,\n\tGV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n\tGV_GROUP_NODE_TITLE_STRING,\n\tGV_DUMMY_NODE_TITLE_STRING,\n\tGV_GROUP_ENABLE_STRING,\n\n\tGV_UNNAMED_PORT_STRING,\n\tGV_UNNAMED_DATA_TYPE_STRING,\n\tGV_UNNAMED_VALUE_TYPE_STRING,\n\n\tGV_PORT_NAME_STRING,\n\tGV_PORT_IO_STRING,\n\tGV_PORT_DATA_TYPE_STRING,\n\tGV_PORT_VALUE_TYPE_STRING,\n\n\tGV_GET_TITLE_STRING,\n\tGV_GET_NAME_STRING,\n\tGV_PORT_INFO_TITLE_STRING,\n\n\tGV_OPERATOR_INPUT_STRING,\n\tGV_OPERATOR_OUTPUT_STRING,\n\n\tGV_CONSTANT_INPUT_STRING,\n\tGV_CONSTANT_SELECT_STRING,\n\n\tGV_STATUS_STRING,\n\n\tGV_ERR_NONE_STRING,\n\n\tGV_CALC_ERR_NO_MEMORY_STRING,\n\tGV_CALC_ERR_UNDEFINED_STRING,\n\tGV_CALC_ERR_UNKNOWN_TYPE_STRING,\n\tGV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n\tGV_CALC_ERR_NOT_INITIALIZED_STRING,\n\tGV_CALC_ERR_NOT_VALID_STRING,\n\tGV_CALC_ERR_NO_OUTPORT_STRING,\n\tGV_CALC_ERR_NOT_CONNECTED_STRING,\n\tGV_CALC_ERR_NO_PORT_STRING,\n\tGV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n\tGV_CALC_ERR_TYPE_MISMATCH_STRING,\n\tGV_CALC_ERR_INIT_FAILED_STRING,\n\tGV_CALC_ERR_QUERY_FAILED_STRING,\n\tGV_CALC_ERR_CALCULATION_FAILED_STRING,\n\tGV_CALC_ERR_PARAMETER_STRING,\n\n\tGV_IO_ERR_NO_MEMORY_STRING,\n\tGV_IO_ERR_FILE_NOT_FOUND_STRING,\n\tGV_IO_ERR_READ_STRING,\n\tGV_IO_ERR_WRITE_STRING,\n\tGV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n\tGV_NEW_MACRO_STRING,\n\tGV_MACRO_FILENAME_STRING,\n\n\tEXED_FILE_MENU_STRING,\n\tEXED_SHOW_VERSION_STRING,\n\tEXED_LOAD_XGROUP_STRING,\n\tEXED_SAVE_XGROUP_STRING,\n\n\tEXED_EDIT_MENU_STRING,\n\tEXED_SELECT_ALL_STRING,\n\tEXED_SELECT_NONE_STRING,\n\tEXED_ENABLE_SELECTED_STRING,\n\tEXED_DISABLE_SELECTED_STRING,\n\tEXED_CUT_SELECTED_STRING,\n\tEXED_COPY_SELECTED_STRING,\n\tEXED_PASTE_SELECTED_STRING,\n\tEXED_DELETE_SELECTED_STRING,\n\n\tEXED_EXTRA_MENU_STRING,\n\tEXED_PACK_NODES_STRING,\n\n\tEXED_LAYOUT_MENU_STRING,\n\tEXED_INPUTS_STRING,\n\tEXED_INPUTS_AT_LEFT_STRING,\n\tEXED_INPUTS_AT_RIGHT_STRING,\n\tEXED_INPUTS_AT_TOP_STRING,\n\tEXED_INPUTS_AT_BOTTOM_STRING,\n\tEXED_CONN_STRING,\n\tEXED_CONN_DIRECT_STRING,\n\tEXED_CONN_STRAIGHT_STRING,\n\tEXED_CONN_ENHANCED_STRING,\n\tEXED_CONN_CURVED_STRING,\n\tEXED_SHOW_STATUS_STRING,\n\tEXED_DEFAULT_LAYOUT_STRING,\n\n\tEXED_VIEW_MENU_STRING,\n\tEXED_ZOOM_MENU_STRING,\n\tEXED_ZOOM_FIT_STRING,\n\tEXED_ZOOM_FIT_SELECTED_STRING,\n\tEXED_ZOOM_100_STRING,\n\tEXED_ZOOM_75_STRING,\n\tEXED_ZOOM_50_STRING,\n\tEXED_ZOOM_25_STRING,\n\tEXED_CENTER_STRING,\n\tEXED_ALIGN_UPPER_LEFT_STRING,\n\tEXED_ALIGN_TO_GRID_STRING,\n\n\tEXED_HOOKS_MENU_STRING,\n\n\tEXED_MENU_CALCULATE_STRING,\n\tEXED_CALCULATE_STRING,\n\tEXED_LIVE_REFRESH_STRING,\n\tEXED_ANIM_REFRESH_STRING,\n\n\tEXED_DIALOG_TITLE_STRING,\n\tEXED_DIALOG_HELP_STRING,\n\n\tEXED_UNNAMED_MACRO_STRING,\n\n\tOP_DIALOG_TITLE_STRING,\n\tOP_MENU_NAME_STRING,\n\n\tOP_POOL_FILENAME_STRING,\n\tOP_UNNAMED_POOL_STRING,\n\tOP_PRESETS_POOL_STRING,\n\tOP_UNNAMED_FOLDER_STRING,\n\tOP_GET_FOLDER_STRING,\n\n\tOP_CREATE_POOL_STRING,\n\tOP_REMOVE_ENTRY_STRING,\n\tOP_RENAME_ENTRY_STRING,\n\tOP_CREATE_FOLDER_STRING,\n\tOP_EDIT_MENU_STRING,\n\n\tOP_OPERATORS_NAME_STRING,\n\n\tOP_RENAME_NODE_STRING,\n\n\tGV_BRANCH_NAME,\n\n\tGV_CONSTANT_0_STRING,\n\tGV_CONSTANT_1_STRING,\n\tGV_CONSTANT_10_STRING,\n\tGV_CONSTANT_100_STRING,\n\tGV_CONSTANT_1000_STRING,\n\tGV_CONSTANT_QUARTER_PI_STRING,\n\tGV_CONSTANT_HALF_PI_STRING,\n\tGV_CONSTANT_PI_STRING,\n\tGV_CONSTANT_DOUBLE_PI_STRING,\n\n\tGV_DIALOG_GUICONFIG,\n\tGV_DIALOG_COLORS,\n\n\tIDS_TP_VALUE_TYPE_PARTICLE,\n\tIDS_TP_DATA_TYPE_PARTICLE,\n\tIDS_TP_VALUE_TYPE_SHAPE,\n\tIDS_TP_DATA_TYPE_SHAPE,\n\tIDS_TP_VALUE_TYPE_GROUP,\n\tIDS_TP_DATA_TYPE_GROUP,\n\tIDS_TP_VALUE_TYPE_SPIN,\n\tIDS_TP_DATA_TYPE_SPIN,\n\n\tIDS_AM_MODE_NODES,\n\n\tGV_DATA_TYPE_GENERAL_TAG_STRING,\n\tGV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n\tGV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n\tGV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n\tGV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n\tGV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n\tGV_OPGROUP_TYPE_ITERATOR_STRING,\n\n\tGV_PASSWORD_STRING,\n\n\tIDC_GV_GUI_CONFIG_SORT_MENUS,\n\tIDC_GV_GUI_CONFIG_SORT_PORTS,\n\n\tOP_LOAD_POOL_STRING,\n\n\tIDS_DATATYPE_NORMAL,\n\tIDS_UPDATE_NORMAL,\n\n\tGV_CONSTANT_UP_STRING,\n\tGV_CONSTANT_DOWN_STRING,\n\tGV_CONSTANT_LEFT_STRING,\n\tGV_CONSTANT_RIGHT_STRING,\n\tGV_CONSTANT_FRONT_STRING,\n\tGV_CONSTANT_BACK_STRING,\n\n\tEXED_PERFORMANCEVIEW_STRING,\n\n\tIDS_PV_TITLE,\n\tIDS_PV_ENABLE,\n\tIDS_PV_LBL_MODE,\n\tIDS_PV_LBL_INTENSITY,\n\tIDC_PV_MODE_TIME,\n\tIDC_PV_MODE_COUNT,\n\n\tDUMMY_\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 270, "column": 1}}, {"id": 7, "type": "enum", "text": "enum", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 8, "type": "enumerator_list", "text": "{\n\t// string table definitions\n\n\tGV_MENU_NODE_OPERATOR_STRING = 1000,\n\tGV_MENU_NODE_DELETE_STRING,\n\tGV_MENU_NODE_RENAME_STRING,\n\tGV_MENU_NODE_ENABLE_STRING,\n\tGV_MENU_NODE_DISABLE_STRING,\n\tGV_MENU_NODE_OPTIMIZE_STRING,\n\tGV_MENU_NODE_PACK_NODES_STRING,\n\tGV_MENU_NODE_UNPACK_NODES_STRING,\n\tGV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n\tGV_MENU_NODE_VIEW_STRING,\n\tGV_MENU_NODE_MINIMIZED_STRING,\n\tGV_MENU_NODE_STANDARD_STRING,\n\tGV_MENU_NODE_EXTENDED_STRING,\n\tGV_MENU_NODE_FULLSCREEN_STRING,\n\tGV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n\tGV_MENU_NODE_CONNECTIONS_STRING,\n\tGV_MENU_NODE_CONN_REMOVE_STRING,\n\n\tGV_MENU_NODE_CREATE_NODE_STRING,\n\tGV_MENU_NODE_CREATE_MACRO_STRING,\n\n\tGV_MENU_NODE_PORTS_STRING,\n\tGV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n\tGV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n\tGV_MENU_NODE_ALIGN_STRING,\n\tGV_MENU_NODE_ZOOM_FIT_STRING,\n\tGV_MENU_NODE_CENTER_STRING,\n\tGV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n\tGV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n\tGV_MENU_PORT_INFO_STRING,\n\tGV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n\tGV_MENU_PORT_DELETE_STRING,\n\tGV_MENU_PORT_RENAME_STRING,\n\tGV_MENU_PORT_OPERATOR_STRING,\n\n\tGV_VALGROUP_TYPE_GENERAL_STRING,\n\tGV_OPCLASS_TYPE_GENERAL_STRING,\n\n\tGV_OPGROUP_TYPE_GENERAL_STRING,\n\tGV_OPGROUP_TYPE_OBJECT_STRING,\n\tGV_OPGROUP_TYPE_ADAPTER_STRING,\n\tGV_OPGROUP_TYPE_BOOL_STRING,\n\tGV_OPGROUP_TYPE_CALCULATE_STRING,\n\tGV_OPGROUP_TYPE_LOGICAL_STRING,\n\tGV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n\tEX_GV_DATA_TYPE_UNDEFINED_STRING,\n\tGV_DATA_TYPE_BOOL_STRING,\n\tGV_DATA_TYPE_INTEGER_STRING,\n\tGV_DATA_TYPE_REAL_STRING,\n\tGV_DATA_TYPE_VECTOR_STRING,\n\tGV_DATA_TYPE_NORMAL_STRING,\n\tGV_DATA_TYPE_MATRIX_STRING,\n\tGV_DATA_TYPE_TIME_STRING,\n\tGV_DATA_TYPE_STRING_STRING,\n\tGV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n\tEX_GV_VALUE_TYPE_UNDEFINED_STRING,\n\tGV_VALUE_TYPE_BOOL_STRING,\n\tGV_VALUE_TYPE_INTEGER_STRING,\n\tGV_VALUE_TYPE_REAL_STRING,\n\tGV_VALUE_TYPE_VECTOR_STRING,\n\tGV_VALUE_TYPE_NORMAL_STRING,\n\tGV_VALUE_TYPE_MATRIX_STRING,\n\tGV_VALUE_TYPE_TIME_STRING,\n\tGV_VALUE_TYPE_STRING_STRING,\n\tGV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n\tGV_GROUP_NODE_TITLE_STRING,\n\tGV_DUMMY_NODE_TITLE_STRING,\n\tGV_GROUP_ENABLE_STRING,\n\n\tGV_UNNAMED_PORT_STRING,\n\tGV_UNNAMED_DATA_TYPE_STRING,\n\tGV_UNNAMED_VALUE_TYPE_STRING,\n\n\tGV_PORT_NAME_STRING,\n\tGV_PORT_IO_STRING,\n\tGV_PORT_DATA_TYPE_STRING,\n\tGV_PORT_VALUE_TYPE_STRING,\n\n\tGV_GET_TITLE_STRING,\n\tGV_GET_NAME_STRING,\n\tGV_PORT_INFO_TITLE_STRING,\n\n\tGV_OPERATOR_INPUT_STRING,\n\tGV_OPERATOR_OUTPUT_STRING,\n\n\tGV_CONSTANT_INPUT_STRING,\n\tGV_CONSTANT_SELECT_STRING,\n\n\tGV_STATUS_STRING,\n\n\tGV_ERR_NONE_STRING,\n\n\tGV_CALC_ERR_NO_MEMORY_STRING,\n\tGV_CALC_ERR_UNDEFINED_STRING,\n\tGV_CALC_ERR_UNKNOWN_TYPE_STRING,\n\tGV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n\tGV_CALC_ERR_NOT_INITIALIZED_STRING,\n\tGV_CALC_ERR_NOT_VALID_STRING,\n\tGV_CALC_ERR_NO_OUTPORT_STRING,\n\tGV_CALC_ERR_NOT_CONNECTED_STRING,\n\tGV_CALC_ERR_NO_PORT_STRING,\n\tGV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n\tGV_CALC_ERR_TYPE_MISMATCH_STRING,\n\tGV_CALC_ERR_INIT_FAILED_STRING,\n\tGV_CALC_ERR_QUERY_FAILED_STRING,\n\tGV_CALC_ERR_CALCULATION_FAILED_STRING,\n\tGV_CALC_ERR_PARAMETER_STRING,\n\n\tGV_IO_ERR_NO_MEMORY_STRING,\n\tGV_IO_ERR_FILE_NOT_FOUND_STRING,\n\tGV_IO_ERR_READ_STRING,\n\tGV_IO_ERR_WRITE_STRING,\n\tGV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n\tGV_NEW_MACRO_STRING,\n\tGV_MACRO_FILENAME_STRING,\n\n\tEXED_FILE_MENU_STRING,\n\tEXED_SHOW_VERSION_STRING,\n\tEXED_LOAD_XGROUP_STRING,\n\tEXED_SAVE_XGROUP_STRING,\n\n\tEXED_EDIT_MENU_STRING,\n\tEXED_SELECT_ALL_STRING,\n\tEXED_SELECT_NONE_STRING,\n\tEXED_ENABLE_SELECTED_STRING,\n\tEXED_DISABLE_SELECTED_STRING,\n\tEXED_CUT_SELECTED_STRING,\n\tEXED_COPY_SELECTED_STRING,\n\tEXED_PASTE_SELECTED_STRING,\n\tEXED_DELETE_SELECTED_STRING,\n\n\tEXED_EXTRA_MENU_STRING,\n\tEXED_PACK_NODES_STRING,\n\n\tEXED_LAYOUT_MENU_STRING,\n\tEXED_INPUTS_STRING,\n\tEXED_INPUTS_AT_LEFT_STRING,\n\tEXED_INPUTS_AT_RIGHT_STRING,\n\tEXED_INPUTS_AT_TOP_STRING,\n\tEXED_INPUTS_AT_BOTTOM_STRING,\n\tEXED_CONN_STRING,\n\tEXED_CONN_DIRECT_STRING,\n\tEXED_CONN_STRAIGHT_STRING,\n\tEXED_CONN_ENHANCED_STRING,\n\tEXED_CONN_CURVED_STRING,\n\tEXED_SHOW_STATUS_STRING,\n\tEXED_DEFAULT_LAYOUT_STRING,\n\n\tEXED_VIEW_MENU_STRING,\n\tEXED_ZOOM_MENU_STRING,\n\tEXED_ZOOM_FIT_STRING,\n\tEXED_ZOOM_FIT_SELECTED_STRING,\n\tEXED_ZOOM_100_STRING,\n\tEXED_ZOOM_75_STRING,\n\tEXED_ZOOM_50_STRING,\n\tEXED_ZOOM_25_STRING,\n\tEXED_CENTER_STRING,\n\tEXED_ALIGN_UPPER_LEFT_STRING,\n\tEXED_ALIGN_TO_GRID_STRING,\n\n\tEXED_HOOKS_MENU_STRING,\n\n\tEXED_MENU_CALCULATE_STRING,\n\tEXED_CALCULATE_STRING,\n\tEXED_LIVE_REFRESH_STRING,\n\tEXED_ANIM_REFRESH_STRING,\n\n\tEXED_DIALOG_TITLE_STRING,\n\tEXED_DIALOG_HELP_STRING,\n\n\tEXED_UNNAMED_MACRO_STRING,\n\n\tOP_DIALOG_TITLE_STRING,\n\tOP_MENU_NAME_STRING,\n\n\tOP_POOL_FILENAME_STRING,\n\tOP_UNNAMED_POOL_STRING,\n\tOP_PRESETS_POOL_STRING,\n\tOP_UNNAMED_FOLDER_STRING,\n\tOP_GET_FOLDER_STRING,\n\n\tOP_CREATE_POOL_STRING,\n\tOP_REMOVE_ENTRY_STRING,\n\tOP_RENAME_ENTRY_STRING,\n\tOP_CREATE_FOLDER_STRING,\n\tOP_EDIT_MENU_STRING,\n\n\tOP_OPERATORS_NAME_STRING,\n\n\tOP_RENAME_NODE_STRING,\n\n\tGV_BRANCH_NAME,\n\n\tGV_CONSTANT_0_STRING,\n\tGV_CONSTANT_1_STRING,\n\tGV_CONSTANT_10_STRING,\n\tGV_CONSTANT_100_STRING,\n\tGV_CONSTANT_1000_STRING,\n\tGV_CONSTANT_QUARTER_PI_STRING,\n\tGV_CONSTANT_HALF_PI_STRING,\n\tGV_CONSTANT_PI_STRING,\n\tGV_CONSTANT_DOUBLE_PI_STRING,\n\n\tGV_DIALOG_GUICONFIG,\n\tGV_DIALOG_COLORS,\n\n\tIDS_TP_VALUE_TYPE_PARTICLE,\n\tIDS_TP_DATA_TYPE_PARTICLE,\n\tIDS_TP_VALUE_TYPE_SHAPE,\n\tIDS_TP_DATA_TYPE_SHAPE,\n\tIDS_TP_VALUE_TYPE_GROUP,\n\tIDS_TP_DATA_TYPE_GROUP,\n\tIDS_TP_VALUE_TYPE_SPIN,\n\tIDS_TP_DATA_TYPE_SPIN,\n\n\tIDS_AM_MODE_NODES,\n\n\tGV_DATA_TYPE_GENERAL_TAG_STRING,\n\tGV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n\tGV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n\tGV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n\tGV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n\tGV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n\tGV_OPGROUP_TYPE_ITERATOR_STRING,\n\n\tGV_PASSWORD_STRING,\n\n\tIDC_GV_GUI_CONFIG_SORT_MENUS,\n\tIDC_GV_GUI_CONFIG_SORT_PORTS,\n\n\tOP_LOAD_POOL_STRING,\n\n\tIDS_DATATYPE_NORMAL,\n\tIDS_UPDATE_NORMAL,\n\n\tGV_CONSTANT_UP_STRING,\n\tGV_CONSTANT_DOWN_STRING,\n\tGV_CONSTANT_LEFT_STRING,\n\tGV_CONSTANT_RIGHT_STRING,\n\tGV_CONSTANT_FRONT_STRING,\n\tGV_CONSTANT_BACK_STRING,\n\n\tEXED_PERFORMANCEVIEW_STRING,\n\n\tIDS_PV_TITLE,\n\tIDS_PV_ENABLE,\n\tIDS_PV_LBL_MODE,\n\tIDS_PV_LBL_INTENSITY,\n\tIDC_PV_MODE_TIME,\n\tIDC_PV_MODE_COUNT,\n\n\tDUMMY_\n}", "parent": 6, "children": [9, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 270, "column": 1}}, {"id": 9, "type": "enumerator", "text": "GV_MENU_NODE_OPERATOR_STRING = 1000", "parent": 8, "children": [10, 11, 12], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 36}}, {"id": 10, "type": "identifier", "text": "GV_MENU_NODE_OPERATOR_STRING", "parent": 9, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 29}}, {"id": 11, "type": "=", "text": "=", "parent": 9, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 31}}, {"id": 12, "type": "number_literal", "text": "1000", "parent": 9, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 36}}, {"id": 13, "type": "enumerator", "text": "GV_MENU_NODE_DELETE_STRING", "parent": 8, "children": [14], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 27}}, {"id": 14, "type": "identifier", "text": "GV_MENU_NODE_DELETE_STRING", "parent": 13, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 27}}, {"id": 15, "type": "enumerator", "text": "GV_MENU_NODE_RENAME_STRING", "parent": 8, "children": [16], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 27}}, {"id": 16, "type": "identifier", "text": "GV_MENU_NODE_RENAME_STRING", "parent": 15, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 27}}, {"id": 17, "type": "enumerator", "text": "GV_MENU_NODE_ENABLE_STRING", "parent": 8, "children": [18], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 27}}, {"id": 18, "type": "identifier", "text": "GV_MENU_NODE_ENABLE_STRING", "parent": 17, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 27}}, {"id": 19, "type": "enumerator", "text": "GV_MENU_NODE_DISABLE_STRING", "parent": 8, "children": [20], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 28}}, {"id": 20, "type": "identifier", "text": "GV_MENU_NODE_DISABLE_STRING", "parent": 19, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 28}}, {"id": 21, "type": "enumerator", "text": "GV_MENU_NODE_OPTIMIZE_STRING", "parent": 8, "children": [22], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 29}}, {"id": 22, "type": "identifier", "text": "GV_MENU_NODE_OPTIMIZE_STRING", "parent": 21, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 29}}, {"id": 23, "type": "enumerator", "text": "GV_MENU_NODE_PACK_NODES_STRING", "parent": 8, "children": [24], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 31}}, {"id": 24, "type": "identifier", "text": "GV_MENU_NODE_PACK_NODES_STRING", "parent": 23, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 31}}, {"id": 25, "type": "enumerator", "text": "GV_MENU_NODE_UNPACK_NODES_STRING", "parent": 8, "children": [26], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 33}}, {"id": 26, "type": "identifier", "text": "GV_MENU_NODE_UNPACK_NODES_STRING", "parent": 25, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 33}}, {"id": 27, "type": "enumerator", "text": "GV_MENU_NODE_SELECT_CONNECTED_STRING", "parent": 8, "children": [28], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 37}}, {"id": 28, "type": "identifier", "text": "GV_MENU_NODE_SELECT_CONNECTED_STRING", "parent": 27, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 37}}, {"id": 29, "type": "enumerator", "text": "GV_MENU_NODE_VIEW_STRING", "parent": 8, "children": [30], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 25}}, {"id": 30, "type": "identifier", "text": "GV_MENU_NODE_VIEW_STRING", "parent": 29, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 25}}, {"id": 31, "type": "enumerator", "text": "GV_MENU_NODE_MINIMIZED_STRING", "parent": 8, "children": [32], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 30}}, {"id": 32, "type": "identifier", "text": "GV_MENU_NODE_MINIMIZED_STRING", "parent": 31, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 30}}, {"id": 33, "type": "enumerator", "text": "GV_MENU_NODE_STANDARD_STRING", "parent": 8, "children": [34], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 29}}, {"id": 34, "type": "identifier", "text": "GV_MENU_NODE_STANDARD_STRING", "parent": 33, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 29}}, {"id": 35, "type": "enumerator", "text": "GV_MENU_NODE_EXTENDED_STRING", "parent": 8, "children": [36], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 29}}, {"id": 36, "type": "identifier", "text": "GV_MENU_NODE_EXTENDED_STRING", "parent": 35, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 29}}, {"id": 37, "type": "enumerator", "text": "GV_MENU_NODE_FULLSCREEN_STRING", "parent": 8, "children": [38], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 31}}, {"id": 38, "type": "identifier", "text": "GV_MENU_NODE_FULLSCREEN_STRING", "parent": 37, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 31}}, {"id": 39, "type": "enumerator", "text": "GV_MENU_NODE_LOCKED_EXTENDED_STRING", "parent": 8, "children": [40], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 36}}, {"id": 40, "type": "identifier", "text": "GV_MENU_NODE_LOCKED_EXTENDED_STRING", "parent": 39, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 36}}, {"id": 41, "type": "enumerator", "text": "GV_MENU_NODE_CONNECTIONS_STRING", "parent": 8, "children": [42], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 32}}, {"id": 42, "type": "identifier", "text": "GV_MENU_NODE_CONNECTIONS_STRING", "parent": 41, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 32}}, {"id": 43, "type": "enumerator", "text": "GV_MENU_NODE_CONN_REMOVE_STRING", "parent": 8, "children": [44], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 32}}, {"id": 44, "type": "identifier", "text": "GV_MENU_NODE_CONN_REMOVE_STRING", "parent": 43, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 32}}, {"id": 45, "type": "enumerator", "text": "GV_MENU_NODE_CREATE_NODE_STRING", "parent": 8, "children": [46], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 32}}, {"id": 46, "type": "identifier", "text": "GV_MENU_NODE_CREATE_NODE_STRING", "parent": 45, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 32}}, {"id": 47, "type": "enumerator", "text": "GV_MENU_NODE_CREATE_MACRO_STRING", "parent": 8, "children": [48], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 33}}, {"id": 48, "type": "identifier", "text": "GV_MENU_NODE_CREATE_MACRO_STRING", "parent": 47, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 33}}, {"id": 49, "type": "enumerator", "text": "GV_MENU_NODE_PORTS_STRING", "parent": 8, "children": [50], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 26}}, {"id": 50, "type": "identifier", "text": "GV_MENU_NODE_PORTS_STRING", "parent": 49, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 26}}, {"id": 51, "type": "enumerator", "text": "GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING", "parent": 8, "children": [52], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 40}}, {"id": 52, "type": "identifier", "text": "GV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING", "parent": 51, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 40}}, {"id": 53, "type": "enumerator", "text": "GV_MENU_NODE_PORTS_SHOW_NAMES_STRING", "parent": 8, "children": [54], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 37}}, {"id": 54, "type": "identifier", "text": "GV_MENU_NODE_PORTS_SHOW_NAMES_STRING", "parent": 53, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 37}}, {"id": 55, "type": "enumerator", "text": "GV_MENU_NODE_ALIGN_STRING", "parent": 8, "children": [56], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 26}}, {"id": 56, "type": "identifier", "text": "GV_MENU_NODE_ALIGN_STRING", "parent": 55, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 26}}, {"id": 57, "type": "enumerator", "text": "GV_MENU_NODE_ZOOM_FIT_STRING", "parent": 8, "children": [58], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 29}}, {"id": 58, "type": "identifier", "text": "GV_MENU_NODE_ZOOM_FIT_STRING", "parent": 57, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 29}}, {"id": 59, "type": "enumerator", "text": "GV_MENU_NODE_CENTER_STRING", "parent": 8, "children": [60], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 27}}, {"id": 60, "type": "identifier", "text": "GV_MENU_NODE_CENTER_STRING", "parent": 59, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 27}}, {"id": 61, "type": "enumerator", "text": "GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING", "parent": 8, "children": [62], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 37}}, {"id": 62, "type": "identifier", "text": "GV_MENU_NODE_ALIGN_UPPER_LEFT_STRING", "parent": 61, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 37}}, {"id": 63, "type": "enumerator", "text": "GV_MENU_NODE_ALIGN_TO_GRID_STRING", "parent": 8, "children": [64], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 34}}, {"id": 64, "type": "identifier", "text": "GV_MENU_NODE_ALIGN_TO_GRID_STRING", "parent": 63, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 34}}, {"id": 65, "type": "enumerator", "text": "GV_MENU_PORT_INFO_STRING", "parent": 8, "children": [66], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 25}}, {"id": 66, "type": "identifier", "text": "GV_MENU_PORT_INFO_STRING", "parent": 65, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 25}}, {"id": 67, "type": "enumerator", "text": "GV_MENU_PORT_REMOVE_CONNECTIONS_STRING", "parent": 8, "children": [68], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 39}}, {"id": 68, "type": "identifier", "text": "GV_MENU_PORT_REMOVE_CONNECTIONS_STRING", "parent": 67, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 39}}, {"id": 69, "type": "enumerator", "text": "GV_MENU_PORT_DELETE_STRING", "parent": 8, "children": [70], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 27}}, {"id": 70, "type": "identifier", "text": "GV_MENU_PORT_DELETE_STRING", "parent": 69, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 27}}, {"id": 71, "type": "enumerator", "text": "GV_MENU_PORT_RENAME_STRING", "parent": 8, "children": [72], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 27}}, {"id": 72, "type": "identifier", "text": "GV_MENU_PORT_RENAME_STRING", "parent": 71, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 27}}, {"id": 73, "type": "enumerator", "text": "GV_MENU_PORT_OPERATOR_STRING", "parent": 8, "children": [74], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 29}}, {"id": 74, "type": "identifier", "text": "GV_MENU_PORT_OPERATOR_STRING", "parent": 73, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 29}}, {"id": 75, "type": "enumerator", "text": "GV_VALGROUP_TYPE_GENERAL_STRING", "parent": 8, "children": [76], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 32}}, {"id": 76, "type": "identifier", "text": "GV_VALGROUP_TYPE_GENERAL_STRING", "parent": 75, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 32}}, {"id": 77, "type": "enumerator", "text": "GV_OPCLASS_TYPE_GENERAL_STRING", "parent": 8, "children": [78], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 31}}, {"id": 78, "type": "identifier", "text": "GV_OPCLASS_TYPE_GENERAL_STRING", "parent": 77, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 31}}, {"id": 79, "type": "enumerator", "text": "GV_OPGROUP_TYPE_GENERAL_STRING", "parent": 8, "children": [80], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 31}}, {"id": 80, "type": "identifier", "text": "GV_OPGROUP_TYPE_GENERAL_STRING", "parent": 79, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 31}}, {"id": 81, "type": "enumerator", "text": "GV_OPGROUP_TYPE_OBJECT_STRING", "parent": 8, "children": [82], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 30}}, {"id": 82, "type": "identifier", "text": "GV_OPGROUP_TYPE_OBJECT_STRING", "parent": 81, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 30}}, {"id": 83, "type": "enumerator", "text": "GV_OPGROUP_TYPE_ADAPTER_STRING", "parent": 8, "children": [84], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 31}}, {"id": 84, "type": "identifier", "text": "GV_OPGROUP_TYPE_ADAPTER_STRING", "parent": 83, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 31}}, {"id": 85, "type": "enumerator", "text": "GV_OPGROUP_TYPE_BOOL_STRING", "parent": 8, "children": [86], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 28}}, {"id": 86, "type": "identifier", "text": "GV_OPGROUP_TYPE_BOOL_STRING", "parent": 85, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 28}}, {"id": 87, "type": "enumerator", "text": "GV_OPGROUP_TYPE_CALCULATE_STRING", "parent": 8, "children": [88], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 33}}, {"id": 88, "type": "identifier", "text": "GV_OPGROUP_TYPE_CALCULATE_STRING", "parent": 87, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 33}}, {"id": 89, "type": "enumerator", "text": "GV_OPGROUP_TYPE_LOGICAL_STRING", "parent": 8, "children": [90], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 31}}, {"id": 90, "type": "identifier", "text": "GV_OPGROUP_TYPE_LOGICAL_STRING", "parent": 89, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 31}}, {"id": 91, "type": "enumerator", "text": "GV_OPGROUP_TYPE_SCRIPTING_STRING", "parent": 8, "children": [92], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 33}}, {"id": 92, "type": "identifier", "text": "GV_OPGROUP_TYPE_SCRIPTING_STRING", "parent": 91, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 33}}, {"id": 93, "type": "enumerator", "text": "EX_GV_DATA_TYPE_UNDEFINED_STRING", "parent": 8, "children": [94], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 33}}, {"id": 94, "type": "identifier", "text": "EX_GV_DATA_TYPE_UNDEFINED_STRING", "parent": 93, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 33}}, {"id": 95, "type": "enumerator", "text": "GV_DATA_TYPE_BOOL_STRING", "parent": 8, "children": [96], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 25}}, {"id": 96, "type": "identifier", "text": "GV_DATA_TYPE_BOOL_STRING", "parent": 95, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 25}}, {"id": 97, "type": "enumerator", "text": "GV_DATA_TYPE_INTEGER_STRING", "parent": 8, "children": [98], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 28}}, {"id": 98, "type": "identifier", "text": "GV_DATA_TYPE_INTEGER_STRING", "parent": 97, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 28}}, {"id": 99, "type": "enumerator", "text": "GV_DATA_TYPE_REAL_STRING", "parent": 8, "children": [100], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 25}}, {"id": 100, "type": "identifier", "text": "GV_DATA_TYPE_REAL_STRING", "parent": 99, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 25}}, {"id": 101, "type": "enumerator", "text": "GV_DATA_TYPE_VECTOR_STRING", "parent": 8, "children": [102], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 27}}, {"id": 102, "type": "identifier", "text": "GV_DATA_TYPE_VECTOR_STRING", "parent": 101, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 27}}, {"id": 103, "type": "enumerator", "text": "GV_DATA_TYPE_NORMAL_STRING", "parent": 8, "children": [104], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 27}}, {"id": 104, "type": "identifier", "text": "GV_DATA_TYPE_NORMAL_STRING", "parent": 103, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 27}}, {"id": 105, "type": "enumerator", "text": "GV_DATA_TYPE_MATRIX_STRING", "parent": 8, "children": [106], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 27}}, {"id": 106, "type": "identifier", "text": "GV_DATA_TYPE_MATRIX_STRING", "parent": 105, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 27}}, {"id": 107, "type": "enumerator", "text": "GV_DATA_TYPE_TIME_STRING", "parent": 8, "children": [108], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 25}}, {"id": 108, "type": "identifier", "text": "GV_DATA_TYPE_TIME_STRING", "parent": 107, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 25}}, {"id": 109, "type": "enumerator", "text": "GV_DATA_TYPE_STRING_STRING", "parent": 8, "children": [110], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 27}}, {"id": 110, "type": "identifier", "text": "GV_DATA_TYPE_STRING_STRING", "parent": 109, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 27}}, {"id": 111, "type": "enumerator", "text": "GV_DATA_TYPE_GENERAL_OBJECT_STRING", "parent": 8, "children": [112], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 35}}, {"id": 112, "type": "identifier", "text": "GV_DATA_TYPE_GENERAL_OBJECT_STRING", "parent": 111, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 35}}, {"id": 113, "type": "enumerator", "text": "EX_GV_VALUE_TYPE_UNDEFINED_STRING", "parent": 8, "children": [114], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 34}}, {"id": 114, "type": "identifier", "text": "EX_GV_VALUE_TYPE_UNDEFINED_STRING", "parent": 113, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 34}}, {"id": 115, "type": "enumerator", "text": "GV_VALUE_TYPE_BOOL_STRING", "parent": 8, "children": [116], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 26}}, {"id": 116, "type": "identifier", "text": "GV_VALUE_TYPE_BOOL_STRING", "parent": 115, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 26}}, {"id": 117, "type": "enumerator", "text": "GV_VALUE_TYPE_INTEGER_STRING", "parent": 8, "children": [118], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 29}}, {"id": 118, "type": "identifier", "text": "GV_VALUE_TYPE_INTEGER_STRING", "parent": 117, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 29}}, {"id": 119, "type": "enumerator", "text": "GV_VALUE_TYPE_REAL_STRING", "parent": 8, "children": [120], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 26}}, {"id": 120, "type": "identifier", "text": "GV_VALUE_TYPE_REAL_STRING", "parent": 119, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 26}}, {"id": 121, "type": "enumerator", "text": "GV_VALUE_TYPE_VECTOR_STRING", "parent": 8, "children": [122], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 28}}, {"id": 122, "type": "identifier", "text": "GV_VALUE_TYPE_VECTOR_STRING", "parent": 121, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 28}}, {"id": 123, "type": "enumerator", "text": "GV_VALUE_TYPE_NORMAL_STRING", "parent": 8, "children": [124], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 28}}, {"id": 124, "type": "identifier", "text": "GV_VALUE_TYPE_NORMAL_STRING", "parent": 123, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 28}}, {"id": 125, "type": "enumerator", "text": "GV_VALUE_TYPE_MATRIX_STRING", "parent": 8, "children": [126], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 28}}, {"id": 126, "type": "identifier", "text": "GV_VALUE_TYPE_MATRIX_STRING", "parent": 125, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 28}}, {"id": 127, "type": "enumerator", "text": "GV_VALUE_TYPE_TIME_STRING", "parent": 8, "children": [128], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 26}}, {"id": 128, "type": "identifier", "text": "GV_VALUE_TYPE_TIME_STRING", "parent": 127, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 26}}, {"id": 129, "type": "enumerator", "text": "GV_VALUE_TYPE_STRING_STRING", "parent": 8, "children": [130], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 28}}, {"id": 130, "type": "identifier", "text": "GV_VALUE_TYPE_STRING_STRING", "parent": 129, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 28}}, {"id": 131, "type": "enumerator", "text": "GV_VALUE_TYPE_GENERAL_OBJECT_STRING", "parent": 8, "children": [132], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 36}}, {"id": 132, "type": "identifier", "text": "GV_VALUE_TYPE_GENERAL_OBJECT_STRING", "parent": 131, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 36}}, {"id": 133, "type": "enumerator", "text": "GV_GROUP_NODE_TITLE_STRING", "parent": 8, "children": [134], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 27}}, {"id": 134, "type": "identifier", "text": "GV_GROUP_NODE_TITLE_STRING", "parent": 133, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 27}}, {"id": 135, "type": "enumerator", "text": "GV_DUMMY_NODE_TITLE_STRING", "parent": 8, "children": [136], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 27}}, {"id": 136, "type": "identifier", "text": "GV_DUMMY_NODE_TITLE_STRING", "parent": 135, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 27}}, {"id": 137, "type": "enumerator", "text": "GV_GROUP_ENABLE_STRING", "parent": 8, "children": [138], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 23}}, {"id": 138, "type": "identifier", "text": "GV_GROUP_ENABLE_STRING", "parent": 137, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 23}}, {"id": 139, "type": "enumerator", "text": "GV_UNNAMED_PORT_STRING", "parent": 8, "children": [140], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 23}}, {"id": 140, "type": "identifier", "text": "GV_UNNAMED_PORT_STRING", "parent": 139, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 23}}, {"id": 141, "type": "enumerator", "text": "GV_UNNAMED_DATA_TYPE_STRING", "parent": 8, "children": [142], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 28}}, {"id": 142, "type": "identifier", "text": "GV_UNNAMED_DATA_TYPE_STRING", "parent": 141, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 28}}, {"id": 143, "type": "enumerator", "text": "GV_UNNAMED_VALUE_TYPE_STRING", "parent": 8, "children": [144], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 29}}, {"id": 144, "type": "identifier", "text": "GV_UNNAMED_VALUE_TYPE_STRING", "parent": 143, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 29}}, {"id": 145, "type": "enumerator", "text": "GV_PORT_NAME_STRING", "parent": 8, "children": [146], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 20}}, {"id": 146, "type": "identifier", "text": "GV_PORT_NAME_STRING", "parent": 145, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 20}}, {"id": 147, "type": "enumerator", "text": "GV_PORT_IO_STRING", "parent": 8, "children": [148], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 18}}, {"id": 148, "type": "identifier", "text": "GV_PORT_IO_STRING", "parent": 147, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 18}}, {"id": 149, "type": "enumerator", "text": "GV_PORT_DATA_TYPE_STRING", "parent": 8, "children": [150], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 25}}, {"id": 150, "type": "identifier", "text": "GV_PORT_DATA_TYPE_STRING", "parent": 149, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 25}}, {"id": 151, "type": "enumerator", "text": "GV_PORT_VALUE_TYPE_STRING", "parent": 8, "children": [152], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 26}}, {"id": 152, "type": "identifier", "text": "GV_PORT_VALUE_TYPE_STRING", "parent": 151, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 26}}, {"id": 153, "type": "enumerator", "text": "GV_GET_TITLE_STRING", "parent": 8, "children": [154], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 20}}, {"id": 154, "type": "identifier", "text": "GV_GET_TITLE_STRING", "parent": 153, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 20}}, {"id": 155, "type": "enumerator", "text": "GV_GET_NAME_STRING", "parent": 8, "children": [156], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 19}}, {"id": 156, "type": "identifier", "text": "GV_GET_NAME_STRING", "parent": 155, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 19}}, {"id": 157, "type": "enumerator", "text": "GV_PORT_INFO_TITLE_STRING", "parent": 8, "children": [158], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 26}}, {"id": 158, "type": "identifier", "text": "GV_PORT_INFO_TITLE_STRING", "parent": 157, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 26}}, {"id": 159, "type": "enumerator", "text": "GV_OPERATOR_INPUT_STRING", "parent": 8, "children": [160], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 25}}, {"id": 160, "type": "identifier", "text": "GV_OPERATOR_INPUT_STRING", "parent": 159, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 25}}, {"id": 161, "type": "enumerator", "text": "GV_OPERATOR_OUTPUT_STRING", "parent": 8, "children": [162], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 26}}, {"id": 162, "type": "identifier", "text": "GV_OPERATOR_OUTPUT_STRING", "parent": 161, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 26}}, {"id": 163, "type": "enumerator", "text": "GV_CONSTANT_INPUT_STRING", "parent": 8, "children": [164], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 25}}, {"id": 164, "type": "identifier", "text": "GV_CONSTANT_INPUT_STRING", "parent": 163, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 25}}, {"id": 165, "type": "enumerator", "text": "GV_CONSTANT_SELECT_STRING", "parent": 8, "children": [166], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 26}}, {"id": 166, "type": "identifier", "text": "GV_CONSTANT_SELECT_STRING", "parent": 165, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 26}}, {"id": 167, "type": "enumerator", "text": "GV_STATUS_STRING", "parent": 8, "children": [168], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 17}}, {"id": 168, "type": "identifier", "text": "GV_STATUS_STRING", "parent": 167, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 17}}, {"id": 169, "type": "enumerator", "text": "GV_ERR_NONE_STRING", "parent": 8, "children": [170], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 19}}, {"id": 170, "type": "identifier", "text": "GV_ERR_NONE_STRING", "parent": 169, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 19}}, {"id": 171, "type": "enumerator", "text": "GV_CALC_ERR_NO_MEMORY_STRING", "parent": 8, "children": [172], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 29}}, {"id": 172, "type": "identifier", "text": "GV_CALC_ERR_NO_MEMORY_STRING", "parent": 171, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 29}}, {"id": 173, "type": "enumerator", "text": "GV_CALC_ERR_UNDEFINED_STRING", "parent": 8, "children": [174], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 29}}, {"id": 174, "type": "identifier", "text": "GV_CALC_ERR_UNDEFINED_STRING", "parent": 173, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 29}}, {"id": 175, "type": "enumerator", "text": "GV_CALC_ERR_UNKNOWN_TYPE_STRING", "parent": 8, "children": [176], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 32}}, {"id": 176, "type": "identifier", "text": "GV_CALC_ERR_UNKNOWN_TYPE_STRING", "parent": 175, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 32}}, {"id": 177, "type": "enumerator", "text": "GV_CALC_ERR_NOT_IMPLEMENTED_STRING", "parent": 8, "children": [178], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 35}}, {"id": 178, "type": "identifier", "text": "GV_CALC_ERR_NOT_IMPLEMENTED_STRING", "parent": 177, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 35}}, {"id": 179, "type": "enumerator", "text": "GV_CALC_ERR_NOT_INITIALIZED_STRING", "parent": 8, "children": [180], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 35}}, {"id": 180, "type": "identifier", "text": "GV_CALC_ERR_NOT_INITIALIZED_STRING", "parent": 179, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 35}}, {"id": 181, "type": "enumerator", "text": "GV_CALC_ERR_NOT_VALID_STRING", "parent": 8, "children": [182], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 29}}, {"id": 182, "type": "identifier", "text": "GV_CALC_ERR_NOT_VALID_STRING", "parent": 181, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 29}}, {"id": 183, "type": "enumerator", "text": "GV_CALC_ERR_NO_OUTPORT_STRING", "parent": 8, "children": [184], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 30}}, {"id": 184, "type": "identifier", "text": "GV_CALC_ERR_NO_OUTPORT_STRING", "parent": 183, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 30}}, {"id": 185, "type": "enumerator", "text": "GV_CALC_ERR_NOT_CONNECTED_STRING", "parent": 8, "children": [186], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 33}}, {"id": 186, "type": "identifier", "text": "GV_CALC_ERR_NOT_CONNECTED_STRING", "parent": 185, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 33}}, {"id": 187, "type": "enumerator", "text": "GV_CALC_ERR_NO_PORT_STRING", "parent": 8, "children": [188], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 27}}, {"id": 188, "type": "identifier", "text": "GV_CALC_ERR_NO_PORT_STRING", "parent": 187, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 27}}, {"id": 189, "type": "enumerator", "text": "GV_CALC_ERR_DIVISION_BY_ZERO_STRING", "parent": 8, "children": [190], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 36}}, {"id": 190, "type": "identifier", "text": "GV_CALC_ERR_DIVISION_BY_ZERO_STRING", "parent": 189, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 36}}, {"id": 191, "type": "enumerator", "text": "GV_CALC_ERR_TYPE_MISMATCH_STRING", "parent": 8, "children": [192], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 33}}, {"id": 192, "type": "identifier", "text": "GV_CALC_ERR_TYPE_MISMATCH_STRING", "parent": 191, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 33}}, {"id": 193, "type": "enumerator", "text": "GV_CALC_ERR_INIT_FAILED_STRING", "parent": 8, "children": [194], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 31}}, {"id": 194, "type": "identifier", "text": "GV_CALC_ERR_INIT_FAILED_STRING", "parent": 193, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 31}}, {"id": 195, "type": "enumerator", "text": "GV_CALC_ERR_QUERY_FAILED_STRING", "parent": 8, "children": [196], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 32}}, {"id": 196, "type": "identifier", "text": "GV_CALC_ERR_QUERY_FAILED_STRING", "parent": 195, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 32}}, {"id": 197, "type": "enumerator", "text": "GV_CALC_ERR_CALCULATION_FAILED_STRING", "parent": 8, "children": [198], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 38}}, {"id": 198, "type": "identifier", "text": "GV_CALC_ERR_CALCULATION_FAILED_STRING", "parent": 197, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 38}}, {"id": 199, "type": "enumerator", "text": "GV_CALC_ERR_PARAMETER_STRING", "parent": 8, "children": [200], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 29}}, {"id": 200, "type": "identifier", "text": "GV_CALC_ERR_PARAMETER_STRING", "parent": 199, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 29}}, {"id": 201, "type": "enumerator", "text": "GV_IO_ERR_NO_MEMORY_STRING", "parent": 8, "children": [202], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 27}}, {"id": 202, "type": "identifier", "text": "GV_IO_ERR_NO_MEMORY_STRING", "parent": 201, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 27}}, {"id": 203, "type": "enumerator", "text": "GV_IO_ERR_FILE_NOT_FOUND_STRING", "parent": 8, "children": [204], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 32}}, {"id": 204, "type": "identifier", "text": "GV_IO_ERR_FILE_NOT_FOUND_STRING", "parent": 203, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 32}}, {"id": 205, "type": "enumerator", "text": "GV_IO_ERR_READ_STRING", "parent": 8, "children": [206], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 22}}, {"id": 206, "type": "identifier", "text": "GV_IO_ERR_READ_STRING", "parent": 205, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 22}}, {"id": 207, "type": "enumerator", "text": "GV_IO_ERR_WRITE_STRING", "parent": 8, "children": [208], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 23}}, {"id": 208, "type": "identifier", "text": "GV_IO_ERR_WRITE_STRING", "parent": 207, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 23}}, {"id": 209, "type": "enumerator", "text": "GV_IO_ERR_NOT_A_GROUP_NODE_STRING", "parent": 8, "children": [210], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 34}}, {"id": 210, "type": "identifier", "text": "GV_IO_ERR_NOT_A_GROUP_NODE_STRING", "parent": 209, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 34}}, {"id": 211, "type": "enumerator", "text": "GV_NEW_MACRO_STRING", "parent": 8, "children": [212], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 20}}, {"id": 212, "type": "identifier", "text": "GV_NEW_MACRO_STRING", "parent": 211, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 20}}, {"id": 213, "type": "enumerator", "text": "GV_MACRO_FILENAME_STRING", "parent": 8, "children": [214], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 25}}, {"id": 214, "type": "identifier", "text": "GV_MACRO_FILENAME_STRING", "parent": 213, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 25}}, {"id": 215, "type": "enumerator", "text": "EXED_FILE_MENU_STRING", "parent": 8, "children": [216], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 22}}, {"id": 216, "type": "identifier", "text": "EXED_FILE_MENU_STRING", "parent": 215, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 22}}, {"id": 217, "type": "enumerator", "text": "EXED_SHOW_VERSION_STRING", "parent": 8, "children": [218], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 25}}, {"id": 218, "type": "identifier", "text": "EXED_SHOW_VERSION_STRING", "parent": 217, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 25}}, {"id": 219, "type": "enumerator", "text": "EXED_LOAD_XGROUP_STRING", "parent": 8, "children": [220], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 24}}, {"id": 220, "type": "identifier", "text": "EXED_LOAD_XGROUP_STRING", "parent": 219, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 24}}, {"id": 221, "type": "enumerator", "text": "EXED_SAVE_XGROUP_STRING", "parent": 8, "children": [222], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 24}}, {"id": 222, "type": "identifier", "text": "EXED_SAVE_XGROUP_STRING", "parent": 221, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 24}}, {"id": 223, "type": "enumerator", "text": "EXED_EDIT_MENU_STRING", "parent": 8, "children": [224], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 22}}, {"id": 224, "type": "identifier", "text": "EXED_EDIT_MENU_STRING", "parent": 223, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 22}}, {"id": 225, "type": "enumerator", "text": "EXED_SELECT_ALL_STRING", "parent": 8, "children": [226], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 23}}, {"id": 226, "type": "identifier", "text": "EXED_SELECT_ALL_STRING", "parent": 225, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 23}}, {"id": 227, "type": "enumerator", "text": "EXED_SELECT_NONE_STRING", "parent": 8, "children": [228], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 24}}, {"id": 228, "type": "identifier", "text": "EXED_SELECT_NONE_STRING", "parent": 227, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 24}}, {"id": 229, "type": "enumerator", "text": "EXED_ENABLE_SELECTED_STRING", "parent": 8, "children": [230], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 28}}, {"id": 230, "type": "identifier", "text": "EXED_ENABLE_SELECTED_STRING", "parent": 229, "children": [], "start_point": {"row": 139, "column": 1}, "end_point": {"row": 139, "column": 28}}, {"id": 231, "type": "enumerator", "text": "EXED_DISABLE_SELECTED_STRING", "parent": 8, "children": [232], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 29}}, {"id": 232, "type": "identifier", "text": "EXED_DISABLE_SELECTED_STRING", "parent": 231, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 29}}, {"id": 233, "type": "enumerator", "text": "EXED_CUT_SELECTED_STRING", "parent": 8, "children": [234], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 25}}, {"id": 234, "type": "identifier", "text": "EXED_CUT_SELECTED_STRING", "parent": 233, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 25}}, {"id": 235, "type": "enumerator", "text": "EXED_COPY_SELECTED_STRING", "parent": 8, "children": [236], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 26}}, {"id": 236, "type": "identifier", "text": "EXED_COPY_SELECTED_STRING", "parent": 235, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 26}}, {"id": 237, "type": "enumerator", "text": "EXED_PASTE_SELECTED_STRING", "parent": 8, "children": [238], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 27}}, {"id": 238, "type": "identifier", "text": "EXED_PASTE_SELECTED_STRING", "parent": 237, "children": [], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 143, "column": 27}}, {"id": 239, "type": "enumerator", "text": "EXED_DELETE_SELECTED_STRING", "parent": 8, "children": [240], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 28}}, {"id": 240, "type": "identifier", "text": "EXED_DELETE_SELECTED_STRING", "parent": 239, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 28}}, {"id": 241, "type": "enumerator", "text": "EXED_EXTRA_MENU_STRING", "parent": 8, "children": [242], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 23}}, {"id": 242, "type": "identifier", "text": "EXED_EXTRA_MENU_STRING", "parent": 241, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 23}}, {"id": 243, "type": "enumerator", "text": "EXED_PACK_NODES_STRING", "parent": 8, "children": [244], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 23}}, {"id": 244, "type": "identifier", "text": "EXED_PACK_NODES_STRING", "parent": 243, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 23}}, {"id": 245, "type": "enumerator", "text": "EXED_LAYOUT_MENU_STRING", "parent": 8, "children": [246], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 24}}, {"id": 246, "type": "identifier", "text": "EXED_LAYOUT_MENU_STRING", "parent": 245, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 24}}, {"id": 247, "type": "enumerator", "text": "EXED_INPUTS_STRING", "parent": 8, "children": [248], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 19}}, {"id": 248, "type": "identifier", "text": "EXED_INPUTS_STRING", "parent": 247, "children": [], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 19}}, {"id": 249, "type": "enumerator", "text": "EXED_INPUTS_AT_LEFT_STRING", "parent": 8, "children": [250], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 27}}, {"id": 250, "type": "identifier", "text": "EXED_INPUTS_AT_LEFT_STRING", "parent": 249, "children": [], "start_point": {"row": 151, "column": 1}, "end_point": {"row": 151, "column": 27}}, {"id": 251, "type": "enumerator", "text": "EXED_INPUTS_AT_RIGHT_STRING", "parent": 8, "children": [252], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 28}}, {"id": 252, "type": "identifier", "text": "EXED_INPUTS_AT_RIGHT_STRING", "parent": 251, "children": [], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 28}}, {"id": 253, "type": "enumerator", "text": "EXED_INPUTS_AT_TOP_STRING", "parent": 8, "children": [254], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 26}}, {"id": 254, "type": "identifier", "text": "EXED_INPUTS_AT_TOP_STRING", "parent": 253, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 26}}, {"id": 255, "type": "enumerator", "text": "EXED_INPUTS_AT_BOTTOM_STRING", "parent": 8, "children": [256], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 29}}, {"id": 256, "type": "identifier", "text": "EXED_INPUTS_AT_BOTTOM_STRING", "parent": 255, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 29}}, {"id": 257, "type": "enumerator", "text": "EXED_CONN_STRING", "parent": 8, "children": [258], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 17}}, {"id": 258, "type": "identifier", "text": "EXED_CONN_STRING", "parent": 257, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 17}}, {"id": 259, "type": "enumerator", "text": "EXED_CONN_DIRECT_STRING", "parent": 8, "children": [260], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 24}}, {"id": 260, "type": "identifier", "text": "EXED_CONN_DIRECT_STRING", "parent": 259, "children": [], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 156, "column": 24}}, {"id": 261, "type": "enumerator", "text": "EXED_CONN_STRAIGHT_STRING", "parent": 8, "children": [262], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 26}}, {"id": 262, "type": "identifier", "text": "EXED_CONN_STRAIGHT_STRING", "parent": 261, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 26}}, {"id": 263, "type": "enumerator", "text": "EXED_CONN_ENHANCED_STRING", "parent": 8, "children": [264], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 26}}, {"id": 264, "type": "identifier", "text": "EXED_CONN_ENHANCED_STRING", "parent": 263, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 26}}, {"id": 265, "type": "enumerator", "text": "EXED_CONN_CURVED_STRING", "parent": 8, "children": [266], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 24}}, {"id": 266, "type": "identifier", "text": "EXED_CONN_CURVED_STRING", "parent": 265, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 24}}, {"id": 267, "type": "enumerator", "text": "EXED_SHOW_STATUS_STRING", "parent": 8, "children": [268], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 24}}, {"id": 268, "type": "identifier", "text": "EXED_SHOW_STATUS_STRING", "parent": 267, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 24}}, {"id": 269, "type": "enumerator", "text": "EXED_DEFAULT_LAYOUT_STRING", "parent": 8, "children": [270], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 27}}, {"id": 270, "type": "identifier", "text": "EXED_DEFAULT_LAYOUT_STRING", "parent": 269, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 27}}, {"id": 271, "type": "enumerator", "text": "EXED_VIEW_MENU_STRING", "parent": 8, "children": [272], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 22}}, {"id": 272, "type": "identifier", "text": "EXED_VIEW_MENU_STRING", "parent": 271, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 22}}, {"id": 273, "type": "enumerator", "text": "EXED_ZOOM_MENU_STRING", "parent": 8, "children": [274], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 22}}, {"id": 274, "type": "identifier", "text": "EXED_ZOOM_MENU_STRING", "parent": 273, "children": [], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 22}}, {"id": 275, "type": "enumerator", "text": "EXED_ZOOM_FIT_STRING", "parent": 8, "children": [276], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 21}}, {"id": 276, "type": "identifier", "text": "EXED_ZOOM_FIT_STRING", "parent": 275, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 21}}, {"id": 277, "type": "enumerator", "text": "EXED_ZOOM_FIT_SELECTED_STRING", "parent": 8, "children": [278], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 30}}, {"id": 278, "type": "identifier", "text": "EXED_ZOOM_FIT_SELECTED_STRING", "parent": 277, "children": [], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 30}}, {"id": 279, "type": "enumerator", "text": "EXED_ZOOM_100_STRING", "parent": 8, "children": [280], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 21}}, {"id": 280, "type": "identifier", "text": "EXED_ZOOM_100_STRING", "parent": 279, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 21}}, {"id": 281, "type": "enumerator", "text": "EXED_ZOOM_75_STRING", "parent": 8, "children": [282], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 20}}, {"id": 282, "type": "identifier", "text": "EXED_ZOOM_75_STRING", "parent": 281, "children": [], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 168, "column": 20}}, {"id": 283, "type": "enumerator", "text": "EXED_ZOOM_50_STRING", "parent": 8, "children": [284], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 20}}, {"id": 284, "type": "identifier", "text": "EXED_ZOOM_50_STRING", "parent": 283, "children": [], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 20}}, {"id": 285, "type": "enumerator", "text": "EXED_ZOOM_25_STRING", "parent": 8, "children": [286], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 20}}, {"id": 286, "type": "identifier", "text": "EXED_ZOOM_25_STRING", "parent": 285, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 20}}, {"id": 287, "type": "enumerator", "text": "EXED_CENTER_STRING", "parent": 8, "children": [288], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 19}}, {"id": 288, "type": "identifier", "text": "EXED_CENTER_STRING", "parent": 287, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 19}}, {"id": 289, "type": "enumerator", "text": "EXED_ALIGN_UPPER_LEFT_STRING", "parent": 8, "children": [290], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 29}}, {"id": 290, "type": "identifier", "text": "EXED_ALIGN_UPPER_LEFT_STRING", "parent": 289, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 29}}, {"id": 291, "type": "enumerator", "text": "EXED_ALIGN_TO_GRID_STRING", "parent": 8, "children": [292], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 26}}, {"id": 292, "type": "identifier", "text": "EXED_ALIGN_TO_GRID_STRING", "parent": 291, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 26}}, {"id": 293, "type": "enumerator", "text": "EXED_HOOKS_MENU_STRING", "parent": 8, "children": [294], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 23}}, {"id": 294, "type": "identifier", "text": "EXED_HOOKS_MENU_STRING", "parent": 293, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 23}}, {"id": 295, "type": "enumerator", "text": "EXED_MENU_CALCULATE_STRING", "parent": 8, "children": [296], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 27}}, {"id": 296, "type": "identifier", "text": "EXED_MENU_CALCULATE_STRING", "parent": 295, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 27}}, {"id": 297, "type": "enumerator", "text": "EXED_CALCULATE_STRING", "parent": 8, "children": [298], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 22}}, {"id": 298, "type": "identifier", "text": "EXED_CALCULATE_STRING", "parent": 297, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 22}}, {"id": 299, "type": "enumerator", "text": "EXED_LIVE_REFRESH_STRING", "parent": 8, "children": [300], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 25}}, {"id": 300, "type": "identifier", "text": "EXED_LIVE_REFRESH_STRING", "parent": 299, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 25}}, {"id": 301, "type": "enumerator", "text": "EXED_ANIM_REFRESH_STRING", "parent": 8, "children": [302], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 25}}, {"id": 302, "type": "identifier", "text": "EXED_ANIM_REFRESH_STRING", "parent": 301, "children": [], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 180, "column": 25}}, {"id": 303, "type": "enumerator", "text": "EXED_DIALOG_TITLE_STRING", "parent": 8, "children": [304], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 25}}, {"id": 304, "type": "identifier", "text": "EXED_DIALOG_TITLE_STRING", "parent": 303, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 25}}, {"id": 305, "type": "enumerator", "text": "EXED_DIALOG_HELP_STRING", "parent": 8, "children": [306], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 24}}, {"id": 306, "type": "identifier", "text": "EXED_DIALOG_HELP_STRING", "parent": 305, "children": [], "start_point": {"row": 183, "column": 1}, "end_point": {"row": 183, "column": 24}}, {"id": 307, "type": "enumerator", "text": "EXED_UNNAMED_MACRO_STRING", "parent": 8, "children": [308], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 26}}, {"id": 308, "type": "identifier", "text": "EXED_UNNAMED_MACRO_STRING", "parent": 307, "children": [], "start_point": {"row": 185, "column": 1}, "end_point": {"row": 185, "column": 26}}, {"id": 309, "type": "enumerator", "text": "OP_DIALOG_TITLE_STRING", "parent": 8, "children": [310], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 23}}, {"id": 310, "type": "identifier", "text": "OP_DIALOG_TITLE_STRING", "parent": 309, "children": [], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 23}}, {"id": 311, "type": "enumerator", "text": "OP_MENU_NAME_STRING", "parent": 8, "children": [312], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 20}}, {"id": 312, "type": "identifier", "text": "OP_MENU_NAME_STRING", "parent": 311, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 20}}, {"id": 313, "type": "enumerator", "text": "OP_POOL_FILENAME_STRING", "parent": 8, "children": [314], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 24}}, {"id": 314, "type": "identifier", "text": "OP_POOL_FILENAME_STRING", "parent": 313, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 24}}, {"id": 315, "type": "enumerator", "text": "OP_UNNAMED_POOL_STRING", "parent": 8, "children": [316], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 23}}, {"id": 316, "type": "identifier", "text": "OP_UNNAMED_POOL_STRING", "parent": 315, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 23}}, {"id": 317, "type": "enumerator", "text": "OP_PRESETS_POOL_STRING", "parent": 8, "children": [318], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 23}}, {"id": 318, "type": "identifier", "text": "OP_PRESETS_POOL_STRING", "parent": 317, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 23}}, {"id": 319, "type": "enumerator", "text": "OP_UNNAMED_FOLDER_STRING", "parent": 8, "children": [320], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 25}}, {"id": 320, "type": "identifier", "text": "OP_UNNAMED_FOLDER_STRING", "parent": 319, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 25}}, {"id": 321, "type": "enumerator", "text": "OP_GET_FOLDER_STRING", "parent": 8, "children": [322], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 21}}, {"id": 322, "type": "identifier", "text": "OP_GET_FOLDER_STRING", "parent": 321, "children": [], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 194, "column": 21}}, {"id": 323, "type": "enumerator", "text": "OP_CREATE_POOL_STRING", "parent": 8, "children": [324], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 22}}, {"id": 324, "type": "identifier", "text": "OP_CREATE_POOL_STRING", "parent": 323, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 22}}, {"id": 325, "type": "enumerator", "text": "OP_REMOVE_ENTRY_STRING", "parent": 8, "children": [326], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 23}}, {"id": 326, "type": "identifier", "text": "OP_REMOVE_ENTRY_STRING", "parent": 325, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 23}}, {"id": 327, "type": "enumerator", "text": "OP_RENAME_ENTRY_STRING", "parent": 8, "children": [328], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 23}}, {"id": 328, "type": "identifier", "text": "OP_RENAME_ENTRY_STRING", "parent": 327, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 23}}, {"id": 329, "type": "enumerator", "text": "OP_CREATE_FOLDER_STRING", "parent": 8, "children": [330], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 24}}, {"id": 330, "type": "identifier", "text": "OP_CREATE_FOLDER_STRING", "parent": 329, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 24}}, {"id": 331, "type": "enumerator", "text": "OP_EDIT_MENU_STRING", "parent": 8, "children": [332], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 20}}, {"id": 332, "type": "identifier", "text": "OP_EDIT_MENU_STRING", "parent": 331, "children": [], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 20}}, {"id": 333, "type": "enumerator", "text": "OP_OPERATORS_NAME_STRING", "parent": 8, "children": [334], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 25}}, {"id": 334, "type": "identifier", "text": "OP_OPERATORS_NAME_STRING", "parent": 333, "children": [], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 25}}, {"id": 335, "type": "enumerator", "text": "OP_RENAME_NODE_STRING", "parent": 8, "children": [336], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 22}}, {"id": 336, "type": "identifier", "text": "OP_RENAME_NODE_STRING", "parent": 335, "children": [], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 22}}, {"id": 337, "type": "enumerator", "text": "GV_BRANCH_NAME", "parent": 8, "children": [338], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 15}}, {"id": 338, "type": "identifier", "text": "GV_BRANCH_NAME", "parent": 337, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 15}}, {"id": 339, "type": "enumerator", "text": "GV_CONSTANT_0_STRING", "parent": 8, "children": [340], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 21}}, {"id": 340, "type": "identifier", "text": "GV_CONSTANT_0_STRING", "parent": 339, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 21}}, {"id": 341, "type": "enumerator", "text": "GV_CONSTANT_1_STRING", "parent": 8, "children": [342], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 21}}, {"id": 342, "type": "identifier", "text": "GV_CONSTANT_1_STRING", "parent": 341, "children": [], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 21}}, {"id": 343, "type": "enumerator", "text": "GV_CONSTANT_10_STRING", "parent": 8, "children": [344], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 22}}, {"id": 344, "type": "identifier", "text": "GV_CONSTANT_10_STRING", "parent": 343, "children": [], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 22}}, {"id": 345, "type": "enumerator", "text": "GV_CONSTANT_100_STRING", "parent": 8, "children": [346], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 23}}, {"id": 346, "type": "identifier", "text": "GV_CONSTANT_100_STRING", "parent": 345, "children": [], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 211, "column": 23}}, {"id": 347, "type": "enumerator", "text": "GV_CONSTANT_1000_STRING", "parent": 8, "children": [348], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 24}}, {"id": 348, "type": "identifier", "text": "GV_CONSTANT_1000_STRING", "parent": 347, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 24}}, {"id": 349, "type": "enumerator", "text": "GV_CONSTANT_QUARTER_PI_STRING", "parent": 8, "children": [350], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 30}}, {"id": 350, "type": "identifier", "text": "GV_CONSTANT_QUARTER_PI_STRING", "parent": 349, "children": [], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 213, "column": 30}}, {"id": 351, "type": "enumerator", "text": "GV_CONSTANT_HALF_PI_STRING", "parent": 8, "children": [352], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 27}}, {"id": 352, "type": "identifier", "text": "GV_CONSTANT_HALF_PI_STRING", "parent": 351, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 27}}, {"id": 353, "type": "enumerator", "text": "GV_CONSTANT_PI_STRING", "parent": 8, "children": [354], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 22}}, {"id": 354, "type": "identifier", "text": "GV_CONSTANT_PI_STRING", "parent": 353, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 22}}, {"id": 355, "type": "enumerator", "text": "GV_CONSTANT_DOUBLE_PI_STRING", "parent": 8, "children": [356], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 29}}, {"id": 356, "type": "identifier", "text": "GV_CONSTANT_DOUBLE_PI_STRING", "parent": 355, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 29}}, {"id": 357, "type": "enumerator", "text": "GV_DIALOG_GUICONFIG", "parent": 8, "children": [358], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 20}}, {"id": 358, "type": "identifier", "text": "GV_DIALOG_GUICONFIG", "parent": 357, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 20}}, {"id": 359, "type": "enumerator", "text": "GV_DIALOG_COLORS", "parent": 8, "children": [360], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 17}}, {"id": 360, "type": "identifier", "text": "GV_DIALOG_COLORS", "parent": 359, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 17}}, {"id": 361, "type": "enumerator", "text": "IDS_TP_VALUE_TYPE_PARTICLE", "parent": 8, "children": [362], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 27}}, {"id": 362, "type": "identifier", "text": "IDS_TP_VALUE_TYPE_PARTICLE", "parent": 361, "children": [], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 221, "column": 27}}, {"id": 363, "type": "enumerator", "text": "IDS_TP_DATA_TYPE_PARTICLE", "parent": 8, "children": [364], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 26}}, {"id": 364, "type": "identifier", "text": "IDS_TP_DATA_TYPE_PARTICLE", "parent": 363, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 26}}, {"id": 365, "type": "enumerator", "text": "IDS_TP_VALUE_TYPE_SHAPE", "parent": 8, "children": [366], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 24}}, {"id": 366, "type": "identifier", "text": "IDS_TP_VALUE_TYPE_SHAPE", "parent": 365, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 24}}, {"id": 367, "type": "enumerator", "text": "IDS_TP_DATA_TYPE_SHAPE", "parent": 8, "children": [368], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 23}}, {"id": 368, "type": "identifier", "text": "IDS_TP_DATA_TYPE_SHAPE", "parent": 367, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 23}}, {"id": 369, "type": "enumerator", "text": "IDS_TP_VALUE_TYPE_GROUP", "parent": 8, "children": [370], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 24}}, {"id": 370, "type": "identifier", "text": "IDS_TP_VALUE_TYPE_GROUP", "parent": 369, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 24}}, {"id": 371, "type": "enumerator", "text": "IDS_TP_DATA_TYPE_GROUP", "parent": 8, "children": [372], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 23}}, {"id": 372, "type": "identifier", "text": "IDS_TP_DATA_TYPE_GROUP", "parent": 371, "children": [], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 226, "column": 23}}, {"id": 373, "type": "enumerator", "text": "IDS_TP_VALUE_TYPE_SPIN", "parent": 8, "children": [374], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 23}}, {"id": 374, "type": "identifier", "text": "IDS_TP_VALUE_TYPE_SPIN", "parent": 373, "children": [], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 23}}, {"id": 375, "type": "enumerator", "text": "IDS_TP_DATA_TYPE_SPIN", "parent": 8, "children": [376], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 22}}, {"id": 376, "type": "identifier", "text": "IDS_TP_DATA_TYPE_SPIN", "parent": 375, "children": [], "start_point": {"row": 228, "column": 1}, "end_point": {"row": 228, "column": 22}}, {"id": 377, "type": "enumerator", "text": "IDS_AM_MODE_NODES", "parent": 8, "children": [378], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 18}}, {"id": 378, "type": "identifier", "text": "IDS_AM_MODE_NODES", "parent": 377, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 18}}, {"id": 379, "type": "enumerator", "text": "GV_DATA_TYPE_GENERAL_TAG_STRING", "parent": 8, "children": [380], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 32}}, {"id": 380, "type": "identifier", "text": "GV_DATA_TYPE_GENERAL_TAG_STRING", "parent": 379, "children": [], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 32}}, {"id": 381, "type": "enumerator", "text": "GV_VALUE_TYPE_GENERAL_TAG_STRING", "parent": 8, "children": [382], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 33}}, {"id": 382, "type": "identifier", "text": "GV_VALUE_TYPE_GENERAL_TAG_STRING", "parent": 381, "children": [], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 33}}, {"id": 383, "type": "enumerator", "text": "GV_DATA_TYPE_GENERAL_MATERIAL_STRING", "parent": 8, "children": [384], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 37}}, {"id": 384, "type": "identifier", "text": "GV_DATA_TYPE_GENERAL_MATERIAL_STRING", "parent": 383, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 37}}, {"id": 385, "type": "enumerator", "text": "GV_VALUE_TYPE_GENERAL_MATERIAL_STRING", "parent": 8, "children": [386], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 38}}, {"id": 386, "type": "identifier", "text": "GV_VALUE_TYPE_GENERAL_MATERIAL_STRING", "parent": 385, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 38}}, {"id": 387, "type": "enumerator", "text": "GV_DATA_TYPE_GENERAL_INSTANCE_STRING", "parent": 8, "children": [388], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 37}}, {"id": 388, "type": "identifier", "text": "GV_DATA_TYPE_GENERAL_INSTANCE_STRING", "parent": 387, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 37}}, {"id": 389, "type": "enumerator", "text": "GV_VALUE_TYPE_GENERAL_INSTANCE_STRING", "parent": 8, "children": [390], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 38}}, {"id": 390, "type": "identifier", "text": "GV_VALUE_TYPE_GENERAL_INSTANCE_STRING", "parent": 389, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 38}}, {"id": 391, "type": "enumerator", "text": "GV_OPGROUP_TYPE_ITERATOR_STRING", "parent": 8, "children": [392], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 32}}, {"id": 392, "type": "identifier", "text": "GV_OPGROUP_TYPE_ITERATOR_STRING", "parent": 391, "children": [], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 32}}, {"id": 393, "type": "enumerator", "text": "GV_PASSWORD_STRING", "parent": 8, "children": [394], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 243, "column": 19}}, {"id": 394, "type": "identifier", "text": "GV_PASSWORD_STRING", "parent": 393, "children": [], "start_point": {"row": 243, "column": 1}, "end_point": {"row": 243, "column": 19}}, {"id": 395, "type": "enumerator", "text": "IDC_GV_GUI_CONFIG_SORT_MENUS", "parent": 8, "children": [396], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 29}}, {"id": 396, "type": "identifier", "text": "IDC_GV_GUI_CONFIG_SORT_MENUS", "parent": 395, "children": [], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 29}}, {"id": 397, "type": "enumerator", "text": "IDC_GV_GUI_CONFIG_SORT_PORTS", "parent": 8, "children": [398], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 29}}, {"id": 398, "type": "identifier", "text": "IDC_GV_GUI_CONFIG_SORT_PORTS", "parent": 397, "children": [], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 29}}, {"id": 399, "type": "enumerator", "text": "OP_LOAD_POOL_STRING", "parent": 8, "children": [400], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 20}}, {"id": 400, "type": "identifier", "text": "OP_LOAD_POOL_STRING", "parent": 399, "children": [], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 20}}, {"id": 401, "type": "enumerator", "text": "IDS_DATATYPE_NORMAL", "parent": 8, "children": [402], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 20}}, {"id": 402, "type": "identifier", "text": "IDS_DATATYPE_NORMAL", "parent": 401, "children": [], "start_point": {"row": 250, "column": 1}, "end_point": {"row": 250, "column": 20}}, {"id": 403, "type": "enumerator", "text": "IDS_UPDATE_NORMAL", "parent": 8, "children": [404], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 18}}, {"id": 404, "type": "identifier", "text": "IDS_UPDATE_NORMAL", "parent": 403, "children": [], "start_point": {"row": 251, "column": 1}, "end_point": {"row": 251, "column": 18}}, {"id": 405, "type": "enumerator", "text": "GV_CONSTANT_UP_STRING", "parent": 8, "children": [406], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 22}}, {"id": 406, "type": "identifier", "text": "GV_CONSTANT_UP_STRING", "parent": 405, "children": [], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 22}}, {"id": 407, "type": "enumerator", "text": "GV_CONSTANT_DOWN_STRING", "parent": 8, "children": [408], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 24}}, {"id": 408, "type": "identifier", "text": "GV_CONSTANT_DOWN_STRING", "parent": 407, "children": [], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 24}}, {"id": 409, "type": "enumerator", "text": "GV_CONSTANT_LEFT_STRING", "parent": 8, "children": [410], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 24}}, {"id": 410, "type": "identifier", "text": "GV_CONSTANT_LEFT_STRING", "parent": 409, "children": [], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 24}}, {"id": 411, "type": "enumerator", "text": "GV_CONSTANT_RIGHT_STRING", "parent": 8, "children": [412], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 25}}, {"id": 412, "type": "identifier", "text": "GV_CONSTANT_RIGHT_STRING", "parent": 411, "children": [], "start_point": {"row": 256, "column": 1}, "end_point": {"row": 256, "column": 25}}, {"id": 413, "type": "enumerator", "text": "GV_CONSTANT_FRONT_STRING", "parent": 8, "children": [414], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 25}}, {"id": 414, "type": "identifier", "text": "GV_CONSTANT_FRONT_STRING", "parent": 413, "children": [], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 25}}, {"id": 415, "type": "enumerator", "text": "GV_CONSTANT_BACK_STRING", "parent": 8, "children": [416], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 24}}, {"id": 416, "type": "identifier", "text": "GV_CONSTANT_BACK_STRING", "parent": 415, "children": [], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 24}}, {"id": 417, "type": "enumerator", "text": "EXED_PERFORMANCEVIEW_STRING", "parent": 8, "children": [418], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 28}}, {"id": 418, "type": "identifier", "text": "EXED_PERFORMANCEVIEW_STRING", "parent": 417, "children": [], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 260, "column": 28}}, {"id": 419, "type": "enumerator", "text": "IDS_PV_TITLE", "parent": 8, "children": [420], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 13}}, {"id": 420, "type": "identifier", "text": "IDS_PV_TITLE", "parent": 419, "children": [], "start_point": {"row": 262, "column": 1}, "end_point": {"row": 262, "column": 13}}, {"id": 421, "type": "enumerator", "text": "IDS_PV_ENABLE", "parent": 8, "children": [422], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 263, "column": 14}}, {"id": 422, "type": "identifier", "text": "IDS_PV_ENABLE", "parent": 421, "children": [], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 263, "column": 14}}, {"id": 423, "type": "enumerator", "text": "IDS_PV_LBL_MODE", "parent": 8, "children": [424], "start_point": {"row": 264, "column": 1}, "end_point": {"row": 264, "column": 16}}, {"id": 424, "type": "identifier", "text": "IDS_PV_LBL_MODE", "parent": 423, "children": [], "start_point": {"row": 264, "column": 1}, "end_point": {"row": 264, "column": 16}}, {"id": 425, "type": "enumerator", "text": "IDS_PV_LBL_INTENSITY", "parent": 8, "children": [426], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 21}}, {"id": 426, "type": "identifier", "text": "IDS_PV_LBL_INTENSITY", "parent": 425, "children": [], "start_point": {"row": 265, "column": 1}, "end_point": {"row": 265, "column": 21}}, {"id": 427, "type": "enumerator", "text": "IDC_PV_MODE_TIME", "parent": 8, "children": [428], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 17}}, {"id": 428, "type": "identifier", "text": "IDC_PV_MODE_TIME", "parent": 427, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 17}}, {"id": 429, "type": "enumerator", "text": "IDC_PV_MODE_COUNT", "parent": 8, "children": [430], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 267, "column": 18}}, {"id": 430, "type": "identifier", "text": "IDC_PV_MODE_COUNT", "parent": 429, "children": [], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 267, "column": 18}}, {"id": 431, "type": "enumerator", "text": "DUMMY_", "parent": 8, "children": [432], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 7}}, {"id": 432, "type": "identifier", "text": "DUMMY_", "parent": 431, "children": [], "start_point": {"row": 269, "column": 1}, "end_point": {"row": 269, "column": 7}}, {"id": 433, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": [6, 7, 8, 9, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119, 121, 123, 125, 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, 255, 257, 259, 261, 263, 265, 267, 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, 331, 333, 335, 337, 339, 341, 343, 345, 347, 349, 351, 353, 355, 357, 359, 361, 363, 365, 367, 369, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395, 397, 399, 401, 403, 405, 407, 409, 411, 413, 415, 417, 419, 421, 423, 425, 427, 429, 431]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268, 270, 272, 274, 276, 278, 280, 282, 284, 286, 288, 290, 292, 294, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 340, 342, 344, 346, 348, 350, 352, 354, 356, 358, 360, 362, 364, 366, 368, 370, 372, 374, 376, 378, 380, 382, 384, 386, 388, 390, 392, 394, 396, 398, 400, 402, 404, 406, 408, 410, 412, 414, 416, 418, 420, 422, 424, 426, 428, 430, 432, 433], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [12], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef C4D_SYMBOLS_H__\n#define C4D_SYMBOLS_H__\n\nenum\n{\n\t// string table definitions\n\n\tGV_MENU_NODE_OPERATOR_STRING = 1000,\n\tGV_MENU_NODE_DELETE_STRING,\n\tGV_MENU_NODE_RENAME_STRING,\n\tGV_MENU_NODE_ENABLE_STRING,\n\tGV_MENU_NODE_DISABLE_STRING,\n\tGV_MENU_NODE_OPTIMIZE_STRING,\n\tGV_MENU_NODE_PACK_NODES_STRING,\n\tGV_MENU_NODE_UNPACK_NODES_STRING,\n\tGV_MENU_NODE_SELECT_CONNECTED_STRING,\n\n\tGV_MENU_NODE_VIEW_STRING,\n\tGV_MENU_NODE_MINIMIZED_STRING,\n\tGV_MENU_NODE_STANDARD_STRING,\n\tGV_MENU_NODE_EXTENDED_STRING,\n\tGV_MENU_NODE_FULLSCREEN_STRING,\n\tGV_MENU_NODE_LOCKED_EXTENDED_STRING,\n\n\tGV_MENU_NODE_CONNECTIONS_STRING,\n\tGV_MENU_NODE_CONN_REMOVE_STRING,\n\n\tGV_MENU_NODE_CREATE_NODE_STRING,\n\tGV_MENU_NODE_CREATE_MACRO_STRING,\n\n\tGV_MENU_NODE_PORTS_STRING,\n\tGV_MENU_NODE_PORTS_REMOVE_UNUSED_STRING,\n\tGV_MENU_NODE_PORTS_SHOW_NAMES_STRING,\n\n\tGV_MENU_NODE_ALIGN_STRING,\n\tGV_MENU_NODE_ZOOM_FIT_STRING,\n\tGV_MENU_NODE_CENTER_STRING,\n\tGV_MENU_NODE_ALIGN_UPPER_LEFT_STRING,\n\tGV_MENU_NODE_ALIGN_TO_GRID_STRING,\n\n\tGV_MENU_PORT_INFO_STRING,\n\tGV_MENU_PORT_REMOVE_CONNECTIONS_STRING,\n\tGV_MENU_PORT_DELETE_STRING,\n\tGV_MENU_PORT_RENAME_STRING,\n\tGV_MENU_PORT_OPERATOR_STRING,\n\n\tGV_VALGROUP_TYPE_GENERAL_STRING,\n\tGV_OPCLASS_TYPE_GENERAL_STRING,\n\n\tGV_OPGROUP_TYPE_GENERAL_STRING,\n\tGV_OPGROUP_TYPE_OBJECT_STRING,\n\tGV_OPGROUP_TYPE_ADAPTER_STRING,\n\tGV_OPGROUP_TYPE_BOOL_STRING,\n\tGV_OPGROUP_TYPE_CALCULATE_STRING,\n\tGV_OPGROUP_TYPE_LOGICAL_STRING,\n\tGV_OPGROUP_TYPE_SCRIPTING_STRING,\n\n\tEX_GV_DATA_TYPE_UNDEFINED_STRING,\n\tGV_DATA_TYPE_BOOL_STRING,\n\tGV_DATA_TYPE_INTEGER_STRING,\n\tGV_DATA_TYPE_REAL_STRING,\n\tGV_DATA_TYPE_VECTOR_STRING,\n\tGV_DATA_TYPE_NORMAL_STRING,\n\tGV_DATA_TYPE_MATRIX_STRING,\n\tGV_DATA_TYPE_TIME_STRING,\n\tGV_DATA_TYPE_STRING_STRING,\n\tGV_DATA_TYPE_GENERAL_OBJECT_STRING,\n\n\tEX_GV_VALUE_TYPE_UNDEFINED_STRING,\n\tGV_VALUE_TYPE_BOOL_STRING,\n\tGV_VALUE_TYPE_INTEGER_STRING,\n\tGV_VALUE_TYPE_REAL_STRING,\n\tGV_VALUE_TYPE_VECTOR_STRING,\n\tGV_VALUE_TYPE_NORMAL_STRING,\n\tGV_VALUE_TYPE_MATRIX_STRING,\n\tGV_VALUE_TYPE_TIME_STRING,\n\tGV_VALUE_TYPE_STRING_STRING,\n\tGV_VALUE_TYPE_GENERAL_OBJECT_STRING,\n\n\tGV_GROUP_NODE_TITLE_STRING,\n\tGV_DUMMY_NODE_TITLE_STRING,\n\tGV_GROUP_ENABLE_STRING,\n\n\tGV_UNNAMED_PORT_STRING,\n\tGV_UNNAMED_DATA_TYPE_STRING,\n\tGV_UNNAMED_VALUE_TYPE_STRING,\n\n\tGV_PORT_NAME_STRING,\n\tGV_PORT_IO_STRING,\n\tGV_PORT_DATA_TYPE_STRING,\n\tGV_PORT_VALUE_TYPE_STRING,\n\n\tGV_GET_TITLE_STRING,\n\tGV_GET_NAME_STRING,\n\tGV_PORT_INFO_TITLE_STRING,\n\n\tGV_OPERATOR_INPUT_STRING,\n\tGV_OPERATOR_OUTPUT_STRING,\n\n\tGV_CONSTANT_INPUT_STRING,\n\tGV_CONSTANT_SELECT_STRING,\n\n\tGV_STATUS_STRING,\n\n\tGV_ERR_NONE_STRING,\n\n\tGV_CALC_ERR_NO_MEMORY_STRING,\n\tGV_CALC_ERR_UNDEFINED_STRING,\n\tGV_CALC_ERR_UNKNOWN_TYPE_STRING,\n\tGV_CALC_ERR_NOT_IMPLEMENTED_STRING,\n\tGV_CALC_ERR_NOT_INITIALIZED_STRING,\n\tGV_CALC_ERR_NOT_VALID_STRING,\n\tGV_CALC_ERR_NO_OUTPORT_STRING,\n\tGV_CALC_ERR_NOT_CONNECTED_STRING,\n\tGV_CALC_ERR_NO_PORT_STRING,\n\tGV_CALC_ERR_DIVISION_BY_ZERO_STRING,\n\tGV_CALC_ERR_TYPE_MISMATCH_STRING,\n\tGV_CALC_ERR_INIT_FAILED_STRING,\n\tGV_CALC_ERR_QUERY_FAILED_STRING,\n\tGV_CALC_ERR_CALCULATION_FAILED_STRING,\n\tGV_CALC_ERR_PARAMETER_STRING,\n\n\tGV_IO_ERR_NO_MEMORY_STRING,\n\tGV_IO_ERR_FILE_NOT_FOUND_STRING,\n\tGV_IO_ERR_READ_STRING,\n\tGV_IO_ERR_WRITE_STRING,\n\tGV_IO_ERR_NOT_A_GROUP_NODE_STRING,\n\n\tGV_NEW_MACRO_STRING,\n\tGV_MACRO_FILENAME_STRING,\n\n\tEXED_FILE_MENU_STRING,\n\tEXED_SHOW_VERSION_STRING,\n\tEXED_LOAD_XGROUP_STRING,\n\tEXED_SAVE_XGROUP_STRING,\n\n\tEXED_EDIT_MENU_STRING,\n\tEXED_SELECT_ALL_STRING,\n\tEXED_SELECT_NONE_STRING,\n\tEXED_ENABLE_SELECTED_STRING,\n\tEXED_DISABLE_SELECTED_STRING,\n\tEXED_CUT_SELECTED_STRING,\n\tEXED_COPY_SELECTED_STRING,\n\tEXED_PASTE_SELECTED_STRING,\n\tEXED_DELETE_SELECTED_STRING,\n\n\tEXED_EXTRA_MENU_STRING,\n\tEXED_PACK_NODES_STRING,\n\n\tEXED_LAYOUT_MENU_STRING,\n\tEXED_INPUTS_STRING,\n\tEXED_INPUTS_AT_LEFT_STRING,\n\tEXED_INPUTS_AT_RIGHT_STRING,\n\tEXED_INPUTS_AT_TOP_STRING,\n\tEXED_INPUTS_AT_BOTTOM_STRING,\n\tEXED_CONN_STRING,\n\tEXED_CONN_DIRECT_STRING,\n\tEXED_CONN_STRAIGHT_STRING,\n\tEXED_CONN_ENHANCED_STRING,\n\tEXED_CONN_CURVED_STRING,\n\tEXED_SHOW_STATUS_STRING,\n\tEXED_DEFAULT_LAYOUT_STRING,\n\n\tEXED_VIEW_MENU_STRING,\n\tEXED_ZOOM_MENU_STRING,\n\tEXED_ZOOM_FIT_STRING,\n\tEXED_ZOOM_FIT_SELECTED_STRING,\n\tEXED_ZOOM_100_STRING,\n\tEXED_ZOOM_75_STRING,\n\tEXED_ZOOM_50_STRING,\n\tEXED_ZOOM_25_STRING,\n\tEXED_CENTER_STRING,\n\tEXED_ALIGN_UPPER_LEFT_STRING,\n\tEXED_ALIGN_TO_GRID_STRING,\n\n\tEXED_HOOKS_MENU_STRING,\n\n\tEXED_MENU_CALCULATE_STRING,\n\tEXED_CALCULATE_STRING,\n\tEXED_LIVE_REFRESH_STRING,\n\tEXED_ANIM_REFRESH_STRING,\n\n\tEXED_DIALOG_TITLE_STRING,\n\tEXED_DIALOG_HELP_STRING,\n\n\tEXED_UNNAMED_MACRO_STRING,\n\n\tOP_DIALOG_TITLE_STRING,\n\tOP_MENU_NAME_STRING,\n\n\tOP_POOL_FILENAME_STRING,\n\tOP_UNNAMED_POOL_STRING,\n\tOP_PRESETS_POOL_STRING,\n\tOP_UNNAMED_FOLDER_STRING,\n\tOP_GET_FOLDER_STRING,\n\n\tOP_CREATE_POOL_STRING,\n\tOP_REMOVE_ENTRY_STRING,\n\tOP_RENAME_ENTRY_STRING,\n\tOP_CREATE_FOLDER_STRING,\n\tOP_EDIT_MENU_STRING,\n\n\tOP_OPERATORS_NAME_STRING,\n\n\tOP_RENAME_NODE_STRING,\n\n\tGV_BRANCH_NAME,\n\n\tGV_CONSTANT_0_STRING,\n\tGV_CONSTANT_1_STRING,\n\tGV_CONSTANT_10_STRING,\n\tGV_CONSTANT_100_STRING,\n\tGV_CONSTANT_1000_STRING,\n\tGV_CONSTANT_QUARTER_PI_STRING,\n\tGV_CONSTANT_HALF_PI_STRING,\n\tGV_CONSTANT_PI_STRING,\n\tGV_CONSTANT_DOUBLE_PI_STRING,\n\n\tGV_DIALOG_GUICONFIG,\n\tGV_DIALOG_COLORS,\n\n\tIDS_TP_VALUE_TYPE_PARTICLE,\n\tIDS_TP_DATA_TYPE_PARTICLE,\n\tIDS_TP_VALUE_TYPE_SHAPE,\n\tIDS_TP_DATA_TYPE_SHAPE,\n\tIDS_TP_VALUE_TYPE_GROUP,\n\tIDS_TP_DATA_TYPE_GROUP,\n\tIDS_TP_VALUE_TYPE_SPIN,\n\tIDS_TP_DATA_TYPE_SPIN,\n\n\tIDS_AM_MODE_NODES,\n\n\tGV_DATA_TYPE_GENERAL_TAG_STRING,\n\tGV_VALUE_TYPE_GENERAL_TAG_STRING,\n\n\tGV_DATA_TYPE_GENERAL_MATERIAL_STRING,\n\tGV_VALUE_TYPE_GENERAL_MATERIAL_STRING,\n\n\tGV_DATA_TYPE_GENERAL_INSTANCE_STRING,\n\tGV_VALUE_TYPE_GENERAL_INSTANCE_STRING,\n\n\tGV_OPGROUP_TYPE_ITERATOR_STRING,\n\n\tGV_PASSWORD_STRING,\n\n\tIDC_GV_GUI_CONFIG_SORT_MENUS,\n\tIDC_GV_GUI_CONFIG_SORT_PORTS,\n\n\tOP_LOAD_POOL_STRING,\n\n\tIDS_DATATYPE_NORMAL,\n\tIDS_UPDATE_NORMAL,\n\n\tGV_CONSTANT_UP_STRING,\n\tGV_CONSTANT_DOWN_STRING,\n\tGV_CONSTANT_LEFT_STRING,\n\tGV_CONSTANT_RIGHT_STRING,\n\tGV_CONSTANT_FRONT_STRING,\n\tGV_CONSTANT_BACK_STRING,\n\n\tEXED_PERFORMANCEVIEW_STRING,\n\n\tIDS_PV_TITLE,\n\tIDS_PV_ENABLE,\n\tIDS_PV_LBL_MODE,\n\tIDS_PV_LBL_INTENSITY,\n\tIDC_PV_MODE_TIME,\n\tIDC_PV_MODE_COUNT,\n\n\tDUMMY_\n};\n\n#endif // C4D_SYMBOLS_H__\n"}
80,732
c
/******************************************************************************* * (c) 2016 Ledger * (c) 2018 ZondaX GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ********************************************************************************/ #pragma once #include <stdbool.h> #include "os.h" #include "cx.h" #include "view_common.h" #include "view_expl.h" #include "view_conf.h" enum UI_STATE { UI_IDLE, UI_TRANSACTION }; extern enum UI_STATE view_uiState; //------ Event handlers /// view_set_handlers void view_set_handlers(viewctl_delegate_getData func_getData, viewctl_delegate_accept func_accept, viewctl_delegate_reject func_reject); //------ Common functions /// view_init void view_init(void); /// view_idle void view_idle(unsigned int ignored); /// view_display_tx_menu void view_display_tx_menu(unsigned int ignored); /// view_address_show_main_net void view_address_show_main_net(unsigned int unused); /// view_address_show_test_net void view_address_show_test_net(unsigned int unused); /// view_tx_show void view_tx_show(unsigned int start_page); /// view_sign_transaction void view_sign_transaction(unsigned int start_page); /// view_addr_show void view_addr_show(unsigned int start_page); /// view_addr_confirm void view_addr_confirm(unsigned int start_page); /// view_display_signing_success void view_display_signing_success(); /// view_display_signing_error void view_display_signing_error();
34.45
56
(translation_unit) "/*******************************************************************************\n* (c) 2016 Ledger\n* (c) 2018 ZondaX GmbH\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#pragma once\n\n#include <stdbool.h>\n#include "os.h"\n#include "cx.h"\n#include "view_common.h"\n#include "view_expl.h"\n#include "view_conf.h"\n\nenum UI_STATE {\n UI_IDLE,\n UI_TRANSACTION\n};\n\nextern enum UI_STATE view_uiState;\n\n//------ Event handlers\n/// view_set_handlers\nvoid view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject);\n\n//------ Common functions\n/// view_init\nvoid view_init(void);\n\n/// view_idle\nvoid view_idle(unsigned int ignored);\n\n/// view_display_tx_menu\nvoid view_display_tx_menu(unsigned int ignored);\n\n/// view_address_show_main_net\nvoid view_address_show_main_net(unsigned int unused);\n\n/// view_address_show_test_net\nvoid view_address_show_test_net(unsigned int unused);\n\n/// view_tx_show\nvoid view_tx_show(unsigned int start_page);\n\n/// view_sign_transaction\nvoid view_sign_transaction(unsigned int start_page);\n\n/// view_addr_show\nvoid view_addr_show(unsigned int start_page);\n\n/// view_addr_confirm\nvoid view_addr_confirm(unsigned int start_page);\n\n/// view_display_signing_success\nvoid view_display_signing_success();\n\n/// view_display_signing_error\nvoid view_display_signing_error();\n" (comment) "/*******************************************************************************\n* (c) 2016 Ledger\n* (c) 2018 ZondaX GmbH\n*\n* Licensed under the Apache License, Version 2.0 (the "License");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an "AS IS" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n********************************************************************************/" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include "os.h"\n" (#include) "#include" (string_literal) ""os.h"" (") """ (string_content) "os.h" (") """ (preproc_include) "#include "cx.h"\n" (#include) "#include" (string_literal) ""cx.h"" (") """ (string_content) "cx.h" (") """ (preproc_include) "#include "view_common.h"\n" (#include) "#include" (string_literal) ""view_common.h"" (") """ (string_content) "view_common.h" (") """ (preproc_include) "#include "view_expl.h"\n" (#include) "#include" (string_literal) ""view_expl.h"" (") """ (string_content) "view_expl.h" (") """ (preproc_include) "#include "view_conf.h"\n" (#include) "#include" (string_literal) ""view_conf.h"" (") """ (string_content) "view_conf.h" (") """ (enum_specifier) "enum UI_STATE {\n UI_IDLE,\n UI_TRANSACTION\n}" (enum) "enum" (type_identifier) "UI_STATE" (enumerator_list) "{\n UI_IDLE,\n UI_TRANSACTION\n}" ({) "{" (enumerator) "UI_IDLE" (identifier) "UI_IDLE" (,) "," (enumerator) "UI_TRANSACTION" (identifier) "UI_TRANSACTION" (}) "}" (;) ";" (declaration) "extern enum UI_STATE view_uiState;" (storage_class_specifier) "extern" (extern) "extern" (enum_specifier) "enum UI_STATE" (enum) "enum" (type_identifier) "UI_STATE" (identifier) "view_uiState" (;) ";" (comment) "//------ Event handlers" (comment) "/// view_set_handlers" (declaration) "void view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject);" (primitive_type) "void" (function_declarator) "view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject)" (identifier) "view_set_handlers" (parameter_list) "(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject)" (() "(" (parameter_declaration) "viewctl_delegate_getData func_getData" (type_identifier) "viewctl_delegate_getData" (identifier) "func_getData" (,) "," (parameter_declaration) "viewctl_delegate_accept func_accept" (type_identifier) "viewctl_delegate_accept" (identifier) "func_accept" (,) "," (parameter_declaration) "viewctl_delegate_reject func_reject" (type_identifier) "viewctl_delegate_reject" (identifier) "func_reject" ()) ")" (;) ";" (comment) "//------ Common functions" (comment) "/// view_init" (declaration) "void view_init(void);" (primitive_type) "void" (function_declarator) "view_init(void)" (identifier) "view_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (comment) "/// view_idle" (declaration) "void view_idle(unsigned int ignored);" (primitive_type) "void" (function_declarator) "view_idle(unsigned int ignored)" (identifier) "view_idle" (parameter_list) "(unsigned int ignored)" (() "(" (parameter_declaration) "unsigned int ignored" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "ignored" ()) ")" (;) ";" (comment) "/// view_display_tx_menu" (declaration) "void view_display_tx_menu(unsigned int ignored);" (primitive_type) "void" (function_declarator) "view_display_tx_menu(unsigned int ignored)" (identifier) "view_display_tx_menu" (parameter_list) "(unsigned int ignored)" (() "(" (parameter_declaration) "unsigned int ignored" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "ignored" ()) ")" (;) ";" (comment) "/// view_address_show_main_net" (declaration) "void view_address_show_main_net(unsigned int unused);" (primitive_type) "void" (function_declarator) "view_address_show_main_net(unsigned int unused)" (identifier) "view_address_show_main_net" (parameter_list) "(unsigned int unused)" (() "(" (parameter_declaration) "unsigned int unused" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "unused" ()) ")" (;) ";" (comment) "/// view_address_show_test_net" (declaration) "void view_address_show_test_net(unsigned int unused);" (primitive_type) "void" (function_declarator) "view_address_show_test_net(unsigned int unused)" (identifier) "view_address_show_test_net" (parameter_list) "(unsigned int unused)" (() "(" (parameter_declaration) "unsigned int unused" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "unused" ()) ")" (;) ";" (comment) "/// view_tx_show" (declaration) "void view_tx_show(unsigned int start_page);" (primitive_type) "void" (function_declarator) "view_tx_show(unsigned int start_page)" (identifier) "view_tx_show" (parameter_list) "(unsigned int start_page)" (() "(" (parameter_declaration) "unsigned int start_page" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "start_page" ()) ")" (;) ";" (comment) "/// view_sign_transaction" (declaration) "void view_sign_transaction(unsigned int start_page);" (primitive_type) "void" (function_declarator) "view_sign_transaction(unsigned int start_page)" (identifier) "view_sign_transaction" (parameter_list) "(unsigned int start_page)" (() "(" (parameter_declaration) "unsigned int start_page" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "start_page" ()) ")" (;) ";" (comment) "/// view_addr_show" (declaration) "void view_addr_show(unsigned int start_page);" (primitive_type) "void" (function_declarator) "view_addr_show(unsigned int start_page)" (identifier) "view_addr_show" (parameter_list) "(unsigned int start_page)" (() "(" (parameter_declaration) "unsigned int start_page" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "start_page" ()) ")" (;) ";" (comment) "/// view_addr_confirm" (declaration) "void view_addr_confirm(unsigned int start_page);" (primitive_type) "void" (function_declarator) "view_addr_confirm(unsigned int start_page)" (identifier) "view_addr_confirm" (parameter_list) "(unsigned int start_page)" (() "(" (parameter_declaration) "unsigned int start_page" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "start_page" ()) ")" (;) ";" (comment) "/// view_display_signing_success" (declaration) "void view_display_signing_success();" (primitive_type) "void" (function_declarator) "view_display_signing_success()" (identifier) "view_display_signing_success" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/// view_display_signing_error" (declaration) "void view_display_signing_error();" (primitive_type) "void" (function_declarator) "view_display_signing_error()" (identifier) "view_display_signing_error" (parameter_list) "()" (() "(" ()) ")" (;) ";"
221
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 34.45, "nodes": 147, "errors": 0, "source_hash": "c5994ae797bbc6a7de0a2128b57e9fe6a878e6b06d22ff8afb3329003ccbd597", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 3, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"os.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"os.h\"", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 15}}, {"id": 9, "type": "preproc_include", "text": "#include \"cx.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"cx.h\"", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 15}}, {"id": 12, "type": "preproc_include", "text": "#include \"view_common.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"view_common.h\"", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 24}}, {"id": 15, "type": "preproc_include", "text": "#include \"view_expl.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"view_expl.h\"", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include \"view_conf.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"view_conf.h\"", "parent": 18, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 22}}, {"id": 21, "type": "enum_specifier", "text": "enum UI_STATE {\n UI_IDLE,\n UI_TRANSACTION\n}", "parent": null, "children": [22, 23, 24], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 22, "type": "enum", "text": "enum", "parent": 21, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 23, "type": "type_identifier", "text": "UI_STATE", "parent": 21, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 13}}, {"id": 24, "type": "enumerator_list", "text": "{\n UI_IDLE,\n UI_TRANSACTION\n}", "parent": 21, "children": [25, 27], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 28, "column": 1}}, {"id": 25, "type": "enumerator", "text": "UI_IDLE", "parent": 24, "children": [26], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 26, "type": "identifier", "text": "UI_IDLE", "parent": 25, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 27, "type": "enumerator", "text": "UI_TRANSACTION", "parent": 24, "children": [28], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 18}}, {"id": 28, "type": "identifier", "text": "UI_TRANSACTION", "parent": 27, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 18}}, {"id": 29, "type": "declaration", "text": "extern enum UI_STATE view_uiState;", "parent": null, "children": [30, 32, 35], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 34}}, {"id": 30, "type": "storage_class_specifier", "text": "extern", "parent": 29, "children": [31], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 31, "type": "extern", "text": "extern", "parent": 30, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 32, "type": "enum_specifier", "text": "enum UI_STATE", "parent": 29, "children": [33, 34], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 20}}, {"id": 33, "type": "enum", "text": "enum", "parent": 32, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 11}}, {"id": 34, "type": "type_identifier", "text": "UI_STATE", "parent": 32, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 20}}, {"id": 35, "type": "identifier", "text": "view_uiState", "parent": 29, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 33}}, {"id": 36, "type": "declaration", "text": "void view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject);", "parent": null, "children": [37, 38], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 60}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 38, "type": "function_declarator", "text": "view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject)", "parent": 36, "children": [39, 40], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 36, "column": 59}}, {"id": 39, "type": "identifier", "text": "view_set_handlers", "parent": 38, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 22}}, {"id": 40, "type": "parameter_list", "text": "(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject)", "parent": 38, "children": [41, 44, 47], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 36, "column": 59}}, {"id": 41, "type": "parameter_declaration", "text": "viewctl_delegate_getData func_getData", "parent": 40, "children": [42, 43], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 60}}, {"id": 42, "type": "type_identifier", "text": "viewctl_delegate_getData", "parent": 41, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 47}}, {"id": 43, "type": "identifier", "text": "func_getData", "parent": 41, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 60}}, {"id": 44, "type": "parameter_declaration", "text": "viewctl_delegate_accept func_accept", "parent": 40, "children": [45, 46], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 58}}, {"id": 45, "type": "type_identifier", "text": "viewctl_delegate_accept", "parent": 44, "children": [], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 46}}, {"id": 46, "type": "identifier", "text": "func_accept", "parent": 44, "children": [], "start_point": {"row": 35, "column": 47}, "end_point": {"row": 35, "column": 58}}, {"id": 47, "type": "parameter_declaration", "text": "viewctl_delegate_reject func_reject", "parent": 40, "children": [48, 49], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 58}}, {"id": 48, "type": "type_identifier", "text": "viewctl_delegate_reject", "parent": 47, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 46}}, {"id": 49, "type": "identifier", "text": "func_reject", "parent": 47, "children": [], "start_point": {"row": 36, "column": 47}, "end_point": {"row": 36, "column": 58}}, {"id": 50, "type": "declaration", "text": "void view_init(void);", "parent": null, "children": [51, 52], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 21}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 52, "type": "function_declarator", "text": "view_init(void)", "parent": 50, "children": [53, 54], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 20}}, {"id": 53, "type": "identifier", "text": "view_init", "parent": 52, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 14}}, {"id": 54, "type": "parameter_list", "text": "(void)", "parent": 52, "children": [55], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 20}}, {"id": 55, "type": "parameter_declaration", "text": "void", "parent": 54, "children": [56], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 19}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 19}}, {"id": 57, "type": "declaration", "text": "void view_idle(unsigned int ignored);", "parent": null, "children": [58, 59], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 37}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 4}}, {"id": 59, "type": "function_declarator", "text": "view_idle(unsigned int ignored)", "parent": 57, "children": [60, 61], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 36}}, {"id": 60, "type": "identifier", "text": "view_idle", "parent": 59, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 14}}, {"id": 61, "type": "parameter_list", "text": "(unsigned int ignored)", "parent": 59, "children": [62], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 36}}, {"id": 62, "type": "parameter_declaration", "text": "unsigned int ignored", "parent": 61, "children": [63, 66], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 35}}, {"id": 63, "type": "sized_type_specifier", "text": "unsigned int", "parent": 62, "children": [64, 65], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 27}}, {"id": 64, "type": "unsigned", "text": "unsigned", "parent": 63, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 23}}, {"id": 65, "type": "primitive_type", "text": "int", "parent": 63, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 27}}, {"id": 66, "type": "identifier", "text": "ignored", "parent": 62, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 35}}, {"id": 67, "type": "declaration", "text": "void view_display_tx_menu(unsigned int ignored);", "parent": null, "children": [68, 69], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 48}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 69, "type": "function_declarator", "text": "view_display_tx_menu(unsigned int ignored)", "parent": 67, "children": [70, 71], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 47}}, {"id": 70, "type": "identifier", "text": "view_display_tx_menu", "parent": 69, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 25}}, {"id": 71, "type": "parameter_list", "text": "(unsigned int ignored)", "parent": 69, "children": [72], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 47}}, {"id": 72, "type": "parameter_declaration", "text": "unsigned int ignored", "parent": 71, "children": [73, 76], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 46}}, {"id": 73, "type": "sized_type_specifier", "text": "unsigned int", "parent": 72, "children": [74, 75], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 38}}, {"id": 74, "type": "unsigned", "text": "unsigned", "parent": 73, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 34}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 46, "column": 35}, "end_point": {"row": 46, "column": 38}}, {"id": 76, "type": "identifier", "text": "ignored", "parent": 72, "children": [], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 46}}, {"id": 77, "type": "declaration", "text": "void view_address_show_main_net(unsigned int unused);", "parent": null, "children": [78, 79], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 53}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 4}}, {"id": 79, "type": "function_declarator", "text": "view_address_show_main_net(unsigned int unused)", "parent": 77, "children": [80, 81], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 52}}, {"id": 80, "type": "identifier", "text": "view_address_show_main_net", "parent": 79, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 31}}, {"id": 81, "type": "parameter_list", "text": "(unsigned int unused)", "parent": 79, "children": [82], "start_point": {"row": 49, "column": 31}, "end_point": {"row": 49, "column": 52}}, {"id": 82, "type": "parameter_declaration", "text": "unsigned int unused", "parent": 81, "children": [83, 86], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 51}}, {"id": 83, "type": "sized_type_specifier", "text": "unsigned int", "parent": 82, "children": [84, 85], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 44}}, {"id": 84, "type": "unsigned", "text": "unsigned", "parent": 83, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 40}}, {"id": 85, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 44}}, {"id": 86, "type": "identifier", "text": "unused", "parent": 82, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 51}}, {"id": 87, "type": "declaration", "text": "void view_address_show_test_net(unsigned int unused);", "parent": null, "children": [88, 89], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 53}}, {"id": 88, "type": "primitive_type", "text": "void", "parent": 87, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 89, "type": "function_declarator", "text": "view_address_show_test_net(unsigned int unused)", "parent": 87, "children": [90, 91], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 52}}, {"id": 90, "type": "identifier", "text": "view_address_show_test_net", "parent": 89, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 31}}, {"id": 91, "type": "parameter_list", "text": "(unsigned int unused)", "parent": 89, "children": [92], "start_point": {"row": 52, "column": 31}, "end_point": {"row": 52, "column": 52}}, {"id": 92, "type": "parameter_declaration", "text": "unsigned int unused", "parent": 91, "children": [93, 96], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 51}}, {"id": 93, "type": "sized_type_specifier", "text": "unsigned int", "parent": 92, "children": [94, 95], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 44}}, {"id": 94, "type": "unsigned", "text": "unsigned", "parent": 93, "children": [], "start_point": {"row": 52, "column": 32}, "end_point": {"row": 52, "column": 40}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 93, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 44}}, {"id": 96, "type": "identifier", "text": "unused", "parent": 92, "children": [], "start_point": {"row": 52, "column": 45}, "end_point": {"row": 52, "column": 51}}, {"id": 97, "type": "declaration", "text": "void view_tx_show(unsigned int start_page);", "parent": null, "children": [98, 99], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 43}}, {"id": 98, "type": "primitive_type", "text": "void", "parent": 97, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 99, "type": "function_declarator", "text": "view_tx_show(unsigned int start_page)", "parent": 97, "children": [100, 101], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 42}}, {"id": 100, "type": "identifier", "text": "view_tx_show", "parent": 99, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 17}}, {"id": 101, "type": "parameter_list", "text": "(unsigned int start_page)", "parent": 99, "children": [102], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 42}}, {"id": 102, "type": "parameter_declaration", "text": "unsigned int start_page", "parent": 101, "children": [103, 106], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 41}}, {"id": 103, "type": "sized_type_specifier", "text": "unsigned int", "parent": 102, "children": [104, 105], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 30}}, {"id": 104, "type": "unsigned", "text": "unsigned", "parent": 103, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 26}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 30}}, {"id": 106, "type": "identifier", "text": "start_page", "parent": 102, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 41}}, {"id": 107, "type": "declaration", "text": "void view_sign_transaction(unsigned int start_page);", "parent": null, "children": [108, 109], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 52}}, {"id": 108, "type": "primitive_type", "text": "void", "parent": 107, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 109, "type": "function_declarator", "text": "view_sign_transaction(unsigned int start_page)", "parent": 107, "children": [110, 111], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 51}}, {"id": 110, "type": "identifier", "text": "view_sign_transaction", "parent": 109, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 26}}, {"id": 111, "type": "parameter_list", "text": "(unsigned int start_page)", "parent": 109, "children": [112], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 51}}, {"id": 112, "type": "parameter_declaration", "text": "unsigned int start_page", "parent": 111, "children": [113, 116], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 50}}, {"id": 113, "type": "sized_type_specifier", "text": "unsigned int", "parent": 112, "children": [114, 115], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 39}}, {"id": 114, "type": "unsigned", "text": "unsigned", "parent": 113, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 35}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 39}}, {"id": 116, "type": "identifier", "text": "start_page", "parent": 112, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 50}}, {"id": 117, "type": "declaration", "text": "void view_addr_show(unsigned int start_page);", "parent": null, "children": [118, 119], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 45}}, {"id": 118, "type": "primitive_type", "text": "void", "parent": 117, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 4}}, {"id": 119, "type": "function_declarator", "text": "view_addr_show(unsigned int start_page)", "parent": 117, "children": [120, 121], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 44}}, {"id": 120, "type": "identifier", "text": "view_addr_show", "parent": 119, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 19}}, {"id": 121, "type": "parameter_list", "text": "(unsigned int start_page)", "parent": 119, "children": [122], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 44}}, {"id": 122, "type": "parameter_declaration", "text": "unsigned int start_page", "parent": 121, "children": [123, 126], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 43}}, {"id": 123, "type": "sized_type_specifier", "text": "unsigned int", "parent": 122, "children": [124, 125], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 32}}, {"id": 124, "type": "unsigned", "text": "unsigned", "parent": 123, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 28}}, {"id": 125, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 32}}, {"id": 126, "type": "identifier", "text": "start_page", "parent": 122, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 43}}, {"id": 127, "type": "declaration", "text": "void view_addr_confirm(unsigned int start_page);", "parent": null, "children": [128, 129], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 48}}, {"id": 128, "type": "primitive_type", "text": "void", "parent": 127, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 129, "type": "function_declarator", "text": "view_addr_confirm(unsigned int start_page)", "parent": 127, "children": [130, 131], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 47}}, {"id": 130, "type": "identifier", "text": "view_addr_confirm", "parent": 129, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 22}}, {"id": 131, "type": "parameter_list", "text": "(unsigned int start_page)", "parent": 129, "children": [132], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 47}}, {"id": 132, "type": "parameter_declaration", "text": "unsigned int start_page", "parent": 131, "children": [133, 136], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 46}}, {"id": 133, "type": "sized_type_specifier", "text": "unsigned int", "parent": 132, "children": [134, 135], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 35}}, {"id": 134, "type": "unsigned", "text": "unsigned", "parent": 133, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 31}}, {"id": 135, "type": "primitive_type", "text": "int", "parent": 133, "children": [], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 35}}, {"id": 136, "type": "identifier", "text": "start_page", "parent": 132, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 46}}, {"id": 137, "type": "declaration", "text": "void view_display_signing_success();", "parent": null, "children": [138, 139], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 36}}, {"id": 138, "type": "primitive_type", "text": "void", "parent": 137, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 4}}, {"id": 139, "type": "function_declarator", "text": "view_display_signing_success()", "parent": 137, "children": [140, 141], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 35}}, {"id": 140, "type": "identifier", "text": "view_display_signing_success", "parent": 139, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 33}}, {"id": 141, "type": "parameter_list", "text": "()", "parent": 139, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 35}}, {"id": 142, "type": "declaration", "text": "void view_display_signing_error();", "parent": null, "children": [143, 144], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 34}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 142, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 4}}, {"id": 144, "type": "function_declarator", "text": "view_display_signing_error()", "parent": 142, "children": [145, 146], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 33}}, {"id": 145, "type": "identifier", "text": "view_display_signing_error", "parent": 144, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 31}}, {"id": 146, "type": "parameter_list", "text": "()", "parent": 144, "children": [], "start_point": {"row": 70, "column": 31}, "end_point": {"row": 70, "column": 33}}]}, "node_categories": {"declarations": {"functions": [38, 52, 59, 69, 79, 89, 99, 109, 119, 129, 139, 144], "variables": [29, 36, 41, 44, 47, 50, 55, 57, 62, 67, 72, 77, 82, 87, 92, 97, 102, 107, 112, 117, 122, 127, 132, 137, 142], "classes": [30], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": [21, 22, 24, 25, 27, 32, 33]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [23, 26, 28, 34, 35, 39, 42, 43, 45, 46, 48, 49, 53, 60, 63, 66, 70, 73, 76, 80, 83, 86, 90, 93, 96, 100, 103, 106, 110, 113, 116, 120, 123, 126, 130, 133, 136, 140, 145], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_acc"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "view_init(void)"}, {"node_id": 59, "universal_type": "function", "name": "ignored)", "text_snippet": "view_idle(unsigned int ignored)"}, {"node_id": 69, "universal_type": "function", "name": "ignored)", "text_snippet": "view_display_tx_menu(unsigned int ignored)"}, {"node_id": 79, "universal_type": "function", "name": "unused)", "text_snippet": "view_address_show_main_net(unsigned int unused)"}, {"node_id": 89, "universal_type": "function", "name": "unused)", "text_snippet": "view_address_show_test_net(unsigned int unused)"}, {"node_id": 99, "universal_type": "function", "name": "start_page)", "text_snippet": "view_tx_show(unsigned int start_page)"}, {"node_id": 109, "universal_type": "function", "name": "start_page)", "text_snippet": "view_sign_transaction(unsigned int start_page)"}, {"node_id": 119, "universal_type": "function", "name": "start_page)", "text_snippet": "view_addr_show(unsigned int start_page)"}, {"node_id": 129, "universal_type": "function", "name": "start_page)", "text_snippet": "view_addr_confirm(unsigned int start_page)"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "view_display_signing_success()"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "view_display_signing_error()"}], "class_declarations": [{"node_id": 30, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 3, "text": "#include <stdbool.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"os.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"cx.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"view_common.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"view_expl.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"view_conf.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "/*******************************************************************************\n* (c) 2016 Ledger\n* (c) 2018 ZondaX GmbH\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#pragma once\n\n#include <stdbool.h>\n#include \"os.h\"\n#include \"cx.h\"\n#include \"view_common.h\"\n#include \"view_expl.h\"\n#include \"view_conf.h\"\n\nenum UI_STATE {\n UI_IDLE,\n UI_TRANSACTION\n};\n\nextern enum UI_STATE view_uiState;\n\n//------ Event handlers\n/// view_set_handlers\nvoid view_set_handlers(viewctl_delegate_getData func_getData,\n viewctl_delegate_accept func_accept,\n viewctl_delegate_reject func_reject);\n\n//------ Common functions\n/// view_init\nvoid view_init(void);\n\n/// view_idle\nvoid view_idle(unsigned int ignored);\n\n/// view_display_tx_menu\nvoid view_display_tx_menu(unsigned int ignored);\n\n/// view_address_show_main_net\nvoid view_address_show_main_net(unsigned int unused);\n\n/// view_address_show_test_net\nvoid view_address_show_test_net(unsigned int unused);\n\n/// view_tx_show\nvoid view_tx_show(unsigned int start_page);\n\n/// view_sign_transaction\nvoid view_sign_transaction(unsigned int start_page);\n\n/// view_addr_show\nvoid view_addr_show(unsigned int start_page);\n\n/// view_addr_confirm\nvoid view_addr_confirm(unsigned int start_page);\n\n/// view_display_signing_success\nvoid view_display_signing_success();\n\n/// view_display_signing_error\nvoid view_display_signing_error();\n"}
80,733
c
#include "create_test_suite.h" START_TEST_SUITE("Test that test is test") TEST("Test that 1+1 = 2",(Assert *assert){ Assert_assertTrue(assert,1 + 1 == 2); }); TEST("Test that 2 - 1 = 0",(Assert *assert){ Assert_assertTrue(assert,2 - 1 == 1); }); END_TEST_SUITE
28.89
9
(translation_unit) "#include "create_test_suite.h"\n\nSTART_TEST_SUITE("Test that test is test")\n\nTEST("Test that 1+1 = 2",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n});\n\nTEST("Test that 2 - 1 = 0",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n});\n\nEND_TEST_SUITE\n" (preproc_include) "#include "create_test_suite.h"\n" (#include) "#include" (string_literal) ""create_test_suite.h"" (") """ (string_content) "create_test_suite.h" (") """ (expression_statement) "START_TEST_SUITE("Test that test is test")" (call_expression) "START_TEST_SUITE("Test that test is test")" (identifier) "START_TEST_SUITE" (argument_list) "("Test that test is test")" (() "(" (string_literal) ""Test that test is test"" (") """ (string_content) "Test that test is test" (") """ ()) ")" (;) "" (expression_statement) "TEST("Test that 1+1 = 2",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n});" (call_expression) "TEST("Test that 1+1 = 2",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n})" (identifier) "TEST" (argument_list) "("Test that 1+1 = 2",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n})" (() "(" (string_literal) ""Test that 1+1 = 2"" (") """ (string_content) "Test that 1+1 = 2" (") """ (,) "," (ERROR) "(Assert *assert)" (parenthesized_expression) "(Assert *assert)" (() "(" (binary_expression) "Assert *assert" (identifier) "Assert" (*) "*" (identifier) "assert" ()) ")" (compound_statement) "{\n Assert_assertTrue(assert,1 + 1 == 2);\n}" ({) "{" (expression_statement) "Assert_assertTrue(assert,1 + 1 == 2);" (call_expression) "Assert_assertTrue(assert,1 + 1 == 2)" (identifier) "Assert_assertTrue" (argument_list) "(assert,1 + 1 == 2)" (() "(" (identifier) "assert" (,) "," (binary_expression) "1 + 1 == 2" (binary_expression) "1 + 1" (number_literal) "1" (+) "+" (number_literal) "1" (==) "==" (number_literal) "2" ()) ")" (;) ";" (}) "}" ()) ")" (;) ";" (expression_statement) "TEST("Test that 2 - 1 = 0",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n});" (call_expression) "TEST("Test that 2 - 1 = 0",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n})" (identifier) "TEST" (argument_list) "("Test that 2 - 1 = 0",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n})" (() "(" (string_literal) ""Test that 2 - 1 = 0"" (") """ (string_content) "Test that 2 - 1 = 0" (") """ (,) "," (ERROR) "(Assert *assert)" (parenthesized_expression) "(Assert *assert)" (() "(" (binary_expression) "Assert *assert" (identifier) "Assert" (*) "*" (identifier) "assert" ()) ")" (compound_statement) "{\n Assert_assertTrue(assert,2 - 1 == 1);\n}" ({) "{" (expression_statement) "Assert_assertTrue(assert,2 - 1 == 1);" (call_expression) "Assert_assertTrue(assert,2 - 1 == 1)" (identifier) "Assert_assertTrue" (argument_list) "(assert,2 - 1 == 1)" (() "(" (identifier) "assert" (,) "," (binary_expression) "2 - 1 == 1" (binary_expression) "2 - 1" (number_literal) "2" (-) "-" (number_literal) "1" (==) "==" (number_literal) "1" ()) ")" (;) ";" (}) "}" ()) ")" (;) ";" (expression_statement) "END_TEST_SUITE" (identifier) "END_TEST_SUITE" (;) ""
99
2
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 28.89, "nodes": 50, "errors": 0, "source_hash": "d086d8aab9a510fda0f9cf8a16accef258462454133a0628000308d90ed975d4", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"create_test_suite.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": "\"create_test_suite.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 30}}, {"id": 3, "type": "call_expression", "text": "START_TEST_SUITE(\"Test that test is test\")", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 42}}, {"id": 4, "type": "identifier", "text": "START_TEST_SUITE", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 16}}, {"id": 5, "type": "argument_list", "text": "(\"Test that test is test\")", "parent": 3, "children": [6], "start_point": {"row": 2, "column": 16}, "end_point": {"row": 2, "column": 42}}, {"id": 6, "type": "string_literal", "text": "\"Test that test is test\"", "parent": 5, "children": [], "start_point": {"row": 2, "column": 17}, "end_point": {"row": 2, "column": 41}}, {"id": 7, "type": "call_expression", "text": "TEST(\"Test that 1+1 = 2\",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n})", "parent": null, "children": [8, 9], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 6, "column": 2}}, {"id": 8, "type": "identifier", "text": "TEST", "parent": 7, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 9, "type": "argument_list", "text": "(\"Test that 1+1 = 2\",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n})", "parent": 7, "children": [10, 11], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 6, "column": 2}}, {"id": 10, "type": "string_literal", "text": "\"Test that 1+1 = 2\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 24}}, {"id": 11, "type": "ERROR", "text": "(Assert *assert)", "parent": 9, "children": [12], "start_point": {"row": 4, "column": 25}, "end_point": {"row": 4, "column": 41}}, {"id": 12, "type": "parenthesized_expression", "text": "(Assert *assert)", "parent": 11, "children": [13], "start_point": {"row": 4, "column": 25}, "end_point": {"row": 4, "column": 41}}, {"id": 13, "type": "binary_expression", "text": "Assert *assert", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 40}}, {"id": 14, "type": "identifier", "text": "Assert", "parent": 13, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 32}}, {"id": 15, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 4, "column": 33}, "end_point": {"row": 4, "column": 34}}, {"id": 16, "type": "identifier", "text": "assert", "parent": 13, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 40}}, {"id": 17, "type": "call_expression", "text": "Assert_assertTrue(assert,1 + 1 == 2)", "parent": 9, "children": [18, 19], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 40}}, {"id": 18, "type": "identifier", "text": "Assert_assertTrue", "parent": 17, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 21}}, {"id": 19, "type": "argument_list", "text": "(assert,1 + 1 == 2)", "parent": 17, "children": [20, 21], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 40}}, {"id": 20, "type": "identifier", "text": "assert", "parent": 19, "children": [], "start_point": {"row": 5, "column": 22}, "end_point": {"row": 5, "column": 28}}, {"id": 21, "type": "binary_expression", "text": "1 + 1 == 2", "parent": 19, "children": [22, 26, 27], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 39}}, {"id": 22, "type": "binary_expression", "text": "1 + 1", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 34}}, {"id": 23, "type": "number_literal", "text": "1", "parent": 22, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 30}}, {"id": 24, "type": "+", "text": "+", "parent": 22, "children": [], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 32}}, {"id": 25, "type": "number_literal", "text": "1", "parent": 22, "children": [], "start_point": {"row": 5, "column": 33}, "end_point": {"row": 5, "column": 34}}, {"id": 26, "type": "==", "text": "==", "parent": 21, "children": [], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 5, "column": 37}}, {"id": 27, "type": "number_literal", "text": "2", "parent": 21, "children": [], "start_point": {"row": 5, "column": 38}, "end_point": {"row": 5, "column": 39}}, {"id": 28, "type": "call_expression", "text": "TEST(\"Test that 2 - 1 = 0\",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n})", "parent": null, "children": [29, 30], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 10, "column": 2}}, {"id": 29, "type": "identifier", "text": "TEST", "parent": 28, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 30, "type": "argument_list", "text": "(\"Test that 2 - 1 = 0\",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n})", "parent": 28, "children": [31, 32], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 10, "column": 2}}, {"id": 31, "type": "string_literal", "text": "\"Test that 2 - 1 = 0\"", "parent": 30, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 26}}, {"id": 32, "type": "ERROR", "text": "(Assert *assert)", "parent": 30, "children": [33], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 43}}, {"id": 33, "type": "parenthesized_expression", "text": "(Assert *assert)", "parent": 32, "children": [34], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 43}}, {"id": 34, "type": "binary_expression", "text": "Assert *assert", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 42}}, {"id": 35, "type": "identifier", "text": "Assert", "parent": 34, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 34}}, {"id": 36, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 36}}, {"id": 37, "type": "identifier", "text": "assert", "parent": 34, "children": [], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 42}}, {"id": 38, "type": "call_expression", "text": "Assert_assertTrue(assert,2 - 1 == 1)", "parent": 30, "children": [39, 40], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 40}}, {"id": 39, "type": "identifier", "text": "Assert_assertTrue", "parent": 38, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 21}}, {"id": 40, "type": "argument_list", "text": "(assert,2 - 1 == 1)", "parent": 38, "children": [41, 42], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 40}}, {"id": 41, "type": "identifier", "text": "assert", "parent": 40, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 28}}, {"id": 42, "type": "binary_expression", "text": "2 - 1 == 1", "parent": 40, "children": [43, 47, 48], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 39}}, {"id": 43, "type": "binary_expression", "text": "2 - 1", "parent": 42, "children": [44, 45, 46], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 34}}, {"id": 44, "type": "number_literal", "text": "2", "parent": 43, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 30}}, {"id": 45, "type": "-", "text": "-", "parent": 43, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 32}}, {"id": 46, "type": "number_literal", "text": "1", "parent": 43, "children": [], "start_point": {"row": 9, "column": 33}, "end_point": {"row": 9, "column": 34}}, {"id": 47, "type": "==", "text": "==", "parent": 42, "children": [], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 37}}, {"id": 48, "type": "number_literal", "text": "1", "parent": 42, "children": [], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 39}}, {"id": 49, "type": "identifier", "text": "END_TEST_SUITE", "parent": null, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 14}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [3, 7, 12, 13, 17, 21, 22, 28, 33, 34, 38, 42, 43], "assignments": [], "loops": [], "conditionals": [4, 8, 14, 16, 18, 20, 29, 35, 37, 39, 41, 49], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 6, 10, 23, 25, 27, 31, 44, 46, 48], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"create_test_suite.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"create_test_suite.h\"\n\nSTART_TEST_SUITE(\"Test that test is test\")\n\nTEST(\"Test that 1+1 = 2\",(Assert *assert){\n Assert_assertTrue(assert,1 + 1 == 2);\n});\n\nTEST(\"Test that 2 - 1 = 0\",(Assert *assert){\n Assert_assertTrue(assert,2 - 1 == 1);\n});\n\nEND_TEST_SUITE\n"}
80,734
c
// // airADViewDelegate.h // airADKit // // Created by <NAME> on 12/26/11. // Copyright (c) 2011 MitianTech. All rights reserved. // #import <Foundation/Foundation.h> @class airADView; @protocol airADViewDelegate <NSObject> @optional #pragma mark Ad Delegate // 当接收到一个广告的时候,会发送该请求。广告在后台会自动刷新.以此作为一次成功请求。 - (void)airADDidReceiveAD:(airADView*)view; //当遇到以下情况,会发送此请求: //1.IP地址非法.在一些无法访问airAD广告的地区,会返回此信息. //2.网络无相应. //3.传输参数非法,比如,非正确的App_ID. - (void)airADView:(airADView *)view didFailToReceiveAdWithError:(NSError *)error; //当Banner显示完毕时,发送此请求.以此作为广告完成一次有效展示. - (void)airADImpressionDidFinish:(airADView *)adView; //当广告完全载入完毕时,发送此请求.以此作为广告完成一次有效点击. - (void)airADClickDidFinish:(airADView *)adView; #pragma mark ContentShow Delegate //广告点击后,展示对应触发事件 - (void)airADWillShowContent:(airADView *)adView; - (void)airADWillHideContent:(airADView *)adView; - (void)airADDidHideContent:(airADView *)adView; @end
30.24
29
(translation_unit) "//\n// airADViewDelegate.h\n// airADKit\n//\n// Created by <NAME> on 12/26/11.\n// Copyright (c) 2011 MitianTech. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class airADView;\n\n@protocol airADViewDelegate <NSObject>\n\n@optional\n#pragma mark Ad Delegate\n\n// 当接收到一个广告的时候,会发送该请求。广告在后台会自动刷新.以此作为一次成功请求。\n- (void)airADDidReceiveAD:(airADView*)view;\n\n//当遇到以下情况,会发送此请求:\n//1.IP地址非法.在一些无法访问airAD广告的地区,会返回此信息.\n//2.网络无相应.\n//3.传输参数非法,比如,非正确的App_ID.\n- (void)airADView:(airADView *)view didFailToReceiveAdWithError:(NSError *)error;\n\n//当Banner显示完毕时,发送此请求.以此作为广告完成一次有效展示.\n- (void)airADImpressionDidFinish:(airADView *)adView;\n\n//当广告完全载入完毕时,发送此请求.以此作为广告完成一次有效点击.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pragma mark ContentShow Delegate\n\n//广告点击后,展示对应触发事件\n- (void)airADWillShowContent:(airADView *)adView;\n- (void)airADWillHideContent:(airADView *)adView;\n- (void)airADDidHideContent:(airADView *)adView;\n\n@end\n" (comment) "//" (comment) "// airADViewDelegate.h" (comment) "// airADKit" (comment) "//" (comment) "// Created by <NAME> on 12/26/11." (comment) "// Copyright (c) 2011 MitianTech. All rights reserved." (comment) "//" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (ERROR) "@" (ERROR) "@" (declaration) "class airADView;" (type_identifier) "class" (identifier) "airADView" (;) ";" (ERROR) "@protocol airADViewDelegate <NSObject>\n\n@optional" (ERROR) "@" (type_identifier) "protocol" (identifier) "airADViewDelegate" (<) "<" (identifier) "NSObject" (>) ">" (ERROR) "@" (identifier) "optional" (preproc_call) "#pragma mark Ad Delegate\n" (preproc_directive) "#pragma" (preproc_arg) "mark Ad Delegate" (comment) "// 当接收到一个广告的时候,会发送该请求。广告在后台会自动刷新.以此作为一次成功请求。\n- (void)airADDidReceiveAD:(airADView*)view;\n\n//当遇到以下情况,会发送此请求:\n//1.IP地址非法.在一些无法" (expression_statement) "问airAD广告的地区,会返回此信息.\n//2.网络无相应.\n//3.传输参数非法,比" (update_expression) "问airAD广告的地区,会返回此信息.\n//2.网络无相应.\n//3.传输参数非法," (binary_expression) "问airAD广告的地区,会返回此信息.\n//2.网络无相应.\n//3.传输参数非法," (unary_expression) "问airAD广告的地区,会返回此信息.\n//2.网" (-) "问" (cast_expression) "irAD广告的地区,会返回此信息.\n//2.网" (() "i" (type_descriptor) "rAD广" (primitive_type) "rAD广" ()) "告" (identifier) "的地区,会返回此信息.\n//2.网" (ERROR) "络无相应.\n//3.传" (:) "络" (() "无" (identifier) "相应.\n//3.传" (*) "输" (ERROR) "参" ()) "参" (identifier) "数非法," (--) "" (;) "比" (comment) "非正确的App_ID.\n- (void)airADView:(airADView *)" (comment) "iew didFailToReceiveAdWithError:(NSError *)error;\n\n//当Banner显示完毕时,发送此请求.以此作为广告完成" (comment) "次有效展示.\n- (void)airAD" (comment) "mpressionDidFinish:(airADView *)adView;\n\n//当广告完全载" (expression_statement) "完毕时,发送此请求.以此作为广告完成一次有效点击.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#prag" (update_expression) "完毕时,发送此请求.以此作为广告完成一次有效点击.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pra" (binary_expression) "完毕时,发送此请求.以此作为广告完成一次有效点击.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pra" (binary_expression) "完毕时,发送此请求.以此作为广告完成一次有效点击.\n- (void)airADClickDidFinish:(airADVie" (unary_expression) "完毕时,发送此请求.以此作为广告完" (-) "完" (cast_expression) "时,发送此请求.以此作为广告完" (() "时" (type_descriptor) ",发送此" (primitive_type) ",发送此" ()) "请" (identifier) "求.以此作为广告完" (ERROR) "成一次有效点击.\n- " (:) "成" (() "一" (identifier) "次有效点击.\n- " (*) "v" (ERROR) "oid)a" ()) "o" (identifier) "id)a" (identifier) "rADClickDidFinish:(airADVie" (ERROR) "w *)adVie" (:) "w" (() " " (identifier) "*)adVie" (*) ";" (ERROR) "\n" ()) "\n" (identifier) "\n#pra" (--) "" (;) "g" (comment) " mark ContentShow Delegate\n\n//广告点击后,展示对应触发事件\n- (void)airADWillShowContent:(airADView *" (expression_statement) "adView;\n- (void)airADWillHideContent:(airADView *)adV" (update_expression) "adView;\n- (void)airADWillHideContent:(airADView *)ad" (binary_expression) "adView;\n- (void)airADWillHideContent:(airADView *)ad" (unary_expression) "adView;\n- (void)airADWillHideCon" (-) "a" (cast_expression) "View;\n- (void)airADWillHideCon" (() "V" (type_descriptor) "iew;" (primitive_type) "iew;" ()) "\n" (identifier) "- (void)airADWillHideCon" (ERROR) "tent:(airAD" (:) "t" (() "e" (identifier) "nt:(airAD" (*) "i" (ERROR) "e" ()) "e" (identifier) "w *)ad" (--) "" (;) "V" (comment) "w;\n- (void)airADDidHideContent:(airADView *)adView;\n\n@end\n" (expression_statement) "" (update_expression) "" (binary_expression) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (--) "" (;) "" (preproc_call) "" (preproc_directive) "" (preproc_arg) "" (comment) "" (ERROR) "" (binary_expression) "" (binary_expression) "" (binary_expression) "" (binary_expression) "" (binary_expression) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (ERROR) "" (;) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (ERROR) "" (;) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (primitive_type) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (identifier) ""
193
25
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 30.24, "nodes": 125, "errors": 0, "source_hash": "6a9b611d7540c6fe2e74fe78377bdda56f6979a48acdcda66b6309398f62d0f3", "categorized_nodes": 60}, "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": "@", "parent": null, "children": [4], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 5, "type": "declaration", "text": "class airADView;", "parent": null, "children": [6], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 17}}, {"id": 6, "type": "identifier", "text": "airADView", "parent": 5, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 16}}, {"id": 7, "type": "ERROR", "text": "@protocol airADViewDelegate <NSObject>\n\n@optional", "parent": null, "children": [8, 9, 10, 11, 12, 13, 14, 15], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 8, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 9, "type": "type_identifier", "text": "protocol", "parent": 7, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 10, "type": "identifier", "text": "airADViewDelegate", "parent": 7, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 27}}, {"id": 11, "type": "<", "text": "<", "parent": 7, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 29}}, {"id": 12, "type": "identifier", "text": "NSObject", "parent": 7, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 37}}, {"id": 13, "type": ">", "text": ">", "parent": 7, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 38}}, {"id": 14, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 15, "type": "identifier", "text": "optional", "parent": 7, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 16, "type": "preproc_call", "text": "#pragma mark Ad Delegate\n", "parent": null, "children": [17, 18], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 17, "type": "preproc_directive", "text": "#pragma", "parent": 16, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 18, "type": "preproc_arg", "text": "mark Ad Delegate", "parent": 16, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 24}}, {"id": 19, "type": "update_expression", "text": "\u95eeairAD\u5e7f\u544a\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51\u7edc\u65e0\u76f8\u5e94.\n//3.\u4f20\u8f93\u53c2\u6570\u975e\u6cd5,", "parent": null, "children": [20, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 42}}, {"id": 20, "type": "binary_expression", "text": "\u95eeairAD\u5e7f\u544a\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51\u7edc\u65e0\u76f8\u5e94.\n//3.\u4f20\u8f93\u53c2\u6570\u975e\u6cd5,", "parent": 19, "children": [21, 27, 29, 30, 31], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 42}}, {"id": 21, "type": "unary_expression", "text": "\u95eeairAD\u5e7f\u544a\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51", "parent": 20, "children": [22, 23], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 25}}, {"id": 22, "type": "-", "text": "\u95ee", "parent": 21, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 23, "type": "cast_expression", "text": "irAD\u5e7f\u544a\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51", "parent": 21, "children": [24, 26], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 25}}, {"id": 24, "type": "type_descriptor", "text": "rAD\u5e7f", "parent": 23, "children": [25], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 25, "type": "primitive_type", "text": "rAD\u5e7f", "parent": 24, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 26, "type": "identifier", "text": "\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51", "parent": 23, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 25}}, {"id": 27, "type": "ERROR", "text": "\u7edc\u65e0\u76f8\u5e94.\n//3.\u4f20", "parent": 20, "children": [28], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 36}}, {"id": 28, "type": "identifier", "text": "\u76f8\u5e94.\n//3.\u4f20", "parent": 27, "children": [], "start_point": {"row": 17, "column": 27}, "end_point": {"row": 17, "column": 36}}, {"id": 29, "type": "*", "text": "\u8f93", "parent": 20, "children": [], "start_point": {"row": 17, "column": 36}, "end_point": {"row": 17, "column": 37}}, {"id": 30, "type": "ERROR", "text": "\u53c2", "parent": 20, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 38}}, {"id": 31, "type": "identifier", "text": "\u6570\u975e\u6cd5,", "parent": 20, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 42}}, {"id": 32, "type": "--", "text": "", "parent": 19, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 42}}, {"id": 33, "type": "update_expression", "text": "\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c\u6210\u4e00\u6b21\u6709\u6548\u70b9\u51fb.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pra", "parent": null, "children": [34, 52], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 80}}, {"id": 34, "type": "binary_expression", "text": "\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c\u6210\u4e00\u6b21\u6709\u6548\u70b9\u51fb.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pra", "parent": 33, "children": [35, 48, 50, 51], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 80}}, {"id": 35, "type": "binary_expression", "text": "\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c\u6210\u4e00\u6b21\u6709\u6548\u70b9\u51fb.\n- (void)airADClickDidFinish:(airADVie", "parent": 34, "children": [36, 42, 44, 45, 47], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 63}}, {"id": 36, "type": "unary_expression", "text": "\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c", "parent": 35, "children": [37, 38], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 17}}, {"id": 37, "type": "-", "text": "\u5b8c", "parent": 36, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 38, "type": "cast_expression", "text": "\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c", "parent": 36, "children": [39, 41], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 17}}, {"id": 39, "type": "type_descriptor", "text": ",\u53d1\u9001\u6b64", "parent": 38, "children": [40], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 40, "type": "primitive_type", "text": ",\u53d1\u9001\u6b64", "parent": 39, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 41, "type": "identifier", "text": "\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c", "parent": 38, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 17}}, {"id": 42, "type": "ERROR", "text": "\u6210\u4e00\u6b21\u6709\u6548\u70b9\u51fb.\n- ", "parent": 35, "children": [43], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 28}}, {"id": 43, "type": "identifier", "text": "\u6b21\u6709\u6548\u70b9\u51fb.\n- ", "parent": 42, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 28}}, {"id": 44, "type": "*", "text": "v", "parent": 35, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 45, "type": "ERROR", "text": "oid)a", "parent": 35, "children": [46], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 35}}, {"id": 46, "type": "identifier", "text": "id)a", "parent": 45, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 35}}, {"id": 47, "type": "identifier", "text": "rADClickDidFinish:(airADVie", "parent": 35, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 63}}, {"id": 48, "type": "ERROR", "text": "w *)adVie", "parent": 34, "children": [49], "start_point": {"row": 23, "column": 63}, "end_point": {"row": 23, "column": 72}}, {"id": 49, "type": "identifier", "text": "*)adVie", "parent": 48, "children": [], "start_point": {"row": 23, "column": 65}, "end_point": {"row": 23, "column": 72}}, {"id": 50, "type": "ERROR", "text": "\n", "parent": 34, "children": [], "start_point": {"row": 23, "column": 74}, "end_point": {"row": 23, "column": 75}}, {"id": 51, "type": "identifier", "text": "\n#pra", "parent": 34, "children": [], "start_point": {"row": 23, "column": 75}, "end_point": {"row": 23, "column": 80}}, {"id": 52, "type": "--", "text": "", "parent": 33, "children": [], "start_point": {"row": 23, "column": 80}, "end_point": {"row": 23, "column": 80}}, {"id": 53, "type": "update_expression", "text": "adView;\n- (void)airADWillHideContent:(airADView *)ad", "parent": null, "children": [54, 66], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 52}}, {"id": 54, "type": "binary_expression", "text": "adView;\n- (void)airADWillHideContent:(airADView *)ad", "parent": 53, "children": [55, 61, 63, 64, 65], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 52}}, {"id": 55, "type": "unary_expression", "text": "adView;\n- (void)airADWillHideCon", "parent": 54, "children": [56, 57], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 32}}, {"id": 56, "type": "-", "text": "a", "parent": 55, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 57, "type": "cast_expression", "text": "View;\n- (void)airADWillHideCon", "parent": 55, "children": [58, 60], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 32}}, {"id": 58, "type": "type_descriptor", "text": "iew;", "parent": 57, "children": [59], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 59, "type": "primitive_type", "text": "iew;", "parent": 58, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 7}}, {"id": 60, "type": "identifier", "text": "- (void)airADWillHideCon", "parent": 57, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 32}}, {"id": 61, "type": "ERROR", "text": "tent:(airAD", "parent": 54, "children": [62], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 43}}, {"id": 62, "type": "identifier", "text": "nt:(airAD", "parent": 61, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 43}}, {"id": 63, "type": "*", "text": "i", "parent": 54, "children": [], "start_point": {"row": 26, "column": 44}, "end_point": {"row": 26, "column": 45}}, {"id": 64, "type": "ERROR", "text": "e", "parent": 54, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 46}}, {"id": 65, "type": "identifier", "text": "w *)ad", "parent": 54, "children": [], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 52}}, {"id": 66, "type": "--", "text": "", "parent": 53, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 52}}, {"id": 67, "type": "update_expression", "text": "", "parent": null, "children": [68, 80], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 47}}, {"id": 68, "type": "binary_expression", "text": "", "parent": 67, "children": [69, 75, 77, 78, 79], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 47}}, {"id": 69, "type": "unary_expression", "text": "", "parent": 68, "children": [70, 71], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 27}}, {"id": 70, "type": "-", "text": "", "parent": 69, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 71, "type": "cast_expression", "text": "", "parent": 69, "children": [72, 74], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 27}}, {"id": 72, "type": "type_descriptor", "text": "", "parent": 71, "children": [73], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 7}}, {"id": 73, "type": "primitive_type", "text": "", "parent": 72, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 7}}, {"id": 74, "type": "identifier", "text": "", "parent": 71, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 27}}, {"id": 75, "type": "ERROR", "text": "", "parent": 68, "children": [76], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 38}}, {"id": 76, "type": "identifier", "text": "", "parent": 75, "children": [], "start_point": {"row": 29, "column": 29}, "end_point": {"row": 29, "column": 38}}, {"id": 77, "type": "*", "text": "", "parent": 68, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 40}}, {"id": 78, "type": "ERROR", "text": "", "parent": 68, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 41}}, {"id": 79, "type": "identifier", "text": "", "parent": 68, "children": [], "start_point": {"row": 29, "column": 41}, "end_point": {"row": 29, "column": 47}}, {"id": 80, "type": "--", "text": "", "parent": 67, "children": [], "start_point": {"row": 29, "column": 47}, "end_point": {"row": 29, "column": 47}}, {"id": 81, "type": "preproc_call", "text": "", "parent": null, "children": [82, 83], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 82, "type": "preproc_directive", "text": "", "parent": 81, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 83, "type": "preproc_arg", "text": "", "parent": 81, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 33}}, {"id": 84, "type": "ERROR", "text": "", "parent": null, "children": [85, 123, 124], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 38, "column": 4}}, {"id": 85, "type": "binary_expression", "text": "", "parent": 84, "children": [86, 118, 120, 121, 122], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 47}}, {"id": 86, "type": "binary_expression", "text": "", "parent": 85, "children": [87, 112, 113, 114], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 27}}, {"id": 87, "type": "binary_expression", "text": "", "parent": 86, "children": [88, 107, 109, 110, 111], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 48}}, {"id": 88, "type": "binary_expression", "text": "", "parent": 87, "children": [89, 101, 102, 103], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 28}}, {"id": 89, "type": "binary_expression", "text": "", "parent": 88, "children": [90, 96, 98, 99, 100], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 48}}, {"id": 90, "type": "unary_expression", "text": "", "parent": 89, "children": [91, 92], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 28}}, {"id": 91, "type": "-", "text": "", "parent": 90, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 92, "type": "cast_expression", "text": "", "parent": 90, "children": [93, 95], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 28}}, {"id": 93, "type": "type_descriptor", "text": "", "parent": 92, "children": [94], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 94, "type": "primitive_type", "text": "", "parent": 93, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 7}}, {"id": 95, "type": "identifier", "text": "", "parent": 92, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 28}}, {"id": 96, "type": "ERROR", "text": "", "parent": 89, "children": [97], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 39}}, {"id": 97, "type": "identifier", "text": "", "parent": 96, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 39}}, {"id": 98, "type": "*", "text": "", "parent": 89, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 41}}, {"id": 99, "type": "ERROR", "text": "", "parent": 89, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 42}}, {"id": 100, "type": "identifier", "text": "", "parent": 89, "children": [], "start_point": {"row": 34, "column": 42}, "end_point": {"row": 34, "column": 48}}, {"id": 101, "type": "ERROR", "text": "", "parent": 88, "children": [], "start_point": {"row": 34, "column": 48}, "end_point": {"row": 34, "column": 49}}, {"id": 102, "type": "-", "text": "", "parent": 88, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 103, "type": "cast_expression", "text": "", "parent": 88, "children": [104, 106], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 28}}, {"id": 104, "type": "type_descriptor", "text": "", "parent": 103, "children": [105], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 105, "type": "primitive_type", "text": "", "parent": 104, "children": [], "start_point": {"row": 35, "column": 3}, "end_point": {"row": 35, "column": 7}}, {"id": 106, "type": "identifier", "text": "", "parent": 103, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 28}}, {"id": 107, "type": "ERROR", "text": "", "parent": 87, "children": [108], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 39}}, {"id": 108, "type": "identifier", "text": "", "parent": 107, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 39}}, {"id": 109, "type": "*", "text": "", "parent": 87, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 41}}, {"id": 110, "type": "ERROR", "text": "", "parent": 87, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 42}}, {"id": 111, "type": "identifier", "text": "", "parent": 87, "children": [], "start_point": {"row": 35, "column": 42}, "end_point": {"row": 35, "column": 48}}, {"id": 112, "type": "ERROR", "text": "", "parent": 86, "children": [], "start_point": {"row": 35, "column": 48}, "end_point": {"row": 35, "column": 49}}, {"id": 113, "type": "-", "text": "", "parent": 86, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 114, "type": "cast_expression", "text": "", "parent": 86, "children": [115, 117], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 27}}, {"id": 115, "type": "type_descriptor", "text": "", "parent": 114, "children": [116], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 116, "type": "primitive_type", "text": "", "parent": 115, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 117, "type": "identifier", "text": "", "parent": 114, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 27}}, {"id": 118, "type": "ERROR", "text": "", "parent": 85, "children": [119], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 38}}, {"id": 119, "type": "identifier", "text": "", "parent": 118, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 38}}, {"id": 120, "type": "*", "text": "", "parent": 85, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 40}}, {"id": 121, "type": "ERROR", "text": "", "parent": 85, "children": [], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 41}}, {"id": 122, "type": "identifier", "text": "", "parent": 85, "children": [], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 47}}, {"id": 123, "type": "ERROR", "text": "", "parent": 84, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 124, "type": "identifier", "text": "", "parent": 84, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 20, 21, 23, 33, 34, 35, 36, 38, 53, 54, 55, 57, 67, 68, 69, 71, 85, 86, 87, 88, 89, 90, 92, 103, 114], "assignments": [], "loops": [], "conditionals": [6, 9, 10, 12, 15, 26, 28, 31, 41, 43, 46, 47, 49, 51, 60, 62, 65, 74, 76, 79, 95, 97, 100, 106, 108, 111, 117, 119, 122, 124], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 16, 81], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// airADViewDelegate.h\n// airADKit\n//\n// Created by <NAME> on 12/26/11.\n// Copyright (c) 2011 MitianTech. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class airADView;\n\n@protocol airADViewDelegate <NSObject>\n\n@optional\n#pragma mark Ad Delegate\n\n// \u5f53\u63a5\u6536\u5230\u4e00\u4e2a\u5e7f\u544a\u7684\u65f6\u5019\uff0c\u4f1a\u53d1\u9001\u8be5\u8bf7\u6c42\u3002\u5e7f\u544a\u5728\u540e\u53f0\u4f1a\u81ea\u52a8\u5237\u65b0.\u4ee5\u6b64\u4f5c\u4e3a\u4e00\u6b21\u6210\u529f\u8bf7\u6c42\u3002\n- (void)airADDidReceiveAD:(airADView*)view;\n\n//\u5f53\u9047\u5230\u4ee5\u4e0b\u60c5\u51b5,\u4f1a\u53d1\u9001\u6b64\u8bf7\u6c42:\n//1.IP\u5730\u5740\u975e\u6cd5.\u5728\u4e00\u4e9b\u65e0\u6cd5\u8bbf\u95eeairAD\u5e7f\u544a\u7684\u5730\u533a,\u4f1a\u8fd4\u56de\u6b64\u4fe1\u606f.\n//2.\u7f51\u7edc\u65e0\u76f8\u5e94.\n//3.\u4f20\u8f93\u53c2\u6570\u975e\u6cd5,\u6bd4\u5982,\u975e\u6b63\u786e\u7684App_ID.\n- (void)airADView:(airADView *)view didFailToReceiveAdWithError:(NSError *)error;\n\n//\u5f53Banner\u663e\u793a\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c\u6210\u4e00\u6b21\u6709\u6548\u5c55\u793a.\n- (void)airADImpressionDidFinish:(airADView *)adView;\n\n//\u5f53\u5e7f\u544a\u5b8c\u5168\u8f7d\u5165\u5b8c\u6bd5\u65f6,\u53d1\u9001\u6b64\u8bf7\u6c42.\u4ee5\u6b64\u4f5c\u4e3a\u5e7f\u544a\u5b8c\u6210\u4e00\u6b21\u6709\u6548\u70b9\u51fb.\n- (void)airADClickDidFinish:(airADView *)adView;\n\n#pragma mark ContentShow Delegate\n\n//\u5e7f\u544a\u70b9\u51fb\u540e,\u5c55\u793a\u5bf9\u5e94\u89e6\u53d1\u4e8b\u4ef6\n- (void)airADWillShowContent:(airADView *)adView;\n- (void)airADWillHideContent:(airADView *)adView;\n- (void)airADDidHideContent:(airADView *)adView;\n\n@end\n"}
80,735
c
// // STViewController.h // StorageProject // // Created by JaneXzz on 03/09/2020. // Copyright (c) 2020 JaneXzz. All rights reserved. // @import UIKit; @interface STViewController : UIViewController @end
19.9
10
(translation_unit) "//\n// STViewController.h\n// StorageProject\n//\n// Created by JaneXzz on 03/09/2020.\n// Copyright (c) 2020 JaneXzz. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// STViewController.h" (comment) "// StorageProject" (comment) "//" (comment) "// Created by JaneXzz on 03/09/2020." (comment) "// Copyright (c) 2020 JaneXzz. All rights reserved." (comment) "//" (ERROR) "@" (ERROR) "@" (declaration) "import UIKit;" (type_identifier) "import" (identifier) "UIKit" (;) ";" (ERROR) "@interface STViewController : UIViewController\n\n@end" (ERROR) "@" (type_identifier) "interface" (identifier) "STViewController" (:) ":" (identifier) "UIViewController" (ERROR) "@" (identifier) "end"
22
5
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.9, "nodes": 10, "errors": 0, "source_hash": "2e14dc91d4d122a03510369e4b48ffd4cbeb861f44219255db818d888cf662c8", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 2, "type": "declaration", "text": "import UIKit;", "parent": null, "children": [3], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 14}}, {"id": 3, "type": "identifier", "text": "UIKit", "parent": 2, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 13}}, {"id": 4, "type": "ERROR", "text": "@interface STViewController : UIViewController\n\n@end", "parent": null, "children": [5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 5, "type": "ERROR", "text": "@", "parent": 4, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 6, "type": "type_identifier", "text": "interface", "parent": 4, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "identifier", "text": "STViewController", "parent": 4, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 27}}, {"id": 8, "type": "identifier", "text": "UIViewController", "parent": 4, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 46}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 7, 8], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// STViewController.h\n// StorageProject\n//\n// Created by JaneXzz on 03/09/2020.\n// Copyright (c) 2020 JaneXzz. All rights reserved.\n//\n\n@import UIKit;\n\n@interface STViewController : UIViewController\n\n@end\n"}
80,736
c
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2009 Greenplum, Inc. // // @filename: // CTaskLocalStorage.h // // @doc: // Task-local storage facility; implements TLS to store an instance // of a subclass of CTaskLocalStorageObject by an enum index; // no restrictions as to where the actual data is allocated, // e.g. Task's memory pool, global memory etc. //--------------------------------------------------------------------------- #ifndef GPOS_CTaskLocalStorage_H #define GPOS_CTaskLocalStorage_H #include "gpos/base.h" #include "gpos/common/CSyncHashtable.h" namespace gpos { // fwd declaration class CTaskLocalStorageObject; //--------------------------------------------------------------------------- // @class: // CTaskLocalStorage // // @doc: // TLS implementation; single instance of this class per task; initialized // and destroyed during task setup/tear down // //--------------------------------------------------------------------------- class CTaskLocalStorage { public: enum Etlsidx { EtlsidxTest, // unittest slot EtlsidxOptCtxt, // optimizer context EtlsidxInvalid, // used only for hashtable iteration EtlsidxSentinel }; // ctor CTaskLocalStorage() {} // dtor ~CTaskLocalStorage(); // reset void Reset(IMemoryPool *pmp); // accessors void Store(CTaskLocalStorageObject *); CTaskLocalStorageObject *Ptlsobj(const Etlsidx); // delete object void Remove(CTaskLocalStorageObject *); // equality function -- used for hashtable static BOOL FEqual ( const CTaskLocalStorage::Etlsidx &etlsidx, const CTaskLocalStorage::Etlsidx &etlsidxOther ) { return etlsidx == etlsidxOther; } // hash function static ULONG UlHashIdx ( const CTaskLocalStorage::Etlsidx &etlsidx ) { // keys are unique return static_cast<ULONG>(etlsidx); } // invalid Etlsidx static const Etlsidx m_etlsidxInvalid; private: // hash table CSyncHashtable <CTaskLocalStorageObject, Etlsidx, CSpinlockOS> m_sht; // private copy ctor CTaskLocalStorage(const CTaskLocalStorage &); }; // class CTaskLocalStorage } #endif // !GPOS_CTaskLocalStorage_H // EOF
24
93
(translation_unit) "//---------------------------------------------------------------------------\n// Greenplum Database\n// Copyright (C) 2009 Greenplum, Inc.\n//\n// @filename:\n// CTaskLocalStorage.h\n//\n// @doc:\n// Task-local storage facility; implements TLS to store an instance\n// of a subclass of CTaskLocalStorageObject by an enum index; \n// no restrictions as to where the actual data is allocated, \n\n\n// e.g. Task's memory pool, global memory etc.\n//---------------------------------------------------------------------------\n#ifndef GPOS_CTaskLocalStorage_H\n#define GPOS_CTaskLocalStorage_H\n\n#include "gpos/base.h"\n#include "gpos/common/CSyncHashtable.h"\n\nnamespace gpos\n{\n\n // fwd declaration\n class CTaskLocalStorageObject;\n\n //---------------------------------------------------------------------------\n // @class:\n // CTaskLocalStorage\n //\n // @doc:\n // TLS implementation; single instance of this class per task; initialized\n // and destroyed during task setup/tear down\n //\n //---------------------------------------------------------------------------\n class CTaskLocalStorage\n { \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }; // class CTaskLocalStorage\n}\n\n#endif // !GPOS_CTaskLocalStorage_H\n\n// EOF\n\n" (comment) "//---------------------------------------------------------------------------" (comment) "// Greenplum Database" (comment) "// Copyright (C) 2009 Greenplum, Inc." (comment) "//" (comment) "// @filename:" (comment) "// CTaskLocalStorage.h" (comment) "//" (comment) "// @doc:" (comment) "// Task-local storage facility; implements TLS to store an instance" (comment) "// of a subclass of CTaskLocalStorageObject by an enum index; " (comment) "// no restrictions as to where the actual data is allocated, " (comment) "// e.g. Task's memory pool, global memory etc." (comment) "//---------------------------------------------------------------------------" (preproc_ifdef) "#ifndef GPOS_CTaskLocalStorage_H\n#define GPOS_CTaskLocalStorage_H\n\n#include "gpos/base.h"\n#include "gpos/common/CSyncHashtable.h"\n\nnamespace gpos\n{\n\n // fwd declaration\n class CTaskLocalStorageObject;\n\n //---------------------------------------------------------------------------\n // @class:\n // CTaskLocalStorage\n //\n // @doc:\n // TLS implementation; single instance of this class per task; initialized\n // and destroyed during task setup/tear down\n //\n //---------------------------------------------------------------------------\n class CTaskLocalStorage\n { \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }; // class CTaskLocalStorage\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "GPOS_CTaskLocalStorage_H" (preproc_def) "#define GPOS_CTaskLocalStorage_H\n" (#define) "#define" (identifier) "GPOS_CTaskLocalStorage_H" (preproc_include) "#include "gpos/base.h"\n" (#include) "#include" (string_literal) ""gpos/base.h"" (") """ (string_content) "gpos/base.h" (") """ (preproc_include) "#include "gpos/common/CSyncHashtable.h"\n" (#include) "#include" (string_literal) ""gpos/common/CSyncHashtable.h"" (") """ (string_content) "gpos/common/CSyncHashtable.h" (") """ (function_definition) "namespace gpos\n{\n\n // fwd declaration\n class CTaskLocalStorageObject;\n\n //---------------------------------------------------------------------------\n // @class:\n // CTaskLocalStorage\n //\n // @doc:\n // TLS implementation; single instance of this class per task; initialized\n // and destroyed during task setup/tear down\n //\n //---------------------------------------------------------------------------\n class CTaskLocalStorage\n { \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }; // class CTaskLocalStorage\n}" (type_identifier) "namespace" (identifier) "gpos" (compound_statement) "{\n\n // fwd declaration\n class CTaskLocalStorageObject;\n\n //---------------------------------------------------------------------------\n // @class:\n // CTaskLocalStorage\n //\n // @doc:\n // TLS implementation; single instance of this class per task; initialized\n // and destroyed during task setup/tear down\n //\n //---------------------------------------------------------------------------\n class CTaskLocalStorage\n { \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }; // class CTaskLocalStorage\n}" ({) "{" (comment) "// fwd declaration" (declaration) "class CTaskLocalStorageObject;" (type_identifier) "class" (identifier) "CTaskLocalStorageObject" (;) ";" (comment) "//---------------------------------------------------------------------------" (comment) "// @class:" (comment) "// CTaskLocalStorage" (comment) "//" (comment) "// @doc:" (comment) "// TLS implementation; single instance of this class per task; initialized" (comment) "// and destroyed during task setup/tear down" (comment) "//" (comment) "//---------------------------------------------------------------------------" (function_definition) "class CTaskLocalStorage\n { \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }" (type_identifier) "class" (identifier) "CTaskLocalStorage" (compound_statement) "{ \n public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();\n\n // reset\n void Reset(IMemoryPool *pmp);\n \n // accessors\n void Store(CTaskLocalStorageObject *);\n CTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n \n // delete object\n void Remove(CTaskLocalStorageObject *); \n\n // equality function -- used for hashtable\n static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }\n\n // hash function\n static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }\n\n // invalid Etlsidx\n static\n const Etlsidx m_etlsidxInvalid;\n\n private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;\n\n // private copy ctor\n CTaskLocalStorage(const CTaskLocalStorage &);\n \n }" ({) "{" (labeled_statement) "public:\n\n enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();" (statement_identifier) "public" (:) ":" (declaration) "enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n };\n\n // ctor\n CTaskLocalStorage() {}\n \n // dtor\n ~CTaskLocalStorage();" (enum_specifier) "enum Etlsidx\n {\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n }" (enum) "enum" (type_identifier) "Etlsidx" (enumerator_list) "{\n EtlsidxTest, // unittest slot\n EtlsidxOptCtxt, // optimizer context\n EtlsidxInvalid, // used only for hashtable iteration\n \n EtlsidxSentinel\n }" ({) "{" (enumerator) "EtlsidxTest" (identifier) "EtlsidxTest" (,) "," (comment) "// unittest slot" (enumerator) "EtlsidxOptCtxt" (identifier) "EtlsidxOptCtxt" (,) "," (comment) "// optimizer context" (enumerator) "EtlsidxInvalid" (identifier) "EtlsidxInvalid" (,) "," (comment) "// used only for hashtable iteration" (enumerator) "EtlsidxSentinel" (identifier) "EtlsidxSentinel" (}) "}" (ERROR) ";" (;) ";" (comment) "// ctor" (ERROR) "CTaskLocalStorage() {}\n \n // dtor\n ~" (function_declarator) "CTaskLocalStorage()" (identifier) "CTaskLocalStorage" (parameter_list) "()" (() "(" ()) ")" ({) "{" (}) "}" (comment) "// dtor" (~) "~" (function_declarator) "CTaskLocalStorage()" (identifier) "CTaskLocalStorage" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// reset" (declaration) "void Reset(IMemoryPool *pmp);" (primitive_type) "void" (function_declarator) "Reset(IMemoryPool *pmp)" (identifier) "Reset" (parameter_list) "(IMemoryPool *pmp)" (() "(" (parameter_declaration) "IMemoryPool *pmp" (type_identifier) "IMemoryPool" (pointer_declarator) "*pmp" (*) "*" (identifier) "pmp" ()) ")" (;) ";" (comment) "// accessors" (declaration) "void Store(CTaskLocalStorageObject *);" (primitive_type) "void" (function_declarator) "Store(CTaskLocalStorageObject *)" (identifier) "Store" (parameter_list) "(CTaskLocalStorageObject *)" (() "(" (parameter_declaration) "CTaskLocalStorageObject *" (type_identifier) "CTaskLocalStorageObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "CTaskLocalStorageObject *Ptlsobj(const Etlsidx);" (type_identifier) "CTaskLocalStorageObject" (pointer_declarator) "*Ptlsobj(const Etlsidx)" (*) "*" (function_declarator) "Ptlsobj(const Etlsidx)" (identifier) "Ptlsobj" (parameter_list) "(const Etlsidx)" (() "(" (parameter_declaration) "const Etlsidx" (type_qualifier) "const" (const) "const" (type_identifier) "Etlsidx" ()) ")" (;) ";" (comment) "// delete object" (declaration) "void Remove(CTaskLocalStorageObject *);" (primitive_type) "void" (function_declarator) "Remove(CTaskLocalStorageObject *)" (identifier) "Remove" (parameter_list) "(CTaskLocalStorageObject *)" (() "(" (parameter_declaration) "CTaskLocalStorageObject *" (type_identifier) "CTaskLocalStorageObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "// equality function -- used for hashtable" (function_definition) "static\n BOOL FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )\n {\n return etlsidx == etlsidxOther;\n }" (storage_class_specifier) "static" (static) "static" (type_identifier) "BOOL" (function_declarator) "FEqual\n (\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )" (identifier) "FEqual" (parameter_list) "(\n const CTaskLocalStorage::Etlsidx &etlsidx,\n const CTaskLocalStorage::Etlsidx &etlsidxOther\n )" (() "(" (parameter_declaration) "const CTaskLocalStorage::Etlsidx &etlsidx" (type_qualifier) "const" (const) "const" (type_identifier) "CTaskLocalStorage" (ERROR) "::Etlsidx &" (:) ":" (:) ":" (identifier) "Etlsidx" (&) "&" (identifier) "etlsidx" (,) "," (parameter_declaration) "const CTaskLocalStorage::Etlsidx &etlsidxOther" (type_qualifier) "const" (const) "const" (type_identifier) "CTaskLocalStorage" (ERROR) "::Etlsidx &" (:) ":" (:) ":" (identifier) "Etlsidx" (&) "&" (identifier) "etlsidxOther" ()) ")" (compound_statement) "{\n return etlsidx == etlsidxOther;\n }" ({) "{" (return_statement) "return etlsidx == etlsidxOther;" (return) "return" (binary_expression) "etlsidx == etlsidxOther" (identifier) "etlsidx" (==) "==" (identifier) "etlsidxOther" (;) ";" (}) "}" (comment) "// hash function" (function_definition) "static\n ULONG UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )\n {\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }" (storage_class_specifier) "static" (static) "static" (type_identifier) "ULONG" (function_declarator) "UlHashIdx\n (\n const CTaskLocalStorage::Etlsidx &etlsidx\n )" (identifier) "UlHashIdx" (parameter_list) "(\n const CTaskLocalStorage::Etlsidx &etlsidx\n )" (() "(" (parameter_declaration) "const CTaskLocalStorage::Etlsidx &etlsidx" (type_qualifier) "const" (const) "const" (type_identifier) "CTaskLocalStorage" (ERROR) "::Etlsidx &" (:) ":" (:) ":" (identifier) "Etlsidx" (&) "&" (identifier) "etlsidx" ()) ")" (compound_statement) "{\n // keys are unique\n return static_cast<ULONG>(etlsidx);\n }" ({) "{" (comment) "// keys are unique" (return_statement) "return static_cast<ULONG>(etlsidx);" (return) "return" (binary_expression) "static_cast<ULONG>(etlsidx)" (binary_expression) "static_cast<ULONG" (identifier) "static_cast" (<) "<" (identifier) "ULONG" (>) ">" (parenthesized_expression) "(etlsidx)" (() "(" (identifier) "etlsidx" ()) ")" (;) ";" (}) "}" (comment) "// invalid Etlsidx" (declaration) "static\n const Etlsidx m_etlsidxInvalid;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "Etlsidx" (identifier) "m_etlsidxInvalid" (;) ";" (labeled_statement) "private:\n \n // hash table\n CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;" (statement_identifier) "private" (:) ":" (comment) "// hash table" (expression_statement) "CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht;" (comma_expression) "CSyncHashtable\n <CTaskLocalStorageObject, \n Etlsidx,\n CSpinlockOS> m_sht" (binary_expression) "CSyncHashtable\n <CTaskLocalStorageObject" (identifier) "CSyncHashtable" (<) "<" (identifier) "CTaskLocalStorageObject" (,) "," (comma_expression) "Etlsidx,\n CSpinlockOS> m_sht" (identifier) "Etlsidx" (,) "," (binary_expression) "CSpinlockOS> m_sht" (identifier) "CSpinlockOS" (>) ">" (identifier) "m_sht" (;) ";" (comment) "// private copy ctor" (macro_type_specifier) "CTaskLocalStorage(const CTaskLocalStorage &)" (identifier) "CTaskLocalStorage" (() "(" (type_descriptor) "const CTaskLocalStorage" (type_qualifier) "const" (const) "const" (type_identifier) "CTaskLocalStorage" (ERROR) "&" (&) "&" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// class CTaskLocalStorage" (}) "}" (#endif) "#endif" (comment) "// !GPOS_CTaskLocalStorage_H" (comment) "// EOF"
279
6
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 24.0, "nodes": 137, "errors": 0, "source_hash": "3b1d6c7b008573b0874852d7e546cfcf8fe651820cf249a2df58f51286915043", "categorized_nodes": 103}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GPOS_CTaskLocalStorage_H\n#define GPOS_CTaskLocalStorage_H\n\n#include \"gpos/base.h\"\n#include \"gpos/common/CSyncHashtable.h\"\n\nnamespace gpos\n{\n\n\t// fwd declaration\n\tclass CTaskLocalStorageObject;\n\n\t//---------------------------------------------------------------------------\n\t//\t@class:\n\t//\t\tCTaskLocalStorage\n\t//\n\t//\t@doc:\n\t//\t\tTLS implementation; single instance of this class per task; initialized\n\t//\t\tand destroyed during task setup/tear down\n\t//\n\t//---------------------------------------------------------------------------\n\tclass CTaskLocalStorage\n\t{\t\t\t\n\t\tpublic:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();\n\n\t\t\t// reset\n\t\t\tvoid Reset(IMemoryPool *pmp);\n\t\t\t\n\t\t\t// accessors\n\t\t\tvoid Store(CTaskLocalStorageObject *);\n\t\t\tCTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n\t\t\t\n\t\t\t// delete object\n\t\t\tvoid Remove(CTaskLocalStorageObject *);\t\t\t\n\n\t\t\t// equality function -- used for hashtable\n\t\t\tstatic\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn etlsidx == etlsidxOther;\n\t\t\t}\n\n\t\t\t// hash function\n\t\t\tstatic\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys are unique\n\t\t\t\treturn static_cast<ULONG>(etlsidx);\n\t\t\t}\n\n\t\t\t// invalid Etlsidx\n\t\t\tstatic\n\t\t\tconst Etlsidx m_etlsidxInvalid;\n\n\t\tprivate:\n\t\t\n\t\t\t// hash table\n\t\t\tCSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht;\n\n\t\t\t// private copy ctor\n\t\t\tCTaskLocalStorage(const CTaskLocalStorage &);\n\t\t\t\n\t}; // class CTaskLocalStorage\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 136], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 105, "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": "GPOS_CTaskLocalStorage_H", "parent": 0, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define GPOS_CTaskLocalStorage_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 5, "type": "identifier", "text": "GPOS_CTaskLocalStorage_H", "parent": 3, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 32}}, {"id": 6, "type": "preproc_include", "text": "#include \"gpos/base.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"gpos/base.h\"", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"gpos/common/CSyncHashtable.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"gpos/common/CSyncHashtable.h\"", "parent": 9, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 39}}, {"id": 12, "type": "function_definition", "text": "namespace gpos\n{\n\n\t// fwd declaration\n\tclass CTaskLocalStorageObject;\n\n\t//---------------------------------------------------------------------------\n\t//\t@class:\n\t//\t\tCTaskLocalStorage\n\t//\n\t//\t@doc:\n\t//\t\tTLS implementation; single instance of this class per task; initialized\n\t//\t\tand destroyed during task setup/tear down\n\t//\n\t//---------------------------------------------------------------------------\n\tclass CTaskLocalStorage\n\t{\t\t\t\n\t\tpublic:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();\n\n\t\t\t// reset\n\t\t\tvoid Reset(IMemoryPool *pmp);\n\t\t\t\n\t\t\t// accessors\n\t\t\tvoid Store(CTaskLocalStorageObject *);\n\t\t\tCTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n\t\t\t\n\t\t\t// delete object\n\t\t\tvoid Remove(CTaskLocalStorageObject *);\t\t\t\n\n\t\t\t// equality function -- used for hashtable\n\t\t\tstatic\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn etlsidx == etlsidxOther;\n\t\t\t}\n\n\t\t\t// hash function\n\t\t\tstatic\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys are unique\n\t\t\t\treturn static_cast<ULONG>(etlsidx);\n\t\t\t}\n\n\t\t\t// invalid Etlsidx\n\t\t\tstatic\n\t\t\tconst Etlsidx m_etlsidxInvalid;\n\n\t\tprivate:\n\t\t\n\t\t\t// hash table\n\t\t\tCSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht;\n\n\t\t\t// private copy ctor\n\t\t\tCTaskLocalStorage(const CTaskLocalStorage &);\n\t\t\t\n\t}; // class CTaskLocalStorage\n}", "parent": 0, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 103, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 14, "type": "identifier", "text": "gpos", "parent": 12, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 15, "type": "declaration", "text": "class CTaskLocalStorageObject;", "parent": 12, "children": [16], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 31}}, {"id": 16, "type": "identifier", "text": "CTaskLocalStorageObject", "parent": 15, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 30}}, {"id": 17, "type": "function_definition", "text": "class CTaskLocalStorage\n\t{\t\t\t\n\t\tpublic:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();\n\n\t\t\t// reset\n\t\t\tvoid Reset(IMemoryPool *pmp);\n\t\t\t\n\t\t\t// accessors\n\t\t\tvoid Store(CTaskLocalStorageObject *);\n\t\t\tCTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n\t\t\t\n\t\t\t// delete object\n\t\t\tvoid Remove(CTaskLocalStorageObject *);\t\t\t\n\n\t\t\t// equality function -- used for hashtable\n\t\t\tstatic\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn etlsidx == etlsidxOther;\n\t\t\t}\n\n\t\t\t// hash function\n\t\t\tstatic\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys are unique\n\t\t\t\treturn static_cast<ULONG>(etlsidx);\n\t\t\t}\n\n\t\t\t// invalid Etlsidx\n\t\t\tstatic\n\t\t\tconst Etlsidx m_etlsidxInvalid;\n\n\t\tprivate:\n\t\t\n\t\t\t// hash table\n\t\t\tCSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht;\n\n\t\t\t// private copy ctor\n\t\t\tCTaskLocalStorage(const CTaskLocalStorage &);\n\t\t\t\n\t}", "parent": 12, "children": [18], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 102, "column": 2}}, {"id": 18, "type": "identifier", "text": "CTaskLocalStorage", "parent": 17, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 24}}, {"id": 19, "type": "labeled_statement", "text": "public:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();", "parent": 17, "children": [20], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 53, "column": 24}}, {"id": 20, "type": "declaration", "text": "enum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();", "parent": 19, "children": [21, 33, 38], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 53, "column": 24}}, {"id": 21, "type": "enum_specifier", "text": "enum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t}", "parent": 20, "children": [22, 23, 24], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 47, "column": 4}}, {"id": 22, "type": "enum", "text": "enum", "parent": 21, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 23, "type": "type_identifier", "text": "Etlsidx", "parent": 21, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 15}}, {"id": 24, "type": "enumerator_list", "text": "{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t}", "parent": 21, "children": [25, 27, 29, 31], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 47, "column": 4}}, {"id": 25, "type": "enumerator", "text": "EtlsidxTest", "parent": 24, "children": [26], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 26, "type": "identifier", "text": "EtlsidxTest", "parent": 25, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 27, "type": "enumerator", "text": "EtlsidxOptCtxt", "parent": 24, "children": [28], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 18}}, {"id": 28, "type": "identifier", "text": "EtlsidxOptCtxt", "parent": 27, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 18}}, {"id": 29, "type": "enumerator", "text": "EtlsidxInvalid", "parent": 24, "children": [30], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 18}}, {"id": 30, "type": "identifier", "text": "EtlsidxInvalid", "parent": 29, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 18}}, {"id": 31, "type": "enumerator", "text": "EtlsidxSentinel", "parent": 24, "children": [32], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 19}}, {"id": 32, "type": "identifier", "text": "EtlsidxSentinel", "parent": 31, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 19}}, {"id": 33, "type": "ERROR", "text": "CTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~", "parent": 20, "children": [34, 37], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 53, "column": 4}}, {"id": 34, "type": "function_declarator", "text": "CTaskLocalStorage()", "parent": 33, "children": [35, 36], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 22}}, {"id": 35, "type": "identifier", "text": "CTaskLocalStorage", "parent": 34, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 20}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 22}}, {"id": 37, "type": "~", "text": "~", "parent": 33, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 4}}, {"id": 38, "type": "function_declarator", "text": "CTaskLocalStorage()", "parent": 20, "children": [39, 40], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 23}}, {"id": 39, "type": "identifier", "text": "CTaskLocalStorage", "parent": 38, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 21}}, {"id": 40, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 23}}, {"id": 41, "type": "declaration", "text": "void Reset(IMemoryPool *pmp);", "parent": 17, "children": [42, 43], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 32}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 7}}, {"id": 43, "type": "function_declarator", "text": "Reset(IMemoryPool *pmp)", "parent": 41, "children": [44, 45], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 31}}, {"id": 44, "type": "identifier", "text": "Reset", "parent": 43, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 13}}, {"id": 45, "type": "parameter_list", "text": "(IMemoryPool *pmp)", "parent": 43, "children": [46], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 31}}, {"id": 46, "type": "parameter_declaration", "text": "IMemoryPool *pmp", "parent": 45, "children": [47, 48], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 30}}, {"id": 47, "type": "type_identifier", "text": "IMemoryPool", "parent": 46, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 25}}, {"id": 48, "type": "pointer_declarator", "text": "*pmp", "parent": 46, "children": [49, 50], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 30}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 27}}, {"id": 50, "type": "identifier", "text": "pmp", "parent": 48, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 30}}, {"id": 51, "type": "declaration", "text": "void Store(CTaskLocalStorageObject *);", "parent": 17, "children": [52, 53], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 41}}, {"id": 52, "type": "primitive_type", "text": "void", "parent": 51, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 7}}, {"id": 53, "type": "function_declarator", "text": "Store(CTaskLocalStorageObject *)", "parent": 51, "children": [54, 55], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 40}}, {"id": 54, "type": "identifier", "text": "Store", "parent": 53, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 13}}, {"id": 55, "type": "parameter_list", "text": "(CTaskLocalStorageObject *)", "parent": 53, "children": [56], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 40}}, {"id": 56, "type": "parameter_declaration", "text": "CTaskLocalStorageObject *", "parent": 55, "children": [57, 58], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 39}}, {"id": 57, "type": "type_identifier", "text": "CTaskLocalStorageObject", "parent": 56, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 37}}, {"id": 58, "type": "abstract_pointer_declarator", "text": "*", "parent": 56, "children": [59], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 60, "type": "declaration", "text": "CTaskLocalStorageObject *Ptlsobj(const Etlsidx);", "parent": 17, "children": [61, 62], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 51}}, {"id": 61, "type": "type_identifier", "text": "CTaskLocalStorageObject", "parent": 60, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 26}}, {"id": 62, "type": "pointer_declarator", "text": "*Ptlsobj(const Etlsidx)", "parent": 60, "children": [63, 64], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 50}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 28}}, {"id": 64, "type": "function_declarator", "text": "Ptlsobj(const Etlsidx)", "parent": 62, "children": [65, 66], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 50}}, {"id": 65, "type": "identifier", "text": "Ptlsobj", "parent": 64, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 35}}, {"id": 66, "type": "parameter_list", "text": "(const Etlsidx)", "parent": 64, "children": [67], "start_point": {"row": 60, "column": 35}, "end_point": {"row": 60, "column": 50}}, {"id": 67, "type": "parameter_declaration", "text": "const Etlsidx", "parent": 66, "children": [68], "start_point": {"row": 60, "column": 36}, "end_point": {"row": 60, "column": 49}}, {"id": 68, "type": "type_identifier", "text": "Etlsidx", "parent": 67, "children": [], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 49}}, {"id": 69, "type": "declaration", "text": "void Remove(CTaskLocalStorageObject *);", "parent": 17, "children": [70, 71], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 42}}, {"id": 70, "type": "primitive_type", "text": "void", "parent": 69, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 7}}, {"id": 71, "type": "function_declarator", "text": "Remove(CTaskLocalStorageObject *)", "parent": 69, "children": [72, 73], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 41}}, {"id": 72, "type": "identifier", "text": "Remove", "parent": 71, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 73, "type": "parameter_list", "text": "(CTaskLocalStorageObject *)", "parent": 71, "children": [74], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 41}}, {"id": 74, "type": "parameter_declaration", "text": "CTaskLocalStorageObject *", "parent": 73, "children": [75, 76], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 40}}, {"id": 75, "type": "type_identifier", "text": "CTaskLocalStorageObject", "parent": 74, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 38}}, {"id": 76, "type": "abstract_pointer_declarator", "text": "*", "parent": 74, "children": [77], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 40}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 40}}, {"id": 78, "type": "function_definition", "text": "static\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn etlsidx == etlsidxOther;\n\t\t\t}", "parent": 17, "children": [79, 80], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 74, "column": 4}}, {"id": 79, "type": "type_identifier", "text": "BOOL", "parent": 78, "children": [], "start_point": {"row": 67, "column": 3}, "end_point": {"row": 67, "column": 7}}, {"id": 80, "type": "function_declarator", "text": "FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)", "parent": 78, "children": [81, 82], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 71, "column": 5}}, {"id": 81, "type": "identifier", "text": "FEqual", "parent": 80, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 14}}, {"id": 82, "type": "parameter_list", "text": "(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)", "parent": 80, "children": [83, 88], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 71, "column": 5}}, {"id": 83, "type": "parameter_declaration", "text": "const CTaskLocalStorage::Etlsidx &etlsidx", "parent": 82, "children": [84, 85, 87], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 45}}, {"id": 84, "type": "type_identifier", "text": "CTaskLocalStorage", "parent": 83, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 27}}, {"id": 85, "type": "ERROR", "text": "::Etlsidx &", "parent": 83, "children": [86], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 38}}, {"id": 86, "type": "identifier", "text": "Etlsidx", "parent": 85, "children": [], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 36}}, {"id": 87, "type": "identifier", "text": "etlsidx", "parent": 83, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 45}}, {"id": 88, "type": "parameter_declaration", "text": "const CTaskLocalStorage::Etlsidx &etlsidxOther", "parent": 82, "children": [89, 90, 92], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 50}}, {"id": 89, "type": "type_identifier", "text": "CTaskLocalStorage", "parent": 88, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 27}}, {"id": 90, "type": "ERROR", "text": "::Etlsidx &", "parent": 88, "children": [91], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 38}}, {"id": 91, "type": "identifier", "text": "Etlsidx", "parent": 90, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 36}}, {"id": 92, "type": "identifier", "text": "etlsidxOther", "parent": 88, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 50}}, {"id": 93, "type": "return_statement", "text": "return etlsidx == etlsidxOther;", "parent": 78, "children": [94], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 35}}, {"id": 94, "type": "binary_expression", "text": "etlsidx == etlsidxOther", "parent": 93, "children": [95, 96, 97], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 34}}, {"id": 95, "type": "identifier", "text": "etlsidx", "parent": 94, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 18}}, {"id": 96, "type": "==", "text": "==", "parent": 94, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 21}}, {"id": 97, "type": "identifier", "text": "etlsidxOther", "parent": 94, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 34}}, {"id": 98, "type": "function_definition", "text": "static\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys are unique\n\t\t\t\treturn static_cast<ULONG>(etlsidx);\n\t\t\t}", "parent": 17, "children": [99, 100], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 85, "column": 4}}, {"id": 99, "type": "type_identifier", "text": "ULONG", "parent": 98, "children": [], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 8}}, {"id": 100, "type": "function_declarator", "text": "UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)", "parent": 98, "children": [101, 102], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 81, "column": 5}}, {"id": 101, "type": "identifier", "text": "UlHashIdx", "parent": 100, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 18}}, {"id": 102, "type": "parameter_list", "text": "(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)", "parent": 100, "children": [103], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 103, "type": "parameter_declaration", "text": "const CTaskLocalStorage::Etlsidx &etlsidx", "parent": 102, "children": [104, 105, 107], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 45}}, {"id": 104, "type": "type_identifier", "text": "CTaskLocalStorage", "parent": 103, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 27}}, {"id": 105, "type": "ERROR", "text": "::Etlsidx &", "parent": 103, "children": [106], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 38}}, {"id": 106, "type": "identifier", "text": "Etlsidx", "parent": 105, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 36}}, {"id": 107, "type": "identifier", "text": "etlsidx", "parent": 103, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 45}}, {"id": 108, "type": "return_statement", "text": "return static_cast<ULONG>(etlsidx);", "parent": 98, "children": [109], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 39}}, {"id": 109, "type": "binary_expression", "text": "static_cast<ULONG>(etlsidx)", "parent": 108, "children": [110, 114, 115], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 38}}, {"id": 110, "type": "binary_expression", "text": "static_cast<ULONG", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 28}}, {"id": 111, "type": "identifier", "text": "static_cast", "parent": 110, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 22}}, {"id": 112, "type": "<", "text": "<", "parent": 110, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 23}}, {"id": 113, "type": "identifier", "text": "ULONG", "parent": 110, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 28}}, {"id": 114, "type": ">", "text": ">", "parent": 109, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 115, "type": "parenthesized_expression", "text": "(etlsidx)", "parent": 109, "children": [116], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 38}}, {"id": 116, "type": "identifier", "text": "etlsidx", "parent": 115, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 37}}, {"id": 117, "type": "declaration", "text": "static\n\t\t\tconst Etlsidx m_etlsidxInvalid;", "parent": 17, "children": [118, 119], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 89, "column": 34}}, {"id": 118, "type": "type_identifier", "text": "Etlsidx", "parent": 117, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 16}}, {"id": 119, "type": "identifier", "text": "m_etlsidxInvalid", "parent": 117, "children": [], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 33}}, {"id": 120, "type": "labeled_statement", "text": "private:\n\t\t\n\t\t\t// hash table\n\t\t\tCSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht;", "parent": 17, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 97, "column": 23}}, {"id": 121, "type": "comma_expression", "text": "CSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht", "parent": 120, "children": [122, 126], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 97, "column": 22}}, {"id": 122, "type": "binary_expression", "text": "CSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 95, "column": 28}}, {"id": 123, "type": "identifier", "text": "CSyncHashtable", "parent": 122, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 17}}, {"id": 124, "type": "<", "text": "<", "parent": 122, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 125, "type": "identifier", "text": "CTaskLocalStorageObject", "parent": 122, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 28}}, {"id": 126, "type": "comma_expression", "text": "Etlsidx,\n\t\t\t\tCSpinlockOS> m_sht", "parent": 121, "children": [127, 128], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 97, "column": 22}}, {"id": 127, "type": "identifier", "text": "Etlsidx", "parent": 126, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 11}}, {"id": 128, "type": "binary_expression", "text": "CSpinlockOS> m_sht", "parent": 126, "children": [129, 130, 131], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 22}}, {"id": 129, "type": "identifier", "text": "CSpinlockOS", "parent": 128, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 15}}, {"id": 130, "type": ">", "text": ">", "parent": 128, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 16}}, {"id": 131, "type": "identifier", "text": "m_sht", "parent": 128, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 22}}, {"id": 132, "type": "macro_type_specifier", "text": "CTaskLocalStorage(const CTaskLocalStorage &)", "parent": 17, "children": [133, 134], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 47}}, {"id": 133, "type": "identifier", "text": "CTaskLocalStorage", "parent": 132, "children": [], "start_point": {"row": 100, "column": 3}, "end_point": {"row": 100, "column": 20}}, {"id": 134, "type": "type_descriptor", "text": "const CTaskLocalStorage", "parent": 132, "children": [135], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 44}}, {"id": 135, "type": "type_identifier", "text": "CTaskLocalStorage", "parent": 134, "children": [], "start_point": {"row": 100, "column": 27}, "end_point": {"row": 100, "column": 44}}, {"id": 136, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 17, 34, 38, 43, 53, 64, 71, 78, 80, 98, 100], "variables": [15, 20, 41, 46, 51, 56, 60, 67, 69, 74, 83, 88, 103, 117], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": [21, 22, 24, 25, 27, 29, 31]}, "statements": {"expressions": [94, 109, 110, 115, 121, 122, 126, 128], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 18, 23, 26, 28, 30, 32, 35, 39, 44, 47, 50, 54, 57, 61, 65, 68, 72, 75, 79, 81, 84, 86, 87, 89, 91, 92, 95, 97, 99, 101, 104, 106, 107, 111, 113, 116, 118, 119, 123, 125, 127, 129, 131, 132, 133, 135, 136], "returns": [93, 108], "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": "CTaskLocalStorageObject;", "text_snippet": "namespace gpos\n{\n\n\t// fwd declaration\n\tclass CTaskLocalStorageObject;\n\n\t//--------------------------"}, {"node_id": 17, "universal_type": "function", "name": "CTaskLocalStorage", "text_snippet": "class CTaskLocalStorage\n\t{\t\t\t\n\t\tpublic:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "CTaskLocalStorage()"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "CTaskLocalStorage()"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "Reset(IMemoryPool *pmp)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "Store(CTaskLocalStorageObject *)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "Ptlsobj(const Etlsidx)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "Remove(CTaskLocalStorageObject *)"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "static\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStora"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &et"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "static\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"gpos/base.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"gpos/common/CSyncHashtable.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "//---------------------------------------------------------------------------\n//\tGreenplum Database\n//\tCopyright (C) 2009 Greenplum, Inc.\n//\n//\t@filename:\n//\t\tCTaskLocalStorage.h\n//\n//\t@doc:\n//\t\tTask-local storage facility; implements TLS to store an instance\n//\t\tof a subclass of CTaskLocalStorageObject by an enum index; \n//\t\tno restrictions as to where the actual data is allocated, \n\n\n//\t\te.g. Task's memory pool, global memory etc.\n//---------------------------------------------------------------------------\n#ifndef GPOS_CTaskLocalStorage_H\n#define GPOS_CTaskLocalStorage_H\n\n#include \"gpos/base.h\"\n#include \"gpos/common/CSyncHashtable.h\"\n\nnamespace gpos\n{\n\n\t// fwd declaration\n\tclass CTaskLocalStorageObject;\n\n\t//---------------------------------------------------------------------------\n\t//\t@class:\n\t//\t\tCTaskLocalStorage\n\t//\n\t//\t@doc:\n\t//\t\tTLS implementation; single instance of this class per task; initialized\n\t//\t\tand destroyed during task setup/tear down\n\t//\n\t//---------------------------------------------------------------------------\n\tclass CTaskLocalStorage\n\t{\t\t\t\n\t\tpublic:\n\n\t\t\tenum Etlsidx\n\t\t\t{\n\t\t\t\tEtlsidxTest,\t\t// unittest slot\n\t\t\t\tEtlsidxOptCtxt,\t\t// optimizer context\n\t\t\t\tEtlsidxInvalid,\t\t// used only for hashtable iteration\n\t\t\t\t\n\t\t\t\tEtlsidxSentinel\n\t\t\t};\n\n\t\t\t// ctor\n\t\t\tCTaskLocalStorage() {}\n\t\t\t\n\t\t\t// dtor\n\t\t\t~CTaskLocalStorage();\n\n\t\t\t// reset\n\t\t\tvoid Reset(IMemoryPool *pmp);\n\t\t\t\n\t\t\t// accessors\n\t\t\tvoid Store(CTaskLocalStorageObject *);\n\t\t\tCTaskLocalStorageObject *Ptlsobj(const Etlsidx);\n\t\t\t\n\t\t\t// delete object\n\t\t\tvoid Remove(CTaskLocalStorageObject *);\t\t\t\n\n\t\t\t// equality function -- used for hashtable\n\t\t\tstatic\n\t\t\tBOOL FEqual\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx,\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidxOther\n\t\t\t\t)\n\t\t\t{\n\t\t\t\treturn etlsidx == etlsidxOther;\n\t\t\t}\n\n\t\t\t// hash function\n\t\t\tstatic\n\t\t\tULONG UlHashIdx\n\t\t\t\t(\n\t\t\t\tconst CTaskLocalStorage::Etlsidx &etlsidx\n\t\t\t\t)\n\t\t\t{\n\t\t\t\t// keys are unique\n\t\t\t\treturn static_cast<ULONG>(etlsidx);\n\t\t\t}\n\n\t\t\t// invalid Etlsidx\n\t\t\tstatic\n\t\t\tconst Etlsidx m_etlsidxInvalid;\n\n\t\tprivate:\n\t\t\n\t\t\t// hash table\n\t\t\tCSyncHashtable\n\t\t\t\t<CTaskLocalStorageObject, \n\t\t\t\tEtlsidx,\n\t\t\t\tCSpinlockOS> m_sht;\n\n\t\t\t// private copy ctor\n\t\t\tCTaskLocalStorage(const CTaskLocalStorage &);\n\t\t\t\n\t}; // class CTaskLocalStorage\n}\n\n#endif // !GPOS_CTaskLocalStorage_H\n\n// EOF\n\n"}
80,737
c
/*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_C_TYPES_H #define CPROVER_C_TYPES_H #include <util/expr.h> #include <irep2/irep2.h> typet index_type(); type2tc index_type2(); typet int_type(); type2tc int_type2(); typet uint_type(); type2tc uint_type2(); typet long_int_type(); type2tc long_int_type2(); typet long_long_int_type(); type2tc long_long_int_type2(); typet long_uint_type(); type2tc long_uint_type2(); typet long_long_uint_type(); type2tc long_long_uint_type2(); typet wchar_type(); type2tc char_type2(); typet float_type(); type2tc float_type2(); typet double_type(); type2tc double_type2(); typet long_double_type(); type2tc long_double_type2(); typet pointer_type(); type2tc pointer_type2(); typet enum_type(); typet signed_short_int_type(); typet unsigned_short_int_type(); typet char_type(); typet unsigned_char_type(); typet signed_char_type(); typet char16_type(); typet char32_type(); typet unsigned_wchar_type(); typet half_float_type(); typet size_type(); typet signed_size_type(); typet bool_type(); type2tc get_uint8_type(); type2tc get_uint16_type(); type2tc get_uint32_type(); type2tc get_uint64_type(); type2tc get_int8_type(); type2tc get_int16_type(); type2tc get_int32_type(); type2tc get_int64_type(); type2tc get_uint_type(unsigned int sz); type2tc get_int_type(unsigned int sz); type2tc get_bool_type(); type2tc get_empty_type(); #endif
26.56
57
(translation_unit) "/*******************************************************************\\n\nModule:\n\nAuthor: <NAME>, <EMAIL>\n\n\*******************************************************************/\n\n#ifndef CPROVER_C_TYPES_H\n#define CPROVER_C_TYPES_H\n\n#include <util/expr.h>\n#include <irep2/irep2.h>\n\ntypet index_type();\ntype2tc index_type2();\n\ntypet int_type();\ntype2tc int_type2();\n\ntypet uint_type();\ntype2tc uint_type2();\n\ntypet long_int_type();\ntype2tc long_int_type2();\n\ntypet long_long_int_type();\ntype2tc long_long_int_type2();\n\ntypet long_uint_type();\ntype2tc long_uint_type2();\n\ntypet long_long_uint_type();\ntype2tc long_long_uint_type2();\n\ntypet wchar_type();\ntype2tc char_type2();\n\ntypet float_type();\ntype2tc float_type2();\n\ntypet double_type();\ntype2tc double_type2();\n\ntypet long_double_type();\ntype2tc long_double_type2();\n\ntypet pointer_type();\ntype2tc pointer_type2();\n\ntypet enum_type();\ntypet signed_short_int_type();\ntypet unsigned_short_int_type();\ntypet char_type();\ntypet unsigned_char_type();\ntypet signed_char_type();\ntypet char16_type();\ntypet char32_type();\ntypet unsigned_wchar_type();\ntypet half_float_type();\ntypet size_type();\ntypet signed_size_type();\ntypet bool_type();\n\ntype2tc get_uint8_type();\ntype2tc get_uint16_type();\ntype2tc get_uint32_type();\ntype2tc get_uint64_type();\ntype2tc get_int8_type();\ntype2tc get_int16_type();\ntype2tc get_int32_type();\ntype2tc get_int64_type();\ntype2tc get_uint_type(unsigned int sz);\ntype2tc get_int_type(unsigned int sz);\ntype2tc get_bool_type();\ntype2tc get_empty_type();\n\n#endif\n" (comment) "/*******************************************************************\\n\nModule:\n\nAuthor: <NAME>, <EMAIL>\n\n\*******************************************************************/" (preproc_ifdef) "#ifndef CPROVER_C_TYPES_H\n#define CPROVER_C_TYPES_H\n\n#include <util/expr.h>\n#include <irep2/irep2.h>\n\ntypet index_type();\ntype2tc index_type2();\n\ntypet int_type();\ntype2tc int_type2();\n\ntypet uint_type();\ntype2tc uint_type2();\n\ntypet long_int_type();\ntype2tc long_int_type2();\n\ntypet long_long_int_type();\ntype2tc long_long_int_type2();\n\ntypet long_uint_type();\ntype2tc long_uint_type2();\n\ntypet long_long_uint_type();\ntype2tc long_long_uint_type2();\n\ntypet wchar_type();\ntype2tc char_type2();\n\ntypet float_type();\ntype2tc float_type2();\n\ntypet double_type();\ntype2tc double_type2();\n\ntypet long_double_type();\ntype2tc long_double_type2();\n\ntypet pointer_type();\ntype2tc pointer_type2();\n\ntypet enum_type();\ntypet signed_short_int_type();\ntypet unsigned_short_int_type();\ntypet char_type();\ntypet unsigned_char_type();\ntypet signed_char_type();\ntypet char16_type();\ntypet char32_type();\ntypet unsigned_wchar_type();\ntypet half_float_type();\ntypet size_type();\ntypet signed_size_type();\ntypet bool_type();\n\ntype2tc get_uint8_type();\ntype2tc get_uint16_type();\ntype2tc get_uint32_type();\ntype2tc get_uint64_type();\ntype2tc get_int8_type();\ntype2tc get_int16_type();\ntype2tc get_int32_type();\ntype2tc get_int64_type();\ntype2tc get_uint_type(unsigned int sz);\ntype2tc get_int_type(unsigned int sz);\ntype2tc get_bool_type();\ntype2tc get_empty_type();\n\n#endif" (#ifndef) "#ifndef" (identifier) "CPROVER_C_TYPES_H" (preproc_def) "#define CPROVER_C_TYPES_H\n" (#define) "#define" (identifier) "CPROVER_C_TYPES_H" (preproc_include) "#include <util/expr.h>\n" (#include) "#include" (system_lib_string) "<util/expr.h>" (preproc_include) "#include <irep2/irep2.h>\n" (#include) "#include" (system_lib_string) "<irep2/irep2.h>" (declaration) "typet index_type();" (type_identifier) "typet" (function_declarator) "index_type()" (identifier) "index_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc index_type2();" (type_identifier) "type2tc" (function_declarator) "index_type2()" (identifier) "index_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet int_type();" (type_identifier) "typet" (function_declarator) "int_type()" (identifier) "int_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc int_type2();" (type_identifier) "type2tc" (function_declarator) "int_type2()" (identifier) "int_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet uint_type();" (type_identifier) "typet" (function_declarator) "uint_type()" (identifier) "uint_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc uint_type2();" (type_identifier) "type2tc" (function_declarator) "uint_type2()" (identifier) "uint_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet long_int_type();" (type_identifier) "typet" (function_declarator) "long_int_type()" (identifier) "long_int_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc long_int_type2();" (type_identifier) "type2tc" (function_declarator) "long_int_type2()" (identifier) "long_int_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet long_long_int_type();" (type_identifier) "typet" (function_declarator) "long_long_int_type()" (identifier) "long_long_int_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc long_long_int_type2();" (type_identifier) "type2tc" (function_declarator) "long_long_int_type2()" (identifier) "long_long_int_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet long_uint_type();" (type_identifier) "typet" (function_declarator) "long_uint_type()" (identifier) "long_uint_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc long_uint_type2();" (type_identifier) "type2tc" (function_declarator) "long_uint_type2()" (identifier) "long_uint_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet long_long_uint_type();" (type_identifier) "typet" (function_declarator) "long_long_uint_type()" (identifier) "long_long_uint_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc long_long_uint_type2();" (type_identifier) "type2tc" (function_declarator) "long_long_uint_type2()" (identifier) "long_long_uint_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet wchar_type();" (type_identifier) "typet" (function_declarator) "wchar_type()" (identifier) "wchar_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc char_type2();" (type_identifier) "type2tc" (function_declarator) "char_type2()" (identifier) "char_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet float_type();" (type_identifier) "typet" (function_declarator) "float_type()" (identifier) "float_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc float_type2();" (type_identifier) "type2tc" (function_declarator) "float_type2()" (identifier) "float_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet double_type();" (type_identifier) "typet" (function_declarator) "double_type()" (identifier) "double_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc double_type2();" (type_identifier) "type2tc" (function_declarator) "double_type2()" (identifier) "double_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet long_double_type();" (type_identifier) "typet" (function_declarator) "long_double_type()" (identifier) "long_double_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc long_double_type2();" (type_identifier) "type2tc" (function_declarator) "long_double_type2()" (identifier) "long_double_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet pointer_type();" (type_identifier) "typet" (function_declarator) "pointer_type()" (identifier) "pointer_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc pointer_type2();" (type_identifier) "type2tc" (function_declarator) "pointer_type2()" (identifier) "pointer_type2" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet enum_type();" (type_identifier) "typet" (function_declarator) "enum_type()" (identifier) "enum_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet signed_short_int_type();" (type_identifier) "typet" (function_declarator) "signed_short_int_type()" (identifier) "signed_short_int_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet unsigned_short_int_type();" (type_identifier) "typet" (function_declarator) "unsigned_short_int_type()" (identifier) "unsigned_short_int_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet char_type();" (type_identifier) "typet" (function_declarator) "char_type()" (identifier) "char_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet unsigned_char_type();" (type_identifier) "typet" (function_declarator) "unsigned_char_type()" (identifier) "unsigned_char_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet signed_char_type();" (type_identifier) "typet" (function_declarator) "signed_char_type()" (identifier) "signed_char_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet char16_type();" (type_identifier) "typet" (function_declarator) "char16_type()" (identifier) "char16_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet char32_type();" (type_identifier) "typet" (function_declarator) "char32_type()" (identifier) "char32_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet unsigned_wchar_type();" (type_identifier) "typet" (function_declarator) "unsigned_wchar_type()" (identifier) "unsigned_wchar_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet half_float_type();" (type_identifier) "typet" (function_declarator) "half_float_type()" (identifier) "half_float_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet size_type();" (type_identifier) "typet" (function_declarator) "size_type()" (identifier) "size_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet signed_size_type();" (type_identifier) "typet" (function_declarator) "signed_size_type()" (identifier) "signed_size_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "typet bool_type();" (type_identifier) "typet" (function_declarator) "bool_type()" (identifier) "bool_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_uint8_type();" (type_identifier) "type2tc" (function_declarator) "get_uint8_type()" (identifier) "get_uint8_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_uint16_type();" (type_identifier) "type2tc" (function_declarator) "get_uint16_type()" (identifier) "get_uint16_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_uint32_type();" (type_identifier) "type2tc" (function_declarator) "get_uint32_type()" (identifier) "get_uint32_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_uint64_type();" (type_identifier) "type2tc" (function_declarator) "get_uint64_type()" (identifier) "get_uint64_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_int8_type();" (type_identifier) "type2tc" (function_declarator) "get_int8_type()" (identifier) "get_int8_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_int16_type();" (type_identifier) "type2tc" (function_declarator) "get_int16_type()" (identifier) "get_int16_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_int32_type();" (type_identifier) "type2tc" (function_declarator) "get_int32_type()" (identifier) "get_int32_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_int64_type();" (type_identifier) "type2tc" (function_declarator) "get_int64_type()" (identifier) "get_int64_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_uint_type(unsigned int sz);" (type_identifier) "type2tc" (function_declarator) "get_uint_type(unsigned int sz)" (identifier) "get_uint_type" (parameter_list) "(unsigned int sz)" (() "(" (parameter_declaration) "unsigned int sz" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "sz" ()) ")" (;) ";" (declaration) "type2tc get_int_type(unsigned int sz);" (type_identifier) "type2tc" (function_declarator) "get_int_type(unsigned int sz)" (identifier) "get_int_type" (parameter_list) "(unsigned int sz)" (() "(" (parameter_declaration) "unsigned int sz" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "sz" ()) ")" (;) ";" (declaration) "type2tc get_bool_type();" (type_identifier) "type2tc" (function_declarator) "get_bool_type()" (identifier) "get_bool_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "type2tc get_empty_type();" (type_identifier) "type2tc" (function_declarator) "get_empty_type()" (identifier) "get_empty_type" (parameter_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif"
417
0
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 26.56, "nodes": 268, "errors": 0, "source_hash": "644bb58256dacb21456cf8609da813f4bafcd64a5c2e9efd8549c6a81465f123", "categorized_nodes": 213}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef CPROVER_C_TYPES_H\n#define CPROVER_C_TYPES_H\n\n#include <util/expr.h>\n#include <irep2/irep2.h>\n\ntypet index_type();\ntype2tc index_type2();\n\ntypet int_type();\ntype2tc int_type2();\n\ntypet uint_type();\ntype2tc uint_type2();\n\ntypet long_int_type();\ntype2tc long_int_type2();\n\ntypet long_long_int_type();\ntype2tc long_long_int_type2();\n\ntypet long_uint_type();\ntype2tc long_uint_type2();\n\ntypet long_long_uint_type();\ntype2tc long_long_uint_type2();\n\ntypet wchar_type();\ntype2tc char_type2();\n\ntypet float_type();\ntype2tc float_type2();\n\ntypet double_type();\ntype2tc double_type2();\n\ntypet long_double_type();\ntype2tc long_double_type2();\n\ntypet pointer_type();\ntype2tc pointer_type2();\n\ntypet enum_type();\ntypet signed_short_int_type();\ntypet unsigned_short_int_type();\ntypet char_type();\ntypet unsigned_char_type();\ntypet signed_char_type();\ntypet char16_type();\ntypet char32_type();\ntypet unsigned_wchar_type();\ntypet half_float_type();\ntypet size_type();\ntypet signed_size_type();\ntypet bool_type();\n\ntype2tc get_uint8_type();\ntype2tc get_uint16_type();\ntype2tc get_uint32_type();\ntype2tc get_uint64_type();\ntype2tc get_int8_type();\ntype2tc get_int16_type();\ntype2tc get_int32_type();\ntype2tc get_int64_type();\ntype2tc get_uint_type(unsigned int sz);\ntype2tc get_int_type(unsigned int sz);\ntype2tc get_bool_type();\ntype2tc get_empty_type();\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 22, 27, 32, 37, 42, 47, 52, 57, 62, 67, 72, 77, 82, 87, 92, 97, 102, 107, 112, 117, 122, 127, 132, 137, 142, 147, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 247, 257, 262, 267], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 77, "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": "CPROVER_C_TYPES_H", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define CPROVER_C_TYPES_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "identifier", "text": "CPROVER_C_TYPES_H", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <util/expr.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": "<util/expr.h>", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include <irep2/irep2.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": "<irep2/irep2.h>", "parent": 9, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 24}}, {"id": 12, "type": "declaration", "text": "typet index_type();", "parent": 0, "children": [13, 14], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 19}}, {"id": 13, "type": "type_identifier", "text": "typet", "parent": 12, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 14, "type": "function_declarator", "text": "index_type()", "parent": 12, "children": [15, 16], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 18}}, {"id": 15, "type": "identifier", "text": "index_type", "parent": 14, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 16}}, {"id": 16, "type": "parameter_list", "text": "()", "parent": 14, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 18}}, {"id": 17, "type": "declaration", "text": "type2tc index_type2();", "parent": 0, "children": [18, 19], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 18, "type": "type_identifier", "text": "type2tc", "parent": 17, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 19, "type": "function_declarator", "text": "index_type2()", "parent": 17, "children": [20, 21], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 21}}, {"id": 20, "type": "identifier", "text": "index_type2", "parent": 19, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 19}}, {"id": 21, "type": "parameter_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 21}}, {"id": 22, "type": "declaration", "text": "typet int_type();", "parent": 0, "children": [23, 24], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 17}}, {"id": 23, "type": "type_identifier", "text": "typet", "parent": 22, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 5}}, {"id": 24, "type": "function_declarator", "text": "int_type()", "parent": 22, "children": [25, 26], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 16}}, {"id": 25, "type": "identifier", "text": "int_type", "parent": 24, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 14}}, {"id": 26, "type": "parameter_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 16}}, {"id": 27, "type": "declaration", "text": "type2tc int_type2();", "parent": 0, "children": [28, 29], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 20}}, {"id": 28, "type": "type_identifier", "text": "type2tc", "parent": 27, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 29, "type": "function_declarator", "text": "int_type2()", "parent": 27, "children": [30, 31], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 19}}, {"id": 30, "type": "identifier", "text": "int_type2", "parent": 29, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 17}}, {"id": 31, "type": "parameter_list", "text": "()", "parent": 29, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 19}}, {"id": 32, "type": "declaration", "text": "typet uint_type();", "parent": 0, "children": [33, 34], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 18}}, {"id": 33, "type": "type_identifier", "text": "typet", "parent": 32, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 5}}, {"id": 34, "type": "function_declarator", "text": "uint_type()", "parent": 32, "children": [35, 36], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 17}}, {"id": 35, "type": "identifier", "text": "uint_type", "parent": 34, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 15}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 17}}, {"id": 37, "type": "declaration", "text": "type2tc uint_type2();", "parent": 0, "children": [38, 39], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 21}}, {"id": 38, "type": "type_identifier", "text": "type2tc", "parent": 37, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 39, "type": "function_declarator", "text": "uint_type2()", "parent": 37, "children": [40, 41], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 20}}, {"id": 40, "type": "identifier", "text": "uint_type2", "parent": 39, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 18}}, {"id": 41, "type": "parameter_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 20}}, {"id": 42, "type": "declaration", "text": "typet long_int_type();", "parent": 0, "children": [43, 44], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 22}}, {"id": 43, "type": "type_identifier", "text": "typet", "parent": 42, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 5}}, {"id": 44, "type": "function_declarator", "text": "long_int_type()", "parent": 42, "children": [45, 46], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 21}}, {"id": 45, "type": "identifier", "text": "long_int_type", "parent": 44, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 19}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 21}}, {"id": 47, "type": "declaration", "text": "type2tc long_int_type2();", "parent": 0, "children": [48, 49], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 25}}, {"id": 48, "type": "type_identifier", "text": "type2tc", "parent": 47, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 49, "type": "function_declarator", "text": "long_int_type2()", "parent": 47, "children": [50, 51], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 24}}, {"id": 50, "type": "identifier", "text": "long_int_type2", "parent": 49, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 22}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 24}}, {"id": 52, "type": "declaration", "text": "typet long_long_int_type();", "parent": 0, "children": [53, 54], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 27}}, {"id": 53, "type": "type_identifier", "text": "typet", "parent": 52, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 5}}, {"id": 54, "type": "function_declarator", "text": "long_long_int_type()", "parent": 52, "children": [55, 56], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 26}}, {"id": 55, "type": "identifier", "text": "long_long_int_type", "parent": 54, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 24}}, {"id": 56, "type": "parameter_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 26}}, {"id": 57, "type": "declaration", "text": "type2tc long_long_int_type2();", "parent": 0, "children": [58, 59], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 30}}, {"id": 58, "type": "type_identifier", "text": "type2tc", "parent": 57, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 59, "type": "function_declarator", "text": "long_long_int_type2()", "parent": 57, "children": [60, 61], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 29}}, {"id": 60, "type": "identifier", "text": "long_long_int_type2", "parent": 59, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 27}}, {"id": 61, "type": "parameter_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 29}}, {"id": 62, "type": "declaration", "text": "typet long_uint_type();", "parent": 0, "children": [63, 64], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 23}}, {"id": 63, "type": "type_identifier", "text": "typet", "parent": 62, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 5}}, {"id": 64, "type": "function_declarator", "text": "long_uint_type()", "parent": 62, "children": [65, 66], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 22}}, {"id": 65, "type": "identifier", "text": "long_uint_type", "parent": 64, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 20}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 22}}, {"id": 67, "type": "declaration", "text": "type2tc long_uint_type2();", "parent": 0, "children": [68, 69], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 26}}, {"id": 68, "type": "type_identifier", "text": "type2tc", "parent": 67, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 69, "type": "function_declarator", "text": "long_uint_type2()", "parent": 67, "children": [70, 71], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 25}}, {"id": 70, "type": "identifier", "text": "long_uint_type2", "parent": 69, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 23}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 25}}, {"id": 72, "type": "declaration", "text": "typet long_long_uint_type();", "parent": 0, "children": [73, 74], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 28}}, {"id": 73, "type": "type_identifier", "text": "typet", "parent": 72, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 5}}, {"id": 74, "type": "function_declarator", "text": "long_long_uint_type()", "parent": 72, "children": [75, 76], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 27}}, {"id": 75, "type": "identifier", "text": "long_long_uint_type", "parent": 74, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 25}}, {"id": 76, "type": "parameter_list", "text": "()", "parent": 74, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 27}}, {"id": 77, "type": "declaration", "text": "type2tc long_long_uint_type2();", "parent": 0, "children": [78, 79], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 31}}, {"id": 78, "type": "type_identifier", "text": "type2tc", "parent": 77, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 79, "type": "function_declarator", "text": "long_long_uint_type2()", "parent": 77, "children": [80, 81], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 30}}, {"id": 80, "type": "identifier", "text": "long_long_uint_type2", "parent": 79, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 28}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 30}}, {"id": 82, "type": "declaration", "text": "typet wchar_type();", "parent": 0, "children": [83, 84], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 19}}, {"id": 83, "type": "type_identifier", "text": "typet", "parent": 82, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 5}}, {"id": 84, "type": "function_declarator", "text": "wchar_type()", "parent": 82, "children": [85, 86], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 18}}, {"id": 85, "type": "identifier", "text": "wchar_type", "parent": 84, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 16}}, {"id": 86, "type": "parameter_list", "text": "()", "parent": 84, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 18}}, {"id": 87, "type": "declaration", "text": "type2tc char_type2();", "parent": 0, "children": [88, 89], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 21}}, {"id": 88, "type": "type_identifier", "text": "type2tc", "parent": 87, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 89, "type": "function_declarator", "text": "char_type2()", "parent": 87, "children": [90, 91], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 20}}, {"id": 90, "type": "identifier", "text": "char_type2", "parent": 89, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 18}}, {"id": 91, "type": "parameter_list", "text": "()", "parent": 89, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 20}}, {"id": 92, "type": "declaration", "text": "typet float_type();", "parent": 0, "children": [93, 94], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 19}}, {"id": 93, "type": "type_identifier", "text": "typet", "parent": 92, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 5}}, {"id": 94, "type": "function_declarator", "text": "float_type()", "parent": 92, "children": [95, 96], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 18}}, {"id": 95, "type": "identifier", "text": "float_type", "parent": 94, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 16}}, {"id": 96, "type": "parameter_list", "text": "()", "parent": 94, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 18}}, {"id": 97, "type": "declaration", "text": "type2tc float_type2();", "parent": 0, "children": [98, 99], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 22}}, {"id": 98, "type": "type_identifier", "text": "type2tc", "parent": 97, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 99, "type": "function_declarator", "text": "float_type2()", "parent": 97, "children": [100, 101], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 21}}, {"id": 100, "type": "identifier", "text": "float_type2", "parent": 99, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 19}}, {"id": 101, "type": "parameter_list", "text": "()", "parent": 99, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 21}}, {"id": 102, "type": "declaration", "text": "typet double_type();", "parent": 0, "children": [103, 104], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 20}}, {"id": 103, "type": "type_identifier", "text": "typet", "parent": 102, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 104, "type": "function_declarator", "text": "double_type()", "parent": 102, "children": [105, 106], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 19}}, {"id": 105, "type": "identifier", "text": "double_type", "parent": 104, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 17}}, {"id": 106, "type": "parameter_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 107, "type": "declaration", "text": "type2tc double_type2();", "parent": 0, "children": [108, 109], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 23}}, {"id": 108, "type": "type_identifier", "text": "type2tc", "parent": 107, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 109, "type": "function_declarator", "text": "double_type2()", "parent": 107, "children": [110, 111], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 22}}, {"id": 110, "type": "identifier", "text": "double_type2", "parent": 109, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 20}}, {"id": 111, "type": "parameter_list", "text": "()", "parent": 109, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 22}}, {"id": 112, "type": "declaration", "text": "typet long_double_type();", "parent": 0, "children": [113, 114], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 25}}, {"id": 113, "type": "type_identifier", "text": "typet", "parent": 112, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 5}}, {"id": 114, "type": "function_declarator", "text": "long_double_type()", "parent": 112, "children": [115, 116], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 24}}, {"id": 115, "type": "identifier", "text": "long_double_type", "parent": 114, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 22}}, {"id": 116, "type": "parameter_list", "text": "()", "parent": 114, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 24}}, {"id": 117, "type": "declaration", "text": "type2tc long_double_type2();", "parent": 0, "children": [118, 119], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 28}}, {"id": 118, "type": "type_identifier", "text": "type2tc", "parent": 117, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 119, "type": "function_declarator", "text": "long_double_type2()", "parent": 117, "children": [120, 121], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 27}}, {"id": 120, "type": "identifier", "text": "long_double_type2", "parent": 119, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 25}}, {"id": 121, "type": "parameter_list", "text": "()", "parent": 119, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 27}}, {"id": 122, "type": "declaration", "text": "typet pointer_type();", "parent": 0, "children": [123, 124], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 21}}, {"id": 123, "type": "type_identifier", "text": "typet", "parent": 122, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 5}}, {"id": 124, "type": "function_declarator", "text": "pointer_type()", "parent": 122, "children": [125, 126], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 20}}, {"id": 125, "type": "identifier", "text": "pointer_type", "parent": 124, "children": [], "start_point": {"row": 47, "column": 6}, "end_point": {"row": 47, "column": 18}}, {"id": 126, "type": "parameter_list", "text": "()", "parent": 124, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 20}}, {"id": 127, "type": "declaration", "text": "type2tc pointer_type2();", "parent": 0, "children": [128, 129], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 24}}, {"id": 128, "type": "type_identifier", "text": "type2tc", "parent": 127, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 129, "type": "function_declarator", "text": "pointer_type2()", "parent": 127, "children": [130, 131], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 23}}, {"id": 130, "type": "identifier", "text": "pointer_type2", "parent": 129, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 21}}, {"id": 131, "type": "parameter_list", "text": "()", "parent": 129, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 23}}, {"id": 132, "type": "declaration", "text": "typet enum_type();", "parent": 0, "children": [133, 134], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 18}}, {"id": 133, "type": "type_identifier", "text": "typet", "parent": 132, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 5}}, {"id": 134, "type": "function_declarator", "text": "enum_type()", "parent": 132, "children": [135, 136], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 17}}, {"id": 135, "type": "identifier", "text": "enum_type", "parent": 134, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 15}}, {"id": 136, "type": "parameter_list", "text": "()", "parent": 134, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 17}}, {"id": 137, "type": "declaration", "text": "typet signed_short_int_type();", "parent": 0, "children": [138, 139], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 30}}, {"id": 138, "type": "type_identifier", "text": "typet", "parent": 137, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 5}}, {"id": 139, "type": "function_declarator", "text": "signed_short_int_type()", "parent": 137, "children": [140, 141], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 29}}, {"id": 140, "type": "identifier", "text": "signed_short_int_type", "parent": 139, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 27}}, {"id": 141, "type": "parameter_list", "text": "()", "parent": 139, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 29}}, {"id": 142, "type": "declaration", "text": "typet unsigned_short_int_type();", "parent": 0, "children": [143, 144], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 32}}, {"id": 143, "type": "type_identifier", "text": "typet", "parent": 142, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 5}}, {"id": 144, "type": "function_declarator", "text": "unsigned_short_int_type()", "parent": 142, "children": [145, 146], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 31}}, {"id": 145, "type": "identifier", "text": "unsigned_short_int_type", "parent": 144, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 29}}, {"id": 146, "type": "parameter_list", "text": "()", "parent": 144, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 31}}, {"id": 147, "type": "declaration", "text": "typet char_type();", "parent": 0, "children": [148, 149], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 18}}, {"id": 148, "type": "type_identifier", "text": "typet", "parent": 147, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 5}}, {"id": 149, "type": "function_declarator", "text": "char_type()", "parent": 147, "children": [150, 151], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 17}}, {"id": 150, "type": "identifier", "text": "char_type", "parent": 149, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 15}}, {"id": 151, "type": "parameter_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 17}}, {"id": 152, "type": "declaration", "text": "typet unsigned_char_type();", "parent": 0, "children": [153, 154], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 27}}, {"id": 153, "type": "type_identifier", "text": "typet", "parent": 152, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 5}}, {"id": 154, "type": "function_declarator", "text": "unsigned_char_type()", "parent": 152, "children": [155, 156], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 26}}, {"id": 155, "type": "identifier", "text": "unsigned_char_type", "parent": 154, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 24}}, {"id": 156, "type": "parameter_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 26}}, {"id": 157, "type": "declaration", "text": "typet signed_char_type();", "parent": 0, "children": [158, 159], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 25}}, {"id": 158, "type": "type_identifier", "text": "typet", "parent": 157, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 5}}, {"id": 159, "type": "function_declarator", "text": "signed_char_type()", "parent": 157, "children": [160, 161], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 24}}, {"id": 160, "type": "identifier", "text": "signed_char_type", "parent": 159, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 22}}, {"id": 161, "type": "parameter_list", "text": "()", "parent": 159, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 24}}, {"id": 162, "type": "declaration", "text": "typet char16_type();", "parent": 0, "children": [163, 164], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 20}}, {"id": 163, "type": "type_identifier", "text": "typet", "parent": 162, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 5}}, {"id": 164, "type": "function_declarator", "text": "char16_type()", "parent": 162, "children": [165, 166], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 19}}, {"id": 165, "type": "identifier", "text": "char16_type", "parent": 164, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 17}}, {"id": 166, "type": "parameter_list", "text": "()", "parent": 164, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 19}}, {"id": 167, "type": "declaration", "text": "typet char32_type();", "parent": 0, "children": [168, 169], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 20}}, {"id": 168, "type": "type_identifier", "text": "typet", "parent": 167, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 5}}, {"id": 169, "type": "function_declarator", "text": "char32_type()", "parent": 167, "children": [170, 171], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 19}}, {"id": 170, "type": "identifier", "text": "char32_type", "parent": 169, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 17}}, {"id": 171, "type": "parameter_list", "text": "()", "parent": 169, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 19}}, {"id": 172, "type": "declaration", "text": "typet unsigned_wchar_type();", "parent": 0, "children": [173, 174], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 28}}, {"id": 173, "type": "type_identifier", "text": "typet", "parent": 172, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 5}}, {"id": 174, "type": "function_declarator", "text": "unsigned_wchar_type()", "parent": 172, "children": [175, 176], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 27}}, {"id": 175, "type": "identifier", "text": "unsigned_wchar_type", "parent": 174, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 25}}, {"id": 176, "type": "parameter_list", "text": "()", "parent": 174, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 27}}, {"id": 177, "type": "declaration", "text": "typet half_float_type();", "parent": 0, "children": [178, 179], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 24}}, {"id": 178, "type": "type_identifier", "text": "typet", "parent": 177, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 5}}, {"id": 179, "type": "function_declarator", "text": "half_float_type()", "parent": 177, "children": [180, 181], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 23}}, {"id": 180, "type": "identifier", "text": "half_float_type", "parent": 179, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 21}}, {"id": 181, "type": "parameter_list", "text": "()", "parent": 179, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 23}}, {"id": 182, "type": "declaration", "text": "typet size_type();", "parent": 0, "children": [183, 184], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 18}}, {"id": 183, "type": "type_identifier", "text": "typet", "parent": 182, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 5}}, {"id": 184, "type": "function_declarator", "text": "size_type()", "parent": 182, "children": [185, 186], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 17}}, {"id": 185, "type": "identifier", "text": "size_type", "parent": 184, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 15}}, {"id": 186, "type": "parameter_list", "text": "()", "parent": 184, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 17}}, {"id": 187, "type": "declaration", "text": "typet signed_size_type();", "parent": 0, "children": [188, 189], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 25}}, {"id": 188, "type": "type_identifier", "text": "typet", "parent": 187, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 5}}, {"id": 189, "type": "function_declarator", "text": "signed_size_type()", "parent": 187, "children": [190, 191], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 24}}, {"id": 190, "type": "identifier", "text": "signed_size_type", "parent": 189, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 22}}, {"id": 191, "type": "parameter_list", "text": "()", "parent": 189, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 24}}, {"id": 192, "type": "declaration", "text": "typet bool_type();", "parent": 0, "children": [193, 194], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 18}}, {"id": 193, "type": "type_identifier", "text": "typet", "parent": 192, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 5}}, {"id": 194, "type": "function_declarator", "text": "bool_type()", "parent": 192, "children": [195, 196], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 17}}, {"id": 195, "type": "identifier", "text": "bool_type", "parent": 194, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 15}}, {"id": 196, "type": "parameter_list", "text": "()", "parent": 194, "children": [], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 17}}, {"id": 197, "type": "declaration", "text": "type2tc get_uint8_type();", "parent": 0, "children": [198, 199], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 25}}, {"id": 198, "type": "type_identifier", "text": "type2tc", "parent": 197, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 199, "type": "function_declarator", "text": "get_uint8_type()", "parent": 197, "children": [200, 201], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 24}}, {"id": 200, "type": "identifier", "text": "get_uint8_type", "parent": 199, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 22}}, {"id": 201, "type": "parameter_list", "text": "()", "parent": 199, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 24}}, {"id": 202, "type": "declaration", "text": "type2tc get_uint16_type();", "parent": 0, "children": [203, 204], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 26}}, {"id": 203, "type": "type_identifier", "text": "type2tc", "parent": 202, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 204, "type": "function_declarator", "text": "get_uint16_type()", "parent": 202, "children": [205, 206], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 25}}, {"id": 205, "type": "identifier", "text": "get_uint16_type", "parent": 204, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 23}}, {"id": 206, "type": "parameter_list", "text": "()", "parent": 204, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 25}}, {"id": 207, "type": "declaration", "text": "type2tc get_uint32_type();", "parent": 0, "children": [208, 209], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 26}}, {"id": 208, "type": "type_identifier", "text": "type2tc", "parent": 207, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 209, "type": "function_declarator", "text": "get_uint32_type()", "parent": 207, "children": [210, 211], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 25}}, {"id": 210, "type": "identifier", "text": "get_uint32_type", "parent": 209, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 23}}, {"id": 211, "type": "parameter_list", "text": "()", "parent": 209, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 25}}, {"id": 212, "type": "declaration", "text": "type2tc get_uint64_type();", "parent": 0, "children": [213, 214], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 26}}, {"id": 213, "type": "type_identifier", "text": "type2tc", "parent": 212, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 214, "type": "function_declarator", "text": "get_uint64_type()", "parent": 212, "children": [215, 216], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 25}}, {"id": 215, "type": "identifier", "text": "get_uint64_type", "parent": 214, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 23}}, {"id": 216, "type": "parameter_list", "text": "()", "parent": 214, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 25}}, {"id": 217, "type": "declaration", "text": "type2tc get_int8_type();", "parent": 0, "children": [218, 219], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 24}}, {"id": 218, "type": "type_identifier", "text": "type2tc", "parent": 217, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 219, "type": "function_declarator", "text": "get_int8_type()", "parent": 217, "children": [220, 221], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 23}}, {"id": 220, "type": "identifier", "text": "get_int8_type", "parent": 219, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 21}}, {"id": 221, "type": "parameter_list", "text": "()", "parent": 219, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 23}}, {"id": 222, "type": "declaration", "text": "type2tc get_int16_type();", "parent": 0, "children": [223, 224], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 25}}, {"id": 223, "type": "type_identifier", "text": "type2tc", "parent": 222, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 224, "type": "function_declarator", "text": "get_int16_type()", "parent": 222, "children": [225, 226], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 24}}, {"id": 225, "type": "identifier", "text": "get_int16_type", "parent": 224, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 22}}, {"id": 226, "type": "parameter_list", "text": "()", "parent": 224, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 24}}, {"id": 227, "type": "declaration", "text": "type2tc get_int32_type();", "parent": 0, "children": [228, 229], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 25}}, {"id": 228, "type": "type_identifier", "text": "type2tc", "parent": 227, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 229, "type": "function_declarator", "text": "get_int32_type()", "parent": 227, "children": [230, 231], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 24}}, {"id": 230, "type": "identifier", "text": "get_int32_type", "parent": 229, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 22}}, {"id": 231, "type": "parameter_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 24}}, {"id": 232, "type": "declaration", "text": "type2tc get_int64_type();", "parent": 0, "children": [233, 234], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 25}}, {"id": 233, "type": "type_identifier", "text": "type2tc", "parent": 232, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 234, "type": "function_declarator", "text": "get_int64_type()", "parent": 232, "children": [235, 236], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 24}}, {"id": 235, "type": "identifier", "text": "get_int64_type", "parent": 234, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 22}}, {"id": 236, "type": "parameter_list", "text": "()", "parent": 234, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 24}}, {"id": 237, "type": "declaration", "text": "type2tc get_uint_type(unsigned int sz);", "parent": 0, "children": [238, 239], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 39}}, {"id": 238, "type": "type_identifier", "text": "type2tc", "parent": 237, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 7}}, {"id": 239, "type": "function_declarator", "text": "get_uint_type(unsigned int sz)", "parent": 237, "children": [240, 241], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 38}}, {"id": 240, "type": "identifier", "text": "get_uint_type", "parent": 239, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 21}}, {"id": 241, "type": "parameter_list", "text": "(unsigned int sz)", "parent": 239, "children": [242], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 38}}, {"id": 242, "type": "parameter_declaration", "text": "unsigned int sz", "parent": 241, "children": [243, 246], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 37}}, {"id": 243, "type": "sized_type_specifier", "text": "unsigned int", "parent": 242, "children": [244, 245], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 34}}, {"id": 244, "type": "unsigned", "text": "unsigned", "parent": 243, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 30}}, {"id": 245, "type": "primitive_type", "text": "int", "parent": 243, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 34}}, {"id": 246, "type": "identifier", "text": "sz", "parent": 242, "children": [], "start_point": {"row": 72, "column": 35}, "end_point": {"row": 72, "column": 37}}, {"id": 247, "type": "declaration", "text": "type2tc get_int_type(unsigned int sz);", "parent": 0, "children": [248, 249], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 38}}, {"id": 248, "type": "type_identifier", "text": "type2tc", "parent": 247, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 249, "type": "function_declarator", "text": "get_int_type(unsigned int sz)", "parent": 247, "children": [250, 251], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 37}}, {"id": 250, "type": "identifier", "text": "get_int_type", "parent": 249, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 20}}, {"id": 251, "type": "parameter_list", "text": "(unsigned int sz)", "parent": 249, "children": [252], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 37}}, {"id": 252, "type": "parameter_declaration", "text": "unsigned int sz", "parent": 251, "children": [253, 256], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 36}}, {"id": 253, "type": "sized_type_specifier", "text": "unsigned int", "parent": 252, "children": [254, 255], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 33}}, {"id": 254, "type": "unsigned", "text": "unsigned", "parent": 253, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 29}}, {"id": 255, "type": "primitive_type", "text": "int", "parent": 253, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 33}}, {"id": 256, "type": "identifier", "text": "sz", "parent": 252, "children": [], "start_point": {"row": 73, "column": 34}, "end_point": {"row": 73, "column": 36}}, {"id": 257, "type": "declaration", "text": "type2tc get_bool_type();", "parent": 0, "children": [258, 259], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 24}}, {"id": 258, "type": "type_identifier", "text": "type2tc", "parent": 257, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 259, "type": "function_declarator", "text": "get_bool_type()", "parent": 257, "children": [260, 261], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 23}}, {"id": 260, "type": "identifier", "text": "get_bool_type", "parent": 259, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 21}}, {"id": 261, "type": "parameter_list", "text": "()", "parent": 259, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 23}}, {"id": 262, "type": "declaration", "text": "type2tc get_empty_type();", "parent": 0, "children": [263, 264], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 25}}, {"id": 263, "type": "type_identifier", "text": "type2tc", "parent": 262, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 7}}, {"id": 264, "type": "function_declarator", "text": "get_empty_type()", "parent": 262, "children": [265, 266], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 24}}, {"id": 265, "type": "identifier", "text": "get_empty_type", "parent": 264, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 22}}, {"id": 266, "type": "parameter_list", "text": "()", "parent": 264, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 24}}, {"id": 267, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}]}, "node_categories": {"declarations": {"functions": [14, 19, 24, 29, 34, 39, 44, 49, 54, 59, 64, 69, 74, 79, 84, 89, 94, 99, 104, 109, 114, 119, 124, 129, 134, 139, 144, 149, 154, 159, 164, 169, 174, 179, 184, 189, 194, 199, 204, 209, 214, 219, 224, 229, 234, 239, 249, 259, 264], "variables": [12, 17, 22, 27, 32, 37, 42, 47, 52, 57, 62, 67, 72, 77, 82, 87, 92, 97, 102, 107, 112, 117, 122, 127, 132, 137, 142, 147, 152, 157, 162, 167, 172, 177, 182, 187, 192, 197, 202, 207, 212, 217, 222, 227, 232, 237, 242, 247, 252, 257, 262], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 15, 18, 20, 23, 25, 28, 30, 33, 35, 38, 40, 43, 45, 48, 50, 53, 55, 58, 60, 63, 65, 68, 70, 73, 75, 78, 80, 83, 85, 88, 90, 93, 95, 98, 100, 103, 105, 108, 110, 113, 115, 118, 120, 123, 125, 128, 130, 133, 135, 138, 140, 143, 145, 148, 150, 153, 155, 158, 160, 163, 165, 168, 170, 173, 175, 178, 180, 183, 185, 188, 190, 193, 195, 198, 200, 203, 205, 208, 210, 213, 215, 218, 220, 223, 225, 228, 230, 233, 235, 238, 240, 243, 246, 248, 250, 253, 256, 258, 260, 263, 265, 267], "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": "index_type()"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "index_type2()"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "int_type()"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "int_type2()"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "uint_type()"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "uint_type2()"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "long_int_type()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "long_int_type2()"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "long_long_int_type()"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "long_long_int_type2()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "long_uint_type()"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "long_uint_type2()"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "long_long_uint_type()"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "long_long_uint_type2()"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "wchar_type()"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "char_type2()"}, {"node_id": 94, "universal_type": "function", "name": "unknown", "text_snippet": "float_type()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "float_type2()"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "double_type()"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "double_type2()"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "long_double_type()"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "long_double_type2()"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "pointer_type()"}, {"node_id": 129, "universal_type": "function", "name": "unknown", "text_snippet": "pointer_type2()"}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "enum_type()"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "signed_short_int_type()"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned_short_int_type()"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "char_type()"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned_char_type()"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "signed_char_type()"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "char16_type()"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "char32_type()"}, {"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "unsigned_wchar_type()"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "half_float_type()"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "size_type()"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "signed_size_type()"}, {"node_id": 194, "universal_type": "function", "name": "unknown", "text_snippet": "bool_type()"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "get_uint8_type()"}, {"node_id": 204, "universal_type": "function", "name": "unknown", "text_snippet": "get_uint16_type()"}, {"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "get_uint32_type()"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "get_uint64_type()"}, {"node_id": 219, "universal_type": "function", "name": "unknown", "text_snippet": "get_int8_type()"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "get_int16_type()"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "get_int32_type()"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "get_int64_type()"}, {"node_id": 239, "universal_type": "function", "name": "sz)", "text_snippet": "get_uint_type(unsigned int sz)"}, {"node_id": 249, "universal_type": "function", "name": "sz)", "text_snippet": "get_int_type(unsigned int sz)"}, {"node_id": 259, "universal_type": "function", "name": "unknown", "text_snippet": "get_bool_type()"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "get_empty_type()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <util/expr.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <irep2/irep2.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*******************************************************************\\\n\nModule:\n\nAuthor: <NAME>, <EMAIL>\n\n\\*******************************************************************/\n\n#ifndef CPROVER_C_TYPES_H\n#define CPROVER_C_TYPES_H\n\n#include <util/expr.h>\n#include <irep2/irep2.h>\n\ntypet index_type();\ntype2tc index_type2();\n\ntypet int_type();\ntype2tc int_type2();\n\ntypet uint_type();\ntype2tc uint_type2();\n\ntypet long_int_type();\ntype2tc long_int_type2();\n\ntypet long_long_int_type();\ntype2tc long_long_int_type2();\n\ntypet long_uint_type();\ntype2tc long_uint_type2();\n\ntypet long_long_uint_type();\ntype2tc long_long_uint_type2();\n\ntypet wchar_type();\ntype2tc char_type2();\n\ntypet float_type();\ntype2tc float_type2();\n\ntypet double_type();\ntype2tc double_type2();\n\ntypet long_double_type();\ntype2tc long_double_type2();\n\ntypet pointer_type();\ntype2tc pointer_type2();\n\ntypet enum_type();\ntypet signed_short_int_type();\ntypet unsigned_short_int_type();\ntypet char_type();\ntypet unsigned_char_type();\ntypet signed_char_type();\ntypet char16_type();\ntypet char32_type();\ntypet unsigned_wchar_type();\ntypet half_float_type();\ntypet size_type();\ntypet signed_size_type();\ntypet bool_type();\n\ntype2tc get_uint8_type();\ntype2tc get_uint16_type();\ntype2tc get_uint32_type();\ntype2tc get_uint64_type();\ntype2tc get_int8_type();\ntype2tc get_int16_type();\ntype2tc get_int32_type();\ntype2tc get_int64_type();\ntype2tc get_uint_type(unsigned int sz);\ntype2tc get_int_type(unsigned int sz);\ntype2tc get_bool_type();\ntype2tc get_empty_type();\n\n#endif\n"}
80,738
c
/* * QEMU 8253/8254 interval timer emulation * * Copyright (c) 2003-2004 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ #ifndef HW_I8254_H #define HW_I8254_H #include "hw.h" #include "isa.h" #define PIT_FREQ 1193182 typedef struct PITChannelInfo { int gate; int mode; int initial_count; int out; } PITChannelInfo; static inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq, qemu_irq alt_irq) { ISADevice *dev; dev = isa_create(bus, "isa-pit"); qdev_prop_set_uint32(&dev->qdev, "iobase", base); qdev_init_nofail(&dev->qdev); qdev_connect_gpio_out(&dev->qdev, 0, isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq); return dev; } static inline ISADevice *kvm_pit_init(ISABus *bus, int base) { ISADevice *dev; dev = isa_create(bus, "kvm-pit"); qdev_prop_set_uint32(&dev->qdev, "iobase", base); qdev_init_nofail(&dev->qdev); return dev; } void pit_set_gate(ISADevice *dev, int channel, int val); void pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info); #endif /* !HW_I8254_H */
37.7
56
(translation_unit) "/*\n * QEMU 8253/8254 interval timer emulation\n *\n * Copyright (c) 2003-2004 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n#ifndef HW_I8254_H\n#define HW_I8254_H\n\n#include "hw.h"\n#include "isa.h"\n\n#define PIT_FREQ 1193182\n\ntypedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;\n\nstatic inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "isa-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}\n\nstatic inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "kvm-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}\n\nvoid pit_set_gate(ISADevice *dev, int channel, int val);\nvoid pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);\n\n#endif /* !HW_I8254_H */\n" (comment) "/*\n * QEMU 8253/8254 interval timer emulation\n *\n * Copyright (c) 2003-2004 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE 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 */" (preproc_ifdef) "#ifndef HW_I8254_H\n#define HW_I8254_H\n\n#include "hw.h"\n#include "isa.h"\n\n#define PIT_FREQ 1193182\n\ntypedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;\n\nstatic inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "isa-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}\n\nstatic inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "kvm-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}\n\nvoid pit_set_gate(ISADevice *dev, int channel, int val);\nvoid pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);\n\n#endif" (#ifndef) "#ifndef" (identifier) "HW_I8254_H" (preproc_def) "#define HW_I8254_H\n" (#define) "#define" (identifier) "HW_I8254_H" (preproc_include) "#include "hw.h"\n" (#include) "#include" (string_literal) ""hw.h"" (") """ (string_content) "hw.h" (") """ (preproc_include) "#include "isa.h"\n" (#include) "#include" (string_literal) ""isa.h"" (") """ (string_content) "isa.h" (") """ (preproc_def) "#define PIT_FREQ 1193182\n" (#define) "#define" (identifier) "PIT_FREQ" (preproc_arg) "1193182" (type_definition) "typedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;" (typedef) "typedef" (struct_specifier) "struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n}" (struct) "struct" (type_identifier) "PITChannelInfo" (field_declaration_list) "{\n int gate;\n int mode;\n int initial_count;\n int out;\n}" ({) "{" (field_declaration) "int gate;" (primitive_type) "int" (field_identifier) "gate" (;) ";" (field_declaration) "int mode;" (primitive_type) "int" (field_identifier) "mode" (;) ";" (field_declaration) "int initial_count;" (primitive_type) "int" (field_identifier) "initial_count" (;) ";" (field_declaration) "int out;" (primitive_type) "int" (field_identifier) "out" (;) ";" (}) "}" (type_identifier) "PITChannelInfo" (;) ";" (function_definition) "static inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "isa-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "ISADevice" (pointer_declarator) "*pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)" (*) "*" (function_declarator) "pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)" (identifier) "pit_init" (parameter_list) "(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)" (() "(" (parameter_declaration) "ISABus *bus" (type_identifier) "ISABus" (pointer_declarator) "*bus" (*) "*" (identifier) "bus" (,) "," (parameter_declaration) "int base" (primitive_type) "int" (identifier) "base" (,) "," (parameter_declaration) "int isa_irq" (primitive_type) "int" (identifier) "isa_irq" (,) "," (parameter_declaration) "qemu_irq alt_irq" (type_identifier) "qemu_irq" (identifier) "alt_irq" ()) ")" (compound_statement) "{\n ISADevice *dev;\n\n dev = isa_create(bus, "isa-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}" ({) "{" (declaration) "ISADevice *dev;" (type_identifier) "ISADevice" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (;) ";" (expression_statement) "dev = isa_create(bus, "isa-pit");" (assignment_expression) "dev = isa_create(bus, "isa-pit")" (identifier) "dev" (=) "=" (call_expression) "isa_create(bus, "isa-pit")" (identifier) "isa_create" (argument_list) "(bus, "isa-pit")" (() "(" (identifier) "bus" (,) "," (string_literal) ""isa-pit"" (") """ (string_content) "isa-pit" (") """ ()) ")" (;) ";" (expression_statement) "qdev_prop_set_uint32(&dev->qdev, "iobase", base);" (call_expression) "qdev_prop_set_uint32(&dev->qdev, "iobase", base)" (identifier) "qdev_prop_set_uint32" (argument_list) "(&dev->qdev, "iobase", base)" (() "(" (pointer_expression) "&dev->qdev" (&) "&" (field_expression) "dev->qdev" (identifier) "dev" (->) "->" (field_identifier) "qdev" (,) "," (string_literal) ""iobase"" (") """ (string_content) "iobase" (") """ (,) "," (identifier) "base" ()) ")" (;) ";" (expression_statement) "qdev_init_nofail(&dev->qdev);" (call_expression) "qdev_init_nofail(&dev->qdev)" (identifier) "qdev_init_nofail" (argument_list) "(&dev->qdev)" (() "(" (pointer_expression) "&dev->qdev" (&) "&" (field_expression) "dev->qdev" (identifier) "dev" (->) "->" (field_identifier) "qdev" ()) ")" (;) ";" (expression_statement) "qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);" (call_expression) "qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq)" (identifier) "qdev_connect_gpio_out" (argument_list) "(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq)" (() "(" (pointer_expression) "&dev->qdev" (&) "&" (field_expression) "dev->qdev" (identifier) "dev" (->) "->" (field_identifier) "qdev" (,) "," (number_literal) "0" (,) "," (conditional_expression) "isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq" (binary_expression) "isa_irq >= 0" (identifier) "isa_irq" (>=) ">=" (number_literal) "0" (?) "?" (call_expression) "isa_get_irq(dev, isa_irq)" (identifier) "isa_get_irq" (argument_list) "(dev, isa_irq)" (() "(" (identifier) "dev" (,) "," (identifier) "isa_irq" ()) ")" (:) ":" (identifier) "alt_irq" ()) ")" (;) ";" (return_statement) "return dev;" (return) "return" (identifier) "dev" (;) ";" (}) "}" (function_definition) "static inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, "kvm-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "ISADevice" (pointer_declarator) "*kvm_pit_init(ISABus *bus, int base)" (*) "*" (function_declarator) "kvm_pit_init(ISABus *bus, int base)" (identifier) "kvm_pit_init" (parameter_list) "(ISABus *bus, int base)" (() "(" (parameter_declaration) "ISABus *bus" (type_identifier) "ISABus" (pointer_declarator) "*bus" (*) "*" (identifier) "bus" (,) "," (parameter_declaration) "int base" (primitive_type) "int" (identifier) "base" ()) ")" (compound_statement) "{\n ISADevice *dev;\n\n dev = isa_create(bus, "kvm-pit");\n qdev_prop_set_uint32(&dev->qdev, "iobase", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}" ({) "{" (declaration) "ISADevice *dev;" (type_identifier) "ISADevice" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (;) ";" (expression_statement) "dev = isa_create(bus, "kvm-pit");" (assignment_expression) "dev = isa_create(bus, "kvm-pit")" (identifier) "dev" (=) "=" (call_expression) "isa_create(bus, "kvm-pit")" (identifier) "isa_create" (argument_list) "(bus, "kvm-pit")" (() "(" (identifier) "bus" (,) "," (string_literal) ""kvm-pit"" (") """ (string_content) "kvm-pit" (") """ ()) ")" (;) ";" (expression_statement) "qdev_prop_set_uint32(&dev->qdev, "iobase", base);" (call_expression) "qdev_prop_set_uint32(&dev->qdev, "iobase", base)" (identifier) "qdev_prop_set_uint32" (argument_list) "(&dev->qdev, "iobase", base)" (() "(" (pointer_expression) "&dev->qdev" (&) "&" (field_expression) "dev->qdev" (identifier) "dev" (->) "->" (field_identifier) "qdev" (,) "," (string_literal) ""iobase"" (") """ (string_content) "iobase" (") """ (,) "," (identifier) "base" ()) ")" (;) ";" (expression_statement) "qdev_init_nofail(&dev->qdev);" (call_expression) "qdev_init_nofail(&dev->qdev)" (identifier) "qdev_init_nofail" (argument_list) "(&dev->qdev)" (() "(" (pointer_expression) "&dev->qdev" (&) "&" (field_expression) "dev->qdev" (identifier) "dev" (->) "->" (field_identifier) "qdev" ()) ")" (;) ";" (return_statement) "return dev;" (return) "return" (identifier) "dev" (;) ";" (}) "}" (declaration) "void pit_set_gate(ISADevice *dev, int channel, int val);" (primitive_type) "void" (function_declarator) "pit_set_gate(ISADevice *dev, int channel, int val)" (identifier) "pit_set_gate" (parameter_list) "(ISADevice *dev, int channel, int val)" (() "(" (parameter_declaration) "ISADevice *dev" (type_identifier) "ISADevice" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "int channel" (primitive_type) "int" (identifier) "channel" (,) "," (parameter_declaration) "int val" (primitive_type) "int" (identifier) "val" ()) ")" (;) ";" (declaration) "void pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);" (primitive_type) "void" (function_declarator) "pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info)" (identifier) "pit_get_channel_info" (parameter_list) "(ISADevice *dev, int channel, PITChannelInfo *info)" (() "(" (parameter_declaration) "ISADevice *dev" (type_identifier) "ISADevice" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "int channel" (primitive_type) "int" (identifier) "channel" (,) "," (parameter_declaration) "PITChannelInfo *info" (type_identifier) "PITChannelInfo" (pointer_declarator) "*info" (*) "*" (identifier) "info" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* !HW_I8254_H */"
304
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 37.7, "nodes": 191, "errors": 0, "source_hash": "b76253b32a2c2f684f687c47abbe0a71e545611b23434b48a2894cb5869200e8", "categorized_nodes": 137}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HW_I8254_H\n#define HW_I8254_H\n\n#include \"hw.h\"\n#include \"isa.h\"\n\n#define PIT_FREQ 1193182\n\ntypedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;\n\nstatic inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"isa-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}\n\nstatic inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"kvm-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}\n\nvoid pit_set_gate(ISADevice *dev, int channel, int val);\nvoid pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 16, 34, 108, 156, 172, 190], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 2, "type": "identifier", "text": "HW_I8254_H", "parent": 0, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define HW_I8254_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 5, "type": "identifier", "text": "HW_I8254_H", "parent": 3, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"hw.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"hw.h\"", "parent": 6, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 9, "type": "preproc_include", "text": "#include \"isa.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"isa.h\"", "parent": 9, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 16}}, {"id": 12, "type": "preproc_def", "text": "#define PIT_FREQ 1193182\n", "parent": 0, "children": [13, 14, 15], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 14, "type": "identifier", "text": "PIT_FREQ", "parent": 12, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 16}}, {"id": 15, "type": "preproc_arg", "text": "1193182", "parent": 12, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 24}}, {"id": 16, "type": "type_definition", "text": "typedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;", "parent": 0, "children": [17, 18, 33], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 37, "column": 17}}, {"id": 17, "type": "typedef", "text": "typedef", "parent": 16, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 18, "type": "struct_specifier", "text": "struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n}", "parent": 16, "children": [19, 20], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 37, "column": 1}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 14}}, {"id": 20, "type": "type_identifier", "text": "PITChannelInfo", "parent": 18, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 29}}, {"id": 21, "type": "field_declaration", "text": "int gate;", "parent": 18, "children": [22, 23], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 7}}, {"id": 23, "type": "field_identifier", "text": "gate", "parent": 21, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 12}}, {"id": 24, "type": "field_declaration", "text": "int mode;", "parent": 18, "children": [25, 26], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 25, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 7}}, {"id": 26, "type": "field_identifier", "text": "mode", "parent": 24, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 12}}, {"id": 27, "type": "field_declaration", "text": "int initial_count;", "parent": 18, "children": [28, 29], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 22}}, {"id": 28, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 7}}, {"id": 29, "type": "field_identifier", "text": "initial_count", "parent": 27, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 21}}, {"id": 30, "type": "field_declaration", "text": "int out;", "parent": 18, "children": [31, 32], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 12}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 32, "type": "field_identifier", "text": "out", "parent": 30, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 11}}, {"id": 33, "type": "type_identifier", "text": "PITChannelInfo", "parent": 16, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 16}}, {"id": 34, "type": "function_definition", "text": "static inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"isa-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}", "parent": 0, "children": [35, 37, 38], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 35, "type": "storage_class_specifier", "text": "inline", "parent": 34, "children": [36], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 36, "type": "inline", "text": "inline", "parent": 35, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 13}}, {"id": 37, "type": "type_identifier", "text": "ISADevice", "parent": 34, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 23}}, {"id": 38, "type": "pointer_declarator", "text": "*pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)", "parent": 34, "children": [39, 40], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 40, "column": 51}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 25}}, {"id": 40, "type": "function_declarator", "text": "pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)", "parent": 38, "children": [41, 42], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 40, "column": 51}}, {"id": 41, "type": "identifier", "text": "pit_init", "parent": 40, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 33}}, {"id": 42, "type": "parameter_list", "text": "(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)", "parent": 40, "children": [43, 48, 51, 54], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 40, "column": 51}}, {"id": 43, "type": "parameter_declaration", "text": "ISABus *bus", "parent": 42, "children": [44, 45], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 45}}, {"id": 44, "type": "type_identifier", "text": "ISABus", "parent": 43, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 40}}, {"id": 45, "type": "pointer_declarator", "text": "*bus", "parent": 43, "children": [46, 47], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 45}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 42}}, {"id": 47, "type": "identifier", "text": "bus", "parent": 45, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 45}}, {"id": 48, "type": "parameter_declaration", "text": "int base", "parent": 42, "children": [49, 50], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 55}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 50}}, {"id": 50, "type": "identifier", "text": "base", "parent": 48, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 55}}, {"id": 51, "type": "parameter_declaration", "text": "int isa_irq", "parent": 42, "children": [52, 53], "start_point": {"row": 39, "column": 57}, "end_point": {"row": 39, "column": 68}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 39, "column": 57}, "end_point": {"row": 39, "column": 60}}, {"id": 53, "type": "identifier", "text": "isa_irq", "parent": 51, "children": [], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 68}}, {"id": 54, "type": "parameter_declaration", "text": "qemu_irq alt_irq", "parent": 42, "children": [55, 56], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 50}}, {"id": 55, "type": "type_identifier", "text": "qemu_irq", "parent": 54, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 42}}, {"id": 56, "type": "identifier", "text": "alt_irq", "parent": 54, "children": [], "start_point": {"row": 40, "column": 43}, "end_point": {"row": 40, "column": 50}}, {"id": 57, "type": "declaration", "text": "ISADevice *dev;", "parent": 34, "children": [58, 59], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 19}}, {"id": 58, "type": "type_identifier", "text": "ISADevice", "parent": 57, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 13}}, {"id": 59, "type": "pointer_declarator", "text": "*dev", "parent": 57, "children": [60, 61], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 18}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 15}}, {"id": 61, "type": "identifier", "text": "dev", "parent": 59, "children": [], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 18}}, {"id": 62, "type": "assignment_expression", "text": "dev = isa_create(bus, \"isa-pit\")", "parent": 34, "children": [63, 64, 65], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 36}}, {"id": 63, "type": "identifier", "text": "dev", "parent": 62, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 7}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 65, "type": "call_expression", "text": "isa_create(bus, \"isa-pit\")", "parent": 62, "children": [66, 67], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 36}}, {"id": 66, "type": "identifier", "text": "isa_create", "parent": 65, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 20}}, {"id": 67, "type": "argument_list", "text": "(bus, \"isa-pit\")", "parent": 65, "children": [68, 69], "start_point": {"row": 44, "column": 20}, "end_point": {"row": 44, "column": 36}}, {"id": 68, "type": "identifier", "text": "bus", "parent": 67, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 24}}, {"id": 69, "type": "string_literal", "text": "\"isa-pit\"", "parent": 67, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 35}}, {"id": 70, "type": "call_expression", "text": "qdev_prop_set_uint32(&dev->qdev, \"iobase\", base)", "parent": 34, "children": [71, 72], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 52}}, {"id": 71, "type": "identifier", "text": "qdev_prop_set_uint32", "parent": 70, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 24}}, {"id": 72, "type": "argument_list", "text": "(&dev->qdev, \"iobase\", base)", "parent": 70, "children": [73, 77, 78], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 52}}, {"id": 73, "type": "pointer_expression", "text": "&dev->qdev", "parent": 72, "children": [74], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 35}}, {"id": 74, "type": "field_expression", "text": "dev->qdev", "parent": 73, "children": [75, 76], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 35}}, {"id": 75, "type": "identifier", "text": "dev", "parent": 74, "children": [], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 29}}, {"id": 76, "type": "field_identifier", "text": "qdev", "parent": 74, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 35}}, {"id": 77, "type": "string_literal", "text": "\"iobase\"", "parent": 72, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 45}}, {"id": 78, "type": "identifier", "text": "base", "parent": 72, "children": [], "start_point": {"row": 45, "column": 47}, "end_point": {"row": 45, "column": 51}}, {"id": 79, "type": "call_expression", "text": "qdev_init_nofail(&dev->qdev)", "parent": 34, "children": [80, 81], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 32}}, {"id": 80, "type": "identifier", "text": "qdev_init_nofail", "parent": 79, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 20}}, {"id": 81, "type": "argument_list", "text": "(&dev->qdev)", "parent": 79, "children": [82], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 32}}, {"id": 82, "type": "pointer_expression", "text": "&dev->qdev", "parent": 81, "children": [83], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 31}}, {"id": 83, "type": "field_expression", "text": "dev->qdev", "parent": 82, "children": [84, 85], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 31}}, {"id": 84, "type": "identifier", "text": "dev", "parent": 83, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 25}}, {"id": 85, "type": "field_identifier", "text": "qdev", "parent": 83, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 31}}, {"id": 86, "type": "call_expression", "text": "qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq)", "parent": 34, "children": [87, 88], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 48, "column": 77}}, {"id": 87, "type": "identifier", "text": "qdev_connect_gpio_out", "parent": 86, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 25}}, {"id": 88, "type": "argument_list", "text": "(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq)", "parent": 86, "children": [89, 93, 94], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 48, "column": 77}}, {"id": 89, "type": "pointer_expression", "text": "&dev->qdev", "parent": 88, "children": [90], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 36}}, {"id": 90, "type": "field_expression", "text": "dev->qdev", "parent": 89, "children": [91, 92], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 36}}, {"id": 91, "type": "identifier", "text": "dev", "parent": 90, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 30}}, {"id": 92, "type": "field_identifier", "text": "qdev", "parent": 90, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 36}}, {"id": 93, "type": "number_literal", "text": "0", "parent": 88, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 39}}, {"id": 94, "type": "conditional_expression", "text": "isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq", "parent": 88, "children": [95, 99, 100, 105], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 76}}, {"id": 95, "type": "binary_expression", "text": "isa_irq >= 0", "parent": 94, "children": [96, 97, 98], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 38}}, {"id": 96, "type": "identifier", "text": "isa_irq", "parent": 95, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 33}}, {"id": 97, "type": ">=", "text": ">=", "parent": 95, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 36}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 38}}, {"id": 99, "type": "?", "text": "?", "parent": 94, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 40}}, {"id": 100, "type": "call_expression", "text": "isa_get_irq(dev, isa_irq)", "parent": 94, "children": [101, 102], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 66}}, {"id": 101, "type": "identifier", "text": "isa_get_irq", "parent": 100, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 52}}, {"id": 102, "type": "argument_list", "text": "(dev, isa_irq)", "parent": 100, "children": [103, 104], "start_point": {"row": 48, "column": 52}, "end_point": {"row": 48, "column": 66}}, {"id": 103, "type": "identifier", "text": "dev", "parent": 102, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 56}}, {"id": 104, "type": "identifier", "text": "isa_irq", "parent": 102, "children": [], "start_point": {"row": 48, "column": 58}, "end_point": {"row": 48, "column": 65}}, {"id": 105, "type": "identifier", "text": "alt_irq", "parent": 94, "children": [], "start_point": {"row": 48, "column": 69}, "end_point": {"row": 48, "column": 76}}, {"id": 106, "type": "return_statement", "text": "return dev;", "parent": 34, "children": [107], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 15}}, {"id": 107, "type": "identifier", "text": "dev", "parent": 106, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 14}}, {"id": 108, "type": "function_definition", "text": "static inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"kvm-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}", "parent": 0, "children": [109, 111, 112], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 109, "type": "storage_class_specifier", "text": "inline", "parent": 108, "children": [110], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 13}}, {"id": 110, "type": "inline", "text": "inline", "parent": 109, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 13}}, {"id": 111, "type": "type_identifier", "text": "ISADevice", "parent": 108, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 23}}, {"id": 112, "type": "pointer_declarator", "text": "*kvm_pit_init(ISABus *bus, int base)", "parent": 108, "children": [113, 114], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 60}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 25}}, {"id": 114, "type": "function_declarator", "text": "kvm_pit_init(ISABus *bus, int base)", "parent": 112, "children": [115, 116], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 60}}, {"id": 115, "type": "identifier", "text": "kvm_pit_init", "parent": 114, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 37}}, {"id": 116, "type": "parameter_list", "text": "(ISABus *bus, int base)", "parent": 114, "children": [117, 122], "start_point": {"row": 53, "column": 37}, "end_point": {"row": 53, "column": 60}}, {"id": 117, "type": "parameter_declaration", "text": "ISABus *bus", "parent": 116, "children": [118, 119], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 49}}, {"id": 118, "type": "type_identifier", "text": "ISABus", "parent": 117, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 44}}, {"id": 119, "type": "pointer_declarator", "text": "*bus", "parent": 117, "children": [120, 121], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 49}}, {"id": 120, "type": "*", "text": "*", "parent": 119, "children": [], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 46}}, {"id": 121, "type": "identifier", "text": "bus", "parent": 119, "children": [], "start_point": {"row": 53, "column": 46}, "end_point": {"row": 53, "column": 49}}, {"id": 122, "type": "parameter_declaration", "text": "int base", "parent": 116, "children": [123, 124], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 59}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 54}}, {"id": 124, "type": "identifier", "text": "base", "parent": 122, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 59}}, {"id": 125, "type": "declaration", "text": "ISADevice *dev;", "parent": 108, "children": [126, 127], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 19}}, {"id": 126, "type": "type_identifier", "text": "ISADevice", "parent": 125, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 13}}, {"id": 127, "type": "pointer_declarator", "text": "*dev", "parent": 125, "children": [128, 129], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 18}}, {"id": 128, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 15}}, {"id": 129, "type": "identifier", "text": "dev", "parent": 127, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 18}}, {"id": 130, "type": "assignment_expression", "text": "dev = isa_create(bus, \"kvm-pit\")", "parent": 108, "children": [131, 132, 133], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 36}}, {"id": 131, "type": "identifier", "text": "dev", "parent": 130, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 7}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 133, "type": "call_expression", "text": "isa_create(bus, \"kvm-pit\")", "parent": 130, "children": [134, 135], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 36}}, {"id": 134, "type": "identifier", "text": "isa_create", "parent": 133, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 20}}, {"id": 135, "type": "argument_list", "text": "(bus, \"kvm-pit\")", "parent": 133, "children": [136, 137], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 36}}, {"id": 136, "type": "identifier", "text": "bus", "parent": 135, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 24}}, {"id": 137, "type": "string_literal", "text": "\"kvm-pit\"", "parent": 135, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 35}}, {"id": 138, "type": "call_expression", "text": "qdev_prop_set_uint32(&dev->qdev, \"iobase\", base)", "parent": 108, "children": [139, 140], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 52}}, {"id": 139, "type": "identifier", "text": "qdev_prop_set_uint32", "parent": 138, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 24}}, {"id": 140, "type": "argument_list", "text": "(&dev->qdev, \"iobase\", base)", "parent": 138, "children": [141, 145, 146], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 52}}, {"id": 141, "type": "pointer_expression", "text": "&dev->qdev", "parent": 140, "children": [142], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 35}}, {"id": 142, "type": "field_expression", "text": "dev->qdev", "parent": 141, "children": [143, 144], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 35}}, {"id": 143, "type": "identifier", "text": "dev", "parent": 142, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 29}}, {"id": 144, "type": "field_identifier", "text": "qdev", "parent": 142, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 35}}, {"id": 145, "type": "string_literal", "text": "\"iobase\"", "parent": 140, "children": [], "start_point": {"row": 58, "column": 37}, "end_point": {"row": 58, "column": 45}}, {"id": 146, "type": "identifier", "text": "base", "parent": 140, "children": [], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 51}}, {"id": 147, "type": "call_expression", "text": "qdev_init_nofail(&dev->qdev)", "parent": 108, "children": [148, 149], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 32}}, {"id": 148, "type": "identifier", "text": "qdev_init_nofail", "parent": 147, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 20}}, {"id": 149, "type": "argument_list", "text": "(&dev->qdev)", "parent": 147, "children": [150], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 32}}, {"id": 150, "type": "pointer_expression", "text": "&dev->qdev", "parent": 149, "children": [151], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 31}}, {"id": 151, "type": "field_expression", "text": "dev->qdev", "parent": 150, "children": [152, 153], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 31}}, {"id": 152, "type": "identifier", "text": "dev", "parent": 151, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 25}}, {"id": 153, "type": "field_identifier", "text": "qdev", "parent": 151, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 31}}, {"id": 154, "type": "return_statement", "text": "return dev;", "parent": 108, "children": [155], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 15}}, {"id": 155, "type": "identifier", "text": "dev", "parent": 154, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 14}}, {"id": 156, "type": "declaration", "text": "void pit_set_gate(ISADevice *dev, int channel, int val);", "parent": 0, "children": [157, 158], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 56}}, {"id": 157, "type": "primitive_type", "text": "void", "parent": 156, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 158, "type": "function_declarator", "text": "pit_set_gate(ISADevice *dev, int channel, int val)", "parent": 156, "children": [159, 160], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 55}}, {"id": 159, "type": "identifier", "text": "pit_set_gate", "parent": 158, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 17}}, {"id": 160, "type": "parameter_list", "text": "(ISADevice *dev, int channel, int val)", "parent": 158, "children": [161, 166, 169], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 55}}, {"id": 161, "type": "parameter_declaration", "text": "ISADevice *dev", "parent": 160, "children": [162, 163], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 32}}, {"id": 162, "type": "type_identifier", "text": "ISADevice", "parent": 161, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 27}}, {"id": 163, "type": "pointer_declarator", "text": "*dev", "parent": 161, "children": [164, 165], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 32}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 29}}, {"id": 165, "type": "identifier", "text": "dev", "parent": 163, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 32}}, {"id": 166, "type": "parameter_declaration", "text": "int channel", "parent": 160, "children": [167, 168], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 45}}, {"id": 167, "type": "primitive_type", "text": "int", "parent": 166, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 37}}, {"id": 168, "type": "identifier", "text": "channel", "parent": 166, "children": [], "start_point": {"row": 64, "column": 38}, "end_point": {"row": 64, "column": 45}}, {"id": 169, "type": "parameter_declaration", "text": "int val", "parent": 160, "children": [170, 171], "start_point": {"row": 64, "column": 47}, "end_point": {"row": 64, "column": 54}}, {"id": 170, "type": "primitive_type", "text": "int", "parent": 169, "children": [], "start_point": {"row": 64, "column": 47}, "end_point": {"row": 64, "column": 50}}, {"id": 171, "type": "identifier", "text": "val", "parent": 169, "children": [], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 54}}, {"id": 172, "type": "declaration", "text": "void pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);", "parent": 0, "children": [173, 174], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 77}}, {"id": 173, "type": "primitive_type", "text": "void", "parent": 172, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 4}}, {"id": 174, "type": "function_declarator", "text": "pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info)", "parent": 172, "children": [175, 176], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 76}}, {"id": 175, "type": "identifier", "text": "pit_get_channel_info", "parent": 174, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 25}}, {"id": 176, "type": "parameter_list", "text": "(ISADevice *dev, int channel, PITChannelInfo *info)", "parent": 174, "children": [177, 182, 185], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 76}}, {"id": 177, "type": "parameter_declaration", "text": "ISADevice *dev", "parent": 176, "children": [178, 179], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 40}}, {"id": 178, "type": "type_identifier", "text": "ISADevice", "parent": 177, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 35}}, {"id": 179, "type": "pointer_declarator", "text": "*dev", "parent": 177, "children": [180, 181], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 40}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 37}}, {"id": 181, "type": "identifier", "text": "dev", "parent": 179, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 40}}, {"id": 182, "type": "parameter_declaration", "text": "int channel", "parent": 176, "children": [183, 184], "start_point": {"row": 65, "column": 42}, "end_point": {"row": 65, "column": 53}}, {"id": 183, "type": "primitive_type", "text": "int", "parent": 182, "children": [], "start_point": {"row": 65, "column": 42}, "end_point": {"row": 65, "column": 45}}, {"id": 184, "type": "identifier", "text": "channel", "parent": 182, "children": [], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 53}}, {"id": 185, "type": "parameter_declaration", "text": "PITChannelInfo *info", "parent": 176, "children": [186, 187], "start_point": {"row": 65, "column": 55}, "end_point": {"row": 65, "column": 75}}, {"id": 186, "type": "type_identifier", "text": "PITChannelInfo", "parent": 185, "children": [], "start_point": {"row": 65, "column": 55}, "end_point": {"row": 65, "column": 69}}, {"id": 187, "type": "pointer_declarator", "text": "*info", "parent": 185, "children": [188, 189], "start_point": {"row": 65, "column": 70}, "end_point": {"row": 65, "column": 75}}, {"id": 188, "type": "*", "text": "*", "parent": 187, "children": [], "start_point": {"row": 65, "column": 70}, "end_point": {"row": 65, "column": 71}}, {"id": 189, "type": "identifier", "text": "info", "parent": 187, "children": [], "start_point": {"row": 65, "column": 71}, "end_point": {"row": 65, "column": 75}}, {"id": 190, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34, 40, 108, 114, 158, 174], "variables": [16, 21, 24, 27, 30, 43, 48, 51, 54, 57, 117, 122, 125, 156, 161, 166, 169, 172, 177, 182, 185], "classes": [18, 19, 35, 109], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [65, 70, 73, 74, 79, 82, 83, 86, 89, 90, 95, 100, 133, 138, 141, 142, 147, 150, 151], "assignments": [62, 130], "loops": [], "conditionals": [0, 1, 2, 5, 14, 20, 23, 26, 29, 32, 33, 37, 41, 44, 47, 50, 53, 55, 56, 58, 61, 63, 66, 68, 71, 75, 76, 78, 80, 84, 85, 87, 91, 92, 94, 96, 101, 103, 104, 105, 107, 111, 115, 118, 121, 124, 126, 129, 131, 134, 136, 139, 143, 144, 146, 148, 152, 153, 155, 159, 162, 165, 168, 171, 175, 178, 181, 184, 186, 189, 190], "returns": [106, 154], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 69, 77, 93, 98, 137, 145], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "base,", "text_snippet": "static inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n "}, {"node_id": 40, "universal_type": "function", "name": "base,", "text_snippet": "pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)"}, {"node_id": 108, "universal_type": "function", "name": "base)", "text_snippet": "static inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_cr"}, {"node_id": 114, "universal_type": "function", "name": "base)", "text_snippet": "kvm_pit_init(ISABus *bus, int base)"}, {"node_id": 158, "universal_type": "function", "name": "channel,", "text_snippet": "pit_set_gate(ISADevice *dev, int channel, int val)"}, {"node_id": 174, "universal_type": "function", "name": "channel,", "text_snippet": "pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info)"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "PITChannelInfo", "text_snippet": "struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n}"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 35, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 109, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include \"hw.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"isa.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * QEMU 8253/8254 interval timer emulation\n *\n * Copyright (c) 2003-2004 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL\n * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n#ifndef HW_I8254_H\n#define HW_I8254_H\n\n#include \"hw.h\"\n#include \"isa.h\"\n\n#define PIT_FREQ 1193182\n\ntypedef struct PITChannelInfo {\n int gate;\n int mode;\n int initial_count;\n int out;\n} PITChannelInfo;\n\nstatic inline ISADevice *pit_init(ISABus *bus, int base, int isa_irq,\n qemu_irq alt_irq)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"isa-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n qdev_connect_gpio_out(&dev->qdev, 0,\n isa_irq >= 0 ? isa_get_irq(dev, isa_irq) : alt_irq);\n\n return dev;\n}\n\nstatic inline ISADevice *kvm_pit_init(ISABus *bus, int base)\n{\n ISADevice *dev;\n\n dev = isa_create(bus, \"kvm-pit\");\n qdev_prop_set_uint32(&dev->qdev, \"iobase\", base);\n qdev_init_nofail(&dev->qdev);\n\n return dev;\n}\n\nvoid pit_set_gate(ISADevice *dev, int channel, int val);\nvoid pit_get_channel_info(ISADevice *dev, int channel, PITChannelInfo *info);\n\n#endif /* !HW_I8254_H */\n"}
80,739
c
#pragma once #include "../shaders/ShaderProgram.h" #include "../entities/Camera.h" #include "../utils/Maths.h" #include <gtc/matrix_transform.hpp> class SkyboxShader : public ShaderProgram { public: SkyboxShader(); void loadProjectionMatrix(glm::mat4 matrix); void loadViewMatrix(Camera *camera); void loadFogColour(glm::vec3 colour); protected: void bindAttributes(); void getAllUniformLocations(); private: int location_projectionMatrix; int location_viewMatrix; int location_fogColour; float rotation = 0; const float ROTATE_SPEED = 1.0f; };
28.09
22
(translation_unit) "#pragma once\n#include "../shaders/ShaderProgram.h"\n#include "../entities/Camera.h"\n#include "../utils/Maths.h"\n\n#include <gtc/matrix_transform.hpp>\n\nclass SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n void loadViewMatrix(Camera *camera);\n void loadFogColour(glm::vec3 colour);\n protected:\n void bindAttributes();\n void getAllUniformLocations(); \n private:\n int location_projectionMatrix;\n int location_viewMatrix;\n int location_fogColour;\n\n float rotation = 0;\n const float ROTATE_SPEED = 1.0f;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "../shaders/ShaderProgram.h"\n" (#include) "#include" (string_literal) ""../shaders/ShaderProgram.h"" (") """ (string_content) "../shaders/ShaderProgram.h" (") """ (preproc_include) "#include "../entities/Camera.h"\n" (#include) "#include" (string_literal) ""../entities/Camera.h"" (") """ (string_content) "../entities/Camera.h" (") """ (preproc_include) "#include "../utils/Maths.h"\n" (#include) "#include" (string_literal) ""../utils/Maths.h"" (") """ (string_content) "../utils/Maths.h" (") """ (preproc_include) "#include <gtc/matrix_transform.hpp>\n" (#include) "#include" (system_lib_string) "<gtc/matrix_transform.hpp>" (function_definition) "class SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n void loadViewMatrix(Camera *camera);\n void loadFogColour(glm::vec3 colour);\n protected:\n void bindAttributes();\n void getAllUniformLocations(); \n private:\n int location_projectionMatrix;\n int location_viewMatrix;\n int location_fogColour;\n\n float rotation = 0;\n const float ROTATE_SPEED = 1.0f;\n}" (type_identifier) "class" (ERROR) "SkyboxShader : public" (identifier) "SkyboxShader" (:) ":" (identifier) "public" (identifier) "ShaderProgram" (compound_statement) "{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n void loadViewMatrix(Camera *camera);\n void loadFogColour(glm::vec3 colour);\n protected:\n void bindAttributes();\n void getAllUniformLocations(); \n private:\n int location_projectionMatrix;\n int location_viewMatrix;\n int location_fogColour;\n\n float rotation = 0;\n const float ROTATE_SPEED = 1.0f;\n}" ({) "{" (labeled_statement) "public:\n SkyboxShader();" (statement_identifier) "public" (:) ":" (expression_statement) "SkyboxShader();" (call_expression) "SkyboxShader()" (identifier) "SkyboxShader" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void loadProjectionMatrix(glm::mat4 matrix);" (primitive_type) "void" (function_declarator) "loadProjectionMatrix(glm::mat4 matrix)" (identifier) "loadProjectionMatrix" (parameter_list) "(glm::mat4 matrix)" (() "(" (parameter_declaration) "glm::mat4 matrix" (type_identifier) "glm" (ERROR) "::mat4" (:) ":" (:) ":" (identifier) "mat4" (identifier) "matrix" ()) ")" (;) ";" (declaration) "void loadViewMatrix(Camera *camera);" (primitive_type) "void" (function_declarator) "loadViewMatrix(Camera *camera)" (identifier) "loadViewMatrix" (parameter_list) "(Camera *camera)" (() "(" (parameter_declaration) "Camera *camera" (type_identifier) "Camera" (pointer_declarator) "*camera" (*) "*" (identifier) "camera" ()) ")" (;) ";" (declaration) "void loadFogColour(glm::vec3 colour);" (primitive_type) "void" (function_declarator) "loadFogColour(glm::vec3 colour)" (identifier) "loadFogColour" (parameter_list) "(glm::vec3 colour)" (() "(" (parameter_declaration) "glm::vec3 colour" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (identifier) "colour" ()) ")" (;) ";" (labeled_statement) "protected:\n void bindAttributes();" (statement_identifier) "protected" (:) ":" (declaration) "void bindAttributes();" (primitive_type) "void" (function_declarator) "bindAttributes()" (identifier) "bindAttributes" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void getAllUniformLocations();" (primitive_type) "void" (function_declarator) "getAllUniformLocations()" (identifier) "getAllUniformLocations" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n int location_projectionMatrix;" (statement_identifier) "private" (:) ":" (declaration) "int location_projectionMatrix;" (primitive_type) "int" (identifier) "location_projectionMatrix" (;) ";" (declaration) "int location_viewMatrix;" (primitive_type) "int" (identifier) "location_viewMatrix" (;) ";" (declaration) "int location_fogColour;" (primitive_type) "int" (identifier) "location_fogColour" (;) ";" (declaration) "float rotation = 0;" (primitive_type) "float" (init_declarator) "rotation = 0" (identifier) "rotation" (=) "=" (number_literal) "0" (;) ";" (declaration) "const float ROTATE_SPEED = 1.0f;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (init_declarator) "ROTATE_SPEED = 1.0f" (identifier) "ROTATE_SPEED" (=) "=" (number_literal) "1.0f" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
140
3
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 28.09, "nodes": 86, "errors": 0, "source_hash": "1cb9f7d1a41a555797feae69cff93f2f623396df27e1c04e312faffc934fc8aa", "categorized_nodes": 56}, "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 \"../shaders/ShaderProgram.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": "\"../shaders/ShaderProgram.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 37}}, {"id": 6, "type": "preproc_include", "text": "#include \"../entities/Camera.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": "\"../entities/Camera.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include \"../utils/Maths.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": "string_literal", "text": "\"../utils/Maths.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <gtc/matrix_transform.hpp>\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": "<gtc/matrix_transform.hpp>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 35}}, {"id": 15, "type": "function_definition", "text": "class SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n void loadViewMatrix(Camera *camera);\n void loadFogColour(glm::vec3 colour);\n protected:\n void bindAttributes();\n\t void getAllUniformLocations(); \n private:\n int location_projectionMatrix;\n\t int location_viewMatrix;\n int location_fogColour;\n\n float rotation = 0;\n const float ROTATE_SPEED = 1.0f;\n}", "parent": null, "children": [16, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 16, "type": "ERROR", "text": "SkyboxShader : public", "parent": 15, "children": [17], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 27}}, {"id": 17, "type": "identifier", "text": "SkyboxShader", "parent": 16, "children": [], "start_point": {"row": 7, "column": 6}, "end_point": {"row": 7, "column": 18}}, {"id": 18, "type": "identifier", "text": "ShaderProgram", "parent": 15, "children": [], "start_point": {"row": 7, "column": 28}, "end_point": {"row": 7, "column": 41}}, {"id": 19, "type": "labeled_statement", "text": "public:\n SkyboxShader();", "parent": 15, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 10, "column": 23}}, {"id": 20, "type": "call_expression", "text": "SkyboxShader()", "parent": 19, "children": [21, 22], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 22}}, {"id": 21, "type": "identifier", "text": "SkyboxShader", "parent": 20, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 22, "type": "argument_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 22}}, {"id": 23, "type": "declaration", "text": "void loadProjectionMatrix(glm::mat4 matrix);", "parent": 15, "children": [24, 25], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 52}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 25, "type": "function_declarator", "text": "loadProjectionMatrix(glm::mat4 matrix)", "parent": 23, "children": [26, 27], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 51}}, {"id": 26, "type": "identifier", "text": "loadProjectionMatrix", "parent": 25, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 33}}, {"id": 27, "type": "parameter_list", "text": "(glm::mat4 matrix)", "parent": 25, "children": [28], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 51}}, {"id": 28, "type": "parameter_declaration", "text": "glm::mat4 matrix", "parent": 27, "children": [29, 30, 32], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 50}}, {"id": 29, "type": "type_identifier", "text": "glm", "parent": 28, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 37}}, {"id": 30, "type": "ERROR", "text": "::mat4", "parent": 28, "children": [31], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 43}}, {"id": 31, "type": "identifier", "text": "mat4", "parent": 30, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 43}}, {"id": 32, "type": "identifier", "text": "matrix", "parent": 28, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 50}}, {"id": 33, "type": "declaration", "text": "void loadViewMatrix(Camera *camera);", "parent": 15, "children": [34, 35], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 44}}, {"id": 34, "type": "primitive_type", "text": "void", "parent": 33, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 35, "type": "function_declarator", "text": "loadViewMatrix(Camera *camera)", "parent": 33, "children": [36, 37], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 43}}, {"id": 36, "type": "identifier", "text": "loadViewMatrix", "parent": 35, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 27}}, {"id": 37, "type": "parameter_list", "text": "(Camera *camera)", "parent": 35, "children": [38], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 43}}, {"id": 38, "type": "parameter_declaration", "text": "Camera *camera", "parent": 37, "children": [39, 40], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 42}}, {"id": 39, "type": "type_identifier", "text": "Camera", "parent": 38, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 34}}, {"id": 40, "type": "pointer_declarator", "text": "*camera", "parent": 38, "children": [41, 42], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 42}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 36}}, {"id": 42, "type": "identifier", "text": "camera", "parent": 40, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 42}}, {"id": 43, "type": "declaration", "text": "void loadFogColour(glm::vec3 colour);", "parent": 15, "children": [44, 45], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 45}}, {"id": 44, "type": "primitive_type", "text": "void", "parent": 43, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 12}}, {"id": 45, "type": "function_declarator", "text": "loadFogColour(glm::vec3 colour)", "parent": 43, "children": [46, 47], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 44}}, {"id": 46, "type": "identifier", "text": "loadFogColour", "parent": 45, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 26}}, {"id": 47, "type": "parameter_list", "text": "(glm::vec3 colour)", "parent": 45, "children": [48], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 44}}, {"id": 48, "type": "parameter_declaration", "text": "glm::vec3 colour", "parent": 47, "children": [49, 50, 52], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 43}}, {"id": 49, "type": "type_identifier", "text": "glm", "parent": 48, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 30}}, {"id": 50, "type": "ERROR", "text": "::vec3", "parent": 48, "children": [51], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 36}}, {"id": 51, "type": "identifier", "text": "vec3", "parent": 50, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 36}}, {"id": 52, "type": "identifier", "text": "colour", "parent": 48, "children": [], "start_point": {"row": 13, "column": 37}, "end_point": {"row": 13, "column": 43}}, {"id": 53, "type": "labeled_statement", "text": "protected:\n void bindAttributes();", "parent": 15, "children": [54], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 15, "column": 30}}, {"id": 54, "type": "declaration", "text": "void bindAttributes();", "parent": 53, "children": [55, 56], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 30}}, {"id": 55, "type": "primitive_type", "text": "void", "parent": 54, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 12}}, {"id": 56, "type": "function_declarator", "text": "bindAttributes()", "parent": 54, "children": [57, 58], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 29}}, {"id": 57, "type": "identifier", "text": "bindAttributes", "parent": 56, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 27}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 29}}, {"id": 59, "type": "declaration", "text": "void getAllUniformLocations();", "parent": 15, "children": [60, 61], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 35}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 9}}, {"id": 61, "type": "function_declarator", "text": "getAllUniformLocations()", "parent": 59, "children": [62, 63], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 34}}, {"id": 62, "type": "identifier", "text": "getAllUniformLocations", "parent": 61, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 32}}, {"id": 63, "type": "parameter_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 34}}, {"id": 64, "type": "labeled_statement", "text": "private:\n int location_projectionMatrix;", "parent": 15, "children": [65], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 38}}, {"id": 65, "type": "declaration", "text": "int location_projectionMatrix;", "parent": 64, "children": [66, 67], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 38}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 11}}, {"id": 67, "type": "identifier", "text": "location_projectionMatrix", "parent": 65, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 37}}, {"id": 68, "type": "declaration", "text": "int location_viewMatrix;", "parent": 15, "children": [69, 70], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 29}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 8}}, {"id": 70, "type": "identifier", "text": "location_viewMatrix", "parent": 68, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 28}}, {"id": 71, "type": "declaration", "text": "int location_fogColour;", "parent": 15, "children": [72, 73], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 31}}, {"id": 72, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 11}}, {"id": 73, "type": "identifier", "text": "location_fogColour", "parent": 71, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 30}}, {"id": 74, "type": "declaration", "text": "float rotation = 0;", "parent": 15, "children": [75, 76], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 27}}, {"id": 75, "type": "primitive_type", "text": "float", "parent": 74, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 13}}, {"id": 76, "type": "init_declarator", "text": "rotation = 0", "parent": 74, "children": [77, 78, 79], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 26}}, {"id": 77, "type": "identifier", "text": "rotation", "parent": 76, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 22}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 24}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 26}}, {"id": 80, "type": "declaration", "text": "const float ROTATE_SPEED = 1.0f;", "parent": 15, "children": [81, 82], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 40}}, {"id": 81, "type": "primitive_type", "text": "float", "parent": 80, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 19}}, {"id": 82, "type": "init_declarator", "text": "ROTATE_SPEED = 1.0f", "parent": 80, "children": [83, 84, 85], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 39}}, {"id": 83, "type": "identifier", "text": "ROTATE_SPEED", "parent": 82, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 32}}, {"id": 84, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 85, "type": "number_literal", "text": "1.0f", "parent": 82, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 39}}]}, "node_categories": {"declarations": {"functions": [15, 25, 35, 45, 56, 61], "variables": [23, 28, 33, 38, 43, 48, 54, 59, 65, 68, 71, 74, 80], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [20], "assignments": [], "loops": [], "conditionals": [17, 18, 21, 26, 29, 31, 32, 36, 39, 42, 46, 49, 51, 52, 57, 62, 67, 70, 73, 77, 83], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 79, 85], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "SkyboxShader", "text_snippet": "class SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadPro"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "loadProjectionMatrix(glm::mat4 matrix)"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "loadViewMatrix(Camera *camera)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "loadFogColour(glm::vec3 colour)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "bindAttributes()"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "getAllUniformLocations()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"../shaders/ShaderProgram.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"../entities/Camera.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"../utils/Maths.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <gtc/matrix_transform.hpp>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"../shaders/ShaderProgram.h\"\n#include \"../entities/Camera.h\"\n#include \"../utils/Maths.h\"\n\n#include <gtc/matrix_transform.hpp>\n\nclass SkyboxShader : public ShaderProgram\n{\n public:\n SkyboxShader();\n void loadProjectionMatrix(glm::mat4 matrix);\n void loadViewMatrix(Camera *camera);\n void loadFogColour(glm::vec3 colour);\n protected:\n void bindAttributes();\n\t void getAllUniformLocations(); \n private:\n int location_projectionMatrix;\n\t int location_viewMatrix;\n int location_fogColour;\n\n float rotation = 0;\n const float ROTATE_SPEED = 1.0f;\n};"}
80,740
c
/* font.c */ #include <string.h> #include "../tk/tk.h" #include "glaux.h" static GLuint bitmapBase; void auxCreateFont(void) { bitmapBase = glGenLists(256); if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) { auxQuit(); } } void auxDrawStr(char *str) { glPushAttrib(GL_LIST_BIT); glListBase(bitmapBase); glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str); glPopAttrib(); }
18.27
22
(translation_unit) "/* font.c */\n\n\n#include <string.h>\n#include "../tk/tk.h"\n#include "glaux.h"\n\n\nstatic GLuint bitmapBase;\n\n\nvoid auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}\n\nvoid auxDrawStr(char *str)\n{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);\n glPopAttrib();\n}\n" (comment) "/* font.c */" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "../tk/tk.h"\n" (#include) "#include" (string_literal) ""../tk/tk.h"" (") """ (string_content) "../tk/tk.h" (") """ (preproc_include) "#include "glaux.h"\n" (#include) "#include" (string_literal) ""glaux.h"" (") """ (string_content) "glaux.h" (") """ (declaration) "static GLuint bitmapBase;" (storage_class_specifier) "static" (static) "static" (type_identifier) "GLuint" (identifier) "bitmapBase" (;) ";" (function_definition) "void auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}" (primitive_type) "void" (function_declarator) "auxCreateFont(void)" (identifier) "auxCreateFont" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}" ({) "{" (expression_statement) "bitmapBase = glGenLists(256);" (assignment_expression) "bitmapBase = glGenLists(256)" (identifier) "bitmapBase" (=) "=" (call_expression) "glGenLists(256)" (identifier) "glGenLists" (argument_list) "(256)" (() "(" (number_literal) "256" ()) ")" (;) ";" (if_statement) "if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }" (if) "if" (parenthesized_expression) "(tkCreateBitmapFont(bitmapBase) == GL_FALSE)" (() "(" (binary_expression) "tkCreateBitmapFont(bitmapBase) == GL_FALSE" (call_expression) "tkCreateBitmapFont(bitmapBase)" (identifier) "tkCreateBitmapFont" (argument_list) "(bitmapBase)" (() "(" (identifier) "bitmapBase" ()) ")" (==) "==" (identifier) "GL_FALSE" ()) ")" (compound_statement) "{\n auxQuit();\n }" ({) "{" (expression_statement) "auxQuit();" (call_expression) "auxQuit()" (identifier) "auxQuit" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void auxDrawStr(char *str)\n{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);\n glPopAttrib();\n}" (primitive_type) "void" (function_declarator) "auxDrawStr(char *str)" (identifier) "auxDrawStr" (parameter_list) "(char *str)" (() "(" (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);\n glPopAttrib();\n}" ({) "{" (expression_statement) "glPushAttrib(GL_LIST_BIT);" (call_expression) "glPushAttrib(GL_LIST_BIT)" (identifier) "glPushAttrib" (argument_list) "(GL_LIST_BIT)" (() "(" (identifier) "GL_LIST_BIT" ()) ")" (;) ";" (expression_statement) "glListBase(bitmapBase);" (call_expression) "glListBase(bitmapBase)" (identifier) "glListBase" (argument_list) "(bitmapBase)" (() "(" (identifier) "bitmapBase" ()) ")" (;) ";" (expression_statement) "glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);" (call_expression) "glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str)" (identifier) "glCallLists" (argument_list) "(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str)" (() "(" (call_expression) "strlen(str)" (identifier) "strlen" (argument_list) "(str)" (() "(" (identifier) "str" ()) ")" (,) "," (identifier) "GL_UNSIGNED_BYTE" (,) "," (cast_expression) "(unsigned char *)str" (() "(" (type_descriptor) "unsigned char *" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "str" ()) ")" (;) ";" (expression_statement) "glPopAttrib();" (call_expression) "glPopAttrib()" (identifier) "glPopAttrib" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
134
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.27, "nodes": 75, "errors": 0, "source_hash": "1cceb6b48a8058cd5c6d8ae6fcec323a58fcab8d5cd3f02e23d6585c20c132f6", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string.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": "<string.h>", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include \"../tk/tk.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": "\"../tk/tk.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"glaux.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": "\"glaux.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 9, "type": "declaration", "text": "static GLuint bitmapBase;", "parent": null, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 25}}, {"id": 10, "type": "type_identifier", "text": "GLuint", "parent": 9, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 11, "type": "identifier", "text": "bitmapBase", "parent": 9, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 24}}, {"id": 12, "type": "function_definition", "text": "void auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}", "parent": null, "children": [13, 14], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 13, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 14, "type": "function_declarator", "text": "auxCreateFont(void)", "parent": 12, "children": [15, 16], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 24}}, {"id": 15, "type": "identifier", "text": "auxCreateFont", "parent": 14, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 18}}, {"id": 16, "type": "parameter_list", "text": "(void)", "parent": 14, "children": [17], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 17, "type": "parameter_declaration", "text": "void", "parent": 16, "children": [18], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 19, "type": "assignment_expression", "text": "bitmapBase = glGenLists(256)", "parent": 12, "children": [20, 21, 22], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 32}}, {"id": 20, "type": "identifier", "text": "bitmapBase", "parent": 19, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 14}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 22, "type": "call_expression", "text": "glGenLists(256)", "parent": 19, "children": [23, 24], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 32}}, {"id": 23, "type": "identifier", "text": "glGenLists", "parent": 22, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 27}}, {"id": 24, "type": "argument_list", "text": "(256)", "parent": 22, "children": [25], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 32}}, {"id": 25, "type": "number_literal", "text": "256", "parent": 24, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 31}}, {"id": 26, "type": "if_statement", "text": "if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }", "parent": 12, "children": [27], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 27, "type": "parenthesized_expression", "text": "(tkCreateBitmapFont(bitmapBase) == GL_FALSE)", "parent": 26, "children": [28], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 51}}, {"id": 28, "type": "binary_expression", "text": "tkCreateBitmapFont(bitmapBase) == GL_FALSE", "parent": 27, "children": [29, 33, 34], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 50}}, {"id": 29, "type": "call_expression", "text": "tkCreateBitmapFont(bitmapBase)", "parent": 28, "children": [30, 31], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 38}}, {"id": 30, "type": "identifier", "text": "tkCreateBitmapFont", "parent": 29, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 26}}, {"id": 31, "type": "argument_list", "text": "(bitmapBase)", "parent": 29, "children": [32], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 38}}, {"id": 32, "type": "identifier", "text": "bitmapBase", "parent": 31, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 37}}, {"id": 33, "type": "==", "text": "==", "parent": 28, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 41}}, {"id": 34, "type": "identifier", "text": "GL_FALSE", "parent": 28, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 50}}, {"id": 35, "type": "call_expression", "text": "auxQuit()", "parent": 26, "children": [36, 37], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 17}}, {"id": 36, "type": "identifier", "text": "auxQuit", "parent": 35, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 15}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 17}}, {"id": 38, "type": "function_definition", "text": "void auxDrawStr(char *str)\n{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);\n glPopAttrib();\n}", "parent": null, "children": [39, 40], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 39, "type": "primitive_type", "text": "void", "parent": 38, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 40, "type": "function_declarator", "text": "auxDrawStr(char *str)", "parent": 38, "children": [41, 42], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 26}}, {"id": 41, "type": "identifier", "text": "auxDrawStr", "parent": 40, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 15}}, {"id": 42, "type": "parameter_list", "text": "(char *str)", "parent": 40, "children": [43], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 26}}, {"id": 43, "type": "parameter_declaration", "text": "char *str", "parent": 42, "children": [44, 45], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 25}}, {"id": 44, "type": "primitive_type", "text": "char", "parent": 43, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 20}}, {"id": 45, "type": "pointer_declarator", "text": "*str", "parent": 43, "children": [46, 47], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 46, "type": "*", "text": "*", "parent": 45, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 47, "type": "identifier", "text": "str", "parent": 45, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 25}}, {"id": 48, "type": "call_expression", "text": "glPushAttrib(GL_LIST_BIT)", "parent": 38, "children": [49, 50], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 29}}, {"id": 49, "type": "identifier", "text": "glPushAttrib", "parent": 48, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 16}}, {"id": 50, "type": "argument_list", "text": "(GL_LIST_BIT)", "parent": 48, "children": [51], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 29}}, {"id": 51, "type": "identifier", "text": "GL_LIST_BIT", "parent": 50, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 28}}, {"id": 52, "type": "call_expression", "text": "glListBase(bitmapBase)", "parent": 38, "children": [53, 54], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 26}}, {"id": 53, "type": "identifier", "text": "glListBase", "parent": 52, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 54, "type": "argument_list", "text": "(bitmapBase)", "parent": 52, "children": [55], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 26}}, {"id": 55, "type": "identifier", "text": "bitmapBase", "parent": 54, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 25}}, {"id": 56, "type": "call_expression", "text": "glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str)", "parent": 38, "children": [57, 58], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 68}}, {"id": 57, "type": "identifier", "text": "glCallLists", "parent": 56, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 58, "type": "argument_list", "text": "(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str)", "parent": 56, "children": [59, 63, 64], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 68}}, {"id": 59, "type": "call_expression", "text": "strlen(str)", "parent": 58, "children": [60, 61], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 27}}, {"id": 60, "type": "identifier", "text": "strlen", "parent": 59, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 61, "type": "argument_list", "text": "(str)", "parent": 59, "children": [62], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 27}}, {"id": 62, "type": "identifier", "text": "str", "parent": 61, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 26}}, {"id": 63, "type": "identifier", "text": "GL_UNSIGNED_BYTE", "parent": 58, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 45}}, {"id": 64, "type": "cast_expression", "text": "(unsigned char *)str", "parent": 58, "children": [65, 71], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 67}}, {"id": 65, "type": "type_descriptor", "text": "unsigned char *", "parent": 64, "children": [66, 69], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 63}}, {"id": 66, "type": "sized_type_specifier", "text": "unsigned char", "parent": 65, "children": [67, 68], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 61}}, {"id": 67, "type": "unsigned", "text": "unsigned", "parent": 66, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 56}}, {"id": 68, "type": "primitive_type", "text": "char", "parent": 66, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 61}}, {"id": 69, "type": "abstract_pointer_declarator", "text": "*", "parent": 65, "children": [70], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 63}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 63}}, {"id": 71, "type": "identifier", "text": "str", "parent": 64, "children": [], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 67}}, {"id": 72, "type": "call_expression", "text": "glPopAttrib()", "parent": 38, "children": [73, 74], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 17}}, {"id": 73, "type": "identifier", "text": "glPopAttrib", "parent": 72, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 15}}, {"id": 74, "type": "argument_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 17}}]}, "node_categories": {"declarations": {"functions": [12, 14, 38, 40], "variables": [9, 17, 43], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [22, 27, 28, 29, 35, 48, 52, 56, 59, 64, 72], "assignments": [19], "loops": [], "conditionals": [10, 11, 15, 20, 23, 26, 30, 32, 34, 36, 41, 47, 49, 51, 53, 55, 57, 60, 62, 63, 66, 71, 73], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 25], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "auxCreateFont", "text_snippet": "void auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) "}, {"node_id": 14, "universal_type": "function", "name": "unknown", "text_snippet": "auxCreateFont(void)"}, {"node_id": 38, "universal_type": "function", "name": "auxDrawStr", "text_snippet": "void auxDrawStr(char *str)\n{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallL"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "auxDrawStr(char *str)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <string.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"../tk/tk.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"glaux.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* font.c */\n\n\n#include <string.h>\n#include \"../tk/tk.h\"\n#include \"glaux.h\"\n\n\nstatic GLuint bitmapBase;\n\n\nvoid auxCreateFont(void)\n{\n bitmapBase = glGenLists(256);\n if (tkCreateBitmapFont(bitmapBase) == GL_FALSE) {\n auxQuit();\n }\n}\n\nvoid auxDrawStr(char *str)\n{\n\n glPushAttrib(GL_LIST_BIT);\n glListBase(bitmapBase);\n glCallLists(strlen(str), GL_UNSIGNED_BYTE, (unsigned char *)str);\n glPopAttrib();\n}\n"}
80,741
c
// example 02 // // introduces: // - plane scrolling // - formatted output // - environment info // - terminal capabilities #include <notcurses/notcurses.h> int main(void){ struct notcurses_options nopts = { .flags = NCOPTION_NO_ALTERNATE_SCREEN | NCOPTION_SUPPRESS_BANNERS | NCOPTION_PRESERVE_CURSOR | NCOPTION_NO_CLEAR_BITMAPS | NCOPTION_DRAIN_INPUT }; struct notcurses* nc = notcurses_core_init(&nopts, NULL); if(nc == NULL){ return EXIT_FAILURE; } struct ncplane* stdn = notcurses_stdplane(nc); // set the standard plane to scroll ncplane_set_scrolling(stdn, true); // the standard plane size matches the terminal dimensions unsigned dimy, dimx; ncplane_dim_yx(stdn, &dimy, &dimx); // show the detected os version, terminal name & dimensions char* str_osversion = notcurses_osversion(); char* str_terminal = notcurses_detected_terminal(nc); ncplane_printf_yx(stdn, -1, -1, "\nOperating System: %s\nTerminal: %s\n" "Dimensions: %i rows, %i cols\n\n", str_osversion, str_terminal, dimy, dimx ); free(str_osversion); free(str_terminal); // show the terminal capabilities nccapabilities const* caps = notcurses_capabilities(nc); char str_caps[256]; ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n" " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n" " braille: %s\n pixel: %s\n 24bit-color: %s\n" " palette colors: %i\n", caps->utf8?"true":"false", caps->halfblocks?"true":"false", caps->quadrants?"true":"false", caps->sextants?"true":"false", caps->braille?"true":"false", notcurses_canpixel(nc)?"true":"false", caps->rgb?"true":"false", caps->colors ); notcurses_render(nc); if (notcurses_stop(nc)) { return EXIT_FAILURE; } return EXIT_SUCCESS; }
28.8
59
(translation_unit) "// example 02\n//\n// introduces:\n// - plane scrolling\n// - formatted output\n// - environment info\n// - terminal capabilities\n\n#include <notcurses/notcurses.h>\n\nint main(void){\n struct notcurses_options nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n };\n struct notcurses* nc = notcurses_core_init(&nopts, NULL);\n if(nc == NULL){\n return EXIT_FAILURE;\n }\n\n struct ncplane* stdn = notcurses_stdplane(nc);\n // set the standard plane to scroll\n ncplane_set_scrolling(stdn, true);\n\n // the standard plane size matches the terminal dimensions\n unsigned dimy, dimx;\n ncplane_dim_yx(stdn, &dimy, &dimx);\n\n // show the detected os version, terminal name & dimensions\n char* str_osversion = notcurses_osversion();\n char* str_terminal = notcurses_detected_terminal(nc);\n ncplane_printf_yx(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n );\n free(str_osversion);\n free(str_terminal);\n\n // show the terminal capabilities\n nccapabilities const* caps = notcurses_capabilities(nc);\n char str_caps[256];\n ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n );\n\n notcurses_render(nc);\n\n if (notcurses_stop(nc)) {\n return EXIT_FAILURE;\n }\n return EXIT_SUCCESS;\n}\n" (comment) "// example 02" (comment) "//" (comment) "// introduces:" (comment) "// - plane scrolling" (comment) "// - formatted output" (comment) "// - environment info" (comment) "// - terminal capabilities" (preproc_include) "#include <notcurses/notcurses.h>\n" (#include) "#include" (system_lib_string) "<notcurses/notcurses.h>" (function_definition) "int main(void){\n struct notcurses_options nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n };\n struct notcurses* nc = notcurses_core_init(&nopts, NULL);\n if(nc == NULL){\n return EXIT_FAILURE;\n }\n\n struct ncplane* stdn = notcurses_stdplane(nc);\n // set the standard plane to scroll\n ncplane_set_scrolling(stdn, true);\n\n // the standard plane size matches the terminal dimensions\n unsigned dimy, dimx;\n ncplane_dim_yx(stdn, &dimy, &dimx);\n\n // show the detected os version, terminal name & dimensions\n char* str_osversion = notcurses_osversion();\n char* str_terminal = notcurses_detected_terminal(nc);\n ncplane_printf_yx(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n );\n free(str_osversion);\n free(str_terminal);\n\n // show the terminal capabilities\n nccapabilities const* caps = notcurses_capabilities(nc);\n char str_caps[256];\n ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n );\n\n notcurses_render(nc);\n\n if (notcurses_stop(nc)) {\n return EXIT_FAILURE;\n }\n return EXIT_SUCCESS;\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n struct notcurses_options nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n };\n struct notcurses* nc = notcurses_core_init(&nopts, NULL);\n if(nc == NULL){\n return EXIT_FAILURE;\n }\n\n struct ncplane* stdn = notcurses_stdplane(nc);\n // set the standard plane to scroll\n ncplane_set_scrolling(stdn, true);\n\n // the standard plane size matches the terminal dimensions\n unsigned dimy, dimx;\n ncplane_dim_yx(stdn, &dimy, &dimx);\n\n // show the detected os version, terminal name & dimensions\n char* str_osversion = notcurses_osversion();\n char* str_terminal = notcurses_detected_terminal(nc);\n ncplane_printf_yx(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n );\n free(str_osversion);\n free(str_terminal);\n\n // show the terminal capabilities\n nccapabilities const* caps = notcurses_capabilities(nc);\n char str_caps[256];\n ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n );\n\n notcurses_render(nc);\n\n if (notcurses_stop(nc)) {\n return EXIT_FAILURE;\n }\n return EXIT_SUCCESS;\n}" ({) "{" (declaration) "struct notcurses_options nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n };" (struct_specifier) "struct notcurses_options" (struct) "struct" (type_identifier) "notcurses_options" (init_declarator) "nopts = {\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n }" (identifier) "nopts" (=) "=" (initializer_list) "{\n .flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT\n }" ({) "{" (initializer_pair) ".flags =\n NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT" (field_designator) ".flags" (.) "." (field_identifier) "flags" (=) "=" (binary_expression) "NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS |\n NCOPTION_DRAIN_INPUT" (binary_expression) "NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR |\n NCOPTION_NO_CLEAR_BITMAPS" (binary_expression) "NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS |\n NCOPTION_PRESERVE_CURSOR" (binary_expression) "NCOPTION_NO_ALTERNATE_SCREEN |\n NCOPTION_SUPPRESS_BANNERS" (identifier) "NCOPTION_NO_ALTERNATE_SCREEN" (|) "|" (identifier) "NCOPTION_SUPPRESS_BANNERS" (|) "|" (identifier) "NCOPTION_PRESERVE_CURSOR" (|) "|" (identifier) "NCOPTION_NO_CLEAR_BITMAPS" (|) "|" (identifier) "NCOPTION_DRAIN_INPUT" (}) "}" (;) ";" (declaration) "struct notcurses* nc = notcurses_core_init(&nopts, NULL);" (struct_specifier) "struct notcurses" (struct) "struct" (type_identifier) "notcurses" (init_declarator) "* nc = notcurses_core_init(&nopts, NULL)" (pointer_declarator) "* nc" (*) "*" (identifier) "nc" (=) "=" (call_expression) "notcurses_core_init(&nopts, NULL)" (identifier) "notcurses_core_init" (argument_list) "(&nopts, NULL)" (() "(" (pointer_expression) "&nopts" (&) "&" (identifier) "nopts" (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (if_statement) "if(nc == NULL){\n return EXIT_FAILURE;\n }" (if) "if" (parenthesized_expression) "(nc == NULL)" (() "(" (binary_expression) "nc == NULL" (identifier) "nc" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n return EXIT_FAILURE;\n }" ({) "{" (return_statement) "return EXIT_FAILURE;" (return) "return" (identifier) "EXIT_FAILURE" (;) ";" (}) "}" (declaration) "struct ncplane* stdn = notcurses_stdplane(nc);" (struct_specifier) "struct ncplane" (struct) "struct" (type_identifier) "ncplane" (init_declarator) "* stdn = notcurses_stdplane(nc)" (pointer_declarator) "* stdn" (*) "*" (identifier) "stdn" (=) "=" (call_expression) "notcurses_stdplane(nc)" (identifier) "notcurses_stdplane" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" (;) ";" (comment) "// set the standard plane to scroll" (expression_statement) "ncplane_set_scrolling(stdn, true);" (call_expression) "ncplane_set_scrolling(stdn, true)" (identifier) "ncplane_set_scrolling" (argument_list) "(stdn, true)" (() "(" (identifier) "stdn" (,) "," (true) "true" ()) ")" (;) ";" (comment) "// the standard plane size matches the terminal dimensions" (declaration) "unsigned dimy, dimx;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "dimy" (,) "," (identifier) "dimx" (;) ";" (expression_statement) "ncplane_dim_yx(stdn, &dimy, &dimx);" (call_expression) "ncplane_dim_yx(stdn, &dimy, &dimx)" (identifier) "ncplane_dim_yx" (argument_list) "(stdn, &dimy, &dimx)" (() "(" (identifier) "stdn" (,) "," (pointer_expression) "&dimy" (&) "&" (identifier) "dimy" (,) "," (pointer_expression) "&dimx" (&) "&" (identifier) "dimx" ()) ")" (;) ";" (comment) "// show the detected os version, terminal name & dimensions" (declaration) "char* str_osversion = notcurses_osversion();" (primitive_type) "char" (init_declarator) "* str_osversion = notcurses_osversion()" (pointer_declarator) "* str_osversion" (*) "*" (identifier) "str_osversion" (=) "=" (call_expression) "notcurses_osversion()" (identifier) "notcurses_osversion" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "char* str_terminal = notcurses_detected_terminal(nc);" (primitive_type) "char" (init_declarator) "* str_terminal = notcurses_detected_terminal(nc)" (pointer_declarator) "* str_terminal" (*) "*" (identifier) "str_terminal" (=) "=" (call_expression) "notcurses_detected_terminal(nc)" (identifier) "notcurses_detected_terminal" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" (;) ";" (expression_statement) "ncplane_printf_yx(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n );" (call_expression) "ncplane_printf_yx(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n )" (identifier) "ncplane_printf_yx" (argument_list) "(stdn, -1, -1,\n "\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n",\n str_osversion, str_terminal, dimy, dimx\n )" (() "(" (identifier) "stdn" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (,) "," (concatenated_string) ""\nOperating System: %s\nTerminal: %s\n"\n "Dimensions: %i rows, %i cols\n\n"" (string_literal) ""\nOperating System: %s\nTerminal: %s\n"" (") """ (escape_sequence) "\n" (string_content) "Operating System: %s" (escape_sequence) "\n" (string_content) "Terminal: %s" (escape_sequence) "\n" (") """ (string_literal) ""Dimensions: %i rows, %i cols\n\n"" (") """ (string_content) "Dimensions: %i rows, %i cols" (escape_sequence) "\n" (escape_sequence) "\n" (") """ (,) "," (identifier) "str_osversion" (,) "," (identifier) "str_terminal" (,) "," (identifier) "dimy" (,) "," (identifier) "dimx" ()) ")" (;) ";" (expression_statement) "free(str_osversion);" (call_expression) "free(str_osversion)" (identifier) "free" (argument_list) "(str_osversion)" (() "(" (identifier) "str_osversion" ()) ")" (;) ";" (expression_statement) "free(str_terminal);" (call_expression) "free(str_terminal)" (identifier) "free" (argument_list) "(str_terminal)" (() "(" (identifier) "str_terminal" ()) ")" (;) ";" (comment) "// show the terminal capabilities" (declaration) "nccapabilities const* caps = notcurses_capabilities(nc);" (type_identifier) "nccapabilities" (type_qualifier) "const" (const) "const" (init_declarator) "* caps = notcurses_capabilities(nc)" (pointer_declarator) "* caps" (*) "*" (identifier) "caps" (=) "=" (call_expression) "notcurses_capabilities(nc)" (identifier) "notcurses_capabilities" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" (;) ";" (declaration) "char str_caps[256];" (primitive_type) "char" (array_declarator) "str_caps[256]" (identifier) "str_caps" ([) "[" (number_literal) "256" (]) "]" (;) ";" (expression_statement) "ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n );" (call_expression) "ncplane_printf_yx(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n )" (identifier) "ncplane_printf_yx" (argument_list) "(stdn, -1, -1, "Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n",\n caps->utf8?"true":"false",\n caps->halfblocks?"true":"false",\n caps->quadrants?"true":"false",\n caps->sextants?"true":"false",\n caps->braille?"true":"false",\n notcurses_canpixel(nc)?"true":"false",\n caps->rgb?"true":"false",\n caps->colors\n )" (() "(" (identifier) "stdn" (,) "," (number_literal) "-1" (,) "," (number_literal) "-1" (,) "," (concatenated_string) ""Capabilities:\n"\n " utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"\n " braille: %s\n pixel: %s\n 24bit-color: %s\n"\n " palette colors: %i\n"" (string_literal) ""Capabilities:\n"" (") """ (string_content) "Capabilities:" (escape_sequence) "\n" (") """ (string_literal) "" utf8: %s\n halfblocks: %s\n quadrants: %s\n sextants: %s\n"" (") """ (string_content) " utf8: %s" (escape_sequence) "\n" (string_content) " halfblocks: %s" (escape_sequence) "\n" (string_content) " quadrants: %s" (escape_sequence) "\n" (string_content) " sextants: %s" (escape_sequence) "\n" (") """ (string_literal) "" braille: %s\n pixel: %s\n 24bit-color: %s\n"" (") """ (string_content) " braille: %s" (escape_sequence) "\n" (string_content) " pixel: %s" (escape_sequence) "\n" (string_content) " 24bit-color: %s" (escape_sequence) "\n" (") """ (string_literal) "" palette colors: %i\n"" (") """ (string_content) " palette colors: %i" (escape_sequence) "\n" (") """ (,) "," (conditional_expression) "caps->utf8?"true":"false"" (field_expression) "caps->utf8" (identifier) "caps" (->) "->" (field_identifier) "utf8" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "caps->halfblocks?"true":"false"" (field_expression) "caps->halfblocks" (identifier) "caps" (->) "->" (field_identifier) "halfblocks" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "caps->quadrants?"true":"false"" (field_expression) "caps->quadrants" (identifier) "caps" (->) "->" (field_identifier) "quadrants" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "caps->sextants?"true":"false"" (field_expression) "caps->sextants" (identifier) "caps" (->) "->" (field_identifier) "sextants" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "caps->braille?"true":"false"" (field_expression) "caps->braille" (identifier) "caps" (->) "->" (field_identifier) "braille" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "notcurses_canpixel(nc)?"true":"false"" (call_expression) "notcurses_canpixel(nc)" (identifier) "notcurses_canpixel" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (conditional_expression) "caps->rgb?"true":"false"" (field_expression) "caps->rgb" (identifier) "caps" (->) "->" (field_identifier) "rgb" (?) "?" (string_literal) ""true"" (") """ (string_content) "true" (") """ (:) ":" (string_literal) ""false"" (") """ (string_content) "false" (") """ (,) "," (field_expression) "caps->colors" (identifier) "caps" (->) "->" (field_identifier) "colors" ()) ")" (;) ";" (expression_statement) "notcurses_render(nc);" (call_expression) "notcurses_render(nc)" (identifier) "notcurses_render" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" (;) ";" (if_statement) "if (notcurses_stop(nc)) {\n return EXIT_FAILURE;\n }" (if) "if" (parenthesized_expression) "(notcurses_stop(nc))" (() "(" (call_expression) "notcurses_stop(nc)" (identifier) "notcurses_stop" (argument_list) "(nc)" (() "(" (identifier) "nc" ()) ")" ()) ")" (compound_statement) "{\n return EXIT_FAILURE;\n }" ({) "{" (return_statement) "return EXIT_FAILURE;" (return) "return" (identifier) "EXIT_FAILURE" (;) ";" (}) "}" (return_statement) "return EXIT_SUCCESS;" (return) "return" (identifier) "EXIT_SUCCESS" (;) ";" (}) "}"
439
0
{"language": "c", "success": true, "metadata": {"lines": 59, "avg_line_length": 28.8, "nodes": 237, "errors": 0, "source_hash": "4d349fa4582def704862b4b859d38d094ff9336a386ff4309b6cc7b8d8dc58a4", "categorized_nodes": 163}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <notcurses/notcurses.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<notcurses/notcurses.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 32}}, {"id": 3, "type": "function_definition", "text": "int main(void){\n\tstruct notcurses_options nopts = {\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT\n\t};\n\tstruct notcurses* nc = notcurses_core_init(&nopts, NULL);\n\tif(nc == NULL){\n\t\treturn EXIT_FAILURE;\n\t}\n\n\tstruct ncplane* stdn = notcurses_stdplane(nc);\n\t// set the standard plane to scroll\n\tncplane_set_scrolling(stdn, true);\n\n\t// the standard plane size matches the terminal dimensions\n\tunsigned dimy, dimx;\n\tncplane_dim_yx(stdn, &dimy, &dimx);\n\n\t// show the detected os version, terminal name & dimensions\n\tchar* str_osversion = notcurses_osversion();\n\tchar* str_terminal = notcurses_detected_terminal(nc);\n\tncplane_printf_yx(stdn, -1, -1,\n\t\t\"\\nOperating System: %s\\nTerminal: %s\\n\"\n\t\t\"Dimensions: %i rows, %i cols\\n\\n\",\n\t\tstr_osversion, str_terminal, dimy, dimx\n\t);\n\tfree(str_osversion);\n\tfree(str_terminal);\n\n\t// show the terminal capabilities\n\tnccapabilities const* caps = notcurses_capabilities(nc);\n\tchar str_caps[256];\n\tncplane_printf_yx(stdn, -1, -1, \"Capabilities:\\n\"\n\t\t\t\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"\n\t\t\t\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"\n\t\t\t\" palette colors: %i\\n\",\n\t\t\tcaps->utf8?\"true\":\"false\",\n\t\t\tcaps->halfblocks?\"true\":\"false\",\n\t\t\tcaps->quadrants?\"true\":\"false\",\n\t\t\tcaps->sextants?\"true\":\"false\",\n\t\t\tcaps->braille?\"true\":\"false\",\n\t\t\tnotcurses_canpixel(nc)?\"true\":\"false\",\n\t\t\tcaps->rgb?\"true\":\"false\",\n\t\t\tcaps->colors\n\t\t\t);\n\n\tnotcurses_render(nc);\n\n\tif (notcurses_stop(nc)) {\n\t\treturn EXIT_FAILURE;\n\t}\n\treturn EXIT_SUCCESS;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(void)", "parent": 3, "children": [6, 7], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 14}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 13}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 13}}, {"id": 10, "type": "declaration", "text": "struct notcurses_options nopts = {\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT\n\t};", "parent": 3, "children": [11, 14], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 18, "column": 3}}, {"id": 11, "type": "struct_specifier", "text": "struct notcurses_options", "parent": 10, "children": [12, 13], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 25}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 7}}, {"id": 13, "type": "type_identifier", "text": "notcurses_options", "parent": 11, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 25}}, {"id": 14, "type": "init_declarator", "text": "nopts = {\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT\n\t}", "parent": 10, "children": [15, 16, 17], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 18, "column": 2}}, {"id": 15, "type": "identifier", "text": "nopts", "parent": 14, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 31}}, {"id": 16, "type": "=", "text": "=", "parent": 14, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 33}}, {"id": 17, "type": "initializer_list", "text": "{\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT\n\t}", "parent": 14, "children": [18], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 18, "column": 2}}, {"id": 18, "type": "initializer_pair", "text": ".flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT", "parent": 17, "children": [19, 21, 22], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 17, "column": 23}}, {"id": 19, "type": "field_designator", "text": ".flags", "parent": 18, "children": [20], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 8}}, {"id": 20, "type": "field_identifier", "text": "flags", "parent": 19, "children": [], "start_point": {"row": 12, "column": 3}, "end_point": {"row": 12, "column": 8}}, {"id": 21, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 10}}, {"id": 22, "type": "binary_expression", "text": "NCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT", "parent": 18, "children": [23, 30], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 17, "column": 23}}, {"id": 23, "type": "binary_expression", "text": "NCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS", "parent": 22, "children": [24, 29], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 16, "column": 28}}, {"id": 24, "type": "binary_expression", "text": "NCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR", "parent": 23, "children": [25, 28], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 15, "column": 27}}, {"id": 25, "type": "binary_expression", "text": "NCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS", "parent": 24, "children": [26, 27], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 14, "column": 28}}, {"id": 26, "type": "identifier", "text": "NCOPTION_NO_ALTERNATE_SCREEN", "parent": 25, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 31}}, {"id": 27, "type": "identifier", "text": "NCOPTION_SUPPRESS_BANNERS", "parent": 25, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 28}}, {"id": 28, "type": "identifier", "text": "NCOPTION_PRESERVE_CURSOR", "parent": 24, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 27}}, {"id": 29, "type": "identifier", "text": "NCOPTION_NO_CLEAR_BITMAPS", "parent": 23, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 28}}, {"id": 30, "type": "identifier", "text": "NCOPTION_DRAIN_INPUT", "parent": 22, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 23}}, {"id": 31, "type": "declaration", "text": "struct notcurses* nc = notcurses_core_init(&nopts, NULL);", "parent": 3, "children": [32, 35], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 58}}, {"id": 32, "type": "struct_specifier", "text": "struct notcurses", "parent": 31, "children": [33, 34], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 17}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 7}}, {"id": 34, "type": "type_identifier", "text": "notcurses", "parent": 32, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 17}}, {"id": 35, "type": "init_declarator", "text": "* nc = notcurses_core_init(&nopts, NULL)", "parent": 31, "children": [36, 39, 40], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 57}}, {"id": 36, "type": "pointer_declarator", "text": "* nc", "parent": 35, "children": [37, 38], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 21}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 18}}, {"id": 38, "type": "identifier", "text": "nc", "parent": 36, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 21}}, {"id": 39, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 40, "type": "call_expression", "text": "notcurses_core_init(&nopts, NULL)", "parent": 35, "children": [41, 42], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 57}}, {"id": 41, "type": "identifier", "text": "notcurses_core_init", "parent": 40, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 43}}, {"id": 42, "type": "argument_list", "text": "(&nopts, NULL)", "parent": 40, "children": [43, 45], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 57}}, {"id": 43, "type": "pointer_expression", "text": "&nopts", "parent": 42, "children": [44], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 50}}, {"id": 44, "type": "identifier", "text": "nopts", "parent": 43, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 50}}, {"id": 45, "type": "null", "text": "NULL", "parent": 42, "children": [46], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 56}}, {"id": 46, "type": "NULL", "text": "NULL", "parent": 45, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 56}}, {"id": 47, "type": "if_statement", "text": "if(nc == NULL){\n\t\treturn EXIT_FAILURE;\n\t}", "parent": 3, "children": [48], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 22, "column": 2}}, {"id": 48, "type": "parenthesized_expression", "text": "(nc == NULL)", "parent": 47, "children": [49], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 15}}, {"id": 49, "type": "binary_expression", "text": "nc == NULL", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 14}}, {"id": 50, "type": "identifier", "text": "nc", "parent": 49, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 6}}, {"id": 51, "type": "==", "text": "==", "parent": 49, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 9}}, {"id": 52, "type": "null", "text": "NULL", "parent": 49, "children": [53], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 53, "type": "NULL", "text": "NULL", "parent": 52, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 54, "type": "return_statement", "text": "return EXIT_FAILURE;", "parent": 47, "children": [55], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 22}}, {"id": 55, "type": "identifier", "text": "EXIT_FAILURE", "parent": 54, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 21}}, {"id": 56, "type": "declaration", "text": "struct ncplane* stdn = notcurses_stdplane(nc);", "parent": 3, "children": [57, 60], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 47}}, {"id": 57, "type": "struct_specifier", "text": "struct ncplane", "parent": 56, "children": [58, 59], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 15}}, {"id": 58, "type": "struct", "text": "struct", "parent": 57, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 59, "type": "type_identifier", "text": "ncplane", "parent": 57, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 15}}, {"id": 60, "type": "init_declarator", "text": "* stdn = notcurses_stdplane(nc)", "parent": 56, "children": [61, 64, 65], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 46}}, {"id": 61, "type": "pointer_declarator", "text": "* stdn", "parent": 60, "children": [62, 63], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 21}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 16}}, {"id": 63, "type": "identifier", "text": "stdn", "parent": 61, "children": [], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 21}}, {"id": 64, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 23}}, {"id": 65, "type": "call_expression", "text": "notcurses_stdplane(nc)", "parent": 60, "children": [66, 67], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 46}}, {"id": 66, "type": "identifier", "text": "notcurses_stdplane", "parent": 65, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 42}}, {"id": 67, "type": "argument_list", "text": "(nc)", "parent": 65, "children": [68], "start_point": {"row": 24, "column": 42}, "end_point": {"row": 24, "column": 46}}, {"id": 68, "type": "identifier", "text": "nc", "parent": 67, "children": [], "start_point": {"row": 24, "column": 43}, "end_point": {"row": 24, "column": 45}}, {"id": 69, "type": "call_expression", "text": "ncplane_set_scrolling(stdn, true)", "parent": 3, "children": [70, 71], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 34}}, {"id": 70, "type": "identifier", "text": "ncplane_set_scrolling", "parent": 69, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 22}}, {"id": 71, "type": "argument_list", "text": "(stdn, true)", "parent": 69, "children": [72, 73], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 34}}, {"id": 72, "type": "identifier", "text": "stdn", "parent": 71, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 27}}, {"id": 73, "type": "true", "text": "true", "parent": 71, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 33}}, {"id": 74, "type": "declaration", "text": "unsigned dimy, dimx;", "parent": 3, "children": [75, 77, 78], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 21}}, {"id": 75, "type": "sized_type_specifier", "text": "unsigned", "parent": 74, "children": [76], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 76, "type": "unsigned", "text": "unsigned", "parent": 75, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 77, "type": "identifier", "text": "dimy", "parent": 74, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 14}}, {"id": 78, "type": "identifier", "text": "dimx", "parent": 74, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 20}}, {"id": 79, "type": "call_expression", "text": "ncplane_dim_yx(stdn, &dimy, &dimx)", "parent": 3, "children": [80, 81], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 35}}, {"id": 80, "type": "identifier", "text": "ncplane_dim_yx", "parent": 79, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 15}}, {"id": 81, "type": "argument_list", "text": "(stdn, &dimy, &dimx)", "parent": 79, "children": [82, 83, 85], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 35}}, {"id": 82, "type": "identifier", "text": "stdn", "parent": 81, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 20}}, {"id": 83, "type": "pointer_expression", "text": "&dimy", "parent": 81, "children": [84], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 27}}, {"id": 84, "type": "identifier", "text": "dimy", "parent": 83, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 27}}, {"id": 85, "type": "pointer_expression", "text": "&dimx", "parent": 81, "children": [86], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 34}}, {"id": 86, "type": "identifier", "text": "dimx", "parent": 85, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 34}}, {"id": 87, "type": "declaration", "text": "char* str_osversion = notcurses_osversion();", "parent": 3, "children": [88, 89], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 45}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 5}}, {"id": 89, "type": "init_declarator", "text": "* str_osversion = notcurses_osversion()", "parent": 87, "children": [90, 93, 94], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 44}}, {"id": 90, "type": "pointer_declarator", "text": "* str_osversion", "parent": 89, "children": [91, 92], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 20}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 6}}, {"id": 92, "type": "identifier", "text": "str_osversion", "parent": 90, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 20}}, {"id": 93, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 22}}, {"id": 94, "type": "call_expression", "text": "notcurses_osversion()", "parent": 89, "children": [95, 96], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 44}}, {"id": 95, "type": "identifier", "text": "notcurses_osversion", "parent": 94, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 42}}, {"id": 96, "type": "argument_list", "text": "()", "parent": 94, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 44}}, {"id": 97, "type": "declaration", "text": "char* str_terminal = notcurses_detected_terminal(nc);", "parent": 3, "children": [98, 99], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 54}}, {"id": 98, "type": "primitive_type", "text": "char", "parent": 97, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 99, "type": "init_declarator", "text": "* str_terminal = notcurses_detected_terminal(nc)", "parent": 97, "children": [100, 103, 104], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 53}}, {"id": 100, "type": "pointer_declarator", "text": "* str_terminal", "parent": 99, "children": [101, 102], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 19}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 6}}, {"id": 102, "type": "identifier", "text": "str_terminal", "parent": 100, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 19}}, {"id": 103, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 21}}, {"id": 104, "type": "call_expression", "text": "notcurses_detected_terminal(nc)", "parent": 99, "children": [105, 106], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 53}}, {"id": 105, "type": "identifier", "text": "notcurses_detected_terminal", "parent": 104, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 49}}, {"id": 106, "type": "argument_list", "text": "(nc)", "parent": 104, "children": [107], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 53}}, {"id": 107, "type": "identifier", "text": "nc", "parent": 106, "children": [], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 52}}, {"id": 108, "type": "call_expression", "text": "ncplane_printf_yx(stdn, -1, -1,\n\t\t\"\\nOperating System: %s\\nTerminal: %s\\n\"\n\t\t\"Dimensions: %i rows, %i cols\\n\\n\",\n\t\tstr_osversion, str_terminal, dimy, dimx\n\t)", "parent": 3, "children": [109, 110], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 39, "column": 2}}, {"id": 109, "type": "identifier", "text": "ncplane_printf_yx", "parent": 108, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 18}}, {"id": 110, "type": "argument_list", "text": "(stdn, -1, -1,\n\t\t\"\\nOperating System: %s\\nTerminal: %s\\n\"\n\t\t\"Dimensions: %i rows, %i cols\\n\\n\",\n\t\tstr_osversion, str_terminal, dimy, dimx\n\t)", "parent": 108, "children": [111, 112, 113, 114, 122, 123, 124, 125], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 39, "column": 2}}, {"id": 111, "type": "identifier", "text": "stdn", "parent": 110, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 23}}, {"id": 112, "type": "number_literal", "text": "-1", "parent": 110, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 27}}, {"id": 113, "type": "number_literal", "text": "-1", "parent": 110, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 31}}, {"id": 114, "type": "concatenated_string", "text": "\"\\nOperating System: %s\\nTerminal: %s\\n\"\n\t\t\"Dimensions: %i rows, %i cols\\n\\n\"", "parent": 110, "children": [115, 119], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 36}}, {"id": 115, "type": "string_literal", "text": "\"\\nOperating System: %s\\nTerminal: %s\\n\"", "parent": 114, "children": [116, 117, 118], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 42}}, {"id": 116, "type": "escape_sequence", "text": "\\n", "parent": 115, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 5}}, {"id": 117, "type": "escape_sequence", "text": "\\n", "parent": 115, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 27}}, {"id": 118, "type": "escape_sequence", "text": "\\n", "parent": 115, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 41}}, {"id": 119, "type": "string_literal", "text": "\"Dimensions: %i rows, %i cols\\n\\n\"", "parent": 114, "children": [120, 121], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 36}}, {"id": 120, "type": "escape_sequence", "text": "\\n", "parent": 119, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 33}}, {"id": 121, "type": "escape_sequence", "text": "\\n", "parent": 119, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 35}}, {"id": 122, "type": "identifier", "text": "str_osversion", "parent": 110, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 123, "type": "identifier", "text": "str_terminal", "parent": 110, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 29}}, {"id": 124, "type": "identifier", "text": "dimy", "parent": 110, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 35}}, {"id": 125, "type": "identifier", "text": "dimx", "parent": 110, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 41}}, {"id": 126, "type": "call_expression", "text": "free(str_osversion)", "parent": 3, "children": [127, 128], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 20}}, {"id": 127, "type": "identifier", "text": "free", "parent": 126, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 5}}, {"id": 128, "type": "argument_list", "text": "(str_osversion)", "parent": 126, "children": [129], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 20}}, {"id": 129, "type": "identifier", "text": "str_osversion", "parent": 128, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 19}}, {"id": 130, "type": "call_expression", "text": "free(str_terminal)", "parent": 3, "children": [131, 132], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 19}}, {"id": 131, "type": "identifier", "text": "free", "parent": 130, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 132, "type": "argument_list", "text": "(str_terminal)", "parent": 130, "children": [133], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 19}}, {"id": 133, "type": "identifier", "text": "str_terminal", "parent": 132, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 18}}, {"id": 134, "type": "declaration", "text": "nccapabilities const* caps = notcurses_capabilities(nc);", "parent": 3, "children": [135, 136], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 57}}, {"id": 135, "type": "type_identifier", "text": "nccapabilities", "parent": 134, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 15}}, {"id": 136, "type": "init_declarator", "text": "* caps = notcurses_capabilities(nc)", "parent": 134, "children": [137, 140, 141], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 56}}, {"id": 137, "type": "pointer_declarator", "text": "* caps", "parent": 136, "children": [138, 139], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 27}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 139, "type": "identifier", "text": "caps", "parent": 137, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 27}}, {"id": 140, "type": "=", "text": "=", "parent": 136, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 29}}, {"id": 141, "type": "call_expression", "text": "notcurses_capabilities(nc)", "parent": 136, "children": [142, 143], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 56}}, {"id": 142, "type": "identifier", "text": "notcurses_capabilities", "parent": 141, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 52}}, {"id": 143, "type": "argument_list", "text": "(nc)", "parent": 141, "children": [144], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 56}}, {"id": 144, "type": "identifier", "text": "nc", "parent": 143, "children": [], "start_point": {"row": 44, "column": 53}, "end_point": {"row": 44, "column": 55}}, {"id": 145, "type": "declaration", "text": "char str_caps[256];", "parent": 3, "children": [146, 147], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 20}}, {"id": 146, "type": "primitive_type", "text": "char", "parent": 145, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 5}}, {"id": 147, "type": "array_declarator", "text": "str_caps[256]", "parent": 145, "children": [148, 149], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 19}}, {"id": 148, "type": "identifier", "text": "str_caps", "parent": 147, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 14}}, {"id": 149, "type": "number_literal", "text": "256", "parent": 147, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 18}}, {"id": 150, "type": "call_expression", "text": "ncplane_printf_yx(stdn, -1, -1, \"Capabilities:\\n\"\n\t\t\t\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"\n\t\t\t\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"\n\t\t\t\" palette colors: %i\\n\",\n\t\t\tcaps->utf8?\"true\":\"false\",\n\t\t\tcaps->halfblocks?\"true\":\"false\",\n\t\t\tcaps->quadrants?\"true\":\"false\",\n\t\t\tcaps->sextants?\"true\":\"false\",\n\t\t\tcaps->braille?\"true\":\"false\",\n\t\t\tnotcurses_canpixel(nc)?\"true\":\"false\",\n\t\t\tcaps->rgb?\"true\":\"false\",\n\t\t\tcaps->colors\n\t\t\t)", "parent": 3, "children": [151, 152], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 151, "type": "identifier", "text": "ncplane_printf_yx", "parent": 150, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 18}}, {"id": 152, "type": "argument_list", "text": "(stdn, -1, -1, \"Capabilities:\\n\"\n\t\t\t\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"\n\t\t\t\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"\n\t\t\t\" palette colors: %i\\n\",\n\t\t\tcaps->utf8?\"true\":\"false\",\n\t\t\tcaps->halfblocks?\"true\":\"false\",\n\t\t\tcaps->quadrants?\"true\":\"false\",\n\t\t\tcaps->sextants?\"true\":\"false\",\n\t\t\tcaps->braille?\"true\":\"false\",\n\t\t\tnotcurses_canpixel(nc)?\"true\":\"false\",\n\t\t\tcaps->rgb?\"true\":\"false\",\n\t\t\tcaps->colors\n\t\t\t)", "parent": 150, "children": [153, 154, 155, 156, 170, 177, 184, 191, 198, 205, 213, 220], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 58, "column": 4}}, {"id": 153, "type": "identifier", "text": "stdn", "parent": 152, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 23}}, {"id": 154, "type": "number_literal", "text": "-1", "parent": 152, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 27}}, {"id": 155, "type": "number_literal", "text": "-1", "parent": 152, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 31}}, {"id": 156, "type": "concatenated_string", "text": "\"Capabilities:\\n\"\n\t\t\t\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"\n\t\t\t\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"\n\t\t\t\" palette colors: %i\\n\"", "parent": 152, "children": [157, 159, 164, 168], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 49, "column": 27}}, {"id": 157, "type": "string_literal", "text": "\"Capabilities:\\n\"", "parent": 156, "children": [158], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 50}}, {"id": 158, "type": "escape_sequence", "text": "\\n", "parent": 157, "children": [], "start_point": {"row": 46, "column": 47}, "end_point": {"row": 46, "column": 49}}, {"id": 159, "type": "string_literal", "text": "\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"", "parent": 156, "children": [160, 161, 162, 163], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 68}}, {"id": 160, "type": "escape_sequence", "text": "\\n", "parent": 159, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 16}}, {"id": 161, "type": "escape_sequence", "text": "\\n", "parent": 159, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 34}}, {"id": 162, "type": "escape_sequence", "text": "\\n", "parent": 159, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 51}}, {"id": 163, "type": "escape_sequence", "text": "\\n", "parent": 159, "children": [], "start_point": {"row": 47, "column": 65}, "end_point": {"row": 47, "column": 67}}, {"id": 164, "type": "string_literal", "text": "\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"", "parent": 156, "children": [165, 166, 167], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 52}}, {"id": 165, "type": "escape_sequence", "text": "\\n", "parent": 164, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 19}}, {"id": 166, "type": "escape_sequence", "text": "\\n", "parent": 164, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 32}}, {"id": 167, "type": "escape_sequence", "text": "\\n", "parent": 164, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 51}}, {"id": 168, "type": "string_literal", "text": "\" palette colors: %i\\n\"", "parent": 156, "children": [169], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 27}}, {"id": 169, "type": "escape_sequence", "text": "\\n", "parent": 168, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 26}}, {"id": 170, "type": "conditional_expression", "text": "caps->utf8?\"true\":\"false\"", "parent": 152, "children": [171, 174, 175, 176], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 28}}, {"id": 171, "type": "field_expression", "text": "caps->utf8", "parent": 170, "children": [172, 173], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 13}}, {"id": 172, "type": "identifier", "text": "caps", "parent": 171, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 7}}, {"id": 173, "type": "field_identifier", "text": "utf8", "parent": 171, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 13}}, {"id": 174, "type": "?", "text": "?", "parent": 170, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 14}}, {"id": 175, "type": "string_literal", "text": "\"true\"", "parent": 170, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 20}}, {"id": 176, "type": "string_literal", "text": "\"false\"", "parent": 170, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 28}}, {"id": 177, "type": "conditional_expression", "text": "caps->halfblocks?\"true\":\"false\"", "parent": 152, "children": [178, 181, 182, 183], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 34}}, {"id": 178, "type": "field_expression", "text": "caps->halfblocks", "parent": 177, "children": [179, 180], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 19}}, {"id": 179, "type": "identifier", "text": "caps", "parent": 178, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 7}}, {"id": 180, "type": "field_identifier", "text": "halfblocks", "parent": 178, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 19}}, {"id": 181, "type": "?", "text": "?", "parent": 177, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 182, "type": "string_literal", "text": "\"true\"", "parent": 177, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 26}}, {"id": 183, "type": "string_literal", "text": "\"false\"", "parent": 177, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 34}}, {"id": 184, "type": "conditional_expression", "text": "caps->quadrants?\"true\":\"false\"", "parent": 152, "children": [185, 188, 189, 190], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 33}}, {"id": 185, "type": "field_expression", "text": "caps->quadrants", "parent": 184, "children": [186, 187], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 18}}, {"id": 186, "type": "identifier", "text": "caps", "parent": 185, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 7}}, {"id": 187, "type": "field_identifier", "text": "quadrants", "parent": 185, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 18}}, {"id": 188, "type": "?", "text": "?", "parent": 184, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 189, "type": "string_literal", "text": "\"true\"", "parent": 184, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 25}}, {"id": 190, "type": "string_literal", "text": "\"false\"", "parent": 184, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 33}}, {"id": 191, "type": "conditional_expression", "text": "caps->sextants?\"true\":\"false\"", "parent": 152, "children": [192, 195, 196, 197], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 32}}, {"id": 192, "type": "field_expression", "text": "caps->sextants", "parent": 191, "children": [193, 194], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 17}}, {"id": 193, "type": "identifier", "text": "caps", "parent": 192, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 194, "type": "field_identifier", "text": "sextants", "parent": 192, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 17}}, {"id": 195, "type": "?", "text": "?", "parent": 191, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 18}}, {"id": 196, "type": "string_literal", "text": "\"true\"", "parent": 191, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 24}}, {"id": 197, "type": "string_literal", "text": "\"false\"", "parent": 191, "children": [], "start_point": {"row": 53, "column": 25}, "end_point": {"row": 53, "column": 32}}, {"id": 198, "type": "conditional_expression", "text": "caps->braille?\"true\":\"false\"", "parent": 152, "children": [199, 202, 203, 204], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 31}}, {"id": 199, "type": "field_expression", "text": "caps->braille", "parent": 198, "children": [200, 201], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 16}}, {"id": 200, "type": "identifier", "text": "caps", "parent": 199, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 201, "type": "field_identifier", "text": "braille", "parent": 199, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 16}}, {"id": 202, "type": "?", "text": "?", "parent": 198, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 203, "type": "string_literal", "text": "\"true\"", "parent": 198, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 23}}, {"id": 204, "type": "string_literal", "text": "\"false\"", "parent": 198, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 31}}, {"id": 205, "type": "conditional_expression", "text": "notcurses_canpixel(nc)?\"true\":\"false\"", "parent": 152, "children": [206, 210, 211, 212], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 40}}, {"id": 206, "type": "call_expression", "text": "notcurses_canpixel(nc)", "parent": 205, "children": [207, 208], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 25}}, {"id": 207, "type": "identifier", "text": "notcurses_canpixel", "parent": 206, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 21}}, {"id": 208, "type": "argument_list", "text": "(nc)", "parent": 206, "children": [209], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 25}}, {"id": 209, "type": "identifier", "text": "nc", "parent": 208, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 24}}, {"id": 210, "type": "?", "text": "?", "parent": 205, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 26}}, {"id": 211, "type": "string_literal", "text": "\"true\"", "parent": 205, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 32}}, {"id": 212, "type": "string_literal", "text": "\"false\"", "parent": 205, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 40}}, {"id": 213, "type": "conditional_expression", "text": "caps->rgb?\"true\":\"false\"", "parent": 152, "children": [214, 217, 218, 219], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 27}}, {"id": 214, "type": "field_expression", "text": "caps->rgb", "parent": 213, "children": [215, 216], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 12}}, {"id": 215, "type": "identifier", "text": "caps", "parent": 214, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 7}}, {"id": 216, "type": "field_identifier", "text": "rgb", "parent": 214, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 12}}, {"id": 217, "type": "?", "text": "?", "parent": 213, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 218, "type": "string_literal", "text": "\"true\"", "parent": 213, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 19}}, {"id": 219, "type": "string_literal", "text": "\"false\"", "parent": 213, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 27}}, {"id": 220, "type": "field_expression", "text": "caps->colors", "parent": 152, "children": [221, 222], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 15}}, {"id": 221, "type": "identifier", "text": "caps", "parent": 220, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 7}}, {"id": 222, "type": "field_identifier", "text": "colors", "parent": 220, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 15}}, {"id": 223, "type": "call_expression", "text": "notcurses_render(nc)", "parent": 3, "children": [224, 225], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 21}}, {"id": 224, "type": "identifier", "text": "notcurses_render", "parent": 223, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 17}}, {"id": 225, "type": "argument_list", "text": "(nc)", "parent": 223, "children": [226], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 21}}, {"id": 226, "type": "identifier", "text": "nc", "parent": 225, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 20}}, {"id": 227, "type": "if_statement", "text": "if (notcurses_stop(nc)) {\n\t\treturn EXIT_FAILURE;\n\t}", "parent": 3, "children": [228], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 64, "column": 2}}, {"id": 228, "type": "parenthesized_expression", "text": "(notcurses_stop(nc))", "parent": 227, "children": [229], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 24}}, {"id": 229, "type": "call_expression", "text": "notcurses_stop(nc)", "parent": 228, "children": [230, 231], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 23}}, {"id": 230, "type": "identifier", "text": "notcurses_stop", "parent": 229, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 19}}, {"id": 231, "type": "argument_list", "text": "(nc)", "parent": 229, "children": [232], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 23}}, {"id": 232, "type": "identifier", "text": "nc", "parent": 231, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 22}}, {"id": 233, "type": "return_statement", "text": "return EXIT_FAILURE;", "parent": 227, "children": [234], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 22}}, {"id": 234, "type": "identifier", "text": "EXIT_FAILURE", "parent": 233, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 21}}, {"id": 235, "type": "return_statement", "text": "return EXIT_SUCCESS;", "parent": 3, "children": [236], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 21}}, {"id": 236, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 235, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 20}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 10, 31, 56, 74, 87, 97, 134, 145], "classes": [11, 12, 32, 33, 57, 58], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [22, 23, 24, 25, 40, 43, 48, 49, 65, 69, 79, 83, 85, 94, 104, 108, 126, 130, 141, 150, 171, 178, 185, 192, 199, 206, 214, 220, 223, 228, 229], "assignments": [], "loops": [], "conditionals": [6, 13, 15, 20, 26, 27, 28, 29, 30, 34, 38, 41, 44, 47, 50, 55, 59, 63, 66, 68, 70, 72, 75, 77, 78, 80, 82, 84, 86, 92, 95, 102, 105, 107, 109, 111, 122, 123, 124, 125, 127, 129, 131, 133, 135, 139, 142, 144, 148, 151, 153, 170, 172, 173, 177, 179, 180, 184, 186, 187, 191, 193, 194, 198, 200, 201, 205, 207, 209, 213, 215, 216, 221, 222, 224, 226, 227, 230, 232, 234, 236], "returns": [54, 233, 235], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 112, 113, 114, 115, 119, 149, 154, 155, 156, 157, 159, 164, 168, 175, 176, 182, 183, 189, 190, 196, 197, 203, 204, 211, 212, 218, 219], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [19]}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(void){\n\tstruct notcurses_options nopts = {\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\t"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "notcurses_options", "text_snippet": "struct notcurses_options"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 32, "universal_type": "class", "name": "notcurses", "text_snippet": "struct notcurses"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 57, "universal_type": "class", "name": "ncplane", "text_snippet": "struct ncplane"}, {"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <notcurses/notcurses.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "// example 02\n//\n// introduces:\n// - plane scrolling\n// - formatted output\n// - environment info\n// - terminal capabilities\n\n#include <notcurses/notcurses.h>\n\nint main(void){\n\tstruct notcurses_options nopts = {\n\t\t.flags =\n\t\t\tNCOPTION_NO_ALTERNATE_SCREEN |\n\t\t\tNCOPTION_SUPPRESS_BANNERS |\n\t\t\tNCOPTION_PRESERVE_CURSOR |\n\t\t\tNCOPTION_NO_CLEAR_BITMAPS |\n\t\t\tNCOPTION_DRAIN_INPUT\n\t};\n\tstruct notcurses* nc = notcurses_core_init(&nopts, NULL);\n\tif(nc == NULL){\n\t\treturn EXIT_FAILURE;\n\t}\n\n\tstruct ncplane* stdn = notcurses_stdplane(nc);\n\t// set the standard plane to scroll\n\tncplane_set_scrolling(stdn, true);\n\n\t// the standard plane size matches the terminal dimensions\n\tunsigned dimy, dimx;\n\tncplane_dim_yx(stdn, &dimy, &dimx);\n\n\t// show the detected os version, terminal name & dimensions\n\tchar* str_osversion = notcurses_osversion();\n\tchar* str_terminal = notcurses_detected_terminal(nc);\n\tncplane_printf_yx(stdn, -1, -1,\n\t\t\"\\nOperating System: %s\\nTerminal: %s\\n\"\n\t\t\"Dimensions: %i rows, %i cols\\n\\n\",\n\t\tstr_osversion, str_terminal, dimy, dimx\n\t);\n\tfree(str_osversion);\n\tfree(str_terminal);\n\n\t// show the terminal capabilities\n\tnccapabilities const* caps = notcurses_capabilities(nc);\n\tchar str_caps[256];\n\tncplane_printf_yx(stdn, -1, -1, \"Capabilities:\\n\"\n\t\t\t\" utf8: %s\\n halfblocks: %s\\n quadrants: %s\\n sextants: %s\\n\"\n\t\t\t\" braille: %s\\n pixel: %s\\n 24bit-color: %s\\n\"\n\t\t\t\" palette colors: %i\\n\",\n\t\t\tcaps->utf8?\"true\":\"false\",\n\t\t\tcaps->halfblocks?\"true\":\"false\",\n\t\t\tcaps->quadrants?\"true\":\"false\",\n\t\t\tcaps->sextants?\"true\":\"false\",\n\t\t\tcaps->braille?\"true\":\"false\",\n\t\t\tnotcurses_canpixel(nc)?\"true\":\"false\",\n\t\t\tcaps->rgb?\"true\":\"false\",\n\t\t\tcaps->colors\n\t\t\t);\n\n\tnotcurses_render(nc);\n\n\tif (notcurses_stop(nc)) {\n\t\treturn EXIT_FAILURE;\n\t}\n\treturn EXIT_SUCCESS;\n}\n"}
80,742
c
#pragma once #include "CoreMinimal.h" #include "DamageBonusBase.h" #include "TagDamageBonus.generated.h" class UDamageTag; UCLASS(EditInlineNew) class UTagDamageBonus : public UDamageBonusBase { GENERATED_BODY() public: protected: UPROPERTY(BlueprintReadWrite, EditAnywhere) TArray<UDamageTag*> Tags; public: UTagDamageBonus(); };
21
16
(translation_unit) "#pragma once\n#include "CoreMinimal.h"\n#include "DamageBonusBase.h"\n#include "TagDamageBonus.generated.h"\n\nclass UDamageTag;\n\nUCLASS(EditInlineNew)\nclass UTagDamageBonus : public UDamageBonusBase {\n GENERATED_BODY()\npublic:\nprotected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;\n \npublic:\n UTagDamageBonus();\n};\n\n" (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 "DamageBonusBase.h"\n" (#include) "#include" (string_literal) ""DamageBonusBase.h"" (") """ (string_content) "DamageBonusBase.h" (") """ (preproc_include) "#include "TagDamageBonus.generated.h"\n" (#include) "#include" (string_literal) ""TagDamageBonus.generated.h"" (") """ (string_content) "TagDamageBonus.generated.h" (") """ (declaration) "class UDamageTag;" (type_identifier) "class" (identifier) "UDamageTag" (;) ";" (declaration) "UCLASS(EditInlineNew)\nclass" (macro_type_specifier) "UCLASS(EditInlineNew)" (identifier) "UCLASS" (() "(" (type_descriptor) "EditInlineNew" (type_identifier) "EditInlineNew" ()) ")" (identifier) "class" (;) "" (labeled_statement) "UTagDamageBonus : public UDamageBonusBase {\n GENERATED_BODY()\npublic:\nprotected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;" (statement_identifier) "UTagDamageBonus" (ERROR) ": public UDamageBonusBase {\n GENERATED_BODY()\npublic" (:) ":" (type_identifier) "public" (ERROR) "UDamageBonusBase {" (identifier) "UDamageBonusBase" ({) "{" (function_declarator) "GENERATED_BODY()\npublic" (identifier) "GENERATED_BODY" (parameter_list) "()" (() "(" ()) ")" (identifier) "public" (:) ":" (labeled_statement) "protected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;" (statement_identifier) "protected" (:) ":" (expression_statement) "UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;" (binary_expression) "UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags" (binary_expression) "UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag" (call_expression) "UPROPERTY(BlueprintReadWrite, EditAnywhere)" (identifier) "UPROPERTY" (argument_list) "(BlueprintReadWrite, EditAnywhere)" (() "(" (identifier) "BlueprintReadWrite" (,) "," (identifier) "EditAnywhere" ()) ")" (ERROR) "TArray" (identifier) "TArray" (<) "<" (identifier) "UDamageTag" (ERROR) "*" (*) "*" (>) ">" (identifier) "Tags" (;) ";" (labeled_statement) "public:\n UTagDamageBonus();" (statement_identifier) "public" (:) ":" (expression_statement) "UTagDamageBonus();" (call_expression) "UTagDamageBonus()" (identifier) "UTagDamageBonus" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";"
87
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.0, "nodes": 47, "errors": 0, "source_hash": "8e01d332b672b9f0f9a8e046bb11ef8abee8455e1bfa0d087406ca0871a1f9f8", "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_include", "text": "#include \"CoreMinimal.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": "\"CoreMinimal.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include \"DamageBonusBase.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": "\"DamageBonusBase.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"TagDamageBonus.generated.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": "string_literal", "text": "\"TagDamageBonus.generated.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 37}}, {"id": 12, "type": "declaration", "text": "class UDamageTag;", "parent": null, "children": [13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 17}}, {"id": 13, "type": "identifier", "text": "UDamageTag", "parent": 12, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 16}}, {"id": 14, "type": "declaration", "text": "UCLASS(EditInlineNew)\nclass", "parent": null, "children": [15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 5}}, {"id": 15, "type": "macro_type_specifier", "text": "UCLASS(EditInlineNew)", "parent": 14, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 21}}, {"id": 16, "type": "identifier", "text": "UCLASS", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 17, "type": "type_descriptor", "text": "EditInlineNew", "parent": 15, "children": [18], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 20}}, {"id": 18, "type": "type_identifier", "text": "EditInlineNew", "parent": 17, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 20}}, {"id": 19, "type": "labeled_statement", "text": "UTagDamageBonus : public UDamageBonusBase {\n GENERATED_BODY()\npublic:\nprotected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;", "parent": null, "children": [20, 21, 27], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 13, "column": 29}}, {"id": 20, "type": "statement_identifier", "text": "UTagDamageBonus", "parent": 19, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 21}}, {"id": 21, "type": "ERROR", "text": ": public UDamageBonusBase {\n GENERATED_BODY()\npublic", "parent": 19, "children": [22, 24], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 10, "column": 6}}, {"id": 22, "type": "ERROR", "text": "UDamageBonusBase {", "parent": 21, "children": [23], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 49}}, {"id": 23, "type": "identifier", "text": "UDamageBonusBase", "parent": 22, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 47}}, {"id": 24, "type": "function_declarator", "text": "GENERATED_BODY()\npublic", "parent": 21, "children": [25, 26], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 10, "column": 6}}, {"id": 25, "type": "identifier", "text": "GENERATED_BODY", "parent": 24, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 18}}, {"id": 26, "type": "parameter_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 20}}, {"id": 27, "type": "labeled_statement", "text": "protected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;", "parent": 19, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 29}}, {"id": 28, "type": "binary_expression", "text": "UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags", "parent": 27, "children": [29, 39, 41, 42], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 13, "column": 28}}, {"id": 29, "type": "binary_expression", "text": "UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag", "parent": 28, "children": [30, 35, 37, 38], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 13, "column": 21}}, {"id": 30, "type": "call_expression", "text": "UPROPERTY(BlueprintReadWrite, EditAnywhere)", "parent": 29, "children": [31, 32], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 47}}, {"id": 31, "type": "identifier", "text": "UPROPERTY", "parent": 30, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 13}}, {"id": 32, "type": "argument_list", "text": "(BlueprintReadWrite, EditAnywhere)", "parent": 30, "children": [33, 34], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 47}}, {"id": 33, "type": "identifier", "text": "BlueprintReadWrite", "parent": 32, "children": [], "start_point": {"row": 12, "column": 14}, "end_point": {"row": 12, "column": 32}}, {"id": 34, "type": "identifier", "text": "EditAnywhere", "parent": 32, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 46}}, {"id": 35, "type": "ERROR", "text": "TArray", "parent": 29, "children": [36], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 36, "type": "identifier", "text": "TArray", "parent": 35, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 37, "type": "<", "text": "<", "parent": 29, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 38, "type": "identifier", "text": "UDamageTag", "parent": 29, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 21}}, {"id": 39, "type": "ERROR", "text": "*", "parent": 28, "children": [40], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 22}}, {"id": 41, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 42, "type": "identifier", "text": "Tags", "parent": 28, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 28}}, {"id": 43, "type": "labeled_statement", "text": "public:\n UTagDamageBonus();", "parent": null, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 22}}, {"id": 44, "type": "call_expression", "text": "UTagDamageBonus()", "parent": 43, "children": [45, 46], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 21}}, {"id": 45, "type": "identifier", "text": "UTagDamageBonus", "parent": 44, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 19}}, {"id": 46, "type": "argument_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 21}}]}, "node_categories": {"declarations": {"functions": [24], "variables": [12, 14], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [28, 29, 30, 44], "assignments": [], "loops": [], "conditionals": [13, 15, 16, 18, 20, 23, 25, 31, 33, 34, 36, 38, 42, 45], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "GENERATED_BODY()\npublic"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"DamageBonusBase.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"TagDamageBonus.generated.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n#include \"CoreMinimal.h\"\n#include \"DamageBonusBase.h\"\n#include \"TagDamageBonus.generated.h\"\n\nclass UDamageTag;\n\nUCLASS(EditInlineNew)\nclass UTagDamageBonus : public UDamageBonusBase {\n GENERATED_BODY()\npublic:\nprotected:\n UPROPERTY(BlueprintReadWrite, EditAnywhere)\n TArray<UDamageTag*> Tags;\n \npublic:\n UTagDamageBonus();\n};\n\n"}
80,743
c
#include "consola.h" void* manejar_consola(){ while (1) { char* entrada = string_new(); entrada = leerlinea(); if(string_equals_ignore_case(entrada,"EXIT")){ printf("Finalizando el programa...\n"); free(entrada); finalizar(socket_cliente_app); return -1; } ejecutarComando(entrada); free(entrada); } } void ejecutarComando(char* input) { char ** split; split = string_split(input," "); char * comando = split[0]; enum API comandoApi = obtenerComando(comando); if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){ log_info(logger,"Creando socket de conexión."); socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto)); log_info(logger,"Conectandose con sindicato..."); conectar_socket(socket_conectado); } switch(comandoApi){ case CREAR_PEDIDO: printf("crearPedido\n"); crearPedido(); free(comando); free(split); break; case CONSULTAR_RESTAURANTES: consultarRestaurantes(); free(comando); free(split); break; case SELECCIONAR_RESTAURANTE: seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket free(comando); free(split); break; case OBTENER_RESTAURANTE: obtenerRestaurante(split[1]); free(comando); free(split);// Recibe un restaurante break; case CONSULTAR_PLATOS: printf("El restaurante es --> %s.\n\n\n\n",split[1]); consultarPlatos(split[1]); free(split); free(comando); break; case GUARDAR_PEDIDO: guardarPedido(split[1],split[2]); free(split);// Recibe un restaurante y un id de pedido free(comando); break; case ANIADIR_PLATO: aniadirPlato(split[1],split[2]); free(split);// Recibe un plato y un id de pedido free(comando); break; case GUARDAR_PLATO: guardarPlato(split[1],split[2],split[3],split[4]); free(split); // Recibe un plato y un id de pedido free(comando); break; case CONFIRMAR_PEDIDO: if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO) confirmarPedido(split[1],split[2]); else confirmarPedido(split[1]); free(split); // Recibe un id de pedido free(comando); break; case PLATO_LISTO: platoListo(split[1],split[2],split[3]); free(split); // Recibe restaurante, id pedido, y comida free(comando); break; case CONSULTAR_PEDIDO: consultarPedido(split[1]); free(split);// Recibe id de pedido free(comando); break; case OBTENER_PEDIDO: obtenerPedido(split[1],split[2]); free(split);// Recibe un restaurante y un id de pedido free(comando); break; case FINALIZAR_PEDIDO: finalizarPedido(split[1],split[2]); free(split); // Recibe un restaurante y un id de pedido free(comando); break; case TERMINAR_PEDIDO: terminarPedido(split[1],split[2]); free(split); // Recibe un restaurante y un id de pedido free(comando); break; case OBTENER_RECETA: obtenerReceta(split[1]); free(split); // Recibe un plato free(comando); break; case ERROR: printf("El comando %s no existe.\n",comando); char* warning_mensaje = string_new(); string_append(&warning_mensaje,"El comando ingresado no es valido: "); string_append(&warning_mensaje,comando); log_warning(logger,warning_mensaje); free(warning_mensaje); free(split); free(comando); break; case EXIT: free(split); free(comando); break; } if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){ //close(socket_conectado.socket); } }
27.07
128
(translation_unit) "#include "consola.h"\n\nvoid* manejar_consola(){\n\n while (1) {\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejecutarComando(entrada);\n free(entrada);\n }\n}\n\n\nvoid ejecutarComando(char* input) {\n\n char ** split;\n\n split = string_split(input," ");\n\n char * comando = split[0];\n\n enum API comandoApi = obtenerComando(comando);\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n log_info(logger,"Creando socket de conexión.");\n\n socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n log_info(logger,"Conectandose con sindicato...");\n \n conectar_socket(socket_conectado);\n }\n\n switch(comandoApi){\n case CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n case CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n case SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n case OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n case CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n case GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n case GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n case CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n case PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n case CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n case OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n case ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n case EXIT:\n free(split);\n free(comando);\n break;\n }\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n //close(socket_conectado.socket);\n }\n}\n" (preproc_include) "#include "consola.h"\n" (#include) "#include" (string_literal) ""consola.h"" (") """ (string_content) "consola.h" (") """ (function_definition) "void* manejar_consola(){\n\n while (1) {\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejecutarComando(entrada);\n free(entrada);\n }\n}" (primitive_type) "void" (pointer_declarator) "* manejar_consola()" (*) "*" (function_declarator) "manejar_consola()" (identifier) "manejar_consola" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n\n while (1) {\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejecutarComando(entrada);\n free(entrada);\n }\n}" ({) "{" (while_statement) "while (1) {\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejecutarComando(entrada);\n free(entrada);\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n char* entrada = string_new();\n entrada = leerlinea();\n if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }\n ejecutarComando(entrada);\n free(entrada);\n }" ({) "{" (declaration) "char* entrada = string_new();" (primitive_type) "char" (init_declarator) "* entrada = string_new()" (pointer_declarator) "* entrada" (*) "*" (identifier) "entrada" (=) "=" (call_expression) "string_new()" (identifier) "string_new" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "entrada = leerlinea();" (assignment_expression) "entrada = leerlinea()" (identifier) "entrada" (=) "=" (call_expression) "leerlinea()" (identifier) "leerlinea" (argument_list) "()" (() "(" ()) ")" (;) ";" (if_statement) "if(string_equals_ignore_case(entrada,"EXIT")){\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }" (if) "if" (parenthesized_expression) "(string_equals_ignore_case(entrada,"EXIT"))" (() "(" (call_expression) "string_equals_ignore_case(entrada,"EXIT")" (identifier) "string_equals_ignore_case" (argument_list) "(entrada,"EXIT")" (() "(" (identifier) "entrada" (,) "," (string_literal) ""EXIT"" (") """ (string_content) "EXIT" (") """ ()) ")" ()) ")" (compound_statement) "{\n printf("Finalizando el programa...\n");\n free(entrada);\n finalizar(socket_cliente_app);\n return -1;\n }" ({) "{" (expression_statement) "printf("Finalizando el programa...\n");" (call_expression) "printf("Finalizando el programa...\n")" (identifier) "printf" (argument_list) "("Finalizando el programa...\n")" (() "(" (string_literal) ""Finalizando el programa...\n"" (") """ (string_content) "Finalizando el programa..." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "free(entrada);" (call_expression) "free(entrada)" (identifier) "free" (argument_list) "(entrada)" (() "(" (identifier) "entrada" ()) ")" (;) ";" (expression_statement) "finalizar(socket_cliente_app);" (call_expression) "finalizar(socket_cliente_app)" (identifier) "finalizar" (argument_list) "(socket_cliente_app)" (() "(" (identifier) "socket_cliente_app" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (expression_statement) "ejecutarComando(entrada);" (call_expression) "ejecutarComando(entrada)" (identifier) "ejecutarComando" (argument_list) "(entrada)" (() "(" (identifier) "entrada" ()) ")" (;) ";" (expression_statement) "free(entrada);" (call_expression) "free(entrada)" (identifier) "free" (argument_list) "(entrada)" (() "(" (identifier) "entrada" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void ejecutarComando(char* input) {\n\n char ** split;\n\n split = string_split(input," ");\n\n char * comando = split[0];\n\n enum API comandoApi = obtenerComando(comando);\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n log_info(logger,"Creando socket de conexión.");\n\n socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n log_info(logger,"Conectandose con sindicato...");\n \n conectar_socket(socket_conectado);\n }\n\n switch(comandoApi){\n case CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n case CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n case SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n case OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n case CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n case GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n case GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n case CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n case PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n case CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n case OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n case ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n case EXIT:\n free(split);\n free(comando);\n break;\n }\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n //close(socket_conectado.socket);\n }\n}\n" (primitive_type) "void" (function_declarator) "ejecutarComando(char* input)" (identifier) "ejecutarComando" (parameter_list) "(char* input)" (() "(" (parameter_declaration) "char* input" (primitive_type) "char" (pointer_declarator) "* input" (*) "*" (identifier) "input" ()) ")" (compound_statement) "{\n\n char ** split;\n\n split = string_split(input," ");\n\n char * comando = split[0];\n\n enum API comandoApi = obtenerComando(comando);\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n log_info(logger,"Creando socket de conexión.");\n\n socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n log_info(logger,"Conectandose con sindicato...");\n \n conectar_socket(socket_conectado);\n }\n\n switch(comandoApi){\n case CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n case CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n case SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n case OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n case CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n case GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n case GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n case CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n case PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n case CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n case OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n case ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n case EXIT:\n free(split);\n free(comando);\n break;\n }\n\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n //close(socket_conectado.socket);\n }\n}\n" ({) "{" (declaration) "char ** split;" (primitive_type) "char" (pointer_declarator) "** split" (*) "*" (pointer_declarator) "* split" (*) "*" (identifier) "split" (;) ";" (expression_statement) "split = string_split(input," ");" (assignment_expression) "split = string_split(input," ")" (identifier) "split" (=) "=" (call_expression) "string_split(input," ")" (identifier) "string_split" (argument_list) "(input," ")" (() "(" (identifier) "input" (,) "," (string_literal) "" "" (") """ (string_content) " " (") """ ()) ")" (;) ";" (declaration) "char * comando = split[0];" (primitive_type) "char" (init_declarator) "* comando = split[0]" (pointer_declarator) "* comando" (*) "*" (identifier) "comando" (=) "=" (subscript_expression) "split[0]" (identifier) "split" ([) "[" (number_literal) "0" (]) "]" (;) ";" (declaration) "enum API comandoApi = obtenerComando(comando);" (enum_specifier) "enum API" (enum) "enum" (type_identifier) "API" (init_declarator) "comandoApi = obtenerComando(comando)" (identifier) "comandoApi" (=) "=" (call_expression) "obtenerComando(comando)" (identifier) "obtenerComando" (argument_list) "(comando)" (() "(" (identifier) "comando" ()) ")" (;) ";" (if_statement) "if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n log_info(logger,"Creando socket de conexión.");\n\n socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n log_info(logger,"Conectandose con sindicato...");\n \n conectar_socket(socket_conectado);\n }\n" (if) "if" (parenthesized_expression) "(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE)" (() "(" (binary_expression) "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE" (binary_expression) "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO" (binary_expression) "moduloConectado == T_COMANDA" (identifier) "moduloConectado" (==) "==" (identifier) "T_COMANDA" (||) "||" (binary_expression) "moduloConectado == T_SINDICATO" (identifier) "moduloConectado" (==) "==" (identifier) "T_SINDICATO" (||) "||" (binary_expression) "moduloConectado == T_RESTAURANTE" (identifier) "moduloConectado" (==) "==" (identifier) "T_RESTAURANTE" ()) ")" (compound_statement) "{\n log_info(logger,"Creando socket de conexión.");\n\n socket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n log_info(logger,"Conectandose con sindicato...");\n \n conectar_socket(socket_conectado);\n }\n" ({) "{" (expression_statement) "log_info(logger,"Creando socket de conexión.");\n" (call_expression) "log_info(logger,"Creando socket de conexión.");" (identifier) "log_info" (argument_list) "(logger,"Creando socket de conexión.");" (() "(" (identifier) "logger" (,) "," (string_literal) ""Creando socket de conexión.")" (") """ (string_content) "Creando socket de conexión."" (") ")" ()) ";" (;) "\n" (expression_statement) "ocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n" (assignment_expression) "ocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));" (identifier) "ocket_conectado " (=) " " (call_expression) "rear_socket_de_conexion(config->ip, string_itoa(config->puerto));" (identifier) "rear_socket_de_conexion(" (argument_list) "config->ip, string_itoa(config->puerto));" (() "c" (field_expression) "onfig->ip," (identifier) "onfig-" (->) ">i" (field_identifier) "p," (,) " " (call_expression) "tring_itoa(config->puerto))" (identifier) "tring_itoa(" (argument_list) "config->puerto))" (() "c" (field_expression) "onfig->puerto)" (identifier) "onfig-" (->) ">p" (field_identifier) "uerto)" ()) ")" ()) ";" (;) "\n" (expression_statement) "og_info(logger,"Conectandose con sindicato...");\n" (call_expression) "og_info(logger,"Conectandose con sindicato...");" (identifier) "og_info(" (argument_list) "logger,"Conectandose con sindicato...");" (() "l" (identifier) "ogger," (,) """ (string_literal) "Conectandose con sindicato...")" (") "C" (string_content) "onectandose con sindicato..."" (") ")" ()) ";" (;) "\n" (expression_statement) "onectar_socket(socket_conectado);\n" (call_expression) "onectar_socket(socket_conectado);" (identifier) "onectar_socket(" (argument_list) "socket_conectado);" (() "s" (identifier) "ocket_conectado)" ()) ";" (;) "\n" (}) "\n" (switch_statement) "witch(comandoApi){\n case CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n case CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n case SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n case OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n case CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n case GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n case GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n case CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n case PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n case CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n case OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n case ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n case EXIT:\n free(split);\n free(comando);\n break;\n }\n" (switch) "witch(" (parenthesized_expression) "comandoApi){" (() "c" (identifier) "omandoApi)" ()) "{" (compound_statement) "\n case CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n case CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n case SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n case OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n case CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n case GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n case GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n case CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n case PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n case CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n case OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n case OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n case ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n case EXIT:\n free(split);\n free(comando);\n break;\n }\n" ({) "\n" (case_statement) "ase CREAR_PEDIDO:\n printf("crearPedido\n");\n crearPedido();\n free(comando);\n free(split);\n break;\n" (case) "ase " (identifier) "REAR_PEDIDO:" (:) "\n" (expression_statement) "rintf("crearPedido\n");\n" (call_expression) "rintf("crearPedido\n");" (identifier) "rintf(" (argument_list) ""crearPedido\n");" (() """ (string_literal) "crearPedido\n")" (") "c" (string_content) "rearPedido\" (escape_sequence) "n"" (") ")" ()) ";" (;) "\n" (expression_statement) "rearPedido();\n" (call_expression) "rearPedido();" (identifier) "rearPedido(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase CONSULTAR_RESTAURANTES:\n consultarRestaurantes();\n free(comando);\n free(split);\n break;\n" (case) "ase " (identifier) "ONSULTAR_RESTAURANTES:" (:) "\n" (expression_statement) "onsultarRestaurantes();\n" (call_expression) "onsultarRestaurantes();" (identifier) "onsultarRestaurantes(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase SELECCIONAR_RESTAURANTE:\n seleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n free(comando);\n free(split);\n break;\n" (case) "ase " (identifier) "ELECCIONAR_RESTAURANTE:" (:) "\n" (expression_statement) "eleccionarRestaurante(split[1]); " (call_expression) "eleccionarRestaurante(split[1]);" (identifier) "eleccionarRestaurante(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) " " (comment) "/ TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase OBTENER_RESTAURANTE:\n obtenerRestaurante(split[1]);\n free(comando);\n free(split);// Recibe un restaurante\n break;\n" (case) "ase " (identifier) "BTENER_RESTAURANTE:" (:) "\n" (expression_statement) "btenerRestaurante(split[1]);\n" (call_expression) "btenerRestaurante(split[1]);" (identifier) "btenerRestaurante(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (expression_statement) "ree(split);/" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "/" (comment) "/ Recibe un restaurante\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase CONSULTAR_PLATOS:\n printf("El restaurante es --> %s.\n\n\n\n",split[1]);\n consultarPlatos(split[1]);\n free(split);\n free(comando);\n break;\n" (case) "ase " (identifier) "ONSULTAR_PLATOS:" (:) "\n" (expression_statement) "rintf("El restaurante es --> %s.\n\n\n\n",split[1]);\n" (call_expression) "rintf("El restaurante es --> %s.\n\n\n\n",split[1]);" (identifier) "rintf(" (argument_list) ""El restaurante es --> %s.\n\n\n\n",split[1]);" (() """ (string_literal) "El restaurante es --> %s.\n\n\n\n"," (") "E" (string_content) "l restaurante es --> %s.\" (escape_sequence) "n\" (escape_sequence) "n\" (escape_sequence) "n\" (escape_sequence) "n"" (") "," (,) "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "onsultarPlatos(split[1]);\n" (call_expression) "onsultarPlatos(split[1]);" (identifier) "onsultarPlatos(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase GUARDAR_PEDIDO:\n guardarPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "UARDAR_PEDIDO:" (:) "\n" (expression_statement) "uardarPedido(split[1],split[2]);\n" (call_expression) "uardarPedido(split[1],split[2]);" (identifier) "uardarPedido(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split);/" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "/" (comment) "/ Recibe un restaurante y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase ANIADIR_PLATO:\n aniadirPlato(split[1],split[2]);\n free(split);// Recibe un plato y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "NIADIR_PLATO:" (:) "\n" (expression_statement) "niadirPlato(split[1],split[2]);\n" (call_expression) "niadirPlato(split[1],split[2]);" (identifier) "niadirPlato(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split);/" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "/" (comment) "/ Recibe un plato y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase GUARDAR_PLATO:\n guardarPlato(split[1],split[2],split[3],split[4]);\n free(split); // Recibe un plato y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "UARDAR_PLATO:" (:) "\n" (expression_statement) "uardarPlato(split[1],split[2],split[3],split[4]);\n" (call_expression) "uardarPlato(split[1],split[2],split[3],split[4]);" (identifier) "uardarPlato(" (argument_list) "split[1],split[2],split[3],split[4]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2]," (identifier) "plit[" ([) "2" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[3]," (identifier) "plit[" ([) "3" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[4])" (identifier) "plit[" ([) "4" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe un plato y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase CONFIRMAR_PEDIDO:\n if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n free(split); // Recibe un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "ONFIRMAR_PEDIDO:" (:) "\n" (if_statement) "f(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n confirmarPedido(split[1],split[2]); \n else\n confirmarPedido(split[1]);\n" (if) "f(" (parenthesized_expression) "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n" (() "m" (binary_expression) "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)" (binary_expression) "oduloConectado == T_COMANDA " (identifier) "oduloConectado " (==) "= " (identifier) "_COMANDA " (||) "| " (binary_expression) "oduloConectado == T_SINDICATO)" (identifier) "oduloConectado " (==) "= " (identifier) "_SINDICATO)" ()) "\n" (expression_statement) "onfirmarPedido(split[1],split[2]); " (call_expression) "onfirmarPedido(split[1],split[2]);" (identifier) "onfirmarPedido(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) " " (else_clause) "lse\n confirmarPedido(split[1]);\n" (else) "lse\n" (expression_statement) "onfirmarPedido(split[1]);\n" (call_expression) "onfirmarPedido(split[1]);" (identifier) "onfirmarPedido(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase PLATO_LISTO:\n platoListo(split[1],split[2],split[3]);\n free(split); // Recibe restaurante, id pedido, y comida\n free(comando);\n break;\n" (case) "ase " (identifier) "LATO_LISTO:" (:) "\n" (expression_statement) "latoListo(split[1],split[2],split[3]);\n" (call_expression) "latoListo(split[1],split[2],split[3]);" (identifier) "latoListo(" (argument_list) "split[1],split[2],split[3]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2]," (identifier) "plit[" ([) "2" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[3])" (identifier) "plit[" ([) "3" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe restaurante, id pedido, y comida\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase CONSULTAR_PEDIDO:\n consultarPedido(split[1]);\n free(split);// Recibe id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "ONSULTAR_PEDIDO:" (:) "\n" (expression_statement) "onsultarPedido(split[1]);\n" (call_expression) "onsultarPedido(split[1]);" (identifier) "onsultarPedido(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split);/" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "/" (comment) "/ Recibe id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase OBTENER_PEDIDO:\n obtenerPedido(split[1],split[2]);\n free(split);// Recibe un restaurante y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "BTENER_PEDIDO:" (:) "\n" (expression_statement) "btenerPedido(split[1],split[2]);\n" (call_expression) "btenerPedido(split[1],split[2]);" (identifier) "btenerPedido(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split);/" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "/" (comment) "/ Recibe un restaurante y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase FINALIZAR_PEDIDO:\n finalizarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "INALIZAR_PEDIDO:" (:) "\n" (expression_statement) "inalizarPedido(split[1],split[2]);\n" (call_expression) "inalizarPedido(split[1],split[2]);" (identifier) "inalizarPedido(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe un restaurante y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase TERMINAR_PEDIDO:\n terminarPedido(split[1],split[2]);\n free(split); // Recibe un restaurante y un id de pedido\n free(comando);\n break;\n" (case) "ase " (identifier) "ERMINAR_PEDIDO:" (:) "\n" (expression_statement) "erminarPedido(split[1],split[2]);\n" (call_expression) "erminarPedido(split[1],split[2]);" (identifier) "erminarPedido(" (argument_list) "split[1],split[2]);" (() "s" (subscript_expression) "plit[1]," (identifier) "plit[" ([) "1" (number_literal) "]" (]) "," (,) "s" (subscript_expression) "plit[2])" (identifier) "plit[" ([) "2" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe un restaurante y un id de pedido\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase OBTENER_RECETA:\n obtenerReceta(split[1]);\n free(split); // Recibe un plato\n free(comando);\n break;\n" (case) "ase " (identifier) "BTENER_RECETA:" (:) "\n" (expression_statement) "btenerReceta(split[1]);\n" (call_expression) "btenerReceta(split[1]);" (identifier) "btenerReceta(" (argument_list) "split[1]);" (() "s" (subscript_expression) "plit[1])" (identifier) "plit[" ([) "1" (number_literal) "]" (]) ")" ()) ";" (;) "\n" (expression_statement) "ree(split); " (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) " " (comment) "/ Recibe un plato\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase ERROR:\n printf("El comando %s no existe.\n",comando);\n char* warning_mensaje = string_new();\n string_append(&warning_mensaje,"El comando ingresado no es valido: ");\n string_append(&warning_mensaje,comando);\n log_warning(logger,warning_mensaje);\n free(warning_mensaje);\n free(split);\n free(comando);\n break;\n" (case) "ase " (identifier) "RROR:" (:) "\n" (expression_statement) "rintf("El comando %s no existe.\n",comando);\n" (call_expression) "rintf("El comando %s no existe.\n",comando);" (identifier) "rintf(" (argument_list) ""El comando %s no existe.\n",comando);" (() """ (string_literal) "El comando %s no existe.\n"," (") "E" (string_content) "l comando %s no existe.\" (escape_sequence) "n"" (") "," (,) "c" (identifier) "omando)" ()) ";" (;) "\n" (declaration) "har* warning_mensaje = string_new();\n" (primitive_type) "har*" (init_declarator) " warning_mensaje = string_new();" (pointer_declarator) " warning_mensaje " (*) " " (identifier) "arning_mensaje " (=) " " (call_expression) "tring_new();" (identifier) "tring_new(" (argument_list) ");" (() ")" ()) ";" (;) "\n" (expression_statement) "tring_append(&warning_mensaje,"El comando ingresado no es valido: ");\n" (call_expression) "tring_append(&warning_mensaje,"El comando ingresado no es valido: ");" (identifier) "tring_append(" (argument_list) "&warning_mensaje,"El comando ingresado no es valido: ");" (() "&" (pointer_expression) "warning_mensaje," (&) "w" (identifier) "arning_mensaje," (,) """ (string_literal) "El comando ingresado no es valido: ")" (") "E" (string_content) "l comando ingresado no es valido: "" (") ")" ()) ";" (;) "\n" (expression_statement) "tring_append(&warning_mensaje,comando);\n" (call_expression) "tring_append(&warning_mensaje,comando);" (identifier) "tring_append(" (argument_list) "&warning_mensaje,comando);" (() "&" (pointer_expression) "warning_mensaje," (&) "w" (identifier) "arning_mensaje," (,) "c" (identifier) "omando)" ()) ";" (;) "\n" (expression_statement) "og_warning(logger,warning_mensaje);\n" (call_expression) "og_warning(logger,warning_mensaje);" (identifier) "og_warning(" (argument_list) "logger,warning_mensaje);" (() "l" (identifier) "ogger," (,) "w" (identifier) "arning_mensaje)" ()) ";" (;) "\n" (expression_statement) "ree(warning_mensaje);\n" (call_expression) "ree(warning_mensaje);" (identifier) "ree(" (argument_list) "warning_mensaje);" (() "w" (identifier) "arning_mensaje)" ()) ";" (;) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (case_statement) "ase EXIT:\n free(split);\n free(comando);\n break;\n" (case) "ase " (identifier) "XIT:" (:) "\n" (expression_statement) "ree(split);\n" (call_expression) "ree(split);" (identifier) "ree(" (argument_list) "split);" (() "s" (identifier) "plit)" ()) ";" (;) "\n" (expression_statement) "ree(comando);\n" (call_expression) "ree(comando);" (identifier) "ree(" (argument_list) "comando);" (() "c" (identifier) "omando)" ()) ";" (;) "\n" (break_statement) "reak;\n" (break) "reak;" (;) "\n" (}) "\n" (if_statement) "f(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n //close(socket_conectado.socket);\n }\n" (if) "f(" (parenthesized_expression) "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){" (() "m" (binary_expression) "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE)" (binary_expression) "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO " (binary_expression) "oduloConectado == T_COMANDA " (identifier) "oduloConectado " (==) "= " (identifier) "_COMANDA " (||) "| " (binary_expression) "oduloConectado == T_SINDICATO " (identifier) "oduloConectado " (==) "= " (identifier) "_SINDICATO " (||) "| " (binary_expression) "oduloConectado == T_RESTAURANTE)" (identifier) "oduloConectado " (==) "= " (identifier) "_RESTAURANTE)" ()) "{" (compound_statement) "\n //close(socket_conectado.socket);\n }\n" ({) "\n" (comment) "/close(socket_conectado.socket);\n" (}) "\n" (}) "\n"
1,073
0
{"language": "c", "success": true, "metadata": {"lines": 128, "avg_line_length": 27.07, "nodes": 559, "errors": 0, "source_hash": "0fddfd3cdbf7fb309bbf8d52e444a9de2c8fc34a2a01a2cc67fd0e3a91183953", "categorized_nodes": 396}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"consola.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": "\"consola.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "function_definition", "text": "void* manejar_consola(){\n\n\t\twhile (1) {\n\t\tchar* entrada = string_new();\n\t\tentrada = leerlinea();\n\t\tif(string_equals_ignore_case(entrada,\"EXIT\")){\n\t\t\tprintf(\"Finalizando el programa...\\n\");\n\t\t\tfree(entrada);\n\t\t\tfinalizar(socket_cliente_app);\n\t\t\treturn -1;\n\t\t}\n\t\tejecutarComando(entrada);\n\t\tfree(entrada);\n\t\t}\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 5, "type": "pointer_declarator", "text": "* manejar_consola()", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 23}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 5}}, {"id": 7, "type": "function_declarator", "text": "manejar_consola()", "parent": 5, "children": [8, 9], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 23}}, {"id": 8, "type": "identifier", "text": "manejar_consola", "parent": 7, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 21}}, {"id": 9, "type": "parameter_list", "text": "()", "parent": 7, "children": [], "start_point": {"row": 2, "column": 21}, "end_point": {"row": 2, "column": 23}}, {"id": 10, "type": "while_statement", "text": "while (1) {\n\t\tchar* entrada = string_new();\n\t\tentrada = leerlinea();\n\t\tif(string_equals_ignore_case(entrada,\"EXIT\")){\n\t\t\tprintf(\"Finalizando el programa...\\n\");\n\t\t\tfree(entrada);\n\t\t\tfinalizar(socket_cliente_app);\n\t\t\treturn -1;\n\t\t}\n\t\tejecutarComando(entrada);\n\t\tfree(entrada);\n\t\t}", "parent": 3, "children": [11], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 11, "type": "parenthesized_expression", "text": "(1)", "parent": 10, "children": [12], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 11}}, {"id": 12, "type": "number_literal", "text": "1", "parent": 11, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 10}}, {"id": 13, "type": "declaration", "text": "char* entrada = string_new();", "parent": 10, "children": [14, 15], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 31}}, {"id": 14, "type": "primitive_type", "text": "char", "parent": 13, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 6}}, {"id": 15, "type": "init_declarator", "text": "* entrada = string_new()", "parent": 13, "children": [16, 19, 20], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 30}}, {"id": 16, "type": "pointer_declarator", "text": "* entrada", "parent": 15, "children": [17, 18], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 15}}, {"id": 17, "type": "*", "text": "*", "parent": 16, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 18, "type": "identifier", "text": "entrada", "parent": 16, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 15}}, {"id": 19, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 17}}, {"id": 20, "type": "call_expression", "text": "string_new()", "parent": 15, "children": [21, 22], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 30}}, {"id": 21, "type": "identifier", "text": "string_new", "parent": 20, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 28}}, {"id": 22, "type": "argument_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 30}}, {"id": 23, "type": "assignment_expression", "text": "entrada = leerlinea()", "parent": 10, "children": [24, 25, 26], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 23}}, {"id": 24, "type": "identifier", "text": "entrada", "parent": 23, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 9}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 11}}, {"id": 26, "type": "call_expression", "text": "leerlinea()", "parent": 23, "children": [27, 28], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 23}}, {"id": 27, "type": "identifier", "text": "leerlinea", "parent": 26, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 21}}, {"id": 28, "type": "argument_list", "text": "()", "parent": 26, "children": [], "start_point": {"row": 6, "column": 21}, "end_point": {"row": 6, "column": 23}}, {"id": 29, "type": "if_statement", "text": "if(string_equals_ignore_case(entrada,\"EXIT\")){\n\t\t\tprintf(\"Finalizando el programa...\\n\");\n\t\t\tfree(entrada);\n\t\t\tfinalizar(socket_cliente_app);\n\t\t\treturn -1;\n\t\t}", "parent": 10, "children": [30], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 30, "type": "parenthesized_expression", "text": "(string_equals_ignore_case(entrada,\"EXIT\"))", "parent": 29, "children": [31], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 47}}, {"id": 31, "type": "call_expression", "text": "string_equals_ignore_case(entrada,\"EXIT\")", "parent": 30, "children": [32, 33], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 46}}, {"id": 32, "type": "identifier", "text": "string_equals_ignore_case", "parent": 31, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 30}}, {"id": 33, "type": "argument_list", "text": "(entrada,\"EXIT\")", "parent": 31, "children": [34, 35], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 46}}, {"id": 34, "type": "identifier", "text": "entrada", "parent": 33, "children": [], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 38}}, {"id": 35, "type": "string_literal", "text": "\"EXIT\"", "parent": 33, "children": [], "start_point": {"row": 7, "column": 39}, "end_point": {"row": 7, "column": 45}}, {"id": 36, "type": "call_expression", "text": "printf(\"Finalizando el programa...\\n\")", "parent": 29, "children": [37, 38], "start_point": {"row": 8, "column": 3}, "end_point": {"row": 8, "column": 41}}, {"id": 37, "type": "identifier", "text": "printf", "parent": 36, "children": [], "start_point": {"row": 8, "column": 3}, "end_point": {"row": 8, "column": 9}}, {"id": 38, "type": "argument_list", "text": "(\"Finalizando el programa...\\n\")", "parent": 36, "children": [39], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 41}}, {"id": 39, "type": "string_literal", "text": "\"Finalizando el programa...\\n\"", "parent": 38, "children": [40], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 40}}, {"id": 40, "type": "escape_sequence", "text": "\\n", "parent": 39, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 39}}, {"id": 41, "type": "call_expression", "text": "free(entrada)", "parent": 29, "children": [42, 43], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 16}}, {"id": 42, "type": "identifier", "text": "free", "parent": 41, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 7}}, {"id": 43, "type": "argument_list", "text": "(entrada)", "parent": 41, "children": [44], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 16}}, {"id": 44, "type": "identifier", "text": "entrada", "parent": 43, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 45, "type": "call_expression", "text": "finalizar(socket_cliente_app)", "parent": 29, "children": [46, 47], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 32}}, {"id": 46, "type": "identifier", "text": "finalizar", "parent": 45, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 12}}, {"id": 47, "type": "argument_list", "text": "(socket_cliente_app)", "parent": 45, "children": [48], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 32}}, {"id": 48, "type": "identifier", "text": "socket_cliente_app", "parent": 47, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 31}}, {"id": 49, "type": "return_statement", "text": "return -1;", "parent": 29, "children": [50], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 13}}, {"id": 50, "type": "number_literal", "text": "-1", "parent": 49, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 12}}, {"id": 51, "type": "call_expression", "text": "ejecutarComando(entrada)", "parent": 10, "children": [52, 53], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 26}}, {"id": 52, "type": "identifier", "text": "ejecutarComando", "parent": 51, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 17}}, {"id": 53, "type": "argument_list", "text": "(entrada)", "parent": 51, "children": [54], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 26}}, {"id": 54, "type": "identifier", "text": "entrada", "parent": 53, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 25}}, {"id": 55, "type": "call_expression", "text": "free(entrada)", "parent": 10, "children": [56, 57], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 56, "type": "identifier", "text": "free", "parent": 55, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 6}}, {"id": 57, "type": "argument_list", "text": "(entrada)", "parent": 55, "children": [58], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 15}}, {"id": 58, "type": "identifier", "text": "entrada", "parent": 57, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 14}}, {"id": 59, "type": "function_definition", "text": "void ejecutarComando(char* input) {\n\n\tchar ** split;\n\n\tsplit = string_split(input,\" \");\n\n\tchar * comando = split[0];\n\n\tenum API comandoApi = obtenerComando(comando);\n\n\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\tlog_info(logger,\"Creando socket de conexi\u00f3n.\");\n\n\t\tsocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n\t\tlog_info(logger,\"Conectandose con sindicato...\");\n\t\n\t\tconectar_socket(socket_conectado);\n\t}\n\n\tswitch(comandoApi){\n\t\tcase CREAR_PEDIDO:\n\t\t\tprintf(\"crearPedido\\n\");\n\t\t\tcrearPedido();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase CONSULTAR_RESTAURANTES:\n\t\t\tconsultarRestaurantes();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase SELECCIONAR_RESTAURANTE:\n\t\t\tseleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase OBTENER_RESTAURANTE:\n\t\t\tobtenerRestaurante(split[1]);\n\t\t\tfree(comando);\n\t\t\tfree(split);// Recibe un restaurante\n\t\t\tbreak;\n\t\tcase CONSULTAR_PLATOS:\n\t\t\tprintf(\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);\n\t\t\tconsultarPlatos(split[1]);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PEDIDO:\n\t\t\tguardarPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ANIADIR_PLATO:\n\t\t\taniadirPlato(split[1],split[2]);\n\t\t\tfree(split);// Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PLATO:\n\t\t\tguardarPlato(split[1],split[2],split[3],split[4]);\n\t\t\tfree(split); // Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONFIRMAR_PEDIDO:\n\t\t\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n\t\t\t\tconfirmarPedido(split[1],split[2]);\t\n\t\t\telse\n\t\t\t\tconfirmarPedido(split[1]);\n\t\t\tfree(split); // Recibe un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase PLATO_LISTO:\n\t\t\tplatoListo(split[1],split[2],split[3]);\n\t\t\tfree(split); // Recibe restaurante, id pedido, y comida\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONSULTAR_PEDIDO:\n\t\t\tconsultarPedido(split[1]);\n\t\t\tfree(split);// Recibe id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_PEDIDO:\n\t\t\tobtenerPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase FINALIZAR_PEDIDO:\n\t\t\tfinalizarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase TERMINAR_PEDIDO:\n\t\t\tterminarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_RECETA:\n\t\t\tobtenerReceta(split[1]);\n\t\t\tfree(split); // Recibe un plato\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ERROR:\n\t\t\tprintf(\"El comando %s no existe.\\n\",comando);\n\t\t\tchar* warning_mensaje = string_new();\n\t\t\tstring_append(&warning_mensaje,\"El comando ingresado no es valido: \");\n\t\t\tstring_append(&warning_mensaje,comando);\n\t\t\tlog_warning(logger,warning_mensaje);\n\t\t\tfree(warning_mensaje);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase EXIT:\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t}\n\n\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\t//close(socket_conectado.socket);\n\t}\n}\n", "parent": null, "children": [60, 61], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 61, "type": "function_declarator", "text": "ejecutarComando(char* input)", "parent": 59, "children": [62, 63], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 33}}, {"id": 62, "type": "identifier", "text": "ejecutarComando", "parent": 61, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 20}}, {"id": 63, "type": "parameter_list", "text": "(char* input)", "parent": 61, "children": [64], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 33}}, {"id": 64, "type": "parameter_declaration", "text": "char* input", "parent": 63, "children": [65, 66], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 32}}, {"id": 65, "type": "primitive_type", "text": "char", "parent": 64, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 25}}, {"id": 66, "type": "pointer_declarator", "text": "* input", "parent": 64, "children": [67, 68], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 32}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 68, "type": "identifier", "text": "input", "parent": 66, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 32}}, {"id": 69, "type": "declaration", "text": "char ** split;", "parent": 59, "children": [70, 71], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 15}}, {"id": 70, "type": "primitive_type", "text": "char", "parent": 69, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 5}}, {"id": 71, "type": "pointer_declarator", "text": "** split", "parent": 69, "children": [72, 73], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 14}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 7}}, {"id": 73, "type": "pointer_declarator", "text": "* split", "parent": 71, "children": [74, 75], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 14}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 75, "type": "identifier", "text": "split", "parent": 73, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 14}}, {"id": 76, "type": "assignment_expression", "text": "split = string_split(input,\" \")", "parent": 59, "children": [77, 78, 79], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 32}}, {"id": 77, "type": "identifier", "text": "split", "parent": 76, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 6}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 8}}, {"id": 79, "type": "call_expression", "text": "string_split(input,\" \")", "parent": 76, "children": [80, 81], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 32}}, {"id": 80, "type": "identifier", "text": "string_split", "parent": 79, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 21}}, {"id": 81, "type": "argument_list", "text": "(input,\" \")", "parent": 79, "children": [82, 83], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 32}}, {"id": 82, "type": "identifier", "text": "input", "parent": 81, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 27}}, {"id": 83, "type": "string_literal", "text": "\" \"", "parent": 81, "children": [], "start_point": {"row": 23, "column": 28}, "end_point": {"row": 23, "column": 31}}, {"id": 84, "type": "declaration", "text": "char * comando = split[0];", "parent": 59, "children": [85, 86], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 27}}, {"id": 85, "type": "primitive_type", "text": "char", "parent": 84, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 5}}, {"id": 86, "type": "init_declarator", "text": "* comando = split[0]", "parent": 84, "children": [87, 90, 91], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 26}}, {"id": 87, "type": "pointer_declarator", "text": "* comando", "parent": 86, "children": [88, 89], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 15}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 7}}, {"id": 89, "type": "identifier", "text": "comando", "parent": 87, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 15}}, {"id": 90, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 17}}, {"id": 91, "type": "subscript_expression", "text": "split[0]", "parent": 86, "children": [92, 93], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 26}}, {"id": 92, "type": "identifier", "text": "split", "parent": 91, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 23}}, {"id": 93, "type": "number_literal", "text": "0", "parent": 91, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 25}}, {"id": 94, "type": "declaration", "text": "enum API comandoApi = obtenerComando(comando);", "parent": 59, "children": [95, 98], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 47}}, {"id": 95, "type": "enum_specifier", "text": "enum API", "parent": 94, "children": [96, 97], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 96, "type": "enum", "text": "enum", "parent": 95, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 5}}, {"id": 97, "type": "type_identifier", "text": "API", "parent": 95, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 9}}, {"id": 98, "type": "init_declarator", "text": "comandoApi = obtenerComando(comando)", "parent": 94, "children": [99, 100, 101], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 46}}, {"id": 99, "type": "identifier", "text": "comandoApi", "parent": 98, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 20}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 101, "type": "call_expression", "text": "obtenerComando(comando)", "parent": 98, "children": [102, 103], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 46}}, {"id": 102, "type": "identifier", "text": "obtenerComando", "parent": 101, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 37}}, {"id": 103, "type": "argument_list", "text": "(comando)", "parent": 101, "children": [104], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 46}}, {"id": 104, "type": "identifier", "text": "comando", "parent": 103, "children": [], "start_point": {"row": 27, "column": 38}, "end_point": {"row": 27, "column": 45}}, {"id": 105, "type": "if_statement", "text": "if(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\tlog_info(logger,\"Creando socket de conexi\u00f3n.\");\n\n\t\tsocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n\t\tlog_info(logger,\"Conectandose con sindicato...\");\n\t\n\t\tconectar_socket(socket_conectado);\n\t}\n", "parent": 59, "children": [106], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 37, "column": 2}}, {"id": 106, "type": "parenthesized_expression", "text": "(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE)", "parent": 105, "children": [107], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 103}}, {"id": 107, "type": "binary_expression", "text": "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE", "parent": 106, "children": [108, 118, 119], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 102}}, {"id": 108, "type": "binary_expression", "text": "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO", "parent": 107, "children": [109, 113, 114], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 66}}, {"id": 109, "type": "binary_expression", "text": "moduloConectado == T_COMANDA", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 32}}, {"id": 110, "type": "identifier", "text": "moduloConectado", "parent": 109, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 19}}, {"id": 111, "type": "==", "text": "==", "parent": 109, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 22}}, {"id": 112, "type": "identifier", "text": "T_COMANDA", "parent": 109, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 32}}, {"id": 113, "type": "||", "text": "||", "parent": 108, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 35}}, {"id": 114, "type": "binary_expression", "text": "moduloConectado == T_SINDICATO", "parent": 108, "children": [115, 116, 117], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 66}}, {"id": 115, "type": "identifier", "text": "moduloConectado", "parent": 114, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 51}}, {"id": 116, "type": "==", "text": "==", "parent": 114, "children": [], "start_point": {"row": 29, "column": 52}, "end_point": {"row": 29, "column": 54}}, {"id": 117, "type": "identifier", "text": "T_SINDICATO", "parent": 114, "children": [], "start_point": {"row": 29, "column": 55}, "end_point": {"row": 29, "column": 66}}, {"id": 118, "type": "||", "text": "||", "parent": 107, "children": [], "start_point": {"row": 29, "column": 67}, "end_point": {"row": 29, "column": 69}}, {"id": 119, "type": "binary_expression", "text": "moduloConectado == T_RESTAURANTE", "parent": 107, "children": [120, 121, 122], "start_point": {"row": 29, "column": 70}, "end_point": {"row": 29, "column": 102}}, {"id": 120, "type": "identifier", "text": "moduloConectado", "parent": 119, "children": [], "start_point": {"row": 29, "column": 70}, "end_point": {"row": 29, "column": 85}}, {"id": 121, "type": "==", "text": "==", "parent": 119, "children": [], "start_point": {"row": 29, "column": 86}, "end_point": {"row": 29, "column": 88}}, {"id": 122, "type": "identifier", "text": "T_RESTAURANTE", "parent": 119, "children": [], "start_point": {"row": 29, "column": 89}, "end_point": {"row": 29, "column": 102}}, {"id": 123, "type": "call_expression", "text": "log_info(logger,\"Creando socket de conexi\u00f3n.\");", "parent": 105, "children": [124, 125], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 49}}, {"id": 124, "type": "identifier", "text": "log_info", "parent": 123, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 10}}, {"id": 125, "type": "argument_list", "text": "(logger,\"Creando socket de conexi\u00f3n.\");", "parent": 123, "children": [126, 127], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 49}}, {"id": 126, "type": "identifier", "text": "logger", "parent": 125, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 17}}, {"id": 127, "type": "string_literal", "text": "\"Creando socket de conexi\u00f3n.\")", "parent": 125, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 48}}, {"id": 128, "type": "assignment_expression", "text": "ocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));", "parent": 105, "children": [129, 130, 131], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 86}}, {"id": 129, "type": "identifier", "text": "ocket_conectado ", "parent": 128, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 18}}, {"id": 130, "type": "=", "text": " ", "parent": 128, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 131, "type": "call_expression", "text": "rear_socket_de_conexion(config->ip, string_itoa(config->puerto));", "parent": 128, "children": [132, 133], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 86}}, {"id": 132, "type": "identifier", "text": "rear_socket_de_conexion(", "parent": 131, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 45}}, {"id": 133, "type": "argument_list", "text": "config->ip, string_itoa(config->puerto));", "parent": 131, "children": [134, 138], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 86}}, {"id": 134, "type": "field_expression", "text": "onfig->ip,", "parent": 133, "children": [135, 136, 137], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 56}}, {"id": 135, "type": "identifier", "text": "onfig-", "parent": 134, "children": [], "start_point": {"row": 32, "column": 46}, "end_point": {"row": 32, "column": 52}}, {"id": 136, "type": "->", "text": ">i", "parent": 134, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 54}}, {"id": 137, "type": "field_identifier", "text": "p,", "parent": 134, "children": [], "start_point": {"row": 32, "column": 54}, "end_point": {"row": 32, "column": 56}}, {"id": 138, "type": "call_expression", "text": "tring_itoa(config->puerto))", "parent": 133, "children": [139, 140], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 85}}, {"id": 139, "type": "identifier", "text": "tring_itoa(", "parent": 138, "children": [], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 69}}, {"id": 140, "type": "argument_list", "text": "config->puerto))", "parent": 138, "children": [141], "start_point": {"row": 32, "column": 69}, "end_point": {"row": 32, "column": 85}}, {"id": 141, "type": "field_expression", "text": "onfig->puerto)", "parent": 140, "children": [142, 143, 144], "start_point": {"row": 32, "column": 70}, "end_point": {"row": 32, "column": 84}}, {"id": 142, "type": "identifier", "text": "onfig-", "parent": 141, "children": [], "start_point": {"row": 32, "column": 70}, "end_point": {"row": 32, "column": 76}}, {"id": 143, "type": "->", "text": ">p", "parent": 141, "children": [], "start_point": {"row": 32, "column": 76}, "end_point": {"row": 32, "column": 78}}, {"id": 144, "type": "field_identifier", "text": "uerto)", "parent": 141, "children": [], "start_point": {"row": 32, "column": 78}, "end_point": {"row": 32, "column": 84}}, {"id": 145, "type": "call_expression", "text": "og_info(logger,\"Conectandose con sindicato...\");", "parent": 105, "children": [146, 147], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 50}}, {"id": 146, "type": "identifier", "text": "og_info(", "parent": 145, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 10}}, {"id": 147, "type": "argument_list", "text": "logger,\"Conectandose con sindicato...\");", "parent": 145, "children": [148, 149], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 50}}, {"id": 148, "type": "identifier", "text": "ogger,", "parent": 147, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 17}}, {"id": 149, "type": "string_literal", "text": "Conectandose con sindicato...\")", "parent": 147, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 49}}, {"id": 150, "type": "call_expression", "text": "onectar_socket(socket_conectado);", "parent": 105, "children": [151, 152], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 35}}, {"id": 151, "type": "identifier", "text": "onectar_socket(", "parent": 150, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 17}}, {"id": 152, "type": "argument_list", "text": "socket_conectado);", "parent": 150, "children": [153], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 35}}, {"id": 153, "type": "identifier", "text": "ocket_conectado)", "parent": 152, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 34}}, {"id": 154, "type": "switch_statement", "text": "witch(comandoApi){\n\t\tcase CREAR_PEDIDO:\n\t\t\tprintf(\"crearPedido\\n\");\n\t\t\tcrearPedido();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase CONSULTAR_RESTAURANTES:\n\t\t\tconsultarRestaurantes();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase SELECCIONAR_RESTAURANTE:\n\t\t\tseleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase OBTENER_RESTAURANTE:\n\t\t\tobtenerRestaurante(split[1]);\n\t\t\tfree(comando);\n\t\t\tfree(split);// Recibe un restaurante\n\t\t\tbreak;\n\t\tcase CONSULTAR_PLATOS:\n\t\t\tprintf(\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);\n\t\t\tconsultarPlatos(split[1]);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PEDIDO:\n\t\t\tguardarPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ANIADIR_PLATO:\n\t\t\taniadirPlato(split[1],split[2]);\n\t\t\tfree(split);// Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PLATO:\n\t\t\tguardarPlato(split[1],split[2],split[3],split[4]);\n\t\t\tfree(split); // Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONFIRMAR_PEDIDO:\n\t\t\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n\t\t\t\tconfirmarPedido(split[1],split[2]);\t\n\t\t\telse\n\t\t\t\tconfirmarPedido(split[1]);\n\t\t\tfree(split); // Recibe un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase PLATO_LISTO:\n\t\t\tplatoListo(split[1],split[2],split[3]);\n\t\t\tfree(split); // Recibe restaurante, id pedido, y comida\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONSULTAR_PEDIDO:\n\t\t\tconsultarPedido(split[1]);\n\t\t\tfree(split);// Recibe id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_PEDIDO:\n\t\t\tobtenerPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase FINALIZAR_PEDIDO:\n\t\t\tfinalizarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase TERMINAR_PEDIDO:\n\t\t\tterminarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_RECETA:\n\t\t\tobtenerReceta(split[1]);\n\t\t\tfree(split); // Recibe un plato\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ERROR:\n\t\t\tprintf(\"El comando %s no existe.\\n\",comando);\n\t\t\tchar* warning_mensaje = string_new();\n\t\t\tstring_append(&warning_mensaje,\"El comando ingresado no es valido: \");\n\t\t\tstring_append(&warning_mensaje,comando);\n\t\t\tlog_warning(logger,warning_mensaje);\n\t\t\tfree(warning_mensaje);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase EXIT:\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t}\n", "parent": 59, "children": [155, 156], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 134, "column": 2}}, {"id": 155, "type": "switch", "text": "witch(", "parent": 154, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 7}}, {"id": 156, "type": "parenthesized_expression", "text": "comandoApi){", "parent": 154, "children": [157], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 19}}, {"id": 157, "type": "identifier", "text": "omandoApi)", "parent": 156, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 18}}, {"id": 158, "type": "case_statement", "text": "ase CREAR_PEDIDO:\n\t\t\tprintf(\"crearPedido\\n\");\n\t\t\tcrearPedido();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n", "parent": 154, "children": [159, 160, 177], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 45, "column": 9}}, {"id": 159, "type": "case", "text": "ase ", "parent": 158, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 160, "type": "identifier", "text": "REAR_PEDIDO:", "parent": 158, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 19}}, {"id": 161, "type": "call_expression", "text": "rintf(\"crearPedido\\n\");", "parent": 158, "children": [162, 163], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 26}}, {"id": 162, "type": "identifier", "text": "rintf(", "parent": 161, "children": [], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 41, "column": 9}}, {"id": 163, "type": "argument_list", "text": "\"crearPedido\\n\");", "parent": 161, "children": [164], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 26}}, {"id": 164, "type": "string_literal", "text": "crearPedido\\n\")", "parent": 163, "children": [165], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 25}}, {"id": 165, "type": "escape_sequence", "text": "n\"", "parent": 164, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 24}}, {"id": 166, "type": "call_expression", "text": "rearPedido();", "parent": 158, "children": [167, 168], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 16}}, {"id": 167, "type": "identifier", "text": "rearPedido(", "parent": 166, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 14}}, {"id": 168, "type": "argument_list", "text": ");", "parent": 166, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 16}}, {"id": 169, "type": "call_expression", "text": "ree(comando);", "parent": 158, "children": [170, 171], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 16}}, {"id": 170, "type": "identifier", "text": "ree(", "parent": 169, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 7}}, {"id": 171, "type": "argument_list", "text": "comando);", "parent": 169, "children": [172], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 16}}, {"id": 172, "type": "identifier", "text": "omando)", "parent": 171, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 173, "type": "call_expression", "text": "ree(split);", "parent": 158, "children": [174, 175], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 14}}, {"id": 174, "type": "identifier", "text": "ree(", "parent": 173, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 7}}, {"id": 175, "type": "argument_list", "text": "split);", "parent": 173, "children": [176], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 14}}, {"id": 176, "type": "identifier", "text": "plit)", "parent": 175, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 13}}, {"id": 177, "type": "break_statement", "text": "reak;\n", "parent": 158, "children": [178], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 9}}, {"id": 178, "type": "break", "text": "reak;", "parent": 177, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 8}}, {"id": 179, "type": "case_statement", "text": "ase CONSULTAR_RESTAURANTES:\n\t\t\tconsultarRestaurantes();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n", "parent": 154, "children": [180, 181, 193], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 180, "type": "case", "text": "ase ", "parent": 179, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 181, "type": "identifier", "text": "ONSULTAR_RESTAURANTES:", "parent": 179, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 29}}, {"id": 182, "type": "call_expression", "text": "onsultarRestaurantes();", "parent": 179, "children": [183, 184], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 26}}, {"id": 183, "type": "identifier", "text": "onsultarRestaurantes(", "parent": 182, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 24}}, {"id": 184, "type": "argument_list", "text": ");", "parent": 182, "children": [], "start_point": {"row": 47, "column": 24}, "end_point": {"row": 47, "column": 26}}, {"id": 185, "type": "call_expression", "text": "ree(comando);", "parent": 179, "children": [186, 187], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 16}}, {"id": 186, "type": "identifier", "text": "ree(", "parent": 185, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 7}}, {"id": 187, "type": "argument_list", "text": "comando);", "parent": 185, "children": [188], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 16}}, {"id": 188, "type": "identifier", "text": "omando)", "parent": 187, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 15}}, {"id": 189, "type": "call_expression", "text": "ree(split);", "parent": 179, "children": [190, 191], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 14}}, {"id": 190, "type": "identifier", "text": "ree(", "parent": 189, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 7}}, {"id": 191, "type": "argument_list", "text": "split);", "parent": 189, "children": [192], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 14}}, {"id": 192, "type": "identifier", "text": "plit)", "parent": 191, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 13}}, {"id": 193, "type": "break_statement", "text": "reak;\n", "parent": 179, "children": [194], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 9}}, {"id": 194, "type": "break", "text": "reak;", "parent": 193, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 8}}, {"id": 195, "type": "case_statement", "text": "ase SELECCIONAR_RESTAURANTE:\n\t\t\tseleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n", "parent": 154, "children": [196, 197, 211], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 55, "column": 9}}, {"id": 196, "type": "case", "text": "ase ", "parent": 195, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 6}}, {"id": 197, "type": "identifier", "text": "ELECCIONAR_RESTAURANTE:", "parent": 195, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 30}}, {"id": 198, "type": "call_expression", "text": "eleccionarRestaurante(split[1]);", "parent": 195, "children": [199, 200], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 35}}, {"id": 199, "type": "identifier", "text": "eleccionarRestaurante(", "parent": 198, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 25}}, {"id": 200, "type": "argument_list", "text": "split[1]);", "parent": 198, "children": [201], "start_point": {"row": 52, "column": 25}, "end_point": {"row": 52, "column": 35}}, {"id": 201, "type": "subscript_expression", "text": "plit[1])", "parent": 200, "children": [202], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 34}}, {"id": 202, "type": "identifier", "text": "plit[", "parent": 201, "children": [], "start_point": {"row": 52, "column": 26}, "end_point": {"row": 52, "column": 31}}, {"id": 203, "type": "call_expression", "text": "ree(comando);", "parent": 195, "children": [204, 205], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 16}}, {"id": 204, "type": "identifier", "text": "ree(", "parent": 203, "children": [], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 7}}, {"id": 205, "type": "argument_list", "text": "comando);", "parent": 203, "children": [206], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 16}}, {"id": 206, "type": "identifier", "text": "omando)", "parent": 205, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 15}}, {"id": 207, "type": "call_expression", "text": "ree(split);", "parent": 195, "children": [208, 209], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 14}}, {"id": 208, "type": "identifier", "text": "ree(", "parent": 207, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 54, "column": 7}}, {"id": 209, "type": "argument_list", "text": "split);", "parent": 207, "children": [210], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 14}}, {"id": 210, "type": "identifier", "text": "plit)", "parent": 209, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 13}}, {"id": 211, "type": "break_statement", "text": "reak;\n", "parent": 195, "children": [212], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 9}}, {"id": 212, "type": "break", "text": "reak;", "parent": 211, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 8}}, {"id": 213, "type": "case_statement", "text": "ase OBTENER_RESTAURANTE:\n\t\t\tobtenerRestaurante(split[1]);\n\t\t\tfree(comando);\n\t\t\tfree(split);// Recibe un restaurante\n\t\t\tbreak;\n", "parent": 154, "children": [214, 215, 229], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 60, "column": 9}}, {"id": 214, "type": "case", "text": "ase ", "parent": 213, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 215, "type": "identifier", "text": "BTENER_RESTAURANTE:", "parent": 213, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 26}}, {"id": 216, "type": "call_expression", "text": "btenerRestaurante(split[1]);", "parent": 213, "children": [217, 218], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 31}}, {"id": 217, "type": "identifier", "text": "btenerRestaurante(", "parent": 216, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 21}}, {"id": 218, "type": "argument_list", "text": "split[1]);", "parent": 216, "children": [219], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 31}}, {"id": 219, "type": "subscript_expression", "text": "plit[1])", "parent": 218, "children": [220], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 30}}, {"id": 220, "type": "identifier", "text": "plit[", "parent": 219, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 27}}, {"id": 221, "type": "call_expression", "text": "ree(comando);", "parent": 213, "children": [222, 223], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 16}}, {"id": 222, "type": "identifier", "text": "ree(", "parent": 221, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 7}}, {"id": 223, "type": "argument_list", "text": "comando);", "parent": 221, "children": [224], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 16}}, {"id": 224, "type": "identifier", "text": "omando)", "parent": 223, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 225, "type": "call_expression", "text": "ree(split);", "parent": 213, "children": [226, 227], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 14}}, {"id": 226, "type": "identifier", "text": "ree(", "parent": 225, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 7}}, {"id": 227, "type": "argument_list", "text": "split);", "parent": 225, "children": [228], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 14}}, {"id": 228, "type": "identifier", "text": "plit)", "parent": 227, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 13}}, {"id": 229, "type": "break_statement", "text": "reak;\n", "parent": 213, "children": [230], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 9}}, {"id": 230, "type": "break", "text": "reak;", "parent": 229, "children": [], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 8}}, {"id": 231, "type": "case_statement", "text": "ase CONSULTAR_PLATOS:\n\t\t\tprintf(\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);\n\t\t\tconsultarPlatos(split[1]);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [232, 233, 257], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 66, "column": 9}}, {"id": 232, "type": "case", "text": "ase ", "parent": 231, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 233, "type": "identifier", "text": "ONSULTAR_PLATOS:", "parent": 231, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 23}}, {"id": 234, "type": "call_expression", "text": "rintf(\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);", "parent": 231, "children": [235, 236], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 55}}, {"id": 235, "type": "identifier", "text": "rintf(", "parent": 234, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 9}}, {"id": 236, "type": "argument_list", "text": "\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);", "parent": 234, "children": [237, 242], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 55}}, {"id": 237, "type": "string_literal", "text": "El restaurante es --> %s.\\n\\n\\n\\n\",", "parent": 236, "children": [238, 239, 240, 241], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 45}}, {"id": 238, "type": "escape_sequence", "text": "n\\", "parent": 237, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 38}}, {"id": 239, "type": "escape_sequence", "text": "n\\", "parent": 237, "children": [], "start_point": {"row": 62, "column": 38}, "end_point": {"row": 62, "column": 40}}, {"id": 240, "type": "escape_sequence", "text": "n\\", "parent": 237, "children": [], "start_point": {"row": 62, "column": 40}, "end_point": {"row": 62, "column": 42}}, {"id": 241, "type": "escape_sequence", "text": "n\"", "parent": 237, "children": [], "start_point": {"row": 62, "column": 42}, "end_point": {"row": 62, "column": 44}}, {"id": 242, "type": "subscript_expression", "text": "plit[1])", "parent": 236, "children": [243], "start_point": {"row": 62, "column": 46}, "end_point": {"row": 62, "column": 54}}, {"id": 243, "type": "identifier", "text": "plit[", "parent": 242, "children": [], "start_point": {"row": 62, "column": 46}, "end_point": {"row": 62, "column": 51}}, {"id": 244, "type": "call_expression", "text": "onsultarPlatos(split[1]);", "parent": 231, "children": [245, 246], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 28}}, {"id": 245, "type": "identifier", "text": "onsultarPlatos(", "parent": 244, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 18}}, {"id": 246, "type": "argument_list", "text": "split[1]);", "parent": 244, "children": [247], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 28}}, {"id": 247, "type": "subscript_expression", "text": "plit[1])", "parent": 246, "children": [248], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 27}}, {"id": 248, "type": "identifier", "text": "plit[", "parent": 247, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 24}}, {"id": 249, "type": "call_expression", "text": "ree(split);", "parent": 231, "children": [250, 251], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 14}}, {"id": 250, "type": "identifier", "text": "ree(", "parent": 249, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 251, "type": "argument_list", "text": "split);", "parent": 249, "children": [252], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 14}}, {"id": 252, "type": "identifier", "text": "plit)", "parent": 251, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 13}}, {"id": 253, "type": "call_expression", "text": "ree(comando);", "parent": 231, "children": [254, 255], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 16}}, {"id": 254, "type": "identifier", "text": "ree(", "parent": 253, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 255, "type": "argument_list", "text": "comando);", "parent": 253, "children": [256], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 16}}, {"id": 256, "type": "identifier", "text": "omando)", "parent": 255, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 15}}, {"id": 257, "type": "break_statement", "text": "reak;\n", "parent": 231, "children": [258], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 9}}, {"id": 258, "type": "break", "text": "reak;", "parent": 257, "children": [], "start_point": {"row": 66, "column": 3}, "end_point": {"row": 66, "column": 8}}, {"id": 259, "type": "case_statement", "text": "ase GUARDAR_PEDIDO:\n\t\t\tguardarPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [260, 261, 277], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 71, "column": 9}}, {"id": 260, "type": "case", "text": "ase ", "parent": 259, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 261, "type": "identifier", "text": "UARDAR_PEDIDO:", "parent": 259, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 21}}, {"id": 262, "type": "call_expression", "text": "uardarPedido(split[1],split[2]);", "parent": 259, "children": [263, 264], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 35}}, {"id": 263, "type": "identifier", "text": "uardarPedido(", "parent": 262, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 16}}, {"id": 264, "type": "argument_list", "text": "split[1],split[2]);", "parent": 262, "children": [265, 267], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 35}}, {"id": 265, "type": "subscript_expression", "text": "plit[1],", "parent": 264, "children": [266], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 25}}, {"id": 266, "type": "identifier", "text": "plit[", "parent": 265, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 22}}, {"id": 267, "type": "subscript_expression", "text": "plit[2])", "parent": 264, "children": [268], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 34}}, {"id": 268, "type": "identifier", "text": "plit[", "parent": 267, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 31}}, {"id": 269, "type": "call_expression", "text": "ree(split);", "parent": 259, "children": [270, 271], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 14}}, {"id": 270, "type": "identifier", "text": "ree(", "parent": 269, "children": [], "start_point": {"row": 69, "column": 3}, "end_point": {"row": 69, "column": 7}}, {"id": 271, "type": "argument_list", "text": "split);", "parent": 269, "children": [272], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 14}}, {"id": 272, "type": "identifier", "text": "plit)", "parent": 271, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 13}}, {"id": 273, "type": "call_expression", "text": "ree(comando);", "parent": 259, "children": [274, 275], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 16}}, {"id": 274, "type": "identifier", "text": "ree(", "parent": 273, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 7}}, {"id": 275, "type": "argument_list", "text": "comando);", "parent": 273, "children": [276], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 16}}, {"id": 276, "type": "identifier", "text": "omando)", "parent": 275, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 15}}, {"id": 277, "type": "break_statement", "text": "reak;\n", "parent": 259, "children": [278], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 9}}, {"id": 278, "type": "break", "text": "reak;", "parent": 277, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 8}}, {"id": 279, "type": "case_statement", "text": "ase ANIADIR_PLATO:\n\t\t\taniadirPlato(split[1],split[2]);\n\t\t\tfree(split);// Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [280, 281, 297], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 76, "column": 9}}, {"id": 280, "type": "case", "text": "ase ", "parent": 279, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 6}}, {"id": 281, "type": "identifier", "text": "NIADIR_PLATO:", "parent": 279, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 20}}, {"id": 282, "type": "call_expression", "text": "niadirPlato(split[1],split[2]);", "parent": 279, "children": [283, 284], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 34}}, {"id": 283, "type": "identifier", "text": "niadirPlato(", "parent": 282, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 15}}, {"id": 284, "type": "argument_list", "text": "split[1],split[2]);", "parent": 282, "children": [285, 287], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 34}}, {"id": 285, "type": "subscript_expression", "text": "plit[1],", "parent": 284, "children": [286], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 24}}, {"id": 286, "type": "identifier", "text": "plit[", "parent": 285, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 21}}, {"id": 287, "type": "subscript_expression", "text": "plit[2])", "parent": 284, "children": [288], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 33}}, {"id": 288, "type": "identifier", "text": "plit[", "parent": 287, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 30}}, {"id": 289, "type": "call_expression", "text": "ree(split);", "parent": 279, "children": [290, 291], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 14}}, {"id": 290, "type": "identifier", "text": "ree(", "parent": 289, "children": [], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 7}}, {"id": 291, "type": "argument_list", "text": "split);", "parent": 289, "children": [292], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 14}}, {"id": 292, "type": "identifier", "text": "plit)", "parent": 291, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 13}}, {"id": 293, "type": "call_expression", "text": "ree(comando);", "parent": 279, "children": [294, 295], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 16}}, {"id": 294, "type": "identifier", "text": "ree(", "parent": 293, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 7}}, {"id": 295, "type": "argument_list", "text": "comando);", "parent": 293, "children": [296], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 16}}, {"id": 296, "type": "identifier", "text": "omando)", "parent": 295, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 15}}, {"id": 297, "type": "break_statement", "text": "reak;\n", "parent": 279, "children": [298], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 9}}, {"id": 298, "type": "break", "text": "reak;", "parent": 297, "children": [], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 8}}, {"id": 299, "type": "case_statement", "text": "ase GUARDAR_PLATO:\n\t\t\tguardarPlato(split[1],split[2],split[3],split[4]);\n\t\t\tfree(split); // Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [300, 301, 321], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 81, "column": 9}}, {"id": 300, "type": "case", "text": "ase ", "parent": 299, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 6}}, {"id": 301, "type": "identifier", "text": "UARDAR_PLATO:", "parent": 299, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 20}}, {"id": 302, "type": "call_expression", "text": "uardarPlato(split[1],split[2],split[3],split[4]);", "parent": 299, "children": [303, 304], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 52}}, {"id": 303, "type": "identifier", "text": "uardarPlato(", "parent": 302, "children": [], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 78, "column": 15}}, {"id": 304, "type": "argument_list", "text": "split[1],split[2],split[3],split[4]);", "parent": 302, "children": [305, 307, 309, 311], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 52}}, {"id": 305, "type": "subscript_expression", "text": "plit[1],", "parent": 304, "children": [306], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 24}}, {"id": 306, "type": "identifier", "text": "plit[", "parent": 305, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 21}}, {"id": 307, "type": "subscript_expression", "text": "plit[2],", "parent": 304, "children": [308], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 33}}, {"id": 308, "type": "identifier", "text": "plit[", "parent": 307, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 30}}, {"id": 309, "type": "subscript_expression", "text": "plit[3],", "parent": 304, "children": [310], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 42}}, {"id": 310, "type": "identifier", "text": "plit[", "parent": 309, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 39}}, {"id": 311, "type": "subscript_expression", "text": "plit[4])", "parent": 304, "children": [312], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 51}}, {"id": 312, "type": "identifier", "text": "plit[", "parent": 311, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 48}}, {"id": 313, "type": "call_expression", "text": "ree(split);", "parent": 299, "children": [314, 315], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 14}}, {"id": 314, "type": "identifier", "text": "ree(", "parent": 313, "children": [], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 7}}, {"id": 315, "type": "argument_list", "text": "split);", "parent": 313, "children": [316], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 14}}, {"id": 316, "type": "identifier", "text": "plit)", "parent": 315, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 13}}, {"id": 317, "type": "call_expression", "text": "ree(comando);", "parent": 299, "children": [318, 319], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 16}}, {"id": 318, "type": "identifier", "text": "ree(", "parent": 317, "children": [], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 7}}, {"id": 319, "type": "argument_list", "text": "comando);", "parent": 317, "children": [320], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 16}}, {"id": 320, "type": "identifier", "text": "omando)", "parent": 319, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 15}}, {"id": 321, "type": "break_statement", "text": "reak;\n", "parent": 299, "children": [322], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 9}}, {"id": 322, "type": "break", "text": "reak;", "parent": 321, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 8}}, {"id": 323, "type": "case_statement", "text": "ase CONFIRMAR_PEDIDO:\n\t\t\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n\t\t\t\tconfirmarPedido(split[1],split[2]);\t\n\t\t\telse\n\t\t\t\tconfirmarPedido(split[1]);\n\t\t\tfree(split); // Recibe un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [324, 325, 326, 358], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 89, "column": 9}}, {"id": 324, "type": "case", "text": "ase ", "parent": 323, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 6}}, {"id": 325, "type": "identifier", "text": "ONFIRMAR_PEDIDO:", "parent": 323, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 23}}, {"id": 326, "type": "if_statement", "text": "f(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n\t\t\t\tconfirmarPedido(split[1],split[2]);\t\n\t\t\telse\n\t\t\t\tconfirmarPedido(split[1]);\n", "parent": 323, "children": [327, 344], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 86, "column": 30}}, {"id": 327, "type": "parenthesized_expression", "text": "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n", "parent": 326, "children": [328], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 69}}, {"id": 328, "type": "binary_expression", "text": "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)", "parent": 327, "children": [329, 333], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 68}}, {"id": 329, "type": "binary_expression", "text": "oduloConectado == T_COMANDA ", "parent": 328, "children": [330, 331, 332], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 34}}, {"id": 330, "type": "identifier", "text": "oduloConectado ", "parent": 329, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 21}}, {"id": 331, "type": "==", "text": "= ", "parent": 329, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 24}}, {"id": 332, "type": "identifier", "text": "_COMANDA ", "parent": 329, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 34}}, {"id": 333, "type": "binary_expression", "text": "oduloConectado == T_SINDICATO)", "parent": 328, "children": [334, 335, 336], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 68}}, {"id": 334, "type": "identifier", "text": "oduloConectado ", "parent": 333, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 53}}, {"id": 335, "type": "==", "text": "= ", "parent": 333, "children": [], "start_point": {"row": 83, "column": 54}, "end_point": {"row": 83, "column": 56}}, {"id": 336, "type": "identifier", "text": "_SINDICATO)", "parent": 333, "children": [], "start_point": {"row": 83, "column": 57}, "end_point": {"row": 83, "column": 68}}, {"id": 337, "type": "call_expression", "text": "onfirmarPedido(split[1],split[2]);", "parent": 326, "children": [338, 339], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 38}}, {"id": 338, "type": "identifier", "text": "onfirmarPedido(", "parent": 337, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 19}}, {"id": 339, "type": "argument_list", "text": "split[1],split[2]);", "parent": 337, "children": [340, 342], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 38}}, {"id": 340, "type": "subscript_expression", "text": "plit[1],", "parent": 339, "children": [341], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 28}}, {"id": 341, "type": "identifier", "text": "plit[", "parent": 340, "children": [], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 25}}, {"id": 342, "type": "subscript_expression", "text": "plit[2])", "parent": 339, "children": [343], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 37}}, {"id": 343, "type": "identifier", "text": "plit[", "parent": 342, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 34}}, {"id": 344, "type": "else_clause", "text": "lse\n\t\t\t\tconfirmarPedido(split[1]);\n", "parent": 326, "children": [], "start_point": {"row": 85, "column": 3}, "end_point": {"row": 86, "column": 30}}, {"id": 345, "type": "call_expression", "text": "onfirmarPedido(split[1]);", "parent": 344, "children": [346, 347], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 29}}, {"id": 346, "type": "identifier", "text": "onfirmarPedido(", "parent": 345, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 19}}, {"id": 347, "type": "argument_list", "text": "split[1]);", "parent": 345, "children": [348], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 29}}, {"id": 348, "type": "subscript_expression", "text": "plit[1])", "parent": 347, "children": [349], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 28}}, {"id": 349, "type": "identifier", "text": "plit[", "parent": 348, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 25}}, {"id": 350, "type": "call_expression", "text": "ree(split);", "parent": 323, "children": [351, 352], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 14}}, {"id": 351, "type": "identifier", "text": "ree(", "parent": 350, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 7}}, {"id": 352, "type": "argument_list", "text": "split);", "parent": 350, "children": [353], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 14}}, {"id": 353, "type": "identifier", "text": "plit)", "parent": 352, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 13}}, {"id": 354, "type": "call_expression", "text": "ree(comando);", "parent": 323, "children": [355, 356], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 16}}, {"id": 355, "type": "identifier", "text": "ree(", "parent": 354, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 7}}, {"id": 356, "type": "argument_list", "text": "comando);", "parent": 354, "children": [357], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 16}}, {"id": 357, "type": "identifier", "text": "omando)", "parent": 356, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 15}}, {"id": 358, "type": "break_statement", "text": "reak;\n", "parent": 323, "children": [359], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 9}}, {"id": 359, "type": "break", "text": "reak;", "parent": 358, "children": [], "start_point": {"row": 89, "column": 3}, "end_point": {"row": 89, "column": 8}}, {"id": 360, "type": "case_statement", "text": "ase PLATO_LISTO:\n\t\t\tplatoListo(split[1],split[2],split[3]);\n\t\t\tfree(split); // Recibe restaurante, id pedido, y comida\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [361, 362, 380], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 94, "column": 9}}, {"id": 361, "type": "case", "text": "ase ", "parent": 360, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 6}}, {"id": 362, "type": "identifier", "text": "LATO_LISTO:", "parent": 360, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 18}}, {"id": 363, "type": "call_expression", "text": "latoListo(split[1],split[2],split[3]);", "parent": 360, "children": [364, 365], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 41}}, {"id": 364, "type": "identifier", "text": "latoListo(", "parent": 363, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 13}}, {"id": 365, "type": "argument_list", "text": "split[1],split[2],split[3]);", "parent": 363, "children": [366, 368, 370], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 41}}, {"id": 366, "type": "subscript_expression", "text": "plit[1],", "parent": 365, "children": [367], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 22}}, {"id": 367, "type": "identifier", "text": "plit[", "parent": 366, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 19}}, {"id": 368, "type": "subscript_expression", "text": "plit[2],", "parent": 365, "children": [369], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 31}}, {"id": 369, "type": "identifier", "text": "plit[", "parent": 368, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 28}}, {"id": 370, "type": "subscript_expression", "text": "plit[3])", "parent": 365, "children": [371], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 40}}, {"id": 371, "type": "identifier", "text": "plit[", "parent": 370, "children": [], "start_point": {"row": 91, "column": 32}, "end_point": {"row": 91, "column": 37}}, {"id": 372, "type": "call_expression", "text": "ree(split);", "parent": 360, "children": [373, 374], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 14}}, {"id": 373, "type": "identifier", "text": "ree(", "parent": 372, "children": [], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 7}}, {"id": 374, "type": "argument_list", "text": "split);", "parent": 372, "children": [375], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 14}}, {"id": 375, "type": "identifier", "text": "plit)", "parent": 374, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 13}}, {"id": 376, "type": "call_expression", "text": "ree(comando);", "parent": 360, "children": [377, 378], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 16}}, {"id": 377, "type": "identifier", "text": "ree(", "parent": 376, "children": [], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 93, "column": 7}}, {"id": 378, "type": "argument_list", "text": "comando);", "parent": 376, "children": [379], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 16}}, {"id": 379, "type": "identifier", "text": "omando)", "parent": 378, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 15}}, {"id": 380, "type": "break_statement", "text": "reak;\n", "parent": 360, "children": [381], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 9}}, {"id": 381, "type": "break", "text": "reak;", "parent": 380, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 8}}, {"id": 382, "type": "case_statement", "text": "ase CONSULTAR_PEDIDO:\n\t\t\tconsultarPedido(split[1]);\n\t\t\tfree(split);// Recibe id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [383, 384, 398], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 99, "column": 9}}, {"id": 383, "type": "case", "text": "ase ", "parent": 382, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 6}}, {"id": 384, "type": "identifier", "text": "ONSULTAR_PEDIDO:", "parent": 382, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 23}}, {"id": 385, "type": "call_expression", "text": "onsultarPedido(split[1]);", "parent": 382, "children": [386, 387], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 28}}, {"id": 386, "type": "identifier", "text": "onsultarPedido(", "parent": 385, "children": [], "start_point": {"row": 96, "column": 3}, "end_point": {"row": 96, "column": 18}}, {"id": 387, "type": "argument_list", "text": "split[1]);", "parent": 385, "children": [388], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 28}}, {"id": 388, "type": "subscript_expression", "text": "plit[1])", "parent": 387, "children": [389], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 27}}, {"id": 389, "type": "identifier", "text": "plit[", "parent": 388, "children": [], "start_point": {"row": 96, "column": 19}, "end_point": {"row": 96, "column": 24}}, {"id": 390, "type": "call_expression", "text": "ree(split);", "parent": 382, "children": [391, 392], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 14}}, {"id": 391, "type": "identifier", "text": "ree(", "parent": 390, "children": [], "start_point": {"row": 97, "column": 3}, "end_point": {"row": 97, "column": 7}}, {"id": 392, "type": "argument_list", "text": "split);", "parent": 390, "children": [393], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 14}}, {"id": 393, "type": "identifier", "text": "plit)", "parent": 392, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 13}}, {"id": 394, "type": "call_expression", "text": "ree(comando);", "parent": 382, "children": [395, 396], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 16}}, {"id": 395, "type": "identifier", "text": "ree(", "parent": 394, "children": [], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 7}}, {"id": 396, "type": "argument_list", "text": "comando);", "parent": 394, "children": [397], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 16}}, {"id": 397, "type": "identifier", "text": "omando)", "parent": 396, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 15}}, {"id": 398, "type": "break_statement", "text": "reak;\n", "parent": 382, "children": [399], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 9}}, {"id": 399, "type": "break", "text": "reak;", "parent": 398, "children": [], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 8}}, {"id": 400, "type": "case_statement", "text": "ase OBTENER_PEDIDO:\n\t\t\tobtenerPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [401, 402, 418], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 104, "column": 9}}, {"id": 401, "type": "case", "text": "ase ", "parent": 400, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 6}}, {"id": 402, "type": "identifier", "text": "BTENER_PEDIDO:", "parent": 400, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 21}}, {"id": 403, "type": "call_expression", "text": "btenerPedido(split[1],split[2]);", "parent": 400, "children": [404, 405], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 35}}, {"id": 404, "type": "identifier", "text": "btenerPedido(", "parent": 403, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 16}}, {"id": 405, "type": "argument_list", "text": "split[1],split[2]);", "parent": 403, "children": [406, 408], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 35}}, {"id": 406, "type": "subscript_expression", "text": "plit[1],", "parent": 405, "children": [407], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 25}}, {"id": 407, "type": "identifier", "text": "plit[", "parent": 406, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 22}}, {"id": 408, "type": "subscript_expression", "text": "plit[2])", "parent": 405, "children": [409], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 34}}, {"id": 409, "type": "identifier", "text": "plit[", "parent": 408, "children": [], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 31}}, {"id": 410, "type": "call_expression", "text": "ree(split);", "parent": 400, "children": [411, 412], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 14}}, {"id": 411, "type": "identifier", "text": "ree(", "parent": 410, "children": [], "start_point": {"row": 102, "column": 3}, "end_point": {"row": 102, "column": 7}}, {"id": 412, "type": "argument_list", "text": "split);", "parent": 410, "children": [413], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 14}}, {"id": 413, "type": "identifier", "text": "plit)", "parent": 412, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 13}}, {"id": 414, "type": "call_expression", "text": "ree(comando);", "parent": 400, "children": [415, 416], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 16}}, {"id": 415, "type": "identifier", "text": "ree(", "parent": 414, "children": [], "start_point": {"row": 103, "column": 3}, "end_point": {"row": 103, "column": 7}}, {"id": 416, "type": "argument_list", "text": "comando);", "parent": 414, "children": [417], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 16}}, {"id": 417, "type": "identifier", "text": "omando)", "parent": 416, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 15}}, {"id": 418, "type": "break_statement", "text": "reak;\n", "parent": 400, "children": [419], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 9}}, {"id": 419, "type": "break", "text": "reak;", "parent": 418, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 8}}, {"id": 420, "type": "case_statement", "text": "ase FINALIZAR_PEDIDO:\n\t\t\tfinalizarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [421, 422, 438], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 421, "type": "case", "text": "ase ", "parent": 420, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 422, "type": "identifier", "text": "INALIZAR_PEDIDO:", "parent": 420, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 23}}, {"id": 423, "type": "call_expression", "text": "inalizarPedido(split[1],split[2]);", "parent": 420, "children": [424, 425], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 37}}, {"id": 424, "type": "identifier", "text": "inalizarPedido(", "parent": 423, "children": [], "start_point": {"row": 106, "column": 3}, "end_point": {"row": 106, "column": 18}}, {"id": 425, "type": "argument_list", "text": "split[1],split[2]);", "parent": 423, "children": [426, 428], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 37}}, {"id": 426, "type": "subscript_expression", "text": "plit[1],", "parent": 425, "children": [427], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 27}}, {"id": 427, "type": "identifier", "text": "plit[", "parent": 426, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 24}}, {"id": 428, "type": "subscript_expression", "text": "plit[2])", "parent": 425, "children": [429], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 36}}, {"id": 429, "type": "identifier", "text": "plit[", "parent": 428, "children": [], "start_point": {"row": 106, "column": 28}, "end_point": {"row": 106, "column": 33}}, {"id": 430, "type": "call_expression", "text": "ree(split);", "parent": 420, "children": [431, 432], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 14}}, {"id": 431, "type": "identifier", "text": "ree(", "parent": 430, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 7}}, {"id": 432, "type": "argument_list", "text": "split);", "parent": 430, "children": [433], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 14}}, {"id": 433, "type": "identifier", "text": "plit)", "parent": 432, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 13}}, {"id": 434, "type": "call_expression", "text": "ree(comando);", "parent": 420, "children": [435, 436], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 16}}, {"id": 435, "type": "identifier", "text": "ree(", "parent": 434, "children": [], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 7}}, {"id": 436, "type": "argument_list", "text": "comando);", "parent": 434, "children": [437], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 16}}, {"id": 437, "type": "identifier", "text": "omando)", "parent": 436, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 15}}, {"id": 438, "type": "break_statement", "text": "reak;\n", "parent": 420, "children": [439], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 9}}, {"id": 439, "type": "break", "text": "reak;", "parent": 438, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 8}}, {"id": 440, "type": "case_statement", "text": "ase TERMINAR_PEDIDO:\n\t\t\tterminarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [441, 442, 458], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 114, "column": 9}}, {"id": 441, "type": "case", "text": "ase ", "parent": 440, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 6}}, {"id": 442, "type": "identifier", "text": "ERMINAR_PEDIDO:", "parent": 440, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 22}}, {"id": 443, "type": "call_expression", "text": "erminarPedido(split[1],split[2]);", "parent": 440, "children": [444, 445], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 36}}, {"id": 444, "type": "identifier", "text": "erminarPedido(", "parent": 443, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 17}}, {"id": 445, "type": "argument_list", "text": "split[1],split[2]);", "parent": 443, "children": [446, 448], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 36}}, {"id": 446, "type": "subscript_expression", "text": "plit[1],", "parent": 445, "children": [447], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 26}}, {"id": 447, "type": "identifier", "text": "plit[", "parent": 446, "children": [], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 23}}, {"id": 448, "type": "subscript_expression", "text": "plit[2])", "parent": 445, "children": [449], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 35}}, {"id": 449, "type": "identifier", "text": "plit[", "parent": 448, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 32}}, {"id": 450, "type": "call_expression", "text": "ree(split);", "parent": 440, "children": [451, 452], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 14}}, {"id": 451, "type": "identifier", "text": "ree(", "parent": 450, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 7}}, {"id": 452, "type": "argument_list", "text": "split);", "parent": 450, "children": [453], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 14}}, {"id": 453, "type": "identifier", "text": "plit)", "parent": 452, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 13}}, {"id": 454, "type": "call_expression", "text": "ree(comando);", "parent": 440, "children": [455, 456], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 16}}, {"id": 455, "type": "identifier", "text": "ree(", "parent": 454, "children": [], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 7}}, {"id": 456, "type": "argument_list", "text": "comando);", "parent": 454, "children": [457], "start_point": {"row": 113, "column": 7}, "end_point": {"row": 113, "column": 16}}, {"id": 457, "type": "identifier", "text": "omando)", "parent": 456, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 15}}, {"id": 458, "type": "break_statement", "text": "reak;\n", "parent": 440, "children": [459], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 9}}, {"id": 459, "type": "break", "text": "reak;", "parent": 458, "children": [], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 8}}, {"id": 460, "type": "case_statement", "text": "ase OBTENER_RECETA:\n\t\t\tobtenerReceta(split[1]);\n\t\t\tfree(split); // Recibe un plato\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [461, 462, 476], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 119, "column": 9}}, {"id": 461, "type": "case", "text": "ase ", "parent": 460, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 6}}, {"id": 462, "type": "identifier", "text": "BTENER_RECETA:", "parent": 460, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 21}}, {"id": 463, "type": "call_expression", "text": "btenerReceta(split[1]);", "parent": 460, "children": [464, 465], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 26}}, {"id": 464, "type": "identifier", "text": "btenerReceta(", "parent": 463, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 16}}, {"id": 465, "type": "argument_list", "text": "split[1]);", "parent": 463, "children": [466], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 26}}, {"id": 466, "type": "subscript_expression", "text": "plit[1])", "parent": 465, "children": [467], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 25}}, {"id": 467, "type": "identifier", "text": "plit[", "parent": 466, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 22}}, {"id": 468, "type": "call_expression", "text": "ree(split);", "parent": 460, "children": [469, 470], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 14}}, {"id": 469, "type": "identifier", "text": "ree(", "parent": 468, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 7}}, {"id": 470, "type": "argument_list", "text": "split);", "parent": 468, "children": [471], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 14}}, {"id": 471, "type": "identifier", "text": "plit)", "parent": 470, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 13}}, {"id": 472, "type": "call_expression", "text": "ree(comando);", "parent": 460, "children": [473, 474], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 16}}, {"id": 473, "type": "identifier", "text": "ree(", "parent": 472, "children": [], "start_point": {"row": 118, "column": 3}, "end_point": {"row": 118, "column": 7}}, {"id": 474, "type": "argument_list", "text": "comando);", "parent": 472, "children": [475], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 16}}, {"id": 475, "type": "identifier", "text": "omando)", "parent": 474, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 15}}, {"id": 476, "type": "break_statement", "text": "reak;\n", "parent": 460, "children": [477], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 9}}, {"id": 477, "type": "break", "text": "reak;", "parent": 476, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 8}}, {"id": 478, "type": "case_statement", "text": "ase ERROR:\n\t\t\tprintf(\"El comando %s no existe.\\n\",comando);\n\t\t\tchar* warning_mensaje = string_new();\n\t\t\tstring_append(&warning_mensaje,\"El comando ingresado no es valido: \");\n\t\t\tstring_append(&warning_mensaje,comando);\n\t\t\tlog_warning(logger,warning_mensaje);\n\t\t\tfree(warning_mensaje);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [479, 480, 487, 528], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 129, "column": 9}}, {"id": 479, "type": "case", "text": "ase ", "parent": 478, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 6}}, {"id": 480, "type": "identifier", "text": "RROR:", "parent": 478, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 12}}, {"id": 481, "type": "call_expression", "text": "rintf(\"El comando %s no existe.\\n\",comando);", "parent": 478, "children": [482, 483], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 47}}, {"id": 482, "type": "identifier", "text": "rintf(", "parent": 481, "children": [], "start_point": {"row": 121, "column": 3}, "end_point": {"row": 121, "column": 9}}, {"id": 483, "type": "argument_list", "text": "\"El comando %s no existe.\\n\",comando);", "parent": 481, "children": [484, 486], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 47}}, {"id": 484, "type": "string_literal", "text": "El comando %s no existe.\\n\",", "parent": 483, "children": [485], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 38}}, {"id": 485, "type": "escape_sequence", "text": "n\"", "parent": 484, "children": [], "start_point": {"row": 121, "column": 35}, "end_point": {"row": 121, "column": 37}}, {"id": 486, "type": "identifier", "text": "omando)", "parent": 483, "children": [], "start_point": {"row": 121, "column": 39}, "end_point": {"row": 121, "column": 46}}, {"id": 487, "type": "declaration", "text": "har* warning_mensaje = string_new();\n", "parent": 478, "children": [488, 489], "start_point": {"row": 122, "column": 3}, "end_point": {"row": 122, "column": 40}}, {"id": 488, "type": "primitive_type", "text": "har*", "parent": 487, "children": [], "start_point": {"row": 122, "column": 3}, "end_point": {"row": 122, "column": 7}}, {"id": 489, "type": "init_declarator", "text": " warning_mensaje = string_new();", "parent": 487, "children": [490, 493, 494], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 39}}, {"id": 490, "type": "pointer_declarator", "text": " warning_mensaje ", "parent": 489, "children": [491, 492], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 24}}, {"id": 491, "type": "*", "text": " ", "parent": 490, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 8}}, {"id": 492, "type": "identifier", "text": "arning_mensaje ", "parent": 490, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 24}}, {"id": 493, "type": "=", "text": " ", "parent": 489, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 26}}, {"id": 494, "type": "call_expression", "text": "tring_new();", "parent": 489, "children": [495, 496], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 39}}, {"id": 495, "type": "identifier", "text": "tring_new(", "parent": 494, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 37}}, {"id": 496, "type": "argument_list", "text": ");", "parent": 494, "children": [], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 39}}, {"id": 497, "type": "call_expression", "text": "tring_append(&warning_mensaje,\"El comando ingresado no es valido: \");", "parent": 478, "children": [498, 499], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 72}}, {"id": 498, "type": "identifier", "text": "tring_append(", "parent": 497, "children": [], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 16}}, {"id": 499, "type": "argument_list", "text": "&warning_mensaje,\"El comando ingresado no es valido: \");", "parent": 497, "children": [500, 503], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 72}}, {"id": 500, "type": "pointer_expression", "text": "warning_mensaje,", "parent": 499, "children": [501, 502], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 33}}, {"id": 501, "type": "&", "text": "w", "parent": 500, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 18}}, {"id": 502, "type": "identifier", "text": "arning_mensaje,", "parent": 500, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 33}}, {"id": 503, "type": "string_literal", "text": "El comando ingresado no es valido: \")", "parent": 499, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 71}}, {"id": 504, "type": "call_expression", "text": "tring_append(&warning_mensaje,comando);", "parent": 478, "children": [505, 506], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 42}}, {"id": 505, "type": "identifier", "text": "tring_append(", "parent": 504, "children": [], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 16}}, {"id": 506, "type": "argument_list", "text": "&warning_mensaje,comando);", "parent": 504, "children": [507, 510], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 42}}, {"id": 507, "type": "pointer_expression", "text": "warning_mensaje,", "parent": 506, "children": [508, 509], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 33}}, {"id": 508, "type": "&", "text": "w", "parent": 507, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 18}}, {"id": 509, "type": "identifier", "text": "arning_mensaje,", "parent": 507, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 33}}, {"id": 510, "type": "identifier", "text": "omando)", "parent": 506, "children": [], "start_point": {"row": 124, "column": 34}, "end_point": {"row": 124, "column": 41}}, {"id": 511, "type": "call_expression", "text": "og_warning(logger,warning_mensaje);", "parent": 478, "children": [512, 513], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 38}}, {"id": 512, "type": "identifier", "text": "og_warning(", "parent": 511, "children": [], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 14}}, {"id": 513, "type": "argument_list", "text": "logger,warning_mensaje);", "parent": 511, "children": [514, 515], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 38}}, {"id": 514, "type": "identifier", "text": "ogger,", "parent": 513, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 21}}, {"id": 515, "type": "identifier", "text": "arning_mensaje)", "parent": 513, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 37}}, {"id": 516, "type": "call_expression", "text": "ree(warning_mensaje);", "parent": 478, "children": [517, 518], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 24}}, {"id": 517, "type": "identifier", "text": "ree(", "parent": 516, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 7}}, {"id": 518, "type": "argument_list", "text": "warning_mensaje);", "parent": 516, "children": [519], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 24}}, {"id": 519, "type": "identifier", "text": "arning_mensaje)", "parent": 518, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 23}}, {"id": 520, "type": "call_expression", "text": "ree(split);", "parent": 478, "children": [521, 522], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 14}}, {"id": 521, "type": "identifier", "text": "ree(", "parent": 520, "children": [], "start_point": {"row": 127, "column": 3}, "end_point": {"row": 127, "column": 7}}, {"id": 522, "type": "argument_list", "text": "split);", "parent": 520, "children": [523], "start_point": {"row": 127, "column": 7}, "end_point": {"row": 127, "column": 14}}, {"id": 523, "type": "identifier", "text": "plit)", "parent": 522, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 13}}, {"id": 524, "type": "call_expression", "text": "ree(comando);", "parent": 478, "children": [525, 526], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 16}}, {"id": 525, "type": "identifier", "text": "ree(", "parent": 524, "children": [], "start_point": {"row": 128, "column": 3}, "end_point": {"row": 128, "column": 7}}, {"id": 526, "type": "argument_list", "text": "comando);", "parent": 524, "children": [527], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 16}}, {"id": 527, "type": "identifier", "text": "omando)", "parent": 526, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 15}}, {"id": 528, "type": "break_statement", "text": "reak;\n", "parent": 478, "children": [529], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 9}}, {"id": 529, "type": "break", "text": "reak;", "parent": 528, "children": [], "start_point": {"row": 129, "column": 3}, "end_point": {"row": 129, "column": 8}}, {"id": 530, "type": "case_statement", "text": "ase EXIT:\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n", "parent": 154, "children": [531, 532, 541], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 133, "column": 9}}, {"id": 531, "type": "case", "text": "ase ", "parent": 530, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 6}}, {"id": 532, "type": "identifier", "text": "XIT:", "parent": 530, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 11}}, {"id": 533, "type": "call_expression", "text": "ree(split);", "parent": 530, "children": [534, 535], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 14}}, {"id": 534, "type": "identifier", "text": "ree(", "parent": 533, "children": [], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 7}}, {"id": 535, "type": "argument_list", "text": "split);", "parent": 533, "children": [536], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 14}}, {"id": 536, "type": "identifier", "text": "plit)", "parent": 535, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 13}}, {"id": 537, "type": "call_expression", "text": "ree(comando);", "parent": 530, "children": [538, 539], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 16}}, {"id": 538, "type": "identifier", "text": "ree(", "parent": 537, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 7}}, {"id": 539, "type": "argument_list", "text": "comando);", "parent": 537, "children": [540], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 16}}, {"id": 540, "type": "identifier", "text": "omando)", "parent": 539, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 15}}, {"id": 541, "type": "break_statement", "text": "reak;\n", "parent": 530, "children": [542], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 9}}, {"id": 542, "type": "break", "text": "reak;", "parent": 541, "children": [], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 8}}, {"id": 543, "type": "if_statement", "text": "f(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\t//close(socket_conectado.socket);\n\t}\n", "parent": 59, "children": [544], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 138, "column": 2}}, {"id": 544, "type": "parenthesized_expression", "text": "moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){", "parent": 543, "children": [545], "start_point": {"row": 136, "column": 3}, "end_point": {"row": 136, "column": 103}}, {"id": 545, "type": "binary_expression", "text": "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE)", "parent": 544, "children": [546, 555], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 102}}, {"id": 546, "type": "binary_expression", "text": "oduloConectado == T_COMANDA || moduloConectado == T_SINDICATO ", "parent": 545, "children": [547, 551], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 66}}, {"id": 547, "type": "binary_expression", "text": "oduloConectado == T_COMANDA ", "parent": 546, "children": [548, 549, 550], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 32}}, {"id": 548, "type": "identifier", "text": "oduloConectado ", "parent": 547, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 19}}, {"id": 549, "type": "==", "text": "= ", "parent": 547, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 22}}, {"id": 550, "type": "identifier", "text": "_COMANDA ", "parent": 547, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 32}}, {"id": 551, "type": "binary_expression", "text": "oduloConectado == T_SINDICATO ", "parent": 546, "children": [552, 553, 554], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 66}}, {"id": 552, "type": "identifier", "text": "oduloConectado ", "parent": 551, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 51}}, {"id": 553, "type": "==", "text": "= ", "parent": 551, "children": [], "start_point": {"row": 136, "column": 52}, "end_point": {"row": 136, "column": 54}}, {"id": 554, "type": "identifier", "text": "_SINDICATO ", "parent": 551, "children": [], "start_point": {"row": 136, "column": 55}, "end_point": {"row": 136, "column": 66}}, {"id": 555, "type": "binary_expression", "text": "oduloConectado == T_RESTAURANTE)", "parent": 545, "children": [556, 557, 558], "start_point": {"row": 136, "column": 70}, "end_point": {"row": 136, "column": 102}}, {"id": 556, "type": "identifier", "text": "oduloConectado ", "parent": 555, "children": [], "start_point": {"row": 136, "column": 70}, "end_point": {"row": 136, "column": 85}}, {"id": 557, "type": "==", "text": "= ", "parent": 555, "children": [], "start_point": {"row": 136, "column": 86}, "end_point": {"row": 136, "column": 88}}, {"id": 558, "type": "identifier", "text": "_RESTAURANTE)", "parent": 555, "children": [], "start_point": {"row": 136, "column": 89}, "end_point": {"row": 136, "column": 102}}]}, "node_categories": {"declarations": {"functions": [3, 7, 59, 61], "variables": [13, 64, 69, 84, 94, 487], "classes": [], "imports": [0, 1], "modules": [], "enums": [95, 96]}, "statements": {"expressions": [11, 20, 26, 30, 31, 36, 41, 45, 51, 55, 79, 91, 101, 106, 107, 108, 109, 114, 119, 123, 131, 134, 138, 141, 145, 150, 156, 161, 166, 169, 173, 182, 185, 189, 198, 201, 203, 207, 216, 219, 221, 225, 234, 242, 244, 247, 249, 253, 262, 265, 267, 269, 273, 282, 285, 287, 289, 293, 302, 305, 307, 309, 311, 313, 317, 327, 328, 329, 333, 337, 340, 342, 345, 348, 350, 354, 363, 366, 368, 370, 372, 376, 385, 388, 390, 394, 403, 406, 408, 410, 414, 423, 426, 428, 430, 434, 443, 446, 448, 450, 454, 463, 466, 468, 472, 481, 494, 497, 500, 504, 507, 511, 516, 520, 524, 533, 537, 544, 545, 546, 547, 551, 555], "assignments": [23, 76, 128], "loops": [10], "conditionals": [8, 18, 21, 24, 27, 29, 32, 34, 37, 42, 44, 46, 48, 52, 54, 56, 58, 62, 68, 75, 77, 80, 82, 89, 92, 97, 99, 102, 104, 105, 110, 112, 115, 117, 120, 122, 124, 126, 129, 132, 135, 137, 139, 142, 144, 146, 148, 151, 153, 154, 155, 157, 158, 159, 160, 162, 167, 170, 172, 174, 176, 179, 180, 181, 183, 186, 188, 190, 192, 195, 196, 197, 199, 202, 204, 206, 208, 210, 213, 214, 215, 217, 220, 222, 224, 226, 228, 231, 232, 233, 235, 243, 245, 248, 250, 252, 254, 256, 259, 260, 261, 263, 266, 268, 270, 272, 274, 276, 279, 280, 281, 283, 286, 288, 290, 292, 294, 296, 299, 300, 301, 303, 306, 308, 310, 312, 314, 316, 318, 320, 323, 324, 325, 326, 330, 332, 334, 336, 338, 341, 343, 346, 349, 351, 353, 355, 357, 360, 361, 362, 364, 367, 369, 371, 373, 375, 377, 379, 382, 383, 384, 386, 389, 391, 393, 395, 397, 400, 401, 402, 404, 407, 409, 411, 413, 415, 417, 420, 421, 422, 424, 427, 429, 431, 433, 435, 437, 440, 441, 442, 444, 447, 449, 451, 453, 455, 457, 460, 461, 462, 464, 467, 469, 471, 473, 475, 478, 479, 480, 482, 486, 492, 495, 498, 502, 505, 509, 510, 512, 514, 515, 517, 519, 521, 523, 525, 527, 530, 531, 532, 534, 536, 538, 540, 543, 548, 550, 552, 554, 556, 558], "returns": [49], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 12, 35, 39, 50, 83, 93, 127, 149, 164, 237, 484, 503], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "void* manejar_consola(){\n\n\t\twhile (1) {\n\t\tchar* entrada = string_new();\n\t\tentrada = leerlinea();\n\t\ti"}, {"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "manejar_consola()"}, {"node_id": 59, "universal_type": "function", "name": "ejecutarComando", "text_snippet": "void ejecutarComando(char* input) {\n\n\tchar ** split;\n\n\tsplit = string_split(input,\" \");\n\n\tchar * com"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "ejecutarComando(char* input)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"consola.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"consola.h\"\n\nvoid* manejar_consola(){\n\n\t\twhile (1) {\n\t\tchar* entrada = string_new();\n\t\tentrada = leerlinea();\n\t\tif(string_equals_ignore_case(entrada,\"EXIT\")){\n\t\t\tprintf(\"Finalizando el programa...\\n\");\n\t\t\tfree(entrada);\n\t\t\tfinalizar(socket_cliente_app);\n\t\t\treturn -1;\n\t\t}\n\t\tejecutarComando(entrada);\n\t\tfree(entrada);\n\t\t}\n}\n\n\nvoid ejecutarComando(char* input) {\n\n\tchar ** split;\n\n\tsplit = string_split(input,\" \");\n\n\tchar * comando = split[0];\n\n\tenum API comandoApi = obtenerComando(comando);\n\n\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\tlog_info(logger,\"Creando socket de conexi\u00f3n.\");\n\n\t\tsocket_conectado = crear_socket_de_conexion(config->ip, string_itoa(config->puerto));\n\n\t\tlog_info(logger,\"Conectandose con sindicato...\");\n\t\n\t\tconectar_socket(socket_conectado);\n\t}\n\n\tswitch(comandoApi){\n\t\tcase CREAR_PEDIDO:\n\t\t\tprintf(\"crearPedido\\n\");\n\t\t\tcrearPedido();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase CONSULTAR_RESTAURANTES:\n\t\t\tconsultarRestaurantes();\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase SELECCIONAR_RESTAURANTE:\n\t\t\tseleccionarRestaurante(split[1]); // TODO recibir solo el restaurante, y enviar el ID del cliente por socket\n\t\t\tfree(comando);\n\t\t\tfree(split);\n\t\t\tbreak;\n\t\tcase OBTENER_RESTAURANTE:\n\t\t\tobtenerRestaurante(split[1]);\n\t\t\tfree(comando);\n\t\t\tfree(split);// Recibe un restaurante\n\t\t\tbreak;\n\t\tcase CONSULTAR_PLATOS:\n\t\t\tprintf(\"El restaurante es --> %s.\\n\\n\\n\\n\",split[1]);\n\t\t\tconsultarPlatos(split[1]);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PEDIDO:\n\t\t\tguardarPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ANIADIR_PLATO:\n\t\t\taniadirPlato(split[1],split[2]);\n\t\t\tfree(split);// Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase GUARDAR_PLATO:\n\t\t\tguardarPlato(split[1],split[2],split[3],split[4]);\n\t\t\tfree(split); // Recibe un plato y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONFIRMAR_PEDIDO:\n\t\t\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO)\n\t\t\t\tconfirmarPedido(split[1],split[2]);\t\n\t\t\telse\n\t\t\t\tconfirmarPedido(split[1]);\n\t\t\tfree(split); // Recibe un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase PLATO_LISTO:\n\t\t\tplatoListo(split[1],split[2],split[3]);\n\t\t\tfree(split); // Recibe restaurante, id pedido, y comida\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase CONSULTAR_PEDIDO:\n\t\t\tconsultarPedido(split[1]);\n\t\t\tfree(split);// Recibe id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_PEDIDO:\n\t\t\tobtenerPedido(split[1],split[2]);\n\t\t\tfree(split);// Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase FINALIZAR_PEDIDO:\n\t\t\tfinalizarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase TERMINAR_PEDIDO:\n\t\t\tterminarPedido(split[1],split[2]);\n\t\t\tfree(split); // Recibe un restaurante y un id de pedido\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase OBTENER_RECETA:\n\t\t\tobtenerReceta(split[1]);\n\t\t\tfree(split); // Recibe un plato\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase ERROR:\n\t\t\tprintf(\"El comando %s no existe.\\n\",comando);\n\t\t\tchar* warning_mensaje = string_new();\n\t\t\tstring_append(&warning_mensaje,\"El comando ingresado no es valido: \");\n\t\t\tstring_append(&warning_mensaje,comando);\n\t\t\tlog_warning(logger,warning_mensaje);\n\t\t\tfree(warning_mensaje);\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t\tcase EXIT:\n\t\t\tfree(split);\n\t\t\tfree(comando);\n\t\t\tbreak;\n\t}\n\n\tif(moduloConectado == T_COMANDA || moduloConectado == T_SINDICATO || moduloConectado == T_RESTAURANTE){\n\t\t//close(socket_conectado.socket);\n\t}\n}\n"}
80,744
c
#pragma once #include <vapor/VolumeAlgorithm.h> #include <vapor/Texture.h> #include <vapor/MapperFunction.h> namespace VAPoR { //! \class VolumeGLSL //! \ingroup Public_Render //! //! \brief Volume rendering algorithms using GLSL //! //! \author <NAME> //! \date July, 2020 class VolumeGLSL : public VolumeAlgorithm { public: VolumeGLSL(GLManager *gl, VolumeRenderer *renderer); ~VolumeGLSL(); virtual void SaveDepthBuffer(bool fast); virtual int Render(bool fast); virtual int LoadData(const Grid *grid); virtual ShaderProgram *GetShader() const = 0; virtual void SetUniforms(const ShaderProgram *shader) const = 0; virtual void GetFinalBlendingMode(int *src, int *dst); private: Texture1D _LUTTexture; Texture1D _LUT2Texture; Texture2D _depthTexture; MapperFunction *_tf = 0, *_tf2 = 0; vector<double> _minDataExtents, _maxDataExtents; vector<float> _constantColor; void _loadTF(); void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF); void _getLUTFromTF(const MapperFunction *tf, float *LUT) const; void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const; glm::vec3 _getVolumeScales() const; void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const; bool _usingColorMapData() const; }; } // namespace VAPoR
37.87
38
(translation_unit) "#pragma once\n\n#include <vapor/VolumeAlgorithm.h>\n#include <vapor/Texture.h>\n#include <vapor/MapperFunction.h>\n\nnamespace VAPoR {\n\n//! \class VolumeGLSL\n//! \ingroup Public_Render\n//!\n//! \brief Volume rendering algorithms using GLSL\n//!\n//! \author <NAME>\n//! \date July, 2020\n\nclass VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n};\n} // namespace VAPoR\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <vapor/VolumeAlgorithm.h>\n" (#include) "#include" (system_lib_string) "<vapor/VolumeAlgorithm.h>" (preproc_include) "#include <vapor/Texture.h>\n" (#include) "#include" (system_lib_string) "<vapor/Texture.h>" (preproc_include) "#include <vapor/MapperFunction.h>\n" (#include) "#include" (system_lib_string) "<vapor/MapperFunction.h>" (function_definition) "namespace VAPoR {\n\n//! \class VolumeGLSL\n//! \ingroup Public_Render\n//!\n//! \brief Volume rendering algorithms using GLSL\n//!\n//! \author <NAME>\n//! \date July, 2020\n\nclass VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n};\n}" (type_identifier) "namespace" (identifier) "VAPoR" (compound_statement) "{\n\n//! \class VolumeGLSL\n//! \ingroup Public_Render\n//!\n//! \brief Volume rendering algorithms using GLSL\n//!\n//! \author <NAME>\n//! \date July, 2020\n\nclass VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n};\n}" ({) "{" (comment) "//! \class VolumeGLSL" (comment) "//! \ingroup Public_Render" (comment) "//!" (comment) "//! \brief Volume rendering algorithms using GLSL" (comment) "//!" (comment) "//! \author <NAME>" (comment) "//! \date July, 2020" (function_definition) "class VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n}" (type_identifier) "class" (ERROR) "VolumeGLSL : public" (identifier) "VolumeGLSL" (:) ":" (identifier) "public" (identifier) "VolumeAlgorithm" (compound_statement) "{\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n}" ({) "{" (labeled_statement) "public:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);" (statement_identifier) "public" (:) ":" (expression_statement) "VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);" (call_expression) "VolumeGLSL(GLManager *gl, VolumeRenderer *renderer)" (identifier) "VolumeGLSL" (argument_list) "(GLManager *gl, VolumeRenderer *renderer)" (() "(" (binary_expression) "GLManager *gl" (identifier) "GLManager" (*) "*" (identifier) "gl" (,) "," (binary_expression) "VolumeRenderer *renderer" (identifier) "VolumeRenderer" (*) "*" (identifier) "renderer" ()) ")" (;) ";" (expression_statement) "~VolumeGLSL();" (unary_expression) "~VolumeGLSL()" (~) "~" (call_expression) "VolumeGLSL()" (identifier) "VolumeGLSL" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void SaveDepthBuffer(bool fast);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "SaveDepthBuffer(bool fast)" (identifier) "SaveDepthBuffer" (parameter_list) "(bool fast)" (() "(" (parameter_declaration) "bool fast" (primitive_type) "bool" (identifier) "fast" ()) ")" (;) ";" (declaration) "virtual int Render(bool fast);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "Render(bool fast)" (identifier) "Render" (parameter_list) "(bool fast)" (() "(" (parameter_declaration) "bool fast" (primitive_type) "bool" (identifier) "fast" ()) ")" (;) ";" (declaration) "virtual int LoadData(const Grid *grid);" (type_identifier) "virtual" (ERROR) "int" (identifier) "int" (function_declarator) "LoadData(const Grid *grid)" (identifier) "LoadData" (parameter_list) "(const Grid *grid)" (() "(" (parameter_declaration) "const Grid *grid" (type_qualifier) "const" (const) "const" (type_identifier) "Grid" (pointer_declarator) "*grid" (*) "*" (identifier) "grid" ()) ")" (;) ";" (declaration) "virtual ShaderProgram *GetShader() const = 0;" (type_identifier) "virtual" (ERROR) "ShaderProgram" (identifier) "ShaderProgram" (init_declarator) "*GetShader() const = 0" (pointer_declarator) "*GetShader() const" (*) "*" (function_declarator) "GetShader() const" (identifier) "GetShader" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void SetUniforms(const ShaderProgram *shader) const = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "SetUniforms(const ShaderProgram *shader) const = 0" (function_declarator) "SetUniforms(const ShaderProgram *shader) const" (identifier) "SetUniforms" (parameter_list) "(const ShaderProgram *shader)" (() "(" (parameter_declaration) "const ShaderProgram *shader" (type_qualifier) "const" (const) "const" (type_identifier) "ShaderProgram" (pointer_declarator) "*shader" (*) "*" (identifier) "shader" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void GetFinalBlendingMode(int *src, int *dst);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "GetFinalBlendingMode(int *src, int *dst)" (identifier) "GetFinalBlendingMode" (parameter_list) "(int *src, int *dst)" (() "(" (parameter_declaration) "int *src" (primitive_type) "int" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "int *dst" (primitive_type) "int" (pointer_declarator) "*dst" (*) "*" (identifier) "dst" ()) ")" (;) ";" (labeled_statement) "private:\n Texture1D _LUTTexture;" (statement_identifier) "private" (:) ":" (declaration) "Texture1D _LUTTexture;" (type_identifier) "Texture1D" (identifier) "_LUTTexture" (;) ";" (declaration) "Texture1D _LUT2Texture;" (type_identifier) "Texture1D" (identifier) "_LUT2Texture" (;) ";" (declaration) "Texture2D _depthTexture;" (type_identifier) "Texture2D" (identifier) "_depthTexture" (;) ";" (declaration) "MapperFunction *_tf = 0, *_tf2 = 0;" (type_identifier) "MapperFunction" (init_declarator) "*_tf = 0" (pointer_declarator) "*_tf" (*) "*" (identifier) "_tf" (=) "=" (number_literal) "0" (,) "," (init_declarator) "*_tf2 = 0" (pointer_declarator) "*_tf2" (*) "*" (identifier) "_tf2" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "vector<double> _minDataExtents, _maxDataExtents;" (comma_expression) "vector<double> _minDataExtents, _maxDataExtents" (binary_expression) "vector<double> _minDataExtents" (binary_expression) "vector<double" (identifier) "vector" (<) "<" (identifier) "double" (>) ">" (identifier) "_minDataExtents" (,) "," (identifier) "_maxDataExtents" (;) ";" (expression_statement) "vector<float> _constantColor;" (binary_expression) "vector<float> _constantColor" (binary_expression) "vector<float" (identifier) "vector" (<) "<" (identifier) "float" (>) ">" (identifier) "_constantColor" (;) ";" (declaration) "void _loadTF();" (primitive_type) "void" (function_declarator) "_loadTF()" (identifier) "_loadTF" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);" (primitive_type) "void" (function_declarator) "_loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF)" (identifier) "_loadTF" (parameter_list) "(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF)" (() "(" (parameter_declaration) "Texture1D *texture" (type_identifier) "Texture1D" (pointer_declarator) "*texture" (*) "*" (identifier) "texture" (,) "," (parameter_declaration) "MapperFunction *tf" (type_identifier) "MapperFunction" (pointer_declarator) "*tf" (*) "*" (identifier) "tf" (,) "," (parameter_declaration) "MapperFunction **cacheTF" (type_identifier) "MapperFunction" (pointer_declarator) "**cacheTF" (*) "*" (pointer_declarator) "*cacheTF" (*) "*" (identifier) "cacheTF" ()) ")" (;) ";" (ERROR) "void _getLUTFromTF(const MapperFunction *tf, float *LUT) const" (primitive_type) "void" (function_declarator) "_getLUTFromTF(const MapperFunction *tf, float *LUT) const" (identifier) "_getLUTFromTF" (parameter_list) "(const MapperFunction *tf, float *LUT)" (() "(" (parameter_declaration) "const MapperFunction *tf" (type_qualifier) "const" (const) "const" (type_identifier) "MapperFunction" (pointer_declarator) "*tf" (*) "*" (identifier) "tf" (,) "," (parameter_declaration) "float *LUT" (primitive_type) "float" (pointer_declarator) "*LUT" (*) "*" (identifier) "LUT" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const" (primitive_type) "void" (function_declarator) "_setShaderUniforms(const ShaderProgram *shader, const bool fast) const" (identifier) "_setShaderUniforms" (parameter_list) "(const ShaderProgram *shader, const bool fast)" (() "(" (parameter_declaration) "const ShaderProgram *shader" (type_qualifier) "const" (const) "const" (type_identifier) "ShaderProgram" (pointer_declarator) "*shader" (*) "*" (identifier) "shader" (,) "," (parameter_declaration) "const bool fast" (type_qualifier) "const" (const) "const" (primitive_type) "bool" (identifier) "fast" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (labeled_statement) "glm::vec3 _getVolumeScales() const;" (statement_identifier) "glm" (:) ":" (ERROR) ":vec3 _getVolumeScales() const" (:) ":" (type_identifier) "vec3" (function_declarator) "_getVolumeScales() const" (identifier) "_getVolumeScales" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const" (primitive_type) "void" (function_declarator) "_getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const" (identifier) "_getExtents" (parameter_list) "(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax)" (() "(" (parameter_declaration) "glm::vec3 *dataMin" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (pointer_declarator) "*dataMin" (*) "*" (identifier) "dataMin" (,) "," (parameter_declaration) "glm::vec3 *dataMax" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (pointer_declarator) "*dataMax" (*) "*" (identifier) "dataMax" (,) "," (parameter_declaration) "glm::vec3 *userMin" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (pointer_declarator) "*userMin" (*) "*" (identifier) "userMin" (,) "," (parameter_declaration) "glm::vec3 *userMax" (type_identifier) "glm" (ERROR) "::vec3" (:) ":" (:) ":" (identifier) "vec3" (pointer_declarator) "*userMax" (*) "*" (identifier) "userMax" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool _usingColorMapData() const" (primitive_type) "bool" (function_declarator) "_usingColorMapData()" (identifier) "_usingColorMapData" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace VAPoR"
375
16
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 37.87, "nodes": 252, "errors": 0, "source_hash": "ea5b92f8aab658beef80238c1b0a1c5579bf962d6f7f382e223dfc8d5821f9e1", "categorized_nodes": 153}, "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 <vapor/VolumeAlgorithm.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<vapor/VolumeAlgorithm.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 34}}, {"id": 6, "type": "preproc_include", "text": "#include <vapor/Texture.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<vapor/Texture.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "preproc_include", "text": "#include <vapor/MapperFunction.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": "system_lib_string", "text": "<vapor/MapperFunction.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 33}}, {"id": 12, "type": "function_definition", "text": "namespace VAPoR {\n\n//! \\class VolumeGLSL\n//! \\ingroup Public_Render\n//!\n//! \\brief Volume rendering algorithms using GLSL\n//!\n//! \\author <NAME>\n//! \\date July, 2020\n\nclass VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n};\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 45, "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": "VAPoR", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 15}}, {"id": 15, "type": "function_definition", "text": "class VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n}", "parent": 12, "children": [16, 18], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 16, "type": "ERROR", "text": "VolumeGLSL : public", "parent": 15, "children": [17], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 25}}, {"id": 17, "type": "identifier", "text": "VolumeGLSL", "parent": 16, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 16}}, {"id": 18, "type": "identifier", "text": "VolumeAlgorithm", "parent": 15, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 41}}, {"id": 19, "type": "labeled_statement", "text": "public:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 56}}, {"id": 20, "type": "call_expression", "text": "VolumeGLSL(GLManager *gl, VolumeRenderer *renderer)", "parent": 19, "children": [21, 22], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 55}}, {"id": 21, "type": "identifier", "text": "VolumeGLSL", "parent": 20, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 14}}, {"id": 22, "type": "argument_list", "text": "(GLManager *gl, VolumeRenderer *renderer)", "parent": 20, "children": [23, 27], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 55}}, {"id": 23, "type": "binary_expression", "text": "GLManager *gl", "parent": 22, "children": [24, 25, 26], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 28}}, {"id": 24, "type": "identifier", "text": "GLManager", "parent": 23, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 24}}, {"id": 25, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 26}}, {"id": 26, "type": "identifier", "text": "gl", "parent": 23, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 28}}, {"id": 27, "type": "binary_expression", "text": "VolumeRenderer *renderer", "parent": 22, "children": [28, 29, 30], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 54}}, {"id": 28, "type": "identifier", "text": "VolumeRenderer", "parent": 27, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 44}}, {"id": 29, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 46}}, {"id": 30, "type": "identifier", "text": "renderer", "parent": 27, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 54}}, {"id": 31, "type": "unary_expression", "text": "~VolumeGLSL()", "parent": 15, "children": [32, 33], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 17}}, {"id": 32, "type": "~", "text": "~", "parent": 31, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 33, "type": "call_expression", "text": "VolumeGLSL()", "parent": 31, "children": [34, 35], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 17}}, {"id": 34, "type": "identifier", "text": "VolumeGLSL", "parent": 33, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 15}}, {"id": 35, "type": "argument_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 17}}, {"id": 36, "type": "declaration", "text": "virtual void SaveDepthBuffer(bool fast);", "parent": 15, "children": [37, 38, 40], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 54}}, {"id": 37, "type": "type_identifier", "text": "virtual", "parent": 36, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 11}}, {"id": 38, "type": "ERROR", "text": "void", "parent": 36, "children": [39], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 39, "type": "identifier", "text": "void", "parent": 38, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 40, "type": "function_declarator", "text": "SaveDepthBuffer(bool fast)", "parent": 36, "children": [41, 42], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 53}}, {"id": 41, "type": "identifier", "text": "SaveDepthBuffer", "parent": 40, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 42}}, {"id": 42, "type": "parameter_list", "text": "(bool fast)", "parent": 40, "children": [43], "start_point": {"row": 21, "column": 42}, "end_point": {"row": 21, "column": 53}}, {"id": 43, "type": "parameter_declaration", "text": "bool fast", "parent": 42, "children": [44, 45], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 52}}, {"id": 44, "type": "primitive_type", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 47}}, {"id": 45, "type": "identifier", "text": "fast", "parent": 43, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 52}}, {"id": 46, "type": "declaration", "text": "virtual int Render(bool fast);", "parent": 15, "children": [47, 48, 50], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 45}}, {"id": 47, "type": "type_identifier", "text": "virtual", "parent": 46, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 48, "type": "ERROR", "text": "int", "parent": 46, "children": [49], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 49, "type": "identifier", "text": "int", "parent": 48, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 50, "type": "function_declarator", "text": "Render(bool fast)", "parent": 46, "children": [51, 52], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 44}}, {"id": 51, "type": "identifier", "text": "Render", "parent": 50, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 33}}, {"id": 52, "type": "parameter_list", "text": "(bool fast)", "parent": 50, "children": [53], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 44}}, {"id": 53, "type": "parameter_declaration", "text": "bool fast", "parent": 52, "children": [54, 55], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 43}}, {"id": 54, "type": "primitive_type", "text": "bool", "parent": 53, "children": [], "start_point": {"row": 22, "column": 34}, "end_point": {"row": 22, "column": 38}}, {"id": 55, "type": "identifier", "text": "fast", "parent": 53, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 43}}, {"id": 56, "type": "declaration", "text": "virtual int LoadData(const Grid *grid);", "parent": 15, "children": [57, 58, 60], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 54}}, {"id": 57, "type": "type_identifier", "text": "virtual", "parent": 56, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 58, "type": "ERROR", "text": "int", "parent": 56, "children": [59], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 59, "type": "identifier", "text": "int", "parent": 58, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 60, "type": "function_declarator", "text": "LoadData(const Grid *grid)", "parent": 56, "children": [61, 62], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 53}}, {"id": 61, "type": "identifier", "text": "LoadData", "parent": 60, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 35}}, {"id": 62, "type": "parameter_list", "text": "(const Grid *grid)", "parent": 60, "children": [63], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 53}}, {"id": 63, "type": "parameter_declaration", "text": "const Grid *grid", "parent": 62, "children": [64, 65], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 52}}, {"id": 64, "type": "type_identifier", "text": "Grid", "parent": 63, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 46}}, {"id": 65, "type": "pointer_declarator", "text": "*grid", "parent": 63, "children": [66, 67], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 52}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 48}}, {"id": 67, "type": "identifier", "text": "grid", "parent": 65, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 52}}, {"id": 68, "type": "declaration", "text": "virtual ShaderProgram *GetShader() const = 0;", "parent": 15, "children": [69, 70, 72], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 49}}, {"id": 69, "type": "type_identifier", "text": "virtual", "parent": 68, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 11}}, {"id": 70, "type": "ERROR", "text": "ShaderProgram", "parent": 68, "children": [71], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 25}}, {"id": 71, "type": "identifier", "text": "ShaderProgram", "parent": 70, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 25}}, {"id": 72, "type": "init_declarator", "text": "*GetShader() const = 0", "parent": 68, "children": [73, 78, 79], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 48}}, {"id": 73, "type": "pointer_declarator", "text": "*GetShader() const", "parent": 72, "children": [74, 75], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 44}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 27}}, {"id": 75, "type": "function_declarator", "text": "GetShader() const", "parent": 73, "children": [76, 77], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 44}}, {"id": 76, "type": "identifier", "text": "GetShader", "parent": 75, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 36}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 38}}, {"id": 78, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 46}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 72, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 48}}, {"id": 80, "type": "declaration", "text": "virtual void SetUniforms(const ShaderProgram *shader) const = 0;", "parent": 15, "children": [81, 82, 84], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 78}}, {"id": 81, "type": "type_identifier", "text": "virtual", "parent": 80, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 11}}, {"id": 82, "type": "ERROR", "text": "void", "parent": 80, "children": [83], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 83, "type": "identifier", "text": "void", "parent": 82, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 16}}, {"id": 84, "type": "init_declarator", "text": "SetUniforms(const ShaderProgram *shader) const = 0", "parent": 80, "children": [85, 93, 94], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 77}}, {"id": 85, "type": "function_declarator", "text": "SetUniforms(const ShaderProgram *shader) const", "parent": 84, "children": [86, 87], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 73}}, {"id": 86, "type": "identifier", "text": "SetUniforms", "parent": 85, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 38}}, {"id": 87, "type": "parameter_list", "text": "(const ShaderProgram *shader)", "parent": 85, "children": [88], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 67}}, {"id": 88, "type": "parameter_declaration", "text": "const ShaderProgram *shader", "parent": 87, "children": [89, 90], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 66}}, {"id": 89, "type": "type_identifier", "text": "ShaderProgram", "parent": 88, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 58}}, {"id": 90, "type": "pointer_declarator", "text": "*shader", "parent": 88, "children": [91, 92], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 66}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 25, "column": 59}, "end_point": {"row": 25, "column": 60}}, {"id": 92, "type": "identifier", "text": "shader", "parent": 90, "children": [], "start_point": {"row": 25, "column": 60}, "end_point": {"row": 25, "column": 66}}, {"id": 93, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 25, "column": 74}, "end_point": {"row": 25, "column": 75}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 25, "column": 76}, "end_point": {"row": 25, "column": 77}}, {"id": 95, "type": "declaration", "text": "virtual void GetFinalBlendingMode(int *src, int *dst);", "parent": 15, "children": [96, 97, 99], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 68}}, {"id": 96, "type": "type_identifier", "text": "virtual", "parent": 95, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 97, "type": "ERROR", "text": "void", "parent": 95, "children": [98], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 16}}, {"id": 98, "type": "identifier", "text": "void", "parent": 97, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 16}}, {"id": 99, "type": "function_declarator", "text": "GetFinalBlendingMode(int *src, int *dst)", "parent": 95, "children": [100, 101], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 67}}, {"id": 100, "type": "identifier", "text": "GetFinalBlendingMode", "parent": 99, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 47}}, {"id": 101, "type": "parameter_list", "text": "(int *src, int *dst)", "parent": 99, "children": [102, 107], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 67}}, {"id": 102, "type": "parameter_declaration", "text": "int *src", "parent": 101, "children": [103, 104], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 56}}, {"id": 103, "type": "primitive_type", "text": "int", "parent": 102, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 51}}, {"id": 104, "type": "pointer_declarator", "text": "*src", "parent": 102, "children": [105, 106], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 56}}, {"id": 105, "type": "*", "text": "*", "parent": 104, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 53}}, {"id": 106, "type": "identifier", "text": "src", "parent": 104, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 56}}, {"id": 107, "type": "parameter_declaration", "text": "int *dst", "parent": 101, "children": [108, 109], "start_point": {"row": 26, "column": 58}, "end_point": {"row": 26, "column": 66}}, {"id": 108, "type": "primitive_type", "text": "int", "parent": 107, "children": [], "start_point": {"row": 26, "column": 58}, "end_point": {"row": 26, "column": 61}}, {"id": 109, "type": "pointer_declarator", "text": "*dst", "parent": 107, "children": [110, 111], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 66}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 63}}, {"id": 111, "type": "identifier", "text": "dst", "parent": 109, "children": [], "start_point": {"row": 26, "column": 63}, "end_point": {"row": 26, "column": 66}}, {"id": 112, "type": "labeled_statement", "text": "private:\n Texture1D _LUTTexture;", "parent": 15, "children": [113], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 32}}, {"id": 113, "type": "declaration", "text": "Texture1D _LUTTexture;", "parent": 112, "children": [114, 115], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 32}}, {"id": 114, "type": "type_identifier", "text": "Texture1D", "parent": 113, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 13}}, {"id": 115, "type": "identifier", "text": "_LUTTexture", "parent": 113, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 31}}, {"id": 116, "type": "declaration", "text": "Texture1D _LUT2Texture;", "parent": 15, "children": [117, 118], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 33}}, {"id": 117, "type": "type_identifier", "text": "Texture1D", "parent": 116, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 13}}, {"id": 118, "type": "identifier", "text": "_LUT2Texture", "parent": 116, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 32}}, {"id": 119, "type": "declaration", "text": "Texture2D _depthTexture;", "parent": 15, "children": [120, 121], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 34}}, {"id": 120, "type": "type_identifier", "text": "Texture2D", "parent": 119, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 121, "type": "identifier", "text": "_depthTexture", "parent": 119, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 33}}, {"id": 122, "type": "declaration", "text": "MapperFunction *_tf = 0, *_tf2 = 0;", "parent": 15, "children": [123, 124, 130], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 39}}, {"id": 123, "type": "type_identifier", "text": "MapperFunction", "parent": 122, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 18}}, {"id": 124, "type": "init_declarator", "text": "*_tf = 0", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 27}}, {"id": 125, "type": "pointer_declarator", "text": "*_tf", "parent": 124, "children": [126, 127], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 23}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 127, "type": "identifier", "text": "_tf", "parent": 125, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 23}}, {"id": 128, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 25}}, {"id": 129, "type": "number_literal", "text": "0", "parent": 124, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 130, "type": "init_declarator", "text": "*_tf2 = 0", "parent": 122, "children": [131, 134, 135], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 38}}, {"id": 131, "type": "pointer_declarator", "text": "*_tf2", "parent": 130, "children": [132, 133], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 34}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 30}}, {"id": 133, "type": "identifier", "text": "_tf2", "parent": 131, "children": [], "start_point": {"row": 32, "column": 30}, "end_point": {"row": 32, "column": 34}}, {"id": 134, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 36}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 130, "children": [], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 38}}, {"id": 136, "type": "comma_expression", "text": "vector<double> _minDataExtents, _maxDataExtents", "parent": 15, "children": [137, 144], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 52}}, {"id": 137, "type": "binary_expression", "text": "vector<double> _minDataExtents", "parent": 136, "children": [138, 142, 143], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 35}}, {"id": 138, "type": "binary_expression", "text": "vector<double", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 17}}, {"id": 139, "type": "identifier", "text": "vector", "parent": 138, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 140, "type": "<", "text": "<", "parent": 138, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 11}}, {"id": 141, "type": "identifier", "text": "double", "parent": 138, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 17}}, {"id": 142, "type": ">", "text": ">", "parent": 137, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 18}}, {"id": 143, "type": "identifier", "text": "_minDataExtents", "parent": 137, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 35}}, {"id": 144, "type": "identifier", "text": "_maxDataExtents", "parent": 136, "children": [], "start_point": {"row": 33, "column": 37}, "end_point": {"row": 33, "column": 52}}, {"id": 145, "type": "binary_expression", "text": "vector<float> _constantColor", "parent": 15, "children": [146, 150, 151], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 34}}, {"id": 146, "type": "binary_expression", "text": "vector<float", "parent": 145, "children": [147, 148, 149], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 16}}, {"id": 147, "type": "identifier", "text": "vector", "parent": 146, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 148, "type": "<", "text": "<", "parent": 146, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 11}}, {"id": 149, "type": "identifier", "text": "float", "parent": 146, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 16}}, {"id": 150, "type": ">", "text": ">", "parent": 145, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 17}}, {"id": 151, "type": "identifier", "text": "_constantColor", "parent": 145, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 34}}, {"id": 152, "type": "declaration", "text": "void _loadTF();", "parent": 15, "children": [153, 154], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 19}}, {"id": 153, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 154, "type": "function_declarator", "text": "_loadTF()", "parent": 152, "children": [155, 156], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 18}}, {"id": 155, "type": "identifier", "text": "_loadTF", "parent": 154, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 16}}, {"id": 156, "type": "parameter_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 18}}, {"id": 157, "type": "declaration", "text": "void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);", "parent": 15, "children": [158, 159], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 83}}, {"id": 158, "type": "primitive_type", "text": "void", "parent": 157, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 159, "type": "function_declarator", "text": "_loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF)", "parent": 157, "children": [160, 161], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 82}}, {"id": 160, "type": "identifier", "text": "_loadTF", "parent": 159, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 16}}, {"id": 161, "type": "parameter_list", "text": "(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF)", "parent": 159, "children": [162, 167, 172], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 82}}, {"id": 162, "type": "parameter_declaration", "text": "Texture1D *texture", "parent": 161, "children": [163, 164], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 35}}, {"id": 163, "type": "type_identifier", "text": "Texture1D", "parent": 162, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 26}}, {"id": 164, "type": "pointer_declarator", "text": "*texture", "parent": 162, "children": [165, 166], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 35}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 28}}, {"id": 166, "type": "identifier", "text": "texture", "parent": 164, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 35}}, {"id": 167, "type": "parameter_declaration", "text": "MapperFunction *tf", "parent": 161, "children": [168, 169], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 55}}, {"id": 168, "type": "type_identifier", "text": "MapperFunction", "parent": 167, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 51}}, {"id": 169, "type": "pointer_declarator", "text": "*tf", "parent": 167, "children": [170, 171], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 55}}, {"id": 170, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 53}}, {"id": 171, "type": "identifier", "text": "tf", "parent": 169, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 55}}, {"id": 172, "type": "parameter_declaration", "text": "MapperFunction **cacheTF", "parent": 161, "children": [173, 174], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 81}}, {"id": 173, "type": "type_identifier", "text": "MapperFunction", "parent": 172, "children": [], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 71}}, {"id": 174, "type": "pointer_declarator", "text": "**cacheTF", "parent": 172, "children": [175, 176], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 81}}, {"id": 175, "type": "*", "text": "*", "parent": 174, "children": [], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 73}}, {"id": 176, "type": "pointer_declarator", "text": "*cacheTF", "parent": 174, "children": [177, 178], "start_point": {"row": 37, "column": 73}, "end_point": {"row": 37, "column": 81}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 37, "column": 73}, "end_point": {"row": 37, "column": 74}}, {"id": 178, "type": "identifier", "text": "cacheTF", "parent": 176, "children": [], "start_point": {"row": 37, "column": 74}, "end_point": {"row": 37, "column": 81}}, {"id": 179, "type": "ERROR", "text": "void _getLUTFromTF(const MapperFunction *tf, float *LUT) const", "parent": 15, "children": [180, 181], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 66}}, {"id": 180, "type": "primitive_type", "text": "void", "parent": 179, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 181, "type": "function_declarator", "text": "_getLUTFromTF(const MapperFunction *tf, float *LUT) const", "parent": 179, "children": [182, 183], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 66}}, {"id": 182, "type": "identifier", "text": "_getLUTFromTF", "parent": 181, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 22}}, {"id": 183, "type": "parameter_list", "text": "(const MapperFunction *tf, float *LUT)", "parent": 181, "children": [184, 189], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 60}}, {"id": 184, "type": "parameter_declaration", "text": "const MapperFunction *tf", "parent": 183, "children": [185, 186], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 47}}, {"id": 185, "type": "type_identifier", "text": "MapperFunction", "parent": 184, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 43}}, {"id": 186, "type": "pointer_declarator", "text": "*tf", "parent": 184, "children": [187, 188], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 47}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 45}}, {"id": 188, "type": "identifier", "text": "tf", "parent": 186, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 47}}, {"id": 189, "type": "parameter_declaration", "text": "float *LUT", "parent": 183, "children": [190, 191], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 59}}, {"id": 190, "type": "primitive_type", "text": "float", "parent": 189, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 54}}, {"id": 191, "type": "pointer_declarator", "text": "*LUT", "parent": 189, "children": [192, 193], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 38, "column": 59}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 38, "column": 55}, "end_point": {"row": 38, "column": 56}}, {"id": 193, "type": "identifier", "text": "LUT", "parent": 191, "children": [], "start_point": {"row": 38, "column": 56}, "end_point": {"row": 38, "column": 59}}, {"id": 194, "type": "ERROR", "text": "void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const", "parent": 15, "children": [195, 196], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 84}}, {"id": 195, "type": "primitive_type", "text": "void", "parent": 194, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 196, "type": "function_declarator", "text": "_setShaderUniforms(const ShaderProgram *shader, const bool fast) const", "parent": 194, "children": [197, 198], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 84}}, {"id": 197, "type": "identifier", "text": "_setShaderUniforms", "parent": 196, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 32}}, {"id": 198, "type": "parameter_list", "text": "(const ShaderProgram *shader, const bool fast)", "parent": 196, "children": [199, 204], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 78}}, {"id": 199, "type": "parameter_declaration", "text": "const ShaderProgram *shader", "parent": 198, "children": [200, 201], "start_point": {"row": 40, "column": 33}, "end_point": {"row": 40, "column": 60}}, {"id": 200, "type": "type_identifier", "text": "ShaderProgram", "parent": 199, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 52}}, {"id": 201, "type": "pointer_declarator", "text": "*shader", "parent": 199, "children": [202, 203], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 60}}, {"id": 202, "type": "*", "text": "*", "parent": 201, "children": [], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 54}}, {"id": 203, "type": "identifier", "text": "shader", "parent": 201, "children": [], "start_point": {"row": 40, "column": 54}, "end_point": {"row": 40, "column": 60}}, {"id": 204, "type": "parameter_declaration", "text": "const bool fast", "parent": 198, "children": [205, 206], "start_point": {"row": 40, "column": 62}, "end_point": {"row": 40, "column": 77}}, {"id": 205, "type": "primitive_type", "text": "bool", "parent": 204, "children": [], "start_point": {"row": 40, "column": 68}, "end_point": {"row": 40, "column": 72}}, {"id": 206, "type": "identifier", "text": "fast", "parent": 204, "children": [], "start_point": {"row": 40, "column": 73}, "end_point": {"row": 40, "column": 77}}, {"id": 207, "type": "labeled_statement", "text": "glm::vec3 _getVolumeScales() const;", "parent": 15, "children": [208, 209], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 39}}, {"id": 208, "type": "statement_identifier", "text": "glm", "parent": 207, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 209, "type": "ERROR", "text": ":vec3 _getVolumeScales() const", "parent": 207, "children": [210, 211], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 38}}, {"id": 210, "type": "type_identifier", "text": "vec3", "parent": 209, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 13}}, {"id": 211, "type": "function_declarator", "text": "_getVolumeScales() const", "parent": 209, "children": [212, 213], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 38}}, {"id": 212, "type": "identifier", "text": "_getVolumeScales", "parent": 211, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 30}}, {"id": 213, "type": "parameter_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 32}}, {"id": 214, "type": "ERROR", "text": "void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const", "parent": 15, "children": [215, 216], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 111}}, {"id": 215, "type": "primitive_type", "text": "void", "parent": 214, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 216, "type": "function_declarator", "text": "_getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const", "parent": 214, "children": [217, 218], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 111}}, {"id": 217, "type": "identifier", "text": "_getExtents", "parent": 216, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 25}}, {"id": 218, "type": "parameter_list", "text": "(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax)", "parent": 216, "children": [219, 226, 233, 240], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 105}}, {"id": 219, "type": "parameter_declaration", "text": "glm::vec3 *dataMin", "parent": 218, "children": [220, 221, 223], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 44}}, {"id": 220, "type": "type_identifier", "text": "glm", "parent": 219, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 29}}, {"id": 221, "type": "ERROR", "text": "::vec3", "parent": 219, "children": [222], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 35}}, {"id": 222, "type": "identifier", "text": "vec3", "parent": 221, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 35}}, {"id": 223, "type": "pointer_declarator", "text": "*dataMin", "parent": 219, "children": [224, 225], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 44}}, {"id": 224, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 37}}, {"id": 225, "type": "identifier", "text": "dataMin", "parent": 223, "children": [], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 44}}, {"id": 226, "type": "parameter_declaration", "text": "glm::vec3 *dataMax", "parent": 218, "children": [227, 228, 230], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 64}}, {"id": 227, "type": "type_identifier", "text": "glm", "parent": 226, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 49}}, {"id": 228, "type": "ERROR", "text": "::vec3", "parent": 226, "children": [229], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 55}}, {"id": 229, "type": "identifier", "text": "vec3", "parent": 228, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 55}}, {"id": 230, "type": "pointer_declarator", "text": "*dataMax", "parent": 226, "children": [231, 232], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 64}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 57}}, {"id": 232, "type": "identifier", "text": "dataMax", "parent": 230, "children": [], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 64}}, {"id": 233, "type": "parameter_declaration", "text": "glm::vec3 *userMin", "parent": 218, "children": [234, 235, 237], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 84}}, {"id": 234, "type": "type_identifier", "text": "glm", "parent": 233, "children": [], "start_point": {"row": 42, "column": 66}, "end_point": {"row": 42, "column": 69}}, {"id": 235, "type": "ERROR", "text": "::vec3", "parent": 233, "children": [236], "start_point": {"row": 42, "column": 69}, "end_point": {"row": 42, "column": 75}}, {"id": 236, "type": "identifier", "text": "vec3", "parent": 235, "children": [], "start_point": {"row": 42, "column": 71}, "end_point": {"row": 42, "column": 75}}, {"id": 237, "type": "pointer_declarator", "text": "*userMin", "parent": 233, "children": [238, 239], "start_point": {"row": 42, "column": 76}, "end_point": {"row": 42, "column": 84}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 42, "column": 76}, "end_point": {"row": 42, "column": 77}}, {"id": 239, "type": "identifier", "text": "userMin", "parent": 237, "children": [], "start_point": {"row": 42, "column": 77}, "end_point": {"row": 42, "column": 84}}, {"id": 240, "type": "parameter_declaration", "text": "glm::vec3 *userMax", "parent": 218, "children": [241, 242, 244], "start_point": {"row": 42, "column": 86}, "end_point": {"row": 42, "column": 104}}, {"id": 241, "type": "type_identifier", "text": "glm", "parent": 240, "children": [], "start_point": {"row": 42, "column": 86}, "end_point": {"row": 42, "column": 89}}, {"id": 242, "type": "ERROR", "text": "::vec3", "parent": 240, "children": [243], "start_point": {"row": 42, "column": 89}, "end_point": {"row": 42, "column": 95}}, {"id": 243, "type": "identifier", "text": "vec3", "parent": 242, "children": [], "start_point": {"row": 42, "column": 91}, "end_point": {"row": 42, "column": 95}}, {"id": 244, "type": "pointer_declarator", "text": "*userMax", "parent": 240, "children": [245, 246], "start_point": {"row": 42, "column": 96}, "end_point": {"row": 42, "column": 104}}, {"id": 245, "type": "*", "text": "*", "parent": 244, "children": [], "start_point": {"row": 42, "column": 96}, "end_point": {"row": 42, "column": 97}}, {"id": 246, "type": "identifier", "text": "userMax", "parent": 244, "children": [], "start_point": {"row": 42, "column": 97}, "end_point": {"row": 42, "column": 104}}, {"id": 247, "type": "ERROR", "text": "bool _usingColorMapData() const", "parent": 15, "children": [248, 249], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 40}}, {"id": 248, "type": "primitive_type", "text": "bool", "parent": 247, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 249, "type": "function_declarator", "text": "_usingColorMapData()", "parent": 247, "children": [250, 251], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 34}}, {"id": 250, "type": "identifier", "text": "_usingColorMapData", "parent": 249, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 32}}, {"id": 251, "type": "parameter_list", "text": "()", "parent": 249, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 34}}]}, "node_categories": {"declarations": {"functions": [12, 15, 40, 50, 60, 75, 85, 99, 154, 159, 181, 196, 211, 216, 249], "variables": [36, 43, 46, 53, 56, 63, 68, 80, 88, 95, 102, 107, 113, 116, 119, 122, 152, 157, 162, 167, 172, 184, 189, 199, 204, 219, 226, 233, 240], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [20, 23, 27, 31, 33, 136, 137, 138, 145, 146], "assignments": [], "loops": [], "conditionals": [13, 14, 17, 18, 21, 24, 26, 28, 30, 34, 37, 39, 41, 45, 47, 49, 51, 55, 57, 59, 61, 64, 67, 69, 71, 76, 81, 83, 86, 89, 92, 96, 98, 100, 106, 111, 114, 115, 117, 118, 120, 121, 123, 127, 133, 139, 141, 143, 144, 147, 149, 151, 155, 160, 163, 166, 168, 171, 173, 178, 182, 185, 188, 193, 197, 200, 203, 206, 208, 210, 212, 217, 220, 222, 225, 227, 229, 232, 234, 236, 239, 241, 243, 246, 250], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 79, 94, 129, 135], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "VolumeGLSL", "text_snippet": "namespace VAPoR {\n\n//! \\class VolumeGLSL\n//! \\ingroup Public_Render\n//!\n//! \\brief Volume rendering "}, {"node_id": 15, "universal_type": "function", "name": "VolumeGLSL", "text_snippet": "class VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *re"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "SaveDepthBuffer(bool fast)"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "Render(bool fast)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "LoadData(const Grid *grid)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "GetShader() const"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "SetUniforms(const ShaderProgram *shader) const"}, {"node_id": 99, "universal_type": "function", "name": "*dst)", "text_snippet": "GetFinalBlendingMode(int *src, int *dst)"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "_loadTF()"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "_loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF)"}, {"node_id": 181, "universal_type": "function", "name": "unknown", "text_snippet": "_getLUTFromTF(const MapperFunction *tf, float *LUT) const"}, {"node_id": 196, "universal_type": "function", "name": "fast)", "text_snippet": "_setShaderUniforms(const ShaderProgram *shader, const bool fast) const"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "_getVolumeScales() const"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "_getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "_usingColorMapData()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <vapor/VolumeAlgorithm.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <vapor/Texture.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vapor/MapperFunction.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <vapor/VolumeAlgorithm.h>\n#include <vapor/Texture.h>\n#include <vapor/MapperFunction.h>\n\nnamespace VAPoR {\n\n//! \\class VolumeGLSL\n//! \\ingroup Public_Render\n//!\n//! \\brief Volume rendering algorithms using GLSL\n//!\n//! \\author <NAME>\n//! \\date July, 2020\n\nclass VolumeGLSL : public VolumeAlgorithm {\npublic:\n VolumeGLSL(GLManager *gl, VolumeRenderer *renderer);\n ~VolumeGLSL();\n\n virtual void SaveDepthBuffer(bool fast);\n virtual int Render(bool fast);\n virtual int LoadData(const Grid *grid);\n virtual ShaderProgram *GetShader() const = 0;\n virtual void SetUniforms(const ShaderProgram *shader) const = 0;\n virtual void GetFinalBlendingMode(int *src, int *dst);\n\nprivate:\n Texture1D _LUTTexture;\n Texture1D _LUT2Texture;\n Texture2D _depthTexture;\n MapperFunction *_tf = 0, *_tf2 = 0;\n vector<double> _minDataExtents, _maxDataExtents;\n vector<float> _constantColor;\n\n void _loadTF();\n void _loadTF(Texture1D *texture, MapperFunction *tf, MapperFunction **cacheTF);\n void _getLUTFromTF(const MapperFunction *tf, float *LUT) const;\n\n void _setShaderUniforms(const ShaderProgram *shader, const bool fast) const;\n glm::vec3 _getVolumeScales() const;\n void _getExtents(glm::vec3 *dataMin, glm::vec3 *dataMax, glm::vec3 *userMin, glm::vec3 *userMax) const;\n bool _usingColorMapData() const;\n};\n} // namespace VAPoR\n"}
80,745
c
/** ****************************************************************************** * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c * @author MCD Application Team * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL * application. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* Includes ------------------------------------------------------------------*/ #include "fatfs_storage.h" /** @addtogroup STM32756G_EVAL_FAT_FS * @{ */ /** @defgroup FATFS_STORAGE * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL * application. * @{ */ /** @defgroup FATFS_STORAGE_Private_Types * @{ */ /** * @} */ /** @defgroup FATFS_STORAGE_Private_Defines * @{ */ /** * @} */ /** @defgroup FATFS_STORAGE_Private_Macros * @{ */ /** * @} */ /** @defgroup FATFS_STORAGE_Private_Variables * @{ */ uint8_t sector[512]; FATFS fs; FILINFO fno; DIR dir; FIL F; const uint8_t SlidesCheck[2] = { 0x42, 0x4D }; uint32_t BytesRead = 0; /** * @} */ /** @defgroup FATFS_STORAGE_Private_FunctionPrototypes * @{ */ /** * @} */ /** @defgroup FATFS_STORAGE_Private_Functions * @{ */ /** * @brief SDCARD Initialization for FatFs * @param None * @retval err : Error status (0=> success, 1=> fail) */ uint32_t Storage_Init(void) { BSP_SD_Init(); /****************** FatFs Volume Access ******************************/ if(f_mount(&fs, (TCHAR const*)"",0)) { return 1; } return 0; } /** * @brief Open a file and copy its content to a buffer * @param DirName: the Directory name to open * @param FileName: the file name to open * @param BufferAddress: A pointer to a buffer to copy the file to * @param FileLen: the File lenght * @retval err: Error status (0=> success, 1=> fail) */ uint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName) { uint32_t index = 0, size = 0, i1 = 0; uint32_t BmpAddress; FIL F1; if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK) { while(1) { } } if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK) { while(1) { } } BmpAddress = (uint32_t)sector; /* Read bitmap size */ size = *(uint16_t *) (BmpAddress + 2); size |= (*(uint16_t *) (BmpAddress + 4)) << 16; /* Get bitmap data address offset */ index = *(uint16_t *) (BmpAddress + 10); index |= (*(uint16_t *) (BmpAddress + 12)) << 16; f_close (&F1); f_open (&F1, (TCHAR const*)BmpName, FA_READ); do { if (size < 256*2) { i1 = size; } else { i1 = 256*2; } size -= i1; f_read (&F1, sector, i1, (UINT *)&BytesRead); for (index = 0; index < i1; index++) { *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress; BmpAddress++; Address++; } BmpAddress = (uint32_t)sector; } while (size > 0); f_close (&F1); return 1; } /** * @brief Open a file and copy its content to a buffer * @param DirName: the Directory name to open * @param FileName: the file name to open * @param BufferAddress: A pointer to a buffer to copy the file to * @param FileLen: the File lenght * @retval err: Error status (0=> success, 1=> fail) */ uint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen) { if(f_mount(&fs, (TCHAR const*)"",0)) { return 1; } if(f_open (&F, (TCHAR const*)BmpName, FA_READ)) { return 2; } f_read (&F, sector, 6, (UINT *)&BytesRead); if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0) { return 3; } return 0; } /** * @brief List up to 25 file on the root directory with extension .BMP * @param None * @retval The number of the found files */ uint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[]) { FRESULT res; uint32_t index = 0; /* Open filesystem */ if(f_mount(&fs, (TCHAR const*)"",0) != FR_OK) { return 0; } /* Start to search for wave files */ res = f_findfirst(&dir, &fno, DirName, "*.bmp"); /* Repeat while an item is found */ while (fno.fname[0]) { if(res == FR_OK) { if(index < MAX_BMP_FILES) { sprintf (Files[index++], "%s", fno.fname); } /* Search for next item */ res = f_findnext(&dir, &fno); } else { index = 0; break; } } f_closedir(&dir); return index; } /** * @brief Compares two buffers. * @param pBuffer1, pBuffer2: buffers to be compared. * @param BufferLength: buffer's length. * @retval 0: pBuffer1 identical to pBuffer2 * 1: pBuffer1 differs from pBuffer2 */ uint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength) { while (BufferLength--) { if (*pBuffer1 != *pBuffer2) { return 1; } pBuffer1++; pBuffer2++; } return 0; } /** * @} */ /** * @} */ /** * @} */
20.73
248
(translation_unit) "/**\n ******************************************************************************\n * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c\n * @author MCD Application Team\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n ******************************************************************************\n * @attention\n *\n * Copyright (c) 2017 STMicroelectronics.\n * All rights reserved.\n *\n * This software is licensed under terms that can be found in the LICENSE file\n * in the root directory of this software component.\n * If no LICENSE file comes with this software, it is provided AS-IS.\n *\n ******************************************************************************\n */\n\n/* Includes ------------------------------------------------------------------*/\n#include "fatfs_storage.h"\n\n/** @addtogroup STM32756G_EVAL_FAT_FS\n * @{\n */\n\n/** @defgroup FATFS_STORAGE\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n * @{\n */\n\n/** @defgroup FATFS_STORAGE_Private_Types\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Defines\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Macros\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Variables\n * @{\n */\nuint8_t sector[512];\nFATFS fs;\nFILINFO fno;\nDIR dir;\nFIL F;\nconst uint8_t SlidesCheck[2] =\n {\n 0x42, 0x4D\n };\nuint32_t BytesRead = 0;\n\n/**\n * @}\n */\n\n\n/** @defgroup FATFS_STORAGE_Private_FunctionPrototypes\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Functions\n * @{\n */\n\n/**\n * @brief SDCARD Initialization for FatFs\n * @param None\n * @retval err : Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_Init(void)\n{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ******************************/\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n return 0;\n}\n\n/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName)\n{\n uint32_t index = 0, size = 0, i1 = 0;\n uint32_t BmpAddress;\n FIL F1;\n\n if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }\n if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }\n \n BmpAddress = (uint32_t)sector;\n\n /* Read bitmap size */\n size = *(uint16_t *) (BmpAddress + 2);\n size |= (*(uint16_t *) (BmpAddress + 4)) << 16; \n \n /* Get bitmap data address offset */\n index = *(uint16_t *) (BmpAddress + 10);\n index |= (*(uint16_t *) (BmpAddress + 12)) << 16; \n \n f_close (&F1);\n \n f_open (&F1, (TCHAR const*)BmpName, FA_READ);\n\n do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);\n\n f_close (&F1);\n \n return 1;\n}\n\n/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)\n{\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }\n \n f_read (&F, sector, 6, (UINT *)&BytesRead);\n \n if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }\n return 0;\n}\n\n/**\n * @brief List up to 25 file on the root directory with extension .BMP\n * @param None\n * @retval The number of the found files\n */\nuint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])\n{\n FRESULT res;\n uint32_t index = 0;\n \n /* Open filesystem */\n if(f_mount(&fs, (TCHAR const*)"",0) != FR_OK)\n {\n return 0;\n }\n \n /* Start to search for wave files */\n res = f_findfirst(&dir, &fno, DirName, "*.bmp");\n\n /* Repeat while an item is found */\n while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }\n\n f_closedir(&dir);\n\n return index; \n}\n\n/**\n * @brief Compares two buffers.\n * @param pBuffer1, pBuffer2: buffers to be compared.\n * @param BufferLength: buffer's length.\n * @retval 0: pBuffer1 identical to pBuffer2\n * 1: pBuffer1 differs from pBuffer2\n */\nuint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)\n{\n while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }\n\n return 0;\n}\n\n/**\n * @}\n */\n\n/**\n * @}\n */\n\n/**\n * @}\n */\n\n" (comment) "/**\n ******************************************************************************\n * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c\n * @author MCD Application Team\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n ******************************************************************************\n * @attention\n *\n * Copyright (c) 2017 STMicroelectronics.\n * All rights reserved.\n *\n * This software is licensed under terms that can be found in the LICENSE file\n * in the root directory of this software component.\n * If no LICENSE file comes with this software, it is provided AS-IS.\n *\n ******************************************************************************\n */" (comment) "/* Includes ------------------------------------------------------------------*/" (preproc_include) "#include "fatfs_storage.h"\n" (#include) "#include" (string_literal) ""fatfs_storage.h"" (") """ (string_content) "fatfs_storage.h" (") """ (comment) "/** @addtogroup STM32756G_EVAL_FAT_FS\n * @{\n */" (comment) "/** @defgroup FATFS_STORAGE\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n * @{\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_Types\n * @{\n */" (comment) "/**\n * @}\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_Defines\n * @{\n */" (comment) "/**\n * @}\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_Macros\n * @{\n */" (comment) "/**\n * @}\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_Variables\n * @{\n */" (declaration) "uint8_t sector[512];" (primitive_type) "uint8_t" (array_declarator) "sector[512]" (identifier) "sector" ([) "[" (number_literal) "512" (]) "]" (;) ";" (declaration) "FATFS fs;" (type_identifier) "FATFS" (identifier) "fs" (;) ";" (declaration) "FILINFO fno;" (type_identifier) "FILINFO" (identifier) "fno" (;) ";" (declaration) "DIR dir;" (type_identifier) "DIR" (identifier) "dir" (;) ";" (declaration) "FIL F;" (type_identifier) "FIL" (identifier) "F" (;) ";" (declaration) "const uint8_t SlidesCheck[2] =\n {\n 0x42, 0x4D\n };" (type_qualifier) "const" (const) "const" (primitive_type) "uint8_t" (init_declarator) "SlidesCheck[2] =\n {\n 0x42, 0x4D\n }" (array_declarator) "SlidesCheck[2]" (identifier) "SlidesCheck" ([) "[" (number_literal) "2" (]) "]" (=) "=" (initializer_list) "{\n 0x42, 0x4D\n }" ({) "{" (number_literal) "0x42" (,) "," (number_literal) "0x4D" (}) "}" (;) ";" (declaration) "uint32_t BytesRead = 0;" (primitive_type) "uint32_t" (init_declarator) "BytesRead = 0" (identifier) "BytesRead" (=) "=" (number_literal) "0" (;) ";" (comment) "/**\n * @}\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_FunctionPrototypes\n * @{\n */" (comment) "/**\n * @}\n */" (comment) "/** @defgroup FATFS_STORAGE_Private_Functions\n * @{\n */" (comment) "/**\n * @brief SDCARD Initialization for FatFs\n * @param None\n * @retval err : Error status (0=> success, 1=> fail)\n */" (function_definition) "uint32_t Storage_Init(void)\n{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ******************************/\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n return 0;\n}" (primitive_type) "uint32_t" (function_declarator) "Storage_Init(void)" (identifier) "Storage_Init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ******************************/\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n return 0;\n}" ({) "{" (expression_statement) "BSP_SD_Init();" (call_expression) "BSP_SD_Init()" (identifier) "BSP_SD_Init" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/****************** FatFs Volume Access ******************************/" (if_statement) "if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }" (if) "if" (parenthesized_expression) "(f_mount(&fs, (TCHAR const*)"",0))" (() "(" (call_expression) "f_mount(&fs, (TCHAR const*)"",0)" (identifier) "f_mount" (argument_list) "(&fs, (TCHAR const*)"",0)" (() "(" (pointer_expression) "&fs" (&) "&" (identifier) "fs" (,) "," (cast_expression) "(TCHAR const*)""" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (string_literal) """" (") """ (") """ (,) "," (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */" (function_definition) "uint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName)\n{\n uint32_t index = 0, size = 0, i1 = 0;\n uint32_t BmpAddress;\n FIL F1;\n\n if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }\n if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }\n \n BmpAddress = (uint32_t)sector;\n\n /* Read bitmap size */\n size = *(uint16_t *) (BmpAddress + 2);\n size |= (*(uint16_t *) (BmpAddress + 4)) << 16; \n \n /* Get bitmap data address offset */\n index = *(uint16_t *) (BmpAddress + 10);\n index |= (*(uint16_t *) (BmpAddress + 12)) << 16; \n \n f_close (&F1);\n \n f_open (&F1, (TCHAR const*)BmpName, FA_READ);\n\n do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);\n\n f_close (&F1);\n \n return 1;\n}" (primitive_type) "uint32_t" (function_declarator) "Storage_OpenReadFile(uint8_t *Address, const char* BmpName)" (identifier) "Storage_OpenReadFile" (parameter_list) "(uint8_t *Address, const char* BmpName)" (() "(" (parameter_declaration) "uint8_t *Address" (primitive_type) "uint8_t" (pointer_declarator) "*Address" (*) "*" (identifier) "Address" (,) "," (parameter_declaration) "const char* BmpName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* BmpName" (*) "*" (identifier) "BmpName" ()) ")" (compound_statement) "{\n uint32_t index = 0, size = 0, i1 = 0;\n uint32_t BmpAddress;\n FIL F1;\n\n if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }\n if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }\n \n BmpAddress = (uint32_t)sector;\n\n /* Read bitmap size */\n size = *(uint16_t *) (BmpAddress + 2);\n size |= (*(uint16_t *) (BmpAddress + 4)) << 16; \n \n /* Get bitmap data address offset */\n index = *(uint16_t *) (BmpAddress + 10);\n index |= (*(uint16_t *) (BmpAddress + 12)) << 16; \n \n f_close (&F1);\n \n f_open (&F1, (TCHAR const*)BmpName, FA_READ);\n\n do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);\n\n f_close (&F1);\n \n return 1;\n}" ({) "{" (declaration) "uint32_t index = 0, size = 0, i1 = 0;" (primitive_type) "uint32_t" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (,) "," (init_declarator) "size = 0" (identifier) "size" (=) "=" (number_literal) "0" (,) "," (init_declarator) "i1 = 0" (identifier) "i1" (=) "=" (number_literal) "0" (;) ";" (declaration) "uint32_t BmpAddress;" (primitive_type) "uint32_t" (identifier) "BmpAddress" (;) ";" (declaration) "FIL F1;" (type_identifier) "FIL" (identifier) "F1" (;) ";" (if_statement) "if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }" (if) "if" (parenthesized_expression) "(f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)" (() "(" (binary_expression) "f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK" (call_expression) "f_open(&F1, (TCHAR const*)BmpName, FA_READ)" (identifier) "f_open" (argument_list) "(&F1, (TCHAR const*)BmpName, FA_READ)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" (,) "," (cast_expression) "(TCHAR const*)BmpName" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "BmpName" (,) "," (identifier) "FA_READ" ()) ")" (!=) "!=" (identifier) "FR_OK" ()) ")" (compound_statement) "{\n while(1)\n {\n } \n }" ({) "{" (while_statement) "while(1)\n {\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (}) "}" (if_statement) "if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }" (if) "if" (parenthesized_expression) "(f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)" (() "(" (binary_expression) "f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK" (call_expression) "f_read (&F1, sector, 30, (UINT *)&BytesRead)" (identifier) "f_read" (argument_list) "(&F1, sector, 30, (UINT *)&BytesRead)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" (,) "," (identifier) "sector" (,) "," (number_literal) "30" (,) "," (cast_expression) "(UINT *)&BytesRead" (() "(" (type_descriptor) "UINT *" (type_identifier) "UINT" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&BytesRead" (&) "&" (identifier) "BytesRead" ()) ")" (!=) "!=" (identifier) "FR_OK" ()) ")" (compound_statement) "{\n while(1)\n {\n } \n }" ({) "{" (while_statement) "while(1)\n {\n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n }" ({) "{" (}) "}" (}) "}" (expression_statement) "BmpAddress = (uint32_t)sector;" (assignment_expression) "BmpAddress = (uint32_t)sector" (identifier) "BmpAddress" (=) "=" (cast_expression) "(uint32_t)sector" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (identifier) "sector" (;) ";" (comment) "/* Read bitmap size */" (expression_statement) "size = *(uint16_t *) (BmpAddress + 2);" (assignment_expression) "size = *(uint16_t *) (BmpAddress + 2)" (identifier) "size" (=) "=" (pointer_expression) "*(uint16_t *) (BmpAddress + 2)" (*) "*" (cast_expression) "(uint16_t *) (BmpAddress + 2)" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(BmpAddress + 2)" (() "(" (binary_expression) "BmpAddress + 2" (identifier) "BmpAddress" (+) "+" (number_literal) "2" ()) ")" (;) ";" (expression_statement) "size |= (*(uint16_t *) (BmpAddress + 4)) << 16;" (assignment_expression) "size |= (*(uint16_t *) (BmpAddress + 4)) << 16" (identifier) "size" (|=) "|=" (binary_expression) "(*(uint16_t *) (BmpAddress + 4)) << 16" (parenthesized_expression) "(*(uint16_t *) (BmpAddress + 4))" (() "(" (pointer_expression) "*(uint16_t *) (BmpAddress + 4)" (*) "*" (cast_expression) "(uint16_t *) (BmpAddress + 4)" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(BmpAddress + 4)" (() "(" (binary_expression) "BmpAddress + 4" (identifier) "BmpAddress" (+) "+" (number_literal) "4" ()) ")" ()) ")" (<<) "<<" (number_literal) "16" (;) ";" (comment) "/* Get bitmap data address offset */" (expression_statement) "index = *(uint16_t *) (BmpAddress + 10);" (assignment_expression) "index = *(uint16_t *) (BmpAddress + 10)" (identifier) "index" (=) "=" (pointer_expression) "*(uint16_t *) (BmpAddress + 10)" (*) "*" (cast_expression) "(uint16_t *) (BmpAddress + 10)" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(BmpAddress + 10)" (() "(" (binary_expression) "BmpAddress + 10" (identifier) "BmpAddress" (+) "+" (number_literal) "10" ()) ")" (;) ";" (expression_statement) "index |= (*(uint16_t *) (BmpAddress + 12)) << 16;" (assignment_expression) "index |= (*(uint16_t *) (BmpAddress + 12)) << 16" (identifier) "index" (|=) "|=" (binary_expression) "(*(uint16_t *) (BmpAddress + 12)) << 16" (parenthesized_expression) "(*(uint16_t *) (BmpAddress + 12))" (() "(" (pointer_expression) "*(uint16_t *) (BmpAddress + 12)" (*) "*" (cast_expression) "(uint16_t *) (BmpAddress + 12)" (() "(" (type_descriptor) "uint16_t *" (primitive_type) "uint16_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(BmpAddress + 12)" (() "(" (binary_expression) "BmpAddress + 12" (identifier) "BmpAddress" (+) "+" (number_literal) "12" ()) ")" ()) ")" (<<) "<<" (number_literal) "16" (;) ";" (expression_statement) "f_close (&F1);" (call_expression) "f_close (&F1)" (identifier) "f_close" (argument_list) "(&F1)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" ()) ")" (;) ";" (expression_statement) "f_open (&F1, (TCHAR const*)BmpName, FA_READ);" (call_expression) "f_open (&F1, (TCHAR const*)BmpName, FA_READ)" (identifier) "f_open" (argument_list) "(&F1, (TCHAR const*)BmpName, FA_READ)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" (,) "," (cast_expression) "(TCHAR const*)BmpName" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "BmpName" (,) "," (identifier) "FA_READ" ()) ")" (;) ";" (do_statement) "do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);" (do) "do" (compound_statement) "{\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }" ({) "{" (if_statement) "if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }" (if) "if" (parenthesized_expression) "(size < 256*2)" (() "(" (binary_expression) "size < 256*2" (identifier) "size" (<) "<" (binary_expression) "256*2" (number_literal) "256" (*) "*" (number_literal) "2" ()) ")" (compound_statement) "{\n i1 = size;\n }" ({) "{" (expression_statement) "i1 = size;" (assignment_expression) "i1 = size" (identifier) "i1" (=) "=" (identifier) "size" (;) ";" (}) "}" (else_clause) "else\n {\n i1 = 256*2;\n }" (else) "else" (compound_statement) "{\n i1 = 256*2;\n }" ({) "{" (expression_statement) "i1 = 256*2;" (assignment_expression) "i1 = 256*2" (identifier) "i1" (=) "=" (binary_expression) "256*2" (number_literal) "256" (*) "*" (number_literal) "2" (;) ";" (}) "}" (expression_statement) "size -= i1;" (assignment_expression) "size -= i1" (identifier) "size" (-=) "-=" (identifier) "i1" (;) ";" (expression_statement) "f_read (&F1, sector, i1, (UINT *)&BytesRead);" (call_expression) "f_read (&F1, sector, i1, (UINT *)&BytesRead)" (identifier) "f_read" (argument_list) "(&F1, sector, i1, (UINT *)&BytesRead)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" (,) "," (identifier) "sector" (,) "," (identifier) "i1" (,) "," (cast_expression) "(UINT *)&BytesRead" (() "(" (type_descriptor) "UINT *" (type_identifier) "UINT" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&BytesRead" (&) "&" (identifier) "BytesRead" ()) ")" (;) ";" (for_statement) "for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n }" (for) "for" (() "(" (assignment_expression) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "index < i1" (identifier) "index" (<) "<" (identifier) "i1" (;) ";" (update_expression) "index++" (identifier) "index" (++) "++" ()) ")" (compound_statement) "{\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n }" ({) "{" (expression_statement) "*(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;" (assignment_expression) "*(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress" (pointer_expression) "*(__IO uint8_t*) (Address)" (*) "*" (cast_expression) "(__IO uint8_t*) (Address)" (() "(" (ERROR) "__IO" (identifier) "__IO" (type_descriptor) "uint8_t*" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(Address)" (() "(" (identifier) "Address" ()) ")" (=) "=" (pointer_expression) "*(__IO uint8_t *)BmpAddress" (*) "*" (cast_expression) "(__IO uint8_t *)BmpAddress" (() "(" (ERROR) "__IO" (identifier) "__IO" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "BmpAddress" (;) ";" (expression_statement) "BmpAddress++;" (update_expression) "BmpAddress++" (identifier) "BmpAddress" (++) "++" (;) ";" (expression_statement) "Address++;" (update_expression) "Address++" (identifier) "Address" (++) "++" (;) ";" (}) "}" (expression_statement) "BmpAddress = (uint32_t)sector;" (assignment_expression) "BmpAddress = (uint32_t)sector" (identifier) "BmpAddress" (=) "=" (cast_expression) "(uint32_t)sector" (() "(" (type_descriptor) "uint32_t" (primitive_type) "uint32_t" ()) ")" (identifier) "sector" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(size > 0)" (() "(" (binary_expression) "size > 0" (identifier) "size" (>) ">" (number_literal) "0" ()) ")" (;) ";" (expression_statement) "f_close (&F1);" (call_expression) "f_close (&F1)" (identifier) "f_close" (argument_list) "(&F1)" (() "(" (pointer_expression) "&F1" (&) "&" (identifier) "F1" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (comment) "/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */" (function_definition) "uint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)\n{\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }\n \n f_read (&F, sector, 6, (UINT *)&BytesRead);\n \n if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }\n return 0;\n}" (primitive_type) "uint32_t" (function_declarator) "Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)" (identifier) "Storage_CheckBitmapFile" (parameter_list) "(const char* BmpName, uint32_t *FileLen)" (() "(" (parameter_declaration) "const char* BmpName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* BmpName" (*) "*" (identifier) "BmpName" (,) "," (parameter_declaration) "uint32_t *FileLen" (primitive_type) "uint32_t" (pointer_declarator) "*FileLen" (*) "*" (identifier) "FileLen" ()) ")" (compound_statement) "{\n if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }\n if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }\n \n f_read (&F, sector, 6, (UINT *)&BytesRead);\n \n if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }\n return 0;\n}" ({) "{" (if_statement) "if(f_mount(&fs, (TCHAR const*)"",0))\n {\n return 1;\n }" (if) "if" (parenthesized_expression) "(f_mount(&fs, (TCHAR const*)"",0))" (() "(" (call_expression) "f_mount(&fs, (TCHAR const*)"",0)" (identifier) "f_mount" (argument_list) "(&fs, (TCHAR const*)"",0)" (() "(" (pointer_expression) "&fs" (&) "&" (identifier) "fs" (,) "," (cast_expression) "(TCHAR const*)""" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (string_literal) """" (") """ (") """ (,) "," (number_literal) "0" ()) ")" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }" (if) "if" (parenthesized_expression) "(f_open (&F, (TCHAR const*)BmpName, FA_READ))" (() "(" (call_expression) "f_open (&F, (TCHAR const*)BmpName, FA_READ)" (identifier) "f_open" (argument_list) "(&F, (TCHAR const*)BmpName, FA_READ)" (() "(" (pointer_expression) "&F" (&) "&" (identifier) "F" (,) "," (cast_expression) "(TCHAR const*)BmpName" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "BmpName" (,) "," (identifier) "FA_READ" ()) ")" ()) ")" (compound_statement) "{\n return 2;\n }" ({) "{" (return_statement) "return 2;" (return) "return" (number_literal) "2" (;) ";" (}) "}" (expression_statement) "f_read (&F, sector, 6, (UINT *)&BytesRead);" (call_expression) "f_read (&F, sector, 6, (UINT *)&BytesRead)" (identifier) "f_read" (argument_list) "(&F, sector, 6, (UINT *)&BytesRead)" (() "(" (pointer_expression) "&F" (&) "&" (identifier) "F" (,) "," (identifier) "sector" (,) "," (number_literal) "6" (,) "," (cast_expression) "(UINT *)&BytesRead" (() "(" (type_descriptor) "UINT *" (type_identifier) "UINT" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&BytesRead" (&) "&" (identifier) "BytesRead" ()) ")" (;) ";" (if_statement) "if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }" (if) "if" (parenthesized_expression) "(Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)" (() "(" (binary_expression) "Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0" (call_expression) "Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2)" (identifier) "Buffercmp" (argument_list) "((uint8_t *)SlidesCheck, (uint8_t *) sector, 2)" (() "(" (cast_expression) "(uint8_t *)SlidesCheck" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "SlidesCheck" (,) "," (cast_expression) "(uint8_t *) sector" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "sector" (,) "," (number_literal) "2" ()) ")" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n return 3;\n }" ({) "{" (return_statement) "return 3;" (return) "return" (number_literal) "3" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * @brief List up to 25 file on the root directory with extension .BMP\n * @param None\n * @retval The number of the found files\n */" (function_definition) "uint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])\n{\n FRESULT res;\n uint32_t index = 0;\n \n /* Open filesystem */\n if(f_mount(&fs, (TCHAR const*)"",0) != FR_OK)\n {\n return 0;\n }\n \n /* Start to search for wave files */\n res = f_findfirst(&dir, &fno, DirName, "*.bmp");\n\n /* Repeat while an item is found */\n while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }\n\n f_closedir(&dir);\n\n return index; \n}" (primitive_type) "uint32_t" (function_declarator) "Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])" (identifier) "Storage_GetDirectoryBitmapFiles" (parameter_list) "(const char* DirName, char* Files[])" (() "(" (parameter_declaration) "const char* DirName" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* DirName" (*) "*" (identifier) "DirName" (,) "," (parameter_declaration) "char* Files[]" (primitive_type) "char" (pointer_declarator) "* Files[]" (*) "*" (array_declarator) "Files[]" (identifier) "Files" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n FRESULT res;\n uint32_t index = 0;\n \n /* Open filesystem */\n if(f_mount(&fs, (TCHAR const*)"",0) != FR_OK)\n {\n return 0;\n }\n \n /* Start to search for wave files */\n res = f_findfirst(&dir, &fno, DirName, "*.bmp");\n\n /* Repeat while an item is found */\n while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }\n\n f_closedir(&dir);\n\n return index; \n}" ({) "{" (declaration) "FRESULT res;" (type_identifier) "FRESULT" (identifier) "res" (;) ";" (declaration) "uint32_t index = 0;" (primitive_type) "uint32_t" (init_declarator) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (;) ";" (comment) "/* Open filesystem */" (if_statement) "if(f_mount(&fs, (TCHAR const*)"",0) != FR_OK)\n {\n return 0;\n }" (if) "if" (parenthesized_expression) "(f_mount(&fs, (TCHAR const*)"",0) != FR_OK)" (() "(" (binary_expression) "f_mount(&fs, (TCHAR const*)"",0) != FR_OK" (call_expression) "f_mount(&fs, (TCHAR const*)"",0)" (identifier) "f_mount" (argument_list) "(&fs, (TCHAR const*)"",0)" (() "(" (pointer_expression) "&fs" (&) "&" (identifier) "fs" (,) "," (cast_expression) "(TCHAR const*)""" (() "(" (type_descriptor) "TCHAR const*" (type_identifier) "TCHAR" (type_qualifier) "const" (const) "const" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (string_literal) """" (") """ (") """ (,) "," (number_literal) "0" ()) ")" (!=) "!=" (identifier) "FR_OK" ()) ")" (compound_statement) "{\n return 0;\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/* Start to search for wave files */" (expression_statement) "res = f_findfirst(&dir, &fno, DirName, "*.bmp");" (assignment_expression) "res = f_findfirst(&dir, &fno, DirName, "*.bmp")" (identifier) "res" (=) "=" (call_expression) "f_findfirst(&dir, &fno, DirName, "*.bmp")" (identifier) "f_findfirst" (argument_list) "(&dir, &fno, DirName, "*.bmp")" (() "(" (pointer_expression) "&dir" (&) "&" (identifier) "dir" (,) "," (pointer_expression) "&fno" (&) "&" (identifier) "fno" (,) "," (identifier) "DirName" (,) "," (string_literal) ""*.bmp"" (") """ (string_content) "*.bmp" (") """ ()) ")" (;) ";" (comment) "/* Repeat while an item is found */" (while_statement) "while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }" (while) "while" (parenthesized_expression) "(fno.fname[0])" (() "(" (subscript_expression) "fno.fname[0]" (field_expression) "fno.fname" (identifier) "fno" (.) "." (field_identifier) "fname" ([) "[" (number_literal) "0" (]) "]" ()) ")" (compound_statement) "{\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }" ({) "{" (if_statement) "if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }" (if) "if" (parenthesized_expression) "(res == FR_OK)" (() "(" (binary_expression) "res == FR_OK" (identifier) "res" (==) "==" (identifier) "FR_OK" ()) ")" (compound_statement) "{\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }" ({) "{" (if_statement) "if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], "%s", fno.fname);\n }" (if) "if" (parenthesized_expression) "(index < MAX_BMP_FILES)" (() "(" (binary_expression) "index < MAX_BMP_FILES" (identifier) "index" (<) "<" (identifier) "MAX_BMP_FILES" ()) ")" (compound_statement) "{\n sprintf (Files[index++], "%s", fno.fname);\n }" ({) "{" (expression_statement) "sprintf (Files[index++], "%s", fno.fname);" (call_expression) "sprintf (Files[index++], "%s", fno.fname)" (identifier) "sprintf" (argument_list) "(Files[index++], "%s", fno.fname)" (() "(" (subscript_expression) "Files[index++]" (identifier) "Files" ([) "[" (update_expression) "index++" (identifier) "index" (++) "++" (]) "]" (,) "," (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (field_expression) "fno.fname" (identifier) "fno" (.) "." (field_identifier) "fname" ()) ")" (;) ";" (}) "}" (comment) "/* Search for next item */" (expression_statement) "res = f_findnext(&dir, &fno);" (assignment_expression) "res = f_findnext(&dir, &fno)" (identifier) "res" (=) "=" (call_expression) "f_findnext(&dir, &fno)" (identifier) "f_findnext" (argument_list) "(&dir, &fno)" (() "(" (pointer_expression) "&dir" (&) "&" (identifier) "dir" (,) "," (pointer_expression) "&fno" (&) "&" (identifier) "fno" ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n index = 0;\n break;\n }" (else) "else" (compound_statement) "{\n index = 0;\n break;\n }" ({) "{" (expression_statement) "index = 0;" (assignment_expression) "index = 0" (identifier) "index" (=) "=" (number_literal) "0" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (expression_statement) "f_closedir(&dir);" (call_expression) "f_closedir(&dir)" (identifier) "f_closedir" (argument_list) "(&dir)" (() "(" (pointer_expression) "&dir" (&) "&" (identifier) "dir" ()) ")" (;) ";" (return_statement) "return index;" (return) "return" (identifier) "index" (;) ";" (}) "}" (comment) "/**\n * @brief Compares two buffers.\n * @param pBuffer1, pBuffer2: buffers to be compared.\n * @param BufferLength: buffer's length.\n * @retval 0: pBuffer1 identical to pBuffer2\n * 1: pBuffer1 differs from pBuffer2\n */" (function_definition) "uint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)\n{\n while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }\n\n return 0;\n}" (primitive_type) "uint8_t" (function_declarator) "Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)" (identifier) "Buffercmp" (parameter_list) "(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)" (() "(" (parameter_declaration) "uint8_t* pBuffer1" (primitive_type) "uint8_t" (pointer_declarator) "* pBuffer1" (*) "*" (identifier) "pBuffer1" (,) "," (parameter_declaration) "uint8_t* pBuffer2" (primitive_type) "uint8_t" (pointer_declarator) "* pBuffer2" (*) "*" (identifier) "pBuffer2" (,) "," (parameter_declaration) "uint16_t BufferLength" (primitive_type) "uint16_t" (identifier) "BufferLength" ()) ")" (compound_statement) "{\n while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }\n\n return 0;\n}" ({) "{" (while_statement) "while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }" (while) "while" (parenthesized_expression) "(BufferLength--)" (() "(" (update_expression) "BufferLength--" (identifier) "BufferLength" (--) "--" ()) ")" (compound_statement) "{\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }" ({) "{" (if_statement) "if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }" (if) "if" (parenthesized_expression) "(*pBuffer1 != *pBuffer2)" (() "(" (binary_expression) "*pBuffer1 != *pBuffer2" (pointer_expression) "*pBuffer1" (*) "*" (identifier) "pBuffer1" (!=) "!=" (pointer_expression) "*pBuffer2" (*) "*" (identifier) "pBuffer2" ()) ")" (compound_statement) "{\n return 1;\n }" ({) "{" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "pBuffer1++;" (update_expression) "pBuffer1++" (identifier) "pBuffer1" (++) "++" (;) ";" (expression_statement) "pBuffer2++;" (update_expression) "pBuffer2++" (identifier) "pBuffer2" (++) "++" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * @}\n */" (comment) "/**\n * @}\n */" (comment) "/**\n * @}\n */"
1,019
2
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 20.73, "nodes": 573, "errors": 0, "source_hash": "525e0f629b68cb12268c89fe498c5f37c6e64d3d17c71f61dc9b2c8110065f1d", "categorized_nodes": 381}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"fatfs_storage.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"fatfs_storage.h\"", "parent": 0, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 26}}, {"id": 3, "type": "declaration", "text": "uint8_t sector[512];", "parent": null, "children": [4, 5], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 20}}, {"id": 4, "type": "primitive_type", "text": "uint8_t", "parent": 3, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 5, "type": "array_declarator", "text": "sector[512]", "parent": 3, "children": [6, 7], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 19}}, {"id": 6, "type": "identifier", "text": "sector", "parent": 5, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 14}}, {"id": 7, "type": "number_literal", "text": "512", "parent": 5, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 18}}, {"id": 8, "type": "declaration", "text": "FATFS fs;", "parent": null, "children": [9, 10], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 9}}, {"id": 9, "type": "type_identifier", "text": "FATFS", "parent": 8, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 5}}, {"id": 10, "type": "identifier", "text": "fs", "parent": 8, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 8}}, {"id": 11, "type": "declaration", "text": "FILINFO fno;", "parent": null, "children": [12, 13], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 12}}, {"id": 12, "type": "type_identifier", "text": "FILINFO", "parent": 11, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 13, "type": "identifier", "text": "fno", "parent": 11, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 11}}, {"id": 14, "type": "declaration", "text": "DIR dir;", "parent": null, "children": [15, 16], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 8}}, {"id": 15, "type": "type_identifier", "text": "DIR", "parent": 14, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 3}}, {"id": 16, "type": "identifier", "text": "dir", "parent": 14, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 7}}, {"id": 17, "type": "declaration", "text": "FIL F;", "parent": null, "children": [18, 19], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 18, "type": "type_identifier", "text": "FIL", "parent": 17, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 3}}, {"id": 19, "type": "identifier", "text": "F", "parent": 17, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 20, "type": "declaration", "text": "const uint8_t SlidesCheck[2] =\n {\n 0x42, 0x4D\n };", "parent": null, "children": [21, 22], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 64, "column": 4}}, {"id": 21, "type": "primitive_type", "text": "uint8_t", "parent": 20, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 13}}, {"id": 22, "type": "init_declarator", "text": "SlidesCheck[2] =\n {\n 0x42, 0x4D\n }", "parent": 20, "children": [23, 26, 27], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 64, "column": 3}}, {"id": 23, "type": "array_declarator", "text": "SlidesCheck[2]", "parent": 22, "children": [24, 25], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 28}}, {"id": 24, "type": "identifier", "text": "SlidesCheck", "parent": 23, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 25}}, {"id": 25, "type": "number_literal", "text": "2", "parent": 23, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 27}}, {"id": 26, "type": "=", "text": "=", "parent": 22, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 30}}, {"id": 27, "type": "initializer_list", "text": "{\n 0x42, 0x4D\n }", "parent": 22, "children": [28, 29], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 64, "column": 3}}, {"id": 28, "type": "number_literal", "text": "0x42", "parent": 27, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 29, "type": "number_literal", "text": "0x4D", "parent": 27, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 14}}, {"id": 30, "type": "declaration", "text": "uint32_t BytesRead = 0;", "parent": null, "children": [31, 32], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 23}}, {"id": 31, "type": "primitive_type", "text": "uint32_t", "parent": 30, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 8}}, {"id": 32, "type": "init_declarator", "text": "BytesRead = 0", "parent": 30, "children": [33, 34, 35], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 22}}, {"id": 33, "type": "identifier", "text": "BytesRead", "parent": 32, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 18}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 20}}, {"id": 35, "type": "number_literal", "text": "0", "parent": 32, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 36, "type": "function_definition", "text": "uint32_t Storage_Init(void)\n{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ******************************/\n if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }\n return 0;\n}", "parent": null, "children": [37, 38], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 37, "type": "primitive_type", "text": "uint32_t", "parent": 36, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 8}}, {"id": 38, "type": "function_declarator", "text": "Storage_Init(void)", "parent": 36, "children": [39, 40], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 27}}, {"id": 39, "type": "identifier", "text": "Storage_Init", "parent": 38, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 21}}, {"id": 40, "type": "parameter_list", "text": "(void)", "parent": 38, "children": [41], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 27}}, {"id": 41, "type": "parameter_declaration", "text": "void", "parent": 40, "children": [42], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 26}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 41, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 26}}, {"id": 43, "type": "call_expression", "text": "BSP_SD_Init()", "parent": 36, "children": [44, 45], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 15}}, {"id": 44, "type": "identifier", "text": "BSP_SD_Init", "parent": 43, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 13}}, {"id": 45, "type": "argument_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 15}}, {"id": 46, "type": "if_statement", "text": "if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }", "parent": 36, "children": [47], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 96, "column": 3}}, {"id": 47, "type": "parenthesized_expression", "text": "(f_mount(&fs, (TCHAR const*)\"\",0))", "parent": 46, "children": [48], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 38}}, {"id": 48, "type": "call_expression", "text": "f_mount(&fs, (TCHAR const*)\"\",0)", "parent": 47, "children": [49, 50], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 37}}, {"id": 49, "type": "identifier", "text": "f_mount", "parent": 48, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 12}}, {"id": 50, "type": "argument_list", "text": "(&fs, (TCHAR const*)\"\",0)", "parent": 48, "children": [51, 53, 59], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 37}}, {"id": 51, "type": "pointer_expression", "text": "&fs", "parent": 50, "children": [52], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 16}}, {"id": 52, "type": "identifier", "text": "fs", "parent": 51, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 16}}, {"id": 53, "type": "cast_expression", "text": "(TCHAR const*)\"\"", "parent": 50, "children": [54, 58], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 34}}, {"id": 54, "type": "type_descriptor", "text": "TCHAR const*", "parent": 53, "children": [55, 56], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 31}}, {"id": 55, "type": "type_identifier", "text": "TCHAR", "parent": 54, "children": [], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 24}}, {"id": 56, "type": "abstract_pointer_declarator", "text": "*", "parent": 54, "children": [57], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 31}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 31}}, {"id": 58, "type": "string_literal", "text": "\"\"", "parent": 53, "children": [], "start_point": {"row": 93, "column": 32}, "end_point": {"row": 93, "column": 34}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 50, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 36}}, {"id": 60, "type": "return_statement", "text": "return 1;", "parent": 46, "children": [61], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 13}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 60, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 12}}, {"id": 62, "type": "return_statement", "text": "return 0;", "parent": 36, "children": [63], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 11}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 64, "type": "function_definition", "text": "uint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName)\n{\n uint32_t index = 0, size = 0, i1 = 0;\n uint32_t BmpAddress;\n FIL F1;\n\n if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }\n if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }\n \n BmpAddress = (uint32_t)sector;\n\n /* Read bitmap size */\n size = *(uint16_t *) (BmpAddress + 2);\n size |= (*(uint16_t *) (BmpAddress + 4)) << 16; \n \n /* Get bitmap data address offset */\n index = *(uint16_t *) (BmpAddress + 10);\n index |= (*(uint16_t *) (BmpAddress + 12)) << 16; \n \n f_close (&F1);\n \n f_open (&F1, (TCHAR const*)BmpName, FA_READ);\n\n do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);\n\n f_close (&F1);\n \n return 1;\n}", "parent": null, "children": [65, 66], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 169, "column": 1}}, {"id": 65, "type": "primitive_type", "text": "uint32_t", "parent": 64, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 8}}, {"id": 66, "type": "function_declarator", "text": "Storage_OpenReadFile(uint8_t *Address, const char* BmpName)", "parent": 64, "children": [67, 68], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 68}}, {"id": 67, "type": "identifier", "text": "Storage_OpenReadFile", "parent": 66, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 29}}, {"id": 68, "type": "parameter_list", "text": "(uint8_t *Address, const char* BmpName)", "parent": 66, "children": [69, 74], "start_point": {"row": 108, "column": 29}, "end_point": {"row": 108, "column": 68}}, {"id": 69, "type": "parameter_declaration", "text": "uint8_t *Address", "parent": 68, "children": [70, 71], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 46}}, {"id": 70, "type": "primitive_type", "text": "uint8_t", "parent": 69, "children": [], "start_point": {"row": 108, "column": 30}, "end_point": {"row": 108, "column": 37}}, {"id": 71, "type": "pointer_declarator", "text": "*Address", "parent": 69, "children": [72, 73], "start_point": {"row": 108, "column": 38}, "end_point": {"row": 108, "column": 46}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 108, "column": 38}, "end_point": {"row": 108, "column": 39}}, {"id": 73, "type": "identifier", "text": "Address", "parent": 71, "children": [], "start_point": {"row": 108, "column": 39}, "end_point": {"row": 108, "column": 46}}, {"id": 74, "type": "parameter_declaration", "text": "const char* BmpName", "parent": 68, "children": [75, 76], "start_point": {"row": 108, "column": 48}, "end_point": {"row": 108, "column": 67}}, {"id": 75, "type": "primitive_type", "text": "char", "parent": 74, "children": [], "start_point": {"row": 108, "column": 54}, "end_point": {"row": 108, "column": 58}}, {"id": 76, "type": "pointer_declarator", "text": "* BmpName", "parent": 74, "children": [77, 78], "start_point": {"row": 108, "column": 58}, "end_point": {"row": 108, "column": 67}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 108, "column": 58}, "end_point": {"row": 108, "column": 59}}, {"id": 78, "type": "identifier", "text": "BmpName", "parent": 76, "children": [], "start_point": {"row": 108, "column": 60}, "end_point": {"row": 108, "column": 67}}, {"id": 79, "type": "declaration", "text": "uint32_t index = 0, size = 0, i1 = 0;", "parent": 64, "children": [80, 81, 85, 89], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 39}}, {"id": 80, "type": "primitive_type", "text": "uint32_t", "parent": 79, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 10}}, {"id": 81, "type": "init_declarator", "text": "index = 0", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 20}}, {"id": 82, "type": "identifier", "text": "index", "parent": 81, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 16}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 84, "type": "number_literal", "text": "0", "parent": 81, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 20}}, {"id": 85, "type": "init_declarator", "text": "size = 0", "parent": 79, "children": [86, 87, 88], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 30}}, {"id": 86, "type": "identifier", "text": "size", "parent": 85, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 26}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 28}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 30}}, {"id": 89, "type": "init_declarator", "text": "i1 = 0", "parent": 79, "children": [90, 91, 92], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 38}}, {"id": 90, "type": "identifier", "text": "i1", "parent": 89, "children": [], "start_point": {"row": 110, "column": 32}, "end_point": {"row": 110, "column": 34}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 36}}, {"id": 92, "type": "number_literal", "text": "0", "parent": 89, "children": [], "start_point": {"row": 110, "column": 37}, "end_point": {"row": 110, "column": 38}}, {"id": 93, "type": "declaration", "text": "uint32_t BmpAddress;", "parent": 64, "children": [94, 95], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 22}}, {"id": 94, "type": "primitive_type", "text": "uint32_t", "parent": 93, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 10}}, {"id": 95, "type": "identifier", "text": "BmpAddress", "parent": 93, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 21}}, {"id": 96, "type": "declaration", "text": "FIL F1;", "parent": 64, "children": [97, 98], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 9}}, {"id": 97, "type": "type_identifier", "text": "FIL", "parent": 96, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 5}}, {"id": 98, "type": "identifier", "text": "F1", "parent": 96, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 8}}, {"id": 99, "type": "if_statement", "text": "if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }", "parent": 64, "children": [100], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 119, "column": 3}}, {"id": 100, "type": "parenthesized_expression", "text": "(f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)", "parent": 99, "children": [101], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 59}}, {"id": 101, "type": "binary_expression", "text": "f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK", "parent": 100, "children": [102, 114, 115], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 58}}, {"id": 102, "type": "call_expression", "text": "f_open(&F1, (TCHAR const*)BmpName, FA_READ)", "parent": 101, "children": [103, 104], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 49}}, {"id": 103, "type": "identifier", "text": "f_open", "parent": 102, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 12}}, {"id": 104, "type": "argument_list", "text": "(&F1, (TCHAR const*)BmpName, FA_READ)", "parent": 102, "children": [105, 107, 113], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 49}}, {"id": 105, "type": "pointer_expression", "text": "&F1", "parent": 104, "children": [106], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 16}}, {"id": 106, "type": "identifier", "text": "F1", "parent": 105, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 16}}, {"id": 107, "type": "cast_expression", "text": "(TCHAR const*)BmpName", "parent": 104, "children": [108, 112], "start_point": {"row": 114, "column": 18}, "end_point": {"row": 114, "column": 39}}, {"id": 108, "type": "type_descriptor", "text": "TCHAR const*", "parent": 107, "children": [109, 110], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 31}}, {"id": 109, "type": "type_identifier", "text": "TCHAR", "parent": 108, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 24}}, {"id": 110, "type": "abstract_pointer_declarator", "text": "*", "parent": 108, "children": [111], "start_point": {"row": 114, "column": 30}, "end_point": {"row": 114, "column": 31}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 114, "column": 30}, "end_point": {"row": 114, "column": 31}}, {"id": 112, "type": "identifier", "text": "BmpName", "parent": 107, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 39}}, {"id": 113, "type": "identifier", "text": "FA_READ", "parent": 104, "children": [], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 48}}, {"id": 114, "type": "!=", "text": "!=", "parent": 101, "children": [], "start_point": {"row": 114, "column": 50}, "end_point": {"row": 114, "column": 52}}, {"id": 115, "type": "identifier", "text": "FR_OK", "parent": 101, "children": [], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 58}}, {"id": 116, "type": "while_statement", "text": "while(1)\n {\n }", "parent": 99, "children": [117], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 118, "column": 5}}, {"id": 117, "type": "parenthesized_expression", "text": "(1)", "parent": 116, "children": [118], "start_point": {"row": 116, "column": 9}, "end_point": {"row": 116, "column": 12}}, {"id": 118, "type": "number_literal", "text": "1", "parent": 117, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 11}}, {"id": 119, "type": "if_statement", "text": "if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }", "parent": 64, "children": [120], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 125, "column": 3}}, {"id": 120, "type": "parenthesized_expression", "text": "(f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)", "parent": 119, "children": [121], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 60}}, {"id": 121, "type": "binary_expression", "text": "f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK", "parent": 120, "children": [122, 136, 137], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 59}}, {"id": 122, "type": "call_expression", "text": "f_read (&F1, sector, 30, (UINT *)&BytesRead)", "parent": 121, "children": [123, 124], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 50}}, {"id": 123, "type": "identifier", "text": "f_read", "parent": 122, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 12}}, {"id": 124, "type": "argument_list", "text": "(&F1, sector, 30, (UINT *)&BytesRead)", "parent": 122, "children": [125, 127, 128, 129], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 50}}, {"id": 125, "type": "pointer_expression", "text": "&F1", "parent": 124, "children": [126], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 17}}, {"id": 126, "type": "identifier", "text": "F1", "parent": 125, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 17}}, {"id": 127, "type": "identifier", "text": "sector", "parent": 124, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 25}}, {"id": 128, "type": "number_literal", "text": "30", "parent": 124, "children": [], "start_point": {"row": 120, "column": 27}, "end_point": {"row": 120, "column": 29}}, {"id": 129, "type": "cast_expression", "text": "(UINT *)&BytesRead", "parent": 124, "children": [130, 134], "start_point": {"row": 120, "column": 31}, "end_point": {"row": 120, "column": 49}}, {"id": 130, "type": "type_descriptor", "text": "UINT *", "parent": 129, "children": [131, 132], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 38}}, {"id": 131, "type": "type_identifier", "text": "UINT", "parent": 130, "children": [], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 120, "column": 36}}, {"id": 132, "type": "abstract_pointer_declarator", "text": "*", "parent": 130, "children": [133], "start_point": {"row": 120, "column": 37}, "end_point": {"row": 120, "column": 38}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 120, "column": 37}, "end_point": {"row": 120, "column": 38}}, {"id": 134, "type": "pointer_expression", "text": "&BytesRead", "parent": 129, "children": [135], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 49}}, {"id": 135, "type": "identifier", "text": "BytesRead", "parent": 134, "children": [], "start_point": {"row": 120, "column": 40}, "end_point": {"row": 120, "column": 49}}, {"id": 136, "type": "!=", "text": "!=", "parent": 121, "children": [], "start_point": {"row": 120, "column": 51}, "end_point": {"row": 120, "column": 53}}, {"id": 137, "type": "identifier", "text": "FR_OK", "parent": 121, "children": [], "start_point": {"row": 120, "column": 54}, "end_point": {"row": 120, "column": 59}}, {"id": 138, "type": "while_statement", "text": "while(1)\n {\n }", "parent": 119, "children": [139], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 124, "column": 5}}, {"id": 139, "type": "parenthesized_expression", "text": "(1)", "parent": 138, "children": [140], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 12}}, {"id": 140, "type": "number_literal", "text": "1", "parent": 139, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 141, "type": "assignment_expression", "text": "BmpAddress = (uint32_t)sector", "parent": 64, "children": [142, 143, 144], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 31}}, {"id": 142, "type": "identifier", "text": "BmpAddress", "parent": 141, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 12}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 14}}, {"id": 144, "type": "cast_expression", "text": "(uint32_t)sector", "parent": 141, "children": [145, 147], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 31}}, {"id": 145, "type": "type_descriptor", "text": "uint32_t", "parent": 144, "children": [146], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 24}}, {"id": 146, "type": "primitive_type", "text": "uint32_t", "parent": 145, "children": [], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 24}}, {"id": 147, "type": "identifier", "text": "sector", "parent": 144, "children": [], "start_point": {"row": 127, "column": 25}, "end_point": {"row": 127, "column": 31}}, {"id": 148, "type": "assignment_expression", "text": "size = *(uint16_t *) (BmpAddress + 2)", "parent": 64, "children": [149, 150, 151], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 39}}, {"id": 149, "type": "identifier", "text": "size", "parent": 148, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 6}}, {"id": 150, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 130, "column": 7}, "end_point": {"row": 130, "column": 8}}, {"id": 151, "type": "pointer_expression", "text": "*(uint16_t *) (BmpAddress + 2)", "parent": 148, "children": [152, 153], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 39}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 10}}, {"id": 153, "type": "cast_expression", "text": "(uint16_t *) (BmpAddress + 2)", "parent": 151, "children": [154, 158], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 39}}, {"id": 154, "type": "type_descriptor", "text": "uint16_t *", "parent": 153, "children": [155, 156], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 21}}, {"id": 155, "type": "primitive_type", "text": "uint16_t", "parent": 154, "children": [], "start_point": {"row": 130, "column": 11}, "end_point": {"row": 130, "column": 19}}, {"id": 156, "type": "abstract_pointer_declarator", "text": "*", "parent": 154, "children": [157], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 21}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 21}}, {"id": 158, "type": "parenthesized_expression", "text": "(BmpAddress + 2)", "parent": 153, "children": [159], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 39}}, {"id": 159, "type": "binary_expression", "text": "BmpAddress + 2", "parent": 158, "children": [160, 161, 162], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 38}}, {"id": 160, "type": "identifier", "text": "BmpAddress", "parent": 159, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 34}}, {"id": 161, "type": "+", "text": "+", "parent": 159, "children": [], "start_point": {"row": 130, "column": 35}, "end_point": {"row": 130, "column": 36}}, {"id": 162, "type": "number_literal", "text": "2", "parent": 159, "children": [], "start_point": {"row": 130, "column": 37}, "end_point": {"row": 130, "column": 38}}, {"id": 163, "type": "assignment_expression", "text": "size |= (*(uint16_t *) (BmpAddress + 4)) << 16", "parent": 64, "children": [164, 165, 166], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 48}}, {"id": 164, "type": "identifier", "text": "size", "parent": 163, "children": [], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 6}}, {"id": 165, "type": "|=", "text": "|=", "parent": 163, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 9}}, {"id": 166, "type": "binary_expression", "text": "(*(uint16_t *) (BmpAddress + 4)) << 16", "parent": 163, "children": [167, 180, 181], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 48}}, {"id": 167, "type": "parenthesized_expression", "text": "(*(uint16_t *) (BmpAddress + 4))", "parent": 166, "children": [168], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 42}}, {"id": 168, "type": "pointer_expression", "text": "*(uint16_t *) (BmpAddress + 4)", "parent": 167, "children": [169, 170], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 41}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 12}}, {"id": 170, "type": "cast_expression", "text": "(uint16_t *) (BmpAddress + 4)", "parent": 168, "children": [171, 175], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 41}}, {"id": 171, "type": "type_descriptor", "text": "uint16_t *", "parent": 170, "children": [172, 173], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 23}}, {"id": 172, "type": "primitive_type", "text": "uint16_t", "parent": 171, "children": [], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 21}}, {"id": 173, "type": "abstract_pointer_declarator", "text": "*", "parent": 171, "children": [174], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 23}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 131, "column": 22}, "end_point": {"row": 131, "column": 23}}, {"id": 175, "type": "parenthesized_expression", "text": "(BmpAddress + 4)", "parent": 170, "children": [176], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 131, "column": 41}}, {"id": 176, "type": "binary_expression", "text": "BmpAddress + 4", "parent": 175, "children": [177, 178, 179], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 40}}, {"id": 177, "type": "identifier", "text": "BmpAddress", "parent": 176, "children": [], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 36}}, {"id": 178, "type": "+", "text": "+", "parent": 176, "children": [], "start_point": {"row": 131, "column": 37}, "end_point": {"row": 131, "column": 38}}, {"id": 179, "type": "number_literal", "text": "4", "parent": 176, "children": [], "start_point": {"row": 131, "column": 39}, "end_point": {"row": 131, "column": 40}}, {"id": 180, "type": "<<", "text": "<<", "parent": 166, "children": [], "start_point": {"row": 131, "column": 43}, "end_point": {"row": 131, "column": 45}}, {"id": 181, "type": "number_literal", "text": "16", "parent": 166, "children": [], "start_point": {"row": 131, "column": 46}, "end_point": {"row": 131, "column": 48}}, {"id": 182, "type": "assignment_expression", "text": "index = *(uint16_t *) (BmpAddress + 10)", "parent": 64, "children": [183, 184, 185], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 41}}, {"id": 183, "type": "identifier", "text": "index", "parent": 182, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 7}}, {"id": 184, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 9}}, {"id": 185, "type": "pointer_expression", "text": "*(uint16_t *) (BmpAddress + 10)", "parent": 182, "children": [186, 187], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 41}}, {"id": 186, "type": "*", "text": "*", "parent": 185, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 11}}, {"id": 187, "type": "cast_expression", "text": "(uint16_t *) (BmpAddress + 10)", "parent": 185, "children": [188, 192], "start_point": {"row": 134, "column": 11}, "end_point": {"row": 134, "column": 41}}, {"id": 188, "type": "type_descriptor", "text": "uint16_t *", "parent": 187, "children": [189, 190], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 22}}, {"id": 189, "type": "primitive_type", "text": "uint16_t", "parent": 188, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 20}}, {"id": 190, "type": "abstract_pointer_declarator", "text": "*", "parent": 188, "children": [191], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 22}}, {"id": 191, "type": "*", "text": "*", "parent": 190, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 22}}, {"id": 192, "type": "parenthesized_expression", "text": "(BmpAddress + 10)", "parent": 187, "children": [193], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 41}}, {"id": 193, "type": "binary_expression", "text": "BmpAddress + 10", "parent": 192, "children": [194, 195, 196], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 40}}, {"id": 194, "type": "identifier", "text": "BmpAddress", "parent": 193, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 35}}, {"id": 195, "type": "+", "text": "+", "parent": 193, "children": [], "start_point": {"row": 134, "column": 36}, "end_point": {"row": 134, "column": 37}}, {"id": 196, "type": "number_literal", "text": "10", "parent": 193, "children": [], "start_point": {"row": 134, "column": 38}, "end_point": {"row": 134, "column": 40}}, {"id": 197, "type": "assignment_expression", "text": "index |= (*(uint16_t *) (BmpAddress + 12)) << 16", "parent": 64, "children": [198, 199, 200], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 50}}, {"id": 198, "type": "identifier", "text": "index", "parent": 197, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 7}}, {"id": 199, "type": "|=", "text": "|=", "parent": 197, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 10}}, {"id": 200, "type": "binary_expression", "text": "(*(uint16_t *) (BmpAddress + 12)) << 16", "parent": 197, "children": [201, 214, 215], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 50}}, {"id": 201, "type": "parenthesized_expression", "text": "(*(uint16_t *) (BmpAddress + 12))", "parent": 200, "children": [202], "start_point": {"row": 135, "column": 11}, "end_point": {"row": 135, "column": 44}}, {"id": 202, "type": "pointer_expression", "text": "*(uint16_t *) (BmpAddress + 12)", "parent": 201, "children": [203, 204], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 43}}, {"id": 203, "type": "*", "text": "*", "parent": 202, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 13}}, {"id": 204, "type": "cast_expression", "text": "(uint16_t *) (BmpAddress + 12)", "parent": 202, "children": [205, 209], "start_point": {"row": 135, "column": 13}, "end_point": {"row": 135, "column": 43}}, {"id": 205, "type": "type_descriptor", "text": "uint16_t *", "parent": 204, "children": [206, 207], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 24}}, {"id": 206, "type": "primitive_type", "text": "uint16_t", "parent": 205, "children": [], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 22}}, {"id": 207, "type": "abstract_pointer_declarator", "text": "*", "parent": 205, "children": [208], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 24}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 135, "column": 23}, "end_point": {"row": 135, "column": 24}}, {"id": 209, "type": "parenthesized_expression", "text": "(BmpAddress + 12)", "parent": 204, "children": [210], "start_point": {"row": 135, "column": 26}, "end_point": {"row": 135, "column": 43}}, {"id": 210, "type": "binary_expression", "text": "BmpAddress + 12", "parent": 209, "children": [211, 212, 213], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 42}}, {"id": 211, "type": "identifier", "text": "BmpAddress", "parent": 210, "children": [], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 37}}, {"id": 212, "type": "+", "text": "+", "parent": 210, "children": [], "start_point": {"row": 135, "column": 38}, "end_point": {"row": 135, "column": 39}}, {"id": 213, "type": "number_literal", "text": "12", "parent": 210, "children": [], "start_point": {"row": 135, "column": 40}, "end_point": {"row": 135, "column": 42}}, {"id": 214, "type": "<<", "text": "<<", "parent": 200, "children": [], "start_point": {"row": 135, "column": 45}, "end_point": {"row": 135, "column": 47}}, {"id": 215, "type": "number_literal", "text": "16", "parent": 200, "children": [], "start_point": {"row": 135, "column": 48}, "end_point": {"row": 135, "column": 50}}, {"id": 216, "type": "call_expression", "text": "f_close (&F1)", "parent": 64, "children": [217, 218], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 15}}, {"id": 217, "type": "identifier", "text": "f_close", "parent": 216, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 9}}, {"id": 218, "type": "argument_list", "text": "(&F1)", "parent": 216, "children": [219], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 15}}, {"id": 219, "type": "pointer_expression", "text": "&F1", "parent": 218, "children": [220], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 14}}, {"id": 220, "type": "identifier", "text": "F1", "parent": 219, "children": [], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 14}}, {"id": 221, "type": "call_expression", "text": "f_open (&F1, (TCHAR const*)BmpName, FA_READ)", "parent": 64, "children": [222, 223], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 46}}, {"id": 222, "type": "identifier", "text": "f_open", "parent": 221, "children": [], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 8}}, {"id": 223, "type": "argument_list", "text": "(&F1, (TCHAR const*)BmpName, FA_READ)", "parent": 221, "children": [224, 226, 232], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 46}}, {"id": 224, "type": "pointer_expression", "text": "&F1", "parent": 223, "children": [225], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 13}}, {"id": 225, "type": "identifier", "text": "F1", "parent": 224, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 13}}, {"id": 226, "type": "cast_expression", "text": "(TCHAR const*)BmpName", "parent": 223, "children": [227, 231], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 36}}, {"id": 227, "type": "type_descriptor", "text": "TCHAR const*", "parent": 226, "children": [228, 229], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 28}}, {"id": 228, "type": "type_identifier", "text": "TCHAR", "parent": 227, "children": [], "start_point": {"row": 139, "column": 16}, "end_point": {"row": 139, "column": 21}}, {"id": 229, "type": "abstract_pointer_declarator", "text": "*", "parent": 227, "children": [230], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 28}}, {"id": 231, "type": "identifier", "text": "BmpName", "parent": 226, "children": [], "start_point": {"row": 139, "column": 29}, "end_point": {"row": 139, "column": 36}}, {"id": 232, "type": "identifier", "text": "FA_READ", "parent": 223, "children": [], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 45}}, {"id": 233, "type": "do_statement", "text": "do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);", "parent": 64, "children": [321], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 164, "column": 19}}, {"id": 234, "type": "if_statement", "text": "if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }", "parent": 233, "children": [235, 247], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 150, "column": 5}}, {"id": 235, "type": "parenthesized_expression", "text": "(size < 256*2)", "parent": 234, "children": [236], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 21}}, {"id": 236, "type": "binary_expression", "text": "size < 256*2", "parent": 235, "children": [237, 238, 239], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 20}}, {"id": 237, "type": "identifier", "text": "size", "parent": 236, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 12}}, {"id": 238, "type": "<", "text": "<", "parent": 236, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 14}}, {"id": 239, "type": "binary_expression", "text": "256*2", "parent": 236, "children": [240, 241, 242], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 20}}, {"id": 240, "type": "number_literal", "text": "256", "parent": 239, "children": [], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 18}}, {"id": 241, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 19}}, {"id": 242, "type": "number_literal", "text": "2", "parent": 239, "children": [], "start_point": {"row": 143, "column": 19}, "end_point": {"row": 143, "column": 20}}, {"id": 243, "type": "assignment_expression", "text": "i1 = size", "parent": 234, "children": [244, 245, 246], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 15}}, {"id": 244, "type": "identifier", "text": "i1", "parent": 243, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 8}}, {"id": 245, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 145, "column": 9}, "end_point": {"row": 145, "column": 10}}, {"id": 246, "type": "identifier", "text": "size", "parent": 243, "children": [], "start_point": {"row": 145, "column": 11}, "end_point": {"row": 145, "column": 15}}, {"id": 247, "type": "else_clause", "text": "else\n {\n i1 = 256*2;\n }", "parent": 234, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 150, "column": 5}}, {"id": 248, "type": "assignment_expression", "text": "i1 = 256*2", "parent": 247, "children": [249, 250, 251], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 16}}, {"id": 249, "type": "identifier", "text": "i1", "parent": 248, "children": [], "start_point": {"row": 149, "column": 6}, "end_point": {"row": 149, "column": 8}}, {"id": 250, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 10}}, {"id": 251, "type": "binary_expression", "text": "256*2", "parent": 248, "children": [252, 253, 254], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 16}}, {"id": 252, "type": "number_literal", "text": "256", "parent": 251, "children": [], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 14}}, {"id": 253, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 15}}, {"id": 254, "type": "number_literal", "text": "2", "parent": 251, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 16}}, {"id": 255, "type": "assignment_expression", "text": "size -= i1", "parent": 233, "children": [256, 257, 258], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 14}}, {"id": 256, "type": "identifier", "text": "size", "parent": 255, "children": [], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 8}}, {"id": 257, "type": "-=", "text": "-=", "parent": 255, "children": [], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 11}}, {"id": 258, "type": "identifier", "text": "i1", "parent": 255, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 14}}, {"id": 259, "type": "call_expression", "text": "f_read (&F1, sector, i1, (UINT *)&BytesRead)", "parent": 233, "children": [260, 261], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 48}}, {"id": 260, "type": "identifier", "text": "f_read", "parent": 259, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 10}}, {"id": 261, "type": "argument_list", "text": "(&F1, sector, i1, (UINT *)&BytesRead)", "parent": 259, "children": [262, 264, 265, 266], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 48}}, {"id": 262, "type": "pointer_expression", "text": "&F1", "parent": 261, "children": [263], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 15}}, {"id": 263, "type": "identifier", "text": "F1", "parent": 262, "children": [], "start_point": {"row": 152, "column": 13}, "end_point": {"row": 152, "column": 15}}, {"id": 264, "type": "identifier", "text": "sector", "parent": 261, "children": [], "start_point": {"row": 152, "column": 17}, "end_point": {"row": 152, "column": 23}}, {"id": 265, "type": "identifier", "text": "i1", "parent": 261, "children": [], "start_point": {"row": 152, "column": 25}, "end_point": {"row": 152, "column": 27}}, {"id": 266, "type": "cast_expression", "text": "(UINT *)&BytesRead", "parent": 261, "children": [267, 271], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 47}}, {"id": 267, "type": "type_descriptor", "text": "UINT *", "parent": 266, "children": [268, 269], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 36}}, {"id": 268, "type": "type_identifier", "text": "UINT", "parent": 267, "children": [], "start_point": {"row": 152, "column": 30}, "end_point": {"row": 152, "column": 34}}, {"id": 269, "type": "abstract_pointer_declarator", "text": "*", "parent": 267, "children": [270], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 36}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 36}}, {"id": 271, "type": "pointer_expression", "text": "&BytesRead", "parent": 266, "children": [272], "start_point": {"row": 152, "column": 37}, "end_point": {"row": 152, "column": 47}}, {"id": 272, "type": "identifier", "text": "BytesRead", "parent": 271, "children": [], "start_point": {"row": 152, "column": 38}, "end_point": {"row": 152, "column": 47}}, {"id": 273, "type": "for_statement", "text": "for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n }", "parent": 233, "children": [274, 278, 282], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 160, "column": 5}}, {"id": 274, "type": "assignment_expression", "text": "index = 0", "parent": 273, "children": [275, 276, 277], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 18}}, {"id": 275, "type": "identifier", "text": "index", "parent": 274, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 14}}, {"id": 276, "type": "=", "text": "=", "parent": 274, "children": [], "start_point": {"row": 154, "column": 15}, "end_point": {"row": 154, "column": 16}}, {"id": 277, "type": "number_literal", "text": "0", "parent": 274, "children": [], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 18}}, {"id": 278, "type": "binary_expression", "text": "index < i1", "parent": 273, "children": [279, 280, 281], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 30}}, {"id": 279, "type": "identifier", "text": "index", "parent": 278, "children": [], "start_point": {"row": 154, "column": 20}, "end_point": {"row": 154, "column": 25}}, {"id": 280, "type": "<", "text": "<", "parent": 278, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 27}}, {"id": 281, "type": "identifier", "text": "i1", "parent": 278, "children": [], "start_point": {"row": 154, "column": 28}, "end_point": {"row": 154, "column": 30}}, {"id": 282, "type": "update_expression", "text": "index++", "parent": 273, "children": [283, 284], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 39}}, {"id": 283, "type": "identifier", "text": "index", "parent": 282, "children": [], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 37}}, {"id": 284, "type": "++", "text": "++", "parent": 282, "children": [], "start_point": {"row": 154, "column": 37}, "end_point": {"row": 154, "column": 39}}, {"id": 285, "type": "assignment_expression", "text": "*(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress", "parent": 273, "children": [286, 297, 298], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 62}}, {"id": 286, "type": "pointer_expression", "text": "*(__IO uint8_t*) (Address)", "parent": 285, "children": [287, 288], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 32}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 156, "column": 6}, "end_point": {"row": 156, "column": 7}}, {"id": 288, "type": "cast_expression", "text": "(__IO uint8_t*) (Address)", "parent": 286, "children": [289, 291, 295], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 32}}, {"id": 289, "type": "ERROR", "text": "__IO", "parent": 288, "children": [290], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 12}}, {"id": 290, "type": "identifier", "text": "__IO", "parent": 289, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 12}}, {"id": 291, "type": "type_descriptor", "text": "uint8_t*", "parent": 288, "children": [292, 293], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 21}}, {"id": 292, "type": "primitive_type", "text": "uint8_t", "parent": 291, "children": [], "start_point": {"row": 156, "column": 13}, "end_point": {"row": 156, "column": 20}}, {"id": 293, "type": "abstract_pointer_declarator", "text": "*", "parent": 291, "children": [294], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 21}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 156, "column": 20}, "end_point": {"row": 156, "column": 21}}, {"id": 295, "type": "parenthesized_expression", "text": "(Address)", "parent": 288, "children": [296], "start_point": {"row": 156, "column": 23}, "end_point": {"row": 156, "column": 32}}, {"id": 296, "type": "identifier", "text": "Address", "parent": 295, "children": [], "start_point": {"row": 156, "column": 24}, "end_point": {"row": 156, "column": 31}}, {"id": 297, "type": "=", "text": "=", "parent": 285, "children": [], "start_point": {"row": 156, "column": 33}, "end_point": {"row": 156, "column": 34}}, {"id": 298, "type": "pointer_expression", "text": "*(__IO uint8_t *)BmpAddress", "parent": 285, "children": [299, 300], "start_point": {"row": 156, "column": 35}, "end_point": {"row": 156, "column": 62}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 156, "column": 35}, "end_point": {"row": 156, "column": 36}}, {"id": 300, "type": "cast_expression", "text": "(__IO uint8_t *)BmpAddress", "parent": 298, "children": [301, 303, 307], "start_point": {"row": 156, "column": 36}, "end_point": {"row": 156, "column": 62}}, {"id": 301, "type": "ERROR", "text": "__IO", "parent": 300, "children": [302], "start_point": {"row": 156, "column": 37}, "end_point": {"row": 156, "column": 41}}, {"id": 302, "type": "identifier", "text": "__IO", "parent": 301, "children": [], "start_point": {"row": 156, "column": 37}, "end_point": {"row": 156, "column": 41}}, {"id": 303, "type": "type_descriptor", "text": "uint8_t *", "parent": 300, "children": [304, 305], "start_point": {"row": 156, "column": 42}, "end_point": {"row": 156, "column": 51}}, {"id": 304, "type": "primitive_type", "text": "uint8_t", "parent": 303, "children": [], "start_point": {"row": 156, "column": 42}, "end_point": {"row": 156, "column": 49}}, {"id": 305, "type": "abstract_pointer_declarator", "text": "*", "parent": 303, "children": [306], "start_point": {"row": 156, "column": 50}, "end_point": {"row": 156, "column": 51}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 156, "column": 50}, "end_point": {"row": 156, "column": 51}}, {"id": 307, "type": "identifier", "text": "BmpAddress", "parent": 300, "children": [], "start_point": {"row": 156, "column": 52}, "end_point": {"row": 156, "column": 62}}, {"id": 308, "type": "update_expression", "text": "BmpAddress++", "parent": 273, "children": [309, 310], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 18}}, {"id": 309, "type": "identifier", "text": "BmpAddress", "parent": 308, "children": [], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 16}}, {"id": 310, "type": "++", "text": "++", "parent": 308, "children": [], "start_point": {"row": 158, "column": 16}, "end_point": {"row": 158, "column": 18}}, {"id": 311, "type": "update_expression", "text": "Address++", "parent": 273, "children": [312, 313], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 15}}, {"id": 312, "type": "identifier", "text": "Address", "parent": 311, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 13}}, {"id": 313, "type": "++", "text": "++", "parent": 311, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 15}}, {"id": 314, "type": "assignment_expression", "text": "BmpAddress = (uint32_t)sector", "parent": 233, "children": [315, 316, 317], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 33}}, {"id": 315, "type": "identifier", "text": "BmpAddress", "parent": 314, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 14}}, {"id": 316, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 16}}, {"id": 317, "type": "cast_expression", "text": "(uint32_t)sector", "parent": 314, "children": [318, 320], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 33}}, {"id": 318, "type": "type_descriptor", "text": "uint32_t", "parent": 317, "children": [319], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 26}}, {"id": 319, "type": "primitive_type", "text": "uint32_t", "parent": 318, "children": [], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 162, "column": 26}}, {"id": 320, "type": "identifier", "text": "sector", "parent": 317, "children": [], "start_point": {"row": 162, "column": 27}, "end_point": {"row": 162, "column": 33}}, {"id": 321, "type": "parenthesized_expression", "text": "(size > 0)", "parent": 233, "children": [322], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 18}}, {"id": 322, "type": "binary_expression", "text": "size > 0", "parent": 321, "children": [323, 324, 325], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 17}}, {"id": 323, "type": "identifier", "text": "size", "parent": 322, "children": [], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 13}}, {"id": 324, "type": ">", "text": ">", "parent": 322, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 15}}, {"id": 325, "type": "number_literal", "text": "0", "parent": 322, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 17}}, {"id": 326, "type": "call_expression", "text": "f_close (&F1)", "parent": 64, "children": [327, 328], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 15}}, {"id": 327, "type": "identifier", "text": "f_close", "parent": 326, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 9}}, {"id": 328, "type": "argument_list", "text": "(&F1)", "parent": 326, "children": [329], "start_point": {"row": 166, "column": 10}, "end_point": {"row": 166, "column": 15}}, {"id": 329, "type": "pointer_expression", "text": "&F1", "parent": 328, "children": [330], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 14}}, {"id": 330, "type": "identifier", "text": "F1", "parent": 329, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 14}}, {"id": 331, "type": "return_statement", "text": "return 1;", "parent": 64, "children": [332], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 11}}, {"id": 332, "type": "number_literal", "text": "1", "parent": 331, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 10}}, {"id": 333, "type": "function_definition", "text": "uint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)\n{\n if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }\n if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }\n \n f_read (&F, sector, 6, (UINT *)&BytesRead);\n \n if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }\n return 0;\n}", "parent": null, "children": [334, 335], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 197, "column": 1}}, {"id": 334, "type": "primitive_type", "text": "uint32_t", "parent": 333, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 8}}, {"id": 335, "type": "function_declarator", "text": "Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)", "parent": 333, "children": [336, 337], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 72}}, {"id": 336, "type": "identifier", "text": "Storage_CheckBitmapFile", "parent": 335, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 32}}, {"id": 337, "type": "parameter_list", "text": "(const char* BmpName, uint32_t *FileLen)", "parent": 335, "children": [338, 343], "start_point": {"row": 179, "column": 32}, "end_point": {"row": 179, "column": 72}}, {"id": 338, "type": "parameter_declaration", "text": "const char* BmpName", "parent": 337, "children": [339, 340], "start_point": {"row": 179, "column": 33}, "end_point": {"row": 179, "column": 52}}, {"id": 339, "type": "primitive_type", "text": "char", "parent": 338, "children": [], "start_point": {"row": 179, "column": 39}, "end_point": {"row": 179, "column": 43}}, {"id": 340, "type": "pointer_declarator", "text": "* BmpName", "parent": 338, "children": [341, 342], "start_point": {"row": 179, "column": 43}, "end_point": {"row": 179, "column": 52}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 179, "column": 43}, "end_point": {"row": 179, "column": 44}}, {"id": 342, "type": "identifier", "text": "BmpName", "parent": 340, "children": [], "start_point": {"row": 179, "column": 45}, "end_point": {"row": 179, "column": 52}}, {"id": 343, "type": "parameter_declaration", "text": "uint32_t *FileLen", "parent": 337, "children": [344, 345], "start_point": {"row": 179, "column": 54}, "end_point": {"row": 179, "column": 71}}, {"id": 344, "type": "primitive_type", "text": "uint32_t", "parent": 343, "children": [], "start_point": {"row": 179, "column": 54}, "end_point": {"row": 179, "column": 62}}, {"id": 345, "type": "pointer_declarator", "text": "*FileLen", "parent": 343, "children": [346, 347], "start_point": {"row": 179, "column": 63}, "end_point": {"row": 179, "column": 71}}, {"id": 346, "type": "*", "text": "*", "parent": 345, "children": [], "start_point": {"row": 179, "column": 63}, "end_point": {"row": 179, "column": 64}}, {"id": 347, "type": "identifier", "text": "FileLen", "parent": 345, "children": [], "start_point": {"row": 179, "column": 64}, "end_point": {"row": 179, "column": 71}}, {"id": 348, "type": "if_statement", "text": "if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }", "parent": 333, "children": [349], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 184, "column": 3}}, {"id": 349, "type": "parenthesized_expression", "text": "(f_mount(&fs, (TCHAR const*)\"\",0))", "parent": 348, "children": [350], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 38}}, {"id": 350, "type": "call_expression", "text": "f_mount(&fs, (TCHAR const*)\"\",0)", "parent": 349, "children": [351, 352], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 37}}, {"id": 351, "type": "identifier", "text": "f_mount", "parent": 350, "children": [], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 12}}, {"id": 352, "type": "argument_list", "text": "(&fs, (TCHAR const*)\"\",0)", "parent": 350, "children": [353, 355, 361], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 37}}, {"id": 353, "type": "pointer_expression", "text": "&fs", "parent": 352, "children": [354], "start_point": {"row": 181, "column": 13}, "end_point": {"row": 181, "column": 16}}, {"id": 354, "type": "identifier", "text": "fs", "parent": 353, "children": [], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 16}}, {"id": 355, "type": "cast_expression", "text": "(TCHAR const*)\"\"", "parent": 352, "children": [356, 360], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 34}}, {"id": 356, "type": "type_descriptor", "text": "TCHAR const*", "parent": 355, "children": [357, 358], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 31}}, {"id": 357, "type": "type_identifier", "text": "TCHAR", "parent": 356, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 24}}, {"id": 358, "type": "abstract_pointer_declarator", "text": "*", "parent": 356, "children": [359], "start_point": {"row": 181, "column": 30}, "end_point": {"row": 181, "column": 31}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 181, "column": 30}, "end_point": {"row": 181, "column": 31}}, {"id": 360, "type": "string_literal", "text": "\"\"", "parent": 355, "children": [], "start_point": {"row": 181, "column": 32}, "end_point": {"row": 181, "column": 34}}, {"id": 361, "type": "number_literal", "text": "0", "parent": 352, "children": [], "start_point": {"row": 181, "column": 35}, "end_point": {"row": 181, "column": 36}}, {"id": 362, "type": "return_statement", "text": "return 1;", "parent": 348, "children": [363], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 13}}, {"id": 363, "type": "number_literal", "text": "1", "parent": 362, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 12}}, {"id": 364, "type": "if_statement", "text": "if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }", "parent": 333, "children": [365], "start_point": {"row": 185, "column": 2}, "end_point": {"row": 188, "column": 3}}, {"id": 365, "type": "parenthesized_expression", "text": "(f_open (&F, (TCHAR const*)BmpName, FA_READ))", "parent": 364, "children": [366], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 49}}, {"id": 366, "type": "call_expression", "text": "f_open (&F, (TCHAR const*)BmpName, FA_READ)", "parent": 365, "children": [367, 368], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 48}}, {"id": 367, "type": "identifier", "text": "f_open", "parent": 366, "children": [], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 11}}, {"id": 368, "type": "argument_list", "text": "(&F, (TCHAR const*)BmpName, FA_READ)", "parent": 366, "children": [369, 371, 377], "start_point": {"row": 185, "column": 12}, "end_point": {"row": 185, "column": 48}}, {"id": 369, "type": "pointer_expression", "text": "&F", "parent": 368, "children": [370], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 15}}, {"id": 370, "type": "identifier", "text": "F", "parent": 369, "children": [], "start_point": {"row": 185, "column": 14}, "end_point": {"row": 185, "column": 15}}, {"id": 371, "type": "cast_expression", "text": "(TCHAR const*)BmpName", "parent": 368, "children": [372, 376], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 38}}, {"id": 372, "type": "type_descriptor", "text": "TCHAR const*", "parent": 371, "children": [373, 374], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 30}}, {"id": 373, "type": "type_identifier", "text": "TCHAR", "parent": 372, "children": [], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 23}}, {"id": 374, "type": "abstract_pointer_declarator", "text": "*", "parent": 372, "children": [375], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 375, "type": "*", "text": "*", "parent": 374, "children": [], "start_point": {"row": 185, "column": 29}, "end_point": {"row": 185, "column": 30}}, {"id": 376, "type": "identifier", "text": "BmpName", "parent": 371, "children": [], "start_point": {"row": 185, "column": 31}, "end_point": {"row": 185, "column": 38}}, {"id": 377, "type": "identifier", "text": "FA_READ", "parent": 368, "children": [], "start_point": {"row": 185, "column": 40}, "end_point": {"row": 185, "column": 47}}, {"id": 378, "type": "return_statement", "text": "return 2;", "parent": 364, "children": [379], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 13}}, {"id": 379, "type": "number_literal", "text": "2", "parent": 378, "children": [], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 12}}, {"id": 380, "type": "call_expression", "text": "f_read (&F, sector, 6, (UINT *)&BytesRead)", "parent": 333, "children": [381, 382], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 44}}, {"id": 381, "type": "identifier", "text": "f_read", "parent": 380, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 8}}, {"id": 382, "type": "argument_list", "text": "(&F, sector, 6, (UINT *)&BytesRead)", "parent": 380, "children": [383, 385, 386, 387], "start_point": {"row": 190, "column": 9}, "end_point": {"row": 190, "column": 44}}, {"id": 383, "type": "pointer_expression", "text": "&F", "parent": 382, "children": [384], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 12}}, {"id": 384, "type": "identifier", "text": "F", "parent": 383, "children": [], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 12}}, {"id": 385, "type": "identifier", "text": "sector", "parent": 382, "children": [], "start_point": {"row": 190, "column": 14}, "end_point": {"row": 190, "column": 20}}, {"id": 386, "type": "number_literal", "text": "6", "parent": 382, "children": [], "start_point": {"row": 190, "column": 22}, "end_point": {"row": 190, "column": 23}}, {"id": 387, "type": "cast_expression", "text": "(UINT *)&BytesRead", "parent": 382, "children": [388, 392], "start_point": {"row": 190, "column": 25}, "end_point": {"row": 190, "column": 43}}, {"id": 388, "type": "type_descriptor", "text": "UINT *", "parent": 387, "children": [389, 390], "start_point": {"row": 190, "column": 26}, "end_point": {"row": 190, "column": 32}}, {"id": 389, "type": "type_identifier", "text": "UINT", "parent": 388, "children": [], "start_point": {"row": 190, "column": 26}, "end_point": {"row": 190, "column": 30}}, {"id": 390, "type": "abstract_pointer_declarator", "text": "*", "parent": 388, "children": [391], "start_point": {"row": 190, "column": 31}, "end_point": {"row": 190, "column": 32}}, {"id": 391, "type": "*", "text": "*", "parent": 390, "children": [], "start_point": {"row": 190, "column": 31}, "end_point": {"row": 190, "column": 32}}, {"id": 392, "type": "pointer_expression", "text": "&BytesRead", "parent": 387, "children": [393], "start_point": {"row": 190, "column": 33}, "end_point": {"row": 190, "column": 43}}, {"id": 393, "type": "identifier", "text": "BytesRead", "parent": 392, "children": [], "start_point": {"row": 190, "column": 34}, "end_point": {"row": 190, "column": 43}}, {"id": 394, "type": "if_statement", "text": "if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }", "parent": 333, "children": [395], "start_point": {"row": 192, "column": 2}, "end_point": {"row": 195, "column": 3}}, {"id": 395, "type": "parenthesized_expression", "text": "(Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)", "parent": 394, "children": [396], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 68}}, {"id": 396, "type": "binary_expression", "text": "Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0", "parent": 395, "children": [397, 413, 414], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 67}}, {"id": 397, "type": "call_expression", "text": "Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2)", "parent": 396, "children": [398, 399], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 62}}, {"id": 398, "type": "identifier", "text": "Buffercmp", "parent": 397, "children": [], "start_point": {"row": 192, "column": 6}, "end_point": {"row": 192, "column": 15}}, {"id": 399, "type": "argument_list", "text": "((uint8_t *)SlidesCheck, (uint8_t *) sector, 2)", "parent": 397, "children": [400, 406, 412], "start_point": {"row": 192, "column": 15}, "end_point": {"row": 192, "column": 62}}, {"id": 400, "type": "cast_expression", "text": "(uint8_t *)SlidesCheck", "parent": 399, "children": [401, 405], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 38}}, {"id": 401, "type": "type_descriptor", "text": "uint8_t *", "parent": 400, "children": [402, 403], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 26}}, {"id": 402, "type": "primitive_type", "text": "uint8_t", "parent": 401, "children": [], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 24}}, {"id": 403, "type": "abstract_pointer_declarator", "text": "*", "parent": 401, "children": [404], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 26}}, {"id": 404, "type": "*", "text": "*", "parent": 403, "children": [], "start_point": {"row": 192, "column": 25}, "end_point": {"row": 192, "column": 26}}, {"id": 405, "type": "identifier", "text": "SlidesCheck", "parent": 400, "children": [], "start_point": {"row": 192, "column": 27}, "end_point": {"row": 192, "column": 38}}, {"id": 406, "type": "cast_expression", "text": "(uint8_t *) sector", "parent": 399, "children": [407, 411], "start_point": {"row": 192, "column": 40}, "end_point": {"row": 192, "column": 58}}, {"id": 407, "type": "type_descriptor", "text": "uint8_t *", "parent": 406, "children": [408, 409], "start_point": {"row": 192, "column": 41}, "end_point": {"row": 192, "column": 50}}, {"id": 408, "type": "primitive_type", "text": "uint8_t", "parent": 407, "children": [], "start_point": {"row": 192, "column": 41}, "end_point": {"row": 192, "column": 48}}, {"id": 409, "type": "abstract_pointer_declarator", "text": "*", "parent": 407, "children": [410], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 50}}, {"id": 410, "type": "*", "text": "*", "parent": 409, "children": [], "start_point": {"row": 192, "column": 49}, "end_point": {"row": 192, "column": 50}}, {"id": 411, "type": "identifier", "text": "sector", "parent": 406, "children": [], "start_point": {"row": 192, "column": 52}, "end_point": {"row": 192, "column": 58}}, {"id": 412, "type": "number_literal", "text": "2", "parent": 399, "children": [], "start_point": {"row": 192, "column": 60}, "end_point": {"row": 192, "column": 61}}, {"id": 413, "type": "!=", "text": "!=", "parent": 396, "children": [], "start_point": {"row": 192, "column": 63}, "end_point": {"row": 192, "column": 65}}, {"id": 414, "type": "number_literal", "text": "0", "parent": 396, "children": [], "start_point": {"row": 192, "column": 66}, "end_point": {"row": 192, "column": 67}}, {"id": 415, "type": "return_statement", "text": "return 3;", "parent": 394, "children": [416], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 13}}, {"id": 416, "type": "number_literal", "text": "3", "parent": 415, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 12}}, {"id": 417, "type": "return_statement", "text": "return 0;", "parent": 333, "children": [418], "start_point": {"row": 196, "column": 2}, "end_point": {"row": 196, "column": 11}}, {"id": 418, "type": "number_literal", "text": "0", "parent": 417, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 10}}, {"id": 419, "type": "function_definition", "text": "uint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])\n{\n FRESULT res;\n uint32_t index = 0;\n \n /* Open filesystem */\n if(f_mount(&fs, (TCHAR const*)\"\",0) != FR_OK)\n {\n return 0;\n }\n \n /* Start to search for wave files */\n res = f_findfirst(&dir, &fno, DirName, \"*.bmp\");\n\n /* Repeat while an item is found */\n while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], \"%s\", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }\n\n f_closedir(&dir);\n\n return index; \n}", "parent": null, "children": [420, 421], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 240, "column": 1}}, {"id": 420, "type": "primitive_type", "text": "uint32_t", "parent": 419, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 8}}, {"id": 421, "type": "function_declarator", "text": "Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])", "parent": 419, "children": [422, 423], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 77}}, {"id": 422, "type": "identifier", "text": "Storage_GetDirectoryBitmapFiles", "parent": 421, "children": [], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 40}}, {"id": 423, "type": "parameter_list", "text": "(const char* DirName, char* Files[])", "parent": 421, "children": [424, 429], "start_point": {"row": 204, "column": 41}, "end_point": {"row": 204, "column": 77}}, {"id": 424, "type": "parameter_declaration", "text": "const char* DirName", "parent": 423, "children": [425, 426], "start_point": {"row": 204, "column": 42}, "end_point": {"row": 204, "column": 61}}, {"id": 425, "type": "primitive_type", "text": "char", "parent": 424, "children": [], "start_point": {"row": 204, "column": 48}, "end_point": {"row": 204, "column": 52}}, {"id": 426, "type": "pointer_declarator", "text": "* DirName", "parent": 424, "children": [427, 428], "start_point": {"row": 204, "column": 52}, "end_point": {"row": 204, "column": 61}}, {"id": 427, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 204, "column": 52}, "end_point": {"row": 204, "column": 53}}, {"id": 428, "type": "identifier", "text": "DirName", "parent": 426, "children": [], "start_point": {"row": 204, "column": 54}, "end_point": {"row": 204, "column": 61}}, {"id": 429, "type": "parameter_declaration", "text": "char* Files[]", "parent": 423, "children": [430, 431], "start_point": {"row": 204, "column": 63}, "end_point": {"row": 204, "column": 76}}, {"id": 430, "type": "primitive_type", "text": "char", "parent": 429, "children": [], "start_point": {"row": 204, "column": 63}, "end_point": {"row": 204, "column": 67}}, {"id": 431, "type": "pointer_declarator", "text": "* Files[]", "parent": 429, "children": [432, 433], "start_point": {"row": 204, "column": 67}, "end_point": {"row": 204, "column": 76}}, {"id": 432, "type": "*", "text": "*", "parent": 431, "children": [], "start_point": {"row": 204, "column": 67}, "end_point": {"row": 204, "column": 68}}, {"id": 433, "type": "array_declarator", "text": "Files[]", "parent": 431, "children": [434], "start_point": {"row": 204, "column": 69}, "end_point": {"row": 204, "column": 76}}, {"id": 434, "type": "identifier", "text": "Files", "parent": 433, "children": [], "start_point": {"row": 204, "column": 69}, "end_point": {"row": 204, "column": 74}}, {"id": 435, "type": "declaration", "text": "FRESULT res;", "parent": 419, "children": [436, 437], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 14}}, {"id": 436, "type": "type_identifier", "text": "FRESULT", "parent": 435, "children": [], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 9}}, {"id": 437, "type": "identifier", "text": "res", "parent": 435, "children": [], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 13}}, {"id": 438, "type": "declaration", "text": "uint32_t index = 0;", "parent": 419, "children": [439, 440], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 21}}, {"id": 439, "type": "primitive_type", "text": "uint32_t", "parent": 438, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 10}}, {"id": 440, "type": "init_declarator", "text": "index = 0", "parent": 438, "children": [441, 442, 443], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 20}}, {"id": 441, "type": "identifier", "text": "index", "parent": 440, "children": [], "start_point": {"row": 207, "column": 11}, "end_point": {"row": 207, "column": 16}}, {"id": 442, "type": "=", "text": "=", "parent": 440, "children": [], "start_point": {"row": 207, "column": 17}, "end_point": {"row": 207, "column": 18}}, {"id": 443, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 207, "column": 19}, "end_point": {"row": 207, "column": 20}}, {"id": 444, "type": "if_statement", "text": "if(f_mount(&fs, (TCHAR const*)\"\",0) != FR_OK)\n {\n return 0;\n }", "parent": 419, "children": [445], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 213, "column": 3}}, {"id": 445, "type": "parenthesized_expression", "text": "(f_mount(&fs, (TCHAR const*)\"\",0) != FR_OK)", "parent": 444, "children": [446], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 210, "column": 47}}, {"id": 446, "type": "binary_expression", "text": "f_mount(&fs, (TCHAR const*)\"\",0) != FR_OK", "parent": 445, "children": [447, 459, 460], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 46}}, {"id": 447, "type": "call_expression", "text": "f_mount(&fs, (TCHAR const*)\"\",0)", "parent": 446, "children": [448, 449], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 37}}, {"id": 448, "type": "identifier", "text": "f_mount", "parent": 447, "children": [], "start_point": {"row": 210, "column": 5}, "end_point": {"row": 210, "column": 12}}, {"id": 449, "type": "argument_list", "text": "(&fs, (TCHAR const*)\"\",0)", "parent": 447, "children": [450, 452, 458], "start_point": {"row": 210, "column": 12}, "end_point": {"row": 210, "column": 37}}, {"id": 450, "type": "pointer_expression", "text": "&fs", "parent": 449, "children": [451], "start_point": {"row": 210, "column": 13}, "end_point": {"row": 210, "column": 16}}, {"id": 451, "type": "identifier", "text": "fs", "parent": 450, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 16}}, {"id": 452, "type": "cast_expression", "text": "(TCHAR const*)\"\"", "parent": 449, "children": [453, 457], "start_point": {"row": 210, "column": 18}, "end_point": {"row": 210, "column": 34}}, {"id": 453, "type": "type_descriptor", "text": "TCHAR const*", "parent": 452, "children": [454, 455], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 31}}, {"id": 454, "type": "type_identifier", "text": "TCHAR", "parent": 453, "children": [], "start_point": {"row": 210, "column": 19}, "end_point": {"row": 210, "column": 24}}, {"id": 455, "type": "abstract_pointer_declarator", "text": "*", "parent": 453, "children": [456], "start_point": {"row": 210, "column": 30}, "end_point": {"row": 210, "column": 31}}, {"id": 456, "type": "*", "text": "*", "parent": 455, "children": [], "start_point": {"row": 210, "column": 30}, "end_point": {"row": 210, "column": 31}}, {"id": 457, "type": "string_literal", "text": "\"\"", "parent": 452, "children": [], "start_point": {"row": 210, "column": 32}, "end_point": {"row": 210, "column": 34}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 449, "children": [], "start_point": {"row": 210, "column": 35}, "end_point": {"row": 210, "column": 36}}, {"id": 459, "type": "!=", "text": "!=", "parent": 446, "children": [], "start_point": {"row": 210, "column": 38}, "end_point": {"row": 210, "column": 40}}, {"id": 460, "type": "identifier", "text": "FR_OK", "parent": 446, "children": [], "start_point": {"row": 210, "column": 41}, "end_point": {"row": 210, "column": 46}}, {"id": 461, "type": "return_statement", "text": "return 0;", "parent": 444, "children": [462], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 13}}, {"id": 462, "type": "number_literal", "text": "0", "parent": 461, "children": [], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 12}}, {"id": 463, "type": "assignment_expression", "text": "res = f_findfirst(&dir, &fno, DirName, \"*.bmp\")", "parent": 419, "children": [464, 465, 466], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 49}}, {"id": 464, "type": "identifier", "text": "res", "parent": 463, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 5}}, {"id": 465, "type": "=", "text": "=", "parent": 463, "children": [], "start_point": {"row": 216, "column": 6}, "end_point": {"row": 216, "column": 7}}, {"id": 466, "type": "call_expression", "text": "f_findfirst(&dir, &fno, DirName, \"*.bmp\")", "parent": 463, "children": [467, 468], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 49}}, {"id": 467, "type": "identifier", "text": "f_findfirst", "parent": 466, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 19}}, {"id": 468, "type": "argument_list", "text": "(&dir, &fno, DirName, \"*.bmp\")", "parent": 466, "children": [469, 471, 473, 474], "start_point": {"row": 216, "column": 19}, "end_point": {"row": 216, "column": 49}}, {"id": 469, "type": "pointer_expression", "text": "&dir", "parent": 468, "children": [470], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 24}}, {"id": 470, "type": "identifier", "text": "dir", "parent": 469, "children": [], "start_point": {"row": 216, "column": 21}, "end_point": {"row": 216, "column": 24}}, {"id": 471, "type": "pointer_expression", "text": "&fno", "parent": 468, "children": [472], "start_point": {"row": 216, "column": 26}, "end_point": {"row": 216, "column": 30}}, {"id": 472, "type": "identifier", "text": "fno", "parent": 471, "children": [], "start_point": {"row": 216, "column": 27}, "end_point": {"row": 216, "column": 30}}, {"id": 473, "type": "identifier", "text": "DirName", "parent": 468, "children": [], "start_point": {"row": 216, "column": 32}, "end_point": {"row": 216, "column": 39}}, {"id": 474, "type": "string_literal", "text": "\"*.bmp\"", "parent": 468, "children": [], "start_point": {"row": 216, "column": 41}, "end_point": {"row": 216, "column": 48}}, {"id": 475, "type": "while_statement", "text": "while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], \"%s\", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }", "parent": 419, "children": [476], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 235, "column": 3}}, {"id": 476, "type": "parenthesized_expression", "text": "(fno.fname[0])", "parent": 475, "children": [477], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 22}}, {"id": 477, "type": "subscript_expression", "text": "fno.fname[0]", "parent": 476, "children": [478, 481], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 21}}, {"id": 478, "type": "field_expression", "text": "fno.fname", "parent": 477, "children": [479, 480], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 18}}, {"id": 479, "type": "identifier", "text": "fno", "parent": 478, "children": [], "start_point": {"row": 219, "column": 9}, "end_point": {"row": 219, "column": 12}}, {"id": 480, "type": "field_identifier", "text": "fname", "parent": 478, "children": [], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 18}}, {"id": 481, "type": "number_literal", "text": "0", "parent": 477, "children": [], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 20}}, {"id": 482, "type": "if_statement", "text": "if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], \"%s\", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }", "parent": 475, "children": [483, 516], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 234, "column": 5}}, {"id": 483, "type": "parenthesized_expression", "text": "(res == FR_OK)", "parent": 482, "children": [484], "start_point": {"row": 221, "column": 6}, "end_point": {"row": 221, "column": 20}}, {"id": 484, "type": "binary_expression", "text": "res == FR_OK", "parent": 483, "children": [485, 486, 487], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 19}}, {"id": 485, "type": "identifier", "text": "res", "parent": 484, "children": [], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 10}}, {"id": 486, "type": "==", "text": "==", "parent": 484, "children": [], "start_point": {"row": 221, "column": 11}, "end_point": {"row": 221, "column": 13}}, {"id": 487, "type": "identifier", "text": "FR_OK", "parent": 484, "children": [], "start_point": {"row": 221, "column": 14}, "end_point": {"row": 221, "column": 19}}, {"id": 488, "type": "if_statement", "text": "if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], \"%s\", fno.fname);\n }", "parent": 482, "children": [489], "start_point": {"row": 223, "column": 6}, "end_point": {"row": 226, "column": 7}}, {"id": 489, "type": "parenthesized_expression", "text": "(index < MAX_BMP_FILES)", "parent": 488, "children": [490], "start_point": {"row": 223, "column": 8}, "end_point": {"row": 223, "column": 31}}, {"id": 490, "type": "binary_expression", "text": "index < MAX_BMP_FILES", "parent": 489, "children": [491, 492, 493], "start_point": {"row": 223, "column": 9}, "end_point": {"row": 223, "column": 30}}, {"id": 491, "type": "identifier", "text": "index", "parent": 490, "children": [], "start_point": {"row": 223, "column": 9}, "end_point": {"row": 223, "column": 14}}, {"id": 492, "type": "<", "text": "<", "parent": 490, "children": [], "start_point": {"row": 223, "column": 15}, "end_point": {"row": 223, "column": 16}}, {"id": 493, "type": "identifier", "text": "MAX_BMP_FILES", "parent": 490, "children": [], "start_point": {"row": 223, "column": 17}, "end_point": {"row": 223, "column": 30}}, {"id": 494, "type": "call_expression", "text": "sprintf (Files[index++], \"%s\", fno.fname)", "parent": 488, "children": [495, 496], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 49}}, {"id": 495, "type": "identifier", "text": "sprintf", "parent": 494, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 15}}, {"id": 496, "type": "argument_list", "text": "(Files[index++], \"%s\", fno.fname)", "parent": 494, "children": [497, 502, 503], "start_point": {"row": 225, "column": 16}, "end_point": {"row": 225, "column": 49}}, {"id": 497, "type": "subscript_expression", "text": "Files[index++]", "parent": 496, "children": [498, 499], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 31}}, {"id": 498, "type": "identifier", "text": "Files", "parent": 497, "children": [], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 22}}, {"id": 499, "type": "update_expression", "text": "index++", "parent": 497, "children": [500, 501], "start_point": {"row": 225, "column": 23}, "end_point": {"row": 225, "column": 30}}, {"id": 500, "type": "identifier", "text": "index", "parent": 499, "children": [], "start_point": {"row": 225, "column": 23}, "end_point": {"row": 225, "column": 28}}, {"id": 501, "type": "++", "text": "++", "parent": 499, "children": [], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 30}}, {"id": 502, "type": "string_literal", "text": "\"%s\"", "parent": 496, "children": [], "start_point": {"row": 225, "column": 33}, "end_point": {"row": 225, "column": 37}}, {"id": 503, "type": "field_expression", "text": "fno.fname", "parent": 496, "children": [504, 505], "start_point": {"row": 225, "column": 39}, "end_point": {"row": 225, "column": 48}}, {"id": 504, "type": "identifier", "text": "fno", "parent": 503, "children": [], "start_point": {"row": 225, "column": 39}, "end_point": {"row": 225, "column": 42}}, {"id": 505, "type": "field_identifier", "text": "fname", "parent": 503, "children": [], "start_point": {"row": 225, "column": 43}, "end_point": {"row": 225, "column": 48}}, {"id": 506, "type": "assignment_expression", "text": "res = f_findnext(&dir, &fno)", "parent": 482, "children": [507, 508, 509], "start_point": {"row": 228, "column": 6}, "end_point": {"row": 228, "column": 34}}, {"id": 507, "type": "identifier", "text": "res", "parent": 506, "children": [], "start_point": {"row": 228, "column": 6}, "end_point": {"row": 228, "column": 9}}, {"id": 508, "type": "=", "text": "=", "parent": 506, "children": [], "start_point": {"row": 228, "column": 10}, "end_point": {"row": 228, "column": 11}}, {"id": 509, "type": "call_expression", "text": "f_findnext(&dir, &fno)", "parent": 506, "children": [510, 511], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 34}}, {"id": 510, "type": "identifier", "text": "f_findnext", "parent": 509, "children": [], "start_point": {"row": 228, "column": 12}, "end_point": {"row": 228, "column": 22}}, {"id": 511, "type": "argument_list", "text": "(&dir, &fno)", "parent": 509, "children": [512, 514], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 34}}, {"id": 512, "type": "pointer_expression", "text": "&dir", "parent": 511, "children": [513], "start_point": {"row": 228, "column": 23}, "end_point": {"row": 228, "column": 27}}, {"id": 513, "type": "identifier", "text": "dir", "parent": 512, "children": [], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 27}}, {"id": 514, "type": "pointer_expression", "text": "&fno", "parent": 511, "children": [515], "start_point": {"row": 228, "column": 29}, "end_point": {"row": 228, "column": 33}}, {"id": 515, "type": "identifier", "text": "fno", "parent": 514, "children": [], "start_point": {"row": 228, "column": 30}, "end_point": {"row": 228, "column": 33}}, {"id": 516, "type": "else_clause", "text": "else\n {\n index = 0;\n break;\n }", "parent": 482, "children": [], "start_point": {"row": 230, "column": 4}, "end_point": {"row": 234, "column": 5}}, {"id": 517, "type": "assignment_expression", "text": "index = 0", "parent": 516, "children": [518, 519, 520], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 15}}, {"id": 518, "type": "identifier", "text": "index", "parent": 517, "children": [], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 11}}, {"id": 519, "type": "=", "text": "=", "parent": 517, "children": [], "start_point": {"row": 232, "column": 12}, "end_point": {"row": 232, "column": 13}}, {"id": 520, "type": "number_literal", "text": "0", "parent": 517, "children": [], "start_point": {"row": 232, "column": 14}, "end_point": {"row": 232, "column": 15}}, {"id": 521, "type": "break_statement", "text": "break;", "parent": 516, "children": [522], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 12}}, {"id": 522, "type": "break", "text": "break", "parent": 521, "children": [], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 11}}, {"id": 523, "type": "call_expression", "text": "f_closedir(&dir)", "parent": 419, "children": [524, 525], "start_point": {"row": 237, "column": 2}, "end_point": {"row": 237, "column": 18}}, {"id": 524, "type": "identifier", "text": "f_closedir", "parent": 523, "children": [], "start_point": {"row": 237, "column": 2}, "end_point": {"row": 237, "column": 12}}, {"id": 525, "type": "argument_list", "text": "(&dir)", "parent": 523, "children": [526], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 18}}, {"id": 526, "type": "pointer_expression", "text": "&dir", "parent": 525, "children": [527], "start_point": {"row": 237, "column": 13}, "end_point": {"row": 237, "column": 17}}, {"id": 527, "type": "identifier", "text": "dir", "parent": 526, "children": [], "start_point": {"row": 237, "column": 14}, "end_point": {"row": 237, "column": 17}}, {"id": 528, "type": "return_statement", "text": "return index;", "parent": 419, "children": [529], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 15}}, {"id": 529, "type": "identifier", "text": "index", "parent": 528, "children": [], "start_point": {"row": 239, "column": 9}, "end_point": {"row": 239, "column": 14}}, {"id": 530, "type": "function_definition", "text": "uint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)\n{\n while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }\n\n return 0;\n}", "parent": null, "children": [531, 532], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 263, "column": 1}}, {"id": 531, "type": "primitive_type", "text": "uint8_t", "parent": 530, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 7}}, {"id": 532, "type": "function_declarator", "text": "Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)", "parent": 530, "children": [533, 534], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 78}}, {"id": 533, "type": "identifier", "text": "Buffercmp", "parent": 532, "children": [], "start_point": {"row": 249, "column": 8}, "end_point": {"row": 249, "column": 17}}, {"id": 534, "type": "parameter_list", "text": "(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)", "parent": 532, "children": [535, 540, 545], "start_point": {"row": 249, "column": 17}, "end_point": {"row": 249, "column": 78}}, {"id": 535, "type": "parameter_declaration", "text": "uint8_t* pBuffer1", "parent": 534, "children": [536, 537], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 35}}, {"id": 536, "type": "primitive_type", "text": "uint8_t", "parent": 535, "children": [], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 25}}, {"id": 537, "type": "pointer_declarator", "text": "* pBuffer1", "parent": 535, "children": [538, 539], "start_point": {"row": 249, "column": 25}, "end_point": {"row": 249, "column": 35}}, {"id": 538, "type": "*", "text": "*", "parent": 537, "children": [], "start_point": {"row": 249, "column": 25}, "end_point": {"row": 249, "column": 26}}, {"id": 539, "type": "identifier", "text": "pBuffer1", "parent": 537, "children": [], "start_point": {"row": 249, "column": 27}, "end_point": {"row": 249, "column": 35}}, {"id": 540, "type": "parameter_declaration", "text": "uint8_t* pBuffer2", "parent": 534, "children": [541, 542], "start_point": {"row": 249, "column": 37}, "end_point": {"row": 249, "column": 54}}, {"id": 541, "type": "primitive_type", "text": "uint8_t", "parent": 540, "children": [], "start_point": {"row": 249, "column": 37}, "end_point": {"row": 249, "column": 44}}, {"id": 542, "type": "pointer_declarator", "text": "* pBuffer2", "parent": 540, "children": [543, 544], "start_point": {"row": 249, "column": 44}, "end_point": {"row": 249, "column": 54}}, {"id": 543, "type": "*", "text": "*", "parent": 542, "children": [], "start_point": {"row": 249, "column": 44}, "end_point": {"row": 249, "column": 45}}, {"id": 544, "type": "identifier", "text": "pBuffer2", "parent": 542, "children": [], "start_point": {"row": 249, "column": 46}, "end_point": {"row": 249, "column": 54}}, {"id": 545, "type": "parameter_declaration", "text": "uint16_t BufferLength", "parent": 534, "children": [546, 547], "start_point": {"row": 249, "column": 56}, "end_point": {"row": 249, "column": 77}}, {"id": 546, "type": "primitive_type", "text": "uint16_t", "parent": 545, "children": [], "start_point": {"row": 249, "column": 56}, "end_point": {"row": 249, "column": 64}}, {"id": 547, "type": "identifier", "text": "BufferLength", "parent": 545, "children": [], "start_point": {"row": 249, "column": 65}, "end_point": {"row": 249, "column": 77}}, {"id": 548, "type": "while_statement", "text": "while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }", "parent": 530, "children": [549], "start_point": {"row": 251, "column": 2}, "end_point": {"row": 260, "column": 3}}, {"id": 549, "type": "parenthesized_expression", "text": "(BufferLength--)", "parent": 548, "children": [550], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 24}}, {"id": 550, "type": "update_expression", "text": "BufferLength--", "parent": 549, "children": [551, 552], "start_point": {"row": 251, "column": 9}, "end_point": {"row": 251, "column": 23}}, {"id": 551, "type": "identifier", "text": "BufferLength", "parent": 550, "children": [], "start_point": {"row": 251, "column": 9}, "end_point": {"row": 251, "column": 21}}, {"id": 552, "type": "--", "text": "--", "parent": 550, "children": [], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 23}}, {"id": 553, "type": "if_statement", "text": "if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }", "parent": 548, "children": [554], "start_point": {"row": 253, "column": 4}, "end_point": {"row": 256, "column": 5}}, {"id": 554, "type": "parenthesized_expression", "text": "(*pBuffer1 != *pBuffer2)", "parent": 553, "children": [555], "start_point": {"row": 253, "column": 7}, "end_point": {"row": 253, "column": 31}}, {"id": 555, "type": "binary_expression", "text": "*pBuffer1 != *pBuffer2", "parent": 554, "children": [556, 559, 560], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 30}}, {"id": 556, "type": "pointer_expression", "text": "*pBuffer1", "parent": 555, "children": [557, 558], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 17}}, {"id": 557, "type": "*", "text": "*", "parent": 556, "children": [], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 9}}, {"id": 558, "type": "identifier", "text": "pBuffer1", "parent": 556, "children": [], "start_point": {"row": 253, "column": 9}, "end_point": {"row": 253, "column": 17}}, {"id": 559, "type": "!=", "text": "!=", "parent": 555, "children": [], "start_point": {"row": 253, "column": 18}, "end_point": {"row": 253, "column": 20}}, {"id": 560, "type": "pointer_expression", "text": "*pBuffer2", "parent": 555, "children": [561, 562], "start_point": {"row": 253, "column": 21}, "end_point": {"row": 253, "column": 30}}, {"id": 561, "type": "*", "text": "*", "parent": 560, "children": [], "start_point": {"row": 253, "column": 21}, "end_point": {"row": 253, "column": 22}}, {"id": 562, "type": "identifier", "text": "pBuffer2", "parent": 560, "children": [], "start_point": {"row": 253, "column": 22}, "end_point": {"row": 253, "column": 30}}, {"id": 563, "type": "return_statement", "text": "return 1;", "parent": 553, "children": [564], "start_point": {"row": 255, "column": 6}, "end_point": {"row": 255, "column": 15}}, {"id": 564, "type": "number_literal", "text": "1", "parent": 563, "children": [], "start_point": {"row": 255, "column": 13}, "end_point": {"row": 255, "column": 14}}, {"id": 565, "type": "update_expression", "text": "pBuffer1++", "parent": 548, "children": [566, 567], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 14}}, {"id": 566, "type": "identifier", "text": "pBuffer1", "parent": 565, "children": [], "start_point": {"row": 258, "column": 4}, "end_point": {"row": 258, "column": 12}}, {"id": 567, "type": "++", "text": "++", "parent": 565, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 14}}, {"id": 568, "type": "update_expression", "text": "pBuffer2++", "parent": 548, "children": [569, 570], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 14}}, {"id": 569, "type": "identifier", "text": "pBuffer2", "parent": 568, "children": [], "start_point": {"row": 259, "column": 4}, "end_point": {"row": 259, "column": 12}}, {"id": 570, "type": "++", "text": "++", "parent": 568, "children": [], "start_point": {"row": 259, "column": 12}, "end_point": {"row": 259, "column": 14}}, {"id": 571, "type": "return_statement", "text": "return 0;", "parent": 530, "children": [572], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 11}}, {"id": 572, "type": "number_literal", "text": "0", "parent": 571, "children": [], "start_point": {"row": 262, "column": 9}, "end_point": {"row": 262, "column": 10}}]}, "node_categories": {"declarations": {"functions": [36, 38, 64, 66, 333, 335, 419, 421, 530, 532], "variables": [3, 8, 11, 14, 17, 20, 30, 41, 69, 74, 79, 93, 96, 338, 343, 424, 429, 435, 438, 535, 540, 545], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [43, 47, 48, 51, 53, 100, 101, 102, 105, 107, 117, 120, 121, 122, 125, 129, 134, 139, 144, 151, 153, 158, 159, 166, 167, 168, 170, 175, 176, 185, 187, 192, 193, 200, 201, 202, 204, 209, 210, 216, 219, 221, 224, 226, 235, 236, 239, 251, 259, 262, 266, 271, 278, 282, 286, 288, 295, 298, 300, 308, 311, 317, 321, 322, 326, 329, 349, 350, 353, 355, 365, 366, 369, 371, 380, 383, 387, 392, 395, 396, 397, 400, 406, 445, 446, 447, 450, 452, 466, 469, 471, 476, 477, 478, 483, 484, 489, 490, 494, 497, 499, 503, 509, 512, 514, 523, 526, 549, 550, 554, 555, 556, 560, 565, 568], "assignments": [141, 148, 163, 182, 197, 243, 248, 255, 274, 285, 314, 463, 506, 517], "loops": [116, 138, 273, 475, 548], "conditionals": [6, 9, 10, 12, 13, 15, 16, 18, 19, 24, 33, 39, 44, 46, 49, 52, 55, 67, 73, 78, 82, 86, 90, 95, 97, 98, 99, 103, 106, 109, 112, 113, 115, 119, 123, 126, 127, 131, 135, 137, 142, 147, 149, 160, 164, 177, 183, 194, 198, 211, 217, 220, 222, 225, 228, 231, 232, 234, 237, 244, 246, 249, 256, 258, 260, 263, 264, 265, 268, 272, 275, 279, 281, 283, 290, 296, 302, 307, 309, 312, 315, 320, 323, 327, 330, 336, 342, 347, 348, 351, 354, 357, 364, 367, 370, 373, 376, 377, 381, 384, 385, 389, 393, 394, 398, 405, 411, 422, 428, 434, 436, 437, 441, 444, 448, 451, 454, 460, 464, 467, 470, 472, 473, 479, 480, 482, 485, 487, 488, 491, 493, 495, 498, 500, 504, 505, 507, 510, 513, 515, 518, 524, 527, 529, 533, 539, 544, 547, 551, 553, 558, 562, 566, 569], "returns": [60, 62, 331, 362, 378, 415, 417, 461, 528, 563, 571], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 7, 25, 28, 29, 35, 58, 59, 61, 63, 84, 88, 92, 118, 128, 140, 162, 179, 181, 196, 213, 215, 240, 242, 252, 254, 277, 325, 332, 360, 361, 363, 379, 386, 412, 414, 416, 418, 443, 457, 458, 462, 474, 481, 502, 520, 564, 572], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t Storage_Init(void)\n{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ********"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "Storage_Init(void)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName)\n{\n uint32_t index = 0, size = "}, {"node_id": 66, "universal_type": "function", "name": "unknown", "text_snippet": "Storage_OpenReadFile(uint8_t *Address, const char* BmpName)"}, {"node_id": 333, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)\n{\n if(f_mount(&fs, (TCHAR "}, {"node_id": 335, "universal_type": "function", "name": "unknown", "text_snippet": "Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)"}, {"node_id": 419, "universal_type": "function", "name": "unknown", "text_snippet": "uint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])\n{\n FRESULT res;\n uin"}, {"node_id": 421, "universal_type": "function", "name": "unknown", "text_snippet": "Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])"}, {"node_id": 530, "universal_type": "function", "name": "unknown", "text_snippet": "uint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)\n{\n while (BufferLeng"}, {"node_id": 532, "universal_type": "function", "name": "unknown", "text_snippet": "Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"fatfs_storage.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/**\n ******************************************************************************\n * @file Display/LTDC_PicturesFromSDCard/Src/fatfs_storage.c\n * @author MCD Application Team\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n ******************************************************************************\n * @attention\n *\n * Copyright (c) 2017 STMicroelectronics.\n * All rights reserved.\n *\n * This software is licensed under terms that can be found in the LICENSE file\n * in the root directory of this software component.\n * If no LICENSE file comes with this software, it is provided AS-IS.\n *\n ******************************************************************************\n */\n\n/* Includes ------------------------------------------------------------------*/\n#include \"fatfs_storage.h\"\n\n/** @addtogroup STM32756G_EVAL_FAT_FS\n * @{\n */\n\n/** @defgroup FATFS_STORAGE\n * @brief This file includes the Storage (FatFs) driver for the STM32756G-EVAL\n * application.\n * @{\n */\n\n/** @defgroup FATFS_STORAGE_Private_Types\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Defines\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Macros\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Variables\n * @{\n */\nuint8_t sector[512];\nFATFS fs;\nFILINFO fno;\nDIR dir;\nFIL F;\nconst uint8_t SlidesCheck[2] =\n {\n 0x42, 0x4D\n };\nuint32_t BytesRead = 0;\n\n/**\n * @}\n */\n\n\n/** @defgroup FATFS_STORAGE_Private_FunctionPrototypes\n * @{\n */\n/**\n * @}\n */\n\n/** @defgroup FATFS_STORAGE_Private_Functions\n * @{\n */\n\n/**\n * @brief SDCARD Initialization for FatFs\n * @param None\n * @retval err : Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_Init(void)\n{\n BSP_SD_Init();\n \n /****************** FatFs Volume Access ******************************/\n if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }\n return 0;\n}\n\n/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_OpenReadFile(uint8_t *Address, const char* BmpName)\n{\n uint32_t index = 0, size = 0, i1 = 0;\n uint32_t BmpAddress;\n FIL F1;\n\n if (f_open(&F1, (TCHAR const*)BmpName, FA_READ) != FR_OK)\n {\n while(1)\n {\n } \n }\n if (f_read (&F1, sector, 30, (UINT *)&BytesRead) != FR_OK)\n {\n while(1)\n {\n } \n }\n \n BmpAddress = (uint32_t)sector;\n\n /* Read bitmap size */\n size = *(uint16_t *) (BmpAddress + 2);\n size |= (*(uint16_t *) (BmpAddress + 4)) << 16; \n \n /* Get bitmap data address offset */\n index = *(uint16_t *) (BmpAddress + 10);\n index |= (*(uint16_t *) (BmpAddress + 12)) << 16; \n \n f_close (&F1);\n \n f_open (&F1, (TCHAR const*)BmpName, FA_READ);\n\n do\n {\n if (size < 256*2)\n {\n i1 = size;\n }\n else\n {\n i1 = 256*2;\n }\n size -= i1;\n f_read (&F1, sector, i1, (UINT *)&BytesRead);\n\n for (index = 0; index < i1; index++)\n {\n *(__IO uint8_t*) (Address) = *(__IO uint8_t *)BmpAddress;\n \n BmpAddress++; \n Address++;\n } \n \n BmpAddress = (uint32_t)sector;\n }\n while (size > 0);\n\n f_close (&F1);\n \n return 1;\n}\n\n/**\n * @brief Open a file and copy its content to a buffer\n * @param DirName: the Directory name to open\n * @param FileName: the file name to open\n * @param BufferAddress: A pointer to a buffer to copy the file to\n * @param FileLen: the File lenght\n * @retval err: Error status (0=> success, 1=> fail)\n */\nuint32_t Storage_CheckBitmapFile(const char* BmpName, uint32_t *FileLen)\n{\n if(f_mount(&fs, (TCHAR const*)\"\",0))\n {\n return 1;\n }\n if(f_open (&F, (TCHAR const*)BmpName, FA_READ))\n {\n return 2;\n }\n \n f_read (&F, sector, 6, (UINT *)&BytesRead);\n \n if (Buffercmp((uint8_t *)SlidesCheck, (uint8_t *) sector, 2) != 0)\n {\n return 3;\n }\n return 0;\n}\n\n/**\n * @brief List up to 25 file on the root directory with extension .BMP\n * @param None\n * @retval The number of the found files\n */\nuint32_t Storage_GetDirectoryBitmapFiles (const char* DirName, char* Files[])\n{\n FRESULT res;\n uint32_t index = 0;\n \n /* Open filesystem */\n if(f_mount(&fs, (TCHAR const*)\"\",0) != FR_OK)\n {\n return 0;\n }\n \n /* Start to search for wave files */\n res = f_findfirst(&dir, &fno, DirName, \"*.bmp\");\n\n /* Repeat while an item is found */\n while (fno.fname[0])\n {\n if(res == FR_OK)\n {\n if(index < MAX_BMP_FILES)\n {\n sprintf (Files[index++], \"%s\", fno.fname);\n }\n /* Search for next item */\n res = f_findnext(&dir, &fno);\n }\n else\n {\n index = 0;\n break;\n }\n }\n\n f_closedir(&dir);\n\n return index; \n}\n\n/**\n * @brief Compares two buffers.\n * @param pBuffer1, pBuffer2: buffers to be compared.\n * @param BufferLength: buffer's length.\n * @retval 0: pBuffer1 identical to pBuffer2\n * 1: pBuffer1 differs from pBuffer2\n */\nuint8_t Buffercmp(uint8_t* pBuffer1, uint8_t* pBuffer2, uint16_t BufferLength)\n{\n while (BufferLength--)\n {\n if (*pBuffer1 != *pBuffer2)\n {\n return 1;\n }\n\n pBuffer1++;\n pBuffer2++;\n }\n\n return 0;\n}\n\n/**\n * @}\n */\n\n/**\n * @}\n */\n\n/**\n * @}\n */\n\n"}
80,746
c
// // FLEXColor.h // FLEX // // Created by <NAME> on 6/18/19. // Copyright © 2019 Flipboard. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface FLEXColor : NSObject // Background colors, from intense to less intense + (UIColor *)primaryBackgroundColor; + (UIColor *)primaryBackgroundColorWithAlpha:(CGFloat)alpha; + (UIColor *)secondaryBackgroundColor; + (UIColor *)secondaryBackgroundColorWithAlpha:(CGFloat)alpha; + (UIColor *)tertiaryBackgroundColor; + (UIColor *)tertiaryBackgroundColorWithAlpha:(CGFloat)alpha; // Text colors + (UIColor *)primaryTextColor; + (UIColor *)deemphasizedTextColor; // UI element colors + (UIColor *)scrollViewBackgroundColor; + (UIColor *)iconColor; + (UIColor *)borderColor; + (UIColor *)toolbarItemHighlightedColor; + (UIColor *)toolbarItemSelectedColor; @end NS_ASSUME_NONNULL_END
29.59
29
(translation_unit) "//\n// FLEXColor.h\n// FLEX\n//\n// Created by <NAME> on 6/18/19.\n// Copyright © 2019 Flipboard. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FLEXColor : NSObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;\n+ (UIColor *)primaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n+ (UIColor *)secondaryBackgroundColor;\n+ (UIColor *)secondaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n+ (UIColor *)tertiaryBackgroundColor;\n+ (UIColor *)tertiaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n// Text colors\n+ (UIColor *)primaryTextColor;\n+ (UIColor *)deemphasizedTextColor;\n\n// UI element colors\n+ (UIColor *)scrollViewBackgroundColor;\n+ (UIColor *)iconColor;\n+ (UIColor *)borderColor;\n+ (UIColor *)toolbarItemHighlightedColor;\n+ (UIColor *)toolbarItemSelectedColor;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// FLEXColor.h" (comment) "// FLEX" (comment) "//" (comment) "// Created by <NAME> on 6/18/19." (comment) "// Copyright © 2019 Flipboard. 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 <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "LEXColor : NSObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;\n" (statement_identifier) "LEXColor " (:) " " (expression_statement) "SObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;\n" (binary_expression) "SObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;" (identifier) "SObject\n" (comment) "/ Background colors, from intense to less intense\n" (+) " " (cast_expression) "UIColor *)primaryBackgroundColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "p" (identifier) "rimaryBackgroundColor;" (;) "\n" (expression_statement) " (UIColor *)primaryBackgroundColorWithAlpha:(CGFloat)alpha;\n" (unary_expression) " (UIColor *)primaryBackgroundColorWithAlpha:" (+) " " (cast_expression) "UIColor *)primaryBackgroundColorWithAlpha:" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "p" (identifier) "rimaryBackgroundColorWithAlpha:" (ERROR) "(CGFloat)alpha;" (:) "(" (() "C" (identifier) "GFloat)" ()) "a" (identifier) "lpha;" (;) "\n" (expression_statement) " (UIColor *)secondaryBackgroundColor;\n" (unary_expression) " (UIColor *)secondaryBackgroundColor;" (+) " " (cast_expression) "UIColor *)secondaryBackgroundColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "econdaryBackgroundColor;" (;) "\n" (expression_statement) " (UIColor *)secondaryBackgroundColorWithAlpha:(CGFloat)alpha;\n" (unary_expression) " (UIColor *)secondaryBackgroundColorWithAlpha:" (+) " " (cast_expression) "UIColor *)secondaryBackgroundColorWithAlpha:" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "econdaryBackgroundColorWithAlpha:" (ERROR) "(CGFloat)alpha;" (:) "(" (() "C" (identifier) "GFloat)" ()) "a" (identifier) "lpha;" (;) "\n" (expression_statement) " (UIColor *)tertiaryBackgroundColor;\n" (unary_expression) " (UIColor *)tertiaryBackgroundColor;" (+) " " (cast_expression) "UIColor *)tertiaryBackgroundColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "t" (identifier) "ertiaryBackgroundColor;" (;) "\n" (expression_statement) " (UIColor *)tertiaryBackgroundColorWithAlpha:(CGFloat)alpha;\n" (unary_expression) " (UIColor *)tertiaryBackgroundColorWithAlpha:" (+) " " (cast_expression) "UIColor *)tertiaryBackgroundColorWithAlpha:" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "t" (identifier) "ertiaryBackgroundColorWithAlpha:" (ERROR) "(CGFloat)alpha;" (:) "(" (() "C" (identifier) "GFloat)" ()) "a" (identifier) "lpha;" (;) "\n" (comment) "/ Text colors\n" (expression_statement) " (UIColor *)primaryTextColor;\n" (unary_expression) " (UIColor *)primaryTextColor;" (+) " " (cast_expression) "UIColor *)primaryTextColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "p" (identifier) "rimaryTextColor;" (;) "\n" (expression_statement) " (UIColor *)deemphasizedTextColor;\n" (unary_expression) " (UIColor *)deemphasizedTextColor;" (+) " " (cast_expression) "UIColor *)deemphasizedTextColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "d" (identifier) "eemphasizedTextColor;" (;) "\n" (comment) "/ UI element colors\n" (expression_statement) " (UIColor *)scrollViewBackgroundColor;\n" (unary_expression) " (UIColor *)scrollViewBackgroundColor;" (+) " " (cast_expression) "UIColor *)scrollViewBackgroundColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "crollViewBackgroundColor;" (;) "\n" (expression_statement) " (UIColor *)iconColor;\n" (unary_expression) " (UIColor *)iconColor;" (+) " " (cast_expression) "UIColor *)iconColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "i" (identifier) "conColor;" (;) "\n" (expression_statement) " (UIColor *)borderColor;\n" (unary_expression) " (UIColor *)borderColor;" (+) " " (cast_expression) "UIColor *)borderColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "b" (identifier) "orderColor;" (;) "\n" (expression_statement) " (UIColor *)toolbarItemHighlightedColor;\n" (unary_expression) " (UIColor *)toolbarItemHighlightedColor;" (+) " " (cast_expression) "UIColor *)toolbarItemHighlightedColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "t" (identifier) "oolbarItemHighlightedColor;" (;) "\n" (expression_statement) " (UIColor *)toolbarItemSelectedColor;\n" (unary_expression) " (UIColor *)toolbarItemSelectedColor;" (+) " " (cast_expression) "UIColor *)toolbarItemSelectedColor;" (() "U" (type_descriptor) "IColor *)" (type_identifier) "IColor " (abstract_pointer_declarator) ")" (*) ")" ()) "t" (identifier) "oolbarItemSelectedColor;" (;) "\n" (ERROR) "e" (ERROR) "e" (declaration) "nd\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
207
7
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 29.59, "nodes": 104, "errors": 0, "source_hash": "bc753d8c7f3c5e933946e5b48e115692d7e83e90a4fc3006e9f69d829e1dccbe", "categorized_nodes": 68}, "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 <UIKit/UIKit.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": "UIKit/UIKit.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": 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": "labeled_statement", "text": "LEXColor : NSObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;\n", "parent": null, "children": [10], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 16, "column": 36}}, {"id": 10, "type": "statement_identifier", "text": "LEXColor ", "parent": 9, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 11, "type": "binary_expression", "text": "SObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;", "parent": 9, "children": [12, 13, 14], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 16, "column": 35}}, {"id": 12, "type": "identifier", "text": "SObject\n", "parent": 11, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 31}}, {"id": 13, "type": "+", "text": " ", "parent": 11, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 14, "type": "cast_expression", "text": "UIColor *)primaryBackgroundColor;", "parent": 11, "children": [15, 17], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 35}}, {"id": 15, "type": "type_descriptor", "text": "IColor *)", "parent": 14, "children": [16], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 12}}, {"id": 16, "type": "type_identifier", "text": "IColor ", "parent": 15, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 10}}, {"id": 17, "type": "identifier", "text": "rimaryBackgroundColor;", "parent": 14, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 35}}, {"id": 18, "type": "unary_expression", "text": " (UIColor *)primaryBackgroundColorWithAlpha:", "parent": null, "children": [19, 20], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 44}}, {"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": "UIColor *)primaryBackgroundColorWithAlpha:", "parent": 18, "children": [21, 23], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 44}}, {"id": 21, "type": "type_descriptor", "text": "IColor *)", "parent": 20, "children": [22], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 12}}, {"id": 22, "type": "type_identifier", "text": "IColor ", "parent": 21, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 10}}, {"id": 23, "type": "identifier", "text": "rimaryBackgroundColorWithAlpha:", "parent": 20, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 44}}, {"id": 24, "type": "ERROR", "text": "(CGFloat)alpha;", "parent": null, "children": [25, 26], "start_point": {"row": 17, "column": 44}, "end_point": {"row": 17, "column": 59}}, {"id": 25, "type": "identifier", "text": "GFloat)", "parent": 24, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 53}}, {"id": 26, "type": "identifier", "text": "lpha;", "parent": 24, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 59}}, {"id": 27, "type": "unary_expression", "text": " (UIColor *)secondaryBackgroundColor;", "parent": null, "children": [28, 29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 37}}, {"id": 28, "type": "+", "text": " ", "parent": 27, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 29, "type": "cast_expression", "text": "UIColor *)secondaryBackgroundColor;", "parent": 27, "children": [30, 32], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 37}}, {"id": 30, "type": "type_descriptor", "text": "IColor *)", "parent": 29, "children": [31], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 12}}, {"id": 31, "type": "type_identifier", "text": "IColor ", "parent": 30, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 10}}, {"id": 32, "type": "identifier", "text": "econdaryBackgroundColor;", "parent": 29, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 37}}, {"id": 33, "type": "unary_expression", "text": " (UIColor *)secondaryBackgroundColorWithAlpha:", "parent": null, "children": [34, 35], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 46}}, {"id": 34, "type": "+", "text": " ", "parent": 33, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 35, "type": "cast_expression", "text": "UIColor *)secondaryBackgroundColorWithAlpha:", "parent": 33, "children": [36, 38], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 46}}, {"id": 36, "type": "type_descriptor", "text": "IColor *)", "parent": 35, "children": [37], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 12}}, {"id": 37, "type": "type_identifier", "text": "IColor ", "parent": 36, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 10}}, {"id": 38, "type": "identifier", "text": "econdaryBackgroundColorWithAlpha:", "parent": 35, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 46}}, {"id": 39, "type": "ERROR", "text": "(CGFloat)alpha;", "parent": null, "children": [40, 41], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 61}}, {"id": 40, "type": "identifier", "text": "GFloat)", "parent": 39, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 55}}, {"id": 41, "type": "identifier", "text": "lpha;", "parent": 39, "children": [], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 61}}, {"id": 42, "type": "unary_expression", "text": " (UIColor *)tertiaryBackgroundColor;", "parent": null, "children": [43, 44], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 36}}, {"id": 43, "type": "+", "text": " ", "parent": 42, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 44, "type": "cast_expression", "text": "UIColor *)tertiaryBackgroundColor;", "parent": 42, "children": [45, 47], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 36}}, {"id": 45, "type": "type_descriptor", "text": "IColor *)", "parent": 44, "children": [46], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 12}}, {"id": 46, "type": "type_identifier", "text": "IColor ", "parent": 45, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 10}}, {"id": 47, "type": "identifier", "text": "ertiaryBackgroundColor;", "parent": 44, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 36}}, {"id": 48, "type": "unary_expression", "text": " (UIColor *)tertiaryBackgroundColorWithAlpha:", "parent": null, "children": [49, 50], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 45}}, {"id": 49, "type": "+", "text": " ", "parent": 48, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 50, "type": "cast_expression", "text": "UIColor *)tertiaryBackgroundColorWithAlpha:", "parent": 48, "children": [51, 53], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 45}}, {"id": 51, "type": "type_descriptor", "text": "IColor *)", "parent": 50, "children": [52], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 12}}, {"id": 52, "type": "type_identifier", "text": "IColor ", "parent": 51, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 10}}, {"id": 53, "type": "identifier", "text": "ertiaryBackgroundColorWithAlpha:", "parent": 50, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 45}}, {"id": 54, "type": "ERROR", "text": "(CGFloat)alpha;", "parent": null, "children": [55, 56], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 60}}, {"id": 55, "type": "identifier", "text": "GFloat)", "parent": 54, "children": [], "start_point": {"row": 23, "column": 47}, "end_point": {"row": 23, "column": 54}}, {"id": 56, "type": "identifier", "text": "lpha;", "parent": 54, "children": [], "start_point": {"row": 23, "column": 55}, "end_point": {"row": 23, "column": 60}}, {"id": 57, "type": "unary_expression", "text": " (UIColor *)primaryTextColor;", "parent": null, "children": [58, 59], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 29}}, {"id": 58, "type": "+", "text": " ", "parent": 57, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 59, "type": "cast_expression", "text": "UIColor *)primaryTextColor;", "parent": 57, "children": [60, 62], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 29}}, {"id": 60, "type": "type_descriptor", "text": "IColor *)", "parent": 59, "children": [61], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 12}}, {"id": 61, "type": "type_identifier", "text": "IColor ", "parent": 60, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 10}}, {"id": 62, "type": "identifier", "text": "rimaryTextColor;", "parent": 59, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 29}}, {"id": 63, "type": "unary_expression", "text": " (UIColor *)deemphasizedTextColor;", "parent": null, "children": [64, 65], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 34}}, {"id": 64, "type": "+", "text": " ", "parent": 63, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 65, "type": "cast_expression", "text": "UIColor *)deemphasizedTextColor;", "parent": 63, "children": [66, 68], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 34}}, {"id": 66, "type": "type_descriptor", "text": "IColor *)", "parent": 65, "children": [67], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 12}}, {"id": 67, "type": "type_identifier", "text": "IColor ", "parent": 66, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 10}}, {"id": 68, "type": "identifier", "text": "eemphasizedTextColor;", "parent": 65, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 34}}, {"id": 69, "type": "unary_expression", "text": " (UIColor *)scrollViewBackgroundColor;", "parent": null, "children": [70, 71], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 38}}, {"id": 70, "type": "+", "text": " ", "parent": 69, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 71, "type": "cast_expression", "text": "UIColor *)scrollViewBackgroundColor;", "parent": 69, "children": [72, 74], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 38}}, {"id": 72, "type": "type_descriptor", "text": "IColor *)", "parent": 71, "children": [73], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 12}}, {"id": 73, "type": "type_identifier", "text": "IColor ", "parent": 72, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 10}}, {"id": 74, "type": "identifier", "text": "crollViewBackgroundColor;", "parent": 71, "children": [], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 38}}, {"id": 75, "type": "unary_expression", "text": " (UIColor *)iconColor;", "parent": null, "children": [76, 77], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 22}}, {"id": 76, "type": "+", "text": " ", "parent": 75, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 77, "type": "cast_expression", "text": "UIColor *)iconColor;", "parent": 75, "children": [78, 80], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 22}}, {"id": 78, "type": "type_descriptor", "text": "IColor *)", "parent": 77, "children": [79], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 12}}, {"id": 79, "type": "type_identifier", "text": "IColor ", "parent": 78, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 10}}, {"id": 80, "type": "identifier", "text": "conColor;", "parent": 77, "children": [], "start_point": {"row": 31, "column": 13}, "end_point": {"row": 31, "column": 22}}, {"id": 81, "type": "unary_expression", "text": " (UIColor *)borderColor;", "parent": null, "children": [82, 83], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 24}}, {"id": 82, "type": "+", "text": " ", "parent": 81, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 83, "type": "cast_expression", "text": "UIColor *)borderColor;", "parent": 81, "children": [84, 86], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 24}}, {"id": 84, "type": "type_descriptor", "text": "IColor *)", "parent": 83, "children": [85], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 12}}, {"id": 85, "type": "type_identifier", "text": "IColor ", "parent": 84, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 10}}, {"id": 86, "type": "identifier", "text": "orderColor;", "parent": 83, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 24}}, {"id": 87, "type": "unary_expression", "text": " (UIColor *)toolbarItemHighlightedColor;", "parent": null, "children": [88, 89], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 40}}, {"id": 88, "type": "+", "text": " ", "parent": 87, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 89, "type": "cast_expression", "text": "UIColor *)toolbarItemHighlightedColor;", "parent": 87, "children": [90, 92], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 40}}, {"id": 90, "type": "type_descriptor", "text": "IColor *)", "parent": 89, "children": [91], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 12}}, {"id": 91, "type": "type_identifier", "text": "IColor ", "parent": 90, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 33, "column": 10}}, {"id": 92, "type": "identifier", "text": "oolbarItemHighlightedColor;", "parent": 89, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 40}}, {"id": 93, "type": "unary_expression", "text": " (UIColor *)toolbarItemSelectedColor;", "parent": null, "children": [94, 95], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 37}}, {"id": 94, "type": "+", "text": " ", "parent": 93, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 95, "type": "cast_expression", "text": "UIColor *)toolbarItemSelectedColor;", "parent": 93, "children": [96, 98], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 37}}, {"id": 96, "type": "type_descriptor", "text": "IColor *)", "parent": 95, "children": [97], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 12}}, {"id": 97, "type": "type_identifier", "text": "IColor ", "parent": 96, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 10}}, {"id": 98, "type": "identifier", "text": "oolbarItemSelectedColor;", "parent": 95, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 37}}, {"id": 99, "type": "ERROR", "text": "e", "parent": null, "children": [100], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 100, "type": "ERROR", "text": "e", "parent": 99, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 101, "type": "declaration", "text": "nd\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [102, 103], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 38, "column": 21}}, {"id": 102, "type": "type_identifier", "text": "nd\n", "parent": 101, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 4}}, {"id": 103, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 101, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [4, 101], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [11, 14, 18, 20, 27, 29, 33, 35, 42, 44, 48, 50, 57, 59, 63, 65, 69, 71, 75, 77, 81, 83, 87, 89, 93, 95], "assignments": [], "loops": [], "conditionals": [5, 8, 10, 12, 16, 17, 22, 23, 25, 26, 31, 32, 37, 38, 40, 41, 46, 47, 52, 53, 55, 56, 61, 62, 67, 68, 73, 74, 79, 80, 85, 86, 91, 92, 97, 98, 102, 103], "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// FLEXColor.h\n// FLEX\n//\n// Created by <NAME> on 6/18/19.\n// Copyright \u00a9 2019 Flipboard. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface FLEXColor : NSObject\n\n// Background colors, from intense to less intense\n+ (UIColor *)primaryBackgroundColor;\n+ (UIColor *)primaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n+ (UIColor *)secondaryBackgroundColor;\n+ (UIColor *)secondaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n+ (UIColor *)tertiaryBackgroundColor;\n+ (UIColor *)tertiaryBackgroundColorWithAlpha:(CGFloat)alpha;\n\n// Text colors\n+ (UIColor *)primaryTextColor;\n+ (UIColor *)deemphasizedTextColor;\n\n// UI element colors\n+ (UIColor *)scrollViewBackgroundColor;\n+ (UIColor *)iconColor;\n+ (UIColor *)borderColor;\n+ (UIColor *)toolbarItemHighlightedColor;\n+ (UIColor *)toolbarItemSelectedColor;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,747
c
/* Copyright 2018 JDCLOUD.COM 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. JCLOUD iotcloudgateway API API related to iotcloudgateway OpenAPI spec version: v1 Contact: NOTE: This class is auto generated by the jdcloud code generator program. */ #ifndef IotcloudgatewayExecutor_h #define IotcloudgatewayExecutor_h #import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h> /// 查询instance当前状态 @interface IotcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor -(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient; @end /// 查询instance绑定的ExposedDomain @interface IotcloudgatewayQueryInstanceExposeDomainExecutor : JDCloudExecutor -(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient; @end /// 查询iotcloudgateway实例详情 @interface IotcloudgatewayDescribeInstanceExecutor : JDCloudExecutor -(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient; @end /// 查询iotcloudgateway实例列表 @interface IotcloudgatewayDescribeInstancesExecutor : JDCloudExecutor -(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient; @end /// 下发设备控制指令 @interface IotcloudgatewayDeviceControlExecutor : JDCloudExecutor -(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient; @end #endif /* IotcloudgatewayExecutor_h */
41
41
(translation_unit) "/* Copyright 2018 JDCLOUD.COM\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp:#www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nJCLOUD iotcloudgateway API\nAPI related to iotcloudgateway\n\nOpenAPI spec version: v1\nContact: \n\nNOTE: This class is auto generated by the jdcloud code generator program.\n*/\n\n\n#ifndef IotcloudgatewayExecutor_h\n#define IotcloudgatewayExecutor_h\n#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n\n/// 查询instance当前状态\n@interface IotcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询instance绑定的ExposedDomain\n@interface IotcloudgatewayQueryInstanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudgateway实例详情\n@interface IotcloudgatewayDescribeInstanceExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudgateway实例列表\n@interface IotcloudgatewayDescribeInstancesExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 下发设备控制指令\n@interface IotcloudgatewayDeviceControlExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n" (comment) "/* Copyright 2018 JDCLOUD.COM\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp:#www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nJCLOUD iotcloudgateway API\nAPI related to iotcloudgateway\n\nOpenAPI spec version: v1\nContact: \n\nNOTE: This class is auto generated by the jdcloud code generator program.\n*/" (preproc_ifdef) "#ifndef IotcloudgatewayExecutor_h\n#define IotcloudgatewayExecutor_h\n#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n\n/// 查询instance当前状态\n@interface IotcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询instance绑定的ExposedDomain\n@interface IotcloudgatewayQueryInstanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudgateway实例详情\n@interface IotcloudgatewayDescribeInstanceExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudgateway实例列表\n@interface IotcloudgatewayDescribeInstancesExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 下发设备控制指令\n@interface IotcloudgatewayDeviceControlExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n" (#ifndef) "#ifndef" (identifier) "IotcloudgatewayExecutor_h" (preproc_def) "#define IotcloudgatewayExecutor_h\n" (#define) "#define" (identifier) "IotcloudgatewayExecutor_h" (preproc_call) "#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n" (preproc_directive) "#import" (preproc_arg) "<JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>" (comment) "/// 查询instance当前状态\n@interface " (ERROR) "otcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(Iotcloudgate" (ERROR) "o" (type_identifier) "tcloudgat" (identifier) "wayQueryInstanceStatusExecutor : JDCloudEx" (:) "c" (identifier) "tor\n\n-(id) init" (unary_expression) "thJDCloudClient:(Iotcloudga" (-) "t" (cast_expression) "hJDCloudClient:(Iotcloudga" (() "h" (type_descriptor) "JD" (type_identifier) "JD" ()) "C" (identifier) "oudClient:(Iotcloudga" (:) "t" (() "e" (expression_statement) "wayClient*)JDCloudClient;\n@end\n/// 查" (binary_expression) "wayClient*)JDCloudClient;\n@end\n/// " (identifier) "wayClient*)JDCloudCli" (*) "e" (ERROR) "n" ()) "n" (identifier) "t;\n@end\n/// " (;) "查" (ERROR) "i" (ERROR) "i" (declaration) "nstance绑定的ExposedDomain\n@interface IotcloudgatewayQueryI" (type_identifier) "nst" (comment) "nce绑定的ExposedDomain\n@interface Iotcloudga" (ERROR) "e" (ERROR) "e" (identifier) "wayQueryI" (;) "" (labeled_statement) "stanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudg" (statement_identifier) "stanceExposeDomainExecutor : JDCloudExecutor\n\n-(" (ERROR) "d) initWithJDCloudClient:(IotcloudgatewayClien" (:) "d" (binary_expression) " initWithJDCloudClient:(IotcloudgatewayClien" (identifier) " initWithJDClou" (-) "l" (cast_expression) "ient:(IotcloudgatewayClien" (() "i" (type_descriptor) "en" (type_identifier) "en" ()) "t" (identifier) "(IotcloudgatewayClien" (:) "t" (expression_statement) "*)JDCloudClient;\n@end\n/// 查询iotcloudg" (cast_expression) "*)JDCloudClient;\n@end\n/// 查询iotcloud" (() "*" (type_descriptor) ")JDCloudClient;\n@end\n/" (type_identifier) ")JDCloudClient;\n@end\n" (abstract_pointer_declarator) "/" (*) "/" ()) "/" (identifier) "/ 查询iotcloud" (;) "g" (ERROR) "t" (ERROR) "t" (declaration) "eway实例详情\n@interface IotcloudgatewayDescribeInstanceEx" (type_identifier) "ewa" (comment) "实例详情\n@interface IotcloudgatewayDescrib" (ERROR) "I" (ERROR) "I" (identifier) "nstanceEx" (;) "" (labeled_statement) "cutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 查询iotcloudgateway实例列表\n@" (statement_identifier) "cutor : JDCloudExecutor\n\n-(id) initWith" (ERROR) "DCloudClient:(IotcloudgatewayClient*)JDCloudCl" (:) "D" (binary_expression) "loudClient:(IotcloudgatewayClient*)JDCloudCl" (identifier) "loudClient:(Iot" (-) "o" (cast_expression) "udgatewayClient*)JDCloudCl" (() "u" (type_descriptor) "dg" (type_identifier) "dg" ()) "a" (identifier) "ewayClient*)JDCloudCl" (:) "i" (expression_statement) "ent;\n@end\n/// 查询iotcloudgateway实例列表\n@" (cast_expression) "ent;\n@end\n/// 查询iotcloudgateway实例列表\n" (() "e" (type_descriptor) "nt;\n@end\n/// 查询iotclo" (type_identifier) "nt;\n@end\n/// 查询iotcl" (abstract_pointer_declarator) "o" (*) "o" ()) "u" (identifier) "dgateway实例列表\n" (;) "@" (ERROR) "n" (ERROR) "n" (declaration) "terface IotcloudgatewayDescribeInstancesExecutor : JD" (type_identifier) "ter" (comment) "ace IotcloudgatewayDescribeInstancesEx" (ERROR) "c" (ERROR) "c" (identifier) "utor : JD" (;) "" (labeled_statement) "loudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// 下发设备控制指令\n@interface Iotcloudgateway" (statement_identifier) "loudExecutor\n\n-(id) initWithJDCloudClien" (ERROR) ":(IotcloudgatewayClient*)JDCloudClient;\n@end\n/" (:) ":" (binary_expression) "IotcloudgatewayClient*)JDCloudClient;\n@end\n/" (identifier) "Iotcloudgateway" (-) "i" (cast_expression) "ent*)JDCloudClient;\n@end\n/" (() "e" (type_descriptor) "nt" (type_identifier) "nt" ()) "*" (identifier) "JDCloudClient;\n@end\n/" (:) "/" (expression_statement) "/ 下发设备控制指令\n@interface Iotcloudgateway" (cast_expression) "/ 下发设备控制指令\n@interface Iotcloudgatewa" (() "/" (type_descriptor) " 下发设备控制指令\n@interface " (type_identifier) " 下发设备控制指令\n@interface" (abstract_pointer_declarator) " " (*) " " ()) "I" (identifier) "otcloudgatewa" (;) "y" (ERROR) "e" (ERROR) "e" (declaration) "viceControlExecutor : JDCloudExecutor\n\n-(id)" (type_identifier) "vic" (comment) "ControlExecutor : JDCloudExec" (ERROR) "t" (ERROR) "t" (identifier) "or\n\n-(id)" (;) "" (labeled_statement) "initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n" (statement_identifier) "initWithJDCloudClient:(Iotcloudgatew" (ERROR) "yClient*)JDCloudClient;\n@end\n#endif /* Iotclou" (:) "y" (binary_expression) "lient*)JDCloudClient;\n@end\n#endif /* Iotclou" (identifier) "lient*)JDCloudC" (-) "e" (cast_expression) "nt;\n@end\n#endif /* Iotclou" (() "n" (type_descriptor) "t;" (type_identifier) "t;" ()) "\n" (identifier) "end\n#endif /* Iotclou" (:) "d" (expression_statement) "gatewayExecutor_h */\n" (cast_expression) "gatewayExecutor_h */\n" (() "g" (type_descriptor) "atewayExecutor_h */\n" (type_identifier) "atewayExecutor_h */\n" (abstract_pointer_declarator) "" (*) "" ()) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (type_identifier) "" (;) "" (#endif) "" (comment) ""
174
25
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 41.0, "nodes": 121, "errors": 0, "source_hash": "ea3b699c344edffc6ad85d7ba931f883a412eb61d918b8e9e96316d55ce51a05", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IotcloudgatewayExecutor_h\n#define IotcloudgatewayExecutor_h\n#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n\n/// \u67e5\u8be2instance\u5f53\u524d\u72b6\u6001\n@interface IotcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2instance\u7ed1\u5b9a\u7684ExposedDomain\n@interface IotcloudgatewayQueryInstanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u8be6\u60c5\n@interface IotcloudgatewayDescribeInstanceExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u5217\u8868\n@interface IotcloudgatewayDescribeInstancesExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface IotcloudgatewayDeviceControlExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n", "parent": null, "children": [1, 2, 3, 6, 9, 25, 27, 32, 48, 50, 55, 71, 73, 78, 94, 96, 101, 117, 119, 120], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 53, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 2, "type": "identifier", "text": "IotcloudgatewayExecutor_h", "parent": 0, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define IotcloudgatewayExecutor_h\n", "parent": 0, "children": [4, 5], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 5, "type": "identifier", "text": "IotcloudgatewayExecutor_h", "parent": 3, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 33}}, {"id": 6, "type": "preproc_call", "text": "#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#import", "parent": 6, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "<JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>", "parent": 6, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 61}}, {"id": 9, "type": "ERROR", "text": "otcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(Iotcloudgate", "parent": 0, "children": [10, 11, 12, 13, 14], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 31, "column": 29}}, {"id": 10, "type": "ERROR", "text": "o", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 11, "type": "type_identifier", "text": "tcloudgat", "parent": 9, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 12, "type": "identifier", "text": "wayQueryInstanceStatusExecutor : JDCloudEx", "parent": 9, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 53}}, {"id": 13, "type": "identifier", "text": "tor\n\n-(id) init", "parent": 9, "children": [], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 71}}, {"id": 14, "type": "unary_expression", "text": "thJDCloudClient:(Iotcloudga", "parent": 9, "children": [15, 16], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 27}}, {"id": 15, "type": "-", "text": "t", "parent": 14, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "hJDCloudClient:(Iotcloudga", "parent": 14, "children": [17, 19], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 27}}, {"id": 17, "type": "type_descriptor", "text": "JD", "parent": 16, "children": [18], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 4}}, {"id": 18, "type": "type_identifier", "text": "JD", "parent": 17, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 4}}, {"id": 19, "type": "identifier", "text": "oudClient:(Iotcloudga", "parent": 16, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 27}}, {"id": 20, "type": "binary_expression", "text": "wayClient*)JDCloudClient;\n@end\n/// ", "parent": 0, "children": [21, 22, 23, 24], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 65}}, {"id": 21, "type": "identifier", "text": "wayClient*)JDCloudCli", "parent": 20, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 50}}, {"id": 22, "type": "*", "text": "e", "parent": 20, "children": [], "start_point": {"row": 31, "column": 50}, "end_point": {"row": 31, "column": 51}}, {"id": 23, "type": "ERROR", "text": "n", "parent": 20, "children": [], "start_point": {"row": 31, "column": 51}, "end_point": {"row": 31, "column": 52}}, {"id": 24, "type": "identifier", "text": "t;\n@end\n/// ", "parent": 20, "children": [], "start_point": {"row": 31, "column": 52}, "end_point": {"row": 31, "column": 65}}, {"id": 25, "type": "ERROR", "text": "i", "parent": 0, "children": [26], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 26, "type": "ERROR", "text": "i", "parent": 25, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 27, "type": "declaration", "text": "nstance\u7ed1\u5b9a\u7684ExposedDomain\n@interface IotcloudgatewayQueryI", "parent": 0, "children": [28, 29, 31], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 34, "column": 10}}, {"id": 28, "type": "type_identifier", "text": "nst", "parent": 27, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 4}}, {"id": 29, "type": "ERROR", "text": "e", "parent": 27, "children": [30], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 30, "type": "ERROR", "text": "e", "parent": 29, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 31, "type": "identifier", "text": "wayQueryI", "parent": 27, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 10}}, {"id": 32, "type": "labeled_statement", "text": "stanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudg", "parent": 0, "children": [33, 34], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 36, "column": 66}}, {"id": 33, "type": "statement_identifier", "text": "stanceExposeDomainExecutor : JDCloudExecutor\n\n-(", "parent": 32, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 59}}, {"id": 34, "type": "ERROR", "text": "d) initWithJDCloudClient:(IotcloudgatewayClien", "parent": 32, "children": [35], "start_point": {"row": 34, "column": 60}, "end_point": {"row": 36, "column": 27}}, {"id": 35, "type": "binary_expression", "text": " initWithJDCloudClient:(IotcloudgatewayClien", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 34, "column": 62}, "end_point": {"row": 36, "column": 27}}, {"id": 36, "type": "identifier", "text": " initWithJDClou", "parent": 35, "children": [], "start_point": {"row": 34, "column": 62}, "end_point": {"row": 34, "column": 77}}, {"id": 37, "type": "-", "text": "l", "parent": 35, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 38, "type": "cast_expression", "text": "ient:(IotcloudgatewayClien", "parent": 35, "children": [39, 41], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 27}}, {"id": 39, "type": "type_descriptor", "text": "en", "parent": 38, "children": [40], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 4}}, {"id": 40, "type": "type_identifier", "text": "en", "parent": 39, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 4}}, {"id": 41, "type": "identifier", "text": "(IotcloudgatewayClien", "parent": 38, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 27}}, {"id": 42, "type": "cast_expression", "text": "*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloud", "parent": 32, "children": [43, 47], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 65}}, {"id": 43, "type": "type_descriptor", "text": ")JDCloudClient;\n@end\n/", "parent": 42, "children": [44, 45], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 51}}, {"id": 44, "type": "type_identifier", "text": ")JDCloudClient;\n@end\n", "parent": 43, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 50}}, {"id": 45, "type": "abstract_pointer_declarator", "text": "/", "parent": 43, "children": [46], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 51}}, {"id": 46, "type": "*", "text": "/", "parent": 45, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 51}}, {"id": 47, "type": "identifier", "text": "/ \u67e5\u8be2iotcloud", "parent": 42, "children": [], "start_point": {"row": 36, "column": 52}, "end_point": {"row": 36, "column": 65}}, {"id": 48, "type": "ERROR", "text": "t", "parent": 0, "children": [49], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 49, "type": "ERROR", "text": "t", "parent": 48, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 50, "type": "declaration", "text": "eway\u5b9e\u4f8b\u8be6\u60c5\n@interface IotcloudgatewayDescribeInstanceEx", "parent": 0, "children": [51, 52, 54], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 51, "type": "type_identifier", "text": "ewa", "parent": 50, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 4}}, {"id": 52, "type": "ERROR", "text": "I", "parent": 50, "children": [53], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 53, "type": "ERROR", "text": "I", "parent": 52, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 54, "type": "identifier", "text": "nstanceEx", "parent": 50, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 55, "type": "labeled_statement", "text": "cutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u5217\u8868\n@", "parent": 0, "children": [56, 57], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 41, "column": 66}}, {"id": 56, "type": "statement_identifier", "text": "cutor : JDCloudExecutor\n\n-(id) initWith", "parent": 55, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 50}}, {"id": 57, "type": "ERROR", "text": "DCloudClient:(IotcloudgatewayClient*)JDCloudCl", "parent": 55, "children": [58], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 41, "column": 27}}, {"id": 58, "type": "binary_expression", "text": "loudClient:(IotcloudgatewayClient*)JDCloudCl", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 41, "column": 27}}, {"id": 59, "type": "identifier", "text": "loudClient:(Iot", "parent": 58, "children": [], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 39, "column": 68}}, {"id": 60, "type": "-", "text": "o", "parent": 58, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 61, "type": "cast_expression", "text": "udgatewayClient*)JDCloudCl", "parent": 58, "children": [62, 64], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 27}}, {"id": 62, "type": "type_descriptor", "text": "dg", "parent": 61, "children": [63], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 4}}, {"id": 63, "type": "type_identifier", "text": "dg", "parent": 62, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 4}}, {"id": 64, "type": "identifier", "text": "ewayClient*)JDCloudCl", "parent": 61, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 27}}, {"id": 65, "type": "cast_expression", "text": "ent;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u5217\u8868\n", "parent": 55, "children": [66, 70], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 65}}, {"id": 66, "type": "type_descriptor", "text": "nt;\n@end\n/// \u67e5\u8be2iotclo", "parent": 65, "children": [67, 68], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 51}}, {"id": 67, "type": "type_identifier", "text": "nt;\n@end\n/// \u67e5\u8be2iotcl", "parent": 66, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 50}}, {"id": 68, "type": "abstract_pointer_declarator", "text": "o", "parent": 66, "children": [69], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 51}}, {"id": 69, "type": "*", "text": "o", "parent": 68, "children": [], "start_point": {"row": 41, "column": 50}, "end_point": {"row": 41, "column": 51}}, {"id": 70, "type": "identifier", "text": "dgateway\u5b9e\u4f8b\u5217\u8868\n", "parent": 65, "children": [], "start_point": {"row": 41, "column": 52}, "end_point": {"row": 41, "column": 65}}, {"id": 71, "type": "ERROR", "text": "n", "parent": 0, "children": [72], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 72, "type": "ERROR", "text": "n", "parent": 71, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 73, "type": "declaration", "text": "terface IotcloudgatewayDescribeInstancesExecutor : JD", "parent": 0, "children": [74, 75, 77], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 44, "column": 10}}, {"id": 74, "type": "type_identifier", "text": "ter", "parent": 73, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 4}}, {"id": 75, "type": "ERROR", "text": "c", "parent": 73, "children": [76], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 76, "type": "ERROR", "text": "c", "parent": 75, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 77, "type": "identifier", "text": "utor : JD", "parent": 73, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 10}}, {"id": 78, "type": "labeled_statement", "text": "loudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface Iotcloudgateway", "parent": 0, "children": [79, 80], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 46, "column": 66}}, {"id": 79, "type": "statement_identifier", "text": "loudExecutor\n\n-(id) initWithJDCloudClien", "parent": 78, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 51}}, {"id": 80, "type": "ERROR", "text": ":(IotcloudgatewayClient*)JDCloudClient;\n@end\n/", "parent": 78, "children": [81], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 46, "column": 27}}, {"id": 81, "type": "binary_expression", "text": "IotcloudgatewayClient*)JDCloudClient;\n@end\n/", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 46, "column": 27}}, {"id": 82, "type": "identifier", "text": "Iotcloudgateway", "parent": 81, "children": [], "start_point": {"row": 44, "column": 54}, "end_point": {"row": 44, "column": 69}}, {"id": 83, "type": "-", "text": "i", "parent": 81, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 84, "type": "cast_expression", "text": "ent*)JDCloudClient;\n@end\n/", "parent": 81, "children": [85, 87], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 27}}, {"id": 85, "type": "type_descriptor", "text": "nt", "parent": 84, "children": [86], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 4}}, {"id": 86, "type": "type_identifier", "text": "nt", "parent": 85, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 4}}, {"id": 87, "type": "identifier", "text": "JDCloudClient;\n@end\n/", "parent": 84, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 27}}, {"id": 88, "type": "cast_expression", "text": "/ \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface Iotcloudgatewa", "parent": 78, "children": [89, 93], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 65}}, {"id": 89, "type": "type_descriptor", "text": " \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface ", "parent": 88, "children": [90, 91], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 51}}, {"id": 90, "type": "type_identifier", "text": " \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface", "parent": 89, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 50}}, {"id": 91, "type": "abstract_pointer_declarator", "text": " ", "parent": 89, "children": [92], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 92, "type": "*", "text": " ", "parent": 91, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 93, "type": "identifier", "text": "otcloudgatewa", "parent": 88, "children": [], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 65}}, {"id": 94, "type": "ERROR", "text": "e", "parent": 0, "children": [95], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 95, "type": "ERROR", "text": "e", "parent": 94, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 96, "type": "declaration", "text": "viceControlExecutor : JDCloudExecutor\n\n-(id)", "parent": 0, "children": [97, 98, 100], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 49, "column": 10}}, {"id": 97, "type": "type_identifier", "text": "vic", "parent": 96, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 98, "type": "ERROR", "text": "t", "parent": 96, "children": [99], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 99, "type": "ERROR", "text": "t", "parent": 98, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 100, "type": "identifier", "text": "or\n\n-(id)", "parent": 96, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 10}}, {"id": 101, "type": "labeled_statement", "text": "initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n", "parent": 0, "children": [102, 103], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 51, "column": 66}}, {"id": 102, "type": "statement_identifier", "text": "initWithJDCloudClient:(Iotcloudgatew", "parent": 101, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 47}}, {"id": 103, "type": "ERROR", "text": "yClient*)JDCloudClient;\n@end\n#endif /* Iotclou", "parent": 101, "children": [104], "start_point": {"row": 49, "column": 48}, "end_point": {"row": 51, "column": 27}}, {"id": 104, "type": "binary_expression", "text": "lient*)JDCloudClient;\n@end\n#endif /* Iotclou", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 51, "column": 27}}, {"id": 105, "type": "identifier", "text": "lient*)JDCloudC", "parent": 104, "children": [], "start_point": {"row": 49, "column": 50}, "end_point": {"row": 49, "column": 65}}, {"id": 106, "type": "-", "text": "e", "parent": 104, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 107, "type": "cast_expression", "text": "nt;\n@end\n#endif /* Iotclou", "parent": 104, "children": [108, 110], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 27}}, {"id": 108, "type": "type_descriptor", "text": "t;", "parent": 107, "children": [109], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 4}}, {"id": 109, "type": "type_identifier", "text": "t;", "parent": 108, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 4}}, {"id": 110, "type": "identifier", "text": "end\n#endif /* Iotclou", "parent": 107, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 27}}, {"id": 111, "type": "cast_expression", "text": "gatewayExecutor_h */\n", "parent": 101, "children": [112, 116], "start_point": {"row": 51, "column": 28}, "end_point": {"row": 51, "column": 65}}, {"id": 112, "type": "type_descriptor", "text": "atewayExecutor_h */\n", "parent": 111, "children": [113, 114], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 51}}, {"id": 113, "type": "type_identifier", "text": "atewayExecutor_h */\n", "parent": 112, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 50}}, {"id": 114, "type": "abstract_pointer_declarator", "text": "", "parent": 112, "children": [115], "start_point": {"row": 51, "column": 50}, "end_point": {"row": 51, "column": 51}}, {"id": 115, "type": "*", "text": "", "parent": 114, "children": [], "start_point": {"row": 51, "column": 50}, "end_point": {"row": 51, "column": 51}}, {"id": 116, "type": "identifier", "text": "", "parent": 111, "children": [], "start_point": {"row": 51, "column": 52}, "end_point": {"row": 51, "column": 65}}, {"id": 117, "type": "ERROR", "text": "", "parent": 0, "children": [118], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 118, "type": "ERROR", "text": "", "parent": 117, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 119, "type": "type_identifier", "text": "", "parent": 0, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 4}}, {"id": 120, "type": "#endif", "text": "", "parent": 0, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [27, 50, 73, 96], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [14, 16, 20, 35, 38, 42, 58, 61, 65, 81, 84, 88, 104, 107, 111], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 12, 13, 18, 19, 21, 24, 28, 31, 33, 36, 40, 41, 44, 47, 51, 54, 56, 59, 63, 64, 67, 70, 74, 77, 79, 82, 86, 87, 90, 93, 97, 100, 102, 105, 109, 110, 113, 116, 119, 120], "returns": [], "exceptions": []}, "expressions": {"calls": [6], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Copyright 2018 JDCLOUD.COM\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp:#www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nJCLOUD iotcloudgateway API\nAPI related to iotcloudgateway\n\nOpenAPI spec version: v1\nContact: \n\nNOTE: This class is auto generated by the jdcloud code generator program.\n*/\n\n\n#ifndef IotcloudgatewayExecutor_h\n#define IotcloudgatewayExecutor_h\n#import <JDCloudOCSDKIotcloudgateway/IotcloudgatewayClient.h>\n\n/// \u67e5\u8be2instance\u5f53\u524d\u72b6\u6001\n@interface IotcloudgatewayQueryInstanceStatusExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2instance\u7ed1\u5b9a\u7684ExposedDomain\n@interface IotcloudgatewayQueryInstanceExposeDomainExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u8be6\u60c5\n@interface IotcloudgatewayDescribeInstanceExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u67e5\u8be2iotcloudgateway\u5b9e\u4f8b\u5217\u8868\n@interface IotcloudgatewayDescribeInstancesExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n/// \u4e0b\u53d1\u8bbe\u5907\u63a7\u5236\u6307\u4ee4\n@interface IotcloudgatewayDeviceControlExecutor : JDCloudExecutor\n\n-(id) initWithJDCloudClient:(IotcloudgatewayClient*)JDCloudClient;\n@end\n#endif /* IotcloudgatewayExecutor_h */\n"}
80,748
c
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2018 polarphp software foundation // Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license information // See https://polarphp.org/CONTRIBUTORS.txt for the list of polarphp project authors // // Created by polarboy on 2018/10/25. #ifndef POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H #define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H #include "Global.h" #include "polarphp/utils/SourceMgr.h" #include "polarphp/utils/SourceLocation.h" #include "polarphp/basic/adt/StringRef.h" #include "polarphp/basic/adt/StringMap.h" #include <map> // forward declare class with namespace namespace polar { namespace basic { } // basic namespace utils { class SourceMgr; class SMLocation; class SMRange; } // utils } // polar namespace polar { namespace filechecker { using polar::utils::SourceMgr; using polar::utils::SMLocation; using polar::utils::SMRange; using polar::basic::StringMap; using polar::basic::StringRef; class Pattern { public: explicit Pattern(CheckType checkType); /// Returns the location in source code. SMLocation getLoc() const { return m_patternLoc; } bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr, unsigned lineNumber); size_t match(StringRef buffer, size_t &matchLen, StringMap<std::string> &variableTable) const; void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer, const StringMap<std::string> &variableTable, SMRange matchRange = {}) const; void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer, const StringMap<std::string> &variableTable) const; bool hasVariable() const { return !(m_variableUses.empty() && m_variableDefs.empty()); } CheckType getCheckType() const { return m_checkType; } const std::string &getRegExStr() const { return m_regExStr; } private: bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr); void addBackrefToRegEx(unsigned backrefNum); unsigned computeMatchDistance(StringRef buffer, const StringMap<std::string> &variableTable) const; bool evaluateExpression(StringRef expr, std::string &value) const; size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr); private: SMLocation m_patternLoc; /// A fixed string to match as the pattern or empty if this pattern requires /// a regex match. StringRef m_fixedStr; /// A regex string to match as the pattern or empty if this pattern requires /// a fixed string to match. std::string m_regExStr; /// Entries in this vector map to uses of a variable in the pattern, e.g. /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and /// we'll get an entry in this vector that tells us to insert the value of /// bar at offset 3. std::vector<std::pair<StringRef, unsigned>> m_variableUses; /// Maps definitions of variables to their parenthesized capture numbers. /// /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to /// 1. std::map<StringRef, unsigned> m_variableDefs; CheckType m_checkType; /// Contains the number of line this pattern is in. unsigned m_lineNumber; bool m_matchFullLines; bool m_noCanonicalizeWhiteSpace; }; } // filechecker } // polar #endif // POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H
35.04
101
(translation_unit) "// This source file is part of the polarphp.org open source project\n//\n// Copyright (c) 2017 - 2018 polarphp software foundation\n// Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>>\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://polarphp.org/LICENSE.txt for license information\n// See https://polarphp.org/CONTRIBUTORS.txt for the list of polarphp project authors\n//\n// Created by polarboy on 2018/10/25.\n\n#ifndef POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n\n#include "Global.h"\n#include "polarphp/utils/SourceMgr.h"\n#include "polarphp/utils/SourceLocation.h"\n#include "polarphp/basic/adt/StringRef.h"\n#include "polarphp/basic/adt/StringMap.h"\n\n#include <map>\n\n// forward declare class with namespace\nnamespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n} // polar\n\nnamespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n} // polar\n\n\n#endif // POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n" (comment) "// This source file is part of the polarphp.org open source project" (comment) "//" (comment) "// Copyright (c) 2017 - 2018 polarphp software foundation" (comment) "// Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>>" (comment) "// Licensed under Apache License v2.0 with Runtime Library Exception" (comment) "//" (comment) "// See https://polarphp.org/LICENSE.txt for license information" (comment) "// See https://polarphp.org/CONTRIBUTORS.txt for the list of polarphp project authors" (comment) "//" (comment) "// Created by polarboy on 2018/10/25." (preproc_ifdef) "#ifndef POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n\n#include "Global.h"\n#include "polarphp/utils/SourceMgr.h"\n#include "polarphp/utils/SourceLocation.h"\n#include "polarphp/basic/adt/StringRef.h"\n#include "polarphp/basic/adt/StringMap.h"\n\n#include <map>\n\n// forward declare class with namespace\nnamespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n} // polar\n\nnamespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n} // polar\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H" (preproc_def) "#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n" (#define) "#define" (identifier) "POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H" (preproc_include) "#include "Global.h"\n" (#include) "#include" (string_literal) ""Global.h"" (") """ (string_content) "Global.h" (") """ (preproc_include) "#include "polarphp/utils/SourceMgr.h"\n" (#include) "#include" (string_literal) ""polarphp/utils/SourceMgr.h"" (") """ (string_content) "polarphp/utils/SourceMgr.h" (") """ (preproc_include) "#include "polarphp/utils/SourceLocation.h"\n" (#include) "#include" (string_literal) ""polarphp/utils/SourceLocation.h"" (") """ (string_content) "polarphp/utils/SourceLocation.h" (") """ (preproc_include) "#include "polarphp/basic/adt/StringRef.h"\n" (#include) "#include" (string_literal) ""polarphp/basic/adt/StringRef.h"" (") """ (string_content) "polarphp/basic/adt/StringRef.h" (") """ (preproc_include) "#include "polarphp/basic/adt/StringMap.h"\n" (#include) "#include" (string_literal) ""polarphp/basic/adt/StringMap.h"" (") """ (string_content) "polarphp/basic/adt/StringMap.h" (") """ (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (comment) "// forward declare class with namespace" (function_definition) "namespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n}" (type_identifier) "namespace" (identifier) "polar" (compound_statement) "{\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n}" ({) "{" (function_definition) "namespace basic {\n\n}" (type_identifier) "namespace" (identifier) "basic" (compound_statement) "{\n\n}" ({) "{" (}) "}" (comment) "// basic" (function_definition) "namespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n}" (type_identifier) "namespace" (identifier) "utils" (compound_statement) "{\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n}" ({) "{" (declaration) "class SourceMgr;" (type_identifier) "class" (identifier) "SourceMgr" (;) ";" (declaration) "class SMLocation;" (type_identifier) "class" (identifier) "SMLocation" (;) ";" (declaration) "class SMRange;" (type_identifier) "class" (identifier) "SMRange" (;) ";" (}) "}" (comment) "// utils" (}) "}" (comment) "// polar" (function_definition) "namespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n}" (type_identifier) "namespace" (identifier) "polar" (compound_statement) "{\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n}" ({) "{" (function_definition) "namespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n}" (type_identifier) "namespace" (identifier) "filechecker" (compound_statement) "{\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n}" ({) "{" (declaration) "using polar::utils::SourceMgr;" (type_identifier) "using" (ERROR) "polar::utils::" (identifier) "polar" (:) ":" (:) ":" (identifier) "utils" (:) ":" (:) ":" (identifier) "SourceMgr" (;) ";" (declaration) "using polar::utils::SMLocation;" (type_identifier) "using" (ERROR) "polar::utils::" (identifier) "polar" (:) ":" (:) ":" (identifier) "utils" (:) ":" (:) ":" (identifier) "SMLocation" (;) ";" (declaration) "using polar::utils::SMRange;" (type_identifier) "using" (ERROR) "polar::utils::" (identifier) "polar" (:) ":" (:) ":" (identifier) "utils" (:) ":" (:) ":" (identifier) "SMRange" (;) ";" (declaration) "using polar::basic::StringMap;" (type_identifier) "using" (ERROR) "polar::basic::" (identifier) "polar" (:) ":" (:) ":" (identifier) "basic" (:) ":" (:) ":" (identifier) "StringMap" (;) ";" (declaration) "using polar::basic::StringRef;" (type_identifier) "using" (ERROR) "polar::basic::" (identifier) "polar" (:) ":" (:) ":" (identifier) "basic" (:) ":" (:) ":" (identifier) "StringRef" (;) ";" (function_definition) "class Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n}" (type_identifier) "class" (identifier) "Pattern" (compound_statement) "{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n}" ({) "{" (labeled_statement) "public:\n explicit Pattern(CheckType checkType);" (statement_identifier) "public" (:) ":" (declaration) "explicit Pattern(CheckType checkType);" (type_identifier) "explicit" (function_declarator) "Pattern(CheckType checkType)" (identifier) "Pattern" (parameter_list) "(CheckType checkType)" (() "(" (parameter_declaration) "CheckType checkType" (type_identifier) "CheckType" (identifier) "checkType" ()) ")" (;) ";" (comment) "/// Returns the location in source code." (ERROR) "SMLocation getLoc() const" (type_identifier) "SMLocation" (function_declarator) "getLoc()" (identifier) "getLoc" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return m_patternLoc;\n }" ({) "{" (return_statement) "return m_patternLoc;" (return) "return" (identifier) "m_patternLoc" (;) ";" (}) "}" (declaration) "bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);" (primitive_type) "bool" (function_declarator) "parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber)" (identifier) "parsePattern" (parameter_list) "(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber)" (() "(" (parameter_declaration) "StringRef patternStr" (type_identifier) "StringRef" (identifier) "patternStr" (,) "," (parameter_declaration) "StringRef prefix" (type_identifier) "StringRef" (identifier) "prefix" (,) "," (parameter_declaration) "SourceMgr &sourceMgr" (type_identifier) "SourceMgr" (ERROR) "&" (&) "&" (identifier) "sourceMgr" (,) "," (parameter_declaration) "unsigned lineNumber" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "lineNumber" ()) ")" (;) ";" (ERROR) "size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const" (primitive_type) "size_t" (function_declarator) "match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const" (identifier) "match" (parameter_list) "(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable)" (() "(" (parameter_declaration) "StringRef buffer" (type_identifier) "StringRef" (identifier) "buffer" (,) "," (parameter_declaration) "size_t &matchLen" (primitive_type) "size_t" (ERROR) "&" (&) "&" (identifier) "matchLen" (,) "," (parameter_declaration) "StringMap<std::string> &variableTable" (type_identifier) "StringMap" (ERROR) "<std::string> &" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "variableTable" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;" (primitive_type) "void" (init_declarator) "printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}" (function_declarator) "printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange" (identifier) "printVariableUses" (parameter_list) "(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange" (() "(" (parameter_declaration) "const SourceMgr &sourceMgr" (type_qualifier) "const" (const) "const" (type_identifier) "SourceMgr" (ERROR) "&" (&) "&" (identifier) "sourceMgr" (,) "," (parameter_declaration) "StringRef buffer" (type_identifier) "StringRef" (identifier) "buffer" (,) "," (parameter_declaration) "const StringMap<std::string> &variableTable" (type_qualifier) "const" (const) "const" (type_identifier) "StringMap" (ERROR) "<std::string> &" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "variableTable" (,) "," (parameter_declaration) "SMRange matchRange" (type_identifier) "SMRange" (identifier) "matchRange" ()) "" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (ERROR) ") const" ()) ")" (const) "const" (;) ";" (ERROR) "void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const" (primitive_type) "void" (function_declarator) "printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const" (identifier) "printFuzzyMatch" (parameter_list) "(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable)" (() "(" (parameter_declaration) "const SourceMgr &sourceMgr" (type_qualifier) "const" (const) "const" (type_identifier) "SourceMgr" (ERROR) "&" (&) "&" (identifier) "sourceMgr" (,) "," (parameter_declaration) "StringRef buffer" (type_identifier) "StringRef" (identifier) "buffer" (,) "," (parameter_declaration) "const StringMap<std::string> &variableTable" (type_qualifier) "const" (const) "const" (type_identifier) "StringMap" (ERROR) "<std::string> &" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "variableTable" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool hasVariable() const" (primitive_type) "bool" (function_declarator) "hasVariable()" (identifier) "hasVariable" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }" ({) "{" (return_statement) "return !(m_variableUses.empty() && m_variableDefs.empty());" (return) "return" (unary_expression) "!(m_variableUses.empty() && m_variableDefs.empty())" (!) "!" (parenthesized_expression) "(m_variableUses.empty() && m_variableDefs.empty())" (() "(" (binary_expression) "m_variableUses.empty() && m_variableDefs.empty()" (call_expression) "m_variableUses.empty()" (field_expression) "m_variableUses.empty" (identifier) "m_variableUses" (.) "." (field_identifier) "empty" (argument_list) "()" (() "(" ()) ")" (&&) "&&" (call_expression) "m_variableDefs.empty()" (field_expression) "m_variableDefs.empty" (identifier) "m_variableDefs" (.) "." (field_identifier) "empty" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (ERROR) "CheckType getCheckType() const" (type_identifier) "CheckType" (function_declarator) "getCheckType()" (identifier) "getCheckType" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return m_checkType;\n }" ({) "{" (return_statement) "return m_checkType;" (return) "return" (identifier) "m_checkType" (;) ";" (}) "}" (ERROR) "const std::string &getRegExStr() const" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "getRegExStr()" (identifier) "getRegExStr" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return m_regExStr;\n }" ({) "{" (return_statement) "return m_regExStr;" (return) "return" (identifier) "m_regExStr" (;) ";" (}) "}" (labeled_statement) "private:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);" (statement_identifier) "private" (:) ":" (declaration) "bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);" (primitive_type) "bool" (function_declarator) "addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr)" (identifier) "addRegExToRegEx" (parameter_list) "(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr)" (() "(" (parameter_declaration) "StringRef rs" (type_identifier) "StringRef" (identifier) "rs" (,) "," (parameter_declaration) "unsigned &curParen" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (ERROR) "&" (&) "&" (identifier) "curParen" (,) "," (parameter_declaration) "SourceMgr &sourceMgr" (type_identifier) "SourceMgr" (ERROR) "&" (&) "&" (identifier) "sourceMgr" ()) ")" (;) ";" (declaration) "void addBackrefToRegEx(unsigned backrefNum);" (primitive_type) "void" (function_declarator) "addBackrefToRegEx(unsigned backrefNum)" (identifier) "addBackrefToRegEx" (parameter_list) "(unsigned backrefNum)" (() "(" (parameter_declaration) "unsigned backrefNum" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "backrefNum" ()) ")" (;) ";" (ERROR) "unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (function_declarator) "computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const" (identifier) "computeMatchDistance" (parameter_list) "(StringRef buffer,\n const StringMap<std::string> &variableTable)" (() "(" (parameter_declaration) "StringRef buffer" (type_identifier) "StringRef" (identifier) "buffer" (,) "," (parameter_declaration) "const StringMap<std::string> &variableTable" (type_qualifier) "const" (const) "const" (type_identifier) "StringMap" (ERROR) "<std::string> &" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (&) "&" (identifier) "variableTable" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool evaluateExpression(StringRef expr, std::string &value) const" (primitive_type) "bool" (function_declarator) "evaluateExpression(StringRef expr, std::string &value) const" (identifier) "evaluateExpression" (parameter_list) "(StringRef expr, std::string &value)" (() "(" (parameter_declaration) "StringRef expr" (type_identifier) "StringRef" (identifier) "expr" (,) "," (parameter_declaration) "std::string &value" (type_identifier) "std" (ERROR) "::string &" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "value" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);" (primitive_type) "size_t" (function_declarator) "findRegexVarEnd(StringRef str, SourceMgr &sourceMgr)" (identifier) "findRegexVarEnd" (parameter_list) "(StringRef str, SourceMgr &sourceMgr)" (() "(" (parameter_declaration) "StringRef str" (type_identifier) "StringRef" (identifier) "str" (,) "," (parameter_declaration) "SourceMgr &sourceMgr" (type_identifier) "SourceMgr" (ERROR) "&" (&) "&" (identifier) "sourceMgr" ()) ")" (;) ";" (labeled_statement) "private:\n SMLocation m_patternLoc;" (statement_identifier) "private" (:) ":" (declaration) "SMLocation m_patternLoc;" (type_identifier) "SMLocation" (identifier) "m_patternLoc" (;) ";" (comment) "/// A fixed string to match as the pattern or empty if this pattern requires" (comment) "/// a regex match." (declaration) "StringRef m_fixedStr;" (type_identifier) "StringRef" (identifier) "m_fixedStr" (;) ";" (comment) "/// A regex string to match as the pattern or empty if this pattern requires" (comment) "/// a fixed string to match." (labeled_statement) "std::string m_regExStr;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string m_regExStr;" (type_identifier) "string" (identifier) "m_regExStr" (;) ";" (comment) "/// Entries in this vector map to uses of a variable in the pattern, e.g." (comment) "/// "foo[[bar]]baz". In this case, the m_regExStr will contain "foobaz" and" (comment) "/// we'll get an entry in this vector that tells us to insert the value of" (comment) "/// bar at offset 3." (labeled_statement) "std::vector<std::pair<StringRef, unsigned>> m_variableUses;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "pair<StringRef, unsigned>> m_variableUses;" (comma_expression) "pair<StringRef, unsigned>> m_variableUses" (binary_expression) "pair<StringRef" (identifier) "pair" (<) "<" (identifier) "StringRef" (,) "," (binary_expression) "unsigned>> m_variableUses" (identifier) "unsigned" (>>) ">>" (identifier) "m_variableUses" (;) ";" (comment) "/// Maps definitions of variables to their parenthesized capture numbers." (comment) "///" (comment) "/// E.g. for the pattern "foo[[bar:.*]]baz", m_variableDefs will map "bar" to" (comment) "/// 1." (labeled_statement) "std::map<StringRef, unsigned> m_variableDefs;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "map<StringRef, unsigned> m_variableDefs;" (comma_expression) "map<StringRef, unsigned> m_variableDefs" (binary_expression) "map<StringRef" (identifier) "map" (<) "<" (identifier) "StringRef" (,) "," (binary_expression) "unsigned> m_variableDefs" (identifier) "unsigned" (>) ">" (identifier) "m_variableDefs" (;) ";" (declaration) "CheckType m_checkType;" (type_identifier) "CheckType" (identifier) "m_checkType" (;) ";" (comment) "/// Contains the number of line this pattern is in." (declaration) "unsigned m_lineNumber;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "m_lineNumber" (;) ";" (declaration) "bool m_matchFullLines;" (primitive_type) "bool" (identifier) "m_matchFullLines" (;) ";" (declaration) "bool m_noCanonicalizeWhiteSpace;" (primitive_type) "bool" (identifier) "m_noCanonicalizeWhiteSpace" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// filechecker" (}) "}" (comment) "// polar" (#endif) "#endif" (comment) "// POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H"
604
30
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 35.04, "nodes": 331, "errors": 0, "source_hash": "77a07a6d852194ad48673e985579bfdade096833cd0979f18f5839870301e1b5", "categorized_nodes": 251}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n\n#include \"Global.h\"\n#include \"polarphp/utils/SourceMgr.h\"\n#include \"polarphp/utils/SourceLocation.h\"\n#include \"polarphp/basic/adt/StringRef.h\"\n#include \"polarphp/basic/adt/StringMap.h\"\n\n#include <map>\n\n// forward declare class with namespace\nnamespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n} // polar\n\nnamespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// \"foo[[bar]]baz\". In this case, the m_regExStr will contain \"foobaz\" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern \"foo[[bar:.*]]baz\", m_variableDefs will map \"bar\" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n} // polar\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 39, 330], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 124, "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": "POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H", "parent": 0, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 51}}, {"id": 3, "type": "preproc_def", "text": "#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_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": "POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H", "parent": 3, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 51}}, {"id": 6, "type": "preproc_include", "text": "#include \"Global.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": "\"Global.h\"", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"polarphp/utils/SourceMgr.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"polarphp/utils/SourceMgr.h\"", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 37}}, {"id": 12, "type": "preproc_include", "text": "#include \"polarphp/utils/SourceLocation.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"polarphp/utils/SourceLocation.h\"", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 42}}, {"id": 15, "type": "preproc_include", "text": "#include \"polarphp/basic/adt/StringRef.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"polarphp/basic/adt/StringRef.h\"", "parent": 15, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 41}}, {"id": 18, "type": "preproc_include", "text": "#include \"polarphp/basic/adt/StringMap.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"polarphp/basic/adt/StringMap.h\"", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 41}}, {"id": 21, "type": "preproc_include", "text": "#include <map>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<map>", "parent": 21, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 14}}, {"id": 24, "type": "function_definition", "text": "namespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n}", "parent": 0, "children": [25, 26], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 9}}, {"id": 26, "type": "identifier", "text": "polar", "parent": 24, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 15}}, {"id": 27, "type": "function_definition", "text": "namespace basic {\n\n}", "parent": 24, "children": [28, 29], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 28, "type": "type_identifier", "text": "namespace", "parent": 27, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 29, "type": "identifier", "text": "basic", "parent": 27, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 15}}, {"id": 30, "type": "function_definition", "text": "namespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n}", "parent": 24, "children": [31, 32], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 9}}, {"id": 32, "type": "identifier", "text": "utils", "parent": 30, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 15}}, {"id": 33, "type": "declaration", "text": "class SourceMgr;", "parent": 30, "children": [34], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 16}}, {"id": 34, "type": "identifier", "text": "SourceMgr", "parent": 33, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 15}}, {"id": 35, "type": "declaration", "text": "class SMLocation;", "parent": 30, "children": [36], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 17}}, {"id": 36, "type": "identifier", "text": "SMLocation", "parent": 35, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 16}}, {"id": 37, "type": "declaration", "text": "class SMRange;", "parent": 30, "children": [38], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 14}}, {"id": 38, "type": "identifier", "text": "SMRange", "parent": 37, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 13}}, {"id": 39, "type": "function_definition", "text": "namespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// \"foo[[bar]]baz\". In this case, the m_regExStr will contain \"foobaz\" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern \"foo[[bar:.*]]baz\", m_variableDefs will map \"bar\" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n}", "parent": 0, "children": [40, 41], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 40, "type": "type_identifier", "text": "namespace", "parent": 39, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 9}}, {"id": 41, "type": "identifier", "text": "polar", "parent": 39, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 15}}, {"id": 42, "type": "function_definition", "text": "namespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// \"foo[[bar]]baz\". In this case, the m_regExStr will contain \"foobaz\" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern \"foo[[bar:.*]]baz\", m_variableDefs will map \"bar\" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n}", "parent": 39, "children": [43, 44], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 43, "type": "type_identifier", "text": "namespace", "parent": 42, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 9}}, {"id": 44, "type": "identifier", "text": "filechecker", "parent": 42, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 21}}, {"id": 45, "type": "declaration", "text": "using polar::utils::SourceMgr;", "parent": 42, "children": [46, 47, 50], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 30}}, {"id": 46, "type": "type_identifier", "text": "using", "parent": 45, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 5}}, {"id": 47, "type": "ERROR", "text": "polar::utils::", "parent": 45, "children": [48, 49], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 20}}, {"id": 48, "type": "identifier", "text": "polar", "parent": 47, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 11}}, {"id": 49, "type": "identifier", "text": "utils", "parent": 47, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 18}}, {"id": 50, "type": "identifier", "text": "SourceMgr", "parent": 45, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 29}}, {"id": 51, "type": "declaration", "text": "using polar::utils::SMLocation;", "parent": 42, "children": [52, 53, 56], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 31}}, {"id": 52, "type": "type_identifier", "text": "using", "parent": 51, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 5}}, {"id": 53, "type": "ERROR", "text": "polar::utils::", "parent": 51, "children": [54, 55], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 20}}, {"id": 54, "type": "identifier", "text": "polar", "parent": 53, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 11}}, {"id": 55, "type": "identifier", "text": "utils", "parent": 53, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 18}}, {"id": 56, "type": "identifier", "text": "SMLocation", "parent": 51, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 30}}, {"id": 57, "type": "declaration", "text": "using polar::utils::SMRange;", "parent": 42, "children": [58, 59, 62], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 28}}, {"id": 58, "type": "type_identifier", "text": "using", "parent": 57, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 5}}, {"id": 59, "type": "ERROR", "text": "polar::utils::", "parent": 57, "children": [60, 61], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 20}}, {"id": 60, "type": "identifier", "text": "polar", "parent": 59, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 11}}, {"id": 61, "type": "identifier", "text": "utils", "parent": 59, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 18}}, {"id": 62, "type": "identifier", "text": "SMRange", "parent": 57, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 27}}, {"id": 63, "type": "declaration", "text": "using polar::basic::StringMap;", "parent": 42, "children": [64, 65, 68], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 30}}, {"id": 64, "type": "type_identifier", "text": "using", "parent": 63, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 65, "type": "ERROR", "text": "polar::basic::", "parent": 63, "children": [66, 67], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 20}}, {"id": 66, "type": "identifier", "text": "polar", "parent": 65, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 11}}, {"id": 67, "type": "identifier", "text": "basic", "parent": 65, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 18}}, {"id": 68, "type": "identifier", "text": "StringMap", "parent": 63, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 29}}, {"id": 69, "type": "declaration", "text": "using polar::basic::StringRef;", "parent": 42, "children": [70, 71, 74], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 30}}, {"id": 70, "type": "type_identifier", "text": "using", "parent": 69, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 5}}, {"id": 71, "type": "ERROR", "text": "polar::basic::", "parent": 69, "children": [72, 73], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 20}}, {"id": 72, "type": "identifier", "text": "polar", "parent": 71, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 11}}, {"id": 73, "type": "identifier", "text": "basic", "parent": 71, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 18}}, {"id": 74, "type": "identifier", "text": "StringRef", "parent": 69, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 29}}, {"id": 75, "type": "function_definition", "text": "class Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// \"foo[[bar]]baz\". In this case, the m_regExStr will contain \"foobaz\" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern \"foo[[bar:.*]]baz\", m_variableDefs will map \"bar\" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n}", "parent": 42, "children": [76], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 118, "column": 1}}, {"id": 76, "type": "identifier", "text": "Pattern", "parent": 75, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 13}}, {"id": 77, "type": "labeled_statement", "text": "public:\n explicit Pattern(CheckType checkType);", "parent": 75, "children": [78], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 41}}, {"id": 78, "type": "declaration", "text": "explicit Pattern(CheckType checkType);", "parent": 77, "children": [79, 80], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 41}}, {"id": 79, "type": "type_identifier", "text": "explicit", "parent": 78, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 11}}, {"id": 80, "type": "function_declarator", "text": "Pattern(CheckType checkType)", "parent": 78, "children": [81, 82], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 40}}, {"id": 81, "type": "identifier", "text": "Pattern", "parent": 80, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 19}}, {"id": 82, "type": "parameter_list", "text": "(CheckType checkType)", "parent": 80, "children": [83], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 40}}, {"id": 83, "type": "parameter_declaration", "text": "CheckType checkType", "parent": 82, "children": [84, 85], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 39}}, {"id": 84, "type": "type_identifier", "text": "CheckType", "parent": 83, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 29}}, {"id": 85, "type": "identifier", "text": "checkType", "parent": 83, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 39}}, {"id": 86, "type": "ERROR", "text": "SMLocation getLoc() const", "parent": 75, "children": [87, 88], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 28}}, {"id": 87, "type": "type_identifier", "text": "SMLocation", "parent": 86, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 13}}, {"id": 88, "type": "function_declarator", "text": "getLoc()", "parent": 86, "children": [89, 90], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 22}}, {"id": 89, "type": "identifier", "text": "getLoc", "parent": 88, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 20}}, {"id": 90, "type": "parameter_list", "text": "()", "parent": 88, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 22}}, {"id": 91, "type": "return_statement", "text": "return m_patternLoc;", "parent": 75, "children": [92], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 26}}, {"id": 92, "type": "identifier", "text": "m_patternLoc", "parent": 91, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 25}}, {"id": 93, "type": "declaration", "text": "bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);", "parent": 75, "children": [94, 95], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 56, "column": 42}}, {"id": 94, "type": "primitive_type", "text": "bool", "parent": 93, "children": [], "start_point": {"row": 55, "column": 3}, "end_point": {"row": 55, "column": 7}}, {"id": 95, "type": "function_declarator", "text": "parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber)", "parent": 93, "children": [96, 97], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 56, "column": 41}}, {"id": 96, "type": "identifier", "text": "parsePattern", "parent": 95, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 20}}, {"id": 97, "type": "parameter_list", "text": "(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber)", "parent": 95, "children": [98, 101, 104, 107], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 56, "column": 41}}, {"id": 98, "type": "parameter_declaration", "text": "StringRef patternStr", "parent": 97, "children": [99, 100], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 41}}, {"id": 99, "type": "type_identifier", "text": "StringRef", "parent": 98, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 30}}, {"id": 100, "type": "identifier", "text": "patternStr", "parent": 98, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 41}}, {"id": 101, "type": "parameter_declaration", "text": "StringRef prefix", "parent": 97, "children": [102, 103], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 59}}, {"id": 102, "type": "type_identifier", "text": "StringRef", "parent": 101, "children": [], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 52}}, {"id": 103, "type": "identifier", "text": "prefix", "parent": 101, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 59}}, {"id": 104, "type": "parameter_declaration", "text": "SourceMgr &sourceMgr", "parent": 97, "children": [105, 106], "start_point": {"row": 55, "column": 61}, "end_point": {"row": 55, "column": 81}}, {"id": 105, "type": "type_identifier", "text": "SourceMgr", "parent": 104, "children": [], "start_point": {"row": 55, "column": 61}, "end_point": {"row": 55, "column": 70}}, {"id": 106, "type": "identifier", "text": "sourceMgr", "parent": 104, "children": [], "start_point": {"row": 55, "column": 72}, "end_point": {"row": 55, "column": 81}}, {"id": 107, "type": "parameter_declaration", "text": "unsigned lineNumber", "parent": 97, "children": [108, 110], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 40}}, {"id": 108, "type": "sized_type_specifier", "text": "unsigned", "parent": 107, "children": [109], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 29}}, {"id": 109, "type": "unsigned", "text": "unsigned", "parent": 108, "children": [], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 29}}, {"id": 110, "type": "identifier", "text": "lineNumber", "parent": 107, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 40}}, {"id": 111, "type": "ERROR", "text": "size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const", "parent": 75, "children": [112, 113], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 58, "column": 60}}, {"id": 112, "type": "primitive_type", "text": "size_t", "parent": 111, "children": [], "start_point": {"row": 57, "column": 3}, "end_point": {"row": 57, "column": 9}}, {"id": 113, "type": "function_declarator", "text": "match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const", "parent": 111, "children": [114, 115], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 58, "column": 60}}, {"id": 114, "type": "identifier", "text": "match", "parent": 113, "children": [], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 15}}, {"id": 115, "type": "parameter_list", "text": "(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable)", "parent": 113, "children": [116, 119, 122], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 58, "column": 54}}, {"id": 116, "type": "parameter_declaration", "text": "StringRef buffer", "parent": 115, "children": [117, 118], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 32}}, {"id": 117, "type": "type_identifier", "text": "StringRef", "parent": 116, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 25}}, {"id": 118, "type": "identifier", "text": "buffer", "parent": 116, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 32}}, {"id": 119, "type": "parameter_declaration", "text": "size_t &matchLen", "parent": 115, "children": [120, 121], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 50}}, {"id": 120, "type": "primitive_type", "text": "size_t", "parent": 119, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 40}}, {"id": 121, "type": "identifier", "text": "matchLen", "parent": 119, "children": [], "start_point": {"row": 57, "column": 42}, "end_point": {"row": 57, "column": 50}}, {"id": 122, "type": "parameter_declaration", "text": "StringMap<std::string> &variableTable", "parent": 115, "children": [123, 124, 129], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 53}}, {"id": 123, "type": "type_identifier", "text": "StringMap", "parent": 122, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 25}}, {"id": 124, "type": "ERROR", "text": "<std::string> &", "parent": 122, "children": [125, 126, 127, 128], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 40}}, {"id": 125, "type": "<", "text": "<", "parent": 124, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 126, "type": "identifier", "text": "std", "parent": 124, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 29}}, {"id": 127, "type": "identifier", "text": "string", "parent": 124, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 37}}, {"id": 128, "type": ">", "text": ">", "parent": 124, "children": [], "start_point": {"row": 58, "column": 37}, "end_point": {"row": 58, "column": 38}}, {"id": 129, "type": "identifier", "text": "variableTable", "parent": 122, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 53}}, {"id": 130, "type": "declaration", "text": "void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;", "parent": 75, "children": [131, 132, 155], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 61, "column": 57}}, {"id": 131, "type": "primitive_type", "text": "void", "parent": 130, "children": [], "start_point": {"row": 59, "column": 3}, "end_point": {"row": 59, "column": 7}}, {"id": 132, "type": "init_declarator", "text": "printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}", "parent": 130, "children": [133, 153, 154], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 61, "column": 49}}, {"id": 133, "type": "function_declarator", "text": "printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange", "parent": 132, "children": [134, 135], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 61, "column": 44}}, {"id": 134, "type": "identifier", "text": "printVariableUses", "parent": 133, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 25}}, {"id": 135, "type": "parameter_list", "text": "(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange", "parent": 133, "children": [136, 139, 142, 150], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 61, "column": 44}}, {"id": 136, "type": "parameter_declaration", "text": "const SourceMgr &sourceMgr", "parent": 135, "children": [137, 138], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 52}}, {"id": 137, "type": "type_identifier", "text": "SourceMgr", "parent": 136, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 41}}, {"id": 138, "type": "identifier", "text": "sourceMgr", "parent": 136, "children": [], "start_point": {"row": 59, "column": 43}, "end_point": {"row": 59, "column": 52}}, {"id": 139, "type": "parameter_declaration", "text": "StringRef buffer", "parent": 135, "children": [140, 141], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 70}}, {"id": 140, "type": "type_identifier", "text": "StringRef", "parent": 139, "children": [], "start_point": {"row": 59, "column": 54}, "end_point": {"row": 59, "column": 63}}, {"id": 141, "type": "identifier", "text": "buffer", "parent": 139, "children": [], "start_point": {"row": 59, "column": 64}, "end_point": {"row": 59, "column": 70}}, {"id": 142, "type": "parameter_declaration", "text": "const StringMap<std::string> &variableTable", "parent": 135, "children": [143, 144, 149], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 69}}, {"id": 143, "type": "type_identifier", "text": "StringMap", "parent": 142, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 41}}, {"id": 144, "type": "ERROR", "text": "<std::string> &", "parent": 142, "children": [145, 146, 147, 148], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 56}}, {"id": 145, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 42}}, {"id": 146, "type": "identifier", "text": "std", "parent": 144, "children": [], "start_point": {"row": 60, "column": 42}, "end_point": {"row": 60, "column": 45}}, {"id": 147, "type": "identifier", "text": "string", "parent": 144, "children": [], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 53}}, {"id": 148, "type": ">", "text": ">", "parent": 144, "children": [], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 54}}, {"id": 149, "type": "identifier", "text": "variableTable", "parent": 142, "children": [], "start_point": {"row": 60, "column": 56}, "end_point": {"row": 60, "column": 69}}, {"id": 150, "type": "parameter_declaration", "text": "SMRange matchRange", "parent": 135, "children": [151, 152], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 44}}, {"id": 151, "type": "type_identifier", "text": "SMRange", "parent": 150, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 33}}, {"id": 152, "type": "identifier", "text": "matchRange", "parent": 150, "children": [], "start_point": {"row": 61, "column": 34}, "end_point": {"row": 61, "column": 44}}, {"id": 153, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 61, "column": 45}, "end_point": {"row": 61, "column": 46}}, {"id": 154, "type": "initializer_list", "text": "{}", "parent": 132, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 49}}, {"id": 155, "type": "ERROR", "text": ") const", "parent": 130, "children": [], "start_point": {"row": 61, "column": 49}, "end_point": {"row": 61, "column": 56}}, {"id": 156, "type": "ERROR", "text": "void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const", "parent": 75, "children": [157, 158], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 63, "column": 74}}, {"id": 157, "type": "primitive_type", "text": "void", "parent": 156, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 7}}, {"id": 158, "type": "function_declarator", "text": "printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const", "parent": 156, "children": [159, 160], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 63, "column": 74}}, {"id": 159, "type": "identifier", "text": "printFuzzyMatch", "parent": 158, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 23}}, {"id": 160, "type": "parameter_list", "text": "(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable)", "parent": 158, "children": [161, 164, 167], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 63, "column": 68}}, {"id": 161, "type": "parameter_declaration", "text": "const SourceMgr &sourceMgr", "parent": 160, "children": [162, 163], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 50}}, {"id": 162, "type": "type_identifier", "text": "SourceMgr", "parent": 161, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 39}}, {"id": 163, "type": "identifier", "text": "sourceMgr", "parent": 161, "children": [], "start_point": {"row": 62, "column": 41}, "end_point": {"row": 62, "column": 50}}, {"id": 164, "type": "parameter_declaration", "text": "StringRef buffer", "parent": 160, "children": [165, 166], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 68}}, {"id": 165, "type": "type_identifier", "text": "StringRef", "parent": 164, "children": [], "start_point": {"row": 62, "column": 52}, "end_point": {"row": 62, "column": 61}}, {"id": 166, "type": "identifier", "text": "buffer", "parent": 164, "children": [], "start_point": {"row": 62, "column": 62}, "end_point": {"row": 62, "column": 68}}, {"id": 167, "type": "parameter_declaration", "text": "const StringMap<std::string> &variableTable", "parent": 160, "children": [168, 169, 174], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 67}}, {"id": 168, "type": "type_identifier", "text": "StringMap", "parent": 167, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 39}}, {"id": 169, "type": "ERROR", "text": "<std::string> &", "parent": 167, "children": [170, 171, 172, 173], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 54}}, {"id": 170, "type": "<", "text": "<", "parent": 169, "children": [], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 40}}, {"id": 171, "type": "identifier", "text": "std", "parent": 169, "children": [], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 43}}, {"id": 172, "type": "identifier", "text": "string", "parent": 169, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 51}}, {"id": 173, "type": ">", "text": ">", "parent": 169, "children": [], "start_point": {"row": 63, "column": 51}, "end_point": {"row": 63, "column": 52}}, {"id": 174, "type": "identifier", "text": "variableTable", "parent": 167, "children": [], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 67}}, {"id": 175, "type": "ERROR", "text": "bool hasVariable() const", "parent": 75, "children": [176, 177], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 27}}, {"id": 176, "type": "primitive_type", "text": "bool", "parent": 175, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 177, "type": "function_declarator", "text": "hasVariable()", "parent": 175, "children": [178, 179], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 21}}, {"id": 178, "type": "identifier", "text": "hasVariable", "parent": 177, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 19}}, {"id": 179, "type": "parameter_list", "text": "()", "parent": 177, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 21}}, {"id": 180, "type": "return_statement", "text": "return !(m_variableUses.empty() && m_variableDefs.empty());", "parent": 75, "children": [181], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 65}}, {"id": 181, "type": "unary_expression", "text": "!(m_variableUses.empty() && m_variableDefs.empty())", "parent": 180, "children": [182, 183], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 64}}, {"id": 182, "type": "!", "text": "!", "parent": 181, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 14}}, {"id": 183, "type": "parenthesized_expression", "text": "(m_variableUses.empty() && m_variableDefs.empty())", "parent": 181, "children": [184], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 64}}, {"id": 184, "type": "binary_expression", "text": "m_variableUses.empty() && m_variableDefs.empty()", "parent": 183, "children": [185, 190, 191], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 63}}, {"id": 185, "type": "call_expression", "text": "m_variableUses.empty()", "parent": 184, "children": [186, 189], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 37}}, {"id": 186, "type": "field_expression", "text": "m_variableUses.empty", "parent": 185, "children": [187, 188], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 35}}, {"id": 187, "type": "identifier", "text": "m_variableUses", "parent": 186, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 29}}, {"id": 188, "type": "field_identifier", "text": "empty", "parent": 186, "children": [], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 35}}, {"id": 189, "type": "argument_list", "text": "()", "parent": 185, "children": [], "start_point": {"row": 67, "column": 35}, "end_point": {"row": 67, "column": 37}}, {"id": 190, "type": "&&", "text": "&&", "parent": 184, "children": [], "start_point": {"row": 67, "column": 38}, "end_point": {"row": 67, "column": 40}}, {"id": 191, "type": "call_expression", "text": "m_variableDefs.empty()", "parent": 184, "children": [192, 195], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 63}}, {"id": 192, "type": "field_expression", "text": "m_variableDefs.empty", "parent": 191, "children": [193, 194], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 61}}, {"id": 193, "type": "identifier", "text": "m_variableDefs", "parent": 192, "children": [], "start_point": {"row": 67, "column": 41}, "end_point": {"row": 67, "column": 55}}, {"id": 194, "type": "field_identifier", "text": "empty", "parent": 192, "children": [], "start_point": {"row": 67, "column": 56}, "end_point": {"row": 67, "column": 61}}, {"id": 195, "type": "argument_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 67, "column": 61}, "end_point": {"row": 67, "column": 63}}, {"id": 196, "type": "ERROR", "text": "CheckType getCheckType() const", "parent": 75, "children": [197, 198], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 33}}, {"id": 197, "type": "type_identifier", "text": "CheckType", "parent": 196, "children": [], "start_point": {"row": 70, "column": 3}, "end_point": {"row": 70, "column": 12}}, {"id": 198, "type": "function_declarator", "text": "getCheckType()", "parent": 196, "children": [199, 200], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 27}}, {"id": 199, "type": "identifier", "text": "getCheckType", "parent": 198, "children": [], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 25}}, {"id": 200, "type": "parameter_list", "text": "()", "parent": 198, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 27}}, {"id": 201, "type": "return_statement", "text": "return m_checkType;", "parent": 75, "children": [202], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 25}}, {"id": 202, "type": "identifier", "text": "m_checkType", "parent": 201, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 24}}, {"id": 203, "type": "ERROR", "text": "const std::string &getRegExStr() const", "parent": 75, "children": [204, 205, 207], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 41}}, {"id": 204, "type": "type_identifier", "text": "std", "parent": 203, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 12}}, {"id": 205, "type": "ERROR", "text": "::string &", "parent": 203, "children": [206], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 22}}, {"id": 206, "type": "identifier", "text": "string", "parent": 205, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 20}}, {"id": 207, "type": "function_declarator", "text": "getRegExStr()", "parent": 203, "children": [208, 209], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 35}}, {"id": 208, "type": "identifier", "text": "getRegExStr", "parent": 207, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 33}}, {"id": 209, "type": "parameter_list", "text": "()", "parent": 207, "children": [], "start_point": {"row": 75, "column": 33}, "end_point": {"row": 75, "column": 35}}, {"id": 210, "type": "return_statement", "text": "return m_regExStr;", "parent": 75, "children": [211], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 24}}, {"id": 211, "type": "identifier", "text": "m_regExStr", "parent": 210, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 23}}, {"id": 212, "type": "labeled_statement", "text": "private:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);", "parent": 75, "children": [213], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 80}}, {"id": 213, "type": "declaration", "text": "bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);", "parent": 212, "children": [214, 215], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 80}}, {"id": 214, "type": "primitive_type", "text": "bool", "parent": 213, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 7}}, {"id": 215, "type": "function_declarator", "text": "addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr)", "parent": 213, "children": [216, 217], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 79}}, {"id": 216, "type": "identifier", "text": "addRegExToRegEx", "parent": 215, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 23}}, {"id": 217, "type": "parameter_list", "text": "(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr)", "parent": 215, "children": [218, 221, 225], "start_point": {"row": 81, "column": 23}, "end_point": {"row": 81, "column": 79}}, {"id": 218, "type": "parameter_declaration", "text": "StringRef rs", "parent": 217, "children": [219, 220], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 36}}, {"id": 219, "type": "type_identifier", "text": "StringRef", "parent": 218, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 33}}, {"id": 220, "type": "identifier", "text": "rs", "parent": 218, "children": [], "start_point": {"row": 81, "column": 34}, "end_point": {"row": 81, "column": 36}}, {"id": 221, "type": "parameter_declaration", "text": "unsigned &curParen", "parent": 217, "children": [222, 224], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 56}}, {"id": 222, "type": "sized_type_specifier", "text": "unsigned", "parent": 221, "children": [223], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 46}}, {"id": 223, "type": "unsigned", "text": "unsigned", "parent": 222, "children": [], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 46}}, {"id": 224, "type": "identifier", "text": "curParen", "parent": 221, "children": [], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 56}}, {"id": 225, "type": "parameter_declaration", "text": "SourceMgr &sourceMgr", "parent": 217, "children": [226, 227], "start_point": {"row": 81, "column": 58}, "end_point": {"row": 81, "column": 78}}, {"id": 226, "type": "type_identifier", "text": "SourceMgr", "parent": 225, "children": [], "start_point": {"row": 81, "column": 58}, "end_point": {"row": 81, "column": 67}}, {"id": 227, "type": "identifier", "text": "sourceMgr", "parent": 225, "children": [], "start_point": {"row": 81, "column": 69}, "end_point": {"row": 81, "column": 78}}, {"id": 228, "type": "declaration", "text": "void addBackrefToRegEx(unsigned backrefNum);", "parent": 75, "children": [229, 230], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 47}}, {"id": 229, "type": "primitive_type", "text": "void", "parent": 228, "children": [], "start_point": {"row": 82, "column": 3}, "end_point": {"row": 82, "column": 7}}, {"id": 230, "type": "function_declarator", "text": "addBackrefToRegEx(unsigned backrefNum)", "parent": 228, "children": [231, 232], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 46}}, {"id": 231, "type": "identifier", "text": "addBackrefToRegEx", "parent": 230, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 25}}, {"id": 232, "type": "parameter_list", "text": "(unsigned backrefNum)", "parent": 230, "children": [233], "start_point": {"row": 82, "column": 25}, "end_point": {"row": 82, "column": 46}}, {"id": 233, "type": "parameter_declaration", "text": "unsigned backrefNum", "parent": 232, "children": [234, 236], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 45}}, {"id": 234, "type": "sized_type_specifier", "text": "unsigned", "parent": 233, "children": [235], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 34}}, {"id": 235, "type": "unsigned", "text": "unsigned", "parent": 234, "children": [], "start_point": {"row": 82, "column": 26}, "end_point": {"row": 82, "column": 34}}, {"id": 236, "type": "identifier", "text": "backrefNum", "parent": 233, "children": [], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 45}}, {"id": 237, "type": "ERROR", "text": "unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const", "parent": 75, "children": [238, 240], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 85, "column": 74}}, {"id": 238, "type": "sized_type_specifier", "text": "unsigned", "parent": 237, "children": [239], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 11}}, {"id": 239, "type": "unsigned", "text": "unsigned", "parent": 238, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 83, "column": 11}}, {"id": 240, "type": "function_declarator", "text": "computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const", "parent": 237, "children": [241, 242], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 85, "column": 74}}, {"id": 241, "type": "identifier", "text": "computeMatchDistance", "parent": 240, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 23}}, {"id": 242, "type": "parameter_list", "text": "(StringRef buffer,\n const StringMap<std::string> &variableTable)", "parent": 240, "children": [243, 246], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 85, "column": 68}}, {"id": 243, "type": "parameter_declaration", "text": "StringRef buffer", "parent": 242, "children": [244, 245], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 40}}, {"id": 244, "type": "type_identifier", "text": "StringRef", "parent": 243, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 33}}, {"id": 245, "type": "identifier", "text": "buffer", "parent": 243, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 40}}, {"id": 246, "type": "parameter_declaration", "text": "const StringMap<std::string> &variableTable", "parent": 242, "children": [247, 248, 253], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 67}}, {"id": 247, "type": "type_identifier", "text": "StringMap", "parent": 246, "children": [], "start_point": {"row": 85, "column": 30}, "end_point": {"row": 85, "column": 39}}, {"id": 248, "type": "ERROR", "text": "<std::string> &", "parent": 246, "children": [249, 250, 251, 252], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 54}}, {"id": 249, "type": "<", "text": "<", "parent": 248, "children": [], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 40}}, {"id": 250, "type": "identifier", "text": "std", "parent": 248, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 43}}, {"id": 251, "type": "identifier", "text": "string", "parent": 248, "children": [], "start_point": {"row": 85, "column": 45}, "end_point": {"row": 85, "column": 51}}, {"id": 252, "type": ">", "text": ">", "parent": 248, "children": [], "start_point": {"row": 85, "column": 51}, "end_point": {"row": 85, "column": 52}}, {"id": 253, "type": "identifier", "text": "variableTable", "parent": 246, "children": [], "start_point": {"row": 85, "column": 54}, "end_point": {"row": 85, "column": 67}}, {"id": 254, "type": "ERROR", "text": "bool evaluateExpression(StringRef expr, std::string &value) const", "parent": 75, "children": [255, 256], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 68}}, {"id": 255, "type": "primitive_type", "text": "bool", "parent": 254, "children": [], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 7}}, {"id": 256, "type": "function_declarator", "text": "evaluateExpression(StringRef expr, std::string &value) const", "parent": 254, "children": [257, 258], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 68}}, {"id": 257, "type": "identifier", "text": "evaluateExpression", "parent": 256, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 26}}, {"id": 258, "type": "parameter_list", "text": "(StringRef expr, std::string &value)", "parent": 256, "children": [259, 262], "start_point": {"row": 86, "column": 26}, "end_point": {"row": 86, "column": 62}}, {"id": 259, "type": "parameter_declaration", "text": "StringRef expr", "parent": 258, "children": [260, 261], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 41}}, {"id": 260, "type": "type_identifier", "text": "StringRef", "parent": 259, "children": [], "start_point": {"row": 86, "column": 27}, "end_point": {"row": 86, "column": 36}}, {"id": 261, "type": "identifier", "text": "expr", "parent": 259, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 41}}, {"id": 262, "type": "parameter_declaration", "text": "std::string &value", "parent": 258, "children": [263, 264, 266], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 61}}, {"id": 263, "type": "type_identifier", "text": "std", "parent": 262, "children": [], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 46}}, {"id": 264, "type": "ERROR", "text": "::string &", "parent": 262, "children": [265], "start_point": {"row": 86, "column": 46}, "end_point": {"row": 86, "column": 56}}, {"id": 265, "type": "identifier", "text": "string", "parent": 264, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 54}}, {"id": 266, "type": "identifier", "text": "value", "parent": 262, "children": [], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 61}}, {"id": 267, "type": "declaration", "text": "size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);", "parent": 75, "children": [268, 269], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 63}}, {"id": 268, "type": "primitive_type", "text": "size_t", "parent": 267, "children": [], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 87, "column": 9}}, {"id": 269, "type": "function_declarator", "text": "findRegexVarEnd(StringRef str, SourceMgr &sourceMgr)", "parent": 267, "children": [270, 271], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 62}}, {"id": 270, "type": "identifier", "text": "findRegexVarEnd", "parent": 269, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 25}}, {"id": 271, "type": "parameter_list", "text": "(StringRef str, SourceMgr &sourceMgr)", "parent": 269, "children": [272, 275], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 62}}, {"id": 272, "type": "parameter_declaration", "text": "StringRef str", "parent": 271, "children": [273, 274], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 39}}, {"id": 273, "type": "type_identifier", "text": "StringRef", "parent": 272, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 35}}, {"id": 274, "type": "identifier", "text": "str", "parent": 272, "children": [], "start_point": {"row": 87, "column": 36}, "end_point": {"row": 87, "column": 39}}, {"id": 275, "type": "parameter_declaration", "text": "SourceMgr &sourceMgr", "parent": 271, "children": [276, 277], "start_point": {"row": 87, "column": 41}, "end_point": {"row": 87, "column": 61}}, {"id": 276, "type": "type_identifier", "text": "SourceMgr", "parent": 275, "children": [], "start_point": {"row": 87, "column": 41}, "end_point": {"row": 87, "column": 50}}, {"id": 277, "type": "identifier", "text": "sourceMgr", "parent": 275, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 61}}, {"id": 278, "type": "labeled_statement", "text": "private:\n SMLocation m_patternLoc;", "parent": 75, "children": [279], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 90, "column": 27}}, {"id": 279, "type": "declaration", "text": "SMLocation m_patternLoc;", "parent": 278, "children": [280, 281], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 27}}, {"id": 280, "type": "type_identifier", "text": "SMLocation", "parent": 279, "children": [], "start_point": {"row": 90, "column": 3}, "end_point": {"row": 90, "column": 13}}, {"id": 281, "type": "identifier", "text": "m_patternLoc", "parent": 279, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 26}}, {"id": 282, "type": "declaration", "text": "StringRef m_fixedStr;", "parent": 75, "children": [283, 284], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 24}}, {"id": 283, "type": "type_identifier", "text": "StringRef", "parent": 282, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 12}}, {"id": 284, "type": "identifier", "text": "m_fixedStr", "parent": 282, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 23}}, {"id": 285, "type": "labeled_statement", "text": "std::string m_regExStr;", "parent": 75, "children": [286, 287], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 26}}, {"id": 286, "type": "statement_identifier", "text": "std", "parent": 285, "children": [], "start_point": {"row": 98, "column": 3}, "end_point": {"row": 98, "column": 6}}, {"id": 287, "type": "declaration", "text": "string m_regExStr;", "parent": 285, "children": [288, 289], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 26}}, {"id": 288, "type": "type_identifier", "text": "string", "parent": 287, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 289, "type": "identifier", "text": "m_regExStr", "parent": 287, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 25}}, {"id": 290, "type": "labeled_statement", "text": "std::vector<std::pair<StringRef, unsigned>> m_variableUses;", "parent": 75, "children": [291, 292], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 62}}, {"id": 291, "type": "statement_identifier", "text": "std", "parent": 290, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 6}}, {"id": 292, "type": "ERROR", "text": "::vector<std:", "parent": 290, "children": [293], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 19}}, {"id": 293, "type": "binary_expression", "text": "vector<std", "parent": 292, "children": [294, 295, 296], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 18}}, {"id": 294, "type": "identifier", "text": "vector", "parent": 293, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 14}}, {"id": 295, "type": "<", "text": "<", "parent": 293, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 15}}, {"id": 296, "type": "identifier", "text": "std", "parent": 293, "children": [], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 18}}, {"id": 297, "type": "comma_expression", "text": "pair<StringRef, unsigned>> m_variableUses", "parent": 290, "children": [298, 302], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 61}}, {"id": 298, "type": "binary_expression", "text": "pair<StringRef", "parent": 297, "children": [299, 300, 301], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 34}}, {"id": 299, "type": "identifier", "text": "pair", "parent": 298, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 24}}, {"id": 300, "type": "<", "text": "<", "parent": 298, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 25}}, {"id": 301, "type": "identifier", "text": "StringRef", "parent": 298, "children": [], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 34}}, {"id": 302, "type": "binary_expression", "text": "unsigned>> m_variableUses", "parent": 297, "children": [303, 304, 305], "start_point": {"row": 104, "column": 36}, "end_point": {"row": 104, "column": 61}}, {"id": 303, "type": "identifier", "text": "unsigned", "parent": 302, "children": [], "start_point": {"row": 104, "column": 36}, "end_point": {"row": 104, "column": 44}}, {"id": 304, "type": ">>", "text": ">>", "parent": 302, "children": [], "start_point": {"row": 104, "column": 44}, "end_point": {"row": 104, "column": 46}}, {"id": 305, "type": "identifier", "text": "m_variableUses", "parent": 302, "children": [], "start_point": {"row": 104, "column": 47}, "end_point": {"row": 104, "column": 61}}, {"id": 306, "type": "labeled_statement", "text": "std::map<StringRef, unsigned> m_variableDefs;", "parent": 75, "children": [307], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 48}}, {"id": 307, "type": "statement_identifier", "text": "std", "parent": 306, "children": [], "start_point": {"row": 110, "column": 3}, "end_point": {"row": 110, "column": 6}}, {"id": 308, "type": "comma_expression", "text": "map<StringRef, unsigned> m_variableDefs", "parent": 306, "children": [309, 313], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 47}}, {"id": 309, "type": "binary_expression", "text": "map<StringRef", "parent": 308, "children": [310, 311, 312], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 21}}, {"id": 310, "type": "identifier", "text": "map", "parent": 309, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 11}}, {"id": 311, "type": "<", "text": "<", "parent": 309, "children": [], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 12}}, {"id": 312, "type": "identifier", "text": "StringRef", "parent": 309, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 21}}, {"id": 313, "type": "binary_expression", "text": "unsigned> m_variableDefs", "parent": 308, "children": [314, 315, 316], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 47}}, {"id": 314, "type": "identifier", "text": "unsigned", "parent": 313, "children": [], "start_point": {"row": 110, "column": 23}, "end_point": {"row": 110, "column": 31}}, {"id": 315, "type": ">", "text": ">", "parent": 313, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 32}}, {"id": 316, "type": "identifier", "text": "m_variableDefs", "parent": 313, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 47}}, {"id": 317, "type": "declaration", "text": "CheckType m_checkType;", "parent": 75, "children": [318, 319], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 25}}, {"id": 318, "type": "type_identifier", "text": "CheckType", "parent": 317, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 12}}, {"id": 319, "type": "identifier", "text": "m_checkType", "parent": 317, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 24}}, {"id": 320, "type": "declaration", "text": "unsigned m_lineNumber;", "parent": 75, "children": [321, 323], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 25}}, {"id": 321, "type": "sized_type_specifier", "text": "unsigned", "parent": 320, "children": [322], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 11}}, {"id": 322, "type": "unsigned", "text": "unsigned", "parent": 321, "children": [], "start_point": {"row": 115, "column": 3}, "end_point": {"row": 115, "column": 11}}, {"id": 323, "type": "identifier", "text": "m_lineNumber", "parent": 320, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 24}}, {"id": 324, "type": "declaration", "text": "bool m_matchFullLines;", "parent": 75, "children": [325, 326], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 25}}, {"id": 325, "type": "primitive_type", "text": "bool", "parent": 324, "children": [], "start_point": {"row": 116, "column": 3}, "end_point": {"row": 116, "column": 7}}, {"id": 326, "type": "identifier", "text": "m_matchFullLines", "parent": 324, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 24}}, {"id": 327, "type": "declaration", "text": "bool m_noCanonicalizeWhiteSpace;", "parent": 75, "children": [328, 329], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 35}}, {"id": 328, "type": "primitive_type", "text": "bool", "parent": 327, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 7}}, {"id": 329, "type": "identifier", "text": "m_noCanonicalizeWhiteSpace", "parent": 327, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 34}}, {"id": 330, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 6}}]}, "node_categories": {"declarations": {"functions": [24, 27, 30, 39, 42, 75, 80, 88, 95, 113, 133, 158, 177, 198, 207, 215, 230, 240, 256, 269], "variables": [33, 35, 37, 45, 51, 57, 63, 69, 78, 83, 93, 98, 101, 104, 107, 116, 119, 122, 130, 136, 139, 142, 150, 161, 164, 167, 213, 218, 221, 225, 228, 233, 243, 246, 259, 262, 267, 272, 275, 279, 282, 287, 317, 320, 324, 327], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [181, 183, 184, 185, 186, 191, 192, 293, 297, 298, 302, 308, 309, 313], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 25, 26, 28, 29, 31, 32, 34, 36, 38, 40, 41, 43, 44, 46, 48, 49, 50, 52, 54, 55, 56, 58, 60, 61, 62, 64, 66, 67, 68, 70, 72, 73, 74, 76, 79, 81, 84, 85, 87, 89, 92, 96, 99, 100, 102, 103, 105, 106, 108, 110, 114, 117, 118, 121, 123, 126, 127, 129, 134, 137, 138, 140, 141, 143, 146, 147, 149, 151, 152, 159, 162, 163, 165, 166, 168, 171, 172, 174, 178, 187, 188, 193, 194, 197, 199, 202, 204, 206, 208, 211, 216, 219, 220, 222, 224, 226, 227, 231, 234, 236, 238, 241, 244, 245, 247, 250, 251, 253, 257, 260, 261, 263, 265, 266, 270, 273, 274, 276, 277, 280, 281, 283, 284, 286, 288, 289, 291, 294, 296, 299, 301, 303, 305, 307, 310, 312, 314, 316, 318, 319, 321, 323, 326, 329, 330], "returns": [91, 180, 201, 210], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "SourceMgr;", "text_snippet": "namespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "namespace basic {\n\n}"}, {"node_id": 30, "universal_type": "function", "name": "SourceMgr;", "text_snippet": "namespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n}"}, {"node_id": 39, "universal_type": "function", "name": "Pattern", "text_snippet": "namespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLoca"}, {"node_id": 42, "universal_type": "function", "name": "Pattern", "text_snippet": "namespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar:"}, {"node_id": 75, "universal_type": "function", "name": "Pattern", "text_snippet": "class Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in so"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "Pattern(CheckType checkType)"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "getLoc()"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsi"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) con"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const Stri"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMa"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "hasVariable()"}, {"node_id": 198, "universal_type": "function", "name": "unknown", "text_snippet": "getCheckType()"}, {"node_id": 207, "universal_type": "function", "name": "unknown", "text_snippet": "getRegExStr()"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr)"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "addBackrefToRegEx(unsigned backrefNum)"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variabl"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "evaluateExpression(StringRef expr, std::string &value) const"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "findRegexVarEnd(StringRef str, SourceMgr &sourceMgr)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"Global.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"polarphp/utils/SourceMgr.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"polarphp/utils/SourceLocation.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"polarphp/basic/adt/StringRef.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"polarphp/basic/adt/StringMap.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <map>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "// This source file is part of the polarphp.org open source project\n//\n// Copyright (c) 2017 - 2018 polarphp software foundation\n// Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>>\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://polarphp.org/LICENSE.txt for license information\n// See https://polarphp.org/CONTRIBUTORS.txt for the list of polarphp project authors\n//\n// Created by polarboy on 2018/10/25.\n\n#ifndef POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n#define POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n\n#include \"Global.h\"\n#include \"polarphp/utils/SourceMgr.h\"\n#include \"polarphp/utils/SourceLocation.h\"\n#include \"polarphp/basic/adt/StringRef.h\"\n#include \"polarphp/basic/adt/StringMap.h\"\n\n#include <map>\n\n// forward declare class with namespace\nnamespace polar {\nnamespace basic {\n\n} // basic\n\nnamespace utils {\nclass SourceMgr;\nclass SMLocation;\nclass SMRange;\n} // utils\n} // polar\n\nnamespace polar {\nnamespace filechecker {\n\nusing polar::utils::SourceMgr;\nusing polar::utils::SMLocation;\nusing polar::utils::SMRange;\nusing polar::basic::StringMap;\nusing polar::basic::StringRef;\n\nclass Pattern\n{\npublic:\n explicit Pattern(CheckType checkType);\n\n /// Returns the location in source code.\n SMLocation getLoc() const\n {\n return m_patternLoc;\n }\n\n bool parsePattern(StringRef patternStr, StringRef prefix, SourceMgr &sourceMgr,\n unsigned lineNumber);\n size_t match(StringRef buffer, size_t &matchLen,\n StringMap<std::string> &variableTable) const;\n void printVariableUses(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable,\n SMRange matchRange = {}) const;\n void printFuzzyMatch(const SourceMgr &sourceMgr, StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n\n bool hasVariable() const\n {\n return !(m_variableUses.empty() && m_variableDefs.empty());\n }\n\n CheckType getCheckType() const\n {\n return m_checkType;\n }\n\n const std::string &getRegExStr() const\n {\n return m_regExStr;\n }\n\nprivate:\n bool addRegExToRegEx(StringRef rs, unsigned &curParen, SourceMgr &sourceMgr);\n void addBackrefToRegEx(unsigned backrefNum);\n unsigned\n computeMatchDistance(StringRef buffer,\n const StringMap<std::string> &variableTable) const;\n bool evaluateExpression(StringRef expr, std::string &value) const;\n size_t findRegexVarEnd(StringRef str, SourceMgr &sourceMgr);\n\nprivate:\n SMLocation m_patternLoc;\n\n /// A fixed string to match as the pattern or empty if this pattern requires\n /// a regex match.\n StringRef m_fixedStr;\n\n /// A regex string to match as the pattern or empty if this pattern requires\n /// a fixed string to match.\n std::string m_regExStr;\n\n /// Entries in this vector map to uses of a variable in the pattern, e.g.\n /// \"foo[[bar]]baz\". In this case, the m_regExStr will contain \"foobaz\" and\n /// we'll get an entry in this vector that tells us to insert the value of\n /// bar at offset 3.\n std::vector<std::pair<StringRef, unsigned>> m_variableUses;\n\n /// Maps definitions of variables to their parenthesized capture numbers.\n ///\n /// E.g. for the pattern \"foo[[bar:.*]]baz\", m_variableDefs will map \"bar\" to\n /// 1.\n std::map<StringRef, unsigned> m_variableDefs;\n\n CheckType m_checkType;\n\n /// Contains the number of line this pattern is in.\n unsigned m_lineNumber;\n bool m_matchFullLines;\n bool m_noCanonicalizeWhiteSpace;\n};\n\n} // filechecker\n} // polar\n\n\n#endif // POLAR_DEVLTOOLS_FILECHECKER_CHECK_PATTERN_H\n"}
80,749
c
#pragma once #include <stddef.h> #ifdef __cplusplus extern "C" { #endif typedef void* tb_context_t; /*! the context-from type * * @ctx the from-context * @priv the passed user private data */ struct tb_context_from_t { tb_context_t ctx; const void* priv; } ; /*! the context entry function type * * @param from the from-context */ typedef void (*tb_context_func_t)(tb_context_from_t from); /*! make context from the given the stack space and the callback function * * @param stackdata the stack data * @param stacksize the stack size * @param func the entry function * * @return the context pointer */ tb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func); /*! jump to the given context * * @param ctx the to-context * @param priv the passed user private data * * @return the from-context */ tb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv); #ifdef __cplusplus } #endif
24.73
40
(translation_unit) "#pragma once\n\n#include <stddef.h>\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}\n#endif\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (type_definition) "typedef void* tb_context_t;" (typedef) "typedef" (primitive_type) "void" (pointer_declarator) "* tb_context_t" (*) "*" (type_identifier) "tb_context_t" (;) ";" (comment) "/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */" (struct_specifier) "struct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n}" (struct) "struct" (type_identifier) "tb_context_from_t" (field_declaration_list) "{\n tb_context_t ctx;\n const void* priv;\n}" ({) "{" (field_declaration) "tb_context_t ctx;" (type_identifier) "tb_context_t" (field_identifier) "ctx" (;) ";" (field_declaration) "const void* priv;" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* priv" (*) "*" (field_identifier) "priv" (;) ";" (}) "}" (;) ";" (comment) "/*! the context entry function type\n *\n * @param from the from-context\n */" (type_definition) "typedef void (*tb_context_func_t)(tb_context_from_t from);" (typedef) "typedef" (primitive_type) "void" (function_declarator) "(*tb_context_func_t)(tb_context_from_t from)" (parenthesized_declarator) "(*tb_context_func_t)" (() "(" (pointer_declarator) "*tb_context_func_t" (*) "*" (type_identifier) "tb_context_func_t" ()) ")" (parameter_list) "(tb_context_from_t from)" (() "(" (parameter_declaration) "tb_context_from_t from" (type_identifier) "tb_context_from_t" (identifier) "from" ()) ")" (;) ";" (comment) "/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */" (declaration) "tb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);" (type_identifier) "tb_context_t" (function_declarator) "tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func)" (identifier) "tb_context_make" (parameter_list) "(char* stackdata, size_t stacksize, tb_context_func_t func)" (() "(" (parameter_declaration) "char* stackdata" (primitive_type) "char" (pointer_declarator) "* stackdata" (*) "*" (identifier) "stackdata" (,) "," (parameter_declaration) "size_t stacksize" (primitive_type) "size_t" (identifier) "stacksize" (,) "," (parameter_declaration) "tb_context_func_t func" (type_identifier) "tb_context_func_t" (identifier) "func" ()) ")" (;) ";" (comment) "/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */" (declaration) "tb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);" (type_identifier) "tb_context_from_t" (function_declarator) "tb_context_jump(tb_context_t ctx, const void* priv)" (identifier) "tb_context_jump" (parameter_list) "(tb_context_t ctx, const void* priv)" (() "(" (parameter_declaration) "tb_context_t ctx" (type_identifier) "tb_context_t" (identifier) "ctx" (,) "," (parameter_declaration) "const void* priv" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "* priv" (*) "*" (identifier) "priv" ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif"
113
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 24.73, "nodes": 76, "errors": 0, "source_hash": "356878164bc073311e6afdce4d2a5322193c22063efde396eceef7dc5a2cec4c", "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 <stddef.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stddef.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}\n#endif", "parent": null, "children": [7, 8, 9, 75], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "type_definition", "text": "typedef void* tb_context_t;", "parent": 9, "children": [15, 16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 27}}, {"id": 15, "type": "typedef", "text": "typedef", "parent": 14, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 17, "type": "pointer_declarator", "text": "* tb_context_t", "parent": 14, "children": [18, 19], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 26}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 19, "type": "type_identifier", "text": "tb_context_t", "parent": 17, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 26}}, {"id": 20, "type": "struct_specifier", "text": "struct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n}", "parent": 9, "children": [21, 22], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 21, "type": "struct", "text": "struct", "parent": 20, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 22, "type": "type_identifier", "text": "tb_context_from_t", "parent": 20, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 24}}, {"id": 23, "type": "field_declaration", "text": "tb_context_t ctx;", "parent": 20, "children": [24, 25], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 21}}, {"id": 24, "type": "type_identifier", "text": "tb_context_t", "parent": 23, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 25, "type": "field_identifier", "text": "ctx", "parent": 23, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 20}}, {"id": 26, "type": "field_declaration", "text": "const void* priv;", "parent": 20, "children": [27, 28], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 14}}, {"id": 28, "type": "pointer_declarator", "text": "* priv", "parent": 26, "children": [29, 30], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 20}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 30, "type": "field_identifier", "text": "priv", "parent": 28, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 20}}, {"id": 31, "type": "type_definition", "text": "typedef void (*tb_context_func_t)(tb_context_from_t from);", "parent": 9, "children": [32, 33, 34], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 58}}, {"id": 32, "type": "typedef", "text": "typedef", "parent": 31, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 33, "type": "primitive_type", "text": "void", "parent": 31, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 34, "type": "function_declarator", "text": "(*tb_context_func_t)(tb_context_from_t from)", "parent": 31, "children": [35, 39], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 57}}, {"id": 35, "type": "parenthesized_declarator", "text": "(*tb_context_func_t)", "parent": 34, "children": [36], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 33}}, {"id": 36, "type": "pointer_declarator", "text": "*tb_context_func_t", "parent": 35, "children": [37, 38], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 32}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 15}}, {"id": 38, "type": "type_identifier", "text": "tb_context_func_t", "parent": 36, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 32}}, {"id": 39, "type": "parameter_list", "text": "(tb_context_from_t from)", "parent": 34, "children": [40], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 57}}, {"id": 40, "type": "parameter_declaration", "text": "tb_context_from_t from", "parent": 39, "children": [41], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 56}}, {"id": 41, "type": "type_identifier", "text": "tb_context_from_t", "parent": 40, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 51}}, {"id": 42, "type": "declaration", "text": "tb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);", "parent": 9, "children": [43, 44], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 88}}, {"id": 43, "type": "type_identifier", "text": "tb_context_t", "parent": 42, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 12}}, {"id": 44, "type": "function_declarator", "text": "tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func)", "parent": 42, "children": [45, 46], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 87}}, {"id": 45, "type": "identifier", "text": "tb_context_make", "parent": 44, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 28}}, {"id": 46, "type": "parameter_list", "text": "(char* stackdata, size_t stacksize, tb_context_func_t func)", "parent": 44, "children": [47, 52, 55], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 87}}, {"id": 47, "type": "parameter_declaration", "text": "char* stackdata", "parent": 46, "children": [48, 49], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 44}}, {"id": 48, "type": "primitive_type", "text": "char", "parent": 47, "children": [], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 33}}, {"id": 49, "type": "pointer_declarator", "text": "* stackdata", "parent": 47, "children": [50, 51], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 44}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 34, "column": 33}, "end_point": {"row": 34, "column": 34}}, {"id": 51, "type": "identifier", "text": "stackdata", "parent": 49, "children": [], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 44}}, {"id": 52, "type": "parameter_declaration", "text": "size_t stacksize", "parent": 46, "children": [53, 54], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 62}}, {"id": 53, "type": "primitive_type", "text": "size_t", "parent": 52, "children": [], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 52}}, {"id": 54, "type": "identifier", "text": "stacksize", "parent": 52, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 62}}, {"id": 55, "type": "parameter_declaration", "text": "tb_context_func_t func", "parent": 46, "children": [56, 57], "start_point": {"row": 34, "column": 64}, "end_point": {"row": 34, "column": 86}}, {"id": 56, "type": "type_identifier", "text": "tb_context_func_t", "parent": 55, "children": [], "start_point": {"row": 34, "column": 64}, "end_point": {"row": 34, "column": 81}}, {"id": 57, "type": "identifier", "text": "func", "parent": 55, "children": [], "start_point": {"row": 34, "column": 82}, "end_point": {"row": 34, "column": 86}}, {"id": 58, "type": "declaration", "text": "tb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);", "parent": 9, "children": [59, 60], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 70}}, {"id": 59, "type": "type_identifier", "text": "tb_context_from_t", "parent": 58, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 17}}, {"id": 60, "type": "function_declarator", "text": "tb_context_jump(tb_context_t ctx, const void* priv)", "parent": 58, "children": [61, 62], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 69}}, {"id": 61, "type": "identifier", "text": "tb_context_jump", "parent": 60, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 33}}, {"id": 62, "type": "parameter_list", "text": "(tb_context_t ctx, const void* priv)", "parent": 60, "children": [63, 66], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 69}}, {"id": 63, "type": "parameter_declaration", "text": "tb_context_t ctx", "parent": 62, "children": [64, 65], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 50}}, {"id": 64, "type": "type_identifier", "text": "tb_context_t", "parent": 63, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 46}}, {"id": 65, "type": "identifier", "text": "ctx", "parent": 63, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 50}}, {"id": 66, "type": "parameter_declaration", "text": "const void* priv", "parent": 62, "children": [67, 68], "start_point": {"row": 43, "column": 52}, "end_point": {"row": 43, "column": 68}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 62}}, {"id": 68, "type": "pointer_declarator", "text": "* priv", "parent": 66, "children": [69, 70], "start_point": {"row": 43, "column": 62}, "end_point": {"row": 43, "column": 68}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 43, "column": 62}, "end_point": {"row": 43, "column": 63}}, {"id": 70, "type": "identifier", "text": "priv", "parent": 68, "children": [], "start_point": {"row": 43, "column": 64}, "end_point": {"row": 43, "column": 68}}, {"id": 71, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [72, 73, 74], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 18}}, {"id": 72, "type": "#ifdef", "text": "#ifdef", "parent": 71, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 73, "type": "identifier", "text": "__cplusplus", "parent": 71, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 18}}, {"id": 74, "type": "#endif", "text": "", "parent": 71, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 18}}, {"id": 75, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [34, 44, 60], "variables": [14, 23, 26, 31, 40, 42, 47, 52, 55, 58, 63, 66], "classes": [20, 21], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 9, 19, 22, 24, 25, 30, 38, 41, 43, 45, 51, 54, 56, 57, 59, 61, 64, 65, 70, 71, 72, 73, 74, 75], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 12], "literals": [5, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "(*tb_context_func_t)(tb_context_from_t from)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func)"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "tb_context_jump(tb_context_t ctx, const void* priv)"}], "class_declarations": [{"node_id": 20, "universal_type": "class", "name": "tb_context_from_t", "text_snippet": "struct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n}"}, {"node_id": 21, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <stddef.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <stddef.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef void* tb_context_t;\n\n/*! the context-from type\n *\n * @ctx the from-context\n * @priv the passed user private data\n */\nstruct tb_context_from_t {\n tb_context_t ctx;\n const void* priv;\n} ;\n\n/*! the context entry function type\n *\n * @param from the from-context\n */\ntypedef void (*tb_context_func_t)(tb_context_from_t from);\n\n/*! make context from the given the stack space and the callback function\n *\n * @param stackdata the stack data\n * @param stacksize the stack size\n * @param func the entry function\n *\n * @return the context pointer\n */\ntb_context_t tb_context_make(char* stackdata, size_t stacksize, tb_context_func_t func);\n\n/*! jump to the given context\n *\n * @param ctx the to-context\n * @param priv the passed user private data\n *\n * @return the from-context\n */\ntb_context_from_t tb_context_jump(tb_context_t ctx, const void* priv);\n\n#ifdef __cplusplus\n}\n#endif\n"}
80,750
c
/* * RoboPeak Project * Copyright 2009 - 2013 * * RPOS - Byte Operations * */ #pragma once // byte swapping operations for compiling time #define __static_byteswap_16(x) ((_u16)( \ (((_u16)(x) & (_u16)0x00FFU) << 8) | \ (((_u16)(x) & (_u16)0xFF00U) >> 8))) #define __static_byteswap_32(x) ((_u32)( \ (((_u32)(x) & (_u32)0x000000FFUL) << 24) | \ (((_u32)(x) & (_u32)0x0000FF00UL) << 8) | \ (((_u32)(x) & (_u32)0x00FF0000UL) >> 8) | \ (((_u32)(x) & (_u32)0xFF000000UL) >> 24))) #define __static_byteswap_64(x) ((_u64)( \ (((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) | \ (((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) | \ (((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) | \ (((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) | \ (((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) | \ (((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) | \ (((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) | \ (((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56))) #define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0) static inline _u16 __byteswap_16(_u16 x) { #ifdef __arch_byteswap_16 return __arch_byteswap_16(x); #else return __static_byteswap_16(x); #endif } static inline _u32 __byteswap_32(_u32 x) { #ifdef __arch_byteswap_32 return __arch_byteswap_32(x); #else return __static_byteswap_32(x); #endif } static inline _u64 __byteswap_64(_u64 x) { #ifdef __arch_byteswap_64 return __arch_byteswap_64(x); #else return __static_byteswap_64(x); #endif } #ifdef float static inline float __byteswap_float(float x) { #ifdef __arch_byteswap_float return __arch_byteswap_float(x); #else _u8 * raw = (_u8 *)&x; __fast_swap(raw[0], raw[3]); __fast_swap(raw[1], raw[2]); return x; #endif } #endif #ifdef double static inline double __byteswap_double(double x) { #ifdef __arch_byteswap_double return __arch_byteswap_double(x); #else _u8 * raw = (_u8 *)&x; __fast_swap(raw[0], raw[7]); __fast_swap(raw[1], raw[6]); __fast_swap(raw[2], raw[5]); __fast_swap(raw[3], raw[4]); return x; #endif } #endif
26.76
76
(translation_unit) "/*\n * RoboPeak Project\n * Copyright 2009 - 2013\n * \n * RPOS - Byte Operations\n *\n */\n\n#pragma once\n\n// byte swapping operations for compiling time\n\n#define __static_byteswap_16(x) ((_u16)( \\n (((_u16)(x) & (_u16)0x00FFU) << 8) | \\n (((_u16)(x) & (_u16)0xFF00U) >> 8)))\n\n#define __static_byteswap_32(x) ((_u32)( \\n (((_u32)(x) & (_u32)0x000000FFUL) << 24) | \\n (((_u32)(x) & (_u32)0x0000FF00UL) << 8) | \\n (((_u32)(x) & (_u32)0x00FF0000UL) >> 8) | \\n (((_u32)(x) & (_u32)0xFF000000UL) >> 24)))\n\n#define __static_byteswap_64(x) ((_u64)( \\n (((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) | \\n (((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) | \\n (((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) | \\n (((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) | \\n (((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) | \\n (((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) | \\n (((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) | \\n (((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))\n\n\n#define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)\n\n\nstatic inline _u16 __byteswap_16(_u16 x)\n{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif\n}\n\nstatic inline _u32 __byteswap_32(_u32 x)\n{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif\n}\n\nstatic inline _u64 __byteswap_64(_u64 x)\n{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif\n}\n\n\n#ifdef float\nstatic inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}\n#endif\n\n\n#ifdef double\nstatic inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}\n#endif\n" (comment) "/*\n * RoboPeak Project\n * Copyright 2009 - 2013\n * \n * RPOS - Byte Operations\n *\n */" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "// byte swapping operations for compiling time" (preproc_function_def) "#define __static_byteswap_16(x) ((_u16)( \\n (((_u16)(x) & (_u16)0x00FFU) << 8) | \\n (((_u16)(x) & (_u16)0xFF00U) >> 8)))\n" (#define) "#define" (identifier) "__static_byteswap_16" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "((_u16)( \\n (((_u16)(x) & (_u16)0x00FFU) << 8) | \\n (((_u16)(x) & (_u16)0xFF00U) >> 8)))" (preproc_function_def) "#define __static_byteswap_32(x) ((_u32)( \\n (((_u32)(x) & (_u32)0x000000FFUL) << 24) | \\n (((_u32)(x) & (_u32)0x0000FF00UL) << 8) | \\n (((_u32)(x) & (_u32)0x00FF0000UL) >> 8) | \\n (((_u32)(x) & (_u32)0xFF000000UL) >> 24)))\n" (#define) "#define" (identifier) "__static_byteswap_32" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "((_u32)( \\n (((_u32)(x) & (_u32)0x000000FFUL) << 24) | \\n (((_u32)(x) & (_u32)0x0000FF00UL) << 8) | \\n (((_u32)(x) & (_u32)0x00FF0000UL) >> 8) | \\n (((_u32)(x) & (_u32)0xFF000000UL) >> 24)))" (preproc_function_def) "#define __static_byteswap_64(x) ((_u64)( \\n (((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) | \\n (((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) | \\n (((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) | \\n (((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) | \\n (((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) | \\n (((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) | \\n (((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) | \\n (((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))\n" (#define) "#define" (identifier) "__static_byteswap_64" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "((_u64)( \\n (((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) | \\n (((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) | \\n (((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) | \\n (((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) | \\n (((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) | \\n (((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) | \\n (((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) | \\n (((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))" (preproc_function_def) "#define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)\n" (#define) "#define" (identifier) "__fast_swap" (preproc_params) "(a, b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (preproc_arg) "do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)" (function_definition) "static inline _u16 __byteswap_16(_u16 x)\n{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "_u16" (function_declarator) "__byteswap_16(_u16 x)" (identifier) "__byteswap_16" (parameter_list) "(_u16 x)" (() "(" (parameter_declaration) "_u16 x" (type_identifier) "_u16" (identifier) "x" ()) ")" (compound_statement) "{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif" (#ifdef) "#ifdef" (identifier) "__arch_byteswap_16" (return_statement) "return __arch_byteswap_16(x);" (return) "return" (call_expression) "__arch_byteswap_16(x)" (identifier) "__arch_byteswap_16" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (preproc_else) "#else\n return __static_byteswap_16(x);" (#else) "#else" (return_statement) "return __static_byteswap_16(x);" (return) "return" (call_expression) "__static_byteswap_16(x)" (identifier) "__static_byteswap_16" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "static inline _u32 __byteswap_32(_u32 x)\n{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "_u32" (function_declarator) "__byteswap_32(_u32 x)" (identifier) "__byteswap_32" (parameter_list) "(_u32 x)" (() "(" (parameter_declaration) "_u32 x" (type_identifier) "_u32" (identifier) "x" ()) ")" (compound_statement) "{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif" (#ifdef) "#ifdef" (identifier) "__arch_byteswap_32" (return_statement) "return __arch_byteswap_32(x);" (return) "return" (call_expression) "__arch_byteswap_32(x)" (identifier) "__arch_byteswap_32" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (preproc_else) "#else\n return __static_byteswap_32(x);" (#else) "#else" (return_statement) "return __static_byteswap_32(x);" (return) "return" (call_expression) "__static_byteswap_32(x)" (identifier) "__static_byteswap_32" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "static inline _u64 __byteswap_64(_u64 x)\n{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "_u64" (function_declarator) "__byteswap_64(_u64 x)" (identifier) "__byteswap_64" (parameter_list) "(_u64 x)" (() "(" (parameter_declaration) "_u64 x" (type_identifier) "_u64" (identifier) "x" ()) ")" (compound_statement) "{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif" (#ifdef) "#ifdef" (identifier) "__arch_byteswap_64" (return_statement) "return __arch_byteswap_64(x);" (return) "return" (call_expression) "__arch_byteswap_64(x)" (identifier) "__arch_byteswap_64" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (preproc_else) "#else\n return __static_byteswap_64(x);" (#else) "#else" (return_statement) "return __static_byteswap_64(x);" (return) "return" (call_expression) "__static_byteswap_64(x)" (identifier) "__static_byteswap_64" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (#endif) "#endif" (}) "}" (preproc_ifdef) "#ifdef float\nstatic inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}\n#endif" (#ifdef) "#ifdef" (identifier) "float" (function_definition) "static inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "float" (function_declarator) "__byteswap_float(float x)" (identifier) "__byteswap_float" (parameter_list) "(float x)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" ()) ")" (compound_statement) "{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif" (#ifdef) "#ifdef" (identifier) "__arch_byteswap_float" (return_statement) "return __arch_byteswap_float(x);" (return) "return" (call_expression) "__arch_byteswap_float(x)" (identifier) "__arch_byteswap_float" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (preproc_else) "#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;" (#else) "#else" (declaration) "_u8 * raw = (_u8 *)&x;" (type_identifier) "_u8" (init_declarator) "* raw = (_u8 *)&x" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (cast_expression) "(_u8 *)&x" (() "(" (type_descriptor) "_u8 *" (type_identifier) "_u8" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&x" (&) "&" (identifier) "x" (;) ";" (expression_statement) "__fast_swap(raw[0], raw[3]);" (call_expression) "__fast_swap(raw[0], raw[3])" (identifier) "__fast_swap" (argument_list) "(raw[0], raw[3])" (() "(" (subscript_expression) "raw[0]" (identifier) "raw" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "raw[3]" (identifier) "raw" ([) "[" (number_literal) "3" (]) "]" ()) ")" (;) ";" (expression_statement) "__fast_swap(raw[1], raw[2]);" (call_expression) "__fast_swap(raw[1], raw[2])" (identifier) "__fast_swap" (argument_list) "(raw[1], raw[2])" (() "(" (subscript_expression) "raw[1]" (identifier) "raw" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "raw[2]" (identifier) "raw" ([) "[" (number_literal) "2" (]) "]" ()) ")" (;) ";" (return_statement) "return x;" (return) "return" (identifier) "x" (;) ";" (#endif) "#endif" (}) "}" (#endif) "#endif" (preproc_ifdef) "#ifdef double\nstatic inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}\n#endif" (#ifdef) "#ifdef" (identifier) "double" (function_definition) "static inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "double" (function_declarator) "__byteswap_double(double x)" (identifier) "__byteswap_double" (parameter_list) "(double x)" (() "(" (parameter_declaration) "double x" (primitive_type) "double" (identifier) "x" ()) ")" (compound_statement) "{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}" ({) "{" (preproc_ifdef) "#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif" (#ifdef) "#ifdef" (identifier) "__arch_byteswap_double" (return_statement) "return __arch_byteswap_double(x);" (return) "return" (call_expression) "__arch_byteswap_double(x)" (identifier) "__arch_byteswap_double" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (preproc_else) "#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;" (#else) "#else" (declaration) "_u8 * raw = (_u8 *)&x;" (type_identifier) "_u8" (init_declarator) "* raw = (_u8 *)&x" (pointer_declarator) "* raw" (*) "*" (identifier) "raw" (=) "=" (cast_expression) "(_u8 *)&x" (() "(" (type_descriptor) "_u8 *" (type_identifier) "_u8" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&x" (&) "&" (identifier) "x" (;) ";" (expression_statement) "__fast_swap(raw[0], raw[7]);" (call_expression) "__fast_swap(raw[0], raw[7])" (identifier) "__fast_swap" (argument_list) "(raw[0], raw[7])" (() "(" (subscript_expression) "raw[0]" (identifier) "raw" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "raw[7]" (identifier) "raw" ([) "[" (number_literal) "7" (]) "]" ()) ")" (;) ";" (expression_statement) "__fast_swap(raw[1], raw[6]);" (call_expression) "__fast_swap(raw[1], raw[6])" (identifier) "__fast_swap" (argument_list) "(raw[1], raw[6])" (() "(" (subscript_expression) "raw[1]" (identifier) "raw" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "raw[6]" (identifier) "raw" ([) "[" (number_literal) "6" (]) "]" ()) ")" (;) ";" (expression_statement) "__fast_swap(raw[2], raw[5]);" (call_expression) "__fast_swap(raw[2], raw[5])" (identifier) "__fast_swap" (argument_list) "(raw[2], raw[5])" (() "(" (subscript_expression) "raw[2]" (identifier) "raw" ([) "[" (number_literal) "2" (]) "]" (,) "," (subscript_expression) "raw[5]" (identifier) "raw" ([) "[" (number_literal) "5" (]) "]" ()) ")" (;) ";" (expression_statement) "__fast_swap(raw[3], raw[4]);" (call_expression) "__fast_swap(raw[3], raw[4])" (identifier) "__fast_swap" (argument_list) "(raw[3], raw[4])" (() "(" (subscript_expression) "raw[3]" (identifier) "raw" ([) "[" (number_literal) "3" (]) "]" (,) "," (subscript_expression) "raw[4]" (identifier) "raw" ([) "[" (number_literal) "4" (]) "]" ()) ")" (;) ";" (return_statement) "return x;" (return) "return" (identifier) "x" (;) ";" (#endif) "#endif" (}) "}" (#endif) "#endif"
387
0
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 26.76, "nodes": 242, "errors": 0, "source_hash": "98ba6ae1a271767450764d1fbe77963c685345a5a933056e8b2fa6fb73af3a68", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 3, "type": "preproc_function_def", "text": "#define __static_byteswap_16(x) ((_u16)(\t\t\t\t\\\n\t(((_u16)(x) & (_u16)0x00FFU) << 8) |\t\t\t\\\n\t(((_u16)(x) & (_u16)0xFF00U) >> 8)))\n", "parent": null, "children": [4, 5, 6, 8], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "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": "__static_byteswap_16", "parent": 3, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 28}}, {"id": 6, "type": "preproc_params", "text": "(x)", "parent": 3, "children": [7], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 31}}, {"id": 7, "type": "identifier", "text": "x", "parent": 6, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 30}}, {"id": 8, "type": "preproc_arg", "text": "((_u16)(\t\t\t\t\\\n\t(((_u16)(x) & (_u16)0x00FFU) << 8) |\t\t\t\\\n\t(((_u16)(x) & (_u16)0xFF00U) >> 8)))", "parent": 3, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 9, "type": "preproc_function_def", "text": "#define __static_byteswap_32(x) ((_u32)(\t\t\t\t\\\n\t(((_u32)(x) & (_u32)0x000000FFUL) << 24) |\t\t\\\n\t(((_u32)(x) & (_u32)0x0000FF00UL) << 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0x00FF0000UL) >> 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0xFF000000UL) >> 24)))\n", "parent": null, "children": [10, 11, 12, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 11, "type": "identifier", "text": "__static_byteswap_32", "parent": 9, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 28}}, {"id": 12, "type": "preproc_params", "text": "(x)", "parent": 9, "children": [13], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 31}}, {"id": 13, "type": "identifier", "text": "x", "parent": 12, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 30}}, {"id": 14, "type": "preproc_arg", "text": "((_u32)(\t\t\t\t\\\n\t(((_u32)(x) & (_u32)0x000000FFUL) << 24) |\t\t\\\n\t(((_u32)(x) & (_u32)0x0000FF00UL) << 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0x00FF0000UL) >> 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0xFF000000UL) >> 24)))", "parent": 9, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 20, "column": 43}}, {"id": 15, "type": "preproc_function_def", "text": "#define __static_byteswap_64(x) ((_u64)(\t\t\t\t\\\n\t(((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) |\t\\\n\t(((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) |\t\\\n\t(((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) |\t\\\n\t(((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) |\t\\\n\t(((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) |\t\\\n\t(((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))\n", "parent": null, "children": [16, 17, 18, 20], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 17, "type": "identifier", "text": "__static_byteswap_64", "parent": 15, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 28}}, {"id": 18, "type": "preproc_params", "text": "(x)", "parent": 15, "children": [19], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 19, "type": "identifier", "text": "x", "parent": 18, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 20, "type": "preproc_arg", "text": "((_u64)(\t\t\t\t\\\n\t(((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) |\t\\\n\t(((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) |\t\\\n\t(((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) |\t\\\n\t(((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) |\t\\\n\t(((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) |\t\\\n\t(((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))", "parent": 15, "children": [], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 30, "column": 52}}, {"id": 21, "type": "preproc_function_def", "text": "#define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)\n", "parent": null, "children": [22, 23, 24, 27], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 23, "type": "identifier", "text": "__fast_swap", "parent": 21, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 19}}, {"id": 24, "type": "preproc_params", "text": "(a, b)", "parent": 21, "children": [25, 26], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 25}}, {"id": 25, "type": "identifier", "text": "a", "parent": 24, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 21}}, {"id": 26, "type": "identifier", "text": "b", "parent": 24, "children": [], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 24}}, {"id": 27, "type": "preproc_arg", "text": "do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)", "parent": 21, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 77}}, {"id": 28, "type": "function_definition", "text": "static inline _u16 __byteswap_16(_u16 x)\n{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif\n}", "parent": null, "children": [29, 31, 32], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 29, "type": "storage_class_specifier", "text": "inline", "parent": 28, "children": [30], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 13}}, {"id": 30, "type": "inline", "text": "inline", "parent": 29, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 13}}, {"id": 31, "type": "type_identifier", "text": "_u16", "parent": 28, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 32, "type": "function_declarator", "text": "__byteswap_16(_u16 x)", "parent": 28, "children": [33, 34], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 40}}, {"id": 33, "type": "identifier", "text": "__byteswap_16", "parent": 32, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 32}}, {"id": 34, "type": "parameter_list", "text": "(_u16 x)", "parent": 32, "children": [35], "start_point": {"row": 36, "column": 32}, "end_point": {"row": 36, "column": 40}}, {"id": 35, "type": "parameter_declaration", "text": "_u16 x", "parent": 34, "children": [36, 37], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 39}}, {"id": 36, "type": "type_identifier", "text": "_u16", "parent": 35, "children": [], "start_point": {"row": 36, "column": 33}, "end_point": {"row": 36, "column": 37}}, {"id": 37, "type": "identifier", "text": "x", "parent": 35, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 39}}, {"id": 38, "type": "preproc_ifdef", "text": "#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif", "parent": 28, "children": [39, 40, 41, 46, 53], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 39, "type": "#ifdef", "text": "#ifdef", "parent": 38, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 40, "type": "identifier", "text": "__arch_byteswap_16", "parent": 38, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 25}}, {"id": 41, "type": "return_statement", "text": "return __arch_byteswap_16(x);", "parent": 38, "children": [42], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 33}}, {"id": 42, "type": "call_expression", "text": "__arch_byteswap_16(x)", "parent": 41, "children": [43, 44], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 32}}, {"id": 43, "type": "identifier", "text": "__arch_byteswap_16", "parent": 42, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 29}}, {"id": 44, "type": "argument_list", "text": "(x)", "parent": 42, "children": [45], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 32}}, {"id": 45, "type": "identifier", "text": "x", "parent": 44, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 31}}, {"id": 46, "type": "preproc_else", "text": "#else\n return __static_byteswap_16(x);", "parent": 38, "children": [47, 48], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 35}}, {"id": 47, "type": "#else", "text": "#else", "parent": 46, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 5}}, {"id": 48, "type": "return_statement", "text": "return __static_byteswap_16(x);", "parent": 46, "children": [49], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 35}}, {"id": 49, "type": "call_expression", "text": "__static_byteswap_16(x)", "parent": 48, "children": [50, 51], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 34}}, {"id": 50, "type": "identifier", "text": "__static_byteswap_16", "parent": 49, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 31}}, {"id": 51, "type": "argument_list", "text": "(x)", "parent": 49, "children": [52], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 34}}, {"id": 52, "type": "identifier", "text": "x", "parent": 51, "children": [], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 33}}, {"id": 53, "type": "#endif", "text": "#endif", "parent": 38, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 54, "type": "function_definition", "text": "static inline _u32 __byteswap_32(_u32 x)\n{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif\n}", "parent": null, "children": [55, 57, 58], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 55, "type": "storage_class_specifier", "text": "inline", "parent": 54, "children": [56], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 13}}, {"id": 56, "type": "inline", "text": "inline", "parent": 55, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 13}}, {"id": 57, "type": "type_identifier", "text": "_u32", "parent": 54, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 18}}, {"id": 58, "type": "function_declarator", "text": "__byteswap_32(_u32 x)", "parent": 54, "children": [59, 60], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 40}}, {"id": 59, "type": "identifier", "text": "__byteswap_32", "parent": 58, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 32}}, {"id": 60, "type": "parameter_list", "text": "(_u32 x)", "parent": 58, "children": [61], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 40}}, {"id": 61, "type": "parameter_declaration", "text": "_u32 x", "parent": 60, "children": [62, 63], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 39}}, {"id": 62, "type": "type_identifier", "text": "_u32", "parent": 61, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 37}}, {"id": 63, "type": "identifier", "text": "x", "parent": 61, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 39}}, {"id": 64, "type": "preproc_ifdef", "text": "#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif", "parent": 54, "children": [65, 66, 67, 72, 79], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 65, "type": "#ifdef", "text": "#ifdef", "parent": 64, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 66, "type": "identifier", "text": "__arch_byteswap_32", "parent": 64, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 25}}, {"id": 67, "type": "return_statement", "text": "return __arch_byteswap_32(x);", "parent": 64, "children": [68], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 33}}, {"id": 68, "type": "call_expression", "text": "__arch_byteswap_32(x)", "parent": 67, "children": [69, 70], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 32}}, {"id": 69, "type": "identifier", "text": "__arch_byteswap_32", "parent": 68, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 29}}, {"id": 70, "type": "argument_list", "text": "(x)", "parent": 68, "children": [71], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 32}}, {"id": 71, "type": "identifier", "text": "x", "parent": 70, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 31}}, {"id": 72, "type": "preproc_else", "text": "#else\n return __static_byteswap_32(x);", "parent": 64, "children": [73, 74], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 35}}, {"id": 73, "type": "#else", "text": "#else", "parent": 72, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 5}}, {"id": 74, "type": "return_statement", "text": "return __static_byteswap_32(x);", "parent": 72, "children": [75], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 35}}, {"id": 75, "type": "call_expression", "text": "__static_byteswap_32(x)", "parent": 74, "children": [76, 77], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 34}}, {"id": 76, "type": "identifier", "text": "__static_byteswap_32", "parent": 75, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 31}}, {"id": 77, "type": "argument_list", "text": "(x)", "parent": 75, "children": [78], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 34}}, {"id": 78, "type": "identifier", "text": "x", "parent": 77, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 33}}, {"id": 79, "type": "#endif", "text": "#endif", "parent": 64, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 6}}, {"id": 80, "type": "function_definition", "text": "static inline _u64 __byteswap_64(_u64 x)\n{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif\n}", "parent": null, "children": [81, 83, 84], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 81, "type": "storage_class_specifier", "text": "inline", "parent": 80, "children": [82], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 13}}, {"id": 82, "type": "inline", "text": "inline", "parent": 81, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 13}}, {"id": 83, "type": "type_identifier", "text": "_u64", "parent": 80, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 18}}, {"id": 84, "type": "function_declarator", "text": "__byteswap_64(_u64 x)", "parent": 80, "children": [85, 86], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 40}}, {"id": 85, "type": "identifier", "text": "__byteswap_64", "parent": 84, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 32}}, {"id": 86, "type": "parameter_list", "text": "(_u64 x)", "parent": 84, "children": [87], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 40}}, {"id": 87, "type": "parameter_declaration", "text": "_u64 x", "parent": 86, "children": [88, 89], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 39}}, {"id": 88, "type": "type_identifier", "text": "_u64", "parent": 87, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 37}}, {"id": 89, "type": "identifier", "text": "x", "parent": 87, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 39}}, {"id": 90, "type": "preproc_ifdef", "text": "#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif", "parent": 80, "children": [91, 92, 93, 98, 105], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 91, "type": "#ifdef", "text": "#ifdef", "parent": 90, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 6}}, {"id": 92, "type": "identifier", "text": "__arch_byteswap_64", "parent": 90, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 25}}, {"id": 93, "type": "return_statement", "text": "return __arch_byteswap_64(x);", "parent": 90, "children": [94], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 33}}, {"id": 94, "type": "call_expression", "text": "__arch_byteswap_64(x)", "parent": 93, "children": [95, 96], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 32}}, {"id": 95, "type": "identifier", "text": "__arch_byteswap_64", "parent": 94, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 29}}, {"id": 96, "type": "argument_list", "text": "(x)", "parent": 94, "children": [97], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 32}}, {"id": 97, "type": "identifier", "text": "x", "parent": 96, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 31}}, {"id": 98, "type": "preproc_else", "text": "#else\n return __static_byteswap_64(x);", "parent": 90, "children": [99, 100], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 35}}, {"id": 99, "type": "#else", "text": "#else", "parent": 98, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 5}}, {"id": 100, "type": "return_statement", "text": "return __static_byteswap_64(x);", "parent": 98, "children": [101], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 35}}, {"id": 101, "type": "call_expression", "text": "__static_byteswap_64(x)", "parent": 100, "children": [102, 103], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 34}}, {"id": 102, "type": "identifier", "text": "__static_byteswap_64", "parent": 101, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 31}}, {"id": 103, "type": "argument_list", "text": "(x)", "parent": 101, "children": [104], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 34}}, {"id": 104, "type": "identifier", "text": "x", "parent": 103, "children": [], "start_point": {"row": 59, "column": 32}, "end_point": {"row": 59, "column": 33}}, {"id": 105, "type": "#endif", "text": "#endif", "parent": 90, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 106, "type": "preproc_ifdef", "text": "#ifdef float\nstatic inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}\n#endif", "parent": null, "children": [107, 108, 109, 164], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 107, "type": "#ifdef", "text": "#ifdef", "parent": 106, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 6}}, {"id": 108, "type": "identifier", "text": "float", "parent": 106, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 12}}, {"id": 109, "type": "function_definition", "text": "static inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}", "parent": 106, "children": [110, 112, 113], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 75, "column": 1}}, {"id": 110, "type": "storage_class_specifier", "text": "inline", "parent": 109, "children": [111], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 13}}, {"id": 111, "type": "inline", "text": "inline", "parent": 110, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 13}}, {"id": 112, "type": "primitive_type", "text": "float", "parent": 109, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 19}}, {"id": 113, "type": "function_declarator", "text": "__byteswap_float(float x)", "parent": 109, "children": [114, 115], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 45}}, {"id": 114, "type": "identifier", "text": "__byteswap_float", "parent": 113, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 36}}, {"id": 115, "type": "parameter_list", "text": "(float x)", "parent": 113, "children": [116], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 45}}, {"id": 116, "type": "parameter_declaration", "text": "float x", "parent": 115, "children": [117, 118], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 44}}, {"id": 117, "type": "primitive_type", "text": "float", "parent": 116, "children": [], "start_point": {"row": 65, "column": 37}, "end_point": {"row": 65, "column": 42}}, {"id": 118, "type": "identifier", "text": "x", "parent": 116, "children": [], "start_point": {"row": 65, "column": 43}, "end_point": {"row": 65, "column": 44}}, {"id": 119, "type": "preproc_ifdef", "text": "#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif", "parent": 109, "children": [120, 121, 122, 127, 163], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 120, "type": "#ifdef", "text": "#ifdef", "parent": 119, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 121, "type": "identifier", "text": "__arch_byteswap_float", "parent": 119, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 28}}, {"id": 122, "type": "return_statement", "text": "return __arch_byteswap_float(x);", "parent": 119, "children": [123], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 36}}, {"id": 123, "type": "call_expression", "text": "__arch_byteswap_float(x)", "parent": 122, "children": [124, 125], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 35}}, {"id": 124, "type": "identifier", "text": "__arch_byteswap_float", "parent": 123, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 32}}, {"id": 125, "type": "argument_list", "text": "(x)", "parent": 123, "children": [126], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 35}}, {"id": 126, "type": "identifier", "text": "x", "parent": 125, "children": [], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 34}}, {"id": 127, "type": "preproc_else", "text": "#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;", "parent": 119, "children": [128, 129, 161], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 73, "column": 13}}, {"id": 128, "type": "#else", "text": "#else", "parent": 127, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 5}}, {"id": 129, "type": "declaration", "text": "_u8 * raw = (_u8 *)&x;", "parent": 127, "children": [130, 131], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 26}}, {"id": 130, "type": "type_identifier", "text": "_u8", "parent": 129, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 7}}, {"id": 131, "type": "init_declarator", "text": "* raw = (_u8 *)&x", "parent": 129, "children": [132, 135, 136], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 25}}, {"id": 132, "type": "pointer_declarator", "text": "* raw", "parent": 131, "children": [133, 134], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 13}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 9}}, {"id": 134, "type": "identifier", "text": "raw", "parent": 132, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 13}}, {"id": 135, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 15}}, {"id": 136, "type": "cast_expression", "text": "(_u8 *)&x", "parent": 131, "children": [137, 141], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 25}}, {"id": 137, "type": "type_descriptor", "text": "_u8 *", "parent": 136, "children": [138, 139], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 22}}, {"id": 138, "type": "type_identifier", "text": "_u8", "parent": 137, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 20}}, {"id": 139, "type": "abstract_pointer_declarator", "text": "*", "parent": 137, "children": [140], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 141, "type": "pointer_expression", "text": "&x", "parent": 136, "children": [142], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 25}}, {"id": 142, "type": "identifier", "text": "x", "parent": 141, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 25}}, {"id": 143, "type": "call_expression", "text": "__fast_swap(raw[0], raw[3])", "parent": 127, "children": [144, 145], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 31}}, {"id": 144, "type": "identifier", "text": "__fast_swap", "parent": 143, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 15}}, {"id": 145, "type": "argument_list", "text": "(raw[0], raw[3])", "parent": 143, "children": [146, 149], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 31}}, {"id": 146, "type": "subscript_expression", "text": "raw[0]", "parent": 145, "children": [147, 148], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 22}}, {"id": 147, "type": "identifier", "text": "raw", "parent": 146, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 19}}, {"id": 148, "type": "number_literal", "text": "0", "parent": 146, "children": [], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 21}}, {"id": 149, "type": "subscript_expression", "text": "raw[3]", "parent": 145, "children": [150, 151], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 30}}, {"id": 150, "type": "identifier", "text": "raw", "parent": 149, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 27}}, {"id": 151, "type": "number_literal", "text": "3", "parent": 149, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 29}}, {"id": 152, "type": "call_expression", "text": "__fast_swap(raw[1], raw[2])", "parent": 127, "children": [153, 154], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 31}}, {"id": 153, "type": "identifier", "text": "__fast_swap", "parent": 152, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 15}}, {"id": 154, "type": "argument_list", "text": "(raw[1], raw[2])", "parent": 152, "children": [155, 158], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 31}}, {"id": 155, "type": "subscript_expression", "text": "raw[1]", "parent": 154, "children": [156, 157], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 22}}, {"id": 156, "type": "identifier", "text": "raw", "parent": 155, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 19}}, {"id": 157, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 21}}, {"id": 158, "type": "subscript_expression", "text": "raw[2]", "parent": 154, "children": [159, 160], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 30}}, {"id": 159, "type": "identifier", "text": "raw", "parent": 158, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 27}}, {"id": 160, "type": "number_literal", "text": "2", "parent": 158, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 29}}, {"id": 161, "type": "return_statement", "text": "return x;", "parent": 127, "children": [162], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 13}}, {"id": 162, "type": "identifier", "text": "x", "parent": 161, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 12}}, {"id": 163, "type": "#endif", "text": "#endif", "parent": 119, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 164, "type": "#endif", "text": "#endif", "parent": 106, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 6}}, {"id": 165, "type": "preproc_ifdef", "text": "#ifdef double\nstatic inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}\n#endif", "parent": null, "children": [166, 167, 168, 241], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 166, "type": "#ifdef", "text": "#ifdef", "parent": 165, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 167, "type": "identifier", "text": "double", "parent": 165, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 168, "type": "function_definition", "text": "static inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}", "parent": 165, "children": [169, 171, 172], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 92, "column": 1}}, {"id": 169, "type": "storage_class_specifier", "text": "inline", "parent": 168, "children": [170], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 170, "type": "inline", "text": "inline", "parent": 169, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 13}}, {"id": 171, "type": "primitive_type", "text": "double", "parent": 168, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 20}}, {"id": 172, "type": "function_declarator", "text": "__byteswap_double(double x)", "parent": 168, "children": [173, 174], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 48}}, {"id": 173, "type": "identifier", "text": "__byteswap_double", "parent": 172, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 38}}, {"id": 174, "type": "parameter_list", "text": "(double x)", "parent": 172, "children": [175], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 48}}, {"id": 175, "type": "parameter_declaration", "text": "double x", "parent": 174, "children": [176, 177], "start_point": {"row": 80, "column": 39}, "end_point": {"row": 80, "column": 47}}, {"id": 176, "type": "primitive_type", "text": "double", "parent": 175, "children": [], "start_point": {"row": 80, "column": 39}, "end_point": {"row": 80, "column": 45}}, {"id": 177, "type": "identifier", "text": "x", "parent": 175, "children": [], "start_point": {"row": 80, "column": 46}, "end_point": {"row": 80, "column": 47}}, {"id": 178, "type": "preproc_ifdef", "text": "#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif", "parent": 168, "children": [179, 180, 181, 186, 240], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 179, "type": "#ifdef", "text": "#ifdef", "parent": 178, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 6}}, {"id": 180, "type": "identifier", "text": "__arch_byteswap_double", "parent": 178, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 29}}, {"id": 181, "type": "return_statement", "text": "return __arch_byteswap_double(x);", "parent": 178, "children": [182], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 37}}, {"id": 182, "type": "call_expression", "text": "__arch_byteswap_double(x)", "parent": 181, "children": [183, 184], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 36}}, {"id": 183, "type": "identifier", "text": "__arch_byteswap_double", "parent": 182, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 33}}, {"id": 184, "type": "argument_list", "text": "(x)", "parent": 182, "children": [185], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 36}}, {"id": 185, "type": "identifier", "text": "x", "parent": 184, "children": [], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 35}}, {"id": 186, "type": "preproc_else", "text": "#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;", "parent": 178, "children": [187, 188, 238], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 90, "column": 13}}, {"id": 187, "type": "#else", "text": "#else", "parent": 186, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 5}}, {"id": 188, "type": "declaration", "text": "_u8 * raw = (_u8 *)&x;", "parent": 186, "children": [189, 190], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 26}}, {"id": 189, "type": "type_identifier", "text": "_u8", "parent": 188, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 7}}, {"id": 190, "type": "init_declarator", "text": "* raw = (_u8 *)&x", "parent": 188, "children": [191, 194, 195], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 25}}, {"id": 191, "type": "pointer_declarator", "text": "* raw", "parent": 190, "children": [192, 193], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 13}}, {"id": 192, "type": "*", "text": "*", "parent": 191, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 9}}, {"id": 193, "type": "identifier", "text": "raw", "parent": 191, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 13}}, {"id": 194, "type": "=", "text": "=", "parent": 190, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 15}}, {"id": 195, "type": "cast_expression", "text": "(_u8 *)&x", "parent": 190, "children": [196, 200], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 25}}, {"id": 196, "type": "type_descriptor", "text": "_u8 *", "parent": 195, "children": [197, 198], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 22}}, {"id": 197, "type": "type_identifier", "text": "_u8", "parent": 196, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 20}}, {"id": 198, "type": "abstract_pointer_declarator", "text": "*", "parent": 196, "children": [199], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 22}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 85, "column": 21}, "end_point": {"row": 85, "column": 22}}, {"id": 200, "type": "pointer_expression", "text": "&x", "parent": 195, "children": [201], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 25}}, {"id": 201, "type": "identifier", "text": "x", "parent": 200, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 25}}, {"id": 202, "type": "call_expression", "text": "__fast_swap(raw[0], raw[7])", "parent": 186, "children": [203, 204], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 31}}, {"id": 203, "type": "identifier", "text": "__fast_swap", "parent": 202, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 15}}, {"id": 204, "type": "argument_list", "text": "(raw[0], raw[7])", "parent": 202, "children": [205, 208], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 31}}, {"id": 205, "type": "subscript_expression", "text": "raw[0]", "parent": 204, "children": [206, 207], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 22}}, {"id": 206, "type": "identifier", "text": "raw", "parent": 205, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 19}}, {"id": 207, "type": "number_literal", "text": "0", "parent": 205, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 21}}, {"id": 208, "type": "subscript_expression", "text": "raw[7]", "parent": 204, "children": [209, 210], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 30}}, {"id": 209, "type": "identifier", "text": "raw", "parent": 208, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 27}}, {"id": 210, "type": "number_literal", "text": "7", "parent": 208, "children": [], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 29}}, {"id": 211, "type": "call_expression", "text": "__fast_swap(raw[1], raw[6])", "parent": 186, "children": [212, 213], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 31}}, {"id": 212, "type": "identifier", "text": "__fast_swap", "parent": 211, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 15}}, {"id": 213, "type": "argument_list", "text": "(raw[1], raw[6])", "parent": 211, "children": [214, 217], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 31}}, {"id": 214, "type": "subscript_expression", "text": "raw[1]", "parent": 213, "children": [215, 216], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 22}}, {"id": 215, "type": "identifier", "text": "raw", "parent": 214, "children": [], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 19}}, {"id": 216, "type": "number_literal", "text": "1", "parent": 214, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 217, "type": "subscript_expression", "text": "raw[6]", "parent": 213, "children": [218, 219], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 30}}, {"id": 218, "type": "identifier", "text": "raw", "parent": 217, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 27}}, {"id": 219, "type": "number_literal", "text": "6", "parent": 217, "children": [], "start_point": {"row": 87, "column": 28}, "end_point": {"row": 87, "column": 29}}, {"id": 220, "type": "call_expression", "text": "__fast_swap(raw[2], raw[5])", "parent": 186, "children": [221, 222], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 31}}, {"id": 221, "type": "identifier", "text": "__fast_swap", "parent": 220, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 15}}, {"id": 222, "type": "argument_list", "text": "(raw[2], raw[5])", "parent": 220, "children": [223, 226], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 31}}, {"id": 223, "type": "subscript_expression", "text": "raw[2]", "parent": 222, "children": [224, 225], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 22}}, {"id": 224, "type": "identifier", "text": "raw", "parent": 223, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 19}}, {"id": 225, "type": "number_literal", "text": "2", "parent": 223, "children": [], "start_point": {"row": 88, "column": 20}, "end_point": {"row": 88, "column": 21}}, {"id": 226, "type": "subscript_expression", "text": "raw[5]", "parent": 222, "children": [227, 228], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 30}}, {"id": 227, "type": "identifier", "text": "raw", "parent": 226, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 27}}, {"id": 228, "type": "number_literal", "text": "5", "parent": 226, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 229, "type": "call_expression", "text": "__fast_swap(raw[3], raw[4])", "parent": 186, "children": [230, 231], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 31}}, {"id": 230, "type": "identifier", "text": "__fast_swap", "parent": 229, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 15}}, {"id": 231, "type": "argument_list", "text": "(raw[3], raw[4])", "parent": 229, "children": [232, 235], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 31}}, {"id": 232, "type": "subscript_expression", "text": "raw[3]", "parent": 231, "children": [233, 234], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 22}}, {"id": 233, "type": "identifier", "text": "raw", "parent": 232, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 19}}, {"id": 234, "type": "number_literal", "text": "3", "parent": 232, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 21}}, {"id": 235, "type": "subscript_expression", "text": "raw[4]", "parent": 231, "children": [236, 237], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 30}}, {"id": 236, "type": "identifier", "text": "raw", "parent": 235, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 27}}, {"id": 237, "type": "number_literal", "text": "4", "parent": 235, "children": [], "start_point": {"row": 89, "column": 28}, "end_point": {"row": 89, "column": 29}}, {"id": 238, "type": "return_statement", "text": "return x;", "parent": 186, "children": [239], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 13}}, {"id": 239, "type": "identifier", "text": "x", "parent": 238, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 12}}, {"id": 240, "type": "#endif", "text": "#endif", "parent": 178, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 241, "type": "#endif", "text": "#endif", "parent": 165, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}]}, "node_categories": {"declarations": {"functions": [3, 9, 15, 21, 28, 32, 54, 58, 80, 84, 109, 113, 168, 172], "variables": [35, 61, 87, 116, 129, 175, 188], "classes": [29, 55, 81, 110, 169], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [42, 49, 68, 75, 94, 101, 123, 136, 141, 143, 146, 149, 152, 155, 158, 182, 195, 200, 202, 205, 208, 211, 214, 217, 220, 223, 226, 229, 232, 235], "assignments": [], "loops": [], "conditionals": [5, 7, 11, 13, 17, 19, 23, 25, 26, 31, 33, 36, 37, 38, 39, 40, 43, 45, 50, 52, 53, 57, 59, 62, 63, 64, 65, 66, 69, 71, 76, 78, 79, 83, 85, 88, 89, 90, 91, 92, 95, 97, 102, 104, 105, 106, 107, 108, 114, 118, 119, 120, 121, 124, 126, 130, 134, 138, 142, 144, 147, 150, 153, 156, 159, 162, 163, 164, 165, 166, 167, 173, 177, 178, 179, 180, 183, 185, 189, 193, 197, 201, 203, 206, 209, 212, 215, 218, 221, 224, 227, 230, 233, 236, 239, 240, 241], "returns": [41, 48, 67, 74, 93, 100, 122, 161, 181, 238], "exceptions": []}, "expressions": {"calls": [0], "literals": [148, 151, 157, 160, 207, 210, 216, 219, 225, 228, 234, 237], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "#define __static_byteswap_16(x) ((_u16)(\t\t\t\t\\\n\t(((_u16)(x) & (_u16)0x00FFU) << 8) |\t\t\t\\\n\t(((_u16)(x"}, {"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "#define __static_byteswap_32(x) ((_u32)(\t\t\t\t\\\n\t(((_u32)(x) & (_u32)0x000000FFUL) << 24) |\t\t\\\n\t(((_u3"}, {"node_id": 15, "universal_type": "function", "name": "unknown", "text_snippet": "#define __static_byteswap_64(x) ((_u64)(\t\t\t\t\\\n\t(((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) |\t\\"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "#define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)\n"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "static inline _u16 __byteswap_16(_u16 x)\n{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "__byteswap_16(_u16 x)"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "static inline _u32 __byteswap_32(_u32 x)\n{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "__byteswap_32(_u32 x)"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "static inline _u64 __byteswap_64(_u64 x)\n{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "__byteswap_64(_u64 x)"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "static inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_bytes"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "__byteswap_float(float x)"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "static inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_b"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "__byteswap_double(double x)"}], "class_declarations": [{"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 55, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 81, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 110, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 169, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": []}, "original_source_code": "/*\n * RoboPeak Project\n * Copyright 2009 - 2013\n * \n * RPOS - Byte Operations\n *\n */\n\n#pragma once\n\n// byte swapping operations for compiling time\n\n#define __static_byteswap_16(x) ((_u16)(\t\t\t\t\\\n\t(((_u16)(x) & (_u16)0x00FFU) << 8) |\t\t\t\\\n\t(((_u16)(x) & (_u16)0xFF00U) >> 8)))\n\n#define __static_byteswap_32(x) ((_u32)(\t\t\t\t\\\n\t(((_u32)(x) & (_u32)0x000000FFUL) << 24) |\t\t\\\n\t(((_u32)(x) & (_u32)0x0000FF00UL) << 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0x00FF0000UL) >> 8) |\t\t\\\n\t(((_u32)(x) & (_u32)0xFF000000UL) >> 24)))\n\n#define __static_byteswap_64(x) ((_u64)(\t\t\t\t\\\n\t(((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) |\t\\\n\t(((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) |\t\\\n\t(((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) |\t\\\n\t(((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) |\t\\\n\t(((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) |\t\\\n\t(((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) |\t\\\n\t(((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))\n\n\n#define __fast_swap(a, b) do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)\n\n\nstatic inline _u16 __byteswap_16(_u16 x)\n{\n#ifdef __arch_byteswap_16\n return __arch_byteswap_16(x);\n#else\n return __static_byteswap_16(x);\n#endif\n}\n\nstatic inline _u32 __byteswap_32(_u32 x)\n{\n#ifdef __arch_byteswap_32\n return __arch_byteswap_32(x);\n#else\n return __static_byteswap_32(x);\n#endif\n}\n\nstatic inline _u64 __byteswap_64(_u64 x)\n{\n#ifdef __arch_byteswap_64\n return __arch_byteswap_64(x);\n#else\n return __static_byteswap_64(x);\n#endif\n}\n\n\n#ifdef float\nstatic inline float __byteswap_float(float x)\n{\n#ifdef __arch_byteswap_float\n return __arch_byteswap_float(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[3]);\n __fast_swap(raw[1], raw[2]);\n return x;\n#endif\n}\n#endif\n\n\n#ifdef double\nstatic inline double __byteswap_double(double x)\n{\n#ifdef __arch_byteswap_double\n return __arch_byteswap_double(x);\n#else\n _u8 * raw = (_u8 *)&x;\n __fast_swap(raw[0], raw[7]);\n __fast_swap(raw[1], raw[6]);\n __fast_swap(raw[2], raw[5]);\n __fast_swap(raw[3], raw[4]);\n return x;\n#endif\n}\n#endif\n"}
80,751
c
#pragma once #ifndef QMK_KEYS_PER_SCAN #define QMK_KEYS_PER_SCAN 4 #endif // QMK KEYS PER SCAN // this makes it possible to do rolling combos (zx) with keys that // convert to other keys on hold (z becomes ctrl when you hold it, // and when this option isn't enabled, z rapidly followed by x // actually sends Ctrl-x. That's bad.) #define IGNORE_MOD_TAP_INTERRUPT #undef PERMISSIVE_HOLD #ifdef TAPPING_TERM #undef TAPPING_TERM #endif // TAPPING_TERM #define TAPPING_TERM 175 // Disable action_get_macro and fn_actions, since we don't use these // and it saves on space in the firmware. #ifndef NO_DEBUG #define NO_DEBUG #endif // !NO_DEBUG #if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE) #define NO_PRINT #endif // !NO_PRINT #define NO_ACTION_MACRO #define NO_ACTION_FUNCTION #define DISABLE_LEADER #define MACRO_TIMER 5
30.77
26
(translation_unit) "#pragma once\n\n#ifndef QMK_KEYS_PER_SCAN\n #define QMK_KEYS_PER_SCAN 4\n#endif // QMK KEYS PER SCAN\n\n// this makes it possible to do rolling combos (zx) with keys that\n// convert to other keys on hold (z becomes ctrl when you hold it,\n// and when this option isn't enabled, z rapidly followed by x\n// actually sends Ctrl-x. That's bad.)\n#define IGNORE_MOD_TAP_INTERRUPT\n#undef PERMISSIVE_HOLD\n\n#ifdef TAPPING_TERM\n#undef TAPPING_TERM\n#endif // TAPPING_TERM\n#define TAPPING_TERM 175\n\n// Disable action_get_macro and fn_actions, since we don't use these\n// and it saves on space in the firmware.\n#ifndef NO_DEBUG\n#define NO_DEBUG\n#endif // !NO_DEBUG\n#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)\n#define NO_PRINT\n#endif // !NO_PRINT\n#define NO_ACTION_MACRO\n#define NO_ACTION_FUNCTION\n\n#define DISABLE_LEADER\n\n#define MACRO_TIMER 5\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef QMK_KEYS_PER_SCAN\n #define QMK_KEYS_PER_SCAN 4\n#endif" (#ifndef) "#ifndef" (identifier) "QMK_KEYS_PER_SCAN" (preproc_def) "#define QMK_KEYS_PER_SCAN 4\n" (#define) "#define" (identifier) "QMK_KEYS_PER_SCAN" (preproc_arg) "4" (#endif) "#endif" (comment) "// QMK KEYS PER SCAN" (comment) "// this makes it possible to do rolling combos (zx) with keys that" (comment) "// convert to other keys on hold (z becomes ctrl when you hold it," (comment) "// and when this option isn't enabled, z rapidly followed by x" (comment) "// actually sends Ctrl-x. That's bad.)" (preproc_def) "#define IGNORE_MOD_TAP_INTERRUPT\n" (#define) "#define" (identifier) "IGNORE_MOD_TAP_INTERRUPT" (preproc_call) "#undef PERMISSIVE_HOLD\n" (preproc_directive) "#undef" (preproc_arg) "PERMISSIVE_HOLD" (preproc_ifdef) "#ifdef TAPPING_TERM\n#undef TAPPING_TERM\n#endif" (#ifdef) "#ifdef" (identifier) "TAPPING_TERM" (preproc_call) "#undef TAPPING_TERM\n" (preproc_directive) "#undef" (preproc_arg) "TAPPING_TERM" (#endif) "#endif" (comment) "// TAPPING_TERM" (preproc_def) "#define TAPPING_TERM 175\n" (#define) "#define" (identifier) "TAPPING_TERM" (preproc_arg) "175" (comment) "// Disable action_get_macro and fn_actions, since we don't use these" (comment) "// and it saves on space in the firmware." (preproc_ifdef) "#ifndef NO_DEBUG\n#define NO_DEBUG\n#endif" (#ifndef) "#ifndef" (identifier) "NO_DEBUG" (preproc_def) "#define NO_DEBUG\n" (#define) "#define" (identifier) "NO_DEBUG" (#endif) "#endif" (comment) "// !NO_DEBUG" (preproc_if) "#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)\n#define NO_PRINT\n#endif" (#if) "#if" (binary_expression) "!defined(NO_PRINT) && !defined(CONSOLE_ENABLE)" (unary_expression) "!defined(NO_PRINT)" (!) "!" (preproc_defined) "defined(NO_PRINT)" (defined) "defined" (() "(" (identifier) "NO_PRINT" ()) ")" (&&) "&&" (unary_expression) "!defined(CONSOLE_ENABLE)" (!) "!" (preproc_defined) "defined(CONSOLE_ENABLE)" (defined) "defined" (() "(" (identifier) "CONSOLE_ENABLE" ()) ")" ( ) "\n" (preproc_def) "#define NO_PRINT\n" (#define) "#define" (identifier) "NO_PRINT" (#endif) "#endif" (comment) "// !NO_PRINT" (preproc_def) "#define NO_ACTION_MACRO\n" (#define) "#define" (identifier) "NO_ACTION_MACRO" (preproc_def) "#define NO_ACTION_FUNCTION\n" (#define) "#define" (identifier) "NO_ACTION_FUNCTION" (preproc_def) "#define DISABLE_LEADER\n" (#define) "#define" (identifier) "DISABLE_LEADER" (preproc_def) "#define MACRO_TIMER 5\n" (#define) "#define" (identifier) "MACRO_TIMER" (preproc_arg) "5"
82
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 30.77, "nodes": 67, "errors": 0, "source_hash": "3acc863bebe011934fda55d181a0b031bcfe0fd7d72c08948aa064e1281c4f40", "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_ifdef", "text": "#ifndef QMK_KEYS_PER_SCAN\n #define QMK_KEYS_PER_SCAN 4\n#endif", "parent": null, "children": [4, 5, 6, 10], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "QMK_KEYS_PER_SCAN", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 25}}, {"id": 6, "type": "preproc_def", "text": "#define QMK_KEYS_PER_SCAN 4\n", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 9}}, {"id": 8, "type": "identifier", "text": "QMK_KEYS_PER_SCAN", "parent": 6, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 27}}, {"id": 9, "type": "preproc_arg", "text": "4", "parent": 6, "children": [], "start_point": {"row": 3, "column": 28}, "end_point": {"row": 3, "column": 29}}, {"id": 10, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "preproc_def", "text": "#define IGNORE_MOD_TAP_INTERRUPT\n", "parent": null, "children": [12, 13], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 13, "type": "identifier", "text": "IGNORE_MOD_TAP_INTERRUPT", "parent": 11, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 32}}, {"id": 14, "type": "preproc_call", "text": "#undef PERMISSIVE_HOLD\n", "parent": null, "children": [15, 16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 15, "type": "preproc_directive", "text": "#undef", "parent": 14, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 16, "type": "preproc_arg", "text": "PERMISSIVE_HOLD", "parent": 14, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 22}}, {"id": 17, "type": "preproc_ifdef", "text": "#ifdef TAPPING_TERM\n#undef TAPPING_TERM\n#endif", "parent": null, "children": [18, 19, 20, 23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 18, "type": "#ifdef", "text": "#ifdef", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 19, "type": "identifier", "text": "TAPPING_TERM", "parent": 17, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 19}}, {"id": 20, "type": "preproc_call", "text": "#undef TAPPING_TERM\n", "parent": 17, "children": [21, 22], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 21, "type": "preproc_directive", "text": "#undef", "parent": 20, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 22, "type": "preproc_arg", "text": "TAPPING_TERM", "parent": 20, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 19}}, {"id": 23, "type": "#endif", "text": "#endif", "parent": 17, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 24, "type": "preproc_def", "text": "#define TAPPING_TERM 175\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 26, "type": "identifier", "text": "TAPPING_TERM", "parent": 24, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 20}}, {"id": 27, "type": "preproc_arg", "text": "175", "parent": 24, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 24}}, {"id": 28, "type": "preproc_ifdef", "text": "#ifndef NO_DEBUG\n#define NO_DEBUG\n#endif", "parent": null, "children": [29, 30, 31, 34], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 29, "type": "#ifndef", "text": "#ifndef", "parent": 28, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 30, "type": "identifier", "text": "NO_DEBUG", "parent": 28, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 31, "type": "preproc_def", "text": "#define NO_DEBUG\n", "parent": 28, "children": [32, 33], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 33, "type": "identifier", "text": "NO_DEBUG", "parent": 31, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 16}}, {"id": 34, "type": "#endif", "text": "#endif", "parent": 28, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 35, "type": "preproc_if", "text": "#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)\n#define NO_PRINT\n#endif", "parent": null, "children": [36, 37, 49, 50, 53], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 36, "type": "#if", "text": "#if", "parent": 35, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 37, "type": "binary_expression", "text": "!defined(NO_PRINT) && !defined(CONSOLE_ENABLE)", "parent": 35, "children": [38, 43, 44], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 50}}, {"id": 38, "type": "unary_expression", "text": "!defined(NO_PRINT)", "parent": 37, "children": [39, 40], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 22}}, {"id": 39, "type": "!", "text": "!", "parent": 38, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 40, "type": "preproc_defined", "text": "defined(NO_PRINT)", "parent": 38, "children": [41, 42], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 22}}, {"id": 41, "type": "defined", "text": "defined", "parent": 40, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 12}}, {"id": 42, "type": "identifier", "text": "NO_PRINT", "parent": 40, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 21}}, {"id": 43, "type": "&&", "text": "&&", "parent": 37, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 25}}, {"id": 44, "type": "unary_expression", "text": "!defined(CONSOLE_ENABLE)", "parent": 37, "children": [45, 46], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 50}}, {"id": 45, "type": "!", "text": "!", "parent": 44, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 27}}, {"id": 46, "type": "preproc_defined", "text": "defined(CONSOLE_ENABLE)", "parent": 44, "children": [47, 48], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 50}}, {"id": 47, "type": "defined", "text": "defined", "parent": 46, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 34}}, {"id": 48, "type": "identifier", "text": "CONSOLE_ENABLE", "parent": 46, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 49}}, {"id": 49, "type": "\n", "text": "\n", "parent": 35, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 24, "column": 0}}, {"id": 50, "type": "preproc_def", "text": "#define NO_PRINT\n", "parent": 35, "children": [51, 52], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 52, "type": "identifier", "text": "NO_PRINT", "parent": 50, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 16}}, {"id": 53, "type": "#endif", "text": "#endif", "parent": 35, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 54, "type": "preproc_def", "text": "#define NO_ACTION_MACRO\n", "parent": null, "children": [55, 56], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 56, "type": "identifier", "text": "NO_ACTION_MACRO", "parent": 54, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 23}}, {"id": 57, "type": "preproc_def", "text": "#define NO_ACTION_FUNCTION\n", "parent": null, "children": [58, 59], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 58, "type": "#define", "text": "#define", "parent": 57, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 59, "type": "identifier", "text": "NO_ACTION_FUNCTION", "parent": 57, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 26}}, {"id": 60, "type": "preproc_def", "text": "#define DISABLE_LEADER\n", "parent": null, "children": [61, 62], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 62, "type": "identifier", "text": "DISABLE_LEADER", "parent": 60, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 22}}, {"id": 63, "type": "preproc_def", "text": "#define MACRO_TIMER 5\n", "parent": null, "children": [64, 65, 66], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 64, "type": "#define", "text": "#define", "parent": 63, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 65, "type": "identifier", "text": "MACRO_TIMER", "parent": 63, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 19}}, {"id": 66, "type": "preproc_arg", "text": "5", "parent": 63, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [37, 38, 44], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 10, 13, 17, 18, 19, 23, 26, 28, 29, 30, 33, 34, 35, 36, 42, 48, 52, 53, 56, 59, 62, 65], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 14, 20], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n\n#ifndef QMK_KEYS_PER_SCAN\n #define QMK_KEYS_PER_SCAN 4\n#endif // QMK KEYS PER SCAN\n\n// this makes it possible to do rolling combos (zx) with keys that\n// convert to other keys on hold (z becomes ctrl when you hold it,\n// and when this option isn't enabled, z rapidly followed by x\n// actually sends Ctrl-x. That's bad.)\n#define IGNORE_MOD_TAP_INTERRUPT\n#undef PERMISSIVE_HOLD\n\n#ifdef TAPPING_TERM\n#undef TAPPING_TERM\n#endif // TAPPING_TERM\n#define TAPPING_TERM 175\n\n// Disable action_get_macro and fn_actions, since we don't use these\n// and it saves on space in the firmware.\n#ifndef NO_DEBUG\n#define NO_DEBUG\n#endif // !NO_DEBUG\n#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)\n#define NO_PRINT\n#endif // !NO_PRINT\n#define NO_ACTION_MACRO\n#define NO_ACTION_FUNCTION\n\n#define DISABLE_LEADER\n\n#define MACRO_TIMER 5\n"}
80,752
c
Stub content: Drivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c
40
2
(translation_unit) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c\n" (declaration) "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c" (type_identifier) "Stub" (ERROR) "content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15." (identifier) "content" (:) ":" (identifier) "Drivers" (/) "/" (identifier) "CMSIS" (/) "/" (identifier) "DSP_Lib" (/) "/" (identifier) "Source" (/) "/" (identifier) "ControllerFunctions" (/) "/" (identifier) "arm_pid_init_q15" (.) "." (identifier) "c" (;) ""
20
1
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 40.0, "nodes": 16, "errors": 0, "source_hash": "c6be0044e5fd58c8c32e9ea1aedfcbfbc86cf7ab23b75a0d20dadd9dbf0b7da7", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c", "parent": null, "children": [1, 2, 15], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 67}}, {"id": 1, "type": "type_identifier", "text": "Stub", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 4}}, {"id": 2, "type": "ERROR", "text": "content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.", "parent": 0, "children": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 1, "column": 66}}, {"id": 3, "type": "identifier", "text": "content", "parent": 2, "children": [], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 0, "column": 12}}, {"id": 4, "type": "identifier", "text": "Drivers", "parent": 2, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "/", "text": "/", "parent": 2, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 8}}, {"id": 6, "type": "identifier", "text": "CMSIS", "parent": 2, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 13}}, {"id": 7, "type": "/", "text": "/", "parent": 2, "children": [], "start_point": {"row": 1, "column": 13}, "end_point": {"row": 1, "column": 14}}, {"id": 8, "type": "identifier", "text": "DSP_Lib", "parent": 2, "children": [], "start_point": {"row": 1, "column": 14}, "end_point": {"row": 1, "column": 21}}, {"id": 9, "type": "/", "text": "/", "parent": 2, "children": [], "start_point": {"row": 1, "column": 21}, "end_point": {"row": 1, "column": 22}}, {"id": 10, "type": "identifier", "text": "Source", "parent": 2, "children": [], "start_point": {"row": 1, "column": 22}, "end_point": {"row": 1, "column": 28}}, {"id": 11, "type": "/", "text": "/", "parent": 2, "children": [], "start_point": {"row": 1, "column": 28}, "end_point": {"row": 1, "column": 29}}, {"id": 12, "type": "identifier", "text": "ControllerFunctions", "parent": 2, "children": [], "start_point": {"row": 1, "column": 29}, "end_point": {"row": 1, "column": 48}}, {"id": 13, "type": "/", "text": "/", "parent": 2, "children": [], "start_point": {"row": 1, "column": 48}, "end_point": {"row": 1, "column": 49}}, {"id": 14, "type": "identifier", "text": "arm_pid_init_q15", "parent": 2, "children": [], "start_point": {"row": 1, "column": 49}, "end_point": {"row": 1, "column": 65}}, {"id": 15, "type": "identifier", "text": "c", "parent": 0, "children": [], "start_point": {"row": 1, "column": 66}, "end_point": {"row": 1, "column": 67}}]}, "node_categories": {"declarations": {"functions": [], "variables": [0], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [1, 3, 4, 6, 8, 10, 12, 14, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "Stub content:\nDrivers/CMSIS/DSP_Lib/Source/ControllerFunctions/arm_pid_init_q15.c\n"}
80,753
c
// // MotionViewController.h // Never Stop // // Created by dllo on 16/10/20. // Copyright © 2016年 JDT. All rights reserved. // #import <UIKit/UIKit.h> @interface MotionViewController : UIViewController @end
20.2
10
(translation_unit) "//\n// MotionViewController.h\n// Never Stop\n//\n// Created by dllo on 16/10/20.\n// Copyright © 2016年 JDT. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MotionViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// MotionViewController.h" (comment) "// Never Stop" (comment) "//" (comment) "// Created by dllo on 16/10/20." (comment) "// Copyright © 2016年 JDT. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <UIKit/UIKit.h>\n\n@i" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n\n@" (ERROR) "terface MotionViewController : UIViewController\n\n@end\n" (ERROR) "t" (type_identifier) "erface Mo" (identifier) "ionViewController : " (:) "I" (identifier) "iewController\n\n@" (ERROR) "d" (identifier) "\n"
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 20.2, "nodes": 10, "errors": 0, "source_hash": "ede68866f7e17f74f590081ecc646cb41408acd6772a08f3d28dca2bc0eb183e", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n\n@i", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/UIKit.h>\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "terface MotionViewController : UIViewController\n\n@end\n", "parent": null, "children": [4, 5, 6, 7, 8, 9], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 4}}, {"id": 4, "type": "ERROR", "text": "t", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "erface Mo", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "identifier", "text": "ionViewController : ", "parent": 3, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 31}}, {"id": 7, "type": "identifier", "text": "iewController\n\n@", "parent": 3, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 50}}, {"id": 8, "type": "ERROR", "text": "d", "parent": 3, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 9, "type": "identifier", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 9], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// MotionViewController.h\n// Never Stop\n//\n// Created by dllo on 16/10/20.\n// Copyright \u00a9 2016\u5e74 JDT. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface MotionViewController : UIViewController\n\n@end\n"}
80,754
c
// // RCRTCAudioOutputStream.h // RongRTCLib // // Created by RongCloud on 2020/6/2. // Copyright © 2020 RongCloud. All rights reserved. // #import "RCRTCOutputStream.h" NS_ASSUME_NONNULL_BEGIN @interface RCRTCAudioOutputStream : RCRTCOutputStream /*! 初始化 @discussion 初始化 @warning 请勿调用, 仅供 SDK 内部调用 @remarks 资源管理 @return RCRTCAudioOutputStream 实例对象 */ - (instancetype)init NS_UNAVAILABLE; /*! 初始化 @discussion 初始化 @warning 请勿调用, 仅供 SDK 内部调用 @remarks 资源管理 @return RCRTCAudioOutputStream 实例对象 */ - (instancetype)new NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END
14.47
38
(translation_unit) "//\n// RCRTCAudioOutputStream.h\n// RongRTCLib\n//\n// Created by RongCloud on 2020/6/2.\n// Copyright © 2020 RongCloud. All rights reserved.\n//\n\n#import "RCRTCOutputStream.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RCRTCAudioOutputStream : RCRTCOutputStream\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)new NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// RCRTCAudioOutputStream.h" (comment) "// RongRTCLib" (comment) "//" (comment) "// Created by RongCloud on 2020/6/2." (comment) "// Copyright © 2020 RongCloud. All rights reserved.\n" (comment) "/\n" (preproc_call) "import "RCRTCOutputStream.h"\n\n" (preproc_directive) "import " (preproc_arg) "RCRTCOutputStream.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) "CRTCAudioOutputStream : RCRTCOutputStream\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用," (statement_identifier) "CRTCAudioOutputStream " (:) " " (expression_statement) "CRTCOutputStream\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用," (binary_expression) "CRTCOutputStream\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用" (identifier) "CRTCOutputStream\n" (comment) "*!\n 初始化\n \n @discussion\n 初始化\n \n @warning\n 请勿调用, 仅供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n 初始化\n " (-) " " (cast_expression) "discussion\n 初始化\n \n @warning\n 请勿调用" (() "d" (type_descriptor) "iscussion\n 初" (type_identifier) "iscussion\n 初" ()) "始" (ERROR) "化\n \n" (identifier) "化\n \n" (identifier) "@warning\n 请勿调用" (;) "," (comment) "供 SDK 内部调用\n \n @remarks 资源管理\n @return RCRTCAudioOutputStream 实例对象\n */\n- (instancetype)new NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (expression_statement) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (type_identifier) "" ()) "" (ERROR) "" (identifier) "" (identifier) "" (;) "" (ERROR) "" (ERROR) "" (declaration) "" (type_identifier) "" (identifier) "" (;) ""
53
6
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 14.47, "nodes": 31, "errors": 0, "source_hash": "7bb825b514878783c41d9535cdfc736cbb7c43507ed2467a9089d5d7c99dad3c", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import \"RCRTCOutputStream.h\"\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "RCRTCOutputStream.h\"\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 29}}, {"id": 2, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [3, 4, 6], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"id": 3, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 4, "type": "ERROR", "text": "i", "parent": 2, "children": [5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 7, "type": "labeled_statement", "text": "CRTCAudioOutputStream : RCRTCOutputStream\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528, \u4ec5\u4f9b SDK \u5185\u90e8\u8c03\u7528\n \n @remarks \u8d44\u6e90\u7ba1\u7406\n @return RCRTCAudioOutputStream \u5b9e\u4f8b\u5bf9\u8c61\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528,", "parent": null, "children": [8], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 26, "column": 36}}, {"id": 8, "type": "statement_identifier", "text": "CRTCAudioOutputStream ", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 33}}, {"id": 9, "type": "binary_expression", "text": "CRTCOutputStream\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528, \u4ec5\u4f9b SDK \u5185\u90e8\u8c03\u7528\n \n @remarks \u8d44\u6e90\u7ba1\u7406\n @return RCRTCAudioOutputStream \u5b9e\u4f8b\u5bf9\u8c61\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528", "parent": 7, "children": [10, 11, 12], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 26, "column": 35}}, {"id": 10, "type": "identifier", "text": "CRTCOutputStream\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 36}, "end_point": {"row": 12, "column": 53}}, {"id": 11, "type": "-", "text": " ", "parent": 9, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 12, "type": "cast_expression", "text": "discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528", "parent": 9, "children": [13, 15, 17], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 35}}, {"id": 13, "type": "type_descriptor", "text": "iscussion\n \u521d", "parent": 12, "children": [14], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 15}}, {"id": 14, "type": "type_identifier", "text": "iscussion\n \u521d", "parent": 13, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 15}}, {"id": 15, "type": "ERROR", "text": "\u5316\n \n", "parent": 12, "children": [16], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 20}}, {"id": 16, "type": "identifier", "text": "\u5316\n \n", "parent": 15, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 20}}, {"id": 17, "type": "identifier", "text": "@warning\n \u8bf7\u52ff\u8c03\u7528", "parent": 12, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 35}}, {"id": 18, "type": "unary_expression", "text": "", "parent": null, "children": [19, 20], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 34}}, {"id": 19, "type": "-", "text": "", "parent": 18, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 20, "type": "cast_expression", "text": "", "parent": 18, "children": [21, 23, 25], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 34}}, {"id": 21, "type": "type_descriptor", "text": "", "parent": 20, "children": [22], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 15}}, {"id": 22, "type": "type_identifier", "text": "", "parent": 21, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 15}}, {"id": 23, "type": "ERROR", "text": "", "parent": 20, "children": [24], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 19}}, {"id": 24, "type": "identifier", "text": "", "parent": 23, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 19}}, {"id": 25, "type": "identifier", "text": "", "parent": 20, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 34}}, {"id": 26, "type": "ERROR", "text": "", "parent": null, "children": [27], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 27, "type": "ERROR", "text": "", "parent": 26, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 28, "type": "declaration", "text": "", "parent": null, "children": [29, 30], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 44, "column": 21}}, {"id": 29, "type": "type_identifier", "text": "", "parent": 28, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 4}}, {"id": 30, "type": "identifier", "text": "", "parent": 28, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 28], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [9, 12, 18, 20], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 14, 16, 17, 22, 24, 25, 29, 30], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// RCRTCAudioOutputStream.h\n// RongRTCLib\n//\n// Created by RongCloud on 2020/6/2.\n// Copyright \u00a9 2020 RongCloud. All rights reserved.\n//\n\n#import \"RCRTCOutputStream.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface RCRTCAudioOutputStream : RCRTCOutputStream\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528, \u4ec5\u4f9b SDK \u5185\u90e8\u8c03\u7528\n \n @remarks \u8d44\u6e90\u7ba1\u7406\n @return RCRTCAudioOutputStream \u5b9e\u4f8b\u5bf9\u8c61\n */\n- (instancetype)init NS_UNAVAILABLE;\n\n/*!\n \u521d\u59cb\u5316\n \n @discussion\n \u521d\u59cb\u5316\n \n @warning\n \u8bf7\u52ff\u8c03\u7528, \u4ec5\u4f9b SDK \u5185\u90e8\u8c03\u7528\n \n @remarks \u8d44\u6e90\u7ba1\u7406\n @return RCRTCAudioOutputStream \u5b9e\u4f8b\u5bf9\u8c61\n */\n- (instancetype)new NS_UNAVAILABLE;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,755
c
/*************************************************************************\ * Copyright (C) <NAME>, 2014. * * * * This program is free software. You may use, modify, and redistribute it * * under the terms of the GNU Affero General Public License as published * * by the Free Software Foundation, either version 3 or (at your option) * * any later version. This program is distributed without any warranty. * * See the file COPYING.agpl-v3 for details. * \*************************************************************************/ /* Supplementary program for Chapter 35 */ #define _GNU_SOURCE #include <sched.h> #include "tlpi_hdr.h" int main(int argc, char *argv[]) { pid_t pid; cpu_set_t set; int cpu; unsigned long mask; if (argc != 3 || strcmp(argv[1], "--help") == 0) usageErr("%s pid mask\n", argv[0]); pid = getInt(argv[1], GN_NONNEG, "pid"); mask = getLong(argv[2], GN_ANY_BASE, "octal-mask"); CPU_ZERO(&set); for (cpu = 0; mask > 0; cpu++, mask >>= 1) if (mask & 1) CPU_SET(cpu, &set); if (sched_setaffinity(pid, sizeof(set), &set) == -1) errExit("sched_setaffinity"); exit(EXIT_SUCCESS); }
44.06
31
(translation_unit) "/*************************************************************************\\n* Copyright (C) <NAME>, 2014. *\n* *\n* This program is free software. You may use, modify, and redistribute it *\n* under the terms of the GNU Affero General Public License as published *\n* by the Free Software Foundation, either version 3 or (at your option) *\n* any later version. This program is distributed without any warranty. *\n* See the file COPYING.agpl-v3 for details. *\n\*************************************************************************/\n\n/* Supplementary program for Chapter 35 */\n\n#define _GNU_SOURCE\n#include <sched.h>\n#include "tlpi_hdr.h"\n\nint\nmain(int argc, char *argv[])\n{\n pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long mask;\n\n if (argc != 3 || strcmp(argv[1], "--help") == 0)\n usageErr("%s pid mask\n", argv[0]);\n\n pid = getInt(argv[1], GN_NONNEG, "pid");\n mask = getLong(argv[2], GN_ANY_BASE, "octal-mask");\n\n CPU_ZERO(&set);\n\n for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);\n\n if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit("sched_setaffinity");\n\n exit(EXIT_SUCCESS);\n}\n" (comment) "/*************************************************************************\\n* Copyright (C) <NAME>, 2014. *\n* *\n* This program is free software. You may use, modify, and redistribute it *\n* under the terms of the GNU Affero General Public License as published *\n* by the Free Software Foundation, either version 3 or (at your option) *\n* any later version. This program is distributed without any warranty. *\n* See the file COPYING.agpl-v3 for details. *\n\*************************************************************************/" (comment) "/* Supplementary program for Chapter 35 */" (preproc_def) "#define _GNU_SOURCE\n" (#define) "#define" (identifier) "_GNU_SOURCE" (preproc_include) "#include <sched.h>\n" (#include) "#include" (system_lib_string) "<sched.h>" (preproc_include) "#include "tlpi_hdr.h"\n" (#include) "#include" (string_literal) ""tlpi_hdr.h"" (") """ (string_content) "tlpi_hdr.h" (") """ (function_definition) "int\nmain(int argc, char *argv[])\n{\n pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long mask;\n\n if (argc != 3 || strcmp(argv[1], "--help") == 0)\n usageErr("%s pid mask\n", argv[0]);\n\n pid = getInt(argv[1], GN_NONNEG, "pid");\n mask = getLong(argv[2], GN_ANY_BASE, "octal-mask");\n\n CPU_ZERO(&set);\n\n for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);\n\n if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit("sched_setaffinity");\n\n exit(EXIT_SUCCESS);\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 pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long mask;\n\n if (argc != 3 || strcmp(argv[1], "--help") == 0)\n usageErr("%s pid mask\n", argv[0]);\n\n pid = getInt(argv[1], GN_NONNEG, "pid");\n mask = getLong(argv[2], GN_ANY_BASE, "octal-mask");\n\n CPU_ZERO(&set);\n\n for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);\n\n if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit("sched_setaffinity");\n\n exit(EXIT_SUCCESS);\n}" ({) "{" (declaration) "pid_t pid;" (type_identifier) "pid_t" (identifier) "pid" (;) ";" (declaration) "cpu_set_t set;" (type_identifier) "cpu_set_t" (identifier) "set" (;) ";" (declaration) "int cpu;" (primitive_type) "int" (identifier) "cpu" (;) ";" (declaration) "unsigned long mask;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "mask" (;) ";" (if_statement) "if (argc != 3 || strcmp(argv[1], "--help") == 0)\n usageErr("%s pid mask\n", argv[0]);" (if) "if" (parenthesized_expression) "(argc != 3 || strcmp(argv[1], "--help") == 0)" (() "(" (binary_expression) "argc != 3 || strcmp(argv[1], "--help") == 0" (binary_expression) "argc != 3" (identifier) "argc" (!=) "!=" (number_literal) "3" (||) "||" (binary_expression) "strcmp(argv[1], "--help") == 0" (call_expression) "strcmp(argv[1], "--help")" (identifier) "strcmp" (argument_list) "(argv[1], "--help")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (string_literal) ""--help"" (") """ (string_content) "--help" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "usageErr("%s pid mask\n", argv[0]);" (call_expression) "usageErr("%s pid mask\n", argv[0])" (identifier) "usageErr" (argument_list) "("%s pid mask\n", argv[0])" (() "(" (string_literal) ""%s pid mask\n"" (") """ (string_content) "%s pid mask" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "pid = getInt(argv[1], GN_NONNEG, "pid");" (assignment_expression) "pid = getInt(argv[1], GN_NONNEG, "pid")" (identifier) "pid" (=) "=" (call_expression) "getInt(argv[1], GN_NONNEG, "pid")" (identifier) "getInt" (argument_list) "(argv[1], GN_NONNEG, "pid")" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (identifier) "GN_NONNEG" (,) "," (string_literal) ""pid"" (") """ (string_content) "pid" (") """ ()) ")" (;) ";" (expression_statement) "mask = getLong(argv[2], GN_ANY_BASE, "octal-mask");" (assignment_expression) "mask = getLong(argv[2], GN_ANY_BASE, "octal-mask")" (identifier) "mask" (=) "=" (call_expression) "getLong(argv[2], GN_ANY_BASE, "octal-mask")" (identifier) "getLong" (argument_list) "(argv[2], GN_ANY_BASE, "octal-mask")" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (,) "," (identifier) "GN_ANY_BASE" (,) "," (string_literal) ""octal-mask"" (") """ (string_content) "octal-mask" (") """ ()) ")" (;) ";" (expression_statement) "CPU_ZERO(&set);" (call_expression) "CPU_ZERO(&set)" (identifier) "CPU_ZERO" (argument_list) "(&set)" (() "(" (pointer_expression) "&set" (&) "&" (identifier) "set" ()) ")" (;) ";" (for_statement) "for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);" (for) "for" (() "(" (assignment_expression) "cpu = 0" (identifier) "cpu" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "mask > 0" (identifier) "mask" (>) ">" (number_literal) "0" (;) ";" (comma_expression) "cpu++, mask >>= 1" (update_expression) "cpu++" (identifier) "cpu" (++) "++" (,) "," (assignment_expression) "mask >>= 1" (identifier) "mask" (>>=) ">>=" (number_literal) "1" ()) ")" (if_statement) "if (mask & 1)\n CPU_SET(cpu, &set);" (if) "if" (parenthesized_expression) "(mask & 1)" (() "(" (binary_expression) "mask & 1" (identifier) "mask" (&) "&" (number_literal) "1" ()) ")" (expression_statement) "CPU_SET(cpu, &set);" (call_expression) "CPU_SET(cpu, &set)" (identifier) "CPU_SET" (argument_list) "(cpu, &set)" (() "(" (identifier) "cpu" (,) "," (pointer_expression) "&set" (&) "&" (identifier) "set" ()) ")" (;) ";" (if_statement) "if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit("sched_setaffinity");" (if) "if" (parenthesized_expression) "(sched_setaffinity(pid, sizeof(set), &set) == -1)" (() "(" (binary_expression) "sched_setaffinity(pid, sizeof(set), &set) == -1" (call_expression) "sched_setaffinity(pid, sizeof(set), &set)" (identifier) "sched_setaffinity" (argument_list) "(pid, sizeof(set), &set)" (() "(" (identifier) "pid" (,) "," (sizeof_expression) "sizeof(set)" (sizeof) "sizeof" (parenthesized_expression) "(set)" (() "(" (identifier) "set" ()) ")" (,) "," (pointer_expression) "&set" (&) "&" (identifier) "set" ()) ")" (==) "==" (number_literal) "-1" ()) ")" (expression_statement) "errExit("sched_setaffinity");" (call_expression) "errExit("sched_setaffinity")" (identifier) "errExit" (argument_list) "("sched_setaffinity")" (() "(" (string_literal) ""sched_setaffinity"" (") """ (string_content) "sched_setaffinity" (") """ ()) ")" (;) ";" (expression_statement) "exit(EXIT_SUCCESS);" (call_expression) "exit(EXIT_SUCCESS)" (identifier) "exit" (argument_list) "(EXIT_SUCCESS)" (() "(" (identifier) "EXIT_SUCCESS" ()) ")" (;) ";" (}) "}"
244
0
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 44.06, "nodes": 140, "errors": 0, "source_hash": "6e57adf394d215a783ac24183d11757ef24a8bd9c51f8ede9caaa729f39159c3", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define _GNU_SOURCE\n", "parent": null, "children": [1, 2], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 2, "type": "identifier", "text": "_GNU_SOURCE", "parent": 0, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <sched.h>\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": "<sched.h>", "parent": 3, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"tlpi_hdr.h\"\n", "parent": null, "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": "\"tlpi_hdr.h\"", "parent": 6, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 9, "type": "function_definition", "text": "int\nmain(int argc, char *argv[])\n{\n pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long mask;\n\n if (argc != 3 || strcmp(argv[1], \"--help\") == 0)\n usageErr(\"%s pid mask\\n\", argv[0]);\n\n pid = getInt(argv[1], GN_NONNEG, \"pid\");\n mask = getLong(argv[2], GN_ANY_BASE, \"octal-mask\");\n\n CPU_ZERO(&set);\n\n for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);\n\n if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit(\"sched_setaffinity\");\n\n exit(EXIT_SUCCESS);\n}", "parent": null, "children": [10, 11], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "main(int argc, char *argv[])", "parent": 9, "children": [12, 13], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 28}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 13, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 11, "children": [14, 17], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 28}}, {"id": 14, "type": "parameter_declaration", "text": "int argc", "parent": 13, "children": [15, 16], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 13}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 8}}, {"id": 16, "type": "identifier", "text": "argc", "parent": 14, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 17, "type": "parameter_declaration", "text": "char *argv[]", "parent": 13, "children": [18, 19], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 27}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 19}}, {"id": 19, "type": "pointer_declarator", "text": "*argv[]", "parent": 17, "children": [20, 21], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 27}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 21}}, {"id": 21, "type": "array_declarator", "text": "argv[]", "parent": 19, "children": [22], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 27}}, {"id": 22, "type": "identifier", "text": "argv", "parent": 21, "children": [], "start_point": {"row": 17, "column": 21}, "end_point": {"row": 17, "column": 25}}, {"id": 23, "type": "declaration", "text": "pid_t pid;", "parent": 9, "children": [24, 25], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 14}}, {"id": 24, "type": "type_identifier", "text": "pid_t", "parent": 23, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 9}}, {"id": 25, "type": "identifier", "text": "pid", "parent": 23, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 13}}, {"id": 26, "type": "declaration", "text": "cpu_set_t set;", "parent": 9, "children": [27, 28], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 18}}, {"id": 27, "type": "type_identifier", "text": "cpu_set_t", "parent": 26, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 13}}, {"id": 28, "type": "identifier", "text": "set", "parent": 26, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 17}}, {"id": 29, "type": "declaration", "text": "int cpu;", "parent": 9, "children": [30, 31], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 31, "type": "identifier", "text": "cpu", "parent": 29, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 11}}, {"id": 32, "type": "declaration", "text": "unsigned long mask;", "parent": 9, "children": [33, 36], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 23}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned long", "parent": 32, "children": [34, 35], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 17}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 35, "type": "long", "text": "long", "parent": 33, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 36, "type": "identifier", "text": "mask", "parent": 32, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 22}}, {"id": 37, "type": "if_statement", "text": "if (argc != 3 || strcmp(argv[1], \"--help\") == 0)\n usageErr(\"%s pid mask\\n\", argv[0]);", "parent": 9, "children": [38], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 25, "column": 43}}, {"id": 38, "type": "parenthesized_expression", "text": "(argc != 3 || strcmp(argv[1], \"--help\") == 0)", "parent": 37, "children": [39], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 52}}, {"id": 39, "type": "binary_expression", "text": "argc != 3 || strcmp(argv[1], \"--help\") == 0", "parent": 38, "children": [40, 44, 45], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 51}}, {"id": 40, "type": "binary_expression", "text": "argc != 3", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 17}}, {"id": 41, "type": "identifier", "text": "argc", "parent": 40, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 42, "type": "!=", "text": "!=", "parent": 40, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 15}}, {"id": 43, "type": "number_literal", "text": "3", "parent": 40, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 44, "type": "||", "text": "||", "parent": 39, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 20}}, {"id": 45, "type": "binary_expression", "text": "strcmp(argv[1], \"--help\") == 0", "parent": 39, "children": [46, 53, 54], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 51}}, {"id": 46, "type": "call_expression", "text": "strcmp(argv[1], \"--help\")", "parent": 45, "children": [47, 48], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 46}}, {"id": 47, "type": "identifier", "text": "strcmp", "parent": 46, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 27}}, {"id": 48, "type": "argument_list", "text": "(argv[1], \"--help\")", "parent": 46, "children": [49, 52], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 46}}, {"id": 49, "type": "subscript_expression", "text": "argv[1]", "parent": 48, "children": [50, 51], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 35}}, {"id": 50, "type": "identifier", "text": "argv", "parent": 49, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 32}}, {"id": 51, "type": "number_literal", "text": "1", "parent": 49, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 34}}, {"id": 52, "type": "string_literal", "text": "\"--help\"", "parent": 48, "children": [], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 45}}, {"id": 53, "type": "==", "text": "==", "parent": 45, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 49}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 24, "column": 50}, "end_point": {"row": 24, "column": 51}}, {"id": 55, "type": "call_expression", "text": "usageErr(\"%s pid mask\\n\", argv[0])", "parent": 37, "children": [56, 57], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 42}}, {"id": 56, "type": "identifier", "text": "usageErr", "parent": 55, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 16}}, {"id": 57, "type": "argument_list", "text": "(\"%s pid mask\\n\", argv[0])", "parent": 55, "children": [58, 60], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 42}}, {"id": 58, "type": "string_literal", "text": "\"%s pid mask\\n\"", "parent": 57, "children": [59], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 32}}, {"id": 59, "type": "escape_sequence", "text": "\\n", "parent": 58, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 31}}, {"id": 60, "type": "subscript_expression", "text": "argv[0]", "parent": 57, "children": [61, 62], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 41}}, {"id": 61, "type": "identifier", "text": "argv", "parent": 60, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 38}}, {"id": 62, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 40}}, {"id": 63, "type": "assignment_expression", "text": "pid = getInt(argv[1], GN_NONNEG, \"pid\")", "parent": 9, "children": [64, 65, 66], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 43}}, {"id": 64, "type": "identifier", "text": "pid", "parent": 63, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 7}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 66, "type": "call_expression", "text": "getInt(argv[1], GN_NONNEG, \"pid\")", "parent": 63, "children": [67, 68], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 43}}, {"id": 67, "type": "identifier", "text": "getInt", "parent": 66, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 16}}, {"id": 68, "type": "argument_list", "text": "(argv[1], GN_NONNEG, \"pid\")", "parent": 66, "children": [69, 72, 73], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 43}}, {"id": 69, "type": "subscript_expression", "text": "argv[1]", "parent": 68, "children": [70, 71], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 24}}, {"id": 70, "type": "identifier", "text": "argv", "parent": 69, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 21}}, {"id": 71, "type": "number_literal", "text": "1", "parent": 69, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 72, "type": "identifier", "text": "GN_NONNEG", "parent": 68, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 35}}, {"id": 73, "type": "string_literal", "text": "\"pid\"", "parent": 68, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 42}}, {"id": 74, "type": "assignment_expression", "text": "mask = getLong(argv[2], GN_ANY_BASE, \"octal-mask\")", "parent": 9, "children": [75, 76, 77], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 54}}, {"id": 75, "type": "identifier", "text": "mask", "parent": 74, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 77, "type": "call_expression", "text": "getLong(argv[2], GN_ANY_BASE, \"octal-mask\")", "parent": 74, "children": [78, 79], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 54}}, {"id": 78, "type": "identifier", "text": "getLong", "parent": 77, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 18}}, {"id": 79, "type": "argument_list", "text": "(argv[2], GN_ANY_BASE, \"octal-mask\")", "parent": 77, "children": [80, 83, 84], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 54}}, {"id": 80, "type": "subscript_expression", "text": "argv[2]", "parent": 79, "children": [81, 82], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 26}}, {"id": 81, "type": "identifier", "text": "argv", "parent": 80, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 23}}, {"id": 82, "type": "number_literal", "text": "2", "parent": 80, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 25}}, {"id": 83, "type": "identifier", "text": "GN_ANY_BASE", "parent": 79, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 39}}, {"id": 84, "type": "string_literal", "text": "\"octal-mask\"", "parent": 79, "children": [], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 53}}, {"id": 85, "type": "call_expression", "text": "CPU_ZERO(&set)", "parent": 9, "children": [86, 87], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 18}}, {"id": 86, "type": "identifier", "text": "CPU_ZERO", "parent": 85, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 12}}, {"id": 87, "type": "argument_list", "text": "(&set)", "parent": 85, "children": [88], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 18}}, {"id": 88, "type": "pointer_expression", "text": "&set", "parent": 87, "children": [89], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 17}}, {"id": 89, "type": "identifier", "text": "set", "parent": 88, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 17}}, {"id": 90, "type": "for_statement", "text": "for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);", "parent": 9, "children": [91, 95, 99, 107], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 34, "column": 31}}, {"id": 91, "type": "assignment_expression", "text": "cpu = 0", "parent": 90, "children": [92, 93, 94], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 16}}, {"id": 92, "type": "identifier", "text": "cpu", "parent": 91, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 12}}, {"id": 93, "type": "=", "text": "=", "parent": 91, "children": [], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 14}}, {"id": 94, "type": "number_literal", "text": "0", "parent": 91, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 16}}, {"id": 95, "type": "binary_expression", "text": "mask > 0", "parent": 90, "children": [96, 97, 98], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 26}}, {"id": 96, "type": "identifier", "text": "mask", "parent": 95, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 22}}, {"id": 97, "type": ">", "text": ">", "parent": 95, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 24}}, {"id": 98, "type": "number_literal", "text": "0", "parent": 95, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 99, "type": "comma_expression", "text": "cpu++, mask >>= 1", "parent": 90, "children": [100, 103], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 45}}, {"id": 100, "type": "update_expression", "text": "cpu++", "parent": 99, "children": [101, 102], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 33}}, {"id": 101, "type": "identifier", "text": "cpu", "parent": 100, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 31}}, {"id": 102, "type": "++", "text": "++", "parent": 100, "children": [], "start_point": {"row": 32, "column": 31}, "end_point": {"row": 32, "column": 33}}, {"id": 103, "type": "assignment_expression", "text": "mask >>= 1", "parent": 99, "children": [104, 105, 106], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 45}}, {"id": 104, "type": "identifier", "text": "mask", "parent": 103, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 39}}, {"id": 105, "type": ">>=", "text": ">>=", "parent": 103, "children": [], "start_point": {"row": 32, "column": 40}, "end_point": {"row": 32, "column": 43}}, {"id": 106, "type": "number_literal", "text": "1", "parent": 103, "children": [], "start_point": {"row": 32, "column": 44}, "end_point": {"row": 32, "column": 45}}, {"id": 107, "type": "if_statement", "text": "if (mask & 1)\n CPU_SET(cpu, &set);", "parent": 90, "children": [108], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 34, "column": 31}}, {"id": 108, "type": "parenthesized_expression", "text": "(mask & 1)", "parent": 107, "children": [109], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 21}}, {"id": 109, "type": "binary_expression", "text": "mask & 1", "parent": 108, "children": [110, 111], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 20}}, {"id": 110, "type": "identifier", "text": "mask", "parent": 109, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 16}}, {"id": 111, "type": "number_literal", "text": "1", "parent": 109, "children": [], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 20}}, {"id": 112, "type": "call_expression", "text": "CPU_SET(cpu, &set)", "parent": 107, "children": [113, 114], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 30}}, {"id": 113, "type": "identifier", "text": "CPU_SET", "parent": 112, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 19}}, {"id": 114, "type": "argument_list", "text": "(cpu, &set)", "parent": 112, "children": [115, 116], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 30}}, {"id": 115, "type": "identifier", "text": "cpu", "parent": 114, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 23}}, {"id": 116, "type": "pointer_expression", "text": "&set", "parent": 114, "children": [117], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 29}}, {"id": 117, "type": "identifier", "text": "set", "parent": 116, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 29}}, {"id": 118, "type": "if_statement", "text": "if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit(\"sched_setaffinity\");", "parent": 9, "children": [119], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 37, "column": 37}}, {"id": 119, "type": "parenthesized_expression", "text": "(sched_setaffinity(pid, sizeof(set), &set) == -1)", "parent": 118, "children": [120], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 56}}, {"id": 120, "type": "binary_expression", "text": "sched_setaffinity(pid, sizeof(set), &set) == -1", "parent": 119, "children": [121, 130, 131], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 55}}, {"id": 121, "type": "call_expression", "text": "sched_setaffinity(pid, sizeof(set), &set)", "parent": 120, "children": [122, 123], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 49}}, {"id": 122, "type": "identifier", "text": "sched_setaffinity", "parent": 121, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 25}}, {"id": 123, "type": "argument_list", "text": "(pid, sizeof(set), &set)", "parent": 121, "children": [124, 125, 128], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 49}}, {"id": 124, "type": "identifier", "text": "pid", "parent": 123, "children": [], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 29}}, {"id": 125, "type": "sizeof_expression", "text": "sizeof(set)", "parent": 123, "children": [126], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 42}}, {"id": 126, "type": "parenthesized_expression", "text": "(set)", "parent": 125, "children": [127], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 42}}, {"id": 127, "type": "identifier", "text": "set", "parent": 126, "children": [], "start_point": {"row": 36, "column": 38}, "end_point": {"row": 36, "column": 41}}, {"id": 128, "type": "pointer_expression", "text": "&set", "parent": 123, "children": [129], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 48}}, {"id": 129, "type": "identifier", "text": "set", "parent": 128, "children": [], "start_point": {"row": 36, "column": 45}, "end_point": {"row": 36, "column": 48}}, {"id": 130, "type": "==", "text": "==", "parent": 120, "children": [], "start_point": {"row": 36, "column": 50}, "end_point": {"row": 36, "column": 52}}, {"id": 131, "type": "number_literal", "text": "-1", "parent": 120, "children": [], "start_point": {"row": 36, "column": 53}, "end_point": {"row": 36, "column": 55}}, {"id": 132, "type": "call_expression", "text": "errExit(\"sched_setaffinity\")", "parent": 118, "children": [133, 134], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 36}}, {"id": 133, "type": "identifier", "text": "errExit", "parent": 132, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 134, "type": "argument_list", "text": "(\"sched_setaffinity\")", "parent": 132, "children": [135], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 36}}, {"id": 135, "type": "string_literal", "text": "\"sched_setaffinity\"", "parent": 134, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 35}}, {"id": 136, "type": "call_expression", "text": "exit(EXIT_SUCCESS)", "parent": 9, "children": [137, 138], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 22}}, {"id": 137, "type": "identifier", "text": "exit", "parent": 136, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 8}}, {"id": 138, "type": "argument_list", "text": "(EXIT_SUCCESS)", "parent": 136, "children": [139], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 22}}, {"id": 139, "type": "identifier", "text": "EXIT_SUCCESS", "parent": 138, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 21}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [14, 17, 23, 26, 29, 32], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [38, 39, 40, 45, 46, 49, 55, 60, 66, 69, 77, 80, 85, 88, 95, 99, 100, 108, 109, 112, 116, 119, 120, 121, 125, 126, 128, 132, 136], "assignments": [63, 74, 91, 103], "loops": [90], "conditionals": [2, 12, 16, 22, 24, 25, 27, 28, 31, 33, 36, 37, 41, 47, 50, 56, 61, 64, 67, 70, 72, 75, 78, 81, 83, 86, 89, 92, 96, 101, 104, 107, 110, 113, 115, 117, 118, 122, 124, 127, 129, 133, 137, 139], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [5, 8, 43, 51, 52, 54, 58, 62, 71, 73, 82, 84, 94, 98, 106, 111, 131, 135], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(int argc, char *argv[])\n{\n pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long "}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char *argv[])"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <sched.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"tlpi_hdr.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*************************************************************************\\\n* Copyright (C) <NAME>, 2014. *\n* *\n* This program is free software. You may use, modify, and redistribute it *\n* under the terms of the GNU Affero General Public License as published *\n* by the Free Software Foundation, either version 3 or (at your option) *\n* any later version. This program is distributed without any warranty. *\n* See the file COPYING.agpl-v3 for details. *\n\\*************************************************************************/\n\n/* Supplementary program for Chapter 35 */\n\n#define _GNU_SOURCE\n#include <sched.h>\n#include \"tlpi_hdr.h\"\n\nint\nmain(int argc, char *argv[])\n{\n pid_t pid;\n cpu_set_t set;\n int cpu;\n unsigned long mask;\n\n if (argc != 3 || strcmp(argv[1], \"--help\") == 0)\n usageErr(\"%s pid mask\\n\", argv[0]);\n\n pid = getInt(argv[1], GN_NONNEG, \"pid\");\n mask = getLong(argv[2], GN_ANY_BASE, \"octal-mask\");\n\n CPU_ZERO(&set);\n\n for (cpu = 0; mask > 0; cpu++, mask >>= 1)\n if (mask & 1)\n CPU_SET(cpu, &set);\n\n if (sched_setaffinity(pid, sizeof(set), &set) == -1)\n errExit(\"sched_setaffinity\");\n\n exit(EXIT_SUCCESS);\n}\n"}
80,756
c
/* -*- c-file-style: "linux" -*- Weiss 1/1999 Batch utilities for rsync. */ #include "rsync.h" #include <time.h> extern int am_sender; extern int eol_nulls; extern int recurse; extern int xfer_dirs; extern int preserve_links; extern int preserve_hard_links; extern int preserve_devices; extern int preserve_uid; extern int preserve_gid; extern int always_checksum; extern int do_compression; extern int protocol_version; extern char *batch_name; extern struct filter_list_struct filter_list; static int *flag_ptr[] = { &recurse, /* 0 */ &preserve_uid, /* 1 */ &preserve_gid, /* 2 */ &preserve_links, /* 3 */ &preserve_devices, /* 4 */ &preserve_hard_links, /* 5 */ &always_checksum, /* 6 */ &xfer_dirs, /* 7 (protocol 29) */ &do_compression, /* 8 (protocol 29) */ NULL }; static char *flag_name[] = { "--recurse (-r)", "--owner (-o)", "--group (-g)", "--links (-l)", "--devices (-D)", "--hard-links (-H)", "--checksum (-c)", "--dirs (-d)", "--compress (-z)", NULL }; void write_stream_flags(int fd) { int i, flags; /* Start the batch file with a bitmap of data-stream-affecting * flags. */ if (protocol_version < 29) flag_ptr[7] = NULL; for (i = 0, flags = 0; flag_ptr[i]; i++) { if (*flag_ptr[i]) flags |= 1 << i; } write_int(fd, flags); } void read_stream_flags(int fd) { int i, flags; if (protocol_version < 29) flag_ptr[7] = NULL; for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) { int set = flags & (1 << i) ? 1 : 0; if (*flag_ptr[i] != set) { if (verbose) { rprintf(FINFO, "%sing the %s option to match the batchfile.\n", set ? "Sett" : "Clear", flag_name[i]); } *flag_ptr[i] = set; } } if (protocol_version < 29) { if (recurse) xfer_dirs |= 1; else if (xfer_dirs < 2) xfer_dirs = 0; } } static void write_arg(int fd, char *arg) { char *x, *s; if (*arg == '-' && (x = strchr(arg, '=')) != NULL) { write(fd, arg, x - arg + 1); arg += x - arg + 1; } if (strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL) { write(fd, "'", 1); for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) { write(fd, s, x - s + 1); write(fd, "'", 1); } write(fd, s, strlen(s)); write(fd, "'", 1); return; } write(fd, arg, strlen(arg)); } static void write_filter_rules(int fd) { struct filter_struct *ent; write_sbuf(fd, " <<'#E#'\n"); for (ent = filter_list.head; ent; ent = ent->next) { unsigned int plen; char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen); write_buf(fd, p, plen); write_sbuf(fd, ent->pattern); if (ent->match_flags & MATCHFLG_DIRECTORY) write_byte(fd, '/'); write_byte(fd, eol_nulls ? 0 : '\n'); } if (eol_nulls) write_sbuf(fd, ";\n"); write_sbuf(fd, "#E#"); } /* This routine tries to write out an equivalent --read-batch command * given the user's --write-batch args. However, it doesn't really * understand most of the options, so it uses some overly simple * heuristics to munge the command line into something that will * (hopefully) work. */ void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt) { int fd, i, len; char *p, filename[MAXPATHLEN]; stringjoin(filename, sizeof filename, batch_name, ".sh", NULL); fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IEXEC); if (fd < 0) { rsyserr(FERROR, errno, "Batch file %s open error", safe_fname(filename)); exit_cleanup(1); } /* Write argvs info to BATCH.sh file */ write_arg(fd, argv[0]); if (filter_list.head) { if (protocol_version >= 29) write_sbuf(fd, " --filter=._-"); else write_sbuf(fd, " --exclude-from=-"); } for (i = 1; i < argc - file_arg_cnt; i++) { p = argv[i]; if (strncmp(p, "--files-from", 12) == 0 || strncmp(p, "--filter", 8) == 0 || strncmp(p, "--include", 9) == 0 || strncmp(p, "--exclude", 9) == 0) { if (strchr(p, '=') == NULL) i++; continue; } if (strcmp(p, "-f") == 0) { i++; continue; } write(fd, " ", 1); if (strncmp(p, "--write-batch", len = 13) == 0 || strncmp(p, "--only-write-batch", len = 18) == 0) { write(fd, "--read-batch", 12); if (p[len] == '=') { write(fd, "=", 1); write_arg(fd, p + len + 1); } } else write_arg(fd, p); } if (!(p = check_for_hostspec(argv[argc - 1], &p, &i))) p = argv[argc - 1]; write(fd, " ${1:-", 6); write_arg(fd, p); write_byte(fd, '}'); if (filter_list.head) write_filter_rules(fd); if (write(fd, "\n", 1) != 1 || close(fd) < 0) { rsyserr(FERROR, errno, "Batch file %s write error", safe_fname(filename)); exit_cleanup(1); } } void show_flist(int index, struct file_struct **fptr) { /* for debugging show_flist(flist->count, flist->files * */ int i; for (i = 0; i < index; i++) { rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags); rprintf(FINFO, "flist->modtime=%#lx\n", (long unsigned) fptr[i]->modtime); rprintf(FINFO, "flist->length=%.0f\n", (double) fptr[i]->length); rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode); rprintf(FINFO, "flist->basename=%s\n", safe_fname(fptr[i]->basename)); if (fptr[i]->dirname) { rprintf(FINFO, "flist->dirname=%s\n", safe_fname(fptr[i]->dirname)); } if (am_sender && fptr[i]->dir.root) { rprintf(FINFO, "flist->dir.root=%s\n", safe_fname(fptr[i]->dir.root)); } } } /* for debugging */ void show_argvs(int argc, char *argv[]) { int i; rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc); for (i = 0; i < argc; i++) rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i])); }
25.18
211
(translation_unit) "/* -*- c-file-style: "linux" -*-\n\n Weiss 1/1999\n Batch utilities for rsync.\n\n*/\n\n#include "rsync.h"\n#include <time.h>\n\nextern int am_sender;\nextern int eol_nulls;\nextern int recurse;\nextern int xfer_dirs;\nextern int preserve_links;\nextern int preserve_hard_links;\nextern int preserve_devices;\nextern int preserve_uid;\nextern int preserve_gid;\nextern int always_checksum;\nextern int do_compression;\nextern int protocol_version;\nextern char *batch_name;\n\nextern struct filter_list_struct filter_list;\n\nstatic int *flag_ptr[] = {\n &recurse, /* 0 */\n &preserve_uid, /* 1 */\n &preserve_gid, /* 2 */\n &preserve_links, /* 3 */\n &preserve_devices, /* 4 */\n &preserve_hard_links, /* 5 */\n &always_checksum, /* 6 */\n &xfer_dirs, /* 7 (protocol 29) */\n &do_compression, /* 8 (protocol 29) */\n NULL\n};\n\nstatic char *flag_name[] = {\n "--recurse (-r)",\n "--owner (-o)",\n "--group (-g)",\n "--links (-l)",\n "--devices (-D)",\n "--hard-links (-H)",\n "--checksum (-c)",\n "--dirs (-d)",\n "--compress (-z)",\n NULL\n};\n\nvoid write_stream_flags(int fd)\n{\n int i, flags;\n\n /* Start the batch file with a bitmap of data-stream-affecting\n * flags. */\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = 0; flag_ptr[i]; i++) {\n if (*flag_ptr[i])\n flags |= 1 << i;\n }\n write_int(fd, flags);\n}\n\nvoid read_stream_flags(int fd)\n{\n int i, flags;\n\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n int set = flags & (1 << i) ? 1 : 0;\n if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }\n }\n if (protocol_version < 29) {\n if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;\n }\n}\n\nstatic void write_arg(int fd, char *arg)\n{\n char *x, *s;\n\n if (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n write(fd, arg, x - arg + 1);\n arg += x - arg + 1;\n }\n\n if (strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL) {\n write(fd, "'", 1);\n for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }\n write(fd, s, strlen(s));\n write(fd, "'", 1);\n return;\n }\n\n write(fd, arg, strlen(arg));\n}\n\nstatic void write_filter_rules(int fd)\n{\n struct filter_struct *ent;\n\n write_sbuf(fd, " <<'#E#'\n");\n for (ent = filter_list.head; ent; ent = ent->next) {\n unsigned int plen;\n char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);\n write_buf(fd, p, plen);\n write_sbuf(fd, ent->pattern);\n if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');\n write_byte(fd, eol_nulls ? 0 : '\n');\n }\n if (eol_nulls)\n write_sbuf(fd, ";\n");\n write_sbuf(fd, "#E#");\n}\n\n/* This routine tries to write out an equivalent --read-batch command\n * given the user's --write-batch args. However, it doesn't really\n * understand most of the options, so it uses some overly simple\n * heuristics to munge the command line into something that will\n * (hopefully) work. */\nvoid write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)\n{\n int fd, i, len;\n char *p, filename[MAXPATHLEN];\n\n stringjoin(filename, sizeof filename,\n batch_name, ".sh", NULL);\n fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC);\n if (fd < 0) {\n rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n\n /* Write argvs info to BATCH.sh file */\n write_arg(fd, argv[0]);\n if (filter_list.head) {\n if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");\n }\n for (i = 1; i < argc - file_arg_cnt; i++) {\n p = argv[i];\n if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }\n if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }\n write(fd, " ", 1);\n if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);\n }\n if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n p = argv[argc - 1];\n write(fd, " ${1:-", 6);\n write_arg(fd, p);\n write_byte(fd, '}');\n if (filter_list.head)\n write_filter_rules(fd);\n if (write(fd, "\n", 1) != 1 || close(fd) < 0) {\n rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n}\n\nvoid show_flist(int index, struct file_struct **fptr)\n{\n /* for debugging show_flist(flist->count, flist->files * */\n\n int i;\n for (i = 0; i < index; i++) {\n rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);\n rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);\n rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);\n rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);\n rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));\n if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }\n if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }\n }\n}\n\n/* for debugging */\nvoid show_argvs(int argc, char *argv[])\n{\n int i;\n\n rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc);\n for (i = 0; i < argc; i++)\n rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]));\n}\n" (comment) "/* -*- c-file-style: "linux" -*-\n\n Weiss 1/1999\n Batch utilities for rsync.\n\n*/" (preproc_include) "#include "rsync.h"\n" (#include) "#include" (string_literal) ""rsync.h"" (") """ (string_content) "rsync.h" (") """ (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (declaration) "extern int am_sender;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "am_sender" (;) ";" (declaration) "extern int eol_nulls;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "eol_nulls" (;) ";" (declaration) "extern int recurse;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "recurse" (;) ";" (declaration) "extern int xfer_dirs;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "xfer_dirs" (;) ";" (declaration) "extern int preserve_links;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "preserve_links" (;) ";" (declaration) "extern int preserve_hard_links;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "preserve_hard_links" (;) ";" (declaration) "extern int preserve_devices;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "preserve_devices" (;) ";" (declaration) "extern int preserve_uid;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "preserve_uid" (;) ";" (declaration) "extern int preserve_gid;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "preserve_gid" (;) ";" (declaration) "extern int always_checksum;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "always_checksum" (;) ";" (declaration) "extern int do_compression;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "do_compression" (;) ";" (declaration) "extern int protocol_version;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "protocol_version" (;) ";" (declaration) "extern char *batch_name;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (pointer_declarator) "*batch_name" (*) "*" (identifier) "batch_name" (;) ";" (declaration) "extern struct filter_list_struct filter_list;" (storage_class_specifier) "extern" (extern) "extern" (struct_specifier) "struct filter_list_struct" (struct) "struct" (type_identifier) "filter_list_struct" (identifier) "filter_list" (;) ";" (declaration) "static int *flag_ptr[] = {\n &recurse, /* 0 */\n &preserve_uid, /* 1 */\n &preserve_gid, /* 2 */\n &preserve_links, /* 3 */\n &preserve_devices, /* 4 */\n &preserve_hard_links, /* 5 */\n &always_checksum, /* 6 */\n &xfer_dirs, /* 7 (protocol 29) */\n &do_compression, /* 8 (protocol 29) */\n NULL\n};" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (init_declarator) "*flag_ptr[] = {\n &recurse, /* 0 */\n &preserve_uid, /* 1 */\n &preserve_gid, /* 2 */\n &preserve_links, /* 3 */\n &preserve_devices, /* 4 */\n &preserve_hard_links, /* 5 */\n &always_checksum, /* 6 */\n &xfer_dirs, /* 7 (protocol 29) */\n &do_compression, /* 8 (protocol 29) */\n NULL\n}" (pointer_declarator) "*flag_ptr[]" (*) "*" (array_declarator) "flag_ptr[]" (identifier) "flag_ptr" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n &recurse, /* 0 */\n &preserve_uid, /* 1 */\n &preserve_gid, /* 2 */\n &preserve_links, /* 3 */\n &preserve_devices, /* 4 */\n &preserve_hard_links, /* 5 */\n &always_checksum, /* 6 */\n &xfer_dirs, /* 7 (protocol 29) */\n &do_compression, /* 8 (protocol 29) */\n NULL\n}" ({) "{" (pointer_expression) "&recurse" (&) "&" (identifier) "recurse" (,) "," (comment) "/* 0 */" (pointer_expression) "&preserve_uid" (&) "&" (identifier) "preserve_uid" (,) "," (comment) "/* 1 */" (pointer_expression) "&preserve_gid" (&) "&" (identifier) "preserve_gid" (,) "," (comment) "/* 2 */" (pointer_expression) "&preserve_links" (&) "&" (identifier) "preserve_links" (,) "," (comment) "/* 3 */" (pointer_expression) "&preserve_devices" (&) "&" (identifier) "preserve_devices" (,) "," (comment) "/* 4 */" (pointer_expression) "&preserve_hard_links" (&) "&" (identifier) "preserve_hard_links" (,) "," (comment) "/* 5 */" (pointer_expression) "&always_checksum" (&) "&" (identifier) "always_checksum" (,) "," (comment) "/* 6 */" (pointer_expression) "&xfer_dirs" (&) "&" (identifier) "xfer_dirs" (,) "," (comment) "/* 7 (protocol 29) */" (pointer_expression) "&do_compression" (&) "&" (identifier) "do_compression" (,) "," (comment) "/* 8 (protocol 29) */" (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static char *flag_name[] = {\n "--recurse (-r)",\n "--owner (-o)",\n "--group (-g)",\n "--links (-l)",\n "--devices (-D)",\n "--hard-links (-H)",\n "--checksum (-c)",\n "--dirs (-d)",\n "--compress (-z)",\n NULL\n};" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "*flag_name[] = {\n "--recurse (-r)",\n "--owner (-o)",\n "--group (-g)",\n "--links (-l)",\n "--devices (-D)",\n "--hard-links (-H)",\n "--checksum (-c)",\n "--dirs (-d)",\n "--compress (-z)",\n NULL\n}" (pointer_declarator) "*flag_name[]" (*) "*" (array_declarator) "flag_name[]" (identifier) "flag_name" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n "--recurse (-r)",\n "--owner (-o)",\n "--group (-g)",\n "--links (-l)",\n "--devices (-D)",\n "--hard-links (-H)",\n "--checksum (-c)",\n "--dirs (-d)",\n "--compress (-z)",\n NULL\n}" ({) "{" (string_literal) ""--recurse (-r)"" (") """ (string_content) "--recurse (-r)" (") """ (,) "," (string_literal) ""--owner (-o)"" (") """ (string_content) "--owner (-o)" (") """ (,) "," (string_literal) ""--group (-g)"" (") """ (string_content) "--group (-g)" (") """ (,) "," (string_literal) ""--links (-l)"" (") """ (string_content) "--links (-l)" (") """ (,) "," (string_literal) ""--devices (-D)"" (") """ (string_content) "--devices (-D)" (") """ (,) "," (string_literal) ""--hard-links (-H)"" (") """ (string_content) "--hard-links (-H)" (") """ (,) "," (string_literal) ""--checksum (-c)"" (") """ (string_content) "--checksum (-c)" (") """ (,) "," (string_literal) ""--dirs (-d)"" (") """ (string_content) "--dirs (-d)" (") """ (,) "," (string_literal) ""--compress (-z)"" (") """ (string_content) "--compress (-z)" (") """ (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (function_definition) "void write_stream_flags(int fd)\n{\n int i, flags;\n\n /* Start the batch file with a bitmap of data-stream-affecting\n * flags. */\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = 0; flag_ptr[i]; i++) {\n if (*flag_ptr[i])\n flags |= 1 << i;\n }\n write_int(fd, flags);\n}" (primitive_type) "void" (function_declarator) "write_stream_flags(int fd)" (identifier) "write_stream_flags" (parameter_list) "(int fd)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n int i, flags;\n\n /* Start the batch file with a bitmap of data-stream-affecting\n * flags. */\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = 0; flag_ptr[i]; i++) {\n if (*flag_ptr[i])\n flags |= 1 << i;\n }\n write_int(fd, flags);\n}" ({) "{" (declaration) "int i, flags;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "flags" (;) ";" (comment) "/* Start the batch file with a bitmap of data-stream-affecting\n * flags. */" (if_statement) "if (protocol_version < 29)\n flag_ptr[7] = NULL;" (if) "if" (parenthesized_expression) "(protocol_version < 29)" (() "(" (binary_expression) "protocol_version < 29" (identifier) "protocol_version" (<) "<" (number_literal) "29" ()) ")" (expression_statement) "flag_ptr[7] = NULL;" (assignment_expression) "flag_ptr[7] = NULL" (subscript_expression) "flag_ptr[7]" (identifier) "flag_ptr" ([) "[" (number_literal) "7" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (for_statement) "for (i = 0, flags = 0; flag_ptr[i]; i++) {\n if (*flag_ptr[i])\n flags |= 1 << i;\n }" (for) "for" (() "(" (comma_expression) "i = 0, flags = 0" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (,) "," (assignment_expression) "flags = 0" (identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (subscript_expression) "flag_ptr[i]" (identifier) "flag_ptr" ([) "[" (identifier) "i" (]) "]" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (*flag_ptr[i])\n flags |= 1 << i;\n }" ({) "{" (if_statement) "if (*flag_ptr[i])\n flags |= 1 << i;" (if) "if" (parenthesized_expression) "(*flag_ptr[i])" (() "(" (pointer_expression) "*flag_ptr[i]" (*) "*" (subscript_expression) "flag_ptr[i]" (identifier) "flag_ptr" ([) "[" (identifier) "i" (]) "]" ()) ")" (expression_statement) "flags |= 1 << i;" (assignment_expression) "flags |= 1 << i" (identifier) "flags" (|=) "|=" (binary_expression) "1 << i" (number_literal) "1" (<<) "<<" (identifier) "i" (;) ";" (}) "}" (expression_statement) "write_int(fd, flags);" (call_expression) "write_int(fd, flags)" (identifier) "write_int" (argument_list) "(fd, flags)" (() "(" (identifier) "fd" (,) "," (identifier) "flags" ()) ")" (;) ";" (}) "}" (function_definition) "void read_stream_flags(int fd)\n{\n int i, flags;\n\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n int set = flags & (1 << i) ? 1 : 0;\n if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }\n }\n if (protocol_version < 29) {\n if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;\n }\n}" (primitive_type) "void" (function_declarator) "read_stream_flags(int fd)" (identifier) "read_stream_flags" (parameter_list) "(int fd)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n int i, flags;\n\n if (protocol_version < 29)\n flag_ptr[7] = NULL;\n for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n int set = flags & (1 << i) ? 1 : 0;\n if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }\n }\n if (protocol_version < 29) {\n if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;\n }\n}" ({) "{" (declaration) "int i, flags;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "flags" (;) ";" (if_statement) "if (protocol_version < 29)\n flag_ptr[7] = NULL;" (if) "if" (parenthesized_expression) "(protocol_version < 29)" (() "(" (binary_expression) "protocol_version < 29" (identifier) "protocol_version" (<) "<" (number_literal) "29" ()) ")" (expression_statement) "flag_ptr[7] = NULL;" (assignment_expression) "flag_ptr[7] = NULL" (subscript_expression) "flag_ptr[7]" (identifier) "flag_ptr" ([) "[" (number_literal) "7" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (for_statement) "for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n int set = flags & (1 << i) ? 1 : 0;\n if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }\n }" (for) "for" (() "(" (comma_expression) "i = 0, flags = read_int(fd)" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (,) "," (assignment_expression) "flags = read_int(fd)" (identifier) "flags" (=) "=" (call_expression) "read_int(fd)" (identifier) "read_int" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (;) ";" (subscript_expression) "flag_ptr[i]" (identifier) "flag_ptr" ([) "[" (identifier) "i" (]) "]" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n int set = flags & (1 << i) ? 1 : 0;\n if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }\n }" ({) "{" (declaration) "int set = flags & (1 << i) ? 1 : 0;" (primitive_type) "int" (init_declarator) "set = flags & (1 << i) ? 1 : 0" (identifier) "set" (=) "=" (conditional_expression) "flags & (1 << i) ? 1 : 0" (binary_expression) "flags & (1 << i)" (identifier) "flags" (&) "&" (parenthesized_expression) "(1 << i)" (() "(" (binary_expression) "1 << i" (number_literal) "1" (<<) "<<" (identifier) "i" ()) ")" (?) "?" (number_literal) "1" (:) ":" (number_literal) "0" (;) ";" (if_statement) "if (*flag_ptr[i] != set) {\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }" (if) "if" (parenthesized_expression) "(*flag_ptr[i] != set)" (() "(" (binary_expression) "*flag_ptr[i] != set" (pointer_expression) "*flag_ptr[i]" (*) "*" (subscript_expression) "flag_ptr[i]" (identifier) "flag_ptr" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (identifier) "set" ()) ")" (compound_statement) "{\n if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }\n *flag_ptr[i] = set;\n }" ({) "{" (if_statement) "if (verbose) {\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }" (if) "if" (parenthesized_expression) "(verbose)" (() "(" (identifier) "verbose" ()) ")" (compound_statement) "{\n rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);\n }" ({) "{" (expression_statement) "rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i]);" (call_expression) "rprintf(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i])" (identifier) "rprintf" (argument_list) "(FINFO,\n "%sing the %s option to match the batchfile.\n",\n set ? "Sett" : "Clear", flag_name[i])" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""%sing the %s option to match the batchfile.\n"" (") """ (string_content) "%sing the %s option to match the batchfile." (escape_sequence) "\n" (") """ (,) "," (conditional_expression) "set ? "Sett" : "Clear"" (identifier) "set" (?) "?" (string_literal) ""Sett"" (") """ (string_content) "Sett" (") """ (:) ":" (string_literal) ""Clear"" (") """ (string_content) "Clear" (") """ (,) "," (subscript_expression) "flag_name[i]" (identifier) "flag_name" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "*flag_ptr[i] = set;" (assignment_expression) "*flag_ptr[i] = set" (pointer_expression) "*flag_ptr[i]" (*) "*" (subscript_expression) "flag_ptr[i]" (identifier) "flag_ptr" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "set" (;) ";" (}) "}" (}) "}" (if_statement) "if (protocol_version < 29) {\n if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;\n }" (if) "if" (parenthesized_expression) "(protocol_version < 29)" (() "(" (binary_expression) "protocol_version < 29" (identifier) "protocol_version" (<) "<" (number_literal) "29" ()) ")" (compound_statement) "{\n if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;\n }" ({) "{" (if_statement) "if (recurse)\n xfer_dirs |= 1;\n else if (xfer_dirs < 2)\n xfer_dirs = 0;" (if) "if" (parenthesized_expression) "(recurse)" (() "(" (identifier) "recurse" ()) ")" (expression_statement) "xfer_dirs |= 1;" (assignment_expression) "xfer_dirs |= 1" (identifier) "xfer_dirs" (|=) "|=" (number_literal) "1" (;) ";" (else_clause) "else if (xfer_dirs < 2)\n xfer_dirs = 0;" (else) "else" (if_statement) "if (xfer_dirs < 2)\n xfer_dirs = 0;" (if) "if" (parenthesized_expression) "(xfer_dirs < 2)" (() "(" (binary_expression) "xfer_dirs < 2" (identifier) "xfer_dirs" (<) "<" (number_literal) "2" ()) ")" (expression_statement) "xfer_dirs = 0;" (assignment_expression) "xfer_dirs = 0" (identifier) "xfer_dirs" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (function_definition) "static void write_arg(int fd, char *arg)\n{\n char *x, *s;\n\n if (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n write(fd, arg, x - arg + 1);\n arg += x - arg + 1;\n }\n\n if (strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL) {\n write(fd, "'", 1);\n for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }\n write(fd, s, strlen(s));\n write(fd, "'", 1);\n return;\n }\n\n write(fd, arg, strlen(arg));\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "write_arg(int fd, char *arg)" (identifier) "write_arg" (parameter_list) "(int fd, char *arg)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "char *arg" (primitive_type) "char" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (compound_statement) "{\n char *x, *s;\n\n if (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n write(fd, arg, x - arg + 1);\n arg += x - arg + 1;\n }\n\n if (strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL) {\n write(fd, "'", 1);\n for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }\n write(fd, s, strlen(s));\n write(fd, "'", 1);\n return;\n }\n\n write(fd, arg, strlen(arg));\n}" ({) "{" (declaration) "char *x, *s;" (primitive_type) "char" (pointer_declarator) "*x" (*) "*" (identifier) "x" (,) "," (pointer_declarator) "*s" (*) "*" (identifier) "s" (;) ";" (if_statement) "if (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n write(fd, arg, x - arg + 1);\n arg += x - arg + 1;\n }" (if) "if" (parenthesized_expression) "(*arg == '-' && (x = strchr(arg, '=')) != NULL)" (() "(" (binary_expression) "*arg == '-' && (x = strchr(arg, '=')) != NULL" (binary_expression) "*arg == '-'" (pointer_expression) "*arg" (*) "*" (identifier) "arg" (==) "==" (char_literal) "'-'" (') "'" (character) "-" (') "'" (&&) "&&" (binary_expression) "(x = strchr(arg, '=')) != NULL" (parenthesized_expression) "(x = strchr(arg, '='))" (() "(" (assignment_expression) "x = strchr(arg, '=')" (identifier) "x" (=) "=" (call_expression) "strchr(arg, '=')" (identifier) "strchr" (argument_list) "(arg, '=')" (() "(" (identifier) "arg" (,) "," (char_literal) "'='" (') "'" (character) "=" (') "'" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n write(fd, arg, x - arg + 1);\n arg += x - arg + 1;\n }" ({) "{" (expression_statement) "write(fd, arg, x - arg + 1);" (call_expression) "write(fd, arg, x - arg + 1)" (identifier) "write" (argument_list) "(fd, arg, x - arg + 1)" (() "(" (identifier) "fd" (,) "," (identifier) "arg" (,) "," (binary_expression) "x - arg + 1" (binary_expression) "x - arg" (identifier) "x" (-) "-" (identifier) "arg" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "arg += x - arg + 1;" (assignment_expression) "arg += x - arg + 1" (identifier) "arg" (+=) "+=" (binary_expression) "x - arg + 1" (binary_expression) "x - arg" (identifier) "x" (-) "-" (identifier) "arg" (+) "+" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL) {\n write(fd, "'", 1);\n for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }\n write(fd, s, strlen(s));\n write(fd, "'", 1);\n return;\n }" (if) "if" (parenthesized_expression) "(strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL)" (() "(" (binary_expression) "strpbrk(arg, " \"'&;|[]()$#!*?^\\") != NULL" (call_expression) "strpbrk(arg, " \"'&;|[]()$#!*?^\\")" (identifier) "strpbrk" (argument_list) "(arg, " \"'&;|[]()$#!*?^\\")" (() "(" (identifier) "arg" (,) "," (string_literal) "" \"'&;|[]()$#!*?^\\"" (") """ (string_content) " " (escape_sequence) "\"" (string_content) "'&;|[]()$#!*?^" (escape_sequence) "\\" (") """ ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n write(fd, "'", 1);\n for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }\n write(fd, s, strlen(s));\n write(fd, "'", 1);\n return;\n }" ({) "{" (expression_statement) "write(fd, "'", 1);" (call_expression) "write(fd, "'", 1)" (identifier) "write" (argument_list) "(fd, "'", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) ""'"" (") """ (string_content) "'" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (for_statement) "for (s = arg; (x = strchr(s, '\'')) != NULL; s = x + 1) {\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }" (for) "for" (() "(" (assignment_expression) "s = arg" (identifier) "s" (=) "=" (identifier) "arg" (;) ";" (binary_expression) "(x = strchr(s, '\'')) != NULL" (parenthesized_expression) "(x = strchr(s, '\''))" (() "(" (assignment_expression) "x = strchr(s, '\'')" (identifier) "x" (=) "=" (call_expression) "strchr(s, '\'')" (identifier) "strchr" (argument_list) "(s, '\'')" (() "(" (identifier) "s" (,) "," (char_literal) "'\''" (') "'" (escape_sequence) "\'" (') "'" ()) ")" ()) ")" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (assignment_expression) "s = x + 1" (identifier) "s" (=) "=" (binary_expression) "x + 1" (identifier) "x" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n write(fd, s, x - s + 1);\n write(fd, "'", 1);\n }" ({) "{" (expression_statement) "write(fd, s, x - s + 1);" (call_expression) "write(fd, s, x - s + 1)" (identifier) "write" (argument_list) "(fd, s, x - s + 1)" (() "(" (identifier) "fd" (,) "," (identifier) "s" (,) "," (binary_expression) "x - s + 1" (binary_expression) "x - s" (identifier) "x" (-) "-" (identifier) "s" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "write(fd, "'", 1);" (call_expression) "write(fd, "'", 1)" (identifier) "write" (argument_list) "(fd, "'", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) ""'"" (") """ (string_content) "'" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "write(fd, s, strlen(s));" (call_expression) "write(fd, s, strlen(s))" (identifier) "write" (argument_list) "(fd, s, strlen(s))" (() "(" (identifier) "fd" (,) "," (identifier) "s" (,) "," (call_expression) "strlen(s)" (identifier) "strlen" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" ()) ")" (;) ";" (expression_statement) "write(fd, "'", 1);" (call_expression) "write(fd, "'", 1)" (identifier) "write" (argument_list) "(fd, "'", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) ""'"" (") """ (string_content) "'" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "write(fd, arg, strlen(arg));" (call_expression) "write(fd, arg, strlen(arg))" (identifier) "write" (argument_list) "(fd, arg, strlen(arg))" (() "(" (identifier) "fd" (,) "," (identifier) "arg" (,) "," (call_expression) "strlen(arg)" (identifier) "strlen" (argument_list) "(arg)" (() "(" (identifier) "arg" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "static void write_filter_rules(int fd)\n{\n struct filter_struct *ent;\n\n write_sbuf(fd, " <<'#E#'\n");\n for (ent = filter_list.head; ent; ent = ent->next) {\n unsigned int plen;\n char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);\n write_buf(fd, p, plen);\n write_sbuf(fd, ent->pattern);\n if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');\n write_byte(fd, eol_nulls ? 0 : '\n');\n }\n if (eol_nulls)\n write_sbuf(fd, ";\n");\n write_sbuf(fd, "#E#");\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "write_filter_rules(int fd)" (identifier) "write_filter_rules" (parameter_list) "(int fd)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n struct filter_struct *ent;\n\n write_sbuf(fd, " <<'#E#'\n");\n for (ent = filter_list.head; ent; ent = ent->next) {\n unsigned int plen;\n char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);\n write_buf(fd, p, plen);\n write_sbuf(fd, ent->pattern);\n if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');\n write_byte(fd, eol_nulls ? 0 : '\n');\n }\n if (eol_nulls)\n write_sbuf(fd, ";\n");\n write_sbuf(fd, "#E#");\n}" ({) "{" (declaration) "struct filter_struct *ent;" (struct_specifier) "struct filter_struct" (struct) "struct" (type_identifier) "filter_struct" (pointer_declarator) "*ent" (*) "*" (identifier) "ent" (;) ";" (expression_statement) "write_sbuf(fd, " <<'#E#'\n");" (call_expression) "write_sbuf(fd, " <<'#E#'\n")" (identifier) "write_sbuf" (argument_list) "(fd, " <<'#E#'\n")" (() "(" (identifier) "fd" (,) "," (string_literal) "" <<'#E#'\n"" (") """ (string_content) " <<'#E#'" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (for_statement) "for (ent = filter_list.head; ent; ent = ent->next) {\n unsigned int plen;\n char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);\n write_buf(fd, p, plen);\n write_sbuf(fd, ent->pattern);\n if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');\n write_byte(fd, eol_nulls ? 0 : '\n');\n }" (for) "for" (() "(" (assignment_expression) "ent = filter_list.head" (identifier) "ent" (=) "=" (field_expression) "filter_list.head" (identifier) "filter_list" (.) "." (field_identifier) "head" (;) ";" (identifier) "ent" (;) ";" (assignment_expression) "ent = ent->next" (identifier) "ent" (=) "=" (field_expression) "ent->next" (identifier) "ent" (->) "->" (field_identifier) "next" ()) ")" (compound_statement) "{\n unsigned int plen;\n char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);\n write_buf(fd, p, plen);\n write_sbuf(fd, ent->pattern);\n if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');\n write_byte(fd, eol_nulls ? 0 : '\n');\n }" ({) "{" (declaration) "unsigned int plen;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "plen" (;) ";" (declaration) "char *p = get_rule_prefix(ent->match_flags, "- ", 0, &plen);" (primitive_type) "char" (init_declarator) "*p = get_rule_prefix(ent->match_flags, "- ", 0, &plen)" (pointer_declarator) "*p" (*) "*" (identifier) "p" (=) "=" (call_expression) "get_rule_prefix(ent->match_flags, "- ", 0, &plen)" (identifier) "get_rule_prefix" (argument_list) "(ent->match_flags, "- ", 0, &plen)" (() "(" (field_expression) "ent->match_flags" (identifier) "ent" (->) "->" (field_identifier) "match_flags" (,) "," (string_literal) ""- "" (") """ (string_content) "- " (") """ (,) "," (number_literal) "0" (,) "," (pointer_expression) "&plen" (&) "&" (identifier) "plen" ()) ")" (;) ";" (expression_statement) "write_buf(fd, p, plen);" (call_expression) "write_buf(fd, p, plen)" (identifier) "write_buf" (argument_list) "(fd, p, plen)" (() "(" (identifier) "fd" (,) "," (identifier) "p" (,) "," (identifier) "plen" ()) ")" (;) ";" (expression_statement) "write_sbuf(fd, ent->pattern);" (call_expression) "write_sbuf(fd, ent->pattern)" (identifier) "write_sbuf" (argument_list) "(fd, ent->pattern)" (() "(" (identifier) "fd" (,) "," (field_expression) "ent->pattern" (identifier) "ent" (->) "->" (field_identifier) "pattern" ()) ")" (;) ";" (if_statement) "if (ent->match_flags & MATCHFLG_DIRECTORY)\n write_byte(fd, '/');" (if) "if" (parenthesized_expression) "(ent->match_flags & MATCHFLG_DIRECTORY)" (() "(" (binary_expression) "ent->match_flags & MATCHFLG_DIRECTORY" (field_expression) "ent->match_flags" (identifier) "ent" (->) "->" (field_identifier) "match_flags" (&) "&" (identifier) "MATCHFLG_DIRECTORY" ()) ")" (expression_statement) "write_byte(fd, '/');" (call_expression) "write_byte(fd, '/')" (identifier) "write_byte" (argument_list) "(fd, '/')" (() "(" (identifier) "fd" (,) "," (char_literal) "'/'" (') "'" (character) "/" (') "'" ()) ")" (;) ";" (expression_statement) "write_byte(fd, eol_nulls ? 0 : '\n');" (call_expression) "write_byte(fd, eol_nulls ? 0 : '\n')" (identifier) "write_byte" (argument_list) "(fd, eol_nulls ? 0 : '\n')" (() "(" (identifier) "fd" (,) "," (conditional_expression) "eol_nulls ? 0 : '\n'" (identifier) "eol_nulls" (?) "?" (number_literal) "0" (:) ":" (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (}) "}" (if_statement) "if (eol_nulls)\n write_sbuf(fd, ";\n");" (if) "if" (parenthesized_expression) "(eol_nulls)" (() "(" (identifier) "eol_nulls" ()) ")" (expression_statement) "write_sbuf(fd, ";\n");" (call_expression) "write_sbuf(fd, ";\n")" (identifier) "write_sbuf" (argument_list) "(fd, ";\n")" (() "(" (identifier) "fd" (,) "," (string_literal) "";\n"" (") """ (string_content) ";" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "write_sbuf(fd, "#E#");" (call_expression) "write_sbuf(fd, "#E#")" (identifier) "write_sbuf" (argument_list) "(fd, "#E#")" (() "(" (identifier) "fd" (,) "," (string_literal) ""#E#"" (") """ (string_content) "#E#" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* This routine tries to write out an equivalent --read-batch command\n * given the user's --write-batch args. However, it doesn't really\n * understand most of the options, so it uses some overly simple\n * heuristics to munge the command line into something that will\n * (hopefully) work. */" (function_definition) "void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)\n{\n int fd, i, len;\n char *p, filename[MAXPATHLEN];\n\n stringjoin(filename, sizeof filename,\n batch_name, ".sh", NULL);\n fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC);\n if (fd < 0) {\n rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n\n /* Write argvs info to BATCH.sh file */\n write_arg(fd, argv[0]);\n if (filter_list.head) {\n if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");\n }\n for (i = 1; i < argc - file_arg_cnt; i++) {\n p = argv[i];\n if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }\n if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }\n write(fd, " ", 1);\n if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);\n }\n if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n p = argv[argc - 1];\n write(fd, " ${1:-", 6);\n write_arg(fd, p);\n write_byte(fd, '}');\n if (filter_list.head)\n write_filter_rules(fd);\n if (write(fd, "\n", 1) != 1 || close(fd) < 0) {\n rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n}" (primitive_type) "void" (function_declarator) "write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)" (identifier) "write_batch_shell_file" (parameter_list) "(int argc, char *argv[], int file_arg_cnt)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char *argv[]" (primitive_type) "char" (pointer_declarator) "*argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" (,) "," (parameter_declaration) "int file_arg_cnt" (primitive_type) "int" (identifier) "file_arg_cnt" ()) ")" (compound_statement) "{\n int fd, i, len;\n char *p, filename[MAXPATHLEN];\n\n stringjoin(filename, sizeof filename,\n batch_name, ".sh", NULL);\n fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC);\n if (fd < 0) {\n rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n\n /* Write argvs info to BATCH.sh file */\n write_arg(fd, argv[0]);\n if (filter_list.head) {\n if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");\n }\n for (i = 1; i < argc - file_arg_cnt; i++) {\n p = argv[i];\n if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }\n if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }\n write(fd, " ", 1);\n if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);\n }\n if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n p = argv[argc - 1];\n write(fd, " ${1:-", 6);\n write_arg(fd, p);\n write_byte(fd, '}');\n if (filter_list.head)\n write_filter_rules(fd);\n if (write(fd, "\n", 1) != 1 || close(fd) < 0) {\n rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));\n exit_cleanup(1);\n }\n}" ({) "{" (declaration) "int fd, i, len;" (primitive_type) "int" (identifier) "fd" (,) "," (identifier) "i" (,) "," (identifier) "len" (;) ";" (declaration) "char *p, filename[MAXPATHLEN];" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (array_declarator) "filename[MAXPATHLEN]" (identifier) "filename" ([) "[" (identifier) "MAXPATHLEN" (]) "]" (;) ";" (expression_statement) "stringjoin(filename, sizeof filename,\n batch_name, ".sh", NULL);" (call_expression) "stringjoin(filename, sizeof filename,\n batch_name, ".sh", NULL)" (identifier) "stringjoin" (argument_list) "(filename, sizeof filename,\n batch_name, ".sh", NULL)" (() "(" (identifier) "filename" (,) "," (sizeof_expression) "sizeof filename" (sizeof) "sizeof" (identifier) "filename" (,) "," (identifier) "batch_name" (,) "," (string_literal) "".sh"" (") """ (string_content) ".sh" (") """ (,) "," (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC);" (assignment_expression) "fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC)" (identifier) "fd" (=) "=" (call_expression) "do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC)" (identifier) "do_open" (argument_list) "(filename, O_WRONLY | O_CREAT | O_TRUNC,\n S_IRUSR | S_IWUSR | S_IEXEC)" (() "(" (identifier) "filename" (,) "," (binary_expression) "O_WRONLY | O_CREAT | O_TRUNC" (binary_expression) "O_WRONLY | O_CREAT" (identifier) "O_WRONLY" (|) "|" (identifier) "O_CREAT" (|) "|" (identifier) "O_TRUNC" (,) "," (binary_expression) "S_IRUSR | S_IWUSR | S_IEXEC" (binary_expression) "S_IRUSR | S_IWUSR" (identifier) "S_IRUSR" (|) "|" (identifier) "S_IWUSR" (|) "|" (identifier) "S_IEXEC" ()) ")" (;) ";" (if_statement) "if (fd < 0) {\n rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));\n exit_cleanup(1);\n }" (if) "if" (parenthesized_expression) "(fd < 0)" (() "(" (binary_expression) "fd < 0" (identifier) "fd" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));\n exit_cleanup(1);\n }" ({) "{" (expression_statement) "rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename));" (call_expression) "rsyserr(FERROR, errno, "Batch file %s open error",\n safe_fname(filename))" (identifier) "rsyserr" (argument_list) "(FERROR, errno, "Batch file %s open error",\n safe_fname(filename))" (() "(" (identifier) "FERROR" (,) "," (identifier) "errno" (,) "," (string_literal) ""Batch file %s open error"" (") """ (string_content) "Batch file %s open error" (") """ (,) "," (call_expression) "safe_fname(filename)" (identifier) "safe_fname" (argument_list) "(filename)" (() "(" (identifier) "filename" ()) ")" ()) ")" (;) ";" (expression_statement) "exit_cleanup(1);" (call_expression) "exit_cleanup(1)" (identifier) "exit_cleanup" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/* Write argvs info to BATCH.sh file */" (expression_statement) "write_arg(fd, argv[0]);" (call_expression) "write_arg(fd, argv[0])" (identifier) "write_arg" (argument_list) "(fd, argv[0])" (() "(" (identifier) "fd" (,) "," (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (if_statement) "if (filter_list.head) {\n if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");\n }" (if) "if" (parenthesized_expression) "(filter_list.head)" (() "(" (field_expression) "filter_list.head" (identifier) "filter_list" (.) "." (field_identifier) "head" ()) ")" (compound_statement) "{\n if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");\n }" ({) "{" (if_statement) "if (protocol_version >= 29)\n write_sbuf(fd, " --filter=._-");\n else\n write_sbuf(fd, " --exclude-from=-");" (if) "if" (parenthesized_expression) "(protocol_version >= 29)" (() "(" (binary_expression) "protocol_version >= 29" (identifier) "protocol_version" (>=) ">=" (number_literal) "29" ()) ")" (expression_statement) "write_sbuf(fd, " --filter=._-");" (call_expression) "write_sbuf(fd, " --filter=._-")" (identifier) "write_sbuf" (argument_list) "(fd, " --filter=._-")" (() "(" (identifier) "fd" (,) "," (string_literal) "" --filter=._-"" (") """ (string_content) " --filter=._-" (") """ ()) ")" (;) ";" (else_clause) "else\n write_sbuf(fd, " --exclude-from=-");" (else) "else" (expression_statement) "write_sbuf(fd, " --exclude-from=-");" (call_expression) "write_sbuf(fd, " --exclude-from=-")" (identifier) "write_sbuf" (argument_list) "(fd, " --exclude-from=-")" (() "(" (identifier) "fd" (,) "," (string_literal) "" --exclude-from=-"" (") """ (string_content) " --exclude-from=-" (") """ ()) ")" (;) ";" (}) "}" (for_statement) "for (i = 1; i < argc - file_arg_cnt; i++) {\n p = argv[i];\n if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }\n if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }\n write(fd, " ", 1);\n if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);\n }" (for) "for" (() "(" (assignment_expression) "i = 1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i < argc - file_arg_cnt" (identifier) "i" (<) "<" (binary_expression) "argc - file_arg_cnt" (identifier) "argc" (-) "-" (identifier) "file_arg_cnt" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n p = argv[i];\n if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }\n if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }\n write(fd, " ", 1);\n if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);\n }" ({) "{" (expression_statement) "p = argv[i];" (assignment_expression) "p = argv[i]" (identifier) "p" (=) "=" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" (;) ";" (if_statement) "if (strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0) {\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }" (if) "if" (parenthesized_expression) "(strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0)" (() "(" (binary_expression) "strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0\n || strncmp(p, "--exclude", 9) == 0" (binary_expression) "strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0\n || strncmp(p, "--include", 9) == 0" (binary_expression) "strncmp(p, "--files-from", 12) == 0\n || strncmp(p, "--filter", 8) == 0" (binary_expression) "strncmp(p, "--files-from", 12) == 0" (call_expression) "strncmp(p, "--files-from", 12)" (identifier) "strncmp" (argument_list) "(p, "--files-from", 12)" (() "(" (identifier) "p" (,) "," (string_literal) ""--files-from"" (") """ (string_content) "--files-from" (") """ (,) "," (number_literal) "12" ()) ")" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "strncmp(p, "--filter", 8) == 0" (call_expression) "strncmp(p, "--filter", 8)" (identifier) "strncmp" (argument_list) "(p, "--filter", 8)" (() "(" (identifier) "p" (,) "," (string_literal) ""--filter"" (") """ (string_content) "--filter" (") """ (,) "," (number_literal) "8" ()) ")" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "strncmp(p, "--include", 9) == 0" (call_expression) "strncmp(p, "--include", 9)" (identifier) "strncmp" (argument_list) "(p, "--include", 9)" (() "(" (identifier) "p" (,) "," (string_literal) ""--include"" (") """ (string_content) "--include" (") """ (,) "," (number_literal) "9" ()) ")" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "strncmp(p, "--exclude", 9) == 0" (call_expression) "strncmp(p, "--exclude", 9)" (identifier) "strncmp" (argument_list) "(p, "--exclude", 9)" (() "(" (identifier) "p" (,) "," (string_literal) ""--exclude"" (") """ (string_content) "--exclude" (") """ (,) "," (number_literal) "9" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n if (strchr(p, '=') == NULL)\n i++;\n continue;\n }" ({) "{" (if_statement) "if (strchr(p, '=') == NULL)\n i++;" (if) "if" (parenthesized_expression) "(strchr(p, '=') == NULL)" (() "(" (binary_expression) "strchr(p, '=') == NULL" (call_expression) "strchr(p, '=')" (identifier) "strchr" (argument_list) "(p, '=')" (() "(" (identifier) "p" (,) "," (char_literal) "'='" (') "'" (character) "=" (') "'" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (if_statement) "if (strcmp(p, "-f") == 0) {\n i++;\n continue;\n }" (if) "if" (parenthesized_expression) "(strcmp(p, "-f") == 0)" (() "(" (binary_expression) "strcmp(p, "-f") == 0" (call_expression) "strcmp(p, "-f")" (identifier) "strcmp" (argument_list) "(p, "-f")" (() "(" (identifier) "p" (,) "," (string_literal) ""-f"" (") """ (string_content) "-f" (") """ ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n i++;\n continue;\n }" ({) "{" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (expression_statement) "write(fd, " ", 1);" (call_expression) "write(fd, " ", 1)" (identifier) "write" (argument_list) "(fd, " ", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) "" "" (") """ (string_content) " " (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (if_statement) "if (strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0) {\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n } else\n write_arg(fd, p);" (if) "if" (parenthesized_expression) "(strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0)" (() "(" (binary_expression) "strncmp(p, "--write-batch", len = 13) == 0\n || strncmp(p, "--only-write-batch", len = 18) == 0" (binary_expression) "strncmp(p, "--write-batch", len = 13) == 0" (call_expression) "strncmp(p, "--write-batch", len = 13)" (identifier) "strncmp" (argument_list) "(p, "--write-batch", len = 13)" (() "(" (identifier) "p" (,) "," (string_literal) ""--write-batch"" (") """ (string_content) "--write-batch" (") """ (,) "," (assignment_expression) "len = 13" (identifier) "len" (=) "=" (number_literal) "13" ()) ")" (==) "==" (number_literal) "0" (||) "||" (binary_expression) "strncmp(p, "--only-write-batch", len = 18) == 0" (call_expression) "strncmp(p, "--only-write-batch", len = 18)" (identifier) "strncmp" (argument_list) "(p, "--only-write-batch", len = 18)" (() "(" (identifier) "p" (,) "," (string_literal) ""--only-write-batch"" (") """ (string_content) "--only-write-batch" (") """ (,) "," (assignment_expression) "len = 18" (identifier) "len" (=) "=" (number_literal) "18" ()) ")" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n write(fd, "--read-batch", 12);\n if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }\n }" ({) "{" (expression_statement) "write(fd, "--read-batch", 12);" (call_expression) "write(fd, "--read-batch", 12)" (identifier) "write" (argument_list) "(fd, "--read-batch", 12)" (() "(" (identifier) "fd" (,) "," (string_literal) ""--read-batch"" (") """ (string_content) "--read-batch" (") """ (,) "," (number_literal) "12" ()) ")" (;) ";" (if_statement) "if (p[len] == '=') {\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }" (if) "if" (parenthesized_expression) "(p[len] == '=')" (() "(" (binary_expression) "p[len] == '='" (subscript_expression) "p[len]" (identifier) "p" ([) "[" (identifier) "len" (]) "]" (==) "==" (char_literal) "'='" (') "'" (character) "=" (') "'" ()) ")" (compound_statement) "{\n write(fd, "=", 1);\n write_arg(fd, p + len + 1);\n }" ({) "{" (expression_statement) "write(fd, "=", 1);" (call_expression) "write(fd, "=", 1)" (identifier) "write" (argument_list) "(fd, "=", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) ""="" (") """ (string_content) "=" (") """ (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "write_arg(fd, p + len + 1);" (call_expression) "write_arg(fd, p + len + 1)" (identifier) "write_arg" (argument_list) "(fd, p + len + 1)" (() "(" (identifier) "fd" (,) "," (binary_expression) "p + len + 1" (binary_expression) "p + len" (identifier) "p" (+) "+" (identifier) "len" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (}) "}" (else_clause) "else\n write_arg(fd, p);" (else) "else" (expression_statement) "write_arg(fd, p);" (call_expression) "write_arg(fd, p)" (identifier) "write_arg" (argument_list) "(fd, p)" (() "(" (identifier) "fd" (,) "," (identifier) "p" ()) ")" (;) ";" (}) "}" (if_statement) "if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n p = argv[argc - 1];" (if) "if" (parenthesized_expression) "(!(p = check_for_hostspec(argv[argc - 1], &p, &i)))" (() "(" (unary_expression) "!(p = check_for_hostspec(argv[argc - 1], &p, &i))" (!) "!" (parenthesized_expression) "(p = check_for_hostspec(argv[argc - 1], &p, &i))" (() "(" (assignment_expression) "p = check_for_hostspec(argv[argc - 1], &p, &i)" (identifier) "p" (=) "=" (call_expression) "check_for_hostspec(argv[argc - 1], &p, &i)" (identifier) "check_for_hostspec" (argument_list) "(argv[argc - 1], &p, &i)" (() "(" (subscript_expression) "argv[argc - 1]" (identifier) "argv" ([) "[" (binary_expression) "argc - 1" (identifier) "argc" (-) "-" (number_literal) "1" (]) "]" (,) "," (pointer_expression) "&p" (&) "&" (identifier) "p" (,) "," (pointer_expression) "&i" (&) "&" (identifier) "i" ()) ")" ()) ")" ()) ")" (expression_statement) "p = argv[argc - 1];" (assignment_expression) "p = argv[argc - 1]" (identifier) "p" (=) "=" (subscript_expression) "argv[argc - 1]" (identifier) "argv" ([) "[" (binary_expression) "argc - 1" (identifier) "argc" (-) "-" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "write(fd, " ${1:-", 6);" (call_expression) "write(fd, " ${1:-", 6)" (identifier) "write" (argument_list) "(fd, " ${1:-", 6)" (() "(" (identifier) "fd" (,) "," (string_literal) "" ${1:-"" (") """ (string_content) " ${1:-" (") """ (,) "," (number_literal) "6" ()) ")" (;) ";" (expression_statement) "write_arg(fd, p);" (call_expression) "write_arg(fd, p)" (identifier) "write_arg" (argument_list) "(fd, p)" (() "(" (identifier) "fd" (,) "," (identifier) "p" ()) ")" (;) ";" (expression_statement) "write_byte(fd, '}');" (call_expression) "write_byte(fd, '}')" (identifier) "write_byte" (argument_list) "(fd, '}')" (() "(" (identifier) "fd" (,) "," (char_literal) "'}'" (') "'" (character) "}" (') "'" ()) ")" (;) ";" (if_statement) "if (filter_list.head)\n write_filter_rules(fd);" (if) "if" (parenthesized_expression) "(filter_list.head)" (() "(" (field_expression) "filter_list.head" (identifier) "filter_list" (.) "." (field_identifier) "head" ()) ")" (expression_statement) "write_filter_rules(fd);" (call_expression) "write_filter_rules(fd)" (identifier) "write_filter_rules" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (;) ";" (if_statement) "if (write(fd, "\n", 1) != 1 || close(fd) < 0) {\n rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));\n exit_cleanup(1);\n }" (if) "if" (parenthesized_expression) "(write(fd, "\n", 1) != 1 || close(fd) < 0)" (() "(" (binary_expression) "write(fd, "\n", 1) != 1 || close(fd) < 0" (binary_expression) "write(fd, "\n", 1) != 1" (call_expression) "write(fd, "\n", 1)" (identifier) "write" (argument_list) "(fd, "\n", 1)" (() "(" (identifier) "fd" (,) "," (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ (,) "," (number_literal) "1" ()) ")" (!=) "!=" (number_literal) "1" (||) "||" (binary_expression) "close(fd) < 0" (call_expression) "close(fd)" (identifier) "close" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));\n exit_cleanup(1);\n }" ({) "{" (expression_statement) "rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename));" (call_expression) "rsyserr(FERROR, errno, "Batch file %s write error",\n safe_fname(filename))" (identifier) "rsyserr" (argument_list) "(FERROR, errno, "Batch file %s write error",\n safe_fname(filename))" (() "(" (identifier) "FERROR" (,) "," (identifier) "errno" (,) "," (string_literal) ""Batch file %s write error"" (") """ (string_content) "Batch file %s write error" (") """ (,) "," (call_expression) "safe_fname(filename)" (identifier) "safe_fname" (argument_list) "(filename)" (() "(" (identifier) "filename" ()) ")" ()) ")" (;) ";" (expression_statement) "exit_cleanup(1);" (call_expression) "exit_cleanup(1)" (identifier) "exit_cleanup" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "void show_flist(int index, struct file_struct **fptr)\n{\n /* for debugging show_flist(flist->count, flist->files * */\n\n int i;\n for (i = 0; i < index; i++) {\n rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);\n rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);\n rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);\n rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);\n rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));\n if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }\n if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }\n }\n}" (primitive_type) "void" (function_declarator) "show_flist(int index, struct file_struct **fptr)" (identifier) "show_flist" (parameter_list) "(int index, struct file_struct **fptr)" (() "(" (parameter_declaration) "int index" (primitive_type) "int" (identifier) "index" (,) "," (parameter_declaration) "struct file_struct **fptr" (struct_specifier) "struct file_struct" (struct) "struct" (type_identifier) "file_struct" (pointer_declarator) "**fptr" (*) "*" (pointer_declarator) "*fptr" (*) "*" (identifier) "fptr" ()) ")" (compound_statement) "{\n /* for debugging show_flist(flist->count, flist->files * */\n\n int i;\n for (i = 0; i < index; i++) {\n rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);\n rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);\n rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);\n rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);\n rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));\n if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }\n if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }\n }\n}" ({) "{" (comment) "/* for debugging show_flist(flist->count, flist->files * */" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (i = 0; i < index; i++) {\n rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);\n rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);\n rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);\n rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);\n rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));\n if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }\n if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < index" (identifier) "i" (<) "<" (identifier) "index" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);\n rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);\n rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);\n rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);\n rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));\n if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }\n if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }\n }" ({) "{" (expression_statement) "rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags);" (call_expression) "rprintf(FINFO, "flist->flags=%#x\n", fptr[i]->flags)" (identifier) "rprintf" (argument_list) "(FINFO, "flist->flags=%#x\n", fptr[i]->flags)" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->flags=%#x\n"" (") """ (string_content) "flist->flags=%#x" (escape_sequence) "\n" (") """ (,) "," (field_expression) "fptr[i]->flags" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "flags" ()) ")" (;) ";" (expression_statement) "rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime);" (call_expression) "rprintf(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime)" (identifier) "rprintf" (argument_list) "(FINFO, "flist->modtime=%#lx\n",\n (long unsigned) fptr[i]->modtime)" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->modtime=%#lx\n"" (") """ (string_content) "flist->modtime=%#lx" (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(long unsigned) fptr[i]->modtime" (() "(" (type_descriptor) "long unsigned" (sized_type_specifier) "long unsigned" (long) "long" (unsigned) "unsigned" ()) ")" (field_expression) "fptr[i]->modtime" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "modtime" ()) ")" (;) ";" (expression_statement) "rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length);" (call_expression) "rprintf(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length)" (identifier) "rprintf" (argument_list) "(FINFO, "flist->length=%.0f\n",\n (double) fptr[i]->length)" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->length=%.0f\n"" (") """ (string_content) "flist->length=%.0f" (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(double) fptr[i]->length" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (field_expression) "fptr[i]->length" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "length" ()) ")" (;) ";" (expression_statement) "rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode);" (call_expression) "rprintf(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode)" (identifier) "rprintf" (argument_list) "(FINFO, "flist->mode=%#o\n", (int) fptr[i]->mode)" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->mode=%#o\n"" (") """ (string_content) "flist->mode=%#o" (escape_sequence) "\n" (") """ (,) "," (cast_expression) "(int) fptr[i]->mode" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (field_expression) "fptr[i]->mode" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "mode" ()) ")" (;) ";" (expression_statement) "rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename));" (call_expression) "rprintf(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename))" (identifier) "rprintf" (argument_list) "(FINFO, "flist->basename=%s\n",\n safe_fname(fptr[i]->basename))" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->basename=%s\n"" (") """ (string_content) "flist->basename=%s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "safe_fname(fptr[i]->basename)" (identifier) "safe_fname" (argument_list) "(fptr[i]->basename)" (() "(" (field_expression) "fptr[i]->basename" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "basename" ()) ")" ()) ")" (;) ";" (if_statement) "if (fptr[i]->dirname) {\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }" (if) "if" (parenthesized_expression) "(fptr[i]->dirname)" (() "(" (field_expression) "fptr[i]->dirname" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "dirname" ()) ")" (compound_statement) "{\n rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));\n }" ({) "{" (expression_statement) "rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname));" (call_expression) "rprintf(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname))" (identifier) "rprintf" (argument_list) "(FINFO, "flist->dirname=%s\n",\n safe_fname(fptr[i]->dirname))" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->dirname=%s\n"" (") """ (string_content) "flist->dirname=%s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "safe_fname(fptr[i]->dirname)" (identifier) "safe_fname" (argument_list) "(fptr[i]->dirname)" (() "(" (field_expression) "fptr[i]->dirname" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "dirname" ()) ")" ()) ")" (;) ";" (}) "}" (if_statement) "if (am_sender && fptr[i]->dir.root) {\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }" (if) "if" (parenthesized_expression) "(am_sender && fptr[i]->dir.root)" (() "(" (binary_expression) "am_sender && fptr[i]->dir.root" (identifier) "am_sender" (&&) "&&" (field_expression) "fptr[i]->dir.root" (field_expression) "fptr[i]->dir" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "dir" (.) "." (field_identifier) "root" ()) ")" (compound_statement) "{\n rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));\n }" ({) "{" (expression_statement) "rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root));" (call_expression) "rprintf(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root))" (identifier) "rprintf" (argument_list) "(FINFO, "flist->dir.root=%s\n",\n safe_fname(fptr[i]->dir.root))" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""flist->dir.root=%s\n"" (") """ (string_content) "flist->dir.root=%s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "safe_fname(fptr[i]->dir.root)" (identifier) "safe_fname" (argument_list) "(fptr[i]->dir.root)" (() "(" (field_expression) "fptr[i]->dir.root" (field_expression) "fptr[i]->dir" (subscript_expression) "fptr[i]" (identifier) "fptr" ([) "[" (identifier) "i" (]) "]" (->) "->" (field_identifier) "dir" (.) "." (field_identifier) "root" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "/* for debugging */" (function_definition) "void show_argvs(int argc, char *argv[])\n{\n int i;\n\n rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc);\n for (i = 0; i < argc; i++)\n rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]));\n}" (primitive_type) "void" (function_declarator) "show_argvs(int argc, char *argv[])" (identifier) "show_argvs" (parameter_list) "(int argc, char *argv[])" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char *argv[]" (primitive_type) "char" (pointer_declarator) "*argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n int i;\n\n rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc);\n for (i = 0; i < argc; i++)\n rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]));\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (expression_statement) "rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc);" (call_expression) "rprintf(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc)" (identifier) "rprintf" (argument_list) "(FINFO, "BATCH.C:show_argvs,argc=%d\n", argc)" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""BATCH.C:show_argvs,argc=%d\n"" (") """ (string_content) "BATCH.C:show_argvs,argc=%d" (escape_sequence) "\n" (") """ (,) "," (identifier) "argc" ()) ")" (;) ";" (for_statement) "for (i = 0; i < argc; i++)\n rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]));" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < argc" (identifier) "i" (<) "<" (identifier) "argc" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]));" (call_expression) "rprintf(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]))" (identifier) "rprintf" (argument_list) "(FINFO, "i=%d,argv[i]=%s\n", i, safe_fname(argv[i]))" (() "(" (identifier) "FINFO" (,) "," (string_literal) ""i=%d,argv[i]=%s\n"" (") """ (string_content) "i=%d,argv[i]=%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" (,) "," (call_expression) "safe_fname(argv[i])" (identifier) "safe_fname" (argument_list) "(argv[i])" (() "(" (subscript_expression) "argv[i]" (identifier) "argv" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (;) ";" (}) "}"
2,039
0
{"language": "c", "success": true, "metadata": {"lines": 211, "avg_line_length": 25.18, "nodes": 1151, "errors": 0, "source_hash": "0a965edca82fb2887bee030bbceef1365b5c152bcad9091d10957bc223eb8424", "categorized_nodes": 821}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"rsync.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": "\"rsync.h\"", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <time.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": "<time.h>", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 6, "type": "declaration", "text": "extern int am_sender;", "parent": null, "children": [7, 9, 10], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 21}}, {"id": 7, "type": "storage_class_specifier", "text": "extern", "parent": 6, "children": [8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 8, "type": "extern", "text": "extern", "parent": 7, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 10}}, {"id": 10, "type": "identifier", "text": "am_sender", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 20}}, {"id": 11, "type": "declaration", "text": "extern int eol_nulls;", "parent": null, "children": [12, 14, 15], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 21}}, {"id": 12, "type": "storage_class_specifier", "text": "extern", "parent": 11, "children": [13], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 13, "type": "extern", "text": "extern", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 10}}, {"id": 15, "type": "identifier", "text": "eol_nulls", "parent": 11, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 20}}, {"id": 16, "type": "declaration", "text": "extern int recurse;", "parent": null, "children": [17, 19, 20], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 19}}, {"id": 17, "type": "storage_class_specifier", "text": "extern", "parent": 16, "children": [18], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 18, "type": "extern", "text": "extern", "parent": 17, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 10}}, {"id": 20, "type": "identifier", "text": "recurse", "parent": 16, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 18}}, {"id": 21, "type": "declaration", "text": "extern int xfer_dirs;", "parent": null, "children": [22, 24, 25], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 21}}, {"id": 22, "type": "storage_class_specifier", "text": "extern", "parent": 21, "children": [23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 23, "type": "extern", "text": "extern", "parent": 22, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 10}}, {"id": 25, "type": "identifier", "text": "xfer_dirs", "parent": 21, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 26, "type": "declaration", "text": "extern int preserve_links;", "parent": null, "children": [27, 29, 30], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 26}}, {"id": 27, "type": "storage_class_specifier", "text": "extern", "parent": 26, "children": [28], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 28, "type": "extern", "text": "extern", "parent": 27, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 29, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 10}}, {"id": 30, "type": "identifier", "text": "preserve_links", "parent": 26, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 25}}, {"id": 31, "type": "declaration", "text": "extern int preserve_hard_links;", "parent": null, "children": [32, 34, 35], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 31}}, {"id": 32, "type": "storage_class_specifier", "text": "extern", "parent": 31, "children": [33], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 33, "type": "extern", "text": "extern", "parent": 32, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 35, "type": "identifier", "text": "preserve_hard_links", "parent": 31, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 30}}, {"id": 36, "type": "declaration", "text": "extern int preserve_devices;", "parent": null, "children": [37, 39, 40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 28}}, {"id": 37, "type": "storage_class_specifier", "text": "extern", "parent": 36, "children": [38], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 38, "type": "extern", "text": "extern", "parent": 37, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 10}}, {"id": 40, "type": "identifier", "text": "preserve_devices", "parent": 36, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 27}}, {"id": 41, "type": "declaration", "text": "extern int preserve_uid;", "parent": null, "children": [42, 44, 45], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 24}}, {"id": 42, "type": "storage_class_specifier", "text": "extern", "parent": 41, "children": [43], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 43, "type": "extern", "text": "extern", "parent": 42, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 10}}, {"id": 45, "type": "identifier", "text": "preserve_uid", "parent": 41, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 23}}, {"id": 46, "type": "declaration", "text": "extern int preserve_gid;", "parent": null, "children": [47, 49, 50], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 24}}, {"id": 47, "type": "storage_class_specifier", "text": "extern", "parent": 46, "children": [48], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 48, "type": "extern", "text": "extern", "parent": 47, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 10}}, {"id": 50, "type": "identifier", "text": "preserve_gid", "parent": 46, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 23}}, {"id": 51, "type": "declaration", "text": "extern int always_checksum;", "parent": null, "children": [52, 54, 55], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 27}}, {"id": 52, "type": "storage_class_specifier", "text": "extern", "parent": 51, "children": [53], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 53, "type": "extern", "text": "extern", "parent": 52, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 10}}, {"id": 55, "type": "identifier", "text": "always_checksum", "parent": 51, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 26}}, {"id": 56, "type": "declaration", "text": "extern int do_compression;", "parent": null, "children": [57, 59, 60], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 26}}, {"id": 57, "type": "storage_class_specifier", "text": "extern", "parent": 56, "children": [58], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 58, "type": "extern", "text": "extern", "parent": 57, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 56, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 10}}, {"id": 60, "type": "identifier", "text": "do_compression", "parent": 56, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 25}}, {"id": 61, "type": "declaration", "text": "extern int protocol_version;", "parent": null, "children": [62, 64, 65], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 28}}, {"id": 62, "type": "storage_class_specifier", "text": "extern", "parent": 61, "children": [63], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 63, "type": "extern", "text": "extern", "parent": 62, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 64, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 10}}, {"id": 65, "type": "identifier", "text": "protocol_version", "parent": 61, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 27}}, {"id": 66, "type": "declaration", "text": "extern char *batch_name;", "parent": null, "children": [67, 69, 70], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 24}}, {"id": 67, "type": "storage_class_specifier", "text": "extern", "parent": 66, "children": [68], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 68, "type": "extern", "text": "extern", "parent": 67, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 69, "type": "primitive_type", "text": "char", "parent": 66, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 11}}, {"id": 70, "type": "pointer_declarator", "text": "*batch_name", "parent": 66, "children": [71, 72], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 23}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 72, "type": "identifier", "text": "batch_name", "parent": 70, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 23}}, {"id": 73, "type": "declaration", "text": "extern struct filter_list_struct filter_list;", "parent": null, "children": [74, 76, 79], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 45}}, {"id": 74, "type": "storage_class_specifier", "text": "extern", "parent": 73, "children": [75], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 75, "type": "extern", "text": "extern", "parent": 74, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 76, "type": "struct_specifier", "text": "struct filter_list_struct", "parent": 73, "children": [77, 78], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 32}}, {"id": 77, "type": "struct", "text": "struct", "parent": 76, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 78, "type": "type_identifier", "text": "filter_list_struct", "parent": 76, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 32}}, {"id": 79, "type": "identifier", "text": "filter_list", "parent": 73, "children": [], "start_point": {"row": 24, "column": 33}, "end_point": {"row": 24, "column": 44}}, {"id": 80, "type": "declaration", "text": "static int *flag_ptr[] = {\n\t&recurse,\t\t/* 0 */\n\t&preserve_uid,\t\t/* 1 */\n\t&preserve_gid,\t\t/* 2 */\n\t&preserve_links,\t/* 3 */\n\t&preserve_devices,\t/* 4 */\n\t&preserve_hard_links,\t/* 5 */\n\t&always_checksum,\t/* 6 */\n\t&xfer_dirs,\t\t/* 7 (protocol 29) */\n\t&do_compression,\t/* 8 (protocol 29) */\n\tNULL\n};", "parent": null, "children": [81, 82], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 37, "column": 2}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 80, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 10}}, {"id": 82, "type": "init_declarator", "text": "*flag_ptr[] = {\n\t&recurse,\t\t/* 0 */\n\t&preserve_uid,\t\t/* 1 */\n\t&preserve_gid,\t\t/* 2 */\n\t&preserve_links,\t/* 3 */\n\t&preserve_devices,\t/* 4 */\n\t&preserve_hard_links,\t/* 5 */\n\t&always_checksum,\t/* 6 */\n\t&xfer_dirs,\t\t/* 7 (protocol 29) */\n\t&do_compression,\t/* 8 (protocol 29) */\n\tNULL\n}", "parent": 80, "children": [83, 87, 88], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 37, "column": 1}}, {"id": 83, "type": "pointer_declarator", "text": "*flag_ptr[]", "parent": 82, "children": [84, 85], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 22}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 85, "type": "array_declarator", "text": "flag_ptr[]", "parent": 83, "children": [86], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 86, "type": "identifier", "text": "flag_ptr", "parent": 85, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 20}}, {"id": 87, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 24}}, {"id": 88, "type": "initializer_list", "text": "{\n\t&recurse,\t\t/* 0 */\n\t&preserve_uid,\t\t/* 1 */\n\t&preserve_gid,\t\t/* 2 */\n\t&preserve_links,\t/* 3 */\n\t&preserve_devices,\t/* 4 */\n\t&preserve_hard_links,\t/* 5 */\n\t&always_checksum,\t/* 6 */\n\t&xfer_dirs,\t\t/* 7 (protocol 29) */\n\t&do_compression,\t/* 8 (protocol 29) */\n\tNULL\n}", "parent": 82, "children": [89, 91, 93, 95, 97, 99, 101, 103, 105, 107], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 37, "column": 1}}, {"id": 89, "type": "pointer_expression", "text": "&recurse", "parent": 88, "children": [90], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 90, "type": "identifier", "text": "recurse", "parent": 89, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 9}}, {"id": 91, "type": "pointer_expression", "text": "&preserve_uid", "parent": 88, "children": [92], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 14}}, {"id": 92, "type": "identifier", "text": "preserve_uid", "parent": 91, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 14}}, {"id": 93, "type": "pointer_expression", "text": "&preserve_gid", "parent": 88, "children": [94], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 14}}, {"id": 94, "type": "identifier", "text": "preserve_gid", "parent": 93, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 14}}, {"id": 95, "type": "pointer_expression", "text": "&preserve_links", "parent": 88, "children": [96], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 16}}, {"id": 96, "type": "identifier", "text": "preserve_links", "parent": 95, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 16}}, {"id": 97, "type": "pointer_expression", "text": "&preserve_devices", "parent": 88, "children": [98], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 18}}, {"id": 98, "type": "identifier", "text": "preserve_devices", "parent": 97, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 18}}, {"id": 99, "type": "pointer_expression", "text": "&preserve_hard_links", "parent": 88, "children": [100], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 21}}, {"id": 100, "type": "identifier", "text": "preserve_hard_links", "parent": 99, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 21}}, {"id": 101, "type": "pointer_expression", "text": "&always_checksum", "parent": 88, "children": [102], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 17}}, {"id": 102, "type": "identifier", "text": "always_checksum", "parent": 101, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 17}}, {"id": 103, "type": "pointer_expression", "text": "&xfer_dirs", "parent": 88, "children": [104], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 11}}, {"id": 104, "type": "identifier", "text": "xfer_dirs", "parent": 103, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 11}}, {"id": 105, "type": "pointer_expression", "text": "&do_compression", "parent": 88, "children": [106], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 16}}, {"id": 106, "type": "identifier", "text": "do_compression", "parent": 105, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 16}}, {"id": 107, "type": "null", "text": "NULL", "parent": 88, "children": [108], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 108, "type": "NULL", "text": "NULL", "parent": 107, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 109, "type": "declaration", "text": "static char *flag_name[] = {\n\t\"--recurse (-r)\",\n\t\"--owner (-o)\",\n\t\"--group (-g)\",\n\t\"--links (-l)\",\n\t\"--devices (-D)\",\n\t\"--hard-links (-H)\",\n\t\"--checksum (-c)\",\n\t\"--dirs (-d)\",\n\t\"--compress (-z)\",\n\tNULL\n};", "parent": null, "children": [110, 111], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 50, "column": 2}}, {"id": 110, "type": "primitive_type", "text": "char", "parent": 109, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 111, "type": "init_declarator", "text": "*flag_name[] = {\n\t\"--recurse (-r)\",\n\t\"--owner (-o)\",\n\t\"--group (-g)\",\n\t\"--links (-l)\",\n\t\"--devices (-D)\",\n\t\"--hard-links (-H)\",\n\t\"--checksum (-c)\",\n\t\"--dirs (-d)\",\n\t\"--compress (-z)\",\n\tNULL\n}", "parent": 109, "children": [112, 116, 117], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 50, "column": 1}}, {"id": 112, "type": "pointer_declarator", "text": "*flag_name[]", "parent": 111, "children": [113, 114], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 24}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 114, "type": "array_declarator", "text": "flag_name[]", "parent": 112, "children": [115], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 24}}, {"id": 115, "type": "identifier", "text": "flag_name", "parent": 114, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 22}}, {"id": 116, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 117, "type": "initializer_list", "text": "{\n\t\"--recurse (-r)\",\n\t\"--owner (-o)\",\n\t\"--group (-g)\",\n\t\"--links (-l)\",\n\t\"--devices (-D)\",\n\t\"--hard-links (-H)\",\n\t\"--checksum (-c)\",\n\t\"--dirs (-d)\",\n\t\"--compress (-z)\",\n\tNULL\n}", "parent": 111, "children": [118, 119, 120, 121, 122, 123, 124, 125, 126, 127], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 50, "column": 1}}, {"id": 118, "type": "string_literal", "text": "\"--recurse (-r)\"", "parent": 117, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 17}}, {"id": 119, "type": "string_literal", "text": "\"--owner (-o)\"", "parent": 117, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 15}}, {"id": 120, "type": "string_literal", "text": "\"--group (-g)\"", "parent": 117, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 15}}, {"id": 121, "type": "string_literal", "text": "\"--links (-l)\"", "parent": 117, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 15}}, {"id": 122, "type": "string_literal", "text": "\"--devices (-D)\"", "parent": 117, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 17}}, {"id": 123, "type": "string_literal", "text": "\"--hard-links (-H)\"", "parent": 117, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 20}}, {"id": 124, "type": "string_literal", "text": "\"--checksum (-c)\"", "parent": 117, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 18}}, {"id": 125, "type": "string_literal", "text": "\"--dirs (-d)\"", "parent": 117, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 14}}, {"id": 126, "type": "string_literal", "text": "\"--compress (-z)\"", "parent": 117, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 18}}, {"id": 127, "type": "null", "text": "NULL", "parent": 117, "children": [128], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 128, "type": "NULL", "text": "NULL", "parent": 127, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 129, "type": "function_definition", "text": "void write_stream_flags(int fd)\n{\n\tint i, flags;\n\n\t/* Start the batch file with a bitmap of data-stream-affecting\n\t * flags. */\n\tif (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;\n\tfor (i = 0, flags = 0; flag_ptr[i]; i++) {\n\t\tif (*flag_ptr[i])\n\t\t\tflags |= 1 << i;\n\t}\n\twrite_int(fd, flags);\n}", "parent": null, "children": [130, 131], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 130, "type": "primitive_type", "text": "void", "parent": 129, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 4}}, {"id": 131, "type": "function_declarator", "text": "write_stream_flags(int fd)", "parent": 129, "children": [132, 133], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 31}}, {"id": 132, "type": "identifier", "text": "write_stream_flags", "parent": 131, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 23}}, {"id": 133, "type": "parameter_list", "text": "(int fd)", "parent": 131, "children": [134], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 31}}, {"id": 134, "type": "parameter_declaration", "text": "int fd", "parent": 133, "children": [135, 136], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 30}}, {"id": 135, "type": "primitive_type", "text": "int", "parent": 134, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 27}}, {"id": 136, "type": "identifier", "text": "fd", "parent": 134, "children": [], "start_point": {"row": 52, "column": 28}, "end_point": {"row": 52, "column": 30}}, {"id": 137, "type": "declaration", "text": "int i, flags;", "parent": 129, "children": [138, 139, 140], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 14}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 4}}, {"id": 139, "type": "identifier", "text": "i", "parent": 137, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 6}}, {"id": 140, "type": "identifier", "text": "flags", "parent": 137, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 13}}, {"id": 141, "type": "if_statement", "text": "if (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;", "parent": 129, "children": [142], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 59, "column": 21}}, {"id": 142, "type": "parenthesized_expression", "text": "(protocol_version < 29)", "parent": 141, "children": [143], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 27}}, {"id": 143, "type": "binary_expression", "text": "protocol_version < 29", "parent": 142, "children": [144, 145, 146], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 26}}, {"id": 144, "type": "identifier", "text": "protocol_version", "parent": 143, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 21}}, {"id": 145, "type": "<", "text": "<", "parent": 143, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 23}}, {"id": 146, "type": "number_literal", "text": "29", "parent": 143, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 26}}, {"id": 147, "type": "assignment_expression", "text": "flag_ptr[7] = NULL", "parent": 141, "children": [148, 151, 152], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 20}}, {"id": 148, "type": "subscript_expression", "text": "flag_ptr[7]", "parent": 147, "children": [149, 150], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 13}}, {"id": 149, "type": "identifier", "text": "flag_ptr", "parent": 148, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 10}}, {"id": 150, "type": "number_literal", "text": "7", "parent": 148, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 12}}, {"id": 151, "type": "=", "text": "=", "parent": 147, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 152, "type": "null", "text": "NULL", "parent": 147, "children": [153], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 20}}, {"id": 153, "type": "NULL", "text": "NULL", "parent": 152, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 20}}, {"id": 154, "type": "for_statement", "text": "for (i = 0, flags = 0; flag_ptr[i]; i++) {\n\t\tif (*flag_ptr[i])\n\t\t\tflags |= 1 << i;\n\t}", "parent": 129, "children": [155, 164, 167], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 63, "column": 2}}, {"id": 155, "type": "comma_expression", "text": "i = 0, flags = 0", "parent": 154, "children": [156, 160], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 22}}, {"id": 156, "type": "assignment_expression", "text": "i = 0", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 11}}, {"id": 157, "type": "identifier", "text": "i", "parent": 156, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 7}}, {"id": 158, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 159, "type": "number_literal", "text": "0", "parent": 156, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 11}}, {"id": 160, "type": "assignment_expression", "text": "flags = 0", "parent": 155, "children": [161, 162, 163], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 22}}, {"id": 161, "type": "identifier", "text": "flags", "parent": 160, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 18}}, {"id": 162, "type": "=", "text": "=", "parent": 160, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 163, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 22}}, {"id": 164, "type": "subscript_expression", "text": "flag_ptr[i]", "parent": 154, "children": [165, 166], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 35}}, {"id": 165, "type": "identifier", "text": "flag_ptr", "parent": 164, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 32}}, {"id": 166, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 34}}, {"id": 167, "type": "update_expression", "text": "i++", "parent": 154, "children": [168, 169], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 40}}, {"id": 168, "type": "identifier", "text": "i", "parent": 167, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 38}}, {"id": 169, "type": "++", "text": "++", "parent": 167, "children": [], "start_point": {"row": 60, "column": 38}, "end_point": {"row": 60, "column": 40}}, {"id": 170, "type": "if_statement", "text": "if (*flag_ptr[i])\n\t\t\tflags |= 1 << i;", "parent": 154, "children": [171], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 62, "column": 19}}, {"id": 171, "type": "parenthesized_expression", "text": "(*flag_ptr[i])", "parent": 170, "children": [172], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 19}}, {"id": 172, "type": "pointer_expression", "text": "*flag_ptr[i]", "parent": 171, "children": [173, 174], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 18}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 7}}, {"id": 174, "type": "subscript_expression", "text": "flag_ptr[i]", "parent": 172, "children": [175, 176], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 18}}, {"id": 175, "type": "identifier", "text": "flag_ptr", "parent": 174, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 15}}, {"id": 176, "type": "identifier", "text": "i", "parent": 174, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 177, "type": "assignment_expression", "text": "flags |= 1 << i", "parent": 170, "children": [178, 179, 180], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 18}}, {"id": 178, "type": "identifier", "text": "flags", "parent": 177, "children": [], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 8}}, {"id": 179, "type": "|=", "text": "|=", "parent": 177, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 11}}, {"id": 180, "type": "binary_expression", "text": "1 << i", "parent": 177, "children": [181, 182, 183], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 181, "type": "number_literal", "text": "1", "parent": 180, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 182, "type": "<<", "text": "<<", "parent": 180, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 16}}, {"id": 183, "type": "identifier", "text": "i", "parent": 180, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 184, "type": "call_expression", "text": "write_int(fd, flags)", "parent": 129, "children": [185, 186], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 21}}, {"id": 185, "type": "identifier", "text": "write_int", "parent": 184, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 186, "type": "argument_list", "text": "(fd, flags)", "parent": 184, "children": [187, 188], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 21}}, {"id": 187, "type": "identifier", "text": "fd", "parent": 186, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 13}}, {"id": 188, "type": "identifier", "text": "flags", "parent": 186, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 20}}, {"id": 189, "type": "function_definition", "text": "void read_stream_flags(int fd)\n{\n\tint i, flags;\n\n\tif (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;\n\tfor (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n\t\tint set = flags & (1 << i) ? 1 : 0;\n\t\tif (*flag_ptr[i] != set) {\n\t\t\tif (verbose) {\n\t\t\t\trprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i]);\n\t\t\t}\n\t\t\t*flag_ptr[i] = set;\n\t\t}\n\t}\n\tif (protocol_version < 29) {\n\t\tif (recurse)\n\t\t\txfer_dirs |= 1;\n\t\telse if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;\n\t}\n}", "parent": null, "children": [190, 191], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 90, "column": 1}}, {"id": 190, "type": "primitive_type", "text": "void", "parent": 189, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 4}}, {"id": 191, "type": "function_declarator", "text": "read_stream_flags(int fd)", "parent": 189, "children": [192, 193], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 30}}, {"id": 192, "type": "identifier", "text": "read_stream_flags", "parent": 191, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 22}}, {"id": 193, "type": "parameter_list", "text": "(int fd)", "parent": 191, "children": [194], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 30}}, {"id": 194, "type": "parameter_declaration", "text": "int fd", "parent": 193, "children": [195, 196], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 29}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 194, "children": [], "start_point": {"row": 67, "column": 23}, "end_point": {"row": 67, "column": 26}}, {"id": 196, "type": "identifier", "text": "fd", "parent": 194, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 29}}, {"id": 197, "type": "declaration", "text": "int i, flags;", "parent": 189, "children": [198, 199, 200], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 14}}, {"id": 198, "type": "primitive_type", "text": "int", "parent": 197, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 4}}, {"id": 199, "type": "identifier", "text": "i", "parent": 197, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 200, "type": "identifier", "text": "flags", "parent": 197, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 13}}, {"id": 201, "type": "if_statement", "text": "if (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;", "parent": 189, "children": [202], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 72, "column": 21}}, {"id": 202, "type": "parenthesized_expression", "text": "(protocol_version < 29)", "parent": 201, "children": [203], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 27}}, {"id": 203, "type": "binary_expression", "text": "protocol_version < 29", "parent": 202, "children": [204, 205, 206], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 26}}, {"id": 204, "type": "identifier", "text": "protocol_version", "parent": 203, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 21}}, {"id": 205, "type": "<", "text": "<", "parent": 203, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 206, "type": "number_literal", "text": "29", "parent": 203, "children": [], "start_point": {"row": 71, "column": 24}, "end_point": {"row": 71, "column": 26}}, {"id": 207, "type": "assignment_expression", "text": "flag_ptr[7] = NULL", "parent": 201, "children": [208, 211, 212], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 20}}, {"id": 208, "type": "subscript_expression", "text": "flag_ptr[7]", "parent": 207, "children": [209, 210], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 13}}, {"id": 209, "type": "identifier", "text": "flag_ptr", "parent": 208, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 10}}, {"id": 210, "type": "number_literal", "text": "7", "parent": 208, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 12}}, {"id": 211, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 212, "type": "null", "text": "NULL", "parent": 207, "children": [213], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 20}}, {"id": 213, "type": "NULL", "text": "NULL", "parent": 212, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 20}}, {"id": 214, "type": "for_statement", "text": "for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n\t\tint set = flags & (1 << i) ? 1 : 0;\n\t\tif (*flag_ptr[i] != set) {\n\t\t\tif (verbose) {\n\t\t\t\trprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i]);\n\t\t\t}\n\t\t\t*flag_ptr[i] = set;\n\t\t}\n\t}", "parent": 189, "children": [215, 227, 230], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 83, "column": 2}}, {"id": 215, "type": "comma_expression", "text": "i = 0, flags = read_int(fd)", "parent": 214, "children": [216, 220], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 33}}, {"id": 216, "type": "assignment_expression", "text": "i = 0", "parent": 215, "children": [217, 218, 219], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 11}}, {"id": 217, "type": "identifier", "text": "i", "parent": 216, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 7}}, {"id": 218, "type": "=", "text": "=", "parent": 216, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 219, "type": "number_literal", "text": "0", "parent": 216, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 11}}, {"id": 220, "type": "assignment_expression", "text": "flags = read_int(fd)", "parent": 215, "children": [221, 222, 223], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 33}}, {"id": 221, "type": "identifier", "text": "flags", "parent": 220, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 18}}, {"id": 222, "type": "=", "text": "=", "parent": 220, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 20}}, {"id": 223, "type": "call_expression", "text": "read_int(fd)", "parent": 220, "children": [224, 225], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 33}}, {"id": 224, "type": "identifier", "text": "read_int", "parent": 223, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 29}}, {"id": 225, "type": "argument_list", "text": "(fd)", "parent": 223, "children": [226], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 33}}, {"id": 226, "type": "identifier", "text": "fd", "parent": 225, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 32}}, {"id": 227, "type": "subscript_expression", "text": "flag_ptr[i]", "parent": 214, "children": [228, 229], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 46}}, {"id": 228, "type": "identifier", "text": "flag_ptr", "parent": 227, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 43}}, {"id": 229, "type": "identifier", "text": "i", "parent": 227, "children": [], "start_point": {"row": 73, "column": 44}, "end_point": {"row": 73, "column": 45}}, {"id": 230, "type": "update_expression", "text": "i++", "parent": 214, "children": [231, 232], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 51}}, {"id": 231, "type": "identifier", "text": "i", "parent": 230, "children": [], "start_point": {"row": 73, "column": 48}, "end_point": {"row": 73, "column": 49}}, {"id": 232, "type": "++", "text": "++", "parent": 230, "children": [], "start_point": {"row": 73, "column": 49}, "end_point": {"row": 73, "column": 51}}, {"id": 233, "type": "declaration", "text": "int set = flags & (1 << i) ? 1 : 0;", "parent": 214, "children": [234, 235], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 37}}, {"id": 234, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 5}}, {"id": 235, "type": "init_declarator", "text": "set = flags & (1 << i) ? 1 : 0", "parent": 233, "children": [236, 237, 238], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 36}}, {"id": 236, "type": "identifier", "text": "set", "parent": 235, "children": [], "start_point": {"row": 74, "column": 6}, "end_point": {"row": 74, "column": 9}}, {"id": 237, "type": "=", "text": "=", "parent": 235, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 238, "type": "conditional_expression", "text": "flags & (1 << i) ? 1 : 0", "parent": 235, "children": [239, 246, 247, 248], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 36}}, {"id": 239, "type": "binary_expression", "text": "flags & (1 << i)", "parent": 238, "children": [240, 241], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 28}}, {"id": 240, "type": "identifier", "text": "flags", "parent": 239, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 17}}, {"id": 241, "type": "parenthesized_expression", "text": "(1 << i)", "parent": 239, "children": [242], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 28}}, {"id": 242, "type": "binary_expression", "text": "1 << i", "parent": 241, "children": [243, 244, 245], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 27}}, {"id": 243, "type": "number_literal", "text": "1", "parent": 242, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 244, "type": "<<", "text": "<<", "parent": 242, "children": [], "start_point": {"row": 74, "column": 23}, "end_point": {"row": 74, "column": 25}}, {"id": 245, "type": "identifier", "text": "i", "parent": 242, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 27}}, {"id": 246, "type": "?", "text": "?", "parent": 238, "children": [], "start_point": {"row": 74, "column": 29}, "end_point": {"row": 74, "column": 30}}, {"id": 247, "type": "number_literal", "text": "1", "parent": 238, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 32}}, {"id": 248, "type": "number_literal", "text": "0", "parent": 238, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 249, "type": "if_statement", "text": "if (*flag_ptr[i] != set) {\n\t\t\tif (verbose) {\n\t\t\t\trprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i]);\n\t\t\t}\n\t\t\t*flag_ptr[i] = set;\n\t\t}", "parent": 214, "children": [250], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 82, "column": 3}}, {"id": 250, "type": "parenthesized_expression", "text": "(*flag_ptr[i] != set)", "parent": 249, "children": [251], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 26}}, {"id": 251, "type": "binary_expression", "text": "*flag_ptr[i] != set", "parent": 250, "children": [252, 257, 258], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 25}}, {"id": 252, "type": "pointer_expression", "text": "*flag_ptr[i]", "parent": 251, "children": [253, 254], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 18}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 7}}, {"id": 254, "type": "subscript_expression", "text": "flag_ptr[i]", "parent": 252, "children": [255, 256], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 18}}, {"id": 255, "type": "identifier", "text": "flag_ptr", "parent": 254, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 15}}, {"id": 256, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 17}}, {"id": 257, "type": "!=", "text": "!=", "parent": 251, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 21}}, {"id": 258, "type": "identifier", "text": "set", "parent": 251, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 25}}, {"id": 259, "type": "if_statement", "text": "if (verbose) {\n\t\t\t\trprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i]);\n\t\t\t}", "parent": 249, "children": [260], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 80, "column": 4}}, {"id": 260, "type": "parenthesized_expression", "text": "(verbose)", "parent": 259, "children": [261], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 15}}, {"id": 261, "type": "identifier", "text": "verbose", "parent": 260, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 14}}, {"id": 262, "type": "call_expression", "text": "rprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i])", "parent": 259, "children": [263, 264], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 79, "column": 42}}, {"id": 263, "type": "identifier", "text": "rprintf", "parent": 262, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 11}}, {"id": 264, "type": "argument_list", "text": "(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i])", "parent": 262, "children": [265, 266, 268, 273], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 79, "column": 42}}, {"id": 265, "type": "identifier", "text": "FINFO", "parent": 264, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 17}}, {"id": 266, "type": "string_literal", "text": "\"%sing the %s option to match the batchfile.\\n\"", "parent": 264, "children": [267], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 52}}, {"id": 267, "type": "escape_sequence", "text": "\\n", "parent": 266, "children": [], "start_point": {"row": 78, "column": 49}, "end_point": {"row": 78, "column": 51}}, {"id": 268, "type": "conditional_expression", "text": "set ? \"Sett\" : \"Clear\"", "parent": 264, "children": [269, 270, 271, 272], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 27}}, {"id": 269, "type": "identifier", "text": "set", "parent": 268, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 8}}, {"id": 270, "type": "?", "text": "?", "parent": 268, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 10}}, {"id": 271, "type": "string_literal", "text": "\"Sett\"", "parent": 268, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 17}}, {"id": 272, "type": "string_literal", "text": "\"Clear\"", "parent": 268, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 27}}, {"id": 273, "type": "subscript_expression", "text": "flag_name[i]", "parent": 264, "children": [274, 275], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 41}}, {"id": 274, "type": "identifier", "text": "flag_name", "parent": 273, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 38}}, {"id": 275, "type": "identifier", "text": "i", "parent": 273, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 40}}, {"id": 276, "type": "assignment_expression", "text": "*flag_ptr[i] = set", "parent": 249, "children": [277, 282, 283], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 21}}, {"id": 277, "type": "pointer_expression", "text": "*flag_ptr[i]", "parent": 276, "children": [278, 279], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 15}}, {"id": 278, "type": "*", "text": "*", "parent": 277, "children": [], "start_point": {"row": 81, "column": 3}, "end_point": {"row": 81, "column": 4}}, {"id": 279, "type": "subscript_expression", "text": "flag_ptr[i]", "parent": 277, "children": [280, 281], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 15}}, {"id": 280, "type": "identifier", "text": "flag_ptr", "parent": 279, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 12}}, {"id": 281, "type": "identifier", "text": "i", "parent": 279, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 14}}, {"id": 282, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 17}}, {"id": 283, "type": "identifier", "text": "set", "parent": 276, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 21}}, {"id": 284, "type": "if_statement", "text": "if (protocol_version < 29) {\n\t\tif (recurse)\n\t\t\txfer_dirs |= 1;\n\t\telse if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;\n\t}", "parent": 189, "children": [285], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 89, "column": 2}}, {"id": 285, "type": "parenthesized_expression", "text": "(protocol_version < 29)", "parent": 284, "children": [286], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 27}}, {"id": 286, "type": "binary_expression", "text": "protocol_version < 29", "parent": 285, "children": [287, 288, 289], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 26}}, {"id": 287, "type": "identifier", "text": "protocol_version", "parent": 286, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 21}}, {"id": 288, "type": "<", "text": "<", "parent": 286, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 23}}, {"id": 289, "type": "number_literal", "text": "29", "parent": 286, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 26}}, {"id": 290, "type": "if_statement", "text": "if (recurse)\n\t\t\txfer_dirs |= 1;\n\t\telse if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;", "parent": 284, "children": [291, 297], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 88, "column": 17}}, {"id": 291, "type": "parenthesized_expression", "text": "(recurse)", "parent": 290, "children": [292], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 14}}, {"id": 292, "type": "identifier", "text": "recurse", "parent": 291, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 13}}, {"id": 293, "type": "assignment_expression", "text": "xfer_dirs |= 1", "parent": 290, "children": [294, 295, 296], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 17}}, {"id": 294, "type": "identifier", "text": "xfer_dirs", "parent": 293, "children": [], "start_point": {"row": 86, "column": 3}, "end_point": {"row": 86, "column": 12}}, {"id": 295, "type": "|=", "text": "|=", "parent": 293, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 15}}, {"id": 296, "type": "number_literal", "text": "1", "parent": 293, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 17}}, {"id": 297, "type": "else_clause", "text": "else if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;", "parent": 290, "children": [298], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 88, "column": 17}}, {"id": 298, "type": "if_statement", "text": "if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;", "parent": 297, "children": [299], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 88, "column": 17}}, {"id": 299, "type": "parenthesized_expression", "text": "(xfer_dirs < 2)", "parent": 298, "children": [300], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 25}}, {"id": 300, "type": "binary_expression", "text": "xfer_dirs < 2", "parent": 299, "children": [301, 302, 303], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 24}}, {"id": 301, "type": "identifier", "text": "xfer_dirs", "parent": 300, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 20}}, {"id": 302, "type": "<", "text": "<", "parent": 300, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 22}}, {"id": 303, "type": "number_literal", "text": "2", "parent": 300, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 24}}, {"id": 304, "type": "assignment_expression", "text": "xfer_dirs = 0", "parent": 298, "children": [305, 306, 307], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 16}}, {"id": 305, "type": "identifier", "text": "xfer_dirs", "parent": 304, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 12}}, {"id": 306, "type": "=", "text": "=", "parent": 304, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 14}}, {"id": 307, "type": "number_literal", "text": "0", "parent": 304, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 16}}, {"id": 308, "type": "function_definition", "text": "static void write_arg(int fd, char *arg)\n{\n\tchar *x, *s;\n\n\tif (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n\t\twrite(fd, arg, x - arg + 1);\n\t\targ += x - arg + 1;\n\t}\n\n\tif (strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\") != NULL) {\n\t\twrite(fd, \"'\", 1);\n\t\tfor (s = arg; (x = strchr(s, '\\'')) != NULL; s = x + 1) {\n\t\t\twrite(fd, s, x - s + 1);\n\t\t\twrite(fd, \"'\", 1);\n\t\t}\n\t\twrite(fd, s, strlen(s));\n\t\twrite(fd, \"'\", 1);\n\t\treturn;\n\t}\n\n\twrite(fd, arg, strlen(arg));\n}", "parent": null, "children": [309, 310], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 113, "column": 1}}, {"id": 309, "type": "primitive_type", "text": "void", "parent": 308, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 11}}, {"id": 310, "type": "function_declarator", "text": "write_arg(int fd, char *arg)", "parent": 308, "children": [311, 312], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 40}}, {"id": 311, "type": "identifier", "text": "write_arg", "parent": 310, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 21}}, {"id": 312, "type": "parameter_list", "text": "(int fd, char *arg)", "parent": 310, "children": [313, 316], "start_point": {"row": 92, "column": 21}, "end_point": {"row": 92, "column": 40}}, {"id": 313, "type": "parameter_declaration", "text": "int fd", "parent": 312, "children": [314, 315], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 28}}, {"id": 314, "type": "primitive_type", "text": "int", "parent": 313, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 25}}, {"id": 315, "type": "identifier", "text": "fd", "parent": 313, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 28}}, {"id": 316, "type": "parameter_declaration", "text": "char *arg", "parent": 312, "children": [317, 318], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 39}}, {"id": 317, "type": "primitive_type", "text": "char", "parent": 316, "children": [], "start_point": {"row": 92, "column": 30}, "end_point": {"row": 92, "column": 34}}, {"id": 318, "type": "pointer_declarator", "text": "*arg", "parent": 316, "children": [319, 320], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 39}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 36}}, {"id": 320, "type": "identifier", "text": "arg", "parent": 318, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 39}}, {"id": 321, "type": "declaration", "text": "char *x, *s;", "parent": 308, "children": [322, 323, 326], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 13}}, {"id": 322, "type": "primitive_type", "text": "char", "parent": 321, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 5}}, {"id": 323, "type": "pointer_declarator", "text": "*x", "parent": 321, "children": [324, 325], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 8}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 7}}, {"id": 325, "type": "identifier", "text": "x", "parent": 323, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 8}}, {"id": 326, "type": "pointer_declarator", "text": "*s", "parent": 321, "children": [327, 328], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 12}}, {"id": 327, "type": "*", "text": "*", "parent": 326, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 328, "type": "identifier", "text": "s", "parent": 326, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 12}}, {"id": 329, "type": "if_statement", "text": "if (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n\t\twrite(fd, arg, x - arg + 1);\n\t\targ += x - arg + 1;\n\t}", "parent": 308, "children": [330], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 99, "column": 2}}, {"id": 330, "type": "parenthesized_expression", "text": "(*arg == '-' && (x = strchr(arg, '=')) != NULL)", "parent": 329, "children": [331], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 51}}, {"id": 331, "type": "binary_expression", "text": "*arg == '-' && (x = strchr(arg, '=')) != NULL", "parent": 330, "children": [332, 341, 342], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 50}}, {"id": 332, "type": "binary_expression", "text": "*arg == '-'", "parent": 331, "children": [333, 336, 337], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 16}}, {"id": 333, "type": "pointer_expression", "text": "*arg", "parent": 332, "children": [334, 335], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 9}}, {"id": 334, "type": "*", "text": "*", "parent": 333, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 6}}, {"id": 335, "type": "identifier", "text": "arg", "parent": 333, "children": [], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 9}}, {"id": 336, "type": "==", "text": "==", "parent": 332, "children": [], "start_point": {"row": 96, "column": 10}, "end_point": {"row": 96, "column": 12}}, {"id": 337, "type": "char_literal", "text": "'-'", "parent": 332, "children": [338, 339, 340], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 16}}, {"id": 338, "type": "'", "text": "'", "parent": 337, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 14}}, {"id": 339, "type": "character", "text": "-", "parent": 337, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 15}}, {"id": 340, "type": "'", "text": "'", "parent": 337, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 16}}, {"id": 341, "type": "&&", "text": "&&", "parent": 331, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 19}}, {"id": 342, "type": "binary_expression", "text": "(x = strchr(arg, '=')) != NULL", "parent": 331, "children": [343, 355, 356], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 50}}, {"id": 343, "type": "parenthesized_expression", "text": "(x = strchr(arg, '='))", "parent": 342, "children": [344], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 42}}, {"id": 344, "type": "assignment_expression", "text": "x = strchr(arg, '=')", "parent": 343, "children": [345, 346, 347], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 41}}, {"id": 345, "type": "identifier", "text": "x", "parent": 344, "children": [], "start_point": {"row": 96, "column": 21}, "end_point": {"row": 96, "column": 22}}, {"id": 346, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 96, "column": 23}, "end_point": {"row": 96, "column": 24}}, {"id": 347, "type": "call_expression", "text": "strchr(arg, '=')", "parent": 344, "children": [348, 349], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 41}}, {"id": 348, "type": "identifier", "text": "strchr", "parent": 347, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 31}}, {"id": 349, "type": "argument_list", "text": "(arg, '=')", "parent": 347, "children": [350, 351], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 96, "column": 41}}, {"id": 350, "type": "identifier", "text": "arg", "parent": 349, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 35}}, {"id": 351, "type": "char_literal", "text": "'='", "parent": 349, "children": [352, 353, 354], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 40}}, {"id": 352, "type": "'", "text": "'", "parent": 351, "children": [], "start_point": {"row": 96, "column": 37}, "end_point": {"row": 96, "column": 38}}, {"id": 353, "type": "character", "text": "=", "parent": 351, "children": [], "start_point": {"row": 96, "column": 38}, "end_point": {"row": 96, "column": 39}}, {"id": 354, "type": "'", "text": "'", "parent": 351, "children": [], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 40}}, {"id": 355, "type": "!=", "text": "!=", "parent": 342, "children": [], "start_point": {"row": 96, "column": 43}, "end_point": {"row": 96, "column": 45}}, {"id": 356, "type": "null", "text": "NULL", "parent": 342, "children": [357], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 50}}, {"id": 357, "type": "NULL", "text": "NULL", "parent": 356, "children": [], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 50}}, {"id": 358, "type": "call_expression", "text": "write(fd, arg, x - arg + 1)", "parent": 329, "children": [359, 360], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 29}}, {"id": 359, "type": "identifier", "text": "write", "parent": 358, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 7}}, {"id": 360, "type": "argument_list", "text": "(fd, arg, x - arg + 1)", "parent": 358, "children": [361, 362, 363], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 29}}, {"id": 361, "type": "identifier", "text": "fd", "parent": 360, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 10}}, {"id": 362, "type": "identifier", "text": "arg", "parent": 360, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 15}}, {"id": 363, "type": "binary_expression", "text": "x - arg + 1", "parent": 360, "children": [364, 368, 369], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 28}}, {"id": 364, "type": "binary_expression", "text": "x - arg", "parent": 363, "children": [365, 366, 367], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 24}}, {"id": 365, "type": "identifier", "text": "x", "parent": 364, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 18}}, {"id": 366, "type": "-", "text": "-", "parent": 364, "children": [], "start_point": {"row": 97, "column": 19}, "end_point": {"row": 97, "column": 20}}, {"id": 367, "type": "identifier", "text": "arg", "parent": 364, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 24}}, {"id": 368, "type": "+", "text": "+", "parent": 363, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 26}}, {"id": 369, "type": "number_literal", "text": "1", "parent": 363, "children": [], "start_point": {"row": 97, "column": 27}, "end_point": {"row": 97, "column": 28}}, {"id": 370, "type": "assignment_expression", "text": "arg += x - arg + 1", "parent": 329, "children": [371, 372, 373], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 20}}, {"id": 371, "type": "identifier", "text": "arg", "parent": 370, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 5}}, {"id": 372, "type": "+=", "text": "+=", "parent": 370, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 8}}, {"id": 373, "type": "binary_expression", "text": "x - arg + 1", "parent": 370, "children": [374, 378, 379], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 20}}, {"id": 374, "type": "binary_expression", "text": "x - arg", "parent": 373, "children": [375, 376, 377], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 16}}, {"id": 375, "type": "identifier", "text": "x", "parent": 374, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 376, "type": "-", "text": "-", "parent": 374, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 12}}, {"id": 377, "type": "identifier", "text": "arg", "parent": 374, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 16}}, {"id": 378, "type": "+", "text": "+", "parent": 373, "children": [], "start_point": {"row": 98, "column": 17}, "end_point": {"row": 98, "column": 18}}, {"id": 379, "type": "number_literal", "text": "1", "parent": 373, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 20}}, {"id": 380, "type": "if_statement", "text": "if (strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\") != NULL) {\n\t\twrite(fd, \"'\", 1);\n\t\tfor (s = arg; (x = strchr(s, '\\'')) != NULL; s = x + 1) {\n\t\t\twrite(fd, s, x - s + 1);\n\t\t\twrite(fd, \"'\", 1);\n\t\t}\n\t\twrite(fd, s, strlen(s));\n\t\twrite(fd, \"'\", 1);\n\t\treturn;\n\t}", "parent": 308, "children": [381], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 110, "column": 2}}, {"id": 381, "type": "parenthesized_expression", "text": "(strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\") != NULL)", "parent": 380, "children": [382], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 49}}, {"id": 382, "type": "binary_expression", "text": "strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\") != NULL", "parent": 381, "children": [383, 390, 391], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 48}}, {"id": 383, "type": "call_expression", "text": "strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\")", "parent": 382, "children": [384, 385], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 40}}, {"id": 384, "type": "identifier", "text": "strpbrk", "parent": 383, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 12}}, {"id": 385, "type": "argument_list", "text": "(arg, \" \\\"'&;|[]()$#!*?^\\\\\")", "parent": 383, "children": [386, 387], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 40}}, {"id": 386, "type": "identifier", "text": "arg", "parent": 385, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 16}}, {"id": 387, "type": "string_literal", "text": "\" \\\"'&;|[]()$#!*?^\\\\\"", "parent": 385, "children": [388, 389], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 39}}, {"id": 388, "type": "escape_sequence", "text": "\\\"", "parent": 387, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 22}}, {"id": 389, "type": "escape_sequence", "text": "\\\\", "parent": 387, "children": [], "start_point": {"row": 101, "column": 36}, "end_point": {"row": 101, "column": 38}}, {"id": 390, "type": "!=", "text": "!=", "parent": 382, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 43}}, {"id": 391, "type": "null", "text": "NULL", "parent": 382, "children": [392], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 48}}, {"id": 392, "type": "NULL", "text": "NULL", "parent": 391, "children": [], "start_point": {"row": 101, "column": 44}, "end_point": {"row": 101, "column": 48}}, {"id": 393, "type": "call_expression", "text": "write(fd, \"'\", 1)", "parent": 380, "children": [394, 395], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 19}}, {"id": 394, "type": "identifier", "text": "write", "parent": 393, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 7}}, {"id": 395, "type": "argument_list", "text": "(fd, \"'\", 1)", "parent": 393, "children": [396, 397, 398], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 19}}, {"id": 396, "type": "identifier", "text": "fd", "parent": 395, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 10}}, {"id": 397, "type": "string_literal", "text": "\"'\"", "parent": 395, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 15}}, {"id": 398, "type": "number_literal", "text": "1", "parent": 395, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 18}}, {"id": 399, "type": "for_statement", "text": "for (s = arg; (x = strchr(s, '\\'')) != NULL; s = x + 1) {\n\t\t\twrite(fd, s, x - s + 1);\n\t\t\twrite(fd, \"'\", 1);\n\t\t}", "parent": 380, "children": [400, 404, 420], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 106, "column": 3}}, {"id": 400, "type": "assignment_expression", "text": "s = arg", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 14}}, {"id": 401, "type": "identifier", "text": "s", "parent": 400, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 402, "type": "=", "text": "=", "parent": 400, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 403, "type": "identifier", "text": "arg", "parent": 400, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 14}}, {"id": 404, "type": "binary_expression", "text": "(x = strchr(s, '\\'')) != NULL", "parent": 399, "children": [405, 417, 418], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 45}}, {"id": 405, "type": "parenthesized_expression", "text": "(x = strchr(s, '\\''))", "parent": 404, "children": [406], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 37}}, {"id": 406, "type": "assignment_expression", "text": "x = strchr(s, '\\'')", "parent": 405, "children": [407, 408, 409], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 36}}, {"id": 407, "type": "identifier", "text": "x", "parent": 406, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 408, "type": "=", "text": "=", "parent": 406, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 20}}, {"id": 409, "type": "call_expression", "text": "strchr(s, '\\'')", "parent": 406, "children": [410, 411], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 36}}, {"id": 410, "type": "identifier", "text": "strchr", "parent": 409, "children": [], "start_point": {"row": 103, "column": 21}, "end_point": {"row": 103, "column": 27}}, {"id": 411, "type": "argument_list", "text": "(s, '\\'')", "parent": 409, "children": [412, 413], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 36}}, {"id": 412, "type": "identifier", "text": "s", "parent": 411, "children": [], "start_point": {"row": 103, "column": 28}, "end_point": {"row": 103, "column": 29}}, {"id": 413, "type": "char_literal", "text": "'\\''", "parent": 411, "children": [414, 415, 416], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 35}}, {"id": 414, "type": "'", "text": "'", "parent": 413, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 32}}, {"id": 415, "type": "escape_sequence", "text": "\\'", "parent": 413, "children": [], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 34}}, {"id": 416, "type": "'", "text": "'", "parent": 413, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 35}}, {"id": 417, "type": "!=", "text": "!=", "parent": 404, "children": [], "start_point": {"row": 103, "column": 38}, "end_point": {"row": 103, "column": 40}}, {"id": 418, "type": "null", "text": "NULL", "parent": 404, "children": [419], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 45}}, {"id": 419, "type": "NULL", "text": "NULL", "parent": 418, "children": [], "start_point": {"row": 103, "column": 41}, "end_point": {"row": 103, "column": 45}}, {"id": 420, "type": "assignment_expression", "text": "s = x + 1", "parent": 399, "children": [421, 422, 423], "start_point": {"row": 103, "column": 47}, "end_point": {"row": 103, "column": 56}}, {"id": 421, "type": "identifier", "text": "s", "parent": 420, "children": [], "start_point": {"row": 103, "column": 47}, "end_point": {"row": 103, "column": 48}}, {"id": 422, "type": "=", "text": "=", "parent": 420, "children": [], "start_point": {"row": 103, "column": 49}, "end_point": {"row": 103, "column": 50}}, {"id": 423, "type": "binary_expression", "text": "x + 1", "parent": 420, "children": [424, 425, 426], "start_point": {"row": 103, "column": 51}, "end_point": {"row": 103, "column": 56}}, {"id": 424, "type": "identifier", "text": "x", "parent": 423, "children": [], "start_point": {"row": 103, "column": 51}, "end_point": {"row": 103, "column": 52}}, {"id": 425, "type": "+", "text": "+", "parent": 423, "children": [], "start_point": {"row": 103, "column": 53}, "end_point": {"row": 103, "column": 54}}, {"id": 426, "type": "number_literal", "text": "1", "parent": 423, "children": [], "start_point": {"row": 103, "column": 55}, "end_point": {"row": 103, "column": 56}}, {"id": 427, "type": "call_expression", "text": "write(fd, s, x - s + 1)", "parent": 399, "children": [428, 429], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 26}}, {"id": 428, "type": "identifier", "text": "write", "parent": 427, "children": [], "start_point": {"row": 104, "column": 3}, "end_point": {"row": 104, "column": 8}}, {"id": 429, "type": "argument_list", "text": "(fd, s, x - s + 1)", "parent": 427, "children": [430, 431, 432], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 26}}, {"id": 430, "type": "identifier", "text": "fd", "parent": 429, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 11}}, {"id": 431, "type": "identifier", "text": "s", "parent": 429, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 14}}, {"id": 432, "type": "binary_expression", "text": "x - s + 1", "parent": 429, "children": [433, 437, 438], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 25}}, {"id": 433, "type": "binary_expression", "text": "x - s", "parent": 432, "children": [434, 435, 436], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 21}}, {"id": 434, "type": "identifier", "text": "x", "parent": 433, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 17}}, {"id": 435, "type": "-", "text": "-", "parent": 433, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 436, "type": "identifier", "text": "s", "parent": 433, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 437, "type": "+", "text": "+", "parent": 432, "children": [], "start_point": {"row": 104, "column": 22}, "end_point": {"row": 104, "column": 23}}, {"id": 438, "type": "number_literal", "text": "1", "parent": 432, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 25}}, {"id": 439, "type": "call_expression", "text": "write(fd, \"'\", 1)", "parent": 399, "children": [440, 441], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 20}}, {"id": 440, "type": "identifier", "text": "write", "parent": 439, "children": [], "start_point": {"row": 105, "column": 3}, "end_point": {"row": 105, "column": 8}}, {"id": 441, "type": "argument_list", "text": "(fd, \"'\", 1)", "parent": 439, "children": [442, 443, 444], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 20}}, {"id": 442, "type": "identifier", "text": "fd", "parent": 441, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 443, "type": "string_literal", "text": "\"'\"", "parent": 441, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 16}}, {"id": 444, "type": "number_literal", "text": "1", "parent": 441, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 19}}, {"id": 445, "type": "call_expression", "text": "write(fd, s, strlen(s))", "parent": 380, "children": [446, 447], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 25}}, {"id": 446, "type": "identifier", "text": "write", "parent": 445, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 7}}, {"id": 447, "type": "argument_list", "text": "(fd, s, strlen(s))", "parent": 445, "children": [448, 449, 450], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 25}}, {"id": 448, "type": "identifier", "text": "fd", "parent": 447, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 10}}, {"id": 449, "type": "identifier", "text": "s", "parent": 447, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 13}}, {"id": 450, "type": "call_expression", "text": "strlen(s)", "parent": 447, "children": [451, 452], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 24}}, {"id": 451, "type": "identifier", "text": "strlen", "parent": 450, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 21}}, {"id": 452, "type": "argument_list", "text": "(s)", "parent": 450, "children": [453], "start_point": {"row": 107, "column": 21}, "end_point": {"row": 107, "column": 24}}, {"id": 453, "type": "identifier", "text": "s", "parent": 452, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 23}}, {"id": 454, "type": "call_expression", "text": "write(fd, \"'\", 1)", "parent": 380, "children": [455, 456], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 19}}, {"id": 455, "type": "identifier", "text": "write", "parent": 454, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 7}}, {"id": 456, "type": "argument_list", "text": "(fd, \"'\", 1)", "parent": 454, "children": [457, 458, 459], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 19}}, {"id": 457, "type": "identifier", "text": "fd", "parent": 456, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 10}}, {"id": 458, "type": "string_literal", "text": "\"'\"", "parent": 456, "children": [], "start_point": {"row": 108, "column": 12}, "end_point": {"row": 108, "column": 15}}, {"id": 459, "type": "number_literal", "text": "1", "parent": 456, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 18}}, {"id": 460, "type": "return_statement", "text": "return;", "parent": 380, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 9}}, {"id": 461, "type": "call_expression", "text": "write(fd, arg, strlen(arg))", "parent": 308, "children": [462, 463], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 28}}, {"id": 462, "type": "identifier", "text": "write", "parent": 461, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 6}}, {"id": 463, "type": "argument_list", "text": "(fd, arg, strlen(arg))", "parent": 461, "children": [464, 465, 466], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 28}}, {"id": 464, "type": "identifier", "text": "fd", "parent": 463, "children": [], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 9}}, {"id": 465, "type": "identifier", "text": "arg", "parent": 463, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 14}}, {"id": 466, "type": "call_expression", "text": "strlen(arg)", "parent": 463, "children": [467, 468], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 27}}, {"id": 467, "type": "identifier", "text": "strlen", "parent": 466, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 22}}, {"id": 468, "type": "argument_list", "text": "(arg)", "parent": 466, "children": [469], "start_point": {"row": 112, "column": 22}, "end_point": {"row": 112, "column": 27}}, {"id": 469, "type": "identifier", "text": "arg", "parent": 468, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 26}}, {"id": 470, "type": "function_definition", "text": "static void write_filter_rules(int fd)\n{\n\tstruct filter_struct *ent;\n\n\twrite_sbuf(fd, \" <<'#E#'\\n\");\n\tfor (ent = filter_list.head; ent; ent = ent->next) {\n\t\tunsigned int plen;\n\t\tchar *p = get_rule_prefix(ent->match_flags, \"- \", 0, &plen);\n\t\twrite_buf(fd, p, plen);\n\t\twrite_sbuf(fd, ent->pattern);\n\t\tif (ent->match_flags & MATCHFLG_DIRECTORY)\n\t\t\twrite_byte(fd, '/');\n\t\twrite_byte(fd, eol_nulls ? 0 : '\\n');\n\t}\n\tif (eol_nulls)\n\t\twrite_sbuf(fd, \";\\n\");\n\twrite_sbuf(fd, \"#E#\");\n}", "parent": null, "children": [471, 472], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 132, "column": 1}}, {"id": 471, "type": "primitive_type", "text": "void", "parent": 470, "children": [], "start_point": {"row": 115, "column": 7}, "end_point": {"row": 115, "column": 11}}, {"id": 472, "type": "function_declarator", "text": "write_filter_rules(int fd)", "parent": 470, "children": [473, 474], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 38}}, {"id": 473, "type": "identifier", "text": "write_filter_rules", "parent": 472, "children": [], "start_point": {"row": 115, "column": 12}, "end_point": {"row": 115, "column": 30}}, {"id": 474, "type": "parameter_list", "text": "(int fd)", "parent": 472, "children": [475], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 38}}, {"id": 475, "type": "parameter_declaration", "text": "int fd", "parent": 474, "children": [476, 477], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 37}}, {"id": 476, "type": "primitive_type", "text": "int", "parent": 475, "children": [], "start_point": {"row": 115, "column": 31}, "end_point": {"row": 115, "column": 34}}, {"id": 477, "type": "identifier", "text": "fd", "parent": 475, "children": [], "start_point": {"row": 115, "column": 35}, "end_point": {"row": 115, "column": 37}}, {"id": 478, "type": "declaration", "text": "struct filter_struct *ent;", "parent": 470, "children": [479, 482], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 27}}, {"id": 479, "type": "struct_specifier", "text": "struct filter_struct", "parent": 478, "children": [480, 481], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 21}}, {"id": 480, "type": "struct", "text": "struct", "parent": 479, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 7}}, {"id": 481, "type": "type_identifier", "text": "filter_struct", "parent": 479, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 21}}, {"id": 482, "type": "pointer_declarator", "text": "*ent", "parent": 478, "children": [483, 484], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 26}}, {"id": 483, "type": "*", "text": "*", "parent": 482, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 23}}, {"id": 484, "type": "identifier", "text": "ent", "parent": 482, "children": [], "start_point": {"row": 117, "column": 23}, "end_point": {"row": 117, "column": 26}}, {"id": 485, "type": "call_expression", "text": "write_sbuf(fd, \" <<'#E#'\\n\")", "parent": 470, "children": [486, 487], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 29}}, {"id": 486, "type": "identifier", "text": "write_sbuf", "parent": 485, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 11}}, {"id": 487, "type": "argument_list", "text": "(fd, \" <<'#E#'\\n\")", "parent": 485, "children": [488, 489], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 29}}, {"id": 488, "type": "identifier", "text": "fd", "parent": 487, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 14}}, {"id": 489, "type": "string_literal", "text": "\" <<'#E#'\\n\"", "parent": 487, "children": [490], "start_point": {"row": 119, "column": 16}, "end_point": {"row": 119, "column": 28}}, {"id": 490, "type": "escape_sequence", "text": "\\n", "parent": 489, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 27}}, {"id": 491, "type": "for_statement", "text": "for (ent = filter_list.head; ent; ent = ent->next) {\n\t\tunsigned int plen;\n\t\tchar *p = get_rule_prefix(ent->match_flags, \"- \", 0, &plen);\n\t\twrite_buf(fd, p, plen);\n\t\twrite_sbuf(fd, ent->pattern);\n\t\tif (ent->match_flags & MATCHFLG_DIRECTORY)\n\t\t\twrite_byte(fd, '/');\n\t\twrite_byte(fd, eol_nulls ? 0 : '\\n');\n\t}", "parent": 470, "children": [492, 498, 499], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 128, "column": 2}}, {"id": 492, "type": "assignment_expression", "text": "ent = filter_list.head", "parent": 491, "children": [493, 494, 495], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 28}}, {"id": 493, "type": "identifier", "text": "ent", "parent": 492, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 9}}, {"id": 494, "type": "=", "text": "=", "parent": 492, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 11}}, {"id": 495, "type": "field_expression", "text": "filter_list.head", "parent": 492, "children": [496, 497], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 28}}, {"id": 496, "type": "identifier", "text": "filter_list", "parent": 495, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 23}}, {"id": 497, "type": "field_identifier", "text": "head", "parent": 495, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 28}}, {"id": 498, "type": "identifier", "text": "ent", "parent": 491, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 33}}, {"id": 499, "type": "assignment_expression", "text": "ent = ent->next", "parent": 491, "children": [500, 501, 502], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 50}}, {"id": 500, "type": "identifier", "text": "ent", "parent": 499, "children": [], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 38}}, {"id": 501, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 40}}, {"id": 502, "type": "field_expression", "text": "ent->next", "parent": 499, "children": [503, 504], "start_point": {"row": 120, "column": 41}, "end_point": {"row": 120, "column": 50}}, {"id": 503, "type": "identifier", "text": "ent", "parent": 502, "children": [], "start_point": {"row": 120, "column": 41}, "end_point": {"row": 120, "column": 44}}, {"id": 504, "type": "field_identifier", "text": "next", "parent": 502, "children": [], "start_point": {"row": 120, "column": 46}, "end_point": {"row": 120, "column": 50}}, {"id": 505, "type": "declaration", "text": "unsigned int plen;", "parent": 491, "children": [506, 509], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 20}}, {"id": 506, "type": "sized_type_specifier", "text": "unsigned int", "parent": 505, "children": [507, 508], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 14}}, {"id": 507, "type": "unsigned", "text": "unsigned", "parent": 506, "children": [], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 10}}, {"id": 508, "type": "primitive_type", "text": "int", "parent": 506, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 14}}, {"id": 509, "type": "identifier", "text": "plen", "parent": 505, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 19}}, {"id": 510, "type": "declaration", "text": "char *p = get_rule_prefix(ent->match_flags, \"- \", 0, &plen);", "parent": 491, "children": [511, 512], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 62}}, {"id": 511, "type": "primitive_type", "text": "char", "parent": 510, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 6}}, {"id": 512, "type": "init_declarator", "text": "*p = get_rule_prefix(ent->match_flags, \"- \", 0, &plen)", "parent": 510, "children": [513, 516, 517], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 61}}, {"id": 513, "type": "pointer_declarator", "text": "*p", "parent": 512, "children": [514, 515], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 9}}, {"id": 514, "type": "*", "text": "*", "parent": 513, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 8}}, {"id": 515, "type": "identifier", "text": "p", "parent": 513, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 9}}, {"id": 516, "type": "=", "text": "=", "parent": 512, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 517, "type": "call_expression", "text": "get_rule_prefix(ent->match_flags, \"- \", 0, &plen)", "parent": 512, "children": [518, 519], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 61}}, {"id": 518, "type": "identifier", "text": "get_rule_prefix", "parent": 517, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 27}}, {"id": 519, "type": "argument_list", "text": "(ent->match_flags, \"- \", 0, &plen)", "parent": 517, "children": [520, 523, 524, 525], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 61}}, {"id": 520, "type": "field_expression", "text": "ent->match_flags", "parent": 519, "children": [521, 522], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 44}}, {"id": 521, "type": "identifier", "text": "ent", "parent": 520, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 31}}, {"id": 522, "type": "field_identifier", "text": "match_flags", "parent": 520, "children": [], "start_point": {"row": 122, "column": 33}, "end_point": {"row": 122, "column": 44}}, {"id": 523, "type": "string_literal", "text": "\"- \"", "parent": 519, "children": [], "start_point": {"row": 122, "column": 46}, "end_point": {"row": 122, "column": 50}}, {"id": 524, "type": "number_literal", "text": "0", "parent": 519, "children": [], "start_point": {"row": 122, "column": 52}, "end_point": {"row": 122, "column": 53}}, {"id": 525, "type": "pointer_expression", "text": "&plen", "parent": 519, "children": [526], "start_point": {"row": 122, "column": 55}, "end_point": {"row": 122, "column": 60}}, {"id": 526, "type": "identifier", "text": "plen", "parent": 525, "children": [], "start_point": {"row": 122, "column": 56}, "end_point": {"row": 122, "column": 60}}, {"id": 527, "type": "call_expression", "text": "write_buf(fd, p, plen)", "parent": 491, "children": [528, 529], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 24}}, {"id": 528, "type": "identifier", "text": "write_buf", "parent": 527, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 11}}, {"id": 529, "type": "argument_list", "text": "(fd, p, plen)", "parent": 527, "children": [530, 531, 532], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 24}}, {"id": 530, "type": "identifier", "text": "fd", "parent": 529, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 14}}, {"id": 531, "type": "identifier", "text": "p", "parent": 529, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 17}}, {"id": 532, "type": "identifier", "text": "plen", "parent": 529, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 23}}, {"id": 533, "type": "call_expression", "text": "write_sbuf(fd, ent->pattern)", "parent": 491, "children": [534, 535], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 30}}, {"id": 534, "type": "identifier", "text": "write_sbuf", "parent": 533, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 12}}, {"id": 535, "type": "argument_list", "text": "(fd, ent->pattern)", "parent": 533, "children": [536, 537], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 30}}, {"id": 536, "type": "identifier", "text": "fd", "parent": 535, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 15}}, {"id": 537, "type": "field_expression", "text": "ent->pattern", "parent": 535, "children": [538, 539], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 29}}, {"id": 538, "type": "identifier", "text": "ent", "parent": 537, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 20}}, {"id": 539, "type": "field_identifier", "text": "pattern", "parent": 537, "children": [], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 29}}, {"id": 540, "type": "if_statement", "text": "if (ent->match_flags & MATCHFLG_DIRECTORY)\n\t\t\twrite_byte(fd, '/');", "parent": 491, "children": [541], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 126, "column": 23}}, {"id": 541, "type": "parenthesized_expression", "text": "(ent->match_flags & MATCHFLG_DIRECTORY)", "parent": 540, "children": [542], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 44}}, {"id": 542, "type": "binary_expression", "text": "ent->match_flags & MATCHFLG_DIRECTORY", "parent": 541, "children": [543, 546], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 43}}, {"id": 543, "type": "field_expression", "text": "ent->match_flags", "parent": 542, "children": [544, 545], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 22}}, {"id": 544, "type": "identifier", "text": "ent", "parent": 543, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 9}}, {"id": 545, "type": "field_identifier", "text": "match_flags", "parent": 543, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 22}}, {"id": 546, "type": "identifier", "text": "MATCHFLG_DIRECTORY", "parent": 542, "children": [], "start_point": {"row": 125, "column": 25}, "end_point": {"row": 125, "column": 43}}, {"id": 547, "type": "call_expression", "text": "write_byte(fd, '/')", "parent": 540, "children": [548, 549], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 22}}, {"id": 548, "type": "identifier", "text": "write_byte", "parent": 547, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 13}}, {"id": 549, "type": "argument_list", "text": "(fd, '/')", "parent": 547, "children": [550, 551], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 22}}, {"id": 550, "type": "identifier", "text": "fd", "parent": 549, "children": [], "start_point": {"row": 126, "column": 14}, "end_point": {"row": 126, "column": 16}}, {"id": 551, "type": "char_literal", "text": "'/'", "parent": 549, "children": [552, 553, 554], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 21}}, {"id": 552, "type": "'", "text": "'", "parent": 551, "children": [], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 19}}, {"id": 553, "type": "character", "text": "/", "parent": 551, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 20}}, {"id": 554, "type": "'", "text": "'", "parent": 551, "children": [], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 21}}, {"id": 555, "type": "call_expression", "text": "write_byte(fd, eol_nulls ? 0 : '\\n')", "parent": 491, "children": [556, 557], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 38}}, {"id": 556, "type": "identifier", "text": "write_byte", "parent": 555, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 12}}, {"id": 557, "type": "argument_list", "text": "(fd, eol_nulls ? 0 : '\\n')", "parent": 555, "children": [558, 559], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 38}}, {"id": 558, "type": "identifier", "text": "fd", "parent": 557, "children": [], "start_point": {"row": 127, "column": 13}, "end_point": {"row": 127, "column": 15}}, {"id": 559, "type": "conditional_expression", "text": "eol_nulls ? 0 : '\\n'", "parent": 557, "children": [560, 561, 562, 563], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 37}}, {"id": 560, "type": "identifier", "text": "eol_nulls", "parent": 559, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 26}}, {"id": 561, "type": "?", "text": "?", "parent": 559, "children": [], "start_point": {"row": 127, "column": 27}, "end_point": {"row": 127, "column": 28}}, {"id": 562, "type": "number_literal", "text": "0", "parent": 559, "children": [], "start_point": {"row": 127, "column": 29}, "end_point": {"row": 127, "column": 30}}, {"id": 563, "type": "char_literal", "text": "'\\n'", "parent": 559, "children": [564, 565, 566], "start_point": {"row": 127, "column": 33}, "end_point": {"row": 127, "column": 37}}, {"id": 564, "type": "'", "text": "'", "parent": 563, "children": [], "start_point": {"row": 127, "column": 33}, "end_point": {"row": 127, "column": 34}}, {"id": 565, "type": "escape_sequence", "text": "\\n", "parent": 563, "children": [], "start_point": {"row": 127, "column": 34}, "end_point": {"row": 127, "column": 36}}, {"id": 566, "type": "'", "text": "'", "parent": 563, "children": [], "start_point": {"row": 127, "column": 36}, "end_point": {"row": 127, "column": 37}}, {"id": 567, "type": "if_statement", "text": "if (eol_nulls)\n\t\twrite_sbuf(fd, \";\\n\");", "parent": 470, "children": [568], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 130, "column": 24}}, {"id": 568, "type": "parenthesized_expression", "text": "(eol_nulls)", "parent": 567, "children": [569], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 15}}, {"id": 569, "type": "identifier", "text": "eol_nulls", "parent": 568, "children": [], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 14}}, {"id": 570, "type": "call_expression", "text": "write_sbuf(fd, \";\\n\")", "parent": 567, "children": [571, 572], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 23}}, {"id": 571, "type": "identifier", "text": "write_sbuf", "parent": 570, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 12}}, {"id": 572, "type": "argument_list", "text": "(fd, \";\\n\")", "parent": 570, "children": [573, 574], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 23}}, {"id": 573, "type": "identifier", "text": "fd", "parent": 572, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 15}}, {"id": 574, "type": "string_literal", "text": "\";\\n\"", "parent": 572, "children": [575], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 22}}, {"id": 575, "type": "escape_sequence", "text": "\\n", "parent": 574, "children": [], "start_point": {"row": 130, "column": 19}, "end_point": {"row": 130, "column": 21}}, {"id": 576, "type": "call_expression", "text": "write_sbuf(fd, \"#E#\")", "parent": 470, "children": [577, 578], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 22}}, {"id": 577, "type": "identifier", "text": "write_sbuf", "parent": 576, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 11}}, {"id": 578, "type": "argument_list", "text": "(fd, \"#E#\")", "parent": 576, "children": [579, 580], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 22}}, {"id": 579, "type": "identifier", "text": "fd", "parent": 578, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 14}}, {"id": 580, "type": "string_literal", "text": "\"#E#\"", "parent": 578, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 21}}, {"id": 581, "type": "function_definition", "text": "void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)\n{\n\tint fd, i, len;\n\tchar *p, filename[MAXPATHLEN];\n\n\tstringjoin(filename, sizeof filename,\n\t\t batch_name, \".sh\", NULL);\n\tfd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n\t\t S_IRUSR | S_IWUSR | S_IEXEC);\n\tif (fd < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s open error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}\n\n\t/* Write argvs info to BATCH.sh file */\n\twrite_arg(fd, argv[0]);\n\tif (filter_list.head) {\n\t\tif (protocol_version >= 29)\n\t\t\twrite_sbuf(fd, \" --filter=._-\");\n\t\telse\n\t\t\twrite_sbuf(fd, \" --exclude-from=-\");\n\t}\n\tfor (i = 1; i < argc - file_arg_cnt; i++) {\n\t\tp = argv[i];\n\t\tif (strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0) {\n\t\t\tif (strchr(p, '=') == NULL)\n\t\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (strcmp(p, \"-f\") == 0) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\twrite(fd, \" \", 1);\n\t\tif (strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0) {\n\t\t\twrite(fd, \"--read-batch\", 12);\n\t\t\tif (p[len] == '=') {\n\t\t\t\twrite(fd, \"=\", 1);\n\t\t\t\twrite_arg(fd, p + len + 1);\n\t\t\t}\n\t\t} else\n\t\t\twrite_arg(fd, p);\n\t}\n\tif (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n\t\tp = argv[argc - 1];\n\twrite(fd, \" ${1:-\", 6);\n\twrite_arg(fd, p);\n\twrite_byte(fd, '}');\n\tif (filter_list.head)\n\t\twrite_filter_rules(fd);\n\tif (write(fd, \"\\n\", 1) != 1 || close(fd) < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s write error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}\n}", "parent": null, "children": [582, 583], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 199, "column": 1}}, {"id": 582, "type": "primitive_type", "text": "void", "parent": 581, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 4}}, {"id": 583, "type": "function_declarator", "text": "write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)", "parent": 581, "children": [584, 585], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 69}}, {"id": 584, "type": "identifier", "text": "write_batch_shell_file", "parent": 583, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 27}}, {"id": 585, "type": "parameter_list", "text": "(int argc, char *argv[], int file_arg_cnt)", "parent": 583, "children": [586, 589, 595], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 69}}, {"id": 586, "type": "parameter_declaration", "text": "int argc", "parent": 585, "children": [587, 588], "start_point": {"row": 139, "column": 28}, "end_point": {"row": 139, "column": 36}}, {"id": 587, "type": "primitive_type", "text": "int", "parent": 586, "children": [], "start_point": {"row": 139, "column": 28}, "end_point": {"row": 139, "column": 31}}, {"id": 588, "type": "identifier", "text": "argc", "parent": 586, "children": [], "start_point": {"row": 139, "column": 32}, "end_point": {"row": 139, "column": 36}}, {"id": 589, "type": "parameter_declaration", "text": "char *argv[]", "parent": 585, "children": [590, 591], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 50}}, {"id": 590, "type": "primitive_type", "text": "char", "parent": 589, "children": [], "start_point": {"row": 139, "column": 38}, "end_point": {"row": 139, "column": 42}}, {"id": 591, "type": "pointer_declarator", "text": "*argv[]", "parent": 589, "children": [592, 593], "start_point": {"row": 139, "column": 43}, "end_point": {"row": 139, "column": 50}}, {"id": 592, "type": "*", "text": "*", "parent": 591, "children": [], "start_point": {"row": 139, "column": 43}, "end_point": {"row": 139, "column": 44}}, {"id": 593, "type": "array_declarator", "text": "argv[]", "parent": 591, "children": [594], "start_point": {"row": 139, "column": 44}, "end_point": {"row": 139, "column": 50}}, {"id": 594, "type": "identifier", "text": "argv", "parent": 593, "children": [], "start_point": {"row": 139, "column": 44}, "end_point": {"row": 139, "column": 48}}, {"id": 595, "type": "parameter_declaration", "text": "int file_arg_cnt", "parent": 585, "children": [596, 597], "start_point": {"row": 139, "column": 52}, "end_point": {"row": 139, "column": 68}}, {"id": 596, "type": "primitive_type", "text": "int", "parent": 595, "children": [], "start_point": {"row": 139, "column": 52}, "end_point": {"row": 139, "column": 55}}, {"id": 597, "type": "identifier", "text": "file_arg_cnt", "parent": 595, "children": [], "start_point": {"row": 139, "column": 56}, "end_point": {"row": 139, "column": 68}}, {"id": 598, "type": "declaration", "text": "int fd, i, len;", "parent": 581, "children": [599, 600, 601, 602], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 16}}, {"id": 599, "type": "primitive_type", "text": "int", "parent": 598, "children": [], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 141, "column": 4}}, {"id": 600, "type": "identifier", "text": "fd", "parent": 598, "children": [], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 7}}, {"id": 601, "type": "identifier", "text": "i", "parent": 598, "children": [], "start_point": {"row": 141, "column": 9}, "end_point": {"row": 141, "column": 10}}, {"id": 602, "type": "identifier", "text": "len", "parent": 598, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 15}}, {"id": 603, "type": "declaration", "text": "char *p, filename[MAXPATHLEN];", "parent": 581, "children": [604, 605, 608], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 31}}, {"id": 604, "type": "primitive_type", "text": "char", "parent": 603, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 5}}, {"id": 605, "type": "pointer_declarator", "text": "*p", "parent": 603, "children": [606, 607], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 8}}, {"id": 606, "type": "*", "text": "*", "parent": 605, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 7}}, {"id": 607, "type": "identifier", "text": "p", "parent": 605, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 8}}, {"id": 608, "type": "array_declarator", "text": "filename[MAXPATHLEN]", "parent": 603, "children": [609, 610], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 30}}, {"id": 609, "type": "identifier", "text": "filename", "parent": 608, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 18}}, {"id": 610, "type": "identifier", "text": "MAXPATHLEN", "parent": 608, "children": [], "start_point": {"row": 142, "column": 19}, "end_point": {"row": 142, "column": 29}}, {"id": 611, "type": "call_expression", "text": "stringjoin(filename, sizeof filename,\n\t\t batch_name, \".sh\", NULL)", "parent": 581, "children": [612, 613], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 145, "column": 29}}, {"id": 612, "type": "identifier", "text": "stringjoin", "parent": 611, "children": [], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 11}}, {"id": 613, "type": "argument_list", "text": "(filename, sizeof filename,\n\t\t batch_name, \".sh\", NULL)", "parent": 611, "children": [614, 615, 617, 618, 619], "start_point": {"row": 144, "column": 11}, "end_point": {"row": 145, "column": 29}}, {"id": 614, "type": "identifier", "text": "filename", "parent": 613, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 20}}, {"id": 615, "type": "sizeof_expression", "text": "sizeof filename", "parent": 613, "children": [616], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 37}}, {"id": 616, "type": "identifier", "text": "filename", "parent": 615, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 37}}, {"id": 617, "type": "identifier", "text": "batch_name", "parent": 613, "children": [], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 15}}, {"id": 618, "type": "string_literal", "text": "\".sh\"", "parent": 613, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 22}}, {"id": 619, "type": "null", "text": "NULL", "parent": 613, "children": [620], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 28}}, {"id": 620, "type": "NULL", "text": "NULL", "parent": 619, "children": [], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 28}}, {"id": 621, "type": "assignment_expression", "text": "fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n\t\t S_IRUSR | S_IWUSR | S_IEXEC)", "parent": 581, "children": [622, 623, 624], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 147, "column": 35}}, {"id": 622, "type": "identifier", "text": "fd", "parent": 621, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 3}}, {"id": 623, "type": "=", "text": "=", "parent": 621, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 5}}, {"id": 624, "type": "call_expression", "text": "do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n\t\t S_IRUSR | S_IWUSR | S_IEXEC)", "parent": 621, "children": [625, 626], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 147, "column": 35}}, {"id": 625, "type": "identifier", "text": "do_open", "parent": 624, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 13}}, {"id": 626, "type": "argument_list", "text": "(filename, O_WRONLY | O_CREAT | O_TRUNC,\n\t\t S_IRUSR | S_IWUSR | S_IEXEC)", "parent": 624, "children": [627, 628, 633], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 147, "column": 35}}, {"id": 627, "type": "identifier", "text": "filename", "parent": 626, "children": [], "start_point": {"row": 146, "column": 14}, "end_point": {"row": 146, "column": 22}}, {"id": 628, "type": "binary_expression", "text": "O_WRONLY | O_CREAT | O_TRUNC", "parent": 626, "children": [629, 632], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 52}}, {"id": 629, "type": "binary_expression", "text": "O_WRONLY | O_CREAT", "parent": 628, "children": [630, 631], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 42}}, {"id": 630, "type": "identifier", "text": "O_WRONLY", "parent": 629, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 32}}, {"id": 631, "type": "identifier", "text": "O_CREAT", "parent": 629, "children": [], "start_point": {"row": 146, "column": 35}, "end_point": {"row": 146, "column": 42}}, {"id": 632, "type": "identifier", "text": "O_TRUNC", "parent": 628, "children": [], "start_point": {"row": 146, "column": 45}, "end_point": {"row": 146, "column": 52}}, {"id": 633, "type": "binary_expression", "text": "S_IRUSR | S_IWUSR | S_IEXEC", "parent": 626, "children": [634, 637], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 34}}, {"id": 634, "type": "binary_expression", "text": "S_IRUSR | S_IWUSR", "parent": 633, "children": [635, 636], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 24}}, {"id": 635, "type": "identifier", "text": "S_IRUSR", "parent": 634, "children": [], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 14}}, {"id": 636, "type": "identifier", "text": "S_IWUSR", "parent": 634, "children": [], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 24}}, {"id": 637, "type": "identifier", "text": "S_IEXEC", "parent": 633, "children": [], "start_point": {"row": 147, "column": 27}, "end_point": {"row": 147, "column": 34}}, {"id": 638, "type": "if_statement", "text": "if (fd < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s open error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}", "parent": 581, "children": [639], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 152, "column": 2}}, {"id": 639, "type": "parenthesized_expression", "text": "(fd < 0)", "parent": 638, "children": [640], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 12}}, {"id": 640, "type": "binary_expression", "text": "fd < 0", "parent": 639, "children": [641, 642, 643], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 11}}, {"id": 641, "type": "identifier", "text": "fd", "parent": 640, "children": [], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 7}}, {"id": 642, "type": "<", "text": "<", "parent": 640, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 9}}, {"id": 643, "type": "number_literal", "text": "0", "parent": 640, "children": [], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 11}}, {"id": 644, "type": "call_expression", "text": "rsyserr(FERROR, errno, \"Batch file %s open error\",\n\t\t\tsafe_fname(filename))", "parent": 638, "children": [645, 646], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 150, "column": 24}}, {"id": 645, "type": "identifier", "text": "rsyserr", "parent": 644, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 9}}, {"id": 646, "type": "argument_list", "text": "(FERROR, errno, \"Batch file %s open error\",\n\t\t\tsafe_fname(filename))", "parent": 644, "children": [647, 648, 649, 650], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 150, "column": 24}}, {"id": 647, "type": "identifier", "text": "FERROR", "parent": 646, "children": [], "start_point": {"row": 149, "column": 10}, "end_point": {"row": 149, "column": 16}}, {"id": 648, "type": "identifier", "text": "errno", "parent": 646, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 23}}, {"id": 649, "type": "string_literal", "text": "\"Batch file %s open error\"", "parent": 646, "children": [], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 51}}, {"id": 650, "type": "call_expression", "text": "safe_fname(filename)", "parent": 646, "children": [651, 652], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 23}}, {"id": 651, "type": "identifier", "text": "safe_fname", "parent": 650, "children": [], "start_point": {"row": 150, "column": 3}, "end_point": {"row": 150, "column": 13}}, {"id": 652, "type": "argument_list", "text": "(filename)", "parent": 650, "children": [653], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 23}}, {"id": 653, "type": "identifier", "text": "filename", "parent": 652, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 22}}, {"id": 654, "type": "call_expression", "text": "exit_cleanup(1)", "parent": 638, "children": [655, 656], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 17}}, {"id": 655, "type": "identifier", "text": "exit_cleanup", "parent": 654, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 14}}, {"id": 656, "type": "argument_list", "text": "(1)", "parent": 654, "children": [657], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 17}}, {"id": 657, "type": "number_literal", "text": "1", "parent": 656, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 16}}, {"id": 658, "type": "call_expression", "text": "write_arg(fd, argv[0])", "parent": 581, "children": [659, 660], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 23}}, {"id": 659, "type": "identifier", "text": "write_arg", "parent": 658, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 10}}, {"id": 660, "type": "argument_list", "text": "(fd, argv[0])", "parent": 658, "children": [661, 662], "start_point": {"row": 155, "column": 10}, "end_point": {"row": 155, "column": 23}}, {"id": 661, "type": "identifier", "text": "fd", "parent": 660, "children": [], "start_point": {"row": 155, "column": 11}, "end_point": {"row": 155, "column": 13}}, {"id": 662, "type": "subscript_expression", "text": "argv[0]", "parent": 660, "children": [663, 664], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 22}}, {"id": 663, "type": "identifier", "text": "argv", "parent": 662, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 19}}, {"id": 664, "type": "number_literal", "text": "0", "parent": 662, "children": [], "start_point": {"row": 155, "column": 20}, "end_point": {"row": 155, "column": 21}}, {"id": 665, "type": "if_statement", "text": "if (filter_list.head) {\n\t\tif (protocol_version >= 29)\n\t\t\twrite_sbuf(fd, \" --filter=._-\");\n\t\telse\n\t\t\twrite_sbuf(fd, \" --exclude-from=-\");\n\t}", "parent": 581, "children": [666], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 161, "column": 2}}, {"id": 666, "type": "parenthesized_expression", "text": "(filter_list.head)", "parent": 665, "children": [667], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 22}}, {"id": 667, "type": "field_expression", "text": "filter_list.head", "parent": 666, "children": [668, 669], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 21}}, {"id": 668, "type": "identifier", "text": "filter_list", "parent": 667, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 16}}, {"id": 669, "type": "field_identifier", "text": "head", "parent": 667, "children": [], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 156, "column": 21}}, {"id": 670, "type": "if_statement", "text": "if (protocol_version >= 29)\n\t\t\twrite_sbuf(fd, \" --filter=._-\");\n\t\telse\n\t\t\twrite_sbuf(fd, \" --exclude-from=-\");", "parent": 665, "children": [671, 681], "start_point": {"row": 157, "column": 2}, "end_point": {"row": 160, "column": 39}}, {"id": 671, "type": "parenthesized_expression", "text": "(protocol_version >= 29)", "parent": 670, "children": [672], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 29}}, {"id": 672, "type": "binary_expression", "text": "protocol_version >= 29", "parent": 671, "children": [673, 674, 675], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 28}}, {"id": 673, "type": "identifier", "text": "protocol_version", "parent": 672, "children": [], "start_point": {"row": 157, "column": 6}, "end_point": {"row": 157, "column": 22}}, {"id": 674, "type": ">=", "text": ">=", "parent": 672, "children": [], "start_point": {"row": 157, "column": 23}, "end_point": {"row": 157, "column": 25}}, {"id": 675, "type": "number_literal", "text": "29", "parent": 672, "children": [], "start_point": {"row": 157, "column": 26}, "end_point": {"row": 157, "column": 28}}, {"id": 676, "type": "call_expression", "text": "write_sbuf(fd, \" --filter=._-\")", "parent": 670, "children": [677, 678], "start_point": {"row": 158, "column": 3}, "end_point": {"row": 158, "column": 34}}, {"id": 677, "type": "identifier", "text": "write_sbuf", "parent": 676, "children": [], "start_point": {"row": 158, "column": 3}, "end_point": {"row": 158, "column": 13}}, {"id": 678, "type": "argument_list", "text": "(fd, \" --filter=._-\")", "parent": 676, "children": [679, 680], "start_point": {"row": 158, "column": 13}, "end_point": {"row": 158, "column": 34}}, {"id": 679, "type": "identifier", "text": "fd", "parent": 678, "children": [], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 16}}, {"id": 680, "type": "string_literal", "text": "\" --filter=._-\"", "parent": 678, "children": [], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 33}}, {"id": 681, "type": "else_clause", "text": "else\n\t\t\twrite_sbuf(fd, \" --exclude-from=-\");", "parent": 670, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 160, "column": 39}}, {"id": 682, "type": "call_expression", "text": "write_sbuf(fd, \" --exclude-from=-\")", "parent": 681, "children": [683, 684], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 38}}, {"id": 683, "type": "identifier", "text": "write_sbuf", "parent": 682, "children": [], "start_point": {"row": 160, "column": 3}, "end_point": {"row": 160, "column": 13}}, {"id": 684, "type": "argument_list", "text": "(fd, \" --exclude-from=-\")", "parent": 682, "children": [685, 686], "start_point": {"row": 160, "column": 13}, "end_point": {"row": 160, "column": 38}}, {"id": 685, "type": "identifier", "text": "fd", "parent": 684, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 16}}, {"id": 686, "type": "string_literal", "text": "\" --exclude-from=-\"", "parent": 684, "children": [], "start_point": {"row": 160, "column": 18}, "end_point": {"row": 160, "column": 37}}, {"id": 687, "type": "for_statement", "text": "for (i = 1; i < argc - file_arg_cnt; i++) {\n\t\tp = argv[i];\n\t\tif (strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0) {\n\t\t\tif (strchr(p, '=') == NULL)\n\t\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (strcmp(p, \"-f\") == 0) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\twrite(fd, \" \", 1);\n\t\tif (strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0) {\n\t\t\twrite(fd, \"--read-batch\", 12);\n\t\t\tif (p[len] == '=') {\n\t\t\t\twrite(fd, \"=\", 1);\n\t\t\t\twrite_arg(fd, p + len + 1);\n\t\t\t}\n\t\t} else\n\t\t\twrite_arg(fd, p);\n\t}", "parent": 581, "children": [688, 692, 699], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 186, "column": 2}}, {"id": 688, "type": "assignment_expression", "text": "i = 1", "parent": 687, "children": [689, 690, 691], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 11}}, {"id": 689, "type": "identifier", "text": "i", "parent": 688, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 7}}, {"id": 690, "type": "=", "text": "=", "parent": 688, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 9}}, {"id": 691, "type": "number_literal", "text": "1", "parent": 688, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 11}}, {"id": 692, "type": "binary_expression", "text": "i < argc - file_arg_cnt", "parent": 687, "children": [693, 694, 695], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 36}}, {"id": 693, "type": "identifier", "text": "i", "parent": 692, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 14}}, {"id": 694, "type": "<", "text": "<", "parent": 692, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 16}}, {"id": 695, "type": "binary_expression", "text": "argc - file_arg_cnt", "parent": 692, "children": [696, 697, 698], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 36}}, {"id": 696, "type": "identifier", "text": "argc", "parent": 695, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 21}}, {"id": 697, "type": "-", "text": "-", "parent": 695, "children": [], "start_point": {"row": 162, "column": 22}, "end_point": {"row": 162, "column": 23}}, {"id": 698, "type": "identifier", "text": "file_arg_cnt", "parent": 695, "children": [], "start_point": {"row": 162, "column": 24}, "end_point": {"row": 162, "column": 36}}, {"id": 699, "type": "update_expression", "text": "i++", "parent": 687, "children": [700, 701], "start_point": {"row": 162, "column": 38}, "end_point": {"row": 162, "column": 41}}, {"id": 700, "type": "identifier", "text": "i", "parent": 699, "children": [], "start_point": {"row": 162, "column": 38}, "end_point": {"row": 162, "column": 39}}, {"id": 701, "type": "++", "text": "++", "parent": 699, "children": [], "start_point": {"row": 162, "column": 39}, "end_point": {"row": 162, "column": 41}}, {"id": 702, "type": "assignment_expression", "text": "p = argv[i]", "parent": 687, "children": [703, 704, 705], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 13}}, {"id": 703, "type": "identifier", "text": "p", "parent": 702, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 3}}, {"id": 704, "type": "=", "text": "=", "parent": 702, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 5}}, {"id": 705, "type": "subscript_expression", "text": "argv[i]", "parent": 702, "children": [706, 707], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 13}}, {"id": 706, "type": "identifier", "text": "argv", "parent": 705, "children": [], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 10}}, {"id": 707, "type": "identifier", "text": "i", "parent": 705, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 12}}, {"id": 708, "type": "if_statement", "text": "if (strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0) {\n\t\t\tif (strchr(p, '=') == NULL)\n\t\t\t\ti++;\n\t\t\tcontinue;\n\t\t}", "parent": 687, "children": [709], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 171, "column": 3}}, {"id": 709, "type": "parenthesized_expression", "text": "(strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0)", "parent": 708, "children": [710], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 167, "column": 41}}, {"id": 710, "type": "binary_expression", "text": "strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0", "parent": 709, "children": [711, 742, 743], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 167, "column": 40}}, {"id": 711, "type": "binary_expression", "text": "strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0", "parent": 710, "children": [712, 732, 733], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 166, "column": 40}}, {"id": 712, "type": "binary_expression", "text": "strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0", "parent": 711, "children": [713, 722, 723], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 165, "column": 39}}, {"id": 713, "type": "binary_expression", "text": "strncmp(p, \"--files-from\", 12) == 0", "parent": 712, "children": [714, 720, 721], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 41}}, {"id": 714, "type": "call_expression", "text": "strncmp(p, \"--files-from\", 12)", "parent": 713, "children": [715, 716], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 36}}, {"id": 715, "type": "identifier", "text": "strncmp", "parent": 714, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 13}}, {"id": 716, "type": "argument_list", "text": "(p, \"--files-from\", 12)", "parent": 714, "children": [717, 718, 719], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 36}}, {"id": 717, "type": "identifier", "text": "p", "parent": 716, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 15}}, {"id": 718, "type": "string_literal", "text": "\"--files-from\"", "parent": 716, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 31}}, {"id": 719, "type": "number_literal", "text": "12", "parent": 716, "children": [], "start_point": {"row": 164, "column": 33}, "end_point": {"row": 164, "column": 35}}, {"id": 720, "type": "==", "text": "==", "parent": 713, "children": [], "start_point": {"row": 164, "column": 37}, "end_point": {"row": 164, "column": 39}}, {"id": 721, "type": "number_literal", "text": "0", "parent": 713, "children": [], "start_point": {"row": 164, "column": 40}, "end_point": {"row": 164, "column": 41}}, {"id": 722, "type": "||", "text": "||", "parent": 712, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 8}}, {"id": 723, "type": "binary_expression", "text": "strncmp(p, \"--filter\", 8) == 0", "parent": 712, "children": [724, 730, 731], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 39}}, {"id": 724, "type": "call_expression", "text": "strncmp(p, \"--filter\", 8)", "parent": 723, "children": [725, 726], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 34}}, {"id": 725, "type": "identifier", "text": "strncmp", "parent": 724, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 16}}, {"id": 726, "type": "argument_list", "text": "(p, \"--filter\", 8)", "parent": 724, "children": [727, 728, 729], "start_point": {"row": 165, "column": 16}, "end_point": {"row": 165, "column": 34}}, {"id": 727, "type": "identifier", "text": "p", "parent": 726, "children": [], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 18}}, {"id": 728, "type": "string_literal", "text": "\"--filter\"", "parent": 726, "children": [], "start_point": {"row": 165, "column": 20}, "end_point": {"row": 165, "column": 30}}, {"id": 729, "type": "number_literal", "text": "8", "parent": 726, "children": [], "start_point": {"row": 165, "column": 32}, "end_point": {"row": 165, "column": 33}}, {"id": 730, "type": "==", "text": "==", "parent": 723, "children": [], "start_point": {"row": 165, "column": 35}, "end_point": {"row": 165, "column": 37}}, {"id": 731, "type": "number_literal", "text": "0", "parent": 723, "children": [], "start_point": {"row": 165, "column": 38}, "end_point": {"row": 165, "column": 39}}, {"id": 732, "type": "||", "text": "||", "parent": 711, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 8}}, {"id": 733, "type": "binary_expression", "text": "strncmp(p, \"--include\", 9) == 0", "parent": 711, "children": [734, 740, 741], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 40}}, {"id": 734, "type": "call_expression", "text": "strncmp(p, \"--include\", 9)", "parent": 733, "children": [735, 736], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 35}}, {"id": 735, "type": "identifier", "text": "strncmp", "parent": 734, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 16}}, {"id": 736, "type": "argument_list", "text": "(p, \"--include\", 9)", "parent": 734, "children": [737, 738, 739], "start_point": {"row": 166, "column": 16}, "end_point": {"row": 166, "column": 35}}, {"id": 737, "type": "identifier", "text": "p", "parent": 736, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 18}}, {"id": 738, "type": "string_literal", "text": "\"--include\"", "parent": 736, "children": [], "start_point": {"row": 166, "column": 20}, "end_point": {"row": 166, "column": 31}}, {"id": 739, "type": "number_literal", "text": "9", "parent": 736, "children": [], "start_point": {"row": 166, "column": 33}, "end_point": {"row": 166, "column": 34}}, {"id": 740, "type": "==", "text": "==", "parent": 733, "children": [], "start_point": {"row": 166, "column": 36}, "end_point": {"row": 166, "column": 38}}, {"id": 741, "type": "number_literal", "text": "0", "parent": 733, "children": [], "start_point": {"row": 166, "column": 39}, "end_point": {"row": 166, "column": 40}}, {"id": 742, "type": "||", "text": "||", "parent": 710, "children": [], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 8}}, {"id": 743, "type": "binary_expression", "text": "strncmp(p, \"--exclude\", 9) == 0", "parent": 710, "children": [744, 750, 751], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 40}}, {"id": 744, "type": "call_expression", "text": "strncmp(p, \"--exclude\", 9)", "parent": 743, "children": [745, 746], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 35}}, {"id": 745, "type": "identifier", "text": "strncmp", "parent": 744, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 16}}, {"id": 746, "type": "argument_list", "text": "(p, \"--exclude\", 9)", "parent": 744, "children": [747, 748, 749], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 35}}, {"id": 747, "type": "identifier", "text": "p", "parent": 746, "children": [], "start_point": {"row": 167, "column": 17}, "end_point": {"row": 167, "column": 18}}, {"id": 748, "type": "string_literal", "text": "\"--exclude\"", "parent": 746, "children": [], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 31}}, {"id": 749, "type": "number_literal", "text": "9", "parent": 746, "children": [], "start_point": {"row": 167, "column": 33}, "end_point": {"row": 167, "column": 34}}, {"id": 750, "type": "==", "text": "==", "parent": 743, "children": [], "start_point": {"row": 167, "column": 36}, "end_point": {"row": 167, "column": 38}}, {"id": 751, "type": "number_literal", "text": "0", "parent": 743, "children": [], "start_point": {"row": 167, "column": 39}, "end_point": {"row": 167, "column": 40}}, {"id": 752, "type": "if_statement", "text": "if (strchr(p, '=') == NULL)\n\t\t\t\ti++;", "parent": 708, "children": [753], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 169, "column": 8}}, {"id": 753, "type": "parenthesized_expression", "text": "(strchr(p, '=') == NULL)", "parent": 752, "children": [754], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 30}}, {"id": 754, "type": "binary_expression", "text": "strchr(p, '=') == NULL", "parent": 753, "children": [755, 763, 764], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 29}}, {"id": 755, "type": "call_expression", "text": "strchr(p, '=')", "parent": 754, "children": [756, 757], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 21}}, {"id": 756, "type": "identifier", "text": "strchr", "parent": 755, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 13}}, {"id": 757, "type": "argument_list", "text": "(p, '=')", "parent": 755, "children": [758, 759], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 21}}, {"id": 758, "type": "identifier", "text": "p", "parent": 757, "children": [], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 15}}, {"id": 759, "type": "char_literal", "text": "'='", "parent": 757, "children": [760, 761, 762], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 20}}, {"id": 760, "type": "'", "text": "'", "parent": 759, "children": [], "start_point": {"row": 168, "column": 17}, "end_point": {"row": 168, "column": 18}}, {"id": 761, "type": "character", "text": "=", "parent": 759, "children": [], "start_point": {"row": 168, "column": 18}, "end_point": {"row": 168, "column": 19}}, {"id": 762, "type": "'", "text": "'", "parent": 759, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 20}}, {"id": 763, "type": "==", "text": "==", "parent": 754, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 24}}, {"id": 764, "type": "null", "text": "NULL", "parent": 754, "children": [765], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 29}}, {"id": 765, "type": "NULL", "text": "NULL", "parent": 764, "children": [], "start_point": {"row": 168, "column": 25}, "end_point": {"row": 168, "column": 29}}, {"id": 766, "type": "update_expression", "text": "i++", "parent": 752, "children": [767, 768], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 7}}, {"id": 767, "type": "identifier", "text": "i", "parent": 766, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 5}}, {"id": 768, "type": "++", "text": "++", "parent": 766, "children": [], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 7}}, {"id": 769, "type": "continue_statement", "text": "continue;", "parent": 708, "children": [770], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 12}}, {"id": 770, "type": "continue", "text": "continue", "parent": 769, "children": [], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 11}}, {"id": 771, "type": "if_statement", "text": "if (strcmp(p, \"-f\") == 0) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}", "parent": 687, "children": [772], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 175, "column": 3}}, {"id": 772, "type": "parenthesized_expression", "text": "(strcmp(p, \"-f\") == 0)", "parent": 771, "children": [773], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 27}}, {"id": 773, "type": "binary_expression", "text": "strcmp(p, \"-f\") == 0", "parent": 772, "children": [774, 779, 780], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 26}}, {"id": 774, "type": "call_expression", "text": "strcmp(p, \"-f\")", "parent": 773, "children": [775, 776], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 21}}, {"id": 775, "type": "identifier", "text": "strcmp", "parent": 774, "children": [], "start_point": {"row": 172, "column": 6}, "end_point": {"row": 172, "column": 12}}, {"id": 776, "type": "argument_list", "text": "(p, \"-f\")", "parent": 774, "children": [777, 778], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 21}}, {"id": 777, "type": "identifier", "text": "p", "parent": 776, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 14}}, {"id": 778, "type": "string_literal", "text": "\"-f\"", "parent": 776, "children": [], "start_point": {"row": 172, "column": 16}, "end_point": {"row": 172, "column": 20}}, {"id": 779, "type": "==", "text": "==", "parent": 773, "children": [], "start_point": {"row": 172, "column": 22}, "end_point": {"row": 172, "column": 24}}, {"id": 780, "type": "number_literal", "text": "0", "parent": 773, "children": [], "start_point": {"row": 172, "column": 25}, "end_point": {"row": 172, "column": 26}}, {"id": 781, "type": "update_expression", "text": "i++", "parent": 771, "children": [782, 783], "start_point": {"row": 173, "column": 3}, "end_point": {"row": 173, "column": 6}}, {"id": 782, "type": "identifier", "text": "i", "parent": 781, "children": [], "start_point": {"row": 173, "column": 3}, "end_point": {"row": 173, "column": 4}}, {"id": 783, "type": "++", "text": "++", "parent": 781, "children": [], "start_point": {"row": 173, "column": 4}, "end_point": {"row": 173, "column": 6}}, {"id": 784, "type": "continue_statement", "text": "continue;", "parent": 771, "children": [785], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 12}}, {"id": 785, "type": "continue", "text": "continue", "parent": 784, "children": [], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 11}}, {"id": 786, "type": "call_expression", "text": "write(fd, \" \", 1)", "parent": 687, "children": [787, 788], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 19}}, {"id": 787, "type": "identifier", "text": "write", "parent": 786, "children": [], "start_point": {"row": 176, "column": 2}, "end_point": {"row": 176, "column": 7}}, {"id": 788, "type": "argument_list", "text": "(fd, \" \", 1)", "parent": 786, "children": [789, 790, 791], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 19}}, {"id": 789, "type": "identifier", "text": "fd", "parent": 788, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 10}}, {"id": 790, "type": "string_literal", "text": "\" \"", "parent": 788, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 15}}, {"id": 791, "type": "number_literal", "text": "1", "parent": 788, "children": [], "start_point": {"row": 176, "column": 17}, "end_point": {"row": 176, "column": 18}}, {"id": 792, "type": "if_statement", "text": "if (strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0) {\n\t\t\twrite(fd, \"--read-batch\", 12);\n\t\t\tif (p[len] == '=') {\n\t\t\t\twrite(fd, \"=\", 1);\n\t\t\t\twrite_arg(fd, p + len + 1);\n\t\t\t}\n\t\t} else\n\t\t\twrite_arg(fd, p);", "parent": 687, "children": [793, 854], "start_point": {"row": 177, "column": 2}, "end_point": {"row": 185, "column": 20}}, {"id": 793, "type": "parenthesized_expression", "text": "(strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0)", "parent": 792, "children": [794], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 178, "column": 54}}, {"id": 794, "type": "binary_expression", "text": "strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0", "parent": 793, "children": [795, 807, 808], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 178, "column": 53}}, {"id": 795, "type": "binary_expression", "text": "strncmp(p, \"--write-batch\", len = 13) == 0", "parent": 794, "children": [796, 805, 806], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 48}}, {"id": 796, "type": "call_expression", "text": "strncmp(p, \"--write-batch\", len = 13)", "parent": 795, "children": [797, 798], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 43}}, {"id": 797, "type": "identifier", "text": "strncmp", "parent": 796, "children": [], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 13}}, {"id": 798, "type": "argument_list", "text": "(p, \"--write-batch\", len = 13)", "parent": 796, "children": [799, 800, 801], "start_point": {"row": 177, "column": 13}, "end_point": {"row": 177, "column": 43}}, {"id": 799, "type": "identifier", "text": "p", "parent": 798, "children": [], "start_point": {"row": 177, "column": 14}, "end_point": {"row": 177, "column": 15}}, {"id": 800, "type": "string_literal", "text": "\"--write-batch\"", "parent": 798, "children": [], "start_point": {"row": 177, "column": 17}, "end_point": {"row": 177, "column": 32}}, {"id": 801, "type": "assignment_expression", "text": "len = 13", "parent": 798, "children": [802, 803, 804], "start_point": {"row": 177, "column": 34}, "end_point": {"row": 177, "column": 42}}, {"id": 802, "type": "identifier", "text": "len", "parent": 801, "children": [], "start_point": {"row": 177, "column": 34}, "end_point": {"row": 177, "column": 37}}, {"id": 803, "type": "=", "text": "=", "parent": 801, "children": [], "start_point": {"row": 177, "column": 38}, "end_point": {"row": 177, "column": 39}}, {"id": 804, "type": "number_literal", "text": "13", "parent": 801, "children": [], "start_point": {"row": 177, "column": 40}, "end_point": {"row": 177, "column": 42}}, {"id": 805, "type": "==", "text": "==", "parent": 795, "children": [], "start_point": {"row": 177, "column": 44}, "end_point": {"row": 177, "column": 46}}, {"id": 806, "type": "number_literal", "text": "0", "parent": 795, "children": [], "start_point": {"row": 177, "column": 47}, "end_point": {"row": 177, "column": 48}}, {"id": 807, "type": "||", "text": "||", "parent": 794, "children": [], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 5}}, {"id": 808, "type": "binary_expression", "text": "strncmp(p, \"--only-write-batch\", len = 18) == 0", "parent": 794, "children": [809, 818, 819], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 53}}, {"id": 809, "type": "call_expression", "text": "strncmp(p, \"--only-write-batch\", len = 18)", "parent": 808, "children": [810, 811], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 48}}, {"id": 810, "type": "identifier", "text": "strncmp", "parent": 809, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 13}}, {"id": 811, "type": "argument_list", "text": "(p, \"--only-write-batch\", len = 18)", "parent": 809, "children": [812, 813, 814], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 48}}, {"id": 812, "type": "identifier", "text": "p", "parent": 811, "children": [], "start_point": {"row": 178, "column": 14}, "end_point": {"row": 178, "column": 15}}, {"id": 813, "type": "string_literal", "text": "\"--only-write-batch\"", "parent": 811, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 37}}, {"id": 814, "type": "assignment_expression", "text": "len = 18", "parent": 811, "children": [815, 816, 817], "start_point": {"row": 178, "column": 39}, "end_point": {"row": 178, "column": 47}}, {"id": 815, "type": "identifier", "text": "len", "parent": 814, "children": [], "start_point": {"row": 178, "column": 39}, "end_point": {"row": 178, "column": 42}}, {"id": 816, "type": "=", "text": "=", "parent": 814, "children": [], "start_point": {"row": 178, "column": 43}, "end_point": {"row": 178, "column": 44}}, {"id": 817, "type": "number_literal", "text": "18", "parent": 814, "children": [], "start_point": {"row": 178, "column": 45}, "end_point": {"row": 178, "column": 47}}, {"id": 818, "type": "==", "text": "==", "parent": 808, "children": [], "start_point": {"row": 178, "column": 49}, "end_point": {"row": 178, "column": 51}}, {"id": 819, "type": "number_literal", "text": "0", "parent": 808, "children": [], "start_point": {"row": 178, "column": 52}, "end_point": {"row": 178, "column": 53}}, {"id": 820, "type": "call_expression", "text": "write(fd, \"--read-batch\", 12)", "parent": 792, "children": [821, 822], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 32}}, {"id": 821, "type": "identifier", "text": "write", "parent": 820, "children": [], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 8}}, {"id": 822, "type": "argument_list", "text": "(fd, \"--read-batch\", 12)", "parent": 820, "children": [823, 824, 825], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 32}}, {"id": 823, "type": "identifier", "text": "fd", "parent": 822, "children": [], "start_point": {"row": 179, "column": 9}, "end_point": {"row": 179, "column": 11}}, {"id": 824, "type": "string_literal", "text": "\"--read-batch\"", "parent": 822, "children": [], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 27}}, {"id": 825, "type": "number_literal", "text": "12", "parent": 822, "children": [], "start_point": {"row": 179, "column": 29}, "end_point": {"row": 179, "column": 31}}, {"id": 826, "type": "if_statement", "text": "if (p[len] == '=') {\n\t\t\t\twrite(fd, \"=\", 1);\n\t\t\t\twrite_arg(fd, p + len + 1);\n\t\t\t}", "parent": 792, "children": [827], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 183, "column": 4}}, {"id": 827, "type": "parenthesized_expression", "text": "(p[len] == '=')", "parent": 826, "children": [828], "start_point": {"row": 180, "column": 6}, "end_point": {"row": 180, "column": 21}}, {"id": 828, "type": "binary_expression", "text": "p[len] == '='", "parent": 827, "children": [829, 832, 833], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 20}}, {"id": 829, "type": "subscript_expression", "text": "p[len]", "parent": 828, "children": [830, 831], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 13}}, {"id": 830, "type": "identifier", "text": "p", "parent": 829, "children": [], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 8}}, {"id": 831, "type": "identifier", "text": "len", "parent": 829, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 12}}, {"id": 832, "type": "==", "text": "==", "parent": 828, "children": [], "start_point": {"row": 180, "column": 14}, "end_point": {"row": 180, "column": 16}}, {"id": 833, "type": "char_literal", "text": "'='", "parent": 828, "children": [834, 835, 836], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 20}}, {"id": 834, "type": "'", "text": "'", "parent": 833, "children": [], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 18}}, {"id": 835, "type": "character", "text": "=", "parent": 833, "children": [], "start_point": {"row": 180, "column": 18}, "end_point": {"row": 180, "column": 19}}, {"id": 836, "type": "'", "text": "'", "parent": 833, "children": [], "start_point": {"row": 180, "column": 19}, "end_point": {"row": 180, "column": 20}}, {"id": 837, "type": "call_expression", "text": "write(fd, \"=\", 1)", "parent": 826, "children": [838, 839], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 21}}, {"id": 838, "type": "identifier", "text": "write", "parent": 837, "children": [], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 181, "column": 9}}, {"id": 839, "type": "argument_list", "text": "(fd, \"=\", 1)", "parent": 837, "children": [840, 841, 842], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 21}}, {"id": 840, "type": "identifier", "text": "fd", "parent": 839, "children": [], "start_point": {"row": 181, "column": 10}, "end_point": {"row": 181, "column": 12}}, {"id": 841, "type": "string_literal", "text": "\"=\"", "parent": 839, "children": [], "start_point": {"row": 181, "column": 14}, "end_point": {"row": 181, "column": 17}}, {"id": 842, "type": "number_literal", "text": "1", "parent": 839, "children": [], "start_point": {"row": 181, "column": 19}, "end_point": {"row": 181, "column": 20}}, {"id": 843, "type": "call_expression", "text": "write_arg(fd, p + len + 1)", "parent": 826, "children": [844, 845], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 30}}, {"id": 844, "type": "identifier", "text": "write_arg", "parent": 843, "children": [], "start_point": {"row": 182, "column": 4}, "end_point": {"row": 182, "column": 13}}, {"id": 845, "type": "argument_list", "text": "(fd, p + len + 1)", "parent": 843, "children": [846, 847], "start_point": {"row": 182, "column": 13}, "end_point": {"row": 182, "column": 30}}, {"id": 846, "type": "identifier", "text": "fd", "parent": 845, "children": [], "start_point": {"row": 182, "column": 14}, "end_point": {"row": 182, "column": 16}}, {"id": 847, "type": "binary_expression", "text": "p + len + 1", "parent": 845, "children": [848, 852, 853], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 29}}, {"id": 848, "type": "binary_expression", "text": "p + len", "parent": 847, "children": [849, 850, 851], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 25}}, {"id": 849, "type": "identifier", "text": "p", "parent": 848, "children": [], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 19}}, {"id": 850, "type": "+", "text": "+", "parent": 848, "children": [], "start_point": {"row": 182, "column": 20}, "end_point": {"row": 182, "column": 21}}, {"id": 851, "type": "identifier", "text": "len", "parent": 848, "children": [], "start_point": {"row": 182, "column": 22}, "end_point": {"row": 182, "column": 25}}, {"id": 852, "type": "+", "text": "+", "parent": 847, "children": [], "start_point": {"row": 182, "column": 26}, "end_point": {"row": 182, "column": 27}}, {"id": 853, "type": "number_literal", "text": "1", "parent": 847, "children": [], "start_point": {"row": 182, "column": 28}, "end_point": {"row": 182, "column": 29}}, {"id": 854, "type": "else_clause", "text": "else\n\t\t\twrite_arg(fd, p);", "parent": 792, "children": [], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 185, "column": 20}}, {"id": 855, "type": "call_expression", "text": "write_arg(fd, p)", "parent": 854, "children": [856, 857], "start_point": {"row": 185, "column": 3}, "end_point": {"row": 185, "column": 19}}, {"id": 856, "type": "identifier", "text": "write_arg", "parent": 855, "children": [], "start_point": {"row": 185, "column": 3}, "end_point": {"row": 185, "column": 12}}, {"id": 857, "type": "argument_list", "text": "(fd, p)", "parent": 855, "children": [858, 859], "start_point": {"row": 185, "column": 12}, "end_point": {"row": 185, "column": 19}}, {"id": 858, "type": "identifier", "text": "fd", "parent": 857, "children": [], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 15}}, {"id": 859, "type": "identifier", "text": "p", "parent": 857, "children": [], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 18}}, {"id": 860, "type": "if_statement", "text": "if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n\t\tp = argv[argc - 1];", "parent": 581, "children": [861], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 188, "column": 21}}, {"id": 861, "type": "parenthesized_expression", "text": "(!(p = check_for_hostspec(argv[argc - 1], &p, &i)))", "parent": 860, "children": [862], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 55}}, {"id": 862, "type": "unary_expression", "text": "!(p = check_for_hostspec(argv[argc - 1], &p, &i))", "parent": 861, "children": [863, 864], "start_point": {"row": 187, "column": 5}, "end_point": {"row": 187, "column": 54}}, {"id": 863, "type": "!", "text": "!", "parent": 862, "children": [], "start_point": {"row": 187, "column": 5}, "end_point": {"row": 187, "column": 6}}, {"id": 864, "type": "parenthesized_expression", "text": "(p = check_for_hostspec(argv[argc - 1], &p, &i))", "parent": 862, "children": [865], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 187, "column": 54}}, {"id": 865, "type": "assignment_expression", "text": "p = check_for_hostspec(argv[argc - 1], &p, &i)", "parent": 864, "children": [866, 867, 868], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 53}}, {"id": 866, "type": "identifier", "text": "p", "parent": 865, "children": [], "start_point": {"row": 187, "column": 7}, "end_point": {"row": 187, "column": 8}}, {"id": 867, "type": "=", "text": "=", "parent": 865, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 868, "type": "call_expression", "text": "check_for_hostspec(argv[argc - 1], &p, &i)", "parent": 865, "children": [869, 870], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 53}}, {"id": 869, "type": "identifier", "text": "check_for_hostspec", "parent": 868, "children": [], "start_point": {"row": 187, "column": 11}, "end_point": {"row": 187, "column": 29}}, {"id": 870, "type": "argument_list", "text": "(argv[argc - 1], &p, &i)", "parent": 868, "children": [871, 877, 879], "start_point": {"row": 187, "column": 29}, "end_point": {"row": 187, "column": 53}}, {"id": 871, "type": "subscript_expression", "text": "argv[argc - 1]", "parent": 870, "children": [872, 873], "start_point": {"row": 187, "column": 30}, "end_point": {"row": 187, "column": 44}}, {"id": 872, "type": "identifier", "text": "argv", "parent": 871, "children": [], "start_point": {"row": 187, "column": 30}, "end_point": {"row": 187, "column": 34}}, {"id": 873, "type": "binary_expression", "text": "argc - 1", "parent": 871, "children": [874, 875, 876], "start_point": {"row": 187, "column": 35}, "end_point": {"row": 187, "column": 43}}, {"id": 874, "type": "identifier", "text": "argc", "parent": 873, "children": [], "start_point": {"row": 187, "column": 35}, "end_point": {"row": 187, "column": 39}}, {"id": 875, "type": "-", "text": "-", "parent": 873, "children": [], "start_point": {"row": 187, "column": 40}, "end_point": {"row": 187, "column": 41}}, {"id": 876, "type": "number_literal", "text": "1", "parent": 873, "children": [], "start_point": {"row": 187, "column": 42}, "end_point": {"row": 187, "column": 43}}, {"id": 877, "type": "pointer_expression", "text": "&p", "parent": 870, "children": [878], "start_point": {"row": 187, "column": 46}, "end_point": {"row": 187, "column": 48}}, {"id": 878, "type": "identifier", "text": "p", "parent": 877, "children": [], "start_point": {"row": 187, "column": 47}, "end_point": {"row": 187, "column": 48}}, {"id": 879, "type": "pointer_expression", "text": "&i", "parent": 870, "children": [880], "start_point": {"row": 187, "column": 50}, "end_point": {"row": 187, "column": 52}}, {"id": 880, "type": "identifier", "text": "i", "parent": 879, "children": [], "start_point": {"row": 187, "column": 51}, "end_point": {"row": 187, "column": 52}}, {"id": 881, "type": "assignment_expression", "text": "p = argv[argc - 1]", "parent": 860, "children": [882, 883, 884], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 20}}, {"id": 882, "type": "identifier", "text": "p", "parent": 881, "children": [], "start_point": {"row": 188, "column": 2}, "end_point": {"row": 188, "column": 3}}, {"id": 883, "type": "=", "text": "=", "parent": 881, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 5}}, {"id": 884, "type": "subscript_expression", "text": "argv[argc - 1]", "parent": 881, "children": [885, 886], "start_point": {"row": 188, "column": 6}, "end_point": {"row": 188, "column": 20}}, {"id": 885, "type": "identifier", "text": "argv", "parent": 884, "children": [], "start_point": {"row": 188, "column": 6}, "end_point": {"row": 188, "column": 10}}, {"id": 886, "type": "binary_expression", "text": "argc - 1", "parent": 884, "children": [887, 888, 889], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 19}}, {"id": 887, "type": "identifier", "text": "argc", "parent": 886, "children": [], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 15}}, {"id": 888, "type": "-", "text": "-", "parent": 886, "children": [], "start_point": {"row": 188, "column": 16}, "end_point": {"row": 188, "column": 17}}, {"id": 889, "type": "number_literal", "text": "1", "parent": 886, "children": [], "start_point": {"row": 188, "column": 18}, "end_point": {"row": 188, "column": 19}}, {"id": 890, "type": "call_expression", "text": "write(fd, \" ${1:-\", 6)", "parent": 581, "children": [891, 892], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 23}}, {"id": 891, "type": "identifier", "text": "write", "parent": 890, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 6}}, {"id": 892, "type": "argument_list", "text": "(fd, \" ${1:-\", 6)", "parent": 890, "children": [893, 894, 895], "start_point": {"row": 189, "column": 6}, "end_point": {"row": 189, "column": 23}}, {"id": 893, "type": "identifier", "text": "fd", "parent": 892, "children": [], "start_point": {"row": 189, "column": 7}, "end_point": {"row": 189, "column": 9}}, {"id": 894, "type": "string_literal", "text": "\" ${1:-\"", "parent": 892, "children": [], "start_point": {"row": 189, "column": 11}, "end_point": {"row": 189, "column": 19}}, {"id": 895, "type": "number_literal", "text": "6", "parent": 892, "children": [], "start_point": {"row": 189, "column": 21}, "end_point": {"row": 189, "column": 22}}, {"id": 896, "type": "call_expression", "text": "write_arg(fd, p)", "parent": 581, "children": [897, 898], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 17}}, {"id": 897, "type": "identifier", "text": "write_arg", "parent": 896, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 10}}, {"id": 898, "type": "argument_list", "text": "(fd, p)", "parent": 896, "children": [899, 900], "start_point": {"row": 190, "column": 10}, "end_point": {"row": 190, "column": 17}}, {"id": 899, "type": "identifier", "text": "fd", "parent": 898, "children": [], "start_point": {"row": 190, "column": 11}, "end_point": {"row": 190, "column": 13}}, {"id": 900, "type": "identifier", "text": "p", "parent": 898, "children": [], "start_point": {"row": 190, "column": 15}, "end_point": {"row": 190, "column": 16}}, {"id": 901, "type": "call_expression", "text": "write_byte(fd, '}')", "parent": 581, "children": [902, 903], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 20}}, {"id": 902, "type": "identifier", "text": "write_byte", "parent": 901, "children": [], "start_point": {"row": 191, "column": 1}, "end_point": {"row": 191, "column": 11}}, {"id": 903, "type": "argument_list", "text": "(fd, '}')", "parent": 901, "children": [904, 905], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 20}}, {"id": 904, "type": "identifier", "text": "fd", "parent": 903, "children": [], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 14}}, {"id": 905, "type": "char_literal", "text": "'}'", "parent": 903, "children": [906, 907], "start_point": {"row": 191, "column": 16}, "end_point": {"row": 191, "column": 19}}, {"id": 906, "type": "'", "text": "'", "parent": 905, "children": [], "start_point": {"row": 191, "column": 16}, "end_point": {"row": 191, "column": 17}}, {"id": 907, "type": "'", "text": "'", "parent": 905, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 19}}, {"id": 908, "type": "if_statement", "text": "if (filter_list.head)\n\t\twrite_filter_rules(fd);", "parent": 581, "children": [909], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 193, "column": 25}}, {"id": 909, "type": "parenthesized_expression", "text": "(filter_list.head)", "parent": 908, "children": [910], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 22}}, {"id": 910, "type": "field_expression", "text": "filter_list.head", "parent": 909, "children": [911, 912], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 21}}, {"id": 911, "type": "identifier", "text": "filter_list", "parent": 910, "children": [], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 16}}, {"id": 912, "type": "field_identifier", "text": "head", "parent": 910, "children": [], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 21}}, {"id": 913, "type": "call_expression", "text": "write_filter_rules(fd)", "parent": 908, "children": [914, 915], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 24}}, {"id": 914, "type": "identifier", "text": "write_filter_rules", "parent": 913, "children": [], "start_point": {"row": 193, "column": 2}, "end_point": {"row": 193, "column": 20}}, {"id": 915, "type": "argument_list", "text": "(fd)", "parent": 913, "children": [916], "start_point": {"row": 193, "column": 20}, "end_point": {"row": 193, "column": 24}}, {"id": 916, "type": "identifier", "text": "fd", "parent": 915, "children": [], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 23}}, {"id": 917, "type": "if_statement", "text": "if (write(fd, \"\\n\", 1) != 1 || close(fd) < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s write error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}", "parent": 581, "children": [918], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 198, "column": 2}}, {"id": 918, "type": "parenthesized_expression", "text": "(write(fd, \"\\n\", 1) != 1 || close(fd) < 0)", "parent": 917, "children": [919], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 46}}, {"id": 919, "type": "binary_expression", "text": "write(fd, \"\\n\", 1) != 1 || close(fd) < 0", "parent": 918, "children": [920, 930, 931], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 45}}, {"id": 920, "type": "binary_expression", "text": "write(fd, \"\\n\", 1) != 1", "parent": 919, "children": [921, 928, 929], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 28}}, {"id": 921, "type": "call_expression", "text": "write(fd, \"\\n\", 1)", "parent": 920, "children": [922, 923], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 23}}, {"id": 922, "type": "identifier", "text": "write", "parent": 921, "children": [], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 10}}, {"id": 923, "type": "argument_list", "text": "(fd, \"\\n\", 1)", "parent": 921, "children": [924, 925, 927], "start_point": {"row": 194, "column": 10}, "end_point": {"row": 194, "column": 23}}, {"id": 924, "type": "identifier", "text": "fd", "parent": 923, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 13}}, {"id": 925, "type": "string_literal", "text": "\"\\n\"", "parent": 923, "children": [926], "start_point": {"row": 194, "column": 15}, "end_point": {"row": 194, "column": 19}}, {"id": 926, "type": "escape_sequence", "text": "\\n", "parent": 925, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 18}}, {"id": 927, "type": "number_literal", "text": "1", "parent": 923, "children": [], "start_point": {"row": 194, "column": 21}, "end_point": {"row": 194, "column": 22}}, {"id": 928, "type": "!=", "text": "!=", "parent": 920, "children": [], "start_point": {"row": 194, "column": 24}, "end_point": {"row": 194, "column": 26}}, {"id": 929, "type": "number_literal", "text": "1", "parent": 920, "children": [], "start_point": {"row": 194, "column": 27}, "end_point": {"row": 194, "column": 28}}, {"id": 930, "type": "||", "text": "||", "parent": 919, "children": [], "start_point": {"row": 194, "column": 29}, "end_point": {"row": 194, "column": 31}}, {"id": 931, "type": "binary_expression", "text": "close(fd) < 0", "parent": 919, "children": [932, 936, 937], "start_point": {"row": 194, "column": 32}, "end_point": {"row": 194, "column": 45}}, {"id": 932, "type": "call_expression", "text": "close(fd)", "parent": 931, "children": [933, 934], "start_point": {"row": 194, "column": 32}, "end_point": {"row": 194, "column": 41}}, {"id": 933, "type": "identifier", "text": "close", "parent": 932, "children": [], "start_point": {"row": 194, "column": 32}, "end_point": {"row": 194, "column": 37}}, {"id": 934, "type": "argument_list", "text": "(fd)", "parent": 932, "children": [935], "start_point": {"row": 194, "column": 37}, "end_point": {"row": 194, "column": 41}}, {"id": 935, "type": "identifier", "text": "fd", "parent": 934, "children": [], "start_point": {"row": 194, "column": 38}, "end_point": {"row": 194, "column": 40}}, {"id": 936, "type": "<", "text": "<", "parent": 931, "children": [], "start_point": {"row": 194, "column": 42}, "end_point": {"row": 194, "column": 43}}, {"id": 937, "type": "number_literal", "text": "0", "parent": 931, "children": [], "start_point": {"row": 194, "column": 44}, "end_point": {"row": 194, "column": 45}}, {"id": 938, "type": "call_expression", "text": "rsyserr(FERROR, errno, \"Batch file %s write error\",\n\t\t\tsafe_fname(filename))", "parent": 917, "children": [939, 940], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 196, "column": 24}}, {"id": 939, "type": "identifier", "text": "rsyserr", "parent": 938, "children": [], "start_point": {"row": 195, "column": 2}, "end_point": {"row": 195, "column": 9}}, {"id": 940, "type": "argument_list", "text": "(FERROR, errno, \"Batch file %s write error\",\n\t\t\tsafe_fname(filename))", "parent": 938, "children": [941, 942, 943, 944], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 196, "column": 24}}, {"id": 941, "type": "identifier", "text": "FERROR", "parent": 940, "children": [], "start_point": {"row": 195, "column": 10}, "end_point": {"row": 195, "column": 16}}, {"id": 942, "type": "identifier", "text": "errno", "parent": 940, "children": [], "start_point": {"row": 195, "column": 18}, "end_point": {"row": 195, "column": 23}}, {"id": 943, "type": "string_literal", "text": "\"Batch file %s write error\"", "parent": 940, "children": [], "start_point": {"row": 195, "column": 25}, "end_point": {"row": 195, "column": 52}}, {"id": 944, "type": "call_expression", "text": "safe_fname(filename)", "parent": 940, "children": [945, 946], "start_point": {"row": 196, "column": 3}, "end_point": {"row": 196, "column": 23}}, {"id": 945, "type": "identifier", "text": "safe_fname", "parent": 944, "children": [], "start_point": {"row": 196, "column": 3}, "end_point": {"row": 196, "column": 13}}, {"id": 946, "type": "argument_list", "text": "(filename)", "parent": 944, "children": [947], "start_point": {"row": 196, "column": 13}, "end_point": {"row": 196, "column": 23}}, {"id": 947, "type": "identifier", "text": "filename", "parent": 946, "children": [], "start_point": {"row": 196, "column": 14}, "end_point": {"row": 196, "column": 22}}, {"id": 948, "type": "call_expression", "text": "exit_cleanup(1)", "parent": 917, "children": [949, 950], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 17}}, {"id": 949, "type": "identifier", "text": "exit_cleanup", "parent": 948, "children": [], "start_point": {"row": 197, "column": 2}, "end_point": {"row": 197, "column": 14}}, {"id": 950, "type": "argument_list", "text": "(1)", "parent": 948, "children": [951], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 17}}, {"id": 951, "type": "number_literal", "text": "1", "parent": 950, "children": [], "start_point": {"row": 197, "column": 15}, "end_point": {"row": 197, "column": 16}}, {"id": 952, "type": "function_definition", "text": "void show_flist(int index, struct file_struct **fptr)\n{\n\t/* for debugging show_flist(flist->count, flist->files * */\n\n\tint i;\n\tfor (i = 0; i < index; i++) {\n\t\trprintf(FINFO, \"flist->flags=%#x\\n\", fptr[i]->flags);\n\t\trprintf(FINFO, \"flist->modtime=%#lx\\n\",\n\t\t\t(long unsigned) fptr[i]->modtime);\n\t\trprintf(FINFO, \"flist->length=%.0f\\n\",\n\t\t\t(double) fptr[i]->length);\n\t\trprintf(FINFO, \"flist->mode=%#o\\n\", (int) fptr[i]->mode);\n\t\trprintf(FINFO, \"flist->basename=%s\\n\",\n\t\t\tsafe_fname(fptr[i]->basename));\n\t\tif (fptr[i]->dirname) {\n\t\t\trprintf(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname));\n\t\t}\n\t\tif (am_sender && fptr[i]->dir.root) {\n\t\t\trprintf(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root));\n\t\t}\n\t}\n}", "parent": null, "children": [953, 954], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 224, "column": 1}}, {"id": 953, "type": "primitive_type", "text": "void", "parent": 952, "children": [], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 201, "column": 4}}, {"id": 954, "type": "function_declarator", "text": "show_flist(int index, struct file_struct **fptr)", "parent": 952, "children": [955, 956], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 53}}, {"id": 955, "type": "identifier", "text": "show_flist", "parent": 954, "children": [], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 201, "column": 15}}, {"id": 956, "type": "parameter_list", "text": "(int index, struct file_struct **fptr)", "parent": 954, "children": [957, 960], "start_point": {"row": 201, "column": 15}, "end_point": {"row": 201, "column": 53}}, {"id": 957, "type": "parameter_declaration", "text": "int index", "parent": 956, "children": [958, 959], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 25}}, {"id": 958, "type": "primitive_type", "text": "int", "parent": 957, "children": [], "start_point": {"row": 201, "column": 16}, "end_point": {"row": 201, "column": 19}}, {"id": 959, "type": "identifier", "text": "index", "parent": 957, "children": [], "start_point": {"row": 201, "column": 20}, "end_point": {"row": 201, "column": 25}}, {"id": 960, "type": "parameter_declaration", "text": "struct file_struct **fptr", "parent": 956, "children": [961, 964], "start_point": {"row": 201, "column": 27}, "end_point": {"row": 201, "column": 52}}, {"id": 961, "type": "struct_specifier", "text": "struct file_struct", "parent": 960, "children": [962, 963], "start_point": {"row": 201, "column": 27}, "end_point": {"row": 201, "column": 45}}, {"id": 962, "type": "struct", "text": "struct", "parent": 961, "children": [], "start_point": {"row": 201, "column": 27}, "end_point": {"row": 201, "column": 33}}, {"id": 963, "type": "type_identifier", "text": "file_struct", "parent": 961, "children": [], "start_point": {"row": 201, "column": 34}, "end_point": {"row": 201, "column": 45}}, {"id": 964, "type": "pointer_declarator", "text": "**fptr", "parent": 960, "children": [965, 966], "start_point": {"row": 201, "column": 46}, "end_point": {"row": 201, "column": 52}}, {"id": 965, "type": "*", "text": "*", "parent": 964, "children": [], "start_point": {"row": 201, "column": 46}, "end_point": {"row": 201, "column": 47}}, {"id": 966, "type": "pointer_declarator", "text": "*fptr", "parent": 964, "children": [967, 968], "start_point": {"row": 201, "column": 47}, "end_point": {"row": 201, "column": 52}}, {"id": 967, "type": "*", "text": "*", "parent": 966, "children": [], "start_point": {"row": 201, "column": 47}, "end_point": {"row": 201, "column": 48}}, {"id": 968, "type": "identifier", "text": "fptr", "parent": 966, "children": [], "start_point": {"row": 201, "column": 48}, "end_point": {"row": 201, "column": 52}}, {"id": 969, "type": "declaration", "text": "int i;", "parent": 952, "children": [970, 971], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 7}}, {"id": 970, "type": "primitive_type", "text": "int", "parent": 969, "children": [], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 205, "column": 4}}, {"id": 971, "type": "identifier", "text": "i", "parent": 969, "children": [], "start_point": {"row": 205, "column": 5}, "end_point": {"row": 205, "column": 6}}, {"id": 972, "type": "for_statement", "text": "for (i = 0; i < index; i++) {\n\t\trprintf(FINFO, \"flist->flags=%#x\\n\", fptr[i]->flags);\n\t\trprintf(FINFO, \"flist->modtime=%#lx\\n\",\n\t\t\t(long unsigned) fptr[i]->modtime);\n\t\trprintf(FINFO, \"flist->length=%.0f\\n\",\n\t\t\t(double) fptr[i]->length);\n\t\trprintf(FINFO, \"flist->mode=%#o\\n\", (int) fptr[i]->mode);\n\t\trprintf(FINFO, \"flist->basename=%s\\n\",\n\t\t\tsafe_fname(fptr[i]->basename));\n\t\tif (fptr[i]->dirname) {\n\t\t\trprintf(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname));\n\t\t}\n\t\tif (am_sender && fptr[i]->dir.root) {\n\t\t\trprintf(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root));\n\t\t}\n\t}", "parent": 952, "children": [973, 977, 981], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 223, "column": 2}}, {"id": 973, "type": "assignment_expression", "text": "i = 0", "parent": 972, "children": [974, 975, 976], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 11}}, {"id": 974, "type": "identifier", "text": "i", "parent": 973, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 7}}, {"id": 975, "type": "=", "text": "=", "parent": 973, "children": [], "start_point": {"row": 206, "column": 8}, "end_point": {"row": 206, "column": 9}}, {"id": 976, "type": "number_literal", "text": "0", "parent": 973, "children": [], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 11}}, {"id": 977, "type": "binary_expression", "text": "i < index", "parent": 972, "children": [978, 979, 980], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 22}}, {"id": 978, "type": "identifier", "text": "i", "parent": 977, "children": [], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 14}}, {"id": 979, "type": "<", "text": "<", "parent": 977, "children": [], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 16}}, {"id": 980, "type": "identifier", "text": "index", "parent": 977, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 22}}, {"id": 981, "type": "update_expression", "text": "i++", "parent": 972, "children": [982, 983], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 27}}, {"id": 982, "type": "identifier", "text": "i", "parent": 981, "children": [], "start_point": {"row": 206, "column": 24}, "end_point": {"row": 206, "column": 25}}, {"id": 983, "type": "++", "text": "++", "parent": 981, "children": [], "start_point": {"row": 206, "column": 25}, "end_point": {"row": 206, "column": 27}}, {"id": 984, "type": "call_expression", "text": "rprintf(FINFO, \"flist->flags=%#x\\n\", fptr[i]->flags)", "parent": 972, "children": [985, 986], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 54}}, {"id": 985, "type": "identifier", "text": "rprintf", "parent": 984, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 9}}, {"id": 986, "type": "argument_list", "text": "(FINFO, \"flist->flags=%#x\\n\", fptr[i]->flags)", "parent": 984, "children": [987, 988, 990], "start_point": {"row": 207, "column": 9}, "end_point": {"row": 207, "column": 54}}, {"id": 987, "type": "identifier", "text": "FINFO", "parent": 986, "children": [], "start_point": {"row": 207, "column": 10}, "end_point": {"row": 207, "column": 15}}, {"id": 988, "type": "string_literal", "text": "\"flist->flags=%#x\\n\"", "parent": 986, "children": [989], "start_point": {"row": 207, "column": 17}, "end_point": {"row": 207, "column": 37}}, {"id": 989, "type": "escape_sequence", "text": "\\n", "parent": 988, "children": [], "start_point": {"row": 207, "column": 34}, "end_point": {"row": 207, "column": 36}}, {"id": 990, "type": "field_expression", "text": "fptr[i]->flags", "parent": 986, "children": [991, 994], "start_point": {"row": 207, "column": 39}, "end_point": {"row": 207, "column": 53}}, {"id": 991, "type": "subscript_expression", "text": "fptr[i]", "parent": 990, "children": [992, 993], "start_point": {"row": 207, "column": 39}, "end_point": {"row": 207, "column": 46}}, {"id": 992, "type": "identifier", "text": "fptr", "parent": 991, "children": [], "start_point": {"row": 207, "column": 39}, "end_point": {"row": 207, "column": 43}}, {"id": 993, "type": "identifier", "text": "i", "parent": 991, "children": [], "start_point": {"row": 207, "column": 44}, "end_point": {"row": 207, "column": 45}}, {"id": 994, "type": "field_identifier", "text": "flags", "parent": 990, "children": [], "start_point": {"row": 207, "column": 48}, "end_point": {"row": 207, "column": 53}}, {"id": 995, "type": "call_expression", "text": "rprintf(FINFO, \"flist->modtime=%#lx\\n\",\n\t\t\t(long unsigned) fptr[i]->modtime)", "parent": 972, "children": [996, 997], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 209, "column": 36}}, {"id": 996, "type": "identifier", "text": "rprintf", "parent": 995, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 9}}, {"id": 997, "type": "argument_list", "text": "(FINFO, \"flist->modtime=%#lx\\n\",\n\t\t\t(long unsigned) fptr[i]->modtime)", "parent": 995, "children": [998, 999, 1001], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 209, "column": 36}}, {"id": 998, "type": "identifier", "text": "FINFO", "parent": 997, "children": [], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 15}}, {"id": 999, "type": "string_literal", "text": "\"flist->modtime=%#lx\\n\"", "parent": 997, "children": [1000], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 40}}, {"id": 1000, "type": "escape_sequence", "text": "\\n", "parent": 999, "children": [], "start_point": {"row": 208, "column": 37}, "end_point": {"row": 208, "column": 39}}, {"id": 1001, "type": "cast_expression", "text": "(long unsigned) fptr[i]->modtime", "parent": 997, "children": [1002, 1006], "start_point": {"row": 209, "column": 3}, "end_point": {"row": 209, "column": 35}}, {"id": 1002, "type": "type_descriptor", "text": "long unsigned", "parent": 1001, "children": [1003], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 17}}, {"id": 1003, "type": "sized_type_specifier", "text": "long unsigned", "parent": 1002, "children": [1004, 1005], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 17}}, {"id": 1004, "type": "long", "text": "long", "parent": 1003, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 8}}, {"id": 1005, "type": "unsigned", "text": "unsigned", "parent": 1003, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 17}}, {"id": 1006, "type": "field_expression", "text": "fptr[i]->modtime", "parent": 1001, "children": [1007, 1010], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 35}}, {"id": 1007, "type": "subscript_expression", "text": "fptr[i]", "parent": 1006, "children": [1008, 1009], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 26}}, {"id": 1008, "type": "identifier", "text": "fptr", "parent": 1007, "children": [], "start_point": {"row": 209, "column": 19}, "end_point": {"row": 209, "column": 23}}, {"id": 1009, "type": "identifier", "text": "i", "parent": 1007, "children": [], "start_point": {"row": 209, "column": 24}, "end_point": {"row": 209, "column": 25}}, {"id": 1010, "type": "field_identifier", "text": "modtime", "parent": 1006, "children": [], "start_point": {"row": 209, "column": 28}, "end_point": {"row": 209, "column": 35}}, {"id": 1011, "type": "call_expression", "text": "rprintf(FINFO, \"flist->length=%.0f\\n\",\n\t\t\t(double) fptr[i]->length)", "parent": 972, "children": [1012, 1013], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 211, "column": 28}}, {"id": 1012, "type": "identifier", "text": "rprintf", "parent": 1011, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 9}}, {"id": 1013, "type": "argument_list", "text": "(FINFO, \"flist->length=%.0f\\n\",\n\t\t\t(double) fptr[i]->length)", "parent": 1011, "children": [1014, 1015, 1017], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 211, "column": 28}}, {"id": 1014, "type": "identifier", "text": "FINFO", "parent": 1013, "children": [], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 15}}, {"id": 1015, "type": "string_literal", "text": "\"flist->length=%.0f\\n\"", "parent": 1013, "children": [1016], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 39}}, {"id": 1016, "type": "escape_sequence", "text": "\\n", "parent": 1015, "children": [], "start_point": {"row": 210, "column": 36}, "end_point": {"row": 210, "column": 38}}, {"id": 1017, "type": "cast_expression", "text": "(double) fptr[i]->length", "parent": 1013, "children": [1018, 1020], "start_point": {"row": 211, "column": 3}, "end_point": {"row": 211, "column": 27}}, {"id": 1018, "type": "type_descriptor", "text": "double", "parent": 1017, "children": [1019], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 10}}, {"id": 1019, "type": "primitive_type", "text": "double", "parent": 1018, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 10}}, {"id": 1020, "type": "field_expression", "text": "fptr[i]->length", "parent": 1017, "children": [1021, 1024], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 27}}, {"id": 1021, "type": "subscript_expression", "text": "fptr[i]", "parent": 1020, "children": [1022, 1023], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 19}}, {"id": 1022, "type": "identifier", "text": "fptr", "parent": 1021, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 16}}, {"id": 1023, "type": "identifier", "text": "i", "parent": 1021, "children": [], "start_point": {"row": 211, "column": 17}, "end_point": {"row": 211, "column": 18}}, {"id": 1024, "type": "field_identifier", "text": "length", "parent": 1020, "children": [], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 27}}, {"id": 1025, "type": "call_expression", "text": "rprintf(FINFO, \"flist->mode=%#o\\n\", (int) fptr[i]->mode)", "parent": 972, "children": [1026, 1027], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 58}}, {"id": 1026, "type": "identifier", "text": "rprintf", "parent": 1025, "children": [], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 9}}, {"id": 1027, "type": "argument_list", "text": "(FINFO, \"flist->mode=%#o\\n\", (int) fptr[i]->mode)", "parent": 1025, "children": [1028, 1029, 1031], "start_point": {"row": 212, "column": 9}, "end_point": {"row": 212, "column": 58}}, {"id": 1028, "type": "identifier", "text": "FINFO", "parent": 1027, "children": [], "start_point": {"row": 212, "column": 10}, "end_point": {"row": 212, "column": 15}}, {"id": 1029, "type": "string_literal", "text": "\"flist->mode=%#o\\n\"", "parent": 1027, "children": [1030], "start_point": {"row": 212, "column": 17}, "end_point": {"row": 212, "column": 36}}, {"id": 1030, "type": "escape_sequence", "text": "\\n", "parent": 1029, "children": [], "start_point": {"row": 212, "column": 33}, "end_point": {"row": 212, "column": 35}}, {"id": 1031, "type": "cast_expression", "text": "(int) fptr[i]->mode", "parent": 1027, "children": [1032, 1034], "start_point": {"row": 212, "column": 38}, "end_point": {"row": 212, "column": 57}}, {"id": 1032, "type": "type_descriptor", "text": "int", "parent": 1031, "children": [1033], "start_point": {"row": 212, "column": 39}, "end_point": {"row": 212, "column": 42}}, {"id": 1033, "type": "primitive_type", "text": "int", "parent": 1032, "children": [], "start_point": {"row": 212, "column": 39}, "end_point": {"row": 212, "column": 42}}, {"id": 1034, "type": "field_expression", "text": "fptr[i]->mode", "parent": 1031, "children": [1035, 1038], "start_point": {"row": 212, "column": 44}, "end_point": {"row": 212, "column": 57}}, {"id": 1035, "type": "subscript_expression", "text": "fptr[i]", "parent": 1034, "children": [1036, 1037], "start_point": {"row": 212, "column": 44}, "end_point": {"row": 212, "column": 51}}, {"id": 1036, "type": "identifier", "text": "fptr", "parent": 1035, "children": [], "start_point": {"row": 212, "column": 44}, "end_point": {"row": 212, "column": 48}}, {"id": 1037, "type": "identifier", "text": "i", "parent": 1035, "children": [], "start_point": {"row": 212, "column": 49}, "end_point": {"row": 212, "column": 50}}, {"id": 1038, "type": "field_identifier", "text": "mode", "parent": 1034, "children": [], "start_point": {"row": 212, "column": 53}, "end_point": {"row": 212, "column": 57}}, {"id": 1039, "type": "call_expression", "text": "rprintf(FINFO, \"flist->basename=%s\\n\",\n\t\t\tsafe_fname(fptr[i]->basename))", "parent": 972, "children": [1040, 1041], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 214, "column": 33}}, {"id": 1040, "type": "identifier", "text": "rprintf", "parent": 1039, "children": [], "start_point": {"row": 213, "column": 2}, "end_point": {"row": 213, "column": 9}}, {"id": 1041, "type": "argument_list", "text": "(FINFO, \"flist->basename=%s\\n\",\n\t\t\tsafe_fname(fptr[i]->basename))", "parent": 1039, "children": [1042, 1043, 1045], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 214, "column": 33}}, {"id": 1042, "type": "identifier", "text": "FINFO", "parent": 1041, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 15}}, {"id": 1043, "type": "string_literal", "text": "\"flist->basename=%s\\n\"", "parent": 1041, "children": [1044], "start_point": {"row": 213, "column": 17}, "end_point": {"row": 213, "column": 39}}, {"id": 1044, "type": "escape_sequence", "text": "\\n", "parent": 1043, "children": [], "start_point": {"row": 213, "column": 36}, "end_point": {"row": 213, "column": 38}}, {"id": 1045, "type": "call_expression", "text": "safe_fname(fptr[i]->basename)", "parent": 1041, "children": [1046, 1047], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 32}}, {"id": 1046, "type": "identifier", "text": "safe_fname", "parent": 1045, "children": [], "start_point": {"row": 214, "column": 3}, "end_point": {"row": 214, "column": 13}}, {"id": 1047, "type": "argument_list", "text": "(fptr[i]->basename)", "parent": 1045, "children": [1048], "start_point": {"row": 214, "column": 13}, "end_point": {"row": 214, "column": 32}}, {"id": 1048, "type": "field_expression", "text": "fptr[i]->basename", "parent": 1047, "children": [1049, 1052], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 31}}, {"id": 1049, "type": "subscript_expression", "text": "fptr[i]", "parent": 1048, "children": [1050, 1051], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 21}}, {"id": 1050, "type": "identifier", "text": "fptr", "parent": 1049, "children": [], "start_point": {"row": 214, "column": 14}, "end_point": {"row": 214, "column": 18}}, {"id": 1051, "type": "identifier", "text": "i", "parent": 1049, "children": [], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 20}}, {"id": 1052, "type": "field_identifier", "text": "basename", "parent": 1048, "children": [], "start_point": {"row": 214, "column": 23}, "end_point": {"row": 214, "column": 31}}, {"id": 1053, "type": "if_statement", "text": "if (fptr[i]->dirname) {\n\t\t\trprintf(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname));\n\t\t}", "parent": 972, "children": [1054], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 218, "column": 3}}, {"id": 1054, "type": "parenthesized_expression", "text": "(fptr[i]->dirname)", "parent": 1053, "children": [1055], "start_point": {"row": 215, "column": 5}, "end_point": {"row": 215, "column": 23}}, {"id": 1055, "type": "field_expression", "text": "fptr[i]->dirname", "parent": 1054, "children": [1056, 1059], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 22}}, {"id": 1056, "type": "subscript_expression", "text": "fptr[i]", "parent": 1055, "children": [1057, 1058], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 13}}, {"id": 1057, "type": "identifier", "text": "fptr", "parent": 1056, "children": [], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 215, "column": 10}}, {"id": 1058, "type": "identifier", "text": "i", "parent": 1056, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 12}}, {"id": 1059, "type": "field_identifier", "text": "dirname", "parent": 1055, "children": [], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 22}}, {"id": 1060, "type": "call_expression", "text": "rprintf(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname))", "parent": 1053, "children": [1061, 1062], "start_point": {"row": 216, "column": 3}, "end_point": {"row": 217, "column": 33}}, {"id": 1061, "type": "identifier", "text": "rprintf", "parent": 1060, "children": [], "start_point": {"row": 216, "column": 3}, "end_point": {"row": 216, "column": 10}}, {"id": 1062, "type": "argument_list", "text": "(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname))", "parent": 1060, "children": [1063, 1064, 1066], "start_point": {"row": 216, "column": 10}, "end_point": {"row": 217, "column": 33}}, {"id": 1063, "type": "identifier", "text": "FINFO", "parent": 1062, "children": [], "start_point": {"row": 216, "column": 11}, "end_point": {"row": 216, "column": 16}}, {"id": 1064, "type": "string_literal", "text": "\"flist->dirname=%s\\n\"", "parent": 1062, "children": [1065], "start_point": {"row": 216, "column": 18}, "end_point": {"row": 216, "column": 39}}, {"id": 1065, "type": "escape_sequence", "text": "\\n", "parent": 1064, "children": [], "start_point": {"row": 216, "column": 36}, "end_point": {"row": 216, "column": 38}}, {"id": 1066, "type": "call_expression", "text": "safe_fname(fptr[i]->dirname)", "parent": 1062, "children": [1067, 1068], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 32}}, {"id": 1067, "type": "identifier", "text": "safe_fname", "parent": 1066, "children": [], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 14}}, {"id": 1068, "type": "argument_list", "text": "(fptr[i]->dirname)", "parent": 1066, "children": [1069], "start_point": {"row": 217, "column": 14}, "end_point": {"row": 217, "column": 32}}, {"id": 1069, "type": "field_expression", "text": "fptr[i]->dirname", "parent": 1068, "children": [1070, 1073], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 31}}, {"id": 1070, "type": "subscript_expression", "text": "fptr[i]", "parent": 1069, "children": [1071, 1072], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 22}}, {"id": 1071, "type": "identifier", "text": "fptr", "parent": 1070, "children": [], "start_point": {"row": 217, "column": 15}, "end_point": {"row": 217, "column": 19}}, {"id": 1072, "type": "identifier", "text": "i", "parent": 1070, "children": [], "start_point": {"row": 217, "column": 20}, "end_point": {"row": 217, "column": 21}}, {"id": 1073, "type": "field_identifier", "text": "dirname", "parent": 1069, "children": [], "start_point": {"row": 217, "column": 24}, "end_point": {"row": 217, "column": 31}}, {"id": 1074, "type": "if_statement", "text": "if (am_sender && fptr[i]->dir.root) {\n\t\t\trprintf(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root));\n\t\t}", "parent": 972, "children": [1075], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 222, "column": 3}}, {"id": 1075, "type": "parenthesized_expression", "text": "(am_sender && fptr[i]->dir.root)", "parent": 1074, "children": [1076], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 37}}, {"id": 1076, "type": "binary_expression", "text": "am_sender && fptr[i]->dir.root", "parent": 1075, "children": [1077, 1078, 1079], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 36}}, {"id": 1077, "type": "identifier", "text": "am_sender", "parent": 1076, "children": [], "start_point": {"row": 219, "column": 6}, "end_point": {"row": 219, "column": 15}}, {"id": 1078, "type": "&&", "text": "&&", "parent": 1076, "children": [], "start_point": {"row": 219, "column": 16}, "end_point": {"row": 219, "column": 18}}, {"id": 1079, "type": "field_expression", "text": "fptr[i]->dir.root", "parent": 1076, "children": [1080, 1085], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 36}}, {"id": 1080, "type": "field_expression", "text": "fptr[i]->dir", "parent": 1079, "children": [1081, 1084], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 31}}, {"id": 1081, "type": "subscript_expression", "text": "fptr[i]", "parent": 1080, "children": [1082, 1083], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 26}}, {"id": 1082, "type": "identifier", "text": "fptr", "parent": 1081, "children": [], "start_point": {"row": 219, "column": 19}, "end_point": {"row": 219, "column": 23}}, {"id": 1083, "type": "identifier", "text": "i", "parent": 1081, "children": [], "start_point": {"row": 219, "column": 24}, "end_point": {"row": 219, "column": 25}}, {"id": 1084, "type": "field_identifier", "text": "dir", "parent": 1080, "children": [], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 31}}, {"id": 1085, "type": "field_identifier", "text": "root", "parent": 1079, "children": [], "start_point": {"row": 219, "column": 32}, "end_point": {"row": 219, "column": 36}}, {"id": 1086, "type": "call_expression", "text": "rprintf(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root))", "parent": 1074, "children": [1087, 1088], "start_point": {"row": 220, "column": 3}, "end_point": {"row": 221, "column": 34}}, {"id": 1087, "type": "identifier", "text": "rprintf", "parent": 1086, "children": [], "start_point": {"row": 220, "column": 3}, "end_point": {"row": 220, "column": 10}}, {"id": 1088, "type": "argument_list", "text": "(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root))", "parent": 1086, "children": [1089, 1090, 1092], "start_point": {"row": 220, "column": 10}, "end_point": {"row": 221, "column": 34}}, {"id": 1089, "type": "identifier", "text": "FINFO", "parent": 1088, "children": [], "start_point": {"row": 220, "column": 11}, "end_point": {"row": 220, "column": 16}}, {"id": 1090, "type": "string_literal", "text": "\"flist->dir.root=%s\\n\"", "parent": 1088, "children": [1091], "start_point": {"row": 220, "column": 18}, "end_point": {"row": 220, "column": 40}}, {"id": 1091, "type": "escape_sequence", "text": "\\n", "parent": 1090, "children": [], "start_point": {"row": 220, "column": 37}, "end_point": {"row": 220, "column": 39}}, {"id": 1092, "type": "call_expression", "text": "safe_fname(fptr[i]->dir.root)", "parent": 1088, "children": [1093, 1094], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 33}}, {"id": 1093, "type": "identifier", "text": "safe_fname", "parent": 1092, "children": [], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 14}}, {"id": 1094, "type": "argument_list", "text": "(fptr[i]->dir.root)", "parent": 1092, "children": [1095], "start_point": {"row": 221, "column": 14}, "end_point": {"row": 221, "column": 33}}, {"id": 1095, "type": "field_expression", "text": "fptr[i]->dir.root", "parent": 1094, "children": [1096, 1101], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 32}}, {"id": 1096, "type": "field_expression", "text": "fptr[i]->dir", "parent": 1095, "children": [1097, 1100], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 27}}, {"id": 1097, "type": "subscript_expression", "text": "fptr[i]", "parent": 1096, "children": [1098, 1099], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 22}}, {"id": 1098, "type": "identifier", "text": "fptr", "parent": 1097, "children": [], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 19}}, {"id": 1099, "type": "identifier", "text": "i", "parent": 1097, "children": [], "start_point": {"row": 221, "column": 20}, "end_point": {"row": 221, "column": 21}}, {"id": 1100, "type": "field_identifier", "text": "dir", "parent": 1096, "children": [], "start_point": {"row": 221, "column": 24}, "end_point": {"row": 221, "column": 27}}, {"id": 1101, "type": "field_identifier", "text": "root", "parent": 1095, "children": [], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 221, "column": 32}}, {"id": 1102, "type": "function_definition", "text": "void show_argvs(int argc, char *argv[])\n{\n\tint i;\n\n\trprintf(FINFO, \"BATCH.C:show_argvs,argc=%d\\n\", argc);\n\tfor (i = 0; i < argc; i++)\n\t\trprintf(FINFO, \"i=%d,argv[i]=%s\\n\", i, safe_fname(argv[i]));\n}", "parent": null, "children": [1103, 1104], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 234, "column": 1}}, {"id": 1103, "type": "primitive_type", "text": "void", "parent": 1102, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 4}}, {"id": 1104, "type": "function_declarator", "text": "show_argvs(int argc, char *argv[])", "parent": 1102, "children": [1105, 1106], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 39}}, {"id": 1105, "type": "identifier", "text": "show_argvs", "parent": 1104, "children": [], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 15}}, {"id": 1106, "type": "parameter_list", "text": "(int argc, char *argv[])", "parent": 1104, "children": [1107, 1110], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 39}}, {"id": 1107, "type": "parameter_declaration", "text": "int argc", "parent": 1106, "children": [1108, 1109], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 24}}, {"id": 1108, "type": "primitive_type", "text": "int", "parent": 1107, "children": [], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 19}}, {"id": 1109, "type": "identifier", "text": "argc", "parent": 1107, "children": [], "start_point": {"row": 227, "column": 20}, "end_point": {"row": 227, "column": 24}}, {"id": 1110, "type": "parameter_declaration", "text": "char *argv[]", "parent": 1106, "children": [1111, 1112], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 227, "column": 38}}, {"id": 1111, "type": "primitive_type", "text": "char", "parent": 1110, "children": [], "start_point": {"row": 227, "column": 26}, "end_point": {"row": 227, "column": 30}}, {"id": 1112, "type": "pointer_declarator", "text": "*argv[]", "parent": 1110, "children": [1113, 1114], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 38}}, {"id": 1113, "type": "*", "text": "*", "parent": 1112, "children": [], "start_point": {"row": 227, "column": 31}, "end_point": {"row": 227, "column": 32}}, {"id": 1114, "type": "array_declarator", "text": "argv[]", "parent": 1112, "children": [1115], "start_point": {"row": 227, "column": 32}, "end_point": {"row": 227, "column": 38}}, {"id": 1115, "type": "identifier", "text": "argv", "parent": 1114, "children": [], "start_point": {"row": 227, "column": 32}, "end_point": {"row": 227, "column": 36}}, {"id": 1116, "type": "declaration", "text": "int i;", "parent": 1102, "children": [1117, 1118], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 7}}, {"id": 1117, "type": "primitive_type", "text": "int", "parent": 1116, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 4}}, {"id": 1118, "type": "identifier", "text": "i", "parent": 1116, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 6}}, {"id": 1119, "type": "call_expression", "text": "rprintf(FINFO, \"BATCH.C:show_argvs,argc=%d\\n\", argc)", "parent": 1102, "children": [1120, 1121], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 53}}, {"id": 1120, "type": "identifier", "text": "rprintf", "parent": 1119, "children": [], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 8}}, {"id": 1121, "type": "argument_list", "text": "(FINFO, \"BATCH.C:show_argvs,argc=%d\\n\", argc)", "parent": 1119, "children": [1122, 1123, 1125], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 53}}, {"id": 1122, "type": "identifier", "text": "FINFO", "parent": 1121, "children": [], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 14}}, {"id": 1123, "type": "string_literal", "text": "\"BATCH.C:show_argvs,argc=%d\\n\"", "parent": 1121, "children": [1124], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 46}}, {"id": 1124, "type": "escape_sequence", "text": "\\n", "parent": 1123, "children": [], "start_point": {"row": 231, "column": 43}, "end_point": {"row": 231, "column": 45}}, {"id": 1125, "type": "identifier", "text": "argc", "parent": 1121, "children": [], "start_point": {"row": 231, "column": 48}, "end_point": {"row": 231, "column": 52}}, {"id": 1126, "type": "for_statement", "text": "for (i = 0; i < argc; i++)\n\t\trprintf(FINFO, \"i=%d,argv[i]=%s\\n\", i, safe_fname(argv[i]));", "parent": 1102, "children": [1127, 1131, 1135], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 233, "column": 62}}, {"id": 1127, "type": "assignment_expression", "text": "i = 0", "parent": 1126, "children": [1128, 1129, 1130], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 11}}, {"id": 1128, "type": "identifier", "text": "i", "parent": 1127, "children": [], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 7}}, {"id": 1129, "type": "=", "text": "=", "parent": 1127, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 9}}, {"id": 1130, "type": "number_literal", "text": "0", "parent": 1127, "children": [], "start_point": {"row": 232, "column": 10}, "end_point": {"row": 232, "column": 11}}, {"id": 1131, "type": "binary_expression", "text": "i < argc", "parent": 1126, "children": [1132, 1133, 1134], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 21}}, {"id": 1132, "type": "identifier", "text": "i", "parent": 1131, "children": [], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 14}}, {"id": 1133, "type": "<", "text": "<", "parent": 1131, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 16}}, {"id": 1134, "type": "identifier", "text": "argc", "parent": 1131, "children": [], "start_point": {"row": 232, "column": 17}, "end_point": {"row": 232, "column": 21}}, {"id": 1135, "type": "update_expression", "text": "i++", "parent": 1126, "children": [1136, 1137], "start_point": {"row": 232, "column": 23}, "end_point": {"row": 232, "column": 26}}, {"id": 1136, "type": "identifier", "text": "i", "parent": 1135, "children": [], "start_point": {"row": 232, "column": 23}, "end_point": {"row": 232, "column": 24}}, {"id": 1137, "type": "++", "text": "++", "parent": 1135, "children": [], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 26}}, {"id": 1138, "type": "call_expression", "text": "rprintf(FINFO, \"i=%d,argv[i]=%s\\n\", i, safe_fname(argv[i]))", "parent": 1126, "children": [1139, 1140], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 61}}, {"id": 1139, "type": "identifier", "text": "rprintf", "parent": 1138, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 9}}, {"id": 1140, "type": "argument_list", "text": "(FINFO, \"i=%d,argv[i]=%s\\n\", i, safe_fname(argv[i]))", "parent": 1138, "children": [1141, 1142, 1144, 1145], "start_point": {"row": 233, "column": 9}, "end_point": {"row": 233, "column": 61}}, {"id": 1141, "type": "identifier", "text": "FINFO", "parent": 1140, "children": [], "start_point": {"row": 233, "column": 10}, "end_point": {"row": 233, "column": 15}}, {"id": 1142, "type": "string_literal", "text": "\"i=%d,argv[i]=%s\\n\"", "parent": 1140, "children": [1143], "start_point": {"row": 233, "column": 17}, "end_point": {"row": 233, "column": 36}}, {"id": 1143, "type": "escape_sequence", "text": "\\n", "parent": 1142, "children": [], "start_point": {"row": 233, "column": 33}, "end_point": {"row": 233, "column": 35}}, {"id": 1144, "type": "identifier", "text": "i", "parent": 1140, "children": [], "start_point": {"row": 233, "column": 38}, "end_point": {"row": 233, "column": 39}}, {"id": 1145, "type": "call_expression", "text": "safe_fname(argv[i])", "parent": 1140, "children": [1146, 1147], "start_point": {"row": 233, "column": 41}, "end_point": {"row": 233, "column": 60}}, {"id": 1146, "type": "identifier", "text": "safe_fname", "parent": 1145, "children": [], "start_point": {"row": 233, "column": 41}, "end_point": {"row": 233, "column": 51}}, {"id": 1147, "type": "argument_list", "text": "(argv[i])", "parent": 1145, "children": [1148], "start_point": {"row": 233, "column": 51}, "end_point": {"row": 233, "column": 60}}, {"id": 1148, "type": "subscript_expression", "text": "argv[i]", "parent": 1147, "children": [1149, 1150], "start_point": {"row": 233, "column": 52}, "end_point": {"row": 233, "column": 59}}, {"id": 1149, "type": "identifier", "text": "argv", "parent": 1148, "children": [], "start_point": {"row": 233, "column": 52}, "end_point": {"row": 233, "column": 56}}, {"id": 1150, "type": "identifier", "text": "i", "parent": 1148, "children": [], "start_point": {"row": 233, "column": 57}, "end_point": {"row": 233, "column": 58}}]}, "node_categories": {"declarations": {"functions": [129, 131, 189, 191, 308, 310, 470, 472, 581, 583, 952, 954, 1102, 1104], "variables": [6, 11, 16, 21, 26, 31, 36, 41, 46, 51, 56, 61, 66, 73, 80, 109, 134, 137, 194, 197, 233, 313, 316, 321, 475, 478, 505, 510, 586, 589, 595, 598, 603, 957, 960, 969, 1107, 1110, 1116], "classes": [7, 12, 17, 22, 27, 32, 37, 42, 47, 52, 57, 62, 67, 74, 76, 77, 479, 480, 961, 962], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [89, 91, 93, 95, 97, 99, 101, 103, 105, 142, 143, 148, 155, 164, 167, 171, 172, 174, 180, 184, 202, 203, 208, 215, 223, 227, 230, 239, 241, 242, 250, 251, 252, 254, 260, 262, 273, 277, 279, 285, 286, 291, 299, 300, 330, 331, 332, 333, 342, 343, 347, 358, 363, 364, 373, 374, 381, 382, 383, 393, 404, 405, 409, 423, 427, 432, 433, 439, 445, 450, 454, 461, 466, 485, 495, 502, 517, 520, 525, 527, 533, 537, 541, 542, 543, 547, 555, 568, 570, 576, 611, 615, 624, 628, 629, 633, 634, 639, 640, 644, 650, 654, 658, 662, 666, 667, 671, 672, 676, 682, 692, 695, 699, 705, 709, 710, 711, 712, 713, 714, 723, 724, 733, 734, 743, 744, 753, 754, 755, 766, 772, 773, 774, 781, 786, 793, 794, 795, 796, 808, 809, 820, 827, 828, 829, 837, 843, 847, 848, 855, 861, 862, 864, 868, 871, 873, 877, 879, 884, 886, 890, 896, 901, 909, 910, 913, 918, 919, 920, 921, 931, 932, 938, 944, 948, 977, 981, 984, 990, 991, 995, 1001, 1006, 1007, 1011, 1017, 1020, 1021, 1025, 1031, 1034, 1035, 1039, 1045, 1048, 1049, 1054, 1055, 1056, 1060, 1066, 1069, 1070, 1075, 1076, 1079, 1080, 1081, 1086, 1092, 1095, 1096, 1097, 1119, 1131, 1135, 1138, 1145, 1148], "assignments": [147, 156, 160, 177, 207, 216, 220, 276, 293, 304, 344, 370, 400, 406, 420, 492, 499, 621, 688, 702, 801, 814, 865, 881, 973, 1127], "loops": [154, 214, 399, 491, 687, 972, 1126], "conditionals": [10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 72, 78, 79, 86, 90, 92, 94, 96, 98, 100, 102, 104, 106, 115, 132, 136, 139, 140, 141, 144, 149, 157, 161, 165, 166, 168, 170, 175, 176, 178, 183, 185, 187, 188, 192, 196, 199, 200, 201, 204, 209, 217, 221, 224, 226, 228, 229, 231, 236, 238, 240, 245, 249, 255, 256, 258, 259, 261, 263, 265, 268, 269, 274, 275, 280, 281, 283, 284, 287, 290, 292, 294, 298, 301, 305, 311, 315, 320, 325, 328, 329, 335, 345, 348, 350, 359, 361, 362, 365, 367, 371, 375, 377, 380, 384, 386, 394, 396, 401, 403, 407, 410, 412, 421, 424, 428, 430, 431, 434, 436, 440, 442, 446, 448, 449, 451, 453, 455, 457, 462, 464, 465, 467, 469, 473, 477, 481, 484, 486, 488, 493, 496, 497, 498, 500, 503, 504, 506, 509, 515, 518, 521, 522, 526, 528, 530, 531, 532, 534, 536, 538, 539, 540, 544, 545, 546, 548, 550, 556, 558, 559, 560, 567, 569, 571, 573, 577, 579, 584, 588, 594, 597, 600, 601, 602, 607, 609, 610, 612, 614, 616, 617, 622, 625, 627, 630, 631, 632, 635, 636, 637, 638, 641, 645, 647, 648, 651, 653, 655, 659, 661, 663, 665, 668, 669, 670, 673, 677, 679, 683, 685, 689, 693, 696, 698, 700, 703, 706, 707, 708, 715, 717, 725, 727, 735, 737, 745, 747, 752, 756, 758, 767, 771, 775, 777, 782, 787, 789, 792, 797, 799, 802, 810, 812, 815, 821, 823, 826, 830, 831, 838, 840, 844, 846, 849, 851, 856, 858, 859, 860, 866, 869, 872, 874, 878, 880, 882, 885, 887, 891, 893, 897, 899, 900, 902, 904, 908, 911, 912, 914, 916, 917, 922, 924, 933, 935, 939, 941, 942, 945, 947, 949, 955, 959, 963, 968, 971, 974, 978, 980, 982, 985, 987, 992, 993, 994, 996, 998, 1003, 1008, 1009, 1010, 1012, 1014, 1022, 1023, 1024, 1026, 1028, 1036, 1037, 1038, 1040, 1042, 1046, 1050, 1051, 1052, 1053, 1057, 1058, 1059, 1061, 1063, 1067, 1071, 1072, 1073, 1074, 1077, 1082, 1083, 1084, 1085, 1087, 1089, 1093, 1098, 1099, 1100, 1101, 1105, 1109, 1115, 1118, 1120, 1122, 1125, 1128, 1132, 1134, 1136, 1139, 1141, 1144, 1146, 1149, 1150], "returns": [460], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 118, 119, 120, 121, 122, 123, 124, 125, 126, 146, 150, 159, 163, 181, 206, 210, 219, 243, 247, 248, 266, 271, 272, 289, 296, 303, 307, 337, 351, 369, 379, 387, 397, 398, 413, 426, 438, 443, 444, 458, 459, 489, 523, 524, 551, 562, 563, 574, 580, 618, 643, 649, 657, 664, 675, 680, 686, 691, 718, 719, 721, 728, 729, 731, 738, 739, 741, 748, 749, 751, 759, 778, 780, 790, 791, 800, 804, 806, 813, 817, 819, 824, 825, 833, 841, 842, 853, 876, 889, 894, 895, 905, 925, 927, 929, 937, 943, 951, 976, 988, 999, 1015, 1029, 1043, 1064, 1090, 1123, 1130, 1142], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 129, "universal_type": "function", "name": "write_stream_flags", "text_snippet": "void write_stream_flags(int fd)\n{\n\tint i, flags;\n\n\t/* Start the batch file with a bitmap of data-str"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "write_stream_flags(int fd)"}, {"node_id": 189, "universal_type": "function", "name": "read_stream_flags", "text_snippet": "void read_stream_flags(int fd)\n{\n\tint i, flags;\n\n\tif (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;\n\t"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "read_stream_flags(int fd)"}, {"node_id": 308, "universal_type": "function", "name": "write_arg", "text_snippet": "static void write_arg(int fd, char *arg)\n{\n\tchar *x, *s;\n\n\tif (*arg == '-' && (x = strchr(arg, '='))"}, {"node_id": 310, "universal_type": "function", "name": "unknown", "text_snippet": "write_arg(int fd, char *arg)"}, {"node_id": 470, "universal_type": "function", "name": "write_filter_rules", "text_snippet": "static void write_filter_rules(int fd)\n{\n\tstruct filter_struct *ent;\n\n\twrite_sbuf(fd, \" <<'#E#'\\n\");"}, {"node_id": 472, "universal_type": "function", "name": "unknown", "text_snippet": "write_filter_rules(int fd)"}, {"node_id": 581, "universal_type": "function", "name": "write_batch_shell_file", "text_snippet": "void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)\n{\n\tint fd, i, len;\n\tchar *p, f"}, {"node_id": 583, "universal_type": "function", "name": "file_arg_cnt)", "text_snippet": "write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)"}, {"node_id": 952, "universal_type": "function", "name": "show_flist", "text_snippet": "void show_flist(int index, struct file_struct **fptr)\n{\n\t/* for debugging show_flist(flist->coun"}, {"node_id": 954, "universal_type": "function", "name": "file_struct", "text_snippet": "show_flist(int index, struct file_struct **fptr)"}, {"node_id": 1102, "universal_type": "function", "name": "show_argvs", "text_snippet": "void show_argvs(int argc, char *argv[])\n{\n\tint i;\n\n\trprintf(FINFO, \"BATCH.C:show_argvs,argc=%d\\n\", a"}, {"node_id": 1104, "universal_type": "function", "name": "unknown", "text_snippet": "show_argvs(int argc, char *argv[])"}], "class_declarations": [{"node_id": 7, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 67, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 74, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 76, "universal_type": "class", "name": "filter_list_struct", "text_snippet": "struct filter_list_struct"}, {"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 479, "universal_type": "class", "name": "filter_struct", "text_snippet": "struct filter_struct"}, {"node_id": 480, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 961, "universal_type": "class", "name": "file_struct", "text_snippet": "struct file_struct"}, {"node_id": 962, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"rsync.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <time.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/* -*- c-file-style: \"linux\" -*-\n\n Weiss 1/1999\n Batch utilities for rsync.\n\n*/\n\n#include \"rsync.h\"\n#include <time.h>\n\nextern int am_sender;\nextern int eol_nulls;\nextern int recurse;\nextern int xfer_dirs;\nextern int preserve_links;\nextern int preserve_hard_links;\nextern int preserve_devices;\nextern int preserve_uid;\nextern int preserve_gid;\nextern int always_checksum;\nextern int do_compression;\nextern int protocol_version;\nextern char *batch_name;\n\nextern struct filter_list_struct filter_list;\n\nstatic int *flag_ptr[] = {\n\t&recurse,\t\t/* 0 */\n\t&preserve_uid,\t\t/* 1 */\n\t&preserve_gid,\t\t/* 2 */\n\t&preserve_links,\t/* 3 */\n\t&preserve_devices,\t/* 4 */\n\t&preserve_hard_links,\t/* 5 */\n\t&always_checksum,\t/* 6 */\n\t&xfer_dirs,\t\t/* 7 (protocol 29) */\n\t&do_compression,\t/* 8 (protocol 29) */\n\tNULL\n};\n\nstatic char *flag_name[] = {\n\t\"--recurse (-r)\",\n\t\"--owner (-o)\",\n\t\"--group (-g)\",\n\t\"--links (-l)\",\n\t\"--devices (-D)\",\n\t\"--hard-links (-H)\",\n\t\"--checksum (-c)\",\n\t\"--dirs (-d)\",\n\t\"--compress (-z)\",\n\tNULL\n};\n\nvoid write_stream_flags(int fd)\n{\n\tint i, flags;\n\n\t/* Start the batch file with a bitmap of data-stream-affecting\n\t * flags. */\n\tif (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;\n\tfor (i = 0, flags = 0; flag_ptr[i]; i++) {\n\t\tif (*flag_ptr[i])\n\t\t\tflags |= 1 << i;\n\t}\n\twrite_int(fd, flags);\n}\n\nvoid read_stream_flags(int fd)\n{\n\tint i, flags;\n\n\tif (protocol_version < 29)\n\t\tflag_ptr[7] = NULL;\n\tfor (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {\n\t\tint set = flags & (1 << i) ? 1 : 0;\n\t\tif (*flag_ptr[i] != set) {\n\t\t\tif (verbose) {\n\t\t\t\trprintf(FINFO,\n\t\t\t\t\t\"%sing the %s option to match the batchfile.\\n\",\n\t\t\t\t\tset ? \"Sett\" : \"Clear\", flag_name[i]);\n\t\t\t}\n\t\t\t*flag_ptr[i] = set;\n\t\t}\n\t}\n\tif (protocol_version < 29) {\n\t\tif (recurse)\n\t\t\txfer_dirs |= 1;\n\t\telse if (xfer_dirs < 2)\n\t\t\txfer_dirs = 0;\n\t}\n}\n\nstatic void write_arg(int fd, char *arg)\n{\n\tchar *x, *s;\n\n\tif (*arg == '-' && (x = strchr(arg, '=')) != NULL) {\n\t\twrite(fd, arg, x - arg + 1);\n\t\targ += x - arg + 1;\n\t}\n\n\tif (strpbrk(arg, \" \\\"'&;|[]()$#!*?^\\\\\") != NULL) {\n\t\twrite(fd, \"'\", 1);\n\t\tfor (s = arg; (x = strchr(s, '\\'')) != NULL; s = x + 1) {\n\t\t\twrite(fd, s, x - s + 1);\n\t\t\twrite(fd, \"'\", 1);\n\t\t}\n\t\twrite(fd, s, strlen(s));\n\t\twrite(fd, \"'\", 1);\n\t\treturn;\n\t}\n\n\twrite(fd, arg, strlen(arg));\n}\n\nstatic void write_filter_rules(int fd)\n{\n\tstruct filter_struct *ent;\n\n\twrite_sbuf(fd, \" <<'#E#'\\n\");\n\tfor (ent = filter_list.head; ent; ent = ent->next) {\n\t\tunsigned int plen;\n\t\tchar *p = get_rule_prefix(ent->match_flags, \"- \", 0, &plen);\n\t\twrite_buf(fd, p, plen);\n\t\twrite_sbuf(fd, ent->pattern);\n\t\tif (ent->match_flags & MATCHFLG_DIRECTORY)\n\t\t\twrite_byte(fd, '/');\n\t\twrite_byte(fd, eol_nulls ? 0 : '\\n');\n\t}\n\tif (eol_nulls)\n\t\twrite_sbuf(fd, \";\\n\");\n\twrite_sbuf(fd, \"#E#\");\n}\n\n/* This routine tries to write out an equivalent --read-batch command\n * given the user's --write-batch args. However, it doesn't really\n * understand most of the options, so it uses some overly simple\n * heuristics to munge the command line into something that will\n * (hopefully) work. */\nvoid write_batch_shell_file(int argc, char *argv[], int file_arg_cnt)\n{\n\tint fd, i, len;\n\tchar *p, filename[MAXPATHLEN];\n\n\tstringjoin(filename, sizeof filename,\n\t\t batch_name, \".sh\", NULL);\n\tfd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC,\n\t\t S_IRUSR | S_IWUSR | S_IEXEC);\n\tif (fd < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s open error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}\n\n\t/* Write argvs info to BATCH.sh file */\n\twrite_arg(fd, argv[0]);\n\tif (filter_list.head) {\n\t\tif (protocol_version >= 29)\n\t\t\twrite_sbuf(fd, \" --filter=._-\");\n\t\telse\n\t\t\twrite_sbuf(fd, \" --exclude-from=-\");\n\t}\n\tfor (i = 1; i < argc - file_arg_cnt; i++) {\n\t\tp = argv[i];\n\t\tif (strncmp(p, \"--files-from\", 12) == 0\n\t\t || strncmp(p, \"--filter\", 8) == 0\n\t\t || strncmp(p, \"--include\", 9) == 0\n\t\t || strncmp(p, \"--exclude\", 9) == 0) {\n\t\t\tif (strchr(p, '=') == NULL)\n\t\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (strcmp(p, \"-f\") == 0) {\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\twrite(fd, \" \", 1);\n\t\tif (strncmp(p, \"--write-batch\", len = 13) == 0\n\t\t || strncmp(p, \"--only-write-batch\", len = 18) == 0) {\n\t\t\twrite(fd, \"--read-batch\", 12);\n\t\t\tif (p[len] == '=') {\n\t\t\t\twrite(fd, \"=\", 1);\n\t\t\t\twrite_arg(fd, p + len + 1);\n\t\t\t}\n\t\t} else\n\t\t\twrite_arg(fd, p);\n\t}\n\tif (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))\n\t\tp = argv[argc - 1];\n\twrite(fd, \" ${1:-\", 6);\n\twrite_arg(fd, p);\n\twrite_byte(fd, '}');\n\tif (filter_list.head)\n\t\twrite_filter_rules(fd);\n\tif (write(fd, \"\\n\", 1) != 1 || close(fd) < 0) {\n\t\trsyserr(FERROR, errno, \"Batch file %s write error\",\n\t\t\tsafe_fname(filename));\n\t\texit_cleanup(1);\n\t}\n}\n\nvoid show_flist(int index, struct file_struct **fptr)\n{\n\t/* for debugging show_flist(flist->count, flist->files * */\n\n\tint i;\n\tfor (i = 0; i < index; i++) {\n\t\trprintf(FINFO, \"flist->flags=%#x\\n\", fptr[i]->flags);\n\t\trprintf(FINFO, \"flist->modtime=%#lx\\n\",\n\t\t\t(long unsigned) fptr[i]->modtime);\n\t\trprintf(FINFO, \"flist->length=%.0f\\n\",\n\t\t\t(double) fptr[i]->length);\n\t\trprintf(FINFO, \"flist->mode=%#o\\n\", (int) fptr[i]->mode);\n\t\trprintf(FINFO, \"flist->basename=%s\\n\",\n\t\t\tsafe_fname(fptr[i]->basename));\n\t\tif (fptr[i]->dirname) {\n\t\t\trprintf(FINFO, \"flist->dirname=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dirname));\n\t\t}\n\t\tif (am_sender && fptr[i]->dir.root) {\n\t\t\trprintf(FINFO, \"flist->dir.root=%s\\n\",\n\t\t\t\tsafe_fname(fptr[i]->dir.root));\n\t\t}\n\t}\n}\n\n/* for debugging */\nvoid show_argvs(int argc, char *argv[])\n{\n\tint i;\n\n\trprintf(FINFO, \"BATCH.C:show_argvs,argc=%d\\n\", argc);\n\tfor (i = 0; i < argc; i++)\n\t\trprintf(FINFO, \"i=%d,argv[i]=%s\\n\", i, safe_fname(argv[i]));\n}\n"}
80,757
c
// // GreendeckiOSSDK.h // GreendeckiOSSDK // // Created by <NAME> on 18/06/17. // Copyright © 2017 Greendeck. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for GreendeckiOSSDK. FOUNDATION_EXPORT double GreendeckiOSSDKVersionNumber; //! Project version string for GreendeckiOSSDK. FOUNDATION_EXPORT const unsigned char GreendeckiOSSDKVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <GreendeckiOSSDK/PublicHeader.h>
39.38
13
(translation_unit) "//\n// GreendeckiOSSDK.h\n// GreendeckiOSSDK\n//\n// Created by <NAME> on 18/06/17.\n// Copyright © 2017 Greendeck. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for GreendeckiOSSDK.\nFOUNDATION_EXPORT double GreendeckiOSSDKVersionNumber;\n\n//! Project version string for GreendeckiOSSDK.\nFOUNDATION_EXPORT const unsigned char GreendeckiOSSDKVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <GreendeckiOSSDK/PublicHeader.h>\n\n\n" (comment) "//" (comment) "// GreendeckiOSSDK.h" (comment) "// GreendeckiOSSDK" (comment) "//" (comment) "// Created by <NAME> on 18/06/17." (comment) "// Copyright © 2017 Greendeck. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (comment) "/! Project version number for GreendeckiOSSDK.\n" (declaration) "OUNDATION_EXPORT double GreendeckiOSSDKVersionNumber;\n" (type_identifier) "OUNDATION_EXPORT " (ERROR) "ouble " (identifier) "ouble " (identifier) "reendeckiOSSDKVersionNumber;" (;) "\n" (comment) "/! Project version string for GreendeckiOSSDK.\n" (declaration) "OUNDATION_EXPORT const unsigned " (type_identifier) "OUNDATION_EXPORT " (type_qualifier) "onst " (const) "onst " (identifier) "nsigned " (;) "" (declaration) "har GreendeckiOSSDKVersionString[];\n" (primitive_type) "har " (array_declarator) "reendeckiOSSDKVersionString[];" (identifier) "reendeckiOSSDKVersionString[" ([) "]" (]) ";" (;) "\n" (comment) "/ In this header, you should import all the public headers of your framework using statements like #import <GreendeckiOSSDK/PublicHeader.h>\n"
33
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 39.38, "nodes": 15, "errors": 0, "source_hash": "e4b91a1bc436b6b50bf4de07e1147682316a6929ee63ebd6c92578172f29fc5b", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "declaration", "text": "OUNDATION_EXPORT double GreendeckiOSSDKVersionNumber;\n", "parent": null, "children": [3, 4, 6], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 54}}, {"id": 3, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 2, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 17}}, {"id": 4, "type": "ERROR", "text": "ouble ", "parent": 2, "children": [5], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 5, "type": "identifier", "text": "ouble ", "parent": 4, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 24}}, {"id": 6, "type": "identifier", "text": "reendeckiOSSDKVersionNumber;", "parent": 2, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 53}}, {"id": 7, "type": "declaration", "text": "OUNDATION_EXPORT const unsigned ", "parent": null, "children": [8, 9, 10], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 8, "type": "type_identifier", "text": "OUNDATION_EXPORT ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 17}}, {"id": 9, "type": "type_qualifier", "text": "onst ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 23}}, {"id": 10, "type": "identifier", "text": "nsigned ", "parent": 7, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 32}}, {"id": 11, "type": "declaration", "text": "har GreendeckiOSSDKVersionString[];\n", "parent": null, "children": [12, 13], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 69}}, {"id": 12, "type": "primitive_type", "text": "har ", "parent": 11, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 37}}, {"id": 13, "type": "array_declarator", "text": "reendeckiOSSDKVersionString[];", "parent": 11, "children": [14], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 68}}, {"id": 14, "type": "identifier", "text": "reendeckiOSSDKVersionString[", "parent": 13, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 66}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 7, 11], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 8, 9, 10, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// GreendeckiOSSDK.h\n// GreendeckiOSSDK\n//\n// Created by <NAME> on 18/06/17.\n// Copyright \u00a9 2017 Greendeck. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for GreendeckiOSSDK.\nFOUNDATION_EXPORT double GreendeckiOSSDKVersionNumber;\n\n//! Project version string for GreendeckiOSSDK.\nFOUNDATION_EXPORT const unsigned char GreendeckiOSSDKVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <GreendeckiOSSDK/PublicHeader.h>\n\n\n"}
80,758
c
/***************************************************************************** * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/). * * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then, * * 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. * * Contributors: * @andnxor * @zappbrandnxor * @hyr0n1 * @andrewnriley * @lacosteaef * @bitstr3m * * Further modifications made by * @sconklin * @mustbeart * *****************************************************************************/ #ifndef UTIL_LED_H_ #define UTIL_LED_H_ #define LED_COUNT 14 #define LED_RGB_COUNT 20 #define LED_TOOTH_INDEX 13 #define LED_MATRIX_W 4 #define LED_MATRIX_H 3 #define LED_MATRIX_COUNT (LED_MATRIX_W * LED_MATRIX_H) #define LED_MATRIX_ROWS {{0,1,2,3},{4,5,6,7},{8,9,10,11}} //Mapping of RGB order to LED index from RGB files for MBP3+ badges #define LED_MATRIX_FULL_MAPPING { \ 12, 0xFF, 0xFF, 13, 0xFF, \ 0, 1, 2, 3, 14, \ 4, 5, 6, 7, 0xFF, \ 8, 9, 10, 11, 0xFF, \ } #define LED_MATRIX_FULL_ROW_COUNT 4 #define LED_MATRIX_FULL_COL_COUNT 5 #define LED_ORDER_CW { 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 } #define LED_ORDER_CW_COUNT 10 #define LED_COLOR_BLACK 0x000000 #define LED_COLOR_RED 0xFF0000 #define LED_COLOR_GREEN 0x00FF00 #define LED_COLOR_BLUE 0x0000FF #define LED_COLOR_CORAL 0xFF9963 #define LED_COLOR_GOLD 0xCCAD00 #define LED_COLOR_INDIGO 0xc100e6 #define LED_COLOR_LIGHTBLUE 0x3399FF #define LED_COLOR_LIGHTGREEN 0x58D68D #define LED_COLOR_ORANGE 0xFFA500 #define LED_COLOR_PURPLE 0xb000b0 #define LED_COLOR_YELLOW 0xDCDC00 #define LED_COLOR_WHITE 0xDDDDDD #define LED_COLOR_EYES 0xDD6666 #define TOOTH_HUE_GOLD 0.142 //51.0 / 360.0 typedef struct { uint8_t frames; uint8_t frame; uint8_t *rgb_data; uint16_t size; } led_anim_t; typedef struct { uint8_t red; uint8_t green; uint8_t blue; } led_rgb_t; #define UTIL_LED_ANIM_INIT(anim) \ uint8_t rgb_data[6000]; \ led_anim_t anim = { 0,0, rgb_data, 0 }; extern uint8_t led_order_cw[]; extern uint8_t led_matrix[]; extern uint32_t util_led_565_to_rgb(uint16_t color); extern void util_led_brightness_set(uint8_t brightness); extern void util_led_clear(); extern led_rgb_t util_led_get(uint8_t index); extern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue); extern uint32_t util_led_hsv_to_rgb(float H, float S, float V); extern bool util_led_has_apa102(); extern void util_led_init(); extern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim); extern void util_led_play_rgb_frame(led_anim_t *p_anim); extern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b); extern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue); extern void util_led_set_all_rgb(uint32_t rgb); extern void util_led_set_rgb(uint32_t index, uint32_t rgb); extern void util_led_show(); #endif /* UTIL_LED_H_ */
35.2
94
(translation_unit) "/*****************************************************************************\n * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/).\n *\n * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then,\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 * Contributors:\n * @andnxor\n * @zappbrandnxor\n * @hyr0n1\n * @andrewnriley\n * @lacosteaef\n * @bitstr3m\n * \n * Further modifications made by\n * @sconklin\n * @mustbeart\n *\n *****************************************************************************/\n#ifndef UTIL_LED_H_\n#define UTIL_LED_H_\n\n#define LED_COUNT 14\n#define LED_RGB_COUNT 20\n#define LED_TOOTH_INDEX 13\n#define LED_MATRIX_W 4\n#define LED_MATRIX_H 3\n#define LED_MATRIX_COUNT (LED_MATRIX_W * LED_MATRIX_H)\n#define LED_MATRIX_ROWS {{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n\n//Mapping of RGB order to LED index from RGB files for MBP3+ badges\n#define LED_MATRIX_FULL_MAPPING { \\n 12, 0xFF, 0xFF, 13, 0xFF, \\n 0, 1, 2, 3, 14, \\n 4, 5, 6, 7, 0xFF, \\n 8, 9, 10, 11, 0xFF, \\n }\n#define LED_MATRIX_FULL_ROW_COUNT 4\n#define LED_MATRIX_FULL_COL_COUNT 5\n\n#define LED_ORDER_CW { 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n#define LED_ORDER_CW_COUNT 10\n\n#define LED_COLOR_BLACK 0x000000\n#define LED_COLOR_RED 0xFF0000\n#define LED_COLOR_GREEN 0x00FF00\n#define LED_COLOR_BLUE 0x0000FF\n#define LED_COLOR_CORAL 0xFF9963\n#define LED_COLOR_GOLD 0xCCAD00\n#define LED_COLOR_INDIGO 0xc100e6\n#define LED_COLOR_LIGHTBLUE 0x3399FF\n#define LED_COLOR_LIGHTGREEN 0x58D68D\n#define LED_COLOR_ORANGE 0xFFA500\n#define LED_COLOR_PURPLE 0xb000b0\n#define LED_COLOR_YELLOW 0xDCDC00\n#define LED_COLOR_WHITE 0xDDDDDD\n#define LED_COLOR_EYES 0xDD6666\n#define TOOTH_HUE_GOLD 0.142 //51.0 / 360.0\n\n\ntypedef struct {\n uint8_t frames;\n uint8_t frame;\n uint8_t *rgb_data;\n uint16_t size;\n} led_anim_t;\n\ntypedef struct {\n uint8_t red;\n uint8_t green;\n uint8_t blue;\n} led_rgb_t;\n\n#define UTIL_LED_ANIM_INIT(anim) \\n uint8_t rgb_data[6000]; \\n led_anim_t anim = { 0,0, rgb_data, 0 };\n\nextern uint8_t led_order_cw[];\nextern uint8_t led_matrix[];\n\nextern uint32_t util_led_565_to_rgb(uint16_t color);\nextern void util_led_brightness_set(uint8_t brightness);\nextern void util_led_clear();\nextern led_rgb_t util_led_get(uint8_t index);\nextern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);\nextern uint32_t util_led_hsv_to_rgb(float H, float S, float V);\nextern bool util_led_has_apa102();\nextern void util_led_init();\nextern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);\nextern void util_led_play_rgb_frame(led_anim_t *p_anim);\nextern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);\nextern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);\nextern void util_led_set_all_rgb(uint32_t rgb);\nextern void util_led_set_rgb(uint32_t index, uint32_t rgb);\nextern void util_led_show();\n\n#endif /* UTIL_LED_H_ */\n" (comment) "/*****************************************************************************\n * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/).\n *\n * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then,\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 * Contributors:\n * @andnxor\n * @zappbrandnxor\n * @hyr0n1\n * @andrewnriley\n * @lacosteaef\n * @bitstr3m\n * \n * Further modifications made by\n * @sconklin\n * @mustbeart\n *\n *****************************************************************************/" (preproc_ifdef) "#ifndef UTIL_LED_H_\n#define UTIL_LED_H_\n\n#define LED_COUNT 14\n#define LED_RGB_COUNT 20\n#define LED_TOOTH_INDEX 13\n#define LED_MATRIX_W 4\n#define LED_MATRIX_H 3\n#define LED_MATRIX_COUNT (LED_MATRIX_W * LED_MATRIX_H)\n#define LED_MATRIX_ROWS {{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n\n//Mapping of RGB order to LED index from RGB files for MBP3+ badges\n#define LED_MATRIX_FULL_MAPPING { \\n 12, 0xFF, 0xFF, 13, 0xFF, \\n 0, 1, 2, 3, 14, \\n 4, 5, 6, 7, 0xFF, \\n 8, 9, 10, 11, 0xFF, \\n }\n#define LED_MATRIX_FULL_ROW_COUNT 4\n#define LED_MATRIX_FULL_COL_COUNT 5\n\n#define LED_ORDER_CW { 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n#define LED_ORDER_CW_COUNT 10\n\n#define LED_COLOR_BLACK 0x000000\n#define LED_COLOR_RED 0xFF0000\n#define LED_COLOR_GREEN 0x00FF00\n#define LED_COLOR_BLUE 0x0000FF\n#define LED_COLOR_CORAL 0xFF9963\n#define LED_COLOR_GOLD 0xCCAD00\n#define LED_COLOR_INDIGO 0xc100e6\n#define LED_COLOR_LIGHTBLUE 0x3399FF\n#define LED_COLOR_LIGHTGREEN 0x58D68D\n#define LED_COLOR_ORANGE 0xFFA500\n#define LED_COLOR_PURPLE 0xb000b0\n#define LED_COLOR_YELLOW 0xDCDC00\n#define LED_COLOR_WHITE 0xDDDDDD\n#define LED_COLOR_EYES 0xDD6666\n#define TOOTH_HUE_GOLD 0.142 //51.0 / 360.0\n\n\ntypedef struct {\n uint8_t frames;\n uint8_t frame;\n uint8_t *rgb_data;\n uint16_t size;\n} led_anim_t;\n\ntypedef struct {\n uint8_t red;\n uint8_t green;\n uint8_t blue;\n} led_rgb_t;\n\n#define UTIL_LED_ANIM_INIT(anim) \\n uint8_t rgb_data[6000]; \\n led_anim_t anim = { 0,0, rgb_data, 0 };\n\nextern uint8_t led_order_cw[];\nextern uint8_t led_matrix[];\n\nextern uint32_t util_led_565_to_rgb(uint16_t color);\nextern void util_led_brightness_set(uint8_t brightness);\nextern void util_led_clear();\nextern led_rgb_t util_led_get(uint8_t index);\nextern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);\nextern uint32_t util_led_hsv_to_rgb(float H, float S, float V);\nextern bool util_led_has_apa102();\nextern void util_led_init();\nextern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);\nextern void util_led_play_rgb_frame(led_anim_t *p_anim);\nextern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);\nextern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);\nextern void util_led_set_all_rgb(uint32_t rgb);\nextern void util_led_set_rgb(uint32_t index, uint32_t rgb);\nextern void util_led_show();\n\n#endif" (#ifndef) "#ifndef" (identifier) "UTIL_LED_H_" (preproc_def) "#define UTIL_LED_H_\n" (#define) "#define" (identifier) "UTIL_LED_H_" (preproc_def) "#define LED_COUNT 14\n" (#define) "#define" (identifier) "LED_COUNT" (preproc_arg) "14" (preproc_def) "#define LED_RGB_COUNT 20\n" (#define) "#define" (identifier) "LED_RGB_COUNT" (preproc_arg) "20" (preproc_def) "#define LED_TOOTH_INDEX 13\n" (#define) "#define" (identifier) "LED_TOOTH_INDEX" (preproc_arg) "13" (preproc_def) "#define LED_MATRIX_W 4\n" (#define) "#define" (identifier) "LED_MATRIX_W" (preproc_arg) "4" (preproc_def) "#define LED_MATRIX_H 3\n" (#define) "#define" (identifier) "LED_MATRIX_H" (preproc_arg) "3" (preproc_def) "#define LED_MATRIX_COUNT (LED_MATRIX_W * LED_MATRIX_H)\n" (#define) "#define" (identifier) "LED_MATRIX_COUNT" (preproc_arg) "(LED_MATRIX_W * LED_MATRIX_H)" (preproc_def) "#define LED_MATRIX_ROWS {{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n" (#define) "#define" (identifier) "LED_MATRIX_ROWS" (preproc_arg) "{{0,1,2,3},{4,5,6,7},{8,9,10,11}}" (comment) "//Mapping of RGB order to LED index from RGB files for MBP3+ badges" (preproc_def) "#define LED_MATRIX_FULL_MAPPING { \\n 12, 0xFF, 0xFF, 13, 0xFF, \\n 0, 1, 2, 3, 14, \\n 4, 5, 6, 7, 0xFF, \\n 8, 9, 10, 11, 0xFF, \\n }\n" (#define) "#define" (identifier) "LED_MATRIX_FULL_MAPPING" (preproc_arg) "{ \\n 12, 0xFF, 0xFF, 13, 0xFF, \\n 0, 1, 2, 3, 14, \\n 4, 5, 6, 7, 0xFF, \\n 8, 9, 10, 11, 0xFF, \\n }" (preproc_def) "#define LED_MATRIX_FULL_ROW_COUNT 4\n" (#define) "#define" (identifier) "LED_MATRIX_FULL_ROW_COUNT" (preproc_arg) "4" (preproc_def) "#define LED_MATRIX_FULL_COL_COUNT 5\n" (#define) "#define" (identifier) "LED_MATRIX_FULL_COL_COUNT" (preproc_arg) "5" (preproc_def) "#define LED_ORDER_CW { 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n" (#define) "#define" (identifier) "LED_ORDER_CW" (preproc_arg) "{ 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }" (preproc_def) "#define LED_ORDER_CW_COUNT 10\n" (#define) "#define" (identifier) "LED_ORDER_CW_COUNT" (preproc_arg) "10" (preproc_def) "#define LED_COLOR_BLACK 0x000000\n" (#define) "#define" (identifier) "LED_COLOR_BLACK" (preproc_arg) "0x000000" (preproc_def) "#define LED_COLOR_RED 0xFF0000\n" (#define) "#define" (identifier) "LED_COLOR_RED" (preproc_arg) "0xFF0000" (preproc_def) "#define LED_COLOR_GREEN 0x00FF00\n" (#define) "#define" (identifier) "LED_COLOR_GREEN" (preproc_arg) "0x00FF00" (preproc_def) "#define LED_COLOR_BLUE 0x0000FF\n" (#define) "#define" (identifier) "LED_COLOR_BLUE" (preproc_arg) "0x0000FF" (preproc_def) "#define LED_COLOR_CORAL 0xFF9963\n" (#define) "#define" (identifier) "LED_COLOR_CORAL" (preproc_arg) "0xFF9963" (preproc_def) "#define LED_COLOR_GOLD 0xCCAD00\n" (#define) "#define" (identifier) "LED_COLOR_GOLD" (preproc_arg) "0xCCAD00" (preproc_def) "#define LED_COLOR_INDIGO 0xc100e6\n" (#define) "#define" (identifier) "LED_COLOR_INDIGO" (preproc_arg) "0xc100e6" (preproc_def) "#define LED_COLOR_LIGHTBLUE 0x3399FF\n" (#define) "#define" (identifier) "LED_COLOR_LIGHTBLUE" (preproc_arg) "0x3399FF" (preproc_def) "#define LED_COLOR_LIGHTGREEN 0x58D68D\n" (#define) "#define" (identifier) "LED_COLOR_LIGHTGREEN" (preproc_arg) "0x58D68D" (preproc_def) "#define LED_COLOR_ORANGE 0xFFA500\n" (#define) "#define" (identifier) "LED_COLOR_ORANGE" (preproc_arg) "0xFFA500" (preproc_def) "#define LED_COLOR_PURPLE 0xb000b0\n" (#define) "#define" (identifier) "LED_COLOR_PURPLE" (preproc_arg) "0xb000b0" (preproc_def) "#define LED_COLOR_YELLOW 0xDCDC00\n" (#define) "#define" (identifier) "LED_COLOR_YELLOW" (preproc_arg) "0xDCDC00" (preproc_def) "#define LED_COLOR_WHITE 0xDDDDDD\n" (#define) "#define" (identifier) "LED_COLOR_WHITE" (preproc_arg) "0xDDDDDD" (preproc_def) "#define LED_COLOR_EYES 0xDD6666\n" (#define) "#define" (identifier) "LED_COLOR_EYES" (preproc_arg) "0xDD6666" (preproc_def) "#define TOOTH_HUE_GOLD 0.142 //51.0 / 360.0\n" (#define) "#define" (identifier) "TOOTH_HUE_GOLD" (preproc_arg) "0.142 //51.0 / 360.0" (type_definition) "typedef struct {\n uint8_t frames;\n uint8_t frame;\n uint8_t *rgb_data;\n uint16_t size;\n} led_anim_t;" (typedef) "typedef" (struct_specifier) "struct {\n uint8_t frames;\n uint8_t frame;\n uint8_t *rgb_data;\n uint16_t size;\n}" (struct) "struct" (field_declaration_list) "{\n uint8_t frames;\n uint8_t frame;\n uint8_t *rgb_data;\n uint16_t size;\n}" ({) "{" (field_declaration) "uint8_t frames;" (primitive_type) "uint8_t" (field_identifier) "frames" (;) ";" (field_declaration) "uint8_t frame;" (primitive_type) "uint8_t" (field_identifier) "frame" (;) ";" (field_declaration) "uint8_t *rgb_data;" (primitive_type) "uint8_t" (pointer_declarator) "*rgb_data" (*) "*" (field_identifier) "rgb_data" (;) ";" (field_declaration) "uint16_t size;" (primitive_type) "uint16_t" (field_identifier) "size" (;) ";" (}) "}" (type_identifier) "led_anim_t" (;) ";" (type_definition) "typedef struct {\n uint8_t red;\n uint8_t green;\n uint8_t blue;\n} led_rgb_t;" (typedef) "typedef" (struct_specifier) "struct {\n uint8_t red;\n uint8_t green;\n uint8_t blue;\n}" (struct) "struct" (field_declaration_list) "{\n uint8_t red;\n uint8_t green;\n uint8_t blue;\n}" ({) "{" (field_declaration) "uint8_t red;" (primitive_type) "uint8_t" (field_identifier) "red" (;) ";" (field_declaration) "uint8_t green;" (primitive_type) "uint8_t" (field_identifier) "green" (;) ";" (field_declaration) "uint8_t blue;" (primitive_type) "uint8_t" (field_identifier) "blue" (;) ";" (}) "}" (type_identifier) "led_rgb_t" (;) ";" (preproc_function_def) "#define UTIL_LED_ANIM_INIT(anim) \\n uint8_t rgb_data[6000]; \\n led_anim_t anim = { 0,0, rgb_data, 0 };\n" (#define) "#define" (identifier) "UTIL_LED_ANIM_INIT" (preproc_params) "(anim)" (() "(" (identifier) "anim" ()) ")" (preproc_arg) "uint8_t rgb_data[6000]; \\n led_anim_t anim = { 0,0, rgb_data, 0 };" (declaration) "extern uint8_t led_order_cw[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint8_t" (array_declarator) "led_order_cw[]" (identifier) "led_order_cw" ([) "[" (]) "]" (;) ";" (declaration) "extern uint8_t led_matrix[];" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint8_t" (array_declarator) "led_matrix[]" (identifier) "led_matrix" ([) "[" (]) "]" (;) ";" (declaration) "extern uint32_t util_led_565_to_rgb(uint16_t color);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (function_declarator) "util_led_565_to_rgb(uint16_t color)" (identifier) "util_led_565_to_rgb" (parameter_list) "(uint16_t color)" (() "(" (parameter_declaration) "uint16_t color" (primitive_type) "uint16_t" (identifier) "color" ()) ")" (;) ";" (declaration) "extern void util_led_brightness_set(uint8_t brightness);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_brightness_set(uint8_t brightness)" (identifier) "util_led_brightness_set" (parameter_list) "(uint8_t brightness)" (() "(" (parameter_declaration) "uint8_t brightness" (primitive_type) "uint8_t" (identifier) "brightness" ()) ")" (;) ";" (declaration) "extern void util_led_clear();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_clear()" (identifier) "util_led_clear" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern led_rgb_t util_led_get(uint8_t index);" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "led_rgb_t" (function_declarator) "util_led_get(uint8_t index)" (identifier) "util_led_get" (parameter_list) "(uint8_t index)" (() "(" (parameter_declaration) "uint8_t index" (primitive_type) "uint8_t" (identifier) "index" ()) ")" (;) ";" (declaration) "extern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (function_declarator) "util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue)" (identifier) "util_led_to_rgb" (parameter_list) "(uint8_t red, uint8_t green, uint8_t blue)" (() "(" (parameter_declaration) "uint8_t red" (primitive_type) "uint8_t" (identifier) "red" (,) "," (parameter_declaration) "uint8_t green" (primitive_type) "uint8_t" (identifier) "green" (,) "," (parameter_declaration) "uint8_t blue" (primitive_type) "uint8_t" (identifier) "blue" ()) ")" (;) ";" (declaration) "extern uint32_t util_led_hsv_to_rgb(float H, float S, float V);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (function_declarator) "util_led_hsv_to_rgb(float H, float S, float V)" (identifier) "util_led_hsv_to_rgb" (parameter_list) "(float H, float S, float V)" (() "(" (parameter_declaration) "float H" (primitive_type) "float" (identifier) "H" (,) "," (parameter_declaration) "float S" (primitive_type) "float" (identifier) "S" (,) "," (parameter_declaration) "float V" (primitive_type) "float" (identifier) "V" ()) ")" (;) ";" (declaration) "extern bool util_led_has_apa102();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "bool" (function_declarator) "util_led_has_apa102()" (identifier) "util_led_has_apa102" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void util_led_init();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_init()" (identifier) "util_led_init" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "extern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_load_rgb_file(char *filename, led_anim_t *p_anim)" (identifier) "util_led_load_rgb_file" (parameter_list) "(char *filename, led_anim_t *p_anim)" (() "(" (parameter_declaration) "char *filename" (primitive_type) "char" (pointer_declarator) "*filename" (*) "*" (identifier) "filename" (,) "," (parameter_declaration) "led_anim_t *p_anim" (type_identifier) "led_anim_t" (pointer_declarator) "*p_anim" (*) "*" (identifier) "p_anim" ()) ")" (;) ";" (declaration) "extern void util_led_play_rgb_frame(led_anim_t *p_anim);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_play_rgb_frame(led_anim_t *p_anim)" (identifier) "util_led_play_rgb_frame" (parameter_list) "(led_anim_t *p_anim)" (() "(" (parameter_declaration) "led_anim_t *p_anim" (type_identifier) "led_anim_t" (pointer_declarator) "*p_anim" (*) "*" (identifier) "p_anim" ()) ")" (;) ";" (declaration) "extern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b)" (identifier) "util_led_set" (parameter_list) "(uint32_t index, uint8_t red, uint8_t g, uint8_t b)" (() "(" (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" (,) "," (parameter_declaration) "uint8_t red" (primitive_type) "uint8_t" (identifier) "red" (,) "," (parameter_declaration) "uint8_t g" (primitive_type) "uint8_t" (identifier) "g" (,) "," (parameter_declaration) "uint8_t b" (primitive_type) "uint8_t" (identifier) "b" ()) ")" (;) ";" (declaration) "extern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_set_all(uint8_t red, uint8_t green, uint8_t blue)" (identifier) "util_led_set_all" (parameter_list) "(uint8_t red, uint8_t green, uint8_t blue)" (() "(" (parameter_declaration) "uint8_t red" (primitive_type) "uint8_t" (identifier) "red" (,) "," (parameter_declaration) "uint8_t green" (primitive_type) "uint8_t" (identifier) "green" (,) "," (parameter_declaration) "uint8_t blue" (primitive_type) "uint8_t" (identifier) "blue" ()) ")" (;) ";" (declaration) "extern void util_led_set_all_rgb(uint32_t rgb);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_set_all_rgb(uint32_t rgb)" (identifier) "util_led_set_all_rgb" (parameter_list) "(uint32_t rgb)" (() "(" (parameter_declaration) "uint32_t rgb" (primitive_type) "uint32_t" (identifier) "rgb" ()) ")" (;) ";" (declaration) "extern void util_led_set_rgb(uint32_t index, uint32_t rgb);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_set_rgb(uint32_t index, uint32_t rgb)" (identifier) "util_led_set_rgb" (parameter_list) "(uint32_t index, uint32_t rgb)" (() "(" (parameter_declaration) "uint32_t index" (primitive_type) "uint32_t" (identifier) "index" (,) "," (parameter_declaration) "uint32_t rgb" (primitive_type) "uint32_t" (identifier) "rgb" ()) ")" (;) ";" (declaration) "extern void util_led_show();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "util_led_show()" (identifier) "util_led_show" (parameter_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* UTIL_LED_H_ */"
426
0
{"language": "c", "success": true, "metadata": {"lines": 94, "avg_line_length": 35.2, "nodes": 343, "errors": 0, "source_hash": "6270a81effaca136c738781069f5f0505cc47476d4ad6789347dbf6f163ec0a7", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef UTIL_LED_H_\n#define UTIL_LED_H_\n\n#define LED_COUNT\t\t\t\t\t14\n#define LED_RGB_COUNT\t\t\t\t20\n#define LED_TOOTH_INDEX\t\t\t\t13\n#define LED_MATRIX_W\t\t\t\t4\n#define LED_MATRIX_H\t\t\t\t3\n#define LED_MATRIX_COUNT\t\t\t(LED_MATRIX_W * LED_MATRIX_H)\n#define LED_MATRIX_ROWS\t\t\t\t{{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n\n//Mapping of RGB order to LED index from RGB files for MBP3+ badges\n#define LED_MATRIX_FULL_MAPPING \t{\t\\\n\t\t\t\t\t\t\t\t\t12, 0xFF, 0xFF, 13, 0xFF, \\\n\t\t\t\t\t\t\t\t\t0, 1, 2, 3, 14, \\\n\t\t\t\t\t\t\t\t\t4, 5, 6, 7, 0xFF, \\\n\t\t\t\t\t\t\t\t\t8, 9, 10, 11, 0xFF, \\\n\t\t\t\t\t\t\t\t\t}\n#define LED_MATRIX_FULL_ROW_COUNT\t4\n#define LED_MATRIX_FULL_COL_COUNT\t5\n\n#define LED_ORDER_CW\t\t\t \t{ 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n#define LED_ORDER_CW_COUNT\t\t\t10\n\n#define LED_COLOR_BLACK\t\t\t\t0x000000\n#define LED_COLOR_RED\t\t\t\t0xFF0000\n#define LED_COLOR_GREEN\t\t\t\t0x00FF00\n#define LED_COLOR_BLUE\t\t\t\t0x0000FF\n#define LED_COLOR_CORAL\t\t\t\t0xFF9963\n#define LED_COLOR_GOLD\t\t\t\t0xCCAD00\n#define LED_COLOR_INDIGO\t\t\t0xc100e6\n#define LED_COLOR_LIGHTBLUE\t\t\t0x3399FF\n#define LED_COLOR_LIGHTGREEN\t\t\t0x58D68D\n#define LED_COLOR_ORANGE\t\t\t0xFFA500\n#define LED_COLOR_PURPLE\t\t\t0xb000b0\n#define LED_COLOR_YELLOW\t\t\t0xDCDC00\n#define LED_COLOR_WHITE\t\t\t\t0xDDDDDD\n#define LED_COLOR_EYES\t\t\t\t0xDD6666\n#define TOOTH_HUE_GOLD\t\t\t\t0.142 //51.0 / 360.0\n\n\ntypedef struct {\n\tuint8_t frames;\n\tuint8_t frame;\n\tuint8_t *rgb_data;\n\tuint16_t size;\n} led_anim_t;\n\ntypedef struct {\n\tuint8_t red;\n\tuint8_t green;\n\tuint8_t blue;\n} led_rgb_t;\n\n#define UTIL_LED_ANIM_INIT(anim)\t\t\t\t\t\\\n\tuint8_t rgb_data[6000];\t\t\t\t\t\\\n led_anim_t anim = { 0,0, rgb_data, 0 };\n\nextern uint8_t led_order_cw[];\nextern uint8_t led_matrix[];\n\nextern uint32_t util_led_565_to_rgb(uint16_t color);\nextern void util_led_brightness_set(uint8_t brightness);\nextern void util_led_clear();\nextern led_rgb_t util_led_get(uint8_t index);\nextern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);\nextern uint32_t util_led_hsv_to_rgb(float H, float S, float V);\nextern bool util_led_has_apa102();\nextern void util_led_init();\nextern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);\nextern void util_led_play_rgb_frame(led_anim_t *p_anim);\nextern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);\nextern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);\nextern void util_led_set_all_rgb(uint32_t rgb);\nextern void util_led_set_rgb(uint32_t index, uint32_t rgb);\nextern void util_led_show();\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98, 102, 106, 110, 114, 133, 147, 153, 159, 165, 175, 185, 192, 202, 218, 234, 241, 248, 265, 277, 296, 312, 322, 335, 342], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 107, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 2, "type": "identifier", "text": "UTIL_LED_H_", "parent": 0, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define UTIL_LED_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 5, "type": "identifier", "text": "UTIL_LED_H_", "parent": 3, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 19}}, {"id": 6, "type": "preproc_def", "text": "#define LED_COUNT\t\t\t\t\t14\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 8, "type": "identifier", "text": "LED_COUNT", "parent": 6, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 17}}, {"id": 9, "type": "preproc_arg", "text": "14", "parent": 6, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 24}}, {"id": 10, "type": "preproc_def", "text": "#define LED_RGB_COUNT\t\t\t\t20\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 12, "type": "identifier", "text": "LED_RGB_COUNT", "parent": 10, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 21}}, {"id": 13, "type": "preproc_arg", "text": "20", "parent": 10, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 14, "type": "preproc_def", "text": "#define LED_TOOTH_INDEX\t\t\t\t13\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 16, "type": "identifier", "text": "LED_TOOTH_INDEX", "parent": 14, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 23}}, {"id": 17, "type": "preproc_arg", "text": "13", "parent": 14, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 29}}, {"id": 18, "type": "preproc_def", "text": "#define LED_MATRIX_W\t\t\t\t4\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 20, "type": "identifier", "text": "LED_MATRIX_W", "parent": 18, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 20}}, {"id": 21, "type": "preproc_arg", "text": "4", "parent": 18, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 25}}, {"id": 22, "type": "preproc_def", "text": "#define LED_MATRIX_H\t\t\t\t3\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 24, "type": "identifier", "text": "LED_MATRIX_H", "parent": 22, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 20}}, {"id": 25, "type": "preproc_arg", "text": "3", "parent": 22, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 25}}, {"id": 26, "type": "preproc_def", "text": "#define LED_MATRIX_COUNT\t\t\t(LED_MATRIX_W * LED_MATRIX_H)\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 28, "type": "identifier", "text": "LED_MATRIX_COUNT", "parent": 26, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 24}}, {"id": 29, "type": "preproc_arg", "text": "(LED_MATRIX_W * LED_MATRIX_H)", "parent": 26, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 56}}, {"id": 30, "type": "preproc_def", "text": "#define LED_MATRIX_ROWS\t\t\t\t{{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n", "parent": 0, "children": [31, 32, 33], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 32, "type": "identifier", "text": "LED_MATRIX_ROWS", "parent": 30, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 33, "type": "preproc_arg", "text": "{{0,1,2,3},{4,5,6,7},{8,9,10,11}}", "parent": 30, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 60}}, {"id": 34, "type": "preproc_def", "text": "#define LED_MATRIX_FULL_MAPPING \t{\t\\\n\t\t\t\t\t\t\t\t\t12, 0xFF, 0xFF, 13, 0xFF, \\\n\t\t\t\t\t\t\t\t\t0, 1, 2, 3, 14, \\\n\t\t\t\t\t\t\t\t\t4, 5, 6, 7, 0xFF, \\\n\t\t\t\t\t\t\t\t\t8, 9, 10, 11, 0xFF, \\\n\t\t\t\t\t\t\t\t\t}\n", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 36, "type": "identifier", "text": "LED_MATRIX_FULL_MAPPING", "parent": 34, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 31}}, {"id": 37, "type": "preproc_arg", "text": "{\t\\\n\t\t\t\t\t\t\t\t\t12, 0xFF, 0xFF, 13, 0xFF, \\\n\t\t\t\t\t\t\t\t\t0, 1, 2, 3, 14, \\\n\t\t\t\t\t\t\t\t\t4, 5, 6, 7, 0xFF, \\\n\t\t\t\t\t\t\t\t\t8, 9, 10, 11, 0xFF, \\\n\t\t\t\t\t\t\t\t\t}", "parent": 34, "children": [], "start_point": {"row": 42, "column": 34}, "end_point": {"row": 47, "column": 10}}, {"id": 38, "type": "preproc_def", "text": "#define LED_MATRIX_FULL_ROW_COUNT\t4\n", "parent": 0, "children": [39, 40, 41], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 40, "type": "identifier", "text": "LED_MATRIX_FULL_ROW_COUNT", "parent": 38, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 33}}, {"id": 41, "type": "preproc_arg", "text": "4", "parent": 38, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 35}}, {"id": 42, "type": "preproc_def", "text": "#define LED_MATRIX_FULL_COL_COUNT\t5\n", "parent": 0, "children": [43, 44, 45], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 44, "type": "identifier", "text": "LED_MATRIX_FULL_COL_COUNT", "parent": 42, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 33}}, {"id": 45, "type": "preproc_arg", "text": "5", "parent": 42, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 35}}, {"id": 46, "type": "preproc_def", "text": "#define LED_ORDER_CW\t\t\t \t{ 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n", "parent": 0, "children": [47, 48, 49], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 48, "type": "identifier", "text": "LED_ORDER_CW", "parent": 46, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 20}}, {"id": 49, "type": "preproc_arg", "text": "{ 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }", "parent": 46, "children": [], "start_point": {"row": 51, "column": 25}, "end_point": {"row": 51, "column": 59}}, {"id": 50, "type": "preproc_def", "text": "#define LED_ORDER_CW_COUNT\t\t\t10\n", "parent": 0, "children": [51, 52, 53], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 52, "type": "identifier", "text": "LED_ORDER_CW_COUNT", "parent": 50, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 26}}, {"id": 53, "type": "preproc_arg", "text": "10", "parent": 50, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 31}}, {"id": 54, "type": "preproc_def", "text": "#define LED_COLOR_BLACK\t\t\t\t0x000000\n", "parent": 0, "children": [55, 56, 57], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 56, "type": "identifier", "text": "LED_COLOR_BLACK", "parent": 54, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 23}}, {"id": 57, "type": "preproc_arg", "text": "0x000000", "parent": 54, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 35}}, {"id": 58, "type": "preproc_def", "text": "#define LED_COLOR_RED\t\t\t\t0xFF0000\n", "parent": 0, "children": [59, 60, 61], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 60, "type": "identifier", "text": "LED_COLOR_RED", "parent": 58, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 21}}, {"id": 61, "type": "preproc_arg", "text": "0xFF0000", "parent": 58, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 33}}, {"id": 62, "type": "preproc_def", "text": "#define LED_COLOR_GREEN\t\t\t\t0x00FF00\n", "parent": 0, "children": [63, 64, 65], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 7}}, {"id": 64, "type": "identifier", "text": "LED_COLOR_GREEN", "parent": 62, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 23}}, {"id": 65, "type": "preproc_arg", "text": "0x00FF00", "parent": 62, "children": [], "start_point": {"row": 56, "column": 27}, "end_point": {"row": 56, "column": 35}}, {"id": 66, "type": "preproc_def", "text": "#define LED_COLOR_BLUE\t\t\t\t0x0000FF\n", "parent": 0, "children": [67, 68, 69], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 68, "type": "identifier", "text": "LED_COLOR_BLUE", "parent": 66, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 22}}, {"id": 69, "type": "preproc_arg", "text": "0x0000FF", "parent": 66, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 34}}, {"id": 70, "type": "preproc_def", "text": "#define LED_COLOR_CORAL\t\t\t\t0xFF9963\n", "parent": 0, "children": [71, 72, 73], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 72, "type": "identifier", "text": "LED_COLOR_CORAL", "parent": 70, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 23}}, {"id": 73, "type": "preproc_arg", "text": "0xFF9963", "parent": 70, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 35}}, {"id": 74, "type": "preproc_def", "text": "#define LED_COLOR_GOLD\t\t\t\t0xCCAD00\n", "parent": 0, "children": [75, 76, 77], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 76, "type": "identifier", "text": "LED_COLOR_GOLD", "parent": 74, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 22}}, {"id": 77, "type": "preproc_arg", "text": "0xCCAD00", "parent": 74, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 34}}, {"id": 78, "type": "preproc_def", "text": "#define LED_COLOR_INDIGO\t\t\t0xc100e6\n", "parent": 0, "children": [79, 80, 81], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 80, "type": "identifier", "text": "LED_COLOR_INDIGO", "parent": 78, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 24}}, {"id": 81, "type": "preproc_arg", "text": "0xc100e6", "parent": 78, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 35}}, {"id": 82, "type": "preproc_def", "text": "#define LED_COLOR_LIGHTBLUE\t\t\t0x3399FF\n", "parent": 0, "children": [83, 84, 85], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 84, "type": "identifier", "text": "LED_COLOR_LIGHTBLUE", "parent": 82, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 27}}, {"id": 85, "type": "preproc_arg", "text": "0x3399FF", "parent": 82, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 38}}, {"id": 86, "type": "preproc_def", "text": "#define LED_COLOR_LIGHTGREEN\t\t\t0x58D68D\n", "parent": 0, "children": [87, 88, 89], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 88, "type": "identifier", "text": "LED_COLOR_LIGHTGREEN", "parent": 86, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 28}}, {"id": 89, "type": "preproc_arg", "text": "0x58D68D", "parent": 86, "children": [], "start_point": {"row": 62, "column": 31}, "end_point": {"row": 62, "column": 39}}, {"id": 90, "type": "preproc_def", "text": "#define LED_COLOR_ORANGE\t\t\t0xFFA500\n", "parent": 0, "children": [91, 92, 93], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 91, "type": "#define", "text": "#define", "parent": 90, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 92, "type": "identifier", "text": "LED_COLOR_ORANGE", "parent": 90, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 24}}, {"id": 93, "type": "preproc_arg", "text": "0xFFA500", "parent": 90, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 35}}, {"id": 94, "type": "preproc_def", "text": "#define LED_COLOR_PURPLE\t\t\t0xb000b0\n", "parent": 0, "children": [95, 96, 97], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 96, "type": "identifier", "text": "LED_COLOR_PURPLE", "parent": 94, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 24}}, {"id": 97, "type": "preproc_arg", "text": "0xb000b0", "parent": 94, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 35}}, {"id": 98, "type": "preproc_def", "text": "#define LED_COLOR_YELLOW\t\t\t0xDCDC00\n", "parent": 0, "children": [99, 100, 101], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 99, "type": "#define", "text": "#define", "parent": 98, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 100, "type": "identifier", "text": "LED_COLOR_YELLOW", "parent": 98, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 24}}, {"id": 101, "type": "preproc_arg", "text": "0xDCDC00", "parent": 98, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 35}}, {"id": 102, "type": "preproc_def", "text": "#define LED_COLOR_WHITE\t\t\t\t0xDDDDDD\n", "parent": 0, "children": [103, 104, 105], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 104, "type": "identifier", "text": "LED_COLOR_WHITE", "parent": 102, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 23}}, {"id": 105, "type": "preproc_arg", "text": "0xDDDDDD", "parent": 102, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 35}}, {"id": 106, "type": "preproc_def", "text": "#define LED_COLOR_EYES\t\t\t\t0xDD6666\n", "parent": 0, "children": [107, 108, 109], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 107, "type": "#define", "text": "#define", "parent": 106, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 108, "type": "identifier", "text": "LED_COLOR_EYES", "parent": 106, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 22}}, {"id": 109, "type": "preproc_arg", "text": "0xDD6666", "parent": 106, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 34}}, {"id": 110, "type": "preproc_def", "text": "#define TOOTH_HUE_GOLD\t\t\t\t0.142 //51.0 / 360.0\n", "parent": 0, "children": [111, 112, 113], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 111, "type": "#define", "text": "#define", "parent": 110, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 112, "type": "identifier", "text": "TOOTH_HUE_GOLD", "parent": 110, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 22}}, {"id": 113, "type": "preproc_arg", "text": "0.142 //51.0 / 360.0", "parent": 110, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 46}}, {"id": 114, "type": "type_definition", "text": "typedef struct {\n\tuint8_t frames;\n\tuint8_t frame;\n\tuint8_t *rgb_data;\n\tuint16_t size;\n} led_anim_t;", "parent": 0, "children": [115, 116, 132], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 76, "column": 13}}, {"id": 115, "type": "typedef", "text": "typedef", "parent": 114, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 116, "type": "struct_specifier", "text": "struct {\n\tuint8_t frames;\n\tuint8_t frame;\n\tuint8_t *rgb_data;\n\tuint16_t size;\n}", "parent": 114, "children": [117], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 76, "column": 1}}, {"id": 117, "type": "struct", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 118, "type": "field_declaration", "text": "uint8_t frames;", "parent": 116, "children": [119, 120], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 16}}, {"id": 119, "type": "primitive_type", "text": "uint8_t", "parent": 118, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 8}}, {"id": 120, "type": "field_identifier", "text": "frames", "parent": 118, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 15}}, {"id": 121, "type": "field_declaration", "text": "uint8_t frame;", "parent": 116, "children": [122, 123], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 15}}, {"id": 122, "type": "primitive_type", "text": "uint8_t", "parent": 121, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 8}}, {"id": 123, "type": "field_identifier", "text": "frame", "parent": 121, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 14}}, {"id": 124, "type": "field_declaration", "text": "uint8_t *rgb_data;", "parent": 116, "children": [125, 126], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 19}}, {"id": 125, "type": "primitive_type", "text": "uint8_t", "parent": 124, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 8}}, {"id": 126, "type": "pointer_declarator", "text": "*rgb_data", "parent": 124, "children": [127, 128], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 18}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 10}}, {"id": 128, "type": "field_identifier", "text": "rgb_data", "parent": 126, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 18}}, {"id": 129, "type": "field_declaration", "text": "uint16_t size;", "parent": 116, "children": [130, 131], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 15}}, {"id": 130, "type": "primitive_type", "text": "uint16_t", "parent": 129, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 9}}, {"id": 131, "type": "field_identifier", "text": "size", "parent": 129, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 14}}, {"id": 132, "type": "type_identifier", "text": "led_anim_t", "parent": 114, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 12}}, {"id": 133, "type": "type_definition", "text": "typedef struct {\n\tuint8_t red;\n\tuint8_t green;\n\tuint8_t blue;\n} led_rgb_t;", "parent": 0, "children": [134, 135, 146], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 82, "column": 12}}, {"id": 134, "type": "typedef", "text": "typedef", "parent": 133, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 7}}, {"id": 135, "type": "struct_specifier", "text": "struct {\n\tuint8_t red;\n\tuint8_t green;\n\tuint8_t blue;\n}", "parent": 133, "children": [136], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 82, "column": 1}}, {"id": 136, "type": "struct", "text": "struct", "parent": 135, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 14}}, {"id": 137, "type": "field_declaration", "text": "uint8_t red;", "parent": 135, "children": [138, 139], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 13}}, {"id": 138, "type": "primitive_type", "text": "uint8_t", "parent": 137, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 8}}, {"id": 139, "type": "field_identifier", "text": "red", "parent": 137, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 12}}, {"id": 140, "type": "field_declaration", "text": "uint8_t green;", "parent": 135, "children": [141, 142], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 15}}, {"id": 141, "type": "primitive_type", "text": "uint8_t", "parent": 140, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 8}}, {"id": 142, "type": "field_identifier", "text": "green", "parent": 140, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 14}}, {"id": 143, "type": "field_declaration", "text": "uint8_t blue;", "parent": 135, "children": [144, 145], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 14}}, {"id": 144, "type": "primitive_type", "text": "uint8_t", "parent": 143, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 8}}, {"id": 145, "type": "field_identifier", "text": "blue", "parent": 143, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 13}}, {"id": 146, "type": "type_identifier", "text": "led_rgb_t", "parent": 133, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 11}}, {"id": 147, "type": "preproc_function_def", "text": "#define UTIL_LED_ANIM_INIT(anim)\t\t\t\t\t\\\n\tuint8_t rgb_data[6000];\t\t\t\t\t\\\n led_anim_t anim = { 0,0, rgb_data, 0 };\n", "parent": 0, "children": [148, 149, 150, 152], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 87, "column": 0}}, {"id": 148, "type": "#define", "text": "#define", "parent": 147, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 7}}, {"id": 149, "type": "identifier", "text": "UTIL_LED_ANIM_INIT", "parent": 147, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 26}}, {"id": 150, "type": "preproc_params", "text": "(anim)", "parent": 147, "children": [151], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 32}}, {"id": 151, "type": "identifier", "text": "anim", "parent": 150, "children": [], "start_point": {"row": 84, "column": 27}, "end_point": {"row": 84, "column": 31}}, {"id": 152, "type": "preproc_arg", "text": "uint8_t rgb_data[6000];\t\t\t\t\t\\\n led_anim_t anim = { 0,0, rgb_data, 0 };", "parent": 147, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 86, "column": 43}}, {"id": 153, "type": "declaration", "text": "extern uint8_t led_order_cw[];", "parent": 0, "children": [154, 156, 157], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 30}}, {"id": 154, "type": "storage_class_specifier", "text": "extern", "parent": 153, "children": [155], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 155, "type": "extern", "text": "extern", "parent": 154, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 156, "type": "primitive_type", "text": "uint8_t", "parent": 153, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 14}}, {"id": 157, "type": "array_declarator", "text": "led_order_cw[]", "parent": 153, "children": [158], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 29}}, {"id": 158, "type": "identifier", "text": "led_order_cw", "parent": 157, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 27}}, {"id": 159, "type": "declaration", "text": "extern uint8_t led_matrix[];", "parent": 0, "children": [160, 162, 163], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 28}}, {"id": 160, "type": "storage_class_specifier", "text": "extern", "parent": 159, "children": [161], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 161, "type": "extern", "text": "extern", "parent": 160, "children": [], "start_point": {"row": 89, "column": 0}, "end_point": {"row": 89, "column": 6}}, {"id": 162, "type": "primitive_type", "text": "uint8_t", "parent": 159, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 14}}, {"id": 163, "type": "array_declarator", "text": "led_matrix[]", "parent": 159, "children": [164], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 27}}, {"id": 164, "type": "identifier", "text": "led_matrix", "parent": 163, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 25}}, {"id": 165, "type": "declaration", "text": "extern uint32_t util_led_565_to_rgb(uint16_t color);", "parent": 0, "children": [166, 168, 169], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 52}}, {"id": 166, "type": "storage_class_specifier", "text": "extern", "parent": 165, "children": [167], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 167, "type": "extern", "text": "extern", "parent": 166, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 6}}, {"id": 168, "type": "primitive_type", "text": "uint32_t", "parent": 165, "children": [], "start_point": {"row": 91, "column": 7}, "end_point": {"row": 91, "column": 15}}, {"id": 169, "type": "function_declarator", "text": "util_led_565_to_rgb(uint16_t color)", "parent": 165, "children": [170, 171], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 51}}, {"id": 170, "type": "identifier", "text": "util_led_565_to_rgb", "parent": 169, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 35}}, {"id": 171, "type": "parameter_list", "text": "(uint16_t color)", "parent": 169, "children": [172], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 51}}, {"id": 172, "type": "parameter_declaration", "text": "uint16_t color", "parent": 171, "children": [173, 174], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 50}}, {"id": 173, "type": "primitive_type", "text": "uint16_t", "parent": 172, "children": [], "start_point": {"row": 91, "column": 36}, "end_point": {"row": 91, "column": 44}}, {"id": 174, "type": "identifier", "text": "color", "parent": 172, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 50}}, {"id": 175, "type": "declaration", "text": "extern void util_led_brightness_set(uint8_t brightness);", "parent": 0, "children": [176, 178, 179], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 56}}, {"id": 176, "type": "storage_class_specifier", "text": "extern", "parent": 175, "children": [177], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}, {"id": 177, "type": "extern", "text": "extern", "parent": 176, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 6}}, {"id": 178, "type": "primitive_type", "text": "void", "parent": 175, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 11}}, {"id": 179, "type": "function_declarator", "text": "util_led_brightness_set(uint8_t brightness)", "parent": 175, "children": [180, 181], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 55}}, {"id": 180, "type": "identifier", "text": "util_led_brightness_set", "parent": 179, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 35}}, {"id": 181, "type": "parameter_list", "text": "(uint8_t brightness)", "parent": 179, "children": [182], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 55}}, {"id": 182, "type": "parameter_declaration", "text": "uint8_t brightness", "parent": 181, "children": [183, 184], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 54}}, {"id": 183, "type": "primitive_type", "text": "uint8_t", "parent": 182, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 43}}, {"id": 184, "type": "identifier", "text": "brightness", "parent": 182, "children": [], "start_point": {"row": 92, "column": 44}, "end_point": {"row": 92, "column": 54}}, {"id": 185, "type": "declaration", "text": "extern void util_led_clear();", "parent": 0, "children": [186, 188, 189], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 29}}, {"id": 186, "type": "storage_class_specifier", "text": "extern", "parent": 185, "children": [187], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 187, "type": "extern", "text": "extern", "parent": 186, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 6}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 185, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 11}}, {"id": 189, "type": "function_declarator", "text": "util_led_clear()", "parent": 185, "children": [190, 191], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 28}}, {"id": 190, "type": "identifier", "text": "util_led_clear", "parent": 189, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 26}}, {"id": 191, "type": "parameter_list", "text": "()", "parent": 189, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 28}}, {"id": 192, "type": "declaration", "text": "extern led_rgb_t util_led_get(uint8_t index);", "parent": 0, "children": [193, 195, 196], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 45}}, {"id": 193, "type": "storage_class_specifier", "text": "extern", "parent": 192, "children": [194], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 6}}, {"id": 194, "type": "extern", "text": "extern", "parent": 193, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 6}}, {"id": 195, "type": "type_identifier", "text": "led_rgb_t", "parent": 192, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 16}}, {"id": 196, "type": "function_declarator", "text": "util_led_get(uint8_t index)", "parent": 192, "children": [197, 198], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 44}}, {"id": 197, "type": "identifier", "text": "util_led_get", "parent": 196, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 29}}, {"id": 198, "type": "parameter_list", "text": "(uint8_t index)", "parent": 196, "children": [199], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 44}}, {"id": 199, "type": "parameter_declaration", "text": "uint8_t index", "parent": 198, "children": [200, 201], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 43}}, {"id": 200, "type": "primitive_type", "text": "uint8_t", "parent": 199, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 37}}, {"id": 201, "type": "identifier", "text": "index", "parent": 199, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 43}}, {"id": 202, "type": "declaration", "text": "extern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);", "parent": 0, "children": [203, 205, 206], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 74}}, {"id": 203, "type": "storage_class_specifier", "text": "extern", "parent": 202, "children": [204], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 204, "type": "extern", "text": "extern", "parent": 203, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 205, "type": "primitive_type", "text": "uint32_t", "parent": 202, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 15}}, {"id": 206, "type": "function_declarator", "text": "util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue)", "parent": 202, "children": [207, 208], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 73}}, {"id": 207, "type": "identifier", "text": "util_led_to_rgb", "parent": 206, "children": [], "start_point": {"row": 95, "column": 16}, "end_point": {"row": 95, "column": 31}}, {"id": 208, "type": "parameter_list", "text": "(uint8_t red, uint8_t green, uint8_t blue)", "parent": 206, "children": [209, 212, 215], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 73}}, {"id": 209, "type": "parameter_declaration", "text": "uint8_t red", "parent": 208, "children": [210, 211], "start_point": {"row": 95, "column": 32}, "end_point": {"row": 95, "column": 43}}, {"id": 210, "type": "primitive_type", "text": "uint8_t", "parent": 209, "children": [], "start_point": {"row": 95, "column": 32}, "end_point": {"row": 95, "column": 39}}, {"id": 211, "type": "identifier", "text": "red", "parent": 209, "children": [], "start_point": {"row": 95, "column": 40}, "end_point": {"row": 95, "column": 43}}, {"id": 212, "type": "parameter_declaration", "text": "uint8_t green", "parent": 208, "children": [213, 214], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 58}}, {"id": 213, "type": "primitive_type", "text": "uint8_t", "parent": 212, "children": [], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 52}}, {"id": 214, "type": "identifier", "text": "green", "parent": 212, "children": [], "start_point": {"row": 95, "column": 53}, "end_point": {"row": 95, "column": 58}}, {"id": 215, "type": "parameter_declaration", "text": "uint8_t blue", "parent": 208, "children": [216, 217], "start_point": {"row": 95, "column": 60}, "end_point": {"row": 95, "column": 72}}, {"id": 216, "type": "primitive_type", "text": "uint8_t", "parent": 215, "children": [], "start_point": {"row": 95, "column": 60}, "end_point": {"row": 95, "column": 67}}, {"id": 217, "type": "identifier", "text": "blue", "parent": 215, "children": [], "start_point": {"row": 95, "column": 68}, "end_point": {"row": 95, "column": 72}}, {"id": 218, "type": "declaration", "text": "extern uint32_t util_led_hsv_to_rgb(float H, float S, float V);", "parent": 0, "children": [219, 221, 222], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 63}}, {"id": 219, "type": "storage_class_specifier", "text": "extern", "parent": 218, "children": [220], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 220, "type": "extern", "text": "extern", "parent": 219, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 6}}, {"id": 221, "type": "primitive_type", "text": "uint32_t", "parent": 218, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 15}}, {"id": 222, "type": "function_declarator", "text": "util_led_hsv_to_rgb(float H, float S, float V)", "parent": 218, "children": [223, 224], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 62}}, {"id": 223, "type": "identifier", "text": "util_led_hsv_to_rgb", "parent": 222, "children": [], "start_point": {"row": 96, "column": 16}, "end_point": {"row": 96, "column": 35}}, {"id": 224, "type": "parameter_list", "text": "(float H, float S, float V)", "parent": 222, "children": [225, 228, 231], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 62}}, {"id": 225, "type": "parameter_declaration", "text": "float H", "parent": 224, "children": [226, 227], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 43}}, {"id": 226, "type": "primitive_type", "text": "float", "parent": 225, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 41}}, {"id": 227, "type": "identifier", "text": "H", "parent": 225, "children": [], "start_point": {"row": 96, "column": 42}, "end_point": {"row": 96, "column": 43}}, {"id": 228, "type": "parameter_declaration", "text": "float S", "parent": 224, "children": [229, 230], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 52}}, {"id": 229, "type": "primitive_type", "text": "float", "parent": 228, "children": [], "start_point": {"row": 96, "column": 45}, "end_point": {"row": 96, "column": 50}}, {"id": 230, "type": "identifier", "text": "S", "parent": 228, "children": [], "start_point": {"row": 96, "column": 51}, "end_point": {"row": 96, "column": 52}}, {"id": 231, "type": "parameter_declaration", "text": "float V", "parent": 224, "children": [232, 233], "start_point": {"row": 96, "column": 54}, "end_point": {"row": 96, "column": 61}}, {"id": 232, "type": "primitive_type", "text": "float", "parent": 231, "children": [], "start_point": {"row": 96, "column": 54}, "end_point": {"row": 96, "column": 59}}, {"id": 233, "type": "identifier", "text": "V", "parent": 231, "children": [], "start_point": {"row": 96, "column": 60}, "end_point": {"row": 96, "column": 61}}, {"id": 234, "type": "declaration", "text": "extern bool util_led_has_apa102();", "parent": 0, "children": [235, 237, 238], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 34}}, {"id": 235, "type": "storage_class_specifier", "text": "extern", "parent": 234, "children": [236], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 236, "type": "extern", "text": "extern", "parent": 235, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 6}}, {"id": 237, "type": "primitive_type", "text": "bool", "parent": 234, "children": [], "start_point": {"row": 97, "column": 7}, "end_point": {"row": 97, "column": 11}}, {"id": 238, "type": "function_declarator", "text": "util_led_has_apa102()", "parent": 234, "children": [239, 240], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 33}}, {"id": 239, "type": "identifier", "text": "util_led_has_apa102", "parent": 238, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 31}}, {"id": 240, "type": "parameter_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 97, "column": 31}, "end_point": {"row": 97, "column": 33}}, {"id": 241, "type": "declaration", "text": "extern void util_led_init();", "parent": 0, "children": [242, 244, 245], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 28}}, {"id": 242, "type": "storage_class_specifier", "text": "extern", "parent": 241, "children": [243], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 243, "type": "extern", "text": "extern", "parent": 242, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 6}}, {"id": 244, "type": "primitive_type", "text": "void", "parent": 241, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 11}}, {"id": 245, "type": "function_declarator", "text": "util_led_init()", "parent": 241, "children": [246, 247], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 27}}, {"id": 246, "type": "identifier", "text": "util_led_init", "parent": 245, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 25}}, {"id": 247, "type": "parameter_list", "text": "()", "parent": 245, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 27}}, {"id": 248, "type": "declaration", "text": "extern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);", "parent": 0, "children": [249, 251, 252], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 71}}, {"id": 249, "type": "storage_class_specifier", "text": "extern", "parent": 248, "children": [250], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 250, "type": "extern", "text": "extern", "parent": 249, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 6}}, {"id": 251, "type": "primitive_type", "text": "void", "parent": 248, "children": [], "start_point": {"row": 99, "column": 7}, "end_point": {"row": 99, "column": 11}}, {"id": 252, "type": "function_declarator", "text": "util_led_load_rgb_file(char *filename, led_anim_t *p_anim)", "parent": 248, "children": [253, 254], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 70}}, {"id": 253, "type": "identifier", "text": "util_led_load_rgb_file", "parent": 252, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 34}}, {"id": 254, "type": "parameter_list", "text": "(char *filename, led_anim_t *p_anim)", "parent": 252, "children": [255, 260], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 70}}, {"id": 255, "type": "parameter_declaration", "text": "char *filename", "parent": 254, "children": [256, 257], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 49}}, {"id": 256, "type": "primitive_type", "text": "char", "parent": 255, "children": [], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 39}}, {"id": 257, "type": "pointer_declarator", "text": "*filename", "parent": 255, "children": [258, 259], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 49}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 41}}, {"id": 259, "type": "identifier", "text": "filename", "parent": 257, "children": [], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 49}}, {"id": 260, "type": "parameter_declaration", "text": "led_anim_t *p_anim", "parent": 254, "children": [261, 262], "start_point": {"row": 99, "column": 51}, "end_point": {"row": 99, "column": 69}}, {"id": 261, "type": "type_identifier", "text": "led_anim_t", "parent": 260, "children": [], "start_point": {"row": 99, "column": 51}, "end_point": {"row": 99, "column": 61}}, {"id": 262, "type": "pointer_declarator", "text": "*p_anim", "parent": 260, "children": [263, 264], "start_point": {"row": 99, "column": 62}, "end_point": {"row": 99, "column": 69}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 99, "column": 62}, "end_point": {"row": 99, "column": 63}}, {"id": 264, "type": "identifier", "text": "p_anim", "parent": 262, "children": [], "start_point": {"row": 99, "column": 63}, "end_point": {"row": 99, "column": 69}}, {"id": 265, "type": "declaration", "text": "extern void util_led_play_rgb_frame(led_anim_t *p_anim);", "parent": 0, "children": [266, 268, 269], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 56}}, {"id": 266, "type": "storage_class_specifier", "text": "extern", "parent": 265, "children": [267], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 6}}, {"id": 267, "type": "extern", "text": "extern", "parent": 266, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 6}}, {"id": 268, "type": "primitive_type", "text": "void", "parent": 265, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 11}}, {"id": 269, "type": "function_declarator", "text": "util_led_play_rgb_frame(led_anim_t *p_anim)", "parent": 265, "children": [270, 271], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 55}}, {"id": 270, "type": "identifier", "text": "util_led_play_rgb_frame", "parent": 269, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 35}}, {"id": 271, "type": "parameter_list", "text": "(led_anim_t *p_anim)", "parent": 269, "children": [272], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 55}}, {"id": 272, "type": "parameter_declaration", "text": "led_anim_t *p_anim", "parent": 271, "children": [273, 274], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 54}}, {"id": 273, "type": "type_identifier", "text": "led_anim_t", "parent": 272, "children": [], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 46}}, {"id": 274, "type": "pointer_declarator", "text": "*p_anim", "parent": 272, "children": [275, 276], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 54}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 48}}, {"id": 276, "type": "identifier", "text": "p_anim", "parent": 274, "children": [], "start_point": {"row": 100, "column": 48}, "end_point": {"row": 100, "column": 54}}, {"id": 277, "type": "declaration", "text": "extern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);", "parent": 0, "children": [278, 280, 281], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 76}}, {"id": 278, "type": "storage_class_specifier", "text": "extern", "parent": 277, "children": [279], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 279, "type": "extern", "text": "extern", "parent": 278, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 280, "type": "primitive_type", "text": "void", "parent": 277, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 11}}, {"id": 281, "type": "function_declarator", "text": "util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b)", "parent": 277, "children": [282, 283], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 75}}, {"id": 282, "type": "identifier", "text": "util_led_set", "parent": 281, "children": [], "start_point": {"row": 101, "column": 12}, "end_point": {"row": 101, "column": 24}}, {"id": 283, "type": "parameter_list", "text": "(uint32_t index, uint8_t red, uint8_t g, uint8_t b)", "parent": 281, "children": [284, 287, 290, 293], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 75}}, {"id": 284, "type": "parameter_declaration", "text": "uint32_t index", "parent": 283, "children": [285, 286], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 39}}, {"id": 285, "type": "primitive_type", "text": "uint32_t", "parent": 284, "children": [], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 33}}, {"id": 286, "type": "identifier", "text": "index", "parent": 284, "children": [], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 39}}, {"id": 287, "type": "parameter_declaration", "text": "uint8_t red", "parent": 283, "children": [288, 289], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 52}}, {"id": 288, "type": "primitive_type", "text": "uint8_t", "parent": 287, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 48}}, {"id": 289, "type": "identifier", "text": "red", "parent": 287, "children": [], "start_point": {"row": 101, "column": 49}, "end_point": {"row": 101, "column": 52}}, {"id": 290, "type": "parameter_declaration", "text": "uint8_t g", "parent": 283, "children": [291, 292], "start_point": {"row": 101, "column": 54}, "end_point": {"row": 101, "column": 63}}, {"id": 291, "type": "primitive_type", "text": "uint8_t", "parent": 290, "children": [], "start_point": {"row": 101, "column": 54}, "end_point": {"row": 101, "column": 61}}, {"id": 292, "type": "identifier", "text": "g", "parent": 290, "children": [], "start_point": {"row": 101, "column": 62}, "end_point": {"row": 101, "column": 63}}, {"id": 293, "type": "parameter_declaration", "text": "uint8_t b", "parent": 283, "children": [294, 295], "start_point": {"row": 101, "column": 65}, "end_point": {"row": 101, "column": 74}}, {"id": 294, "type": "primitive_type", "text": "uint8_t", "parent": 293, "children": [], "start_point": {"row": 101, "column": 65}, "end_point": {"row": 101, "column": 72}}, {"id": 295, "type": "identifier", "text": "b", "parent": 293, "children": [], "start_point": {"row": 101, "column": 73}, "end_point": {"row": 101, "column": 74}}, {"id": 296, "type": "declaration", "text": "extern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);", "parent": 0, "children": [297, 299, 300], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 71}}, {"id": 297, "type": "storage_class_specifier", "text": "extern", "parent": 296, "children": [298], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 298, "type": "extern", "text": "extern", "parent": 297, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 6}}, {"id": 299, "type": "primitive_type", "text": "void", "parent": 296, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 11}}, {"id": 300, "type": "function_declarator", "text": "util_led_set_all(uint8_t red, uint8_t green, uint8_t blue)", "parent": 296, "children": [301, 302], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 70}}, {"id": 301, "type": "identifier", "text": "util_led_set_all", "parent": 300, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 28}}, {"id": 302, "type": "parameter_list", "text": "(uint8_t red, uint8_t green, uint8_t blue)", "parent": 300, "children": [303, 306, 309], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 70}}, {"id": 303, "type": "parameter_declaration", "text": "uint8_t red", "parent": 302, "children": [304, 305], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 40}}, {"id": 304, "type": "primitive_type", "text": "uint8_t", "parent": 303, "children": [], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 36}}, {"id": 305, "type": "identifier", "text": "red", "parent": 303, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 40}}, {"id": 306, "type": "parameter_declaration", "text": "uint8_t green", "parent": 302, "children": [307, 308], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 55}}, {"id": 307, "type": "primitive_type", "text": "uint8_t", "parent": 306, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 49}}, {"id": 308, "type": "identifier", "text": "green", "parent": 306, "children": [], "start_point": {"row": 102, "column": 50}, "end_point": {"row": 102, "column": 55}}, {"id": 309, "type": "parameter_declaration", "text": "uint8_t blue", "parent": 302, "children": [310, 311], "start_point": {"row": 102, "column": 57}, "end_point": {"row": 102, "column": 69}}, {"id": 310, "type": "primitive_type", "text": "uint8_t", "parent": 309, "children": [], "start_point": {"row": 102, "column": 57}, "end_point": {"row": 102, "column": 64}}, {"id": 311, "type": "identifier", "text": "blue", "parent": 309, "children": [], "start_point": {"row": 102, "column": 65}, "end_point": {"row": 102, "column": 69}}, {"id": 312, "type": "declaration", "text": "extern void util_led_set_all_rgb(uint32_t rgb);", "parent": 0, "children": [313, 315, 316], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 47}}, {"id": 313, "type": "storage_class_specifier", "text": "extern", "parent": 312, "children": [314], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 314, "type": "extern", "text": "extern", "parent": 313, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 6}}, {"id": 315, "type": "primitive_type", "text": "void", "parent": 312, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 11}}, {"id": 316, "type": "function_declarator", "text": "util_led_set_all_rgb(uint32_t rgb)", "parent": 312, "children": [317, 318], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 46}}, {"id": 317, "type": "identifier", "text": "util_led_set_all_rgb", "parent": 316, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 32}}, {"id": 318, "type": "parameter_list", "text": "(uint32_t rgb)", "parent": 316, "children": [319], "start_point": {"row": 103, "column": 32}, "end_point": {"row": 103, "column": 46}}, {"id": 319, "type": "parameter_declaration", "text": "uint32_t rgb", "parent": 318, "children": [320, 321], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 45}}, {"id": 320, "type": "primitive_type", "text": "uint32_t", "parent": 319, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 41}}, {"id": 321, "type": "identifier", "text": "rgb", "parent": 319, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 45}}, {"id": 322, "type": "declaration", "text": "extern void util_led_set_rgb(uint32_t index, uint32_t rgb);", "parent": 0, "children": [323, 325, 326], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 59}}, {"id": 323, "type": "storage_class_specifier", "text": "extern", "parent": 322, "children": [324], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 324, "type": "extern", "text": "extern", "parent": 323, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 6}}, {"id": 325, "type": "primitive_type", "text": "void", "parent": 322, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 11}}, {"id": 326, "type": "function_declarator", "text": "util_led_set_rgb(uint32_t index, uint32_t rgb)", "parent": 322, "children": [327, 328], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 58}}, {"id": 327, "type": "identifier", "text": "util_led_set_rgb", "parent": 326, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 28}}, {"id": 328, "type": "parameter_list", "text": "(uint32_t index, uint32_t rgb)", "parent": 326, "children": [329, 332], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 104, "column": 58}}, {"id": 329, "type": "parameter_declaration", "text": "uint32_t index", "parent": 328, "children": [330, 331], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 43}}, {"id": 330, "type": "primitive_type", "text": "uint32_t", "parent": 329, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 37}}, {"id": 331, "type": "identifier", "text": "index", "parent": 329, "children": [], "start_point": {"row": 104, "column": 38}, "end_point": {"row": 104, "column": 43}}, {"id": 332, "type": "parameter_declaration", "text": "uint32_t rgb", "parent": 328, "children": [333, 334], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 57}}, {"id": 333, "type": "primitive_type", "text": "uint32_t", "parent": 332, "children": [], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 53}}, {"id": 334, "type": "identifier", "text": "rgb", "parent": 332, "children": [], "start_point": {"row": 104, "column": 54}, "end_point": {"row": 104, "column": 57}}, {"id": 335, "type": "declaration", "text": "extern void util_led_show();", "parent": 0, "children": [336, 338, 339], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 28}}, {"id": 336, "type": "storage_class_specifier", "text": "extern", "parent": 335, "children": [337], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 6}}, {"id": 337, "type": "extern", "text": "extern", "parent": 336, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 6}}, {"id": 338, "type": "primitive_type", "text": "void", "parent": 335, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 11}}, {"id": 339, "type": "function_declarator", "text": "util_led_show()", "parent": 335, "children": [340, 341], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 27}}, {"id": 340, "type": "identifier", "text": "util_led_show", "parent": 339, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 25}}, {"id": 341, "type": "parameter_list", "text": "()", "parent": 339, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 27}}, {"id": 342, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 107, "column": 0}, "end_point": {"row": 107, "column": 6}}]}, "node_categories": {"declarations": {"functions": [147, 169, 179, 189, 196, 206, 222, 238, 245, 252, 269, 281, 300, 316, 326, 339], "variables": [114, 118, 121, 124, 129, 133, 137, 140, 143, 153, 159, 165, 172, 175, 182, 185, 192, 199, 202, 209, 212, 215, 218, 225, 228, 231, 234, 241, 248, 255, 260, 265, 272, 277, 284, 287, 290, 293, 296, 303, 306, 309, 312, 319, 322, 329, 332, 335], "classes": [116, 117, 135, 136, 154, 160, 166, 176, 186, 193, 203, 219, 235, 242, 249, 266, 278, 297, 313, 323, 336], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 120, 123, 128, 131, 132, 139, 142, 145, 146, 149, 151, 158, 164, 170, 174, 180, 184, 190, 195, 197, 201, 207, 211, 214, 217, 223, 227, 230, 233, 239, 246, 253, 259, 261, 264, 270, 273, 276, 282, 286, 289, 292, 295, 301, 305, 308, 311, 317, 321, 327, 331, 334, 340, 342], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 147, "universal_type": "function", "name": "unknown", "text_snippet": "#define UTIL_LED_ANIM_INIT(anim)\t\t\t\t\t\\\n\tuint8_t rgb_data[6000];\t\t\t\t\t\\\n led_anim_t anim = { 0,0, r"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_565_to_rgb(uint16_t color)"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_brightness_set(uint8_t brightness)"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_clear()"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_get(uint8_t index)"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue)"}, {"node_id": 222, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_hsv_to_rgb(float H, float S, float V)"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_has_apa102()"}, {"node_id": 245, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_init()"}, {"node_id": 252, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_load_rgb_file(char *filename, led_anim_t *p_anim)"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_play_rgb_frame(led_anim_t *p_anim)"}, {"node_id": 281, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b)"}, {"node_id": 300, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_set_all(uint8_t red, uint8_t green, uint8_t blue)"}, {"node_id": 316, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_set_all_rgb(uint32_t rgb)"}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_set_rgb(uint32_t index, uint32_t rgb)"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "util_led_show()"}], "class_declarations": [{"node_id": 116, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\tuint8_t frames;\n\tuint8_t frame;\n\tuint8_t *rgb_data;\n\tuint16_t size;\n}"}, {"node_id": 117, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 135, "universal_type": "class", "name": "{", "text_snippet": "struct {\n\tuint8_t red;\n\tuint8_t green;\n\tuint8_t blue;\n}"}, {"node_id": 136, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 160, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 166, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 176, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 186, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 193, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 203, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 219, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 235, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 242, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 249, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 266, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 278, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 297, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 313, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 323, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 336, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "/*****************************************************************************\n * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/).\n *\n * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then,\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 * Contributors:\n * \t@andnxor\n * \t@zappbrandnxor\n * \t@hyr0n1\n * \t@andrewnriley\n * \t@lacosteaef\n * \t@bitstr3m\n * \n * Further modifications made by\n * @sconklin\n * @mustbeart\n *\n *****************************************************************************/\n#ifndef UTIL_LED_H_\n#define UTIL_LED_H_\n\n#define LED_COUNT\t\t\t\t\t14\n#define LED_RGB_COUNT\t\t\t\t20\n#define LED_TOOTH_INDEX\t\t\t\t13\n#define LED_MATRIX_W\t\t\t\t4\n#define LED_MATRIX_H\t\t\t\t3\n#define LED_MATRIX_COUNT\t\t\t(LED_MATRIX_W * LED_MATRIX_H)\n#define LED_MATRIX_ROWS\t\t\t\t{{0,1,2,3},{4,5,6,7},{8,9,10,11}}\n\n//Mapping of RGB order to LED index from RGB files for MBP3+ badges\n#define LED_MATRIX_FULL_MAPPING \t{\t\\\n\t\t\t\t\t\t\t\t\t12, 0xFF, 0xFF, 13, 0xFF, \\\n\t\t\t\t\t\t\t\t\t0, 1, 2, 3, 14, \\\n\t\t\t\t\t\t\t\t\t4, 5, 6, 7, 0xFF, \\\n\t\t\t\t\t\t\t\t\t8, 9, 10, 11, 0xFF, \\\n\t\t\t\t\t\t\t\t\t}\n#define LED_MATRIX_FULL_ROW_COUNT\t4\n#define LED_MATRIX_FULL_COL_COUNT\t5\n\n#define LED_ORDER_CW\t\t\t \t{ 0, 1, 2, 3, 7, 11, 10, 9, 8, 4 }\n#define LED_ORDER_CW_COUNT\t\t\t10\n\n#define LED_COLOR_BLACK\t\t\t\t0x000000\n#define LED_COLOR_RED\t\t\t\t0xFF0000\n#define LED_COLOR_GREEN\t\t\t\t0x00FF00\n#define LED_COLOR_BLUE\t\t\t\t0x0000FF\n#define LED_COLOR_CORAL\t\t\t\t0xFF9963\n#define LED_COLOR_GOLD\t\t\t\t0xCCAD00\n#define LED_COLOR_INDIGO\t\t\t0xc100e6\n#define LED_COLOR_LIGHTBLUE\t\t\t0x3399FF\n#define LED_COLOR_LIGHTGREEN\t\t\t0x58D68D\n#define LED_COLOR_ORANGE\t\t\t0xFFA500\n#define LED_COLOR_PURPLE\t\t\t0xb000b0\n#define LED_COLOR_YELLOW\t\t\t0xDCDC00\n#define LED_COLOR_WHITE\t\t\t\t0xDDDDDD\n#define LED_COLOR_EYES\t\t\t\t0xDD6666\n#define TOOTH_HUE_GOLD\t\t\t\t0.142 //51.0 / 360.0\n\n\ntypedef struct {\n\tuint8_t frames;\n\tuint8_t frame;\n\tuint8_t *rgb_data;\n\tuint16_t size;\n} led_anim_t;\n\ntypedef struct {\n\tuint8_t red;\n\tuint8_t green;\n\tuint8_t blue;\n} led_rgb_t;\n\n#define UTIL_LED_ANIM_INIT(anim)\t\t\t\t\t\\\n\tuint8_t rgb_data[6000];\t\t\t\t\t\\\n led_anim_t anim = { 0,0, rgb_data, 0 };\n\nextern uint8_t led_order_cw[];\nextern uint8_t led_matrix[];\n\nextern uint32_t util_led_565_to_rgb(uint16_t color);\nextern void util_led_brightness_set(uint8_t brightness);\nextern void util_led_clear();\nextern led_rgb_t util_led_get(uint8_t index);\nextern uint32_t util_led_to_rgb(uint8_t red, uint8_t green, uint8_t blue);\nextern uint32_t util_led_hsv_to_rgb(float H, float S, float V);\nextern bool util_led_has_apa102();\nextern void util_led_init();\nextern void util_led_load_rgb_file(char *filename, led_anim_t *p_anim);\nextern void util_led_play_rgb_frame(led_anim_t *p_anim);\nextern void util_led_set(uint32_t index, uint8_t red, uint8_t g, uint8_t b);\nextern void util_led_set_all(uint8_t red, uint8_t green, uint8_t blue);\nextern void util_led_set_all_rgb(uint32_t rgb);\nextern void util_led_set_rgb(uint32_t index, uint32_t rgb);\nextern void util_led_show();\n\n#endif /* UTIL_LED_H_ */\n"}
80,759
c
#ifndef __HANDLER__ #define __HANDLER__ void sig_handler(); #define _GNU_SOURCE ; #endif
16.8
5
(translation_unit) "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif\n" (preproc_ifdef) "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif" (#ifndef) "#ifndef" (identifier) "__HANDLER__" (preproc_def) "#define __HANDLER__\n" (#define) "#define" (identifier) "__HANDLER__" (declaration) "void sig_handler();" (primitive_type) "void" (function_declarator) "sig_handler()" (identifier) "sig_handler" (parameter_list) "()" (() "(" ()) ")" (;) ";" (preproc_def) "#define _GNU_SOURCE ;\n" (#define) "#define" (identifier) "_GNU_SOURCE" (preproc_arg) ";" (#endif) "#endif"
20
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 16.8, "nodes": 15, "errors": 0, "source_hash": "1335d212969823465dc557eae112f72ff80c854fbf17d369eef6ff93c3352426", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 11, 14], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "__HANDLER__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define __HANDLER__\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": "__HANDLER__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "declaration", "text": "void sig_handler();", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 19}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 8, "type": "function_declarator", "text": "sig_handler()", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "identifier", "text": "sig_handler", "parent": 8, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 16}}, {"id": 10, "type": "parameter_list", "text": "()", "parent": 8, "children": [], "start_point": {"row": 3, "column": 16}, "end_point": {"row": 3, "column": 18}}, {"id": 11, "type": "preproc_def", "text": "#define _GNU_SOURCE ;\n", "parent": 0, "children": [12, 13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 13, "type": "identifier", "text": "_GNU_SOURCE", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 19}}, {"id": 14, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [6], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 13, 14], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "sig_handler()"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef __HANDLER__\n#define __HANDLER__\n\nvoid sig_handler();\n\n#define _GNU_SOURCE ;\n\n#endif\n"}
80,760
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "UObject/ObjectMacros.h" #include "BoneContainer.h" #include "BonePose.h" #include "BoneControllers/AnimNode_SkeletalControlBase.h" #include "AnimNode_CopyBone.generated.h" class USkeletalMeshComponent; /** * Simple controller to copy a bone's transform to another one. */ USTRUCT(BlueprintInternalUseOnly) struct ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase { GENERATED_USTRUCT_BODY() /** Source Bone Name to get transform from */ UPROPERTY(EditAnywhere, Category = Copy) FBoneReference SourceBone; /** Name of bone to control. This is the main bone chain to modify from. **/ UPROPERTY(EditAnywhere, Category=Copy) FBoneReference TargetBone; /** If Translation should be copied */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault)) bool bCopyTranslation; /** If Rotation should be copied */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault)) bool bCopyRotation; /** If Scale should be copied */ UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault)) bool bCopyScale; /** Space to convert transforms into prior to copying components */ UPROPERTY(EditAnywhere, Category = Copy) TEnumAsByte<EBoneControlSpace> ControlSpace; FAnimNode_CopyBone(); // FAnimNode_Base interface virtual void GatherDebugData(FNodeDebugData& DebugData) override; // End of FAnimNode_Base interface // FAnimNode_SkeletalControlBase interface virtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override; virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override; // End of FAnimNode_SkeletalControlBase interface private: // FAnimNode_SkeletalControlBase interface virtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override; // End of FAnimNode_SkeletalControlBase interface };
43.04
47
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "UObject/ObjectMacros.h"\n#include "BoneContainer.h"\n#include "BonePose.h"\n#include "BoneControllers/AnimNode_SkeletalControlBase.h"\n#include "AnimNode_CopyBone.generated.h"\n\nclass USkeletalMeshComponent;\n\n/**\n * Simple controller to copy a bone's transform to another one.\n */\n\nUSTRUCT(BlueprintInternalUseOnly)\nstruct ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase\n{\n GENERATED_USTRUCT_BODY()\n\n /** Source Bone Name to get transform from */\n UPROPERTY(EditAnywhere, Category = Copy)\n FBoneReference SourceBone;\n\n /** Name of bone to control. This is the main bone chain to modify from. **/\n UPROPERTY(EditAnywhere, Category=Copy) \n FBoneReference TargetBone;\n\n /** If Translation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyTranslation;\n\n /** If Rotation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyRotation;\n\n /** If Scale should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyScale;\n\n /** Space to convert transforms into prior to copying components */\n UPROPERTY(EditAnywhere, Category = Copy)\n TEnumAsByte<EBoneControlSpace> ControlSpace;\n\n FAnimNode_CopyBone();\n\n // FAnimNode_Base interface\n virtual void GatherDebugData(FNodeDebugData& DebugData) override;\n // End of FAnimNode_Base interface\n\n // FAnimNode_SkeletalControlBase interface\n virtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;\n virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n // FAnimNode_SkeletalControlBase interface\n virtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n};\n" (comment) "// Copyright 1998-2017 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 "UObject/ObjectMacros.h"\n" (#include) "#include" (string_literal) ""UObject/ObjectMacros.h"" (") """ (string_content) "UObject/ObjectMacros.h" (") """ (preproc_include) "#include "BoneContainer.h"\n" (#include) "#include" (string_literal) ""BoneContainer.h"" (") """ (string_content) "BoneContainer.h" (") """ (preproc_include) "#include "BonePose.h"\n" (#include) "#include" (string_literal) ""BonePose.h"" (") """ (string_content) "BonePose.h" (") """ (preproc_include) "#include "BoneControllers/AnimNode_SkeletalControlBase.h"\n" (#include) "#include" (string_literal) ""BoneControllers/AnimNode_SkeletalControlBase.h"" (") """ (string_content) "BoneControllers/AnimNode_SkeletalControlBase.h" (") """ (preproc_include) "#include "AnimNode_CopyBone.generated.h"\n" (#include) "#include" (string_literal) ""AnimNode_CopyBone.generated.h"" (") """ (string_content) "AnimNode_CopyBone.generated.h" (") """ (declaration) "class USkeletalMeshComponent;" (type_identifier) "class" (identifier) "USkeletalMeshComponent" (;) ";" (comment) "/**\n * Simple controller to copy a bone's transform to another one.\n */" (declaration) "USTRUCT(BlueprintInternalUseOnly)\nstruct" (macro_type_specifier) "USTRUCT(BlueprintInternalUseOnly)" (identifier) "USTRUCT" (() "(" (type_descriptor) "BlueprintInternalUseOnly" (type_identifier) "BlueprintInternalUseOnly" ()) ")" (identifier) "struct" (;) "" (function_definition) "ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase\n{\n GENERATED_USTRUCT_BODY()\n\n /** Source Bone Name to get transform from */\n UPROPERTY(EditAnywhere, Category = Copy)\n FBoneReference SourceBone;\n\n /** Name of bone to control. This is the main bone chain to modify from. **/\n UPROPERTY(EditAnywhere, Category=Copy) \n FBoneReference TargetBone;\n\n /** If Translation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyTranslation;\n\n /** If Rotation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyRotation;\n\n /** If Scale should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyScale;\n\n /** Space to convert transforms into prior to copying components */\n UPROPERTY(EditAnywhere, Category = Copy)\n TEnumAsByte<EBoneControlSpace> ControlSpace;\n\n FAnimNode_CopyBone();\n\n // FAnimNode_Base interface\n virtual void GatherDebugData(FNodeDebugData& DebugData) override;\n // End of FAnimNode_Base interface\n\n // FAnimNode_SkeletalControlBase interface\n virtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;\n virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n // FAnimNode_SkeletalControlBase interface\n virtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n}" (type_identifier) "ANIMGRAPHRUNTIME_API" (ERROR) "FAnimNode_CopyBone : public" (identifier) "FAnimNode_CopyBone" (:) ":" (identifier) "public" (identifier) "FAnimNode_SkeletalControlBase" (compound_statement) "{\n GENERATED_USTRUCT_BODY()\n\n /** Source Bone Name to get transform from */\n UPROPERTY(EditAnywhere, Category = Copy)\n FBoneReference SourceBone;\n\n /** Name of bone to control. This is the main bone chain to modify from. **/\n UPROPERTY(EditAnywhere, Category=Copy) \n FBoneReference TargetBone;\n\n /** If Translation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyTranslation;\n\n /** If Rotation should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyRotation;\n\n /** If Scale should be copied */\n UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n bool bCopyScale;\n\n /** Space to convert transforms into prior to copying components */\n UPROPERTY(EditAnywhere, Category = Copy)\n TEnumAsByte<EBoneControlSpace> ControlSpace;\n\n FAnimNode_CopyBone();\n\n // FAnimNode_Base interface\n virtual void GatherDebugData(FNodeDebugData& DebugData) override;\n // End of FAnimNode_Base interface\n\n // FAnimNode_SkeletalControlBase interface\n virtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;\n virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n // FAnimNode_SkeletalControlBase interface\n virtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n}" ({) "{" (expression_statement) "GENERATED_USTRUCT_BODY()\n\n /** Source Bone Name to get transform from */" (call_expression) "GENERATED_USTRUCT_BODY()" (identifier) "GENERATED_USTRUCT_BODY" (argument_list) "()" (() "(" ()) ")" (comment) "/** Source Bone Name to get transform from */" (;) "" (expression_statement) "UPROPERTY(EditAnywhere, Category = Copy)" (call_expression) "UPROPERTY(EditAnywhere, Category = Copy)" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category = Copy)" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category = Copy" (identifier) "Category" (=) "=" (identifier) "Copy" ()) ")" (;) "" (declaration) "FBoneReference SourceBone;" (type_identifier) "FBoneReference" (identifier) "SourceBone" (;) ";" (comment) "/** Name of bone to control. This is the main bone chain to modify from. **/" (expression_statement) "UPROPERTY(EditAnywhere, Category=Copy)" (call_expression) "UPROPERTY(EditAnywhere, Category=Copy)" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category=Copy)" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category=Copy" (identifier) "Category" (=) "=" (identifier) "Copy" ()) ")" (;) "" (declaration) "FBoneReference TargetBone;" (type_identifier) "FBoneReference" (identifier) "TargetBone" (;) ";" (comment) "/** If Translation should be copied */" (expression_statement) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (call_expression) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (() "(" (identifier) "EditAnywhere" (,) "," (identifier) "BlueprintReadWrite" (,) "," (assignment_expression) "Category=Copy" (identifier) "Category" (=) "=" (identifier) "Copy" (,) "," (assignment_expression) "meta=(PinShownByDefault)" (identifier) "meta" (=) "=" (parenthesized_expression) "(PinShownByDefault)" (() "(" (identifier) "PinShownByDefault" ()) ")" ()) ")" (;) "" (declaration) "bool bCopyTranslation;" (primitive_type) "bool" (identifier) "bCopyTranslation" (;) ";" (comment) "/** If Rotation should be copied */" (expression_statement) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (call_expression) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (() "(" (identifier) "EditAnywhere" (,) "," (identifier) "BlueprintReadWrite" (,) "," (assignment_expression) "Category=Copy" (identifier) "Category" (=) "=" (identifier) "Copy" (,) "," (assignment_expression) "meta=(PinShownByDefault)" (identifier) "meta" (=) "=" (parenthesized_expression) "(PinShownByDefault)" (() "(" (identifier) "PinShownByDefault" ()) ")" ()) ")" (;) "" (declaration) "bool bCopyRotation;" (primitive_type) "bool" (identifier) "bCopyRotation" (;) ";" (comment) "/** If Scale should be copied */" (expression_statement) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (call_expression) "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))" (() "(" (identifier) "EditAnywhere" (,) "," (identifier) "BlueprintReadWrite" (,) "," (assignment_expression) "Category=Copy" (identifier) "Category" (=) "=" (identifier) "Copy" (,) "," (assignment_expression) "meta=(PinShownByDefault)" (identifier) "meta" (=) "=" (parenthesized_expression) "(PinShownByDefault)" (() "(" (identifier) "PinShownByDefault" ()) ")" ()) ")" (;) "" (declaration) "bool bCopyScale;" (primitive_type) "bool" (identifier) "bCopyScale" (;) ";" (comment) "/** Space to convert transforms into prior to copying components */" (expression_statement) "UPROPERTY(EditAnywhere, Category = Copy)" (call_expression) "UPROPERTY(EditAnywhere, Category = Copy)" (identifier) "UPROPERTY" (argument_list) "(EditAnywhere, Category = Copy)" (() "(" (identifier) "EditAnywhere" (,) "," (assignment_expression) "Category = Copy" (identifier) "Category" (=) "=" (identifier) "Copy" ()) ")" (;) "" (expression_statement) "TEnumAsByte<EBoneControlSpace> ControlSpace;" (binary_expression) "TEnumAsByte<EBoneControlSpace> ControlSpace" (binary_expression) "TEnumAsByte<EBoneControlSpace" (identifier) "TEnumAsByte" (<) "<" (identifier) "EBoneControlSpace" (>) ">" (identifier) "ControlSpace" (;) ";" (expression_statement) "FAnimNode_CopyBone();" (call_expression) "FAnimNode_CopyBone()" (identifier) "FAnimNode_CopyBone" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// FAnimNode_Base interface" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "GatherDebugData(FNodeDebugData& DebugData) override;" (call_expression) "GatherDebugData(FNodeDebugData& DebugData)" (identifier) "GatherDebugData" (argument_list) "(FNodeDebugData& DebugData)" (() "(" (binary_expression) "FNodeDebugData& DebugData" (identifier) "FNodeDebugData" (&) "&" (identifier) "DebugData" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (comment) "// End of FAnimNode_Base interface" (comment) "// FAnimNode_SkeletalControlBase interface" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;" (call_expression) "EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms)" (identifier) "EvaluateSkeletalControl_AnyThread" (argument_list) "(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms)" (() "(" (binary_expression) "FComponentSpacePoseContext& Output" (identifier) "FComponentSpacePoseContext" (&) "&" (identifier) "Output" (,) "," (binary_expression) "TArray<FBoneTransform>& OutBoneTransforms" (binary_expression) "TArray<FBoneTransform" (identifier) "TArray" (<) "<" (identifier) "FBoneTransform" (>) ">" (pointer_expression) "& OutBoneTransforms" (&) "&" (identifier) "OutBoneTransforms" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (declaration) "virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n // End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n // FAnimNode_SkeletalControlBase interface\n virtual" (type_identifier) "virtual" (ERROR) "bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;" (identifier) "bool" (function_declarator) "IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override" (identifier) "IsValidToEvaluate" (parameter_list) "(const USkeleton* Skeleton, const FBoneContainer& RequiredBones)" (() "(" (parameter_declaration) "const USkeleton* Skeleton" (type_qualifier) "const" (const) "const" (type_identifier) "USkeleton" (pointer_declarator) "* Skeleton" (*) "*" (identifier) "Skeleton" (,) "," (parameter_declaration) "const FBoneContainer& RequiredBones" (type_qualifier) "const" (const) "const" (type_identifier) "FBoneContainer" (ERROR) "&" (&) "&" (identifier) "RequiredBones" ()) ")" (identifier) "override" (;) ";" (comment) "// End of FAnimNode_SkeletalControlBase interface" (ERROR) "private:" (identifier) "private" (:) ":" (comment) "// FAnimNode_SkeletalControlBase interface" (identifier) "virtual" (;) "" (ERROR) "void InitializeBoneReferences(const FBoneContainer& RequiredBones) override" (primitive_type) "void" (function_declarator) "InitializeBoneReferences(const FBoneContainer& RequiredBones) override" (identifier) "InitializeBoneReferences" (parameter_list) "(const FBoneContainer& RequiredBones)" (() "(" (parameter_declaration) "const FBoneContainer& RequiredBones" (type_qualifier) "const" (const) "const" (type_identifier) "FBoneContainer" (ERROR) "&" (&) "&" (identifier) "RequiredBones" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (comment) "// End of FAnimNode_SkeletalControlBase interface" (}) "}" (expression_statement) ";" (;) ";"
322
8
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 43.04, "nodes": 185, "errors": 0, "source_hash": "e2d76106f921ee32886cfe6835704ced89439b00bc336b564b9cacff861f6c89", "categorized_nodes": 145}, "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 \"UObject/ObjectMacros.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": "\"UObject/ObjectMacros.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 33}}, {"id": 9, "type": "preproc_include", "text": "#include \"BoneContainer.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": "\"BoneContainer.h\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 26}}, {"id": 12, "type": "preproc_include", "text": "#include \"BonePose.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": "string_literal", "text": "\"BonePose.h\"", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include \"BoneControllers/AnimNode_SkeletalControlBase.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"BoneControllers/AnimNode_SkeletalControlBase.h\"", "parent": 15, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 57}}, {"id": 18, "type": "preproc_include", "text": "#include \"AnimNode_CopyBone.generated.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"AnimNode_CopyBone.generated.h\"", "parent": 18, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 40}}, {"id": 21, "type": "declaration", "text": "class USkeletalMeshComponent;", "parent": null, "children": [22], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 29}}, {"id": 22, "type": "identifier", "text": "USkeletalMeshComponent", "parent": 21, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 28}}, {"id": 23, "type": "declaration", "text": "USTRUCT(BlueprintInternalUseOnly)\nstruct", "parent": null, "children": [24, 28], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 24, "type": "macro_type_specifier", "text": "USTRUCT(BlueprintInternalUseOnly)", "parent": 23, "children": [25, 26], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 33}}, {"id": 25, "type": "identifier", "text": "USTRUCT", "parent": 24, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 26, "type": "type_descriptor", "text": "BlueprintInternalUseOnly", "parent": 24, "children": [27], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 32}}, {"id": 27, "type": "type_identifier", "text": "BlueprintInternalUseOnly", "parent": 26, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 32}}, {"id": 28, "type": "identifier", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 29, "type": "function_definition", "text": "ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase\n{\n\tGENERATED_USTRUCT_BODY()\n\n\t/** Source Bone Name to get transform from */\n\tUPROPERTY(EditAnywhere, Category = Copy)\n\tFBoneReference SourceBone;\n\n\t/** Name of bone to control. This is the main bone chain to modify from. **/\n\tUPROPERTY(EditAnywhere, Category=Copy) \n\tFBoneReference TargetBone;\n\n\t/** If Translation should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyTranslation;\n\n\t/** If Rotation should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyRotation;\n\n\t/** If Scale should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyScale;\n\n\t/** Space to convert transforms into prior to copying components */\n\tUPROPERTY(EditAnywhere, Category = Copy)\n\tTEnumAsByte<EBoneControlSpace> ControlSpace;\n\n\tFAnimNode_CopyBone();\n\n\t// FAnimNode_Base interface\n\tvirtual void GatherDebugData(FNodeDebugData& DebugData) override;\n\t// End of FAnimNode_Base interface\n\n\t// FAnimNode_SkeletalControlBase interface\n\tvirtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;\n\tvirtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n\t// End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n\t// FAnimNode_SkeletalControlBase interface\n\tvirtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;\n\t// End of FAnimNode_SkeletalControlBase interface\n}", "parent": null, "children": [30, 31, 33], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 61, "column": 1}}, {"id": 30, "type": "type_identifier", "text": "ANIMGRAPHRUNTIME_API", "parent": 29, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 27}}, {"id": 31, "type": "ERROR", "text": "FAnimNode_CopyBone : public", "parent": 29, "children": [32], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 55}}, {"id": 32, "type": "identifier", "text": "FAnimNode_CopyBone", "parent": 31, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 46}}, {"id": 33, "type": "identifier", "text": "FAnimNode_SkeletalControlBase", "parent": 29, "children": [], "start_point": {"row": 18, "column": 56}, "end_point": {"row": 18, "column": 85}}, {"id": 34, "type": "call_expression", "text": "GENERATED_USTRUCT_BODY()", "parent": 29, "children": [35, 36], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 25}}, {"id": 35, "type": "identifier", "text": "GENERATED_USTRUCT_BODY", "parent": 34, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 23}}, {"id": 36, "type": "argument_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 25}}, {"id": 37, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category = Copy)", "parent": 29, "children": [38, 39], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 41}}, {"id": 38, "type": "identifier", "text": "UPROPERTY", "parent": 37, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 10}}, {"id": 39, "type": "argument_list", "text": "(EditAnywhere, Category = Copy)", "parent": 37, "children": [40, 41], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 41}}, {"id": 40, "type": "identifier", "text": "EditAnywhere", "parent": 39, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 23}}, {"id": 41, "type": "assignment_expression", "text": "Category = Copy", "parent": 39, "children": [42, 43, 44], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 40}}, {"id": 42, "type": "identifier", "text": "Category", "parent": 41, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 33}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 35}}, {"id": 44, "type": "identifier", "text": "Copy", "parent": 41, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 40}}, {"id": 45, "type": "declaration", "text": "FBoneReference SourceBone;", "parent": 29, "children": [46, 47], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 27}}, {"id": 46, "type": "type_identifier", "text": "FBoneReference", "parent": 45, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 15}}, {"id": 47, "type": "identifier", "text": "SourceBone", "parent": 45, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 26}}, {"id": 48, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category=Copy)", "parent": 29, "children": [49, 50], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 39}}, {"id": 49, "type": "identifier", "text": "UPROPERTY", "parent": 48, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 10}}, {"id": 50, "type": "argument_list", "text": "(EditAnywhere, Category=Copy)", "parent": 48, "children": [51, 52], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 39}}, {"id": 51, "type": "identifier", "text": "EditAnywhere", "parent": 50, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 23}}, {"id": 52, "type": "assignment_expression", "text": "Category=Copy", "parent": 50, "children": [53, 54, 55], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 38}}, {"id": 53, "type": "identifier", "text": "Category", "parent": 52, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 33}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 34}}, {"id": 55, "type": "identifier", "text": "Copy", "parent": 52, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 38}}, {"id": 56, "type": "declaration", "text": "FBoneReference TargetBone;", "parent": 29, "children": [57, 58], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 27}}, {"id": 57, "type": "type_identifier", "text": "FBoneReference", "parent": 56, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 15}}, {"id": 58, "type": "identifier", "text": "TargetBone", "parent": 56, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 26}}, {"id": 59, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 29, "children": [60, 61], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 85}}, {"id": 60, "type": "identifier", "text": "UPROPERTY", "parent": 59, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 10}}, {"id": 61, "type": "argument_list", "text": "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 59, "children": [62, 63, 64, 68], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 85}}, {"id": 62, "type": "identifier", "text": "EditAnywhere", "parent": 61, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 23}}, {"id": 63, "type": "identifier", "text": "BlueprintReadWrite", "parent": 61, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 43}}, {"id": 64, "type": "assignment_expression", "text": "Category=Copy", "parent": 61, "children": [65, 66, 67], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 58}}, {"id": 65, "type": "identifier", "text": "Category", "parent": 64, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 53}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 54}}, {"id": 67, "type": "identifier", "text": "Copy", "parent": 64, "children": [], "start_point": {"row": 31, "column": 54}, "end_point": {"row": 31, "column": 58}}, {"id": 68, "type": "assignment_expression", "text": "meta=(PinShownByDefault)", "parent": 61, "children": [69, 70, 71], "start_point": {"row": 31, "column": 60}, "end_point": {"row": 31, "column": 84}}, {"id": 69, "type": "identifier", "text": "meta", "parent": 68, "children": [], "start_point": {"row": 31, "column": 60}, "end_point": {"row": 31, "column": 64}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 31, "column": 64}, "end_point": {"row": 31, "column": 65}}, {"id": 71, "type": "parenthesized_expression", "text": "(PinShownByDefault)", "parent": 68, "children": [72], "start_point": {"row": 31, "column": 65}, "end_point": {"row": 31, "column": 84}}, {"id": 72, "type": "identifier", "text": "PinShownByDefault", "parent": 71, "children": [], "start_point": {"row": 31, "column": 66}, "end_point": {"row": 31, "column": 83}}, {"id": 73, "type": "declaration", "text": "bool bCopyTranslation;", "parent": 29, "children": [74, 75], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 23}}, {"id": 74, "type": "primitive_type", "text": "bool", "parent": 73, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 5}}, {"id": 75, "type": "identifier", "text": "bCopyTranslation", "parent": 73, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 22}}, {"id": 76, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 29, "children": [77, 78], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 85}}, {"id": 77, "type": "identifier", "text": "UPROPERTY", "parent": 76, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 78, "type": "argument_list", "text": "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 76, "children": [79, 80, 81, 85], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 85}}, {"id": 79, "type": "identifier", "text": "EditAnywhere", "parent": 78, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 23}}, {"id": 80, "type": "identifier", "text": "BlueprintReadWrite", "parent": 78, "children": [], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 43}}, {"id": 81, "type": "assignment_expression", "text": "Category=Copy", "parent": 78, "children": [82, 83, 84], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 58}}, {"id": 82, "type": "identifier", "text": "Category", "parent": 81, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 53}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 35, "column": 53}, "end_point": {"row": 35, "column": 54}}, {"id": 84, "type": "identifier", "text": "Copy", "parent": 81, "children": [], "start_point": {"row": 35, "column": 54}, "end_point": {"row": 35, "column": 58}}, {"id": 85, "type": "assignment_expression", "text": "meta=(PinShownByDefault)", "parent": 78, "children": [86, 87, 88], "start_point": {"row": 35, "column": 60}, "end_point": {"row": 35, "column": 84}}, {"id": 86, "type": "identifier", "text": "meta", "parent": 85, "children": [], "start_point": {"row": 35, "column": 60}, "end_point": {"row": 35, "column": 64}}, {"id": 87, "type": "=", "text": "=", "parent": 85, "children": [], "start_point": {"row": 35, "column": 64}, "end_point": {"row": 35, "column": 65}}, {"id": 88, "type": "parenthesized_expression", "text": "(PinShownByDefault)", "parent": 85, "children": [89], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 84}}, {"id": 89, "type": "identifier", "text": "PinShownByDefault", "parent": 88, "children": [], "start_point": {"row": 35, "column": 66}, "end_point": {"row": 35, "column": 83}}, {"id": 90, "type": "declaration", "text": "bool bCopyRotation;", "parent": 29, "children": [91, 92], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 20}}, {"id": 91, "type": "primitive_type", "text": "bool", "parent": 90, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 92, "type": "identifier", "text": "bCopyRotation", "parent": 90, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 19}}, {"id": 93, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 29, "children": [94, 95], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 85}}, {"id": 94, "type": "identifier", "text": "UPROPERTY", "parent": 93, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 95, "type": "argument_list", "text": "(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))", "parent": 93, "children": [96, 97, 98, 102], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 85}}, {"id": 96, "type": "identifier", "text": "EditAnywhere", "parent": 95, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 23}}, {"id": 97, "type": "identifier", "text": "BlueprintReadWrite", "parent": 95, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 43}}, {"id": 98, "type": "assignment_expression", "text": "Category=Copy", "parent": 95, "children": [99, 100, 101], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 58}}, {"id": 99, "type": "identifier", "text": "Category", "parent": 98, "children": [], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 53}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 39, "column": 53}, "end_point": {"row": 39, "column": 54}}, {"id": 101, "type": "identifier", "text": "Copy", "parent": 98, "children": [], "start_point": {"row": 39, "column": 54}, "end_point": {"row": 39, "column": 58}}, {"id": 102, "type": "assignment_expression", "text": "meta=(PinShownByDefault)", "parent": 95, "children": [103, 104, 105], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 84}}, {"id": 103, "type": "identifier", "text": "meta", "parent": 102, "children": [], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 64}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 39, "column": 64}, "end_point": {"row": 39, "column": 65}}, {"id": 105, "type": "parenthesized_expression", "text": "(PinShownByDefault)", "parent": 102, "children": [106], "start_point": {"row": 39, "column": 65}, "end_point": {"row": 39, "column": 84}}, {"id": 106, "type": "identifier", "text": "PinShownByDefault", "parent": 105, "children": [], "start_point": {"row": 39, "column": 66}, "end_point": {"row": 39, "column": 83}}, {"id": 107, "type": "declaration", "text": "bool bCopyScale;", "parent": 29, "children": [108, 109], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 17}}, {"id": 108, "type": "primitive_type", "text": "bool", "parent": 107, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 5}}, {"id": 109, "type": "identifier", "text": "bCopyScale", "parent": 107, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 16}}, {"id": 110, "type": "call_expression", "text": "UPROPERTY(EditAnywhere, Category = Copy)", "parent": 29, "children": [111, 112], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 41}}, {"id": 111, "type": "identifier", "text": "UPROPERTY", "parent": 110, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 10}}, {"id": 112, "type": "argument_list", "text": "(EditAnywhere, Category = Copy)", "parent": 110, "children": [113, 114], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 41}}, {"id": 113, "type": "identifier", "text": "EditAnywhere", "parent": 112, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 23}}, {"id": 114, "type": "assignment_expression", "text": "Category = Copy", "parent": 112, "children": [115, 116, 117], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 40}}, {"id": 115, "type": "identifier", "text": "Category", "parent": 114, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 33}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 35}}, {"id": 117, "type": "identifier", "text": "Copy", "parent": 114, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 40}}, {"id": 118, "type": "binary_expression", "text": "TEnumAsByte<EBoneControlSpace> ControlSpace", "parent": 29, "children": [119, 123, 124], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 44}}, {"id": 119, "type": "binary_expression", "text": "TEnumAsByte<EBoneControlSpace", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 30}}, {"id": 120, "type": "identifier", "text": "TEnumAsByte", "parent": 119, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 12}}, {"id": 121, "type": "<", "text": "<", "parent": 119, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 122, "type": "identifier", "text": "EBoneControlSpace", "parent": 119, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 30}}, {"id": 123, "type": ">", "text": ">", "parent": 118, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 31}}, {"id": 124, "type": "identifier", "text": "ControlSpace", "parent": 118, "children": [], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 44}}, {"id": 125, "type": "call_expression", "text": "FAnimNode_CopyBone()", "parent": 29, "children": [126, 127], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 21}}, {"id": 126, "type": "identifier", "text": "FAnimNode_CopyBone", "parent": 125, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 19}}, {"id": 127, "type": "argument_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 21}}, {"id": 128, "type": "declaration", "text": "virtual void", "parent": 29, "children": [129, 130], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 13}}, {"id": 129, "type": "type_identifier", "text": "virtual", "parent": 128, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 8}}, {"id": 130, "type": "identifier", "text": "void", "parent": 128, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 13}}, {"id": 131, "type": "call_expression", "text": "GatherDebugData(FNodeDebugData& DebugData)", "parent": 29, "children": [132, 133], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 56}}, {"id": 132, "type": "identifier", "text": "GatherDebugData", "parent": 131, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 29}}, {"id": 133, "type": "argument_list", "text": "(FNodeDebugData& DebugData)", "parent": 131, "children": [134], "start_point": {"row": 49, "column": 29}, "end_point": {"row": 49, "column": 56}}, {"id": 134, "type": "binary_expression", "text": "FNodeDebugData& DebugData", "parent": 133, "children": [135, 136], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 55}}, {"id": 135, "type": "identifier", "text": "FNodeDebugData", "parent": 134, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 44}}, {"id": 136, "type": "identifier", "text": "DebugData", "parent": 134, "children": [], "start_point": {"row": 49, "column": 46}, "end_point": {"row": 49, "column": 55}}, {"id": 137, "type": "ERROR", "text": "override", "parent": 29, "children": [138], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 65}}, {"id": 138, "type": "identifier", "text": "override", "parent": 137, "children": [], "start_point": {"row": 49, "column": 57}, "end_point": {"row": 49, "column": 65}}, {"id": 139, "type": "declaration", "text": "virtual void", "parent": 29, "children": [140, 141], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 13}}, {"id": 140, "type": "type_identifier", "text": "virtual", "parent": 139, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 8}}, {"id": 141, "type": "identifier", "text": "void", "parent": 139, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 142, "type": "call_expression", "text": "EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms)", "parent": 29, "children": [143, 144], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 126}}, {"id": 143, "type": "identifier", "text": "EvaluateSkeletalControl_AnyThread", "parent": 142, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 47}}, {"id": 144, "type": "argument_list", "text": "(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms)", "parent": 142, "children": [145, 148], "start_point": {"row": 53, "column": 47}, "end_point": {"row": 53, "column": 126}}, {"id": 145, "type": "binary_expression", "text": "FComponentSpacePoseContext& Output", "parent": 144, "children": [146, 147], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 82}}, {"id": 146, "type": "identifier", "text": "FComponentSpacePoseContext", "parent": 145, "children": [], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 74}}, {"id": 147, "type": "identifier", "text": "Output", "parent": 145, "children": [], "start_point": {"row": 53, "column": 76}, "end_point": {"row": 53, "column": 82}}, {"id": 148, "type": "binary_expression", "text": "TArray<FBoneTransform>& OutBoneTransforms", "parent": 144, "children": [149, 153, 154], "start_point": {"row": 53, "column": 84}, "end_point": {"row": 53, "column": 125}}, {"id": 149, "type": "binary_expression", "text": "TArray<FBoneTransform", "parent": 148, "children": [150, 151, 152], "start_point": {"row": 53, "column": 84}, "end_point": {"row": 53, "column": 105}}, {"id": 150, "type": "identifier", "text": "TArray", "parent": 149, "children": [], "start_point": {"row": 53, "column": 84}, "end_point": {"row": 53, "column": 90}}, {"id": 151, "type": "<", "text": "<", "parent": 149, "children": [], "start_point": {"row": 53, "column": 90}, "end_point": {"row": 53, "column": 91}}, {"id": 152, "type": "identifier", "text": "FBoneTransform", "parent": 149, "children": [], "start_point": {"row": 53, "column": 91}, "end_point": {"row": 53, "column": 105}}, {"id": 153, "type": ">", "text": ">", "parent": 148, "children": [], "start_point": {"row": 53, "column": 105}, "end_point": {"row": 53, "column": 106}}, {"id": 154, "type": "pointer_expression", "text": "& OutBoneTransforms", "parent": 148, "children": [155], "start_point": {"row": 53, "column": 106}, "end_point": {"row": 53, "column": 125}}, {"id": 155, "type": "identifier", "text": "OutBoneTransforms", "parent": 154, "children": [], "start_point": {"row": 53, "column": 108}, "end_point": {"row": 53, "column": 125}}, {"id": 156, "type": "ERROR", "text": "override", "parent": 29, "children": [157], "start_point": {"row": 53, "column": 127}, "end_point": {"row": 53, "column": 135}}, {"id": 157, "type": "identifier", "text": "override", "parent": 156, "children": [], "start_point": {"row": 53, "column": 127}, "end_point": {"row": 53, "column": 135}}, {"id": 158, "type": "declaration", "text": "virtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n\t// End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n\t// FAnimNode_SkeletalControlBase interface\n\tvirtual", "parent": 29, "children": [159, 160, 174, 175], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 159, "type": "type_identifier", "text": "virtual", "parent": 158, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 8}}, {"id": 160, "type": "ERROR", "text": "bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;", "parent": 158, "children": [161, 162], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 105}}, {"id": 161, "type": "identifier", "text": "bool", "parent": 160, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 13}}, {"id": 162, "type": "function_declarator", "text": "IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override", "parent": 160, "children": [163, 164, 173], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 104}}, {"id": 163, "type": "identifier", "text": "IsValidToEvaluate", "parent": 162, "children": [], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 31}}, {"id": 164, "type": "parameter_list", "text": "(const USkeleton* Skeleton, const FBoneContainer& RequiredBones)", "parent": 162, "children": [165, 170], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 95}}, {"id": 165, "type": "parameter_declaration", "text": "const USkeleton* Skeleton", "parent": 164, "children": [166, 167], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 57}}, {"id": 166, "type": "type_identifier", "text": "USkeleton", "parent": 165, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 47}}, {"id": 167, "type": "pointer_declarator", "text": "* Skeleton", "parent": 165, "children": [168, 169], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 57}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 54, "column": 47}, "end_point": {"row": 54, "column": 48}}, {"id": 169, "type": "identifier", "text": "Skeleton", "parent": 167, "children": [], "start_point": {"row": 54, "column": 49}, "end_point": {"row": 54, "column": 57}}, {"id": 170, "type": "parameter_declaration", "text": "const FBoneContainer& RequiredBones", "parent": 164, "children": [171, 172], "start_point": {"row": 54, "column": 59}, "end_point": {"row": 54, "column": 94}}, {"id": 171, "type": "type_identifier", "text": "FBoneContainer", "parent": 170, "children": [], "start_point": {"row": 54, "column": 65}, "end_point": {"row": 54, "column": 79}}, {"id": 172, "type": "identifier", "text": "RequiredBones", "parent": 170, "children": [], "start_point": {"row": 54, "column": 81}, "end_point": {"row": 54, "column": 94}}, {"id": 173, "type": "identifier", "text": "override", "parent": 162, "children": [], "start_point": {"row": 54, "column": 96}, "end_point": {"row": 54, "column": 104}}, {"id": 174, "type": "ERROR", "text": "private:", "parent": 158, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 8}}, {"id": 175, "type": "identifier", "text": "virtual", "parent": 158, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 176, "type": "ERROR", "text": "void InitializeBoneReferences(const FBoneContainer& RequiredBones) override", "parent": 29, "children": [177, 178], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 84}}, {"id": 177, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 13}}, {"id": 178, "type": "function_declarator", "text": "InitializeBoneReferences(const FBoneContainer& RequiredBones) override", "parent": 176, "children": [179, 180, 184], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 84}}, {"id": 179, "type": "identifier", "text": "InitializeBoneReferences", "parent": 178, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 38}}, {"id": 180, "type": "parameter_list", "text": "(const FBoneContainer& RequiredBones)", "parent": 178, "children": [181], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 75}}, {"id": 181, "type": "parameter_declaration", "text": "const FBoneContainer& RequiredBones", "parent": 180, "children": [182, 183], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 74}}, {"id": 182, "type": "type_identifier", "text": "FBoneContainer", "parent": 181, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 59}}, {"id": 183, "type": "identifier", "text": "RequiredBones", "parent": 181, "children": [], "start_point": {"row": 59, "column": 61}, "end_point": {"row": 59, "column": 74}}, {"id": 184, "type": "identifier", "text": "override", "parent": 178, "children": [], "start_point": {"row": 59, "column": 76}, "end_point": {"row": 59, "column": 84}}]}, "node_categories": {"declarations": {"functions": [29, 162, 178], "variables": [21, 23, 45, 56, 73, 90, 107, 128, 139, 158, 165, 170, 181], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [34, 37, 48, 59, 71, 76, 88, 93, 105, 110, 118, 119, 125, 131, 134, 142, 145, 148, 149, 154], "assignments": [41, 52, 64, 68, 81, 85, 98, 102, 114], "loops": [], "conditionals": [22, 24, 25, 27, 28, 30, 32, 33, 35, 38, 40, 42, 44, 46, 47, 49, 51, 53, 55, 57, 58, 60, 62, 63, 65, 67, 69, 72, 75, 77, 79, 80, 82, 84, 86, 89, 92, 94, 96, 97, 99, 101, 103, 106, 109, 111, 113, 115, 117, 120, 122, 124, 126, 129, 130, 132, 135, 136, 138, 140, 141, 143, 146, 147, 150, 152, 155, 157, 159, 161, 163, 166, 169, 171, 172, 173, 175, 179, 182, 183, 184], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 29, "universal_type": "function", "name": "bCopyTranslation;", "text_snippet": "ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase\n{\n\tGENERATED_USTRUCT_"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "InitializeBoneReferences(const FBoneContainer& RequiredBones) override"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"CoreMinimal.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"UObject/ObjectMacros.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"BoneContainer.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"BonePose.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"BoneControllers/AnimNode_SkeletalControlBase.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"AnimNode_CopyBone.generated.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"UObject/ObjectMacros.h\"\n#include \"BoneContainer.h\"\n#include \"BonePose.h\"\n#include \"BoneControllers/AnimNode_SkeletalControlBase.h\"\n#include \"AnimNode_CopyBone.generated.h\"\n\nclass USkeletalMeshComponent;\n\n/**\n *\tSimple controller to copy a bone's transform to another one.\n */\n\nUSTRUCT(BlueprintInternalUseOnly)\nstruct ANIMGRAPHRUNTIME_API FAnimNode_CopyBone : public FAnimNode_SkeletalControlBase\n{\n\tGENERATED_USTRUCT_BODY()\n\n\t/** Source Bone Name to get transform from */\n\tUPROPERTY(EditAnywhere, Category = Copy)\n\tFBoneReference SourceBone;\n\n\t/** Name of bone to control. This is the main bone chain to modify from. **/\n\tUPROPERTY(EditAnywhere, Category=Copy) \n\tFBoneReference TargetBone;\n\n\t/** If Translation should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyTranslation;\n\n\t/** If Rotation should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyRotation;\n\n\t/** If Scale should be copied */\n\tUPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Copy, meta=(PinShownByDefault))\n\tbool bCopyScale;\n\n\t/** Space to convert transforms into prior to copying components */\n\tUPROPERTY(EditAnywhere, Category = Copy)\n\tTEnumAsByte<EBoneControlSpace> ControlSpace;\n\n\tFAnimNode_CopyBone();\n\n\t// FAnimNode_Base interface\n\tvirtual void GatherDebugData(FNodeDebugData& DebugData) override;\n\t// End of FAnimNode_Base interface\n\n\t// FAnimNode_SkeletalControlBase interface\n\tvirtual void EvaluateSkeletalControl_AnyThread(FComponentSpacePoseContext& Output, TArray<FBoneTransform>& OutBoneTransforms) override;\n\tvirtual bool IsValidToEvaluate(const USkeleton* Skeleton, const FBoneContainer& RequiredBones) override;\n\t// End of FAnimNode_SkeletalControlBase interface\n\nprivate:\n\t// FAnimNode_SkeletalControlBase interface\n\tvirtual void InitializeBoneReferences(const FBoneContainer& RequiredBones) override;\n\t// End of FAnimNode_SkeletalControlBase interface\n};\n"}
80,761
c
#ifndef PERMUTATIONCRSOPX_H #define PERMUTATIONCRSOPX_H namespace Permutation { /** * \ingroup genotypes permutation * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf) */ class PermutationCrsOPX : public CrossoverOp { public: bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); bool initialize(StateP); void registerParameters(StateP); }; typedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP; } #endif //PERMUTATIONCRS_H
24.95
19
(translation_unit) "#ifndef PERMUTATIONCRSOPX_H\n#define PERMUTATIONCRSOPX_H\n\n\nnamespace Permutation\n{\n\n/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}\n#endif //PERMUTATIONCRS_H\n" (preproc_ifdef) "#ifndef PERMUTATIONCRSOPX_H\n#define PERMUTATIONCRSOPX_H\n\n\nnamespace Permutation\n{\n\n/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}\n#endif" (#ifndef) "#ifndef" (identifier) "PERMUTATIONCRSOPX_H" (preproc_def) "#define PERMUTATIONCRSOPX_H\n" (#define) "#define" (identifier) "PERMUTATIONCRSOPX_H" (function_definition) "namespace Permutation\n{\n\n/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}" (type_identifier) "namespace" (identifier) "Permutation" (compound_statement) "{\n\n/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}" ({) "{" (comment) "/**\n * \ingroup genotypes permutation\n * \brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */" (function_definition) "class PermutationCrsOPX : public CrossoverOp\n{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n}" (type_identifier) "class" (identifier) "PermutationCrsOPX" (ERROR) ": public CrossoverOp" (:) ":" (identifier) "public" (identifier) "CrossoverOp" (compound_statement) "{\npublic:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child); \n bool initialize(StateP);\n void registerParameters(StateP);\n}" ({) "{" (labeled_statement) "public:\n bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);" (statement_identifier) "public" (:) ":" (declaration) "bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);" (primitive_type) "bool" (function_declarator) "mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child)" (identifier) "mate" (parameter_list) "(GenotypeP gen1, GenotypeP gen2, GenotypeP child)" (() "(" (parameter_declaration) "GenotypeP gen1" (type_identifier) "GenotypeP" (identifier) "gen1" (,) "," (parameter_declaration) "GenotypeP gen2" (type_identifier) "GenotypeP" (identifier) "gen2" (,) "," (parameter_declaration) "GenotypeP child" (type_identifier) "GenotypeP" (identifier) "child" ()) ")" (;) ";" (declaration) "bool initialize(StateP);" (primitive_type) "bool" (function_declarator) "initialize(StateP)" (identifier) "initialize" (parameter_list) "(StateP)" (() "(" (parameter_declaration) "StateP" (type_identifier) "StateP" ()) ")" (;) ";" (declaration) "void registerParameters(StateP);" (primitive_type) "void" (function_declarator) "registerParameters(StateP)" (identifier) "registerParameters" (parameter_list) "(StateP)" (() "(" (parameter_declaration) "StateP" (type_identifier) "StateP" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (type_definition) "typedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;" (typedef) "typedef" (type_identifier) "boost" (ERROR) "::shared_ptr<PermutationCrsOPX>" (:) ":" (:) ":" (type_identifier) "shared_ptr" (<) "<" (type_identifier) "PermutationCrsOPX" (>) ">" (type_identifier) "PermutationCrsOPXP" (;) ";" (}) "}" (#endif) "#endif" (comment) "//PERMUTATIONCRS_H"
82
2
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.95, "nodes": 52, "errors": 0, "source_hash": "3f742cc29681d1875310a92cc3f2ac1f7d2886c7d545d1b75d75309887b37270", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PERMUTATIONCRSOPX_H\n#define PERMUTATIONCRSOPX_H\n\n\nnamespace Permutation\n{\n\n/**\n * \\ingroup genotypes permutation\n * \\brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);\t\n\tbool initialize(StateP);\n\tvoid registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 51], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 20, "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": "PERMUTATIONCRSOPX_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define PERMUTATIONCRSOPX_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": "PERMUTATIONCRSOPX_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "function_definition", "text": "namespace Permutation\n{\n\n/**\n * \\ingroup genotypes permutation\n * \\brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);\t\n\tbool initialize(StateP);\n\tvoid registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}", "parent": 0, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 8, "type": "identifier", "text": "Permutation", "parent": 6, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 21}}, {"id": 9, "type": "function_definition", "text": "class PermutationCrsOPX : public CrossoverOp\n{\npublic:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);\t\n\tbool initialize(StateP);\n\tvoid registerParameters(StateP);\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 10, "type": "identifier", "text": "PermutationCrsOPX", "parent": 9, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 23}}, {"id": 11, "type": "ERROR", "text": ": public CrossoverOp", "parent": 9, "children": [12], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 44}}, {"id": 12, "type": "identifier", "text": "CrossoverOp", "parent": 11, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 44}}, {"id": 13, "type": "labeled_statement", "text": "public:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);", "parent": 9, "children": [14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 60}}, {"id": 14, "type": "declaration", "text": "bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);", "parent": 13, "children": [15, 16], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 60}}, {"id": 15, "type": "primitive_type", "text": "bool", "parent": 14, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 5}}, {"id": 16, "type": "function_declarator", "text": "mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child)", "parent": 14, "children": [17, 18], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 59}}, {"id": 17, "type": "identifier", "text": "mate", "parent": 16, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 10}}, {"id": 18, "type": "parameter_list", "text": "(GenotypeP gen1, GenotypeP gen2, GenotypeP child)", "parent": 16, "children": [19, 22, 25], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 59}}, {"id": 19, "type": "parameter_declaration", "text": "GenotypeP gen1", "parent": 18, "children": [20, 21], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 25}}, {"id": 20, "type": "type_identifier", "text": "GenotypeP", "parent": 19, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 21, "type": "identifier", "text": "gen1", "parent": 19, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 25}}, {"id": 22, "type": "parameter_declaration", "text": "GenotypeP gen2", "parent": 18, "children": [23, 24], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 41}}, {"id": 23, "type": "type_identifier", "text": "GenotypeP", "parent": 22, "children": [], "start_point": {"row": 14, "column": 27}, "end_point": {"row": 14, "column": 36}}, {"id": 24, "type": "identifier", "text": "gen2", "parent": 22, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 41}}, {"id": 25, "type": "parameter_declaration", "text": "GenotypeP child", "parent": 18, "children": [26, 27], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 58}}, {"id": 26, "type": "type_identifier", "text": "GenotypeP", "parent": 25, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 52}}, {"id": 27, "type": "identifier", "text": "child", "parent": 25, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 58}}, {"id": 28, "type": "declaration", "text": "bool initialize(StateP);", "parent": 9, "children": [29, 30], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 25}}, {"id": 29, "type": "primitive_type", "text": "bool", "parent": 28, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 5}}, {"id": 30, "type": "function_declarator", "text": "initialize(StateP)", "parent": 28, "children": [31, 32], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 24}}, {"id": 31, "type": "identifier", "text": "initialize", "parent": 30, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 16}}, {"id": 32, "type": "parameter_list", "text": "(StateP)", "parent": 30, "children": [33], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 24}}, {"id": 33, "type": "parameter_declaration", "text": "StateP", "parent": 32, "children": [34], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 34, "type": "type_identifier", "text": "StateP", "parent": 33, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 35, "type": "declaration", "text": "void registerParameters(StateP);", "parent": 9, "children": [36, 37], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 33}}, {"id": 36, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 37, "type": "function_declarator", "text": "registerParameters(StateP)", "parent": 35, "children": [38, 39], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 32}}, {"id": 38, "type": "identifier", "text": "registerParameters", "parent": 37, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 24}}, {"id": 39, "type": "parameter_list", "text": "(StateP)", "parent": 37, "children": [40], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 32}}, {"id": 40, "type": "parameter_declaration", "text": "StateP", "parent": 39, "children": [41], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 31}}, {"id": 41, "type": "type_identifier", "text": "StateP", "parent": 40, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 31}}, {"id": 42, "type": "type_definition", "text": "typedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;", "parent": 6, "children": [43, 44, 45, 50], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 64}}, {"id": 43, "type": "typedef", "text": "typedef", "parent": 42, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 44, "type": "type_identifier", "text": "boost", "parent": 42, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 13}}, {"id": 45, "type": "ERROR", "text": "::shared_ptr<PermutationCrsOPX>", "parent": 42, "children": [46, 47, 48, 49], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 44}}, {"id": 46, "type": "type_identifier", "text": "shared_ptr", "parent": 45, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 25}}, {"id": 47, "type": "<", "text": "<", "parent": 45, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 26}}, {"id": 48, "type": "type_identifier", "text": "PermutationCrsOPX", "parent": 45, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 43}}, {"id": 49, "type": ">", "text": ">", "parent": 45, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 44}}, {"id": 50, "type": "type_identifier", "text": "PermutationCrsOPXP", "parent": 42, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 63}}, {"id": 51, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 9, 16, 30, 37], "variables": [14, 19, 22, 25, 28, 33, 35, 40, 42], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 8, 10, 12, 17, 20, 21, 23, 24, 26, 27, 31, 34, 38, 41, 44, 46, 48, 50, 51], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "PermutationCrsOPX", "text_snippet": "namespace Permutation\n{\n\n/**\n * \\ingroup genotypes permutation\n * \\brief Permutation genotype: OPX c"}, {"node_id": 9, "universal_type": "function", "name": "PermutationCrsOPX", "text_snippet": "class PermutationCrsOPX : public CrossoverOp\n{\npublic:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, Ge"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "initialize(StateP)"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "registerParameters(StateP)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef PERMUTATIONCRSOPX_H\n#define PERMUTATIONCRSOPX_H\n\n\nnamespace Permutation\n{\n\n/**\n * \\ingroup genotypes permutation\n * \\brief Permutation genotype: OPX crossover operator (see e.g. itc.ktu.lt/itc342/Misev342.pdf)\n */\nclass PermutationCrsOPX : public CrossoverOp\n{\npublic:\n\tbool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);\t\n\tbool initialize(StateP);\n\tvoid registerParameters(StateP);\n};\ntypedef boost::shared_ptr<PermutationCrsOPX> PermutationCrsOPXP;\n}\n#endif //PERMUTATIONCRS_H\n"}
80,762
c
// // HW.H // General hardware definitions // #ifndef HW_H #define HW_H #define APB1_FREQ 84000000 #define SAMPLE_FREQ 44000 //Define the 12 bit DAC converter's range #define DAC_MIN 0 #define DAC_MID (1<<11) //Middle #define DAC_MAX ((1<<12) - 1) #endif //HW_H
20.36
14
(translation_unit) "//\n// HW.H\n// General hardware definitions\n//\n\n#ifndef HW_H\n#define HW_H\n\n#define APB1_FREQ 84000000\n#define SAMPLE_FREQ 44000\n\n//Define the 12 bit DAC converter's range\n#define DAC_MIN 0\n#define DAC_MID (1<<11) //Middle\n#define DAC_MAX ((1<<12) - 1)\n\n\n#endif //HW_H\n" (comment) "//" (comment) "// HW.H" (comment) "// General hardware definitions" (comment) "//" (preproc_ifdef) "#ifndef HW_H\n#define HW_H\n\n#define APB1_FREQ 84000000\n#define SAMPLE_FREQ 44000\n\n//Define the 12 bit DAC converter's range\n#define DAC_MIN 0\n#define DAC_MID (1<<11) //Middle\n#define DAC_MAX ((1<<12) - 1)\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "HW_H" (preproc_def) "#define HW_H\n" (#define) "#define" (identifier) "HW_H" (preproc_def) "#define APB1_FREQ 84000000\n" (#define) "#define" (identifier) "APB1_FREQ" (preproc_arg) "84000000" (preproc_def) "#define SAMPLE_FREQ 44000\n" (#define) "#define" (identifier) "SAMPLE_FREQ" (preproc_arg) "44000" (comment) "//Define the 12 bit DAC converter's range" (preproc_def) "#define DAC_MIN 0\n" (#define) "#define" (identifier) "DAC_MIN" (preproc_arg) "0" (preproc_def) "#define DAC_MID (1<<11) //Middle\n" (#define) "#define" (identifier) "DAC_MID" (preproc_arg) "(1<<11) //Middle" (preproc_def) "#define DAC_MAX ((1<<12) - 1)\n" (#define) "#define" (identifier) "DAC_MAX" (preproc_arg) "((1<<12) - 1)" (#endif) "#endif" (comment) "//HW_H"
34
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 20.36, "nodes": 27, "errors": 0, "source_hash": "173f450777d42e211aae98f0f3803ccd9656db393363c654202570ee4c64858a", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HW_H\n#define HW_H\n\n#define APB1_FREQ 84000000\n#define SAMPLE_FREQ 44000\n\n//Define the 12 bit DAC converter's range\n#define DAC_MIN 0\n#define DAC_MID (1<<11) //Middle\n#define DAC_MAX ((1<<12) - 1)\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 18, 22, 26], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 17, "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": "HW_H", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 12}}, {"id": 3, "type": "preproc_def", "text": "#define HW_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": "HW_H", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 12}}, {"id": 6, "type": "preproc_def", "text": "#define APB1_FREQ 84000000\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": "APB1_FREQ", "parent": 6, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 17}}, {"id": 9, "type": "preproc_arg", "text": "84000000", "parent": 6, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 35}}, {"id": 10, "type": "preproc_def", "text": "#define SAMPLE_FREQ 44000\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": "SAMPLE_FREQ", "parent": 10, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 19}}, {"id": 13, "type": "preproc_arg", "text": "44000", "parent": 10, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 35}}, {"id": 14, "type": "preproc_def", "text": "#define DAC_MIN 0\n", "parent": 0, "children": [15, 16, 17], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 16, "type": "identifier", "text": "DAC_MIN", "parent": 14, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 17, "type": "preproc_arg", "text": "0", "parent": 14, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 18, "type": "preproc_def", "text": "#define DAC_MID (1<<11) //Middle\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 20, "type": "identifier", "text": "DAC_MID", "parent": 18, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 15}}, {"id": 21, "type": "preproc_arg", "text": "(1<<11) //Middle", "parent": 18, "children": [], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 43}}, {"id": 22, "type": "preproc_def", "text": "#define DAC_MAX ((1<<12) - 1)\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 24, "type": "identifier", "text": "DAC_MAX", "parent": 22, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 25, "type": "preproc_arg", "text": "((1<<12) - 1)", "parent": 22, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 32}}, {"id": 26, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 16, 20, 24, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// HW.H\n// General hardware definitions\n//\n\n#ifndef HW_H\n#define HW_H\n\n#define APB1_FREQ 84000000\n#define SAMPLE_FREQ 44000\n\n//Define the 12 bit DAC converter's range\n#define DAC_MIN 0\n#define DAC_MID (1<<11) //Middle\n#define DAC_MAX ((1<<12) - 1)\n\n\n#endif //HW_H\n"}
80,763
c
30 mtime=1440116301.354479277 30 atime=1440176542.689246032 30 ctime=1440177385.521329412
29
3
(translation_unit) "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412\n" (ERROR) "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412" (number_literal) "30" (assignment_expression) "mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412" (identifier) "mtime" (=) "=" (ERROR) "1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=" (number_literal) "1440116301.354479277" (number_literal) "30" (assignment_expression) "atime=1440176542.689246032" (identifier) "atime" (=) "=" (number_literal) "1440176542.689246032" (number_literal) "30" (identifier) "ctime" (=) "=" (number_literal) "1440177385.521329412"
17
2
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 29.0, "nodes": 16, "errors": 0, "source_hash": "7b8ae4053eec0a5e749ff805020c3e823b6bfe45a80fbe7d89a4545163bf94d6", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 2, "column": 29}}, {"id": 1, "type": "number_literal", "text": "30", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 2}}, {"id": 2, "type": "assignment_expression", "text": "mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412", "parent": 0, "children": [3, 4, 5, 15], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 2, "column": 29}}, {"id": 3, "type": "identifier", "text": "mtime", "parent": 2, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 8}}, {"id": 4, "type": "=", "text": "=", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 9}}, {"id": 5, "type": "ERROR", "text": "1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=", "parent": 2, "children": [6, 7, 8, 12, 13, 14], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 2, "column": 9}}, {"id": 6, "type": "number_literal", "text": "1440116301.354479277", "parent": 5, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 29}}, {"id": 7, "type": "number_literal", "text": "30", "parent": 5, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 2}}, {"id": 8, "type": "assignment_expression", "text": "atime=1440176542.689246032", "parent": 5, "children": [9, 10, 11], "start_point": {"row": 1, "column": 3}, "end_point": {"row": 1, "column": 29}}, {"id": 9, "type": "identifier", "text": "atime", "parent": 8, "children": [], "start_point": {"row": 1, "column": 3}, "end_point": {"row": 1, "column": 8}}, {"id": 10, "type": "=", "text": "=", "parent": 8, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 9}}, {"id": 11, "type": "number_literal", "text": "1440176542.689246032", "parent": 8, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 29}}, {"id": 12, "type": "number_literal", "text": "30", "parent": 5, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 2}}, {"id": 13, "type": "identifier", "text": "ctime", "parent": 5, "children": [], "start_point": {"row": 2, "column": 3}, "end_point": {"row": 2, "column": 8}}, {"id": 14, "type": "=", "text": "=", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 9}}, {"id": 15, "type": "number_literal", "text": "1440177385.521329412", "parent": 2, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 29}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [2, 8], "loops": [], "conditionals": [3, 9, 13], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [1, 6, 7, 11, 12, 15], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "30 mtime=1440116301.354479277\n30 atime=1440176542.689246032\n30 ctime=1440177385.521329412\n"}
80,764
c
// Copyright (c) 2014 Adafruit Industries // Author: <NAME> // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. #include <errno.h> #include <fcntl.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/file.h> #include <time.h> #include <unistd.h> #include "bcm2708.h" #include "../realtime.h" #include "pi_dht_read.h" #define LOCKFILE "/run/lock/dht_read.lck" // Signal transition timeout in microsecond #define MAX_WAIT_US 400 // Number of bytes to expect from the DHT. // They are humidity high, humidity low, temp high, temp low and checksum. #define DHT_BYTES 5 // Number of bit pulses to expect from the DHT. Note that this is 41 because // the first pulse is a constant 80 microsecond pulse, with 40 pulses to represent // the data afterwards. #define DHT_PULSES (1 + DHT_BYTES * 8) static const char *getLogHeader() { static char buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: "; time_t timeNow = time(NULL); struct tm tmNow; localtime_r(&timeNow, &tmNow); snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ", tmNow.tm_year + 1900, tmNow.tm_mon + 1, tmNow.tm_mday, tmNow.tm_hour, tmNow.tm_min, tmNow.tm_sec); return buff; } #define DHT_READ_LOG(fmt, ...) printf("%s" fmt, getLogHeader(), ##__VA_ARGS__ ) // Return time in microsecond when the (pin) input signal is changed to (transitionHigh). // Returns 0 if timeout. Otherwise non-zero microsecond is returned. static uint32_t getTransitionMicros(int pin, bool transitionHigh) { uint32_t expectedValue = transitionHigh ? (1 << pin) : 0; uint32_t startedMicros = pi_timer_micros(); while (pi_mmio_input(pin) != expectedValue) { uint32_t elapsedMicros = pi_timer_micros() - startedMicros; if (elapsedMicros >= MAX_WAIT_US) { return 0; // Timeout! } } uint32_t nowMicros = pi_timer_micros(); // If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second), // return maximum uint32 value, which is one microsecond earier time. return (nowMicros == 0) ? UINT32_MAX : nowMicros; } static int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) { *pTemperature = 0.0f; *pHumidity = 0.0f; // Store pulse widths that each DHT bit pulse is low and high. // Make sure array is initialized to start at zero. uint32_t lowMicros[DHT_PULSES + 1] = {0}; uint32_t highMicros[DHT_PULSES] = {0}; // Set pin to output. pi_mmio_set_output(pin); // Bump up process priority and change scheduler to try to try to make process more 'real time'. set_max_priority(); // Set pin high for ~500 milliseconds. pi_mmio_set_high(pin); sleep_milliseconds(500); // The next calls are timing critical and care should be taken // to ensure no unnecssary work is done below. // Set pin low for ~20 milliseconds. pi_mmio_set_low(pin); busy_wait_milliseconds(20); // Set pin at input. pi_mmio_set_input(pin); // Need a very short delay before reading pins or else value is sometimes still low. pi_timer_sleep_micros( 2 ); // Wait for DHT to pull pin low. uint32_t lowStartedUs = getTransitionMicros(pin, false); if (lowStartedUs == 0) { set_default_priority(); DHT_READ_LOG("Timeout waiting for response low\n"); return 0; } // Record pulse widths for the expected result bits. int i; uint32_t highStartedUs; for (i=0; i < DHT_PULSES; i++) { // Count how long pin is low and store in lowMicros[i] highStartedUs = getTransitionMicros(pin, true); if (highStartedUs == 0) { set_default_priority(); DHT_READ_LOG("Timeout waiting for high[%d]\n", i); return 0; } lowMicros[i] = highStartedUs - lowStartedUs; // Count how long pin is high and store in highMicros[i] lowStartedUs = getTransitionMicros(pin, false); if (lowStartedUs == 0) { set_default_priority(); DHT_READ_LOG("Timeout waiting for low[%d]\n", i); return 0; } highMicros[i] = lowStartedUs - highStartedUs; } // Count how log pin is low and store the final lowMicros highStartedUs = getTransitionMicros(pin, true); if (highStartedUs == 0) { // Timeout waiting for response. set_default_priority(); DHT_READ_LOG("Timeout waiting for high[release]\n"); return 0; } lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; // Done with timing critical code, now interpret the results. // Drop back to normal priority. set_default_priority(); uint32_t threshold = 0; bool needAdjust = true; while (needAdjust) { // Compute the average low pulse width to use as a 50 microsecond reference threshold. // Ignore the first reading because it is a constant 80 microsecond pulse. threshold = 0; for (i=1; i < DHT_PULSES; i++) { threshold += lowMicros[i]; } threshold /= DHT_PULSES-1; uint32_t lowHighThreshold = threshold * 2; // Adjust high pulse widths for the interrupts needAdjust = false; for (i=1; i < DHT_PULSES; i++) { // If the high width is less than the threshold... if (highMicros[i] < threshold) { uint32_t lowHigh = lowMicros[i] + highMicros[i]; // But the (low + high) width is equal to or more than the threshold... if (lowHigh >= lowHighThreshold) { // Interrupted during high detection. Add interrupt time to highMicors DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold)); highMicros[i] += lowMicros[i] - threshold; lowMicros[i] = threshold; needAdjust = true; } } else { // If the high width is equal or more than the threshold... uint32_t lowHigh = highMicros[i] + lowMicros[i+1]; // But the (high+low) width is less than the threshold if (lowHigh < lowHighThreshold) { // Interrupted during low detection. Subtract interrupt time from highMicros. DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold)); highMicros[i] += lowMicros[i+1] - threshold; lowMicros[i+1] = threshold; needAdjust = true; } } } // for adjust loop } // while needAdjust // Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference. // If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher // then it must be a ~70us 1 pulse. uint8_t data[DHT_BYTES] = {0}; for (i=1; i < DHT_PULSES; i++) { int index = (i-1)/8; data[index] <<= 1; if (highMicros[i] >= threshold) { // One bit for long pulse. data[index] |= 1; } // Else zero bit for short pulse. } // Useful debug info: //printf("Data: 0x%x 0x%x 0x%x 0x%x 0x%x\n", data[0], data[1], data[2], data[3], data[4]); // Verify checksum of received data. if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) { DHT_READ_LOG("Checksum error\n"); for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]); DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]); return 0; } if (type == DHT11) { // Get humidity and temp for DHT11 sensor. *pHumidity = (float)data[0]; *pTemperature = (float)data[2]; } else if (type == DHT22) { // Calculate humidity and temp for DHT22 sensor. *pHumidity = (data[0] * 256 + data[1]) / 10.0f; *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f; if (data[2] & 0x80) { *pTemperature *= -1.0f; } } return 1; } static int open_lockfile(const char *filename) { int fd = open(filename, O_CREAT | O_RDONLY, 0600); if (fd < 0) { printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno)); return -1; } if (flock(fd, LOCK_EX | LOCK_NB) == -1) { if(errno == EWOULDBLOCK) { printf("Lock file is in use\n"); } perror("Flock failed"); return -1; } return fd; } static void close_lockfile(int fd) { if(flock(fd, LOCK_UN) == -1) { perror("Failed to unlock file"); } if(close(fd) == -1) { perror("Closing descriptor on lock file failed"); } } int dht_read(int type, int pin, float *pHumidity, float *pTemperature) { int success = 0; // Validate humidity and temperature arguments and set them to zero. if (pHumidity == NULL || pTemperature == NULL) { DHT_READ_LOG("bad argument\n"); } else // Initialize GPIO library. if (pi_mmio_init() < 0) { DHT_READ_LOG("MMIO init failed. May not be root\n"); } else { int lockfd = -1; int count = 10; while (count-- > 0) { if (lockfd < 0) { lockfd = open_lockfile(LOCKFILE); } if (lockfd >= 0) { success = pi_dht_read(type, pin, pHumidity, pTemperature); if (success) { count = 0; } } if (count > 0) { sleep(1); // wait 1 sec to refresh } } // while count > 0 if (lockfd >= 0) { close_lockfile(lockfd); } } // successfully initialized GPIO library return success; }
35.64
264
(translation_unit) "// Copyright (c) 2014 Adafruit Industries\n// Author: <NAME>\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the "Software"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in 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#include <errno.h>\n#include <fcntl.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/file.h>\n#include <time.h>\n#include <unistd.h>\n\n#include "bcm2708.h"\n#include "../realtime.h"\n#include "pi_dht_read.h"\n\n#define LOCKFILE "/run/lock/dht_read.lck"\n\n// Signal transition timeout in microsecond\n#define MAX_WAIT_US 400\n\n// Number of bytes to expect from the DHT.\n// They are humidity high, humidity low, temp high, temp low and checksum.\n#define DHT_BYTES 5\n\n// Number of bit pulses to expect from the DHT. Note that this is 41 because\n// the first pulse is a constant 80 microsecond pulse, with 40 pulses to represent\n// the data afterwards.\n#define DHT_PULSES (1 + DHT_BYTES * 8)\n\nstatic const char *getLogHeader() {\n static char buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: ";\n time_t timeNow = time(NULL);\n struct tm tmNow;\n localtime_r(&timeNow, &tmNow);\n snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec);\n return buff;\n}\n\n#define DHT_READ_LOG(fmt, ...) printf("%s" fmt, getLogHeader(), ##__VA_ARGS__ )\n\n\n// Return time in microsecond when the (pin) input signal is changed to (transitionHigh).\n// Returns 0 if timeout. Otherwise non-zero microsecond is returned.\nstatic uint32_t getTransitionMicros(int pin, bool transitionHigh) {\n uint32_t expectedValue = transitionHigh ? (1 << pin) : 0;\n uint32_t startedMicros = pi_timer_micros();\n while (pi_mmio_input(pin) != expectedValue) {\n uint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }\n }\n uint32_t nowMicros = pi_timer_micros();\n // If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second),\n // return maximum uint32 value, which is one microsecond earier time.\n return (nowMicros == 0) ? UINT32_MAX : nowMicros;\n}\n\nstatic int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) {\n *pTemperature = 0.0f;\n *pHumidity = 0.0f;\n\n // Store pulse widths that each DHT bit pulse is low and high.\n // Make sure array is initialized to start at zero.\n uint32_t lowMicros[DHT_PULSES + 1] = {0};\n uint32_t highMicros[DHT_PULSES] = {0};\n\n // Set pin to output.\n pi_mmio_set_output(pin);\n\n // Bump up process priority and change scheduler to try to try to make process more 'real time'.\n set_max_priority();\n\n // Set pin high for ~500 milliseconds.\n pi_mmio_set_high(pin);\n sleep_milliseconds(500);\n\n // The next calls are timing critical and care should be taken\n // to ensure no unnecssary work is done below.\n\n // Set pin low for ~20 milliseconds.\n pi_mmio_set_low(pin);\n busy_wait_milliseconds(20);\n\n // Set pin at input.\n pi_mmio_set_input(pin);\n\n // Need a very short delay before reading pins or else value is sometimes still low.\n pi_timer_sleep_micros( 2 );\n\n // Wait for DHT to pull pin low.\n uint32_t lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for response low\n");\n return 0;\n }\n\n // Record pulse widths for the expected result bits.\n int i;\n uint32_t highStartedUs;\n for (i=0; i < DHT_PULSES; i++) {\n\n // Count how long pin is low and store in lowMicros[i]\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }\n lowMicros[i] = highStartedUs - lowStartedUs; \n\n // Count how long pin is high and store in highMicros[i]\n lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }\n highMicros[i] = lowStartedUs - highStartedUs;\n }\n // Count how log pin is low and store the final lowMicros\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n // Timeout waiting for response.\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[release]\n");\n return 0;\n }\n lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; \n\n // Done with timing critical code, now interpret the results.\n\n // Drop back to normal priority.\n set_default_priority();\n\n uint32_t threshold = 0;\n bool needAdjust = true;\n while (needAdjust) {\n // Compute the average low pulse width to use as a 50 microsecond reference threshold.\n // Ignore the first reading because it is a constant 80 microsecond pulse.\n threshold = 0;\n for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }\n threshold /= DHT_PULSES-1;\n uint32_t lowHighThreshold = threshold * 2;\n \n // Adjust high pulse widths for the interrupts\n needAdjust = false;\n for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n } // for adjust loop\n } // while needAdjust\n\n // Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference.\n // If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher\n // then it must be a ~70us 1 pulse.\n uint8_t data[DHT_BYTES] = {0};\n for (i=1; i < DHT_PULSES; i++) {\n int index = (i-1)/8;\n data[index] <<= 1;\n if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }\n // Else zero bit for short pulse.\n }\n\n // Useful debug info:\n //printf("Data: 0x%x 0x%x 0x%x 0x%x 0x%x\n", data[0], data[1], data[2], data[3], data[4]);\n\n // Verify checksum of received data.\n if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n DHT_READ_LOG("Checksum error\n");\n for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);\n DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);\n return 0;\n }\n if (type == DHT11) {\n // Get humidity and temp for DHT11 sensor.\n *pHumidity = (float)data[0];\n *pTemperature = (float)data[2];\n } else if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }\n return 1;\n}\n\nstatic int open_lockfile(const char *filename) {\n int fd = open(filename, O_CREAT | O_RDONLY, 0600);\n if (fd < 0) {\n printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));\n return -1;\n }\n if (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }\n perror("Flock failed");\n return -1;\n }\n return fd;\n}\n\nstatic void close_lockfile(int fd) {\n if(flock(fd, LOCK_UN) == -1) {\n perror("Failed to unlock file");\n }\n if(close(fd) == -1) {\n perror("Closing descriptor on lock file failed");\n }\n}\n\nint dht_read(int type, int pin, float *pHumidity, float *pTemperature) {\n int success = 0;\n // Validate humidity and temperature arguments and set them to zero.\n if (pHumidity == NULL || pTemperature == NULL) {\n DHT_READ_LOG("bad argument\n");\n } else \n // Initialize GPIO library.\n if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n } // successfully initialized GPIO library\n return success;\n}\n" (comment) "// Copyright (c) 2014 Adafruit Industries" (comment) "// Author: <NAME>" (comment) "// Permission is hereby granted, free of charge, to any person obtaining a copy" (comment) "// of this software and associated documentation files (the "Software"), to deal" (comment) "// in the Software without restriction, including without limitation the rights" (comment) "// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell" (comment) "// copies of the Software, and to permit persons to whom the Software is" (comment) "// furnished to do so, subject to the following conditions:" (comment) "// The above copyright notice and this permission notice shall be included in all" (comment) "// copies or substantial portions of the Software." (comment) "// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR" (comment) "// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY," (comment) "// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE" (comment) "// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER" (comment) "// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM," (comment) "// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE" (comment) "// SOFTWARE." (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.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 <sys/file.h>\n" (#include) "#include" (system_lib_string) "<sys/file.h>" (preproc_include) "#include <time.h>\n" (#include) "#include" (system_lib_string) "<time.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include "bcm2708.h"\n" (#include) "#include" (string_literal) ""bcm2708.h"" (") """ (string_content) "bcm2708.h" (") """ (preproc_include) "#include "../realtime.h"\n" (#include) "#include" (string_literal) ""../realtime.h"" (") """ (string_content) "../realtime.h" (") """ (preproc_include) "#include "pi_dht_read.h"\n" (#include) "#include" (string_literal) ""pi_dht_read.h"" (") """ (string_content) "pi_dht_read.h" (") """ (preproc_def) "#define LOCKFILE "/run/lock/dht_read.lck"\n" (#define) "#define" (identifier) "LOCKFILE" (preproc_arg) ""/run/lock/dht_read.lck"" (comment) "// Signal transition timeout in microsecond" (preproc_def) "#define MAX_WAIT_US 400\n" (#define) "#define" (identifier) "MAX_WAIT_US" (preproc_arg) "400" (comment) "// Number of bytes to expect from the DHT." (comment) "// They are humidity high, humidity low, temp high, temp low and checksum." (preproc_def) "#define DHT_BYTES 5\n" (#define) "#define" (identifier) "DHT_BYTES" (preproc_arg) "5" (comment) "// Number of bit pulses to expect from the DHT. Note that this is 41 because" (comment) "// the first pulse is a constant 80 microsecond pulse, with 40 pulses to represent" (comment) "// the data afterwards." (preproc_def) "#define DHT_PULSES (1 + DHT_BYTES * 8)\n" (#define) "#define" (identifier) "DHT_PULSES" (preproc_arg) "(1 + DHT_BYTES * 8)" (function_definition) "static const char *getLogHeader() {\n static char buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: ";\n time_t timeNow = time(NULL);\n struct tm tmNow;\n localtime_r(&timeNow, &tmNow);\n snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec);\n return buff;\n}" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*getLogHeader()" (*) "*" (function_declarator) "getLogHeader()" (identifier) "getLogHeader" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n static char buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: ";\n time_t timeNow = time(NULL);\n struct tm tmNow;\n localtime_r(&timeNow, &tmNow);\n snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec);\n return buff;\n}" ({) "{" (declaration) "static char buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: ";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "buff[] = "YYYY-MM-DDTHH:MM:SS dht_read: "" (array_declarator) "buff[]" (identifier) "buff" ([) "[" (]) "]" (=) "=" (string_literal) ""YYYY-MM-DDTHH:MM:SS dht_read: "" (") """ (string_content) "YYYY-MM-DDTHH:MM:SS dht_read: " (") """ (;) ";" (declaration) "time_t timeNow = time(NULL);" (type_identifier) "time_t" (init_declarator) "timeNow = time(NULL)" (identifier) "timeNow" (=) "=" (call_expression) "time(NULL)" (identifier) "time" (argument_list) "(NULL)" (() "(" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "struct tm tmNow;" (struct_specifier) "struct tm" (struct) "struct" (type_identifier) "tm" (identifier) "tmNow" (;) ";" (expression_statement) "localtime_r(&timeNow, &tmNow);" (call_expression) "localtime_r(&timeNow, &tmNow)" (identifier) "localtime_r" (argument_list) "(&timeNow, &tmNow)" (() "(" (pointer_expression) "&timeNow" (&) "&" (identifier) "timeNow" (,) "," (pointer_expression) "&tmNow" (&) "&" (identifier) "tmNow" ()) ")" (;) ";" (expression_statement) "snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec);" (call_expression) "snprintf(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec)" (identifier) "snprintf" (argument_list) "(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d dht_read: ",\n tmNow.tm_year + 1900,\n tmNow.tm_mon + 1,\n tmNow.tm_mday,\n tmNow.tm_hour,\n tmNow.tm_min,\n tmNow.tm_sec)" (() "(" (identifier) "buff" (,) "," (sizeof_expression) "sizeof(buff)" (sizeof) "sizeof" (parenthesized_expression) "(buff)" (() "(" (identifier) "buff" ()) ")" (,) "," (string_literal) ""%04d-%02d-%02d %02d:%02d:%02d dht_read: "" (") """ (string_content) "%04d-%02d-%02d %02d:%02d:%02d dht_read: " (") """ (,) "," (binary_expression) "tmNow.tm_year + 1900" (field_expression) "tmNow.tm_year" (identifier) "tmNow" (.) "." (field_identifier) "tm_year" (+) "+" (number_literal) "1900" (,) "," (binary_expression) "tmNow.tm_mon + 1" (field_expression) "tmNow.tm_mon" (identifier) "tmNow" (.) "." (field_identifier) "tm_mon" (+) "+" (number_literal) "1" (,) "," (field_expression) "tmNow.tm_mday" (identifier) "tmNow" (.) "." (field_identifier) "tm_mday" (,) "," (field_expression) "tmNow.tm_hour" (identifier) "tmNow" (.) "." (field_identifier) "tm_hour" (,) "," (field_expression) "tmNow.tm_min" (identifier) "tmNow" (.) "." (field_identifier) "tm_min" (,) "," (field_expression) "tmNow.tm_sec" (identifier) "tmNow" (.) "." (field_identifier) "tm_sec" ()) ")" (;) ";" (return_statement) "return buff;" (return) "return" (identifier) "buff" (;) ";" (}) "}" (preproc_function_def) "#define DHT_READ_LOG(fmt, ...) printf("%s" fmt, getLogHeader(), ##__VA_ARGS__ )\n" (#define) "#define" (identifier) "DHT_READ_LOG" (preproc_params) "(fmt, ...)" (() "(" (identifier) "fmt" (,) "," (...) "..." ()) ")" (preproc_arg) "printf("%s" fmt, getLogHeader(), ##__VA_ARGS__ )" (comment) "// Return time in microsecond when the (pin) input signal is changed to (transitionHigh)." (comment) "// Returns 0 if timeout. Otherwise non-zero microsecond is returned." (function_definition) "static uint32_t getTransitionMicros(int pin, bool transitionHigh) {\n uint32_t expectedValue = transitionHigh ? (1 << pin) : 0;\n uint32_t startedMicros = pi_timer_micros();\n while (pi_mmio_input(pin) != expectedValue) {\n uint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }\n }\n uint32_t nowMicros = pi_timer_micros();\n // If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second),\n // return maximum uint32 value, which is one microsecond earier time.\n return (nowMicros == 0) ? UINT32_MAX : nowMicros;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint32_t" (function_declarator) "getTransitionMicros(int pin, bool transitionHigh)" (identifier) "getTransitionMicros" (parameter_list) "(int pin, bool transitionHigh)" (() "(" (parameter_declaration) "int pin" (primitive_type) "int" (identifier) "pin" (,) "," (parameter_declaration) "bool transitionHigh" (primitive_type) "bool" (identifier) "transitionHigh" ()) ")" (compound_statement) "{\n uint32_t expectedValue = transitionHigh ? (1 << pin) : 0;\n uint32_t startedMicros = pi_timer_micros();\n while (pi_mmio_input(pin) != expectedValue) {\n uint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }\n }\n uint32_t nowMicros = pi_timer_micros();\n // If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second),\n // return maximum uint32 value, which is one microsecond earier time.\n return (nowMicros == 0) ? UINT32_MAX : nowMicros;\n}" ({) "{" (declaration) "uint32_t expectedValue = transitionHigh ? (1 << pin) : 0;" (primitive_type) "uint32_t" (init_declarator) "expectedValue = transitionHigh ? (1 << pin) : 0" (identifier) "expectedValue" (=) "=" (conditional_expression) "transitionHigh ? (1 << pin) : 0" (identifier) "transitionHigh" (?) "?" (parenthesized_expression) "(1 << pin)" (() "(" (binary_expression) "1 << pin" (number_literal) "1" (<<) "<<" (identifier) "pin" ()) ")" (:) ":" (number_literal) "0" (;) ";" (declaration) "uint32_t startedMicros = pi_timer_micros();" (primitive_type) "uint32_t" (init_declarator) "startedMicros = pi_timer_micros()" (identifier) "startedMicros" (=) "=" (call_expression) "pi_timer_micros()" (identifier) "pi_timer_micros" (argument_list) "()" (() "(" ()) ")" (;) ";" (while_statement) "while (pi_mmio_input(pin) != expectedValue) {\n uint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }\n }" (while) "while" (parenthesized_expression) "(pi_mmio_input(pin) != expectedValue)" (() "(" (binary_expression) "pi_mmio_input(pin) != expectedValue" (call_expression) "pi_mmio_input(pin)" (identifier) "pi_mmio_input" (argument_list) "(pin)" (() "(" (identifier) "pin" ()) ")" (!=) "!=" (identifier) "expectedValue" ()) ")" (compound_statement) "{\n uint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }\n }" ({) "{" (declaration) "uint32_t elapsedMicros = pi_timer_micros() - startedMicros;" (primitive_type) "uint32_t" (init_declarator) "elapsedMicros = pi_timer_micros() - startedMicros" (identifier) "elapsedMicros" (=) "=" (binary_expression) "pi_timer_micros() - startedMicros" (call_expression) "pi_timer_micros()" (identifier) "pi_timer_micros" (argument_list) "()" (() "(" ()) ")" (-) "-" (identifier) "startedMicros" (;) ";" (if_statement) "if (elapsedMicros >= MAX_WAIT_US) {\n return 0; // Timeout!\n }" (if) "if" (parenthesized_expression) "(elapsedMicros >= MAX_WAIT_US)" (() "(" (binary_expression) "elapsedMicros >= MAX_WAIT_US" (identifier) "elapsedMicros" (>=) ">=" (identifier) "MAX_WAIT_US" ()) ")" (compound_statement) "{\n return 0; // Timeout!\n }" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (comment) "// Timeout!" (}) "}" (}) "}" (declaration) "uint32_t nowMicros = pi_timer_micros();" (primitive_type) "uint32_t" (init_declarator) "nowMicros = pi_timer_micros()" (identifier) "nowMicros" (=) "=" (call_expression) "pi_timer_micros()" (identifier) "pi_timer_micros" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second)," (comment) "// return maximum uint32 value, which is one microsecond earier time." (return_statement) "return (nowMicros == 0) ? UINT32_MAX : nowMicros;" (return) "return" (conditional_expression) "(nowMicros == 0) ? UINT32_MAX : nowMicros" (parenthesized_expression) "(nowMicros == 0)" (() "(" (binary_expression) "nowMicros == 0" (identifier) "nowMicros" (==) "==" (number_literal) "0" ()) ")" (?) "?" (identifier) "UINT32_MAX" (:) ":" (identifier) "nowMicros" (;) ";" (}) "}" (function_definition) "static int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) {\n *pTemperature = 0.0f;\n *pHumidity = 0.0f;\n\n // Store pulse widths that each DHT bit pulse is low and high.\n // Make sure array is initialized to start at zero.\n uint32_t lowMicros[DHT_PULSES + 1] = {0};\n uint32_t highMicros[DHT_PULSES] = {0};\n\n // Set pin to output.\n pi_mmio_set_output(pin);\n\n // Bump up process priority and change scheduler to try to try to make process more 'real time'.\n set_max_priority();\n\n // Set pin high for ~500 milliseconds.\n pi_mmio_set_high(pin);\n sleep_milliseconds(500);\n\n // The next calls are timing critical and care should be taken\n // to ensure no unnecssary work is done below.\n\n // Set pin low for ~20 milliseconds.\n pi_mmio_set_low(pin);\n busy_wait_milliseconds(20);\n\n // Set pin at input.\n pi_mmio_set_input(pin);\n\n // Need a very short delay before reading pins or else value is sometimes still low.\n pi_timer_sleep_micros( 2 );\n\n // Wait for DHT to pull pin low.\n uint32_t lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for response low\n");\n return 0;\n }\n\n // Record pulse widths for the expected result bits.\n int i;\n uint32_t highStartedUs;\n for (i=0; i < DHT_PULSES; i++) {\n\n // Count how long pin is low and store in lowMicros[i]\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }\n lowMicros[i] = highStartedUs - lowStartedUs; \n\n // Count how long pin is high and store in highMicros[i]\n lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }\n highMicros[i] = lowStartedUs - highStartedUs;\n }\n // Count how log pin is low and store the final lowMicros\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n // Timeout waiting for response.\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[release]\n");\n return 0;\n }\n lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; \n\n // Done with timing critical code, now interpret the results.\n\n // Drop back to normal priority.\n set_default_priority();\n\n uint32_t threshold = 0;\n bool needAdjust = true;\n while (needAdjust) {\n // Compute the average low pulse width to use as a 50 microsecond reference threshold.\n // Ignore the first reading because it is a constant 80 microsecond pulse.\n threshold = 0;\n for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }\n threshold /= DHT_PULSES-1;\n uint32_t lowHighThreshold = threshold * 2;\n \n // Adjust high pulse widths for the interrupts\n needAdjust = false;\n for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n } // for adjust loop\n } // while needAdjust\n\n // Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference.\n // If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher\n // then it must be a ~70us 1 pulse.\n uint8_t data[DHT_BYTES] = {0};\n for (i=1; i < DHT_PULSES; i++) {\n int index = (i-1)/8;\n data[index] <<= 1;\n if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }\n // Else zero bit for short pulse.\n }\n\n // Useful debug info:\n //printf("Data: 0x%x 0x%x 0x%x 0x%x 0x%x\n", data[0], data[1], data[2], data[3], data[4]);\n\n // Verify checksum of received data.\n if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n DHT_READ_LOG("Checksum error\n");\n for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);\n DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);\n return 0;\n }\n if (type == DHT11) {\n // Get humidity and temp for DHT11 sensor.\n *pHumidity = (float)data[0];\n *pTemperature = (float)data[2];\n } else if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }\n return 1;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature)" (identifier) "pi_dht_read" (parameter_list) "(int type, int pin, float* pHumidity, float* pTemperature)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "int pin" (primitive_type) "int" (identifier) "pin" (,) "," (parameter_declaration) "float* pHumidity" (primitive_type) "float" (pointer_declarator) "* pHumidity" (*) "*" (identifier) "pHumidity" (,) "," (parameter_declaration) "float* pTemperature" (primitive_type) "float" (pointer_declarator) "* pTemperature" (*) "*" (identifier) "pTemperature" ()) ")" (compound_statement) "{\n *pTemperature = 0.0f;\n *pHumidity = 0.0f;\n\n // Store pulse widths that each DHT bit pulse is low and high.\n // Make sure array is initialized to start at zero.\n uint32_t lowMicros[DHT_PULSES + 1] = {0};\n uint32_t highMicros[DHT_PULSES] = {0};\n\n // Set pin to output.\n pi_mmio_set_output(pin);\n\n // Bump up process priority and change scheduler to try to try to make process more 'real time'.\n set_max_priority();\n\n // Set pin high for ~500 milliseconds.\n pi_mmio_set_high(pin);\n sleep_milliseconds(500);\n\n // The next calls are timing critical and care should be taken\n // to ensure no unnecssary work is done below.\n\n // Set pin low for ~20 milliseconds.\n pi_mmio_set_low(pin);\n busy_wait_milliseconds(20);\n\n // Set pin at input.\n pi_mmio_set_input(pin);\n\n // Need a very short delay before reading pins or else value is sometimes still low.\n pi_timer_sleep_micros( 2 );\n\n // Wait for DHT to pull pin low.\n uint32_t lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for response low\n");\n return 0;\n }\n\n // Record pulse widths for the expected result bits.\n int i;\n uint32_t highStartedUs;\n for (i=0; i < DHT_PULSES; i++) {\n\n // Count how long pin is low and store in lowMicros[i]\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }\n lowMicros[i] = highStartedUs - lowStartedUs; \n\n // Count how long pin is high and store in highMicros[i]\n lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }\n highMicros[i] = lowStartedUs - highStartedUs;\n }\n // Count how log pin is low and store the final lowMicros\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n // Timeout waiting for response.\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[release]\n");\n return 0;\n }\n lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; \n\n // Done with timing critical code, now interpret the results.\n\n // Drop back to normal priority.\n set_default_priority();\n\n uint32_t threshold = 0;\n bool needAdjust = true;\n while (needAdjust) {\n // Compute the average low pulse width to use as a 50 microsecond reference threshold.\n // Ignore the first reading because it is a constant 80 microsecond pulse.\n threshold = 0;\n for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }\n threshold /= DHT_PULSES-1;\n uint32_t lowHighThreshold = threshold * 2;\n \n // Adjust high pulse widths for the interrupts\n needAdjust = false;\n for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n } // for adjust loop\n } // while needAdjust\n\n // Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference.\n // If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher\n // then it must be a ~70us 1 pulse.\n uint8_t data[DHT_BYTES] = {0};\n for (i=1; i < DHT_PULSES; i++) {\n int index = (i-1)/8;\n data[index] <<= 1;\n if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }\n // Else zero bit for short pulse.\n }\n\n // Useful debug info:\n //printf("Data: 0x%x 0x%x 0x%x 0x%x 0x%x\n", data[0], data[1], data[2], data[3], data[4]);\n\n // Verify checksum of received data.\n if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n DHT_READ_LOG("Checksum error\n");\n for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);\n DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);\n return 0;\n }\n if (type == DHT11) {\n // Get humidity and temp for DHT11 sensor.\n *pHumidity = (float)data[0];\n *pTemperature = (float)data[2];\n } else if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }\n return 1;\n}" ({) "{" (expression_statement) "*pTemperature = 0.0f;" (assignment_expression) "*pTemperature = 0.0f" (pointer_expression) "*pTemperature" (*) "*" (identifier) "pTemperature" (=) "=" (number_literal) "0.0f" (;) ";" (expression_statement) "*pHumidity = 0.0f;" (assignment_expression) "*pHumidity = 0.0f" (pointer_expression) "*pHumidity" (*) "*" (identifier) "pHumidity" (=) "=" (number_literal) "0.0f" (;) ";" (comment) "// Store pulse widths that each DHT bit pulse is low and high." (comment) "// Make sure array is initialized to start at zero." (declaration) "uint32_t lowMicros[DHT_PULSES + 1] = {0};" (primitive_type) "uint32_t" (init_declarator) "lowMicros[DHT_PULSES + 1] = {0}" (array_declarator) "lowMicros[DHT_PULSES + 1]" (identifier) "lowMicros" ([) "[" (binary_expression) "DHT_PULSES + 1" (identifier) "DHT_PULSES" (+) "+" (number_literal) "1" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (declaration) "uint32_t highMicros[DHT_PULSES] = {0};" (primitive_type) "uint32_t" (init_declarator) "highMicros[DHT_PULSES] = {0}" (array_declarator) "highMicros[DHT_PULSES]" (identifier) "highMicros" ([) "[" (identifier) "DHT_PULSES" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (comment) "// Set pin to output." (expression_statement) "pi_mmio_set_output(pin);" (call_expression) "pi_mmio_set_output(pin)" (identifier) "pi_mmio_set_output" (argument_list) "(pin)" (() "(" (identifier) "pin" ()) ")" (;) ";" (comment) "// Bump up process priority and change scheduler to try to try to make process more 'real time'." (expression_statement) "set_max_priority();" (call_expression) "set_max_priority()" (identifier) "set_max_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Set pin high for ~500 milliseconds." (expression_statement) "pi_mmio_set_high(pin);" (call_expression) "pi_mmio_set_high(pin)" (identifier) "pi_mmio_set_high" (argument_list) "(pin)" (() "(" (identifier) "pin" ()) ")" (;) ";" (expression_statement) "sleep_milliseconds(500);" (call_expression) "sleep_milliseconds(500)" (identifier) "sleep_milliseconds" (argument_list) "(500)" (() "(" (number_literal) "500" ()) ")" (;) ";" (comment) "// The next calls are timing critical and care should be taken" (comment) "// to ensure no unnecssary work is done below." (comment) "// Set pin low for ~20 milliseconds." (expression_statement) "pi_mmio_set_low(pin);" (call_expression) "pi_mmio_set_low(pin)" (identifier) "pi_mmio_set_low" (argument_list) "(pin)" (() "(" (identifier) "pin" ()) ")" (;) ";" (expression_statement) "busy_wait_milliseconds(20);" (call_expression) "busy_wait_milliseconds(20)" (identifier) "busy_wait_milliseconds" (argument_list) "(20)" (() "(" (number_literal) "20" ()) ")" (;) ";" (comment) "// Set pin at input." (expression_statement) "pi_mmio_set_input(pin);" (call_expression) "pi_mmio_set_input(pin)" (identifier) "pi_mmio_set_input" (argument_list) "(pin)" (() "(" (identifier) "pin" ()) ")" (;) ";" (comment) "// Need a very short delay before reading pins or else value is sometimes still low." (expression_statement) "pi_timer_sleep_micros( 2 );" (call_expression) "pi_timer_sleep_micros( 2 )" (identifier) "pi_timer_sleep_micros" (argument_list) "( 2 )" (() "(" (number_literal) "2" ()) ")" (;) ";" (comment) "// Wait for DHT to pull pin low." (declaration) "uint32_t lowStartedUs = getTransitionMicros(pin, false);" (primitive_type) "uint32_t" (init_declarator) "lowStartedUs = getTransitionMicros(pin, false)" (identifier) "lowStartedUs" (=) "=" (call_expression) "getTransitionMicros(pin, false)" (identifier) "getTransitionMicros" (argument_list) "(pin, false)" (() "(" (identifier) "pin" (,) "," (false) "false" ()) ")" (;) ";" (if_statement) "if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for response low\n");\n return 0;\n }" (if) "if" (parenthesized_expression) "(lowStartedUs == 0)" (() "(" (binary_expression) "lowStartedUs == 0" (identifier) "lowStartedUs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for response low\n");\n return 0;\n }" ({) "{" (expression_statement) "set_default_priority();" (call_expression) "set_default_priority()" (identifier) "set_default_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "DHT_READ_LOG("Timeout waiting for response low\n");" (call_expression) "DHT_READ_LOG("Timeout waiting for response low\n")" (identifier) "DHT_READ_LOG" (argument_list) "("Timeout waiting for response low\n")" (() "(" (string_literal) ""Timeout waiting for response low\n"" (") """ (string_content) "Timeout waiting for response low" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "// Record pulse widths for the expected result bits." (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "uint32_t highStartedUs;" (primitive_type) "uint32_t" (identifier) "highStartedUs" (;) ";" (for_statement) "for (i=0; i < DHT_PULSES; i++) {\n\n // Count how long pin is low and store in lowMicros[i]\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }\n lowMicros[i] = highStartedUs - lowStartedUs; \n\n // Count how long pin is high and store in highMicros[i]\n lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }\n highMicros[i] = lowStartedUs - highStartedUs;\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < DHT_PULSES" (identifier) "i" (<) "<" (identifier) "DHT_PULSES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n\n // Count how long pin is low and store in lowMicros[i]\n highStartedUs = getTransitionMicros(pin, true);\n if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }\n lowMicros[i] = highStartedUs - lowStartedUs; \n\n // Count how long pin is high and store in highMicros[i]\n lowStartedUs = getTransitionMicros(pin, false);\n if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }\n highMicros[i] = lowStartedUs - highStartedUs;\n }" ({) "{" (comment) "// Count how long pin is low and store in lowMicros[i]" (expression_statement) "highStartedUs = getTransitionMicros(pin, true);" (assignment_expression) "highStartedUs = getTransitionMicros(pin, true)" (identifier) "highStartedUs" (=) "=" (call_expression) "getTransitionMicros(pin, true)" (identifier) "getTransitionMicros" (argument_list) "(pin, true)" (() "(" (identifier) "pin" (,) "," (true) "true" ()) ")" (;) ";" (if_statement) "if (highStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }" (if) "if" (parenthesized_expression) "(highStartedUs == 0)" (() "(" (binary_expression) "highStartedUs == 0" (identifier) "highStartedUs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[%d]\n", i);\n return 0;\n }" ({) "{" (expression_statement) "set_default_priority();" (call_expression) "set_default_priority()" (identifier) "set_default_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "DHT_READ_LOG("Timeout waiting for high[%d]\n", i);" (call_expression) "DHT_READ_LOG("Timeout waiting for high[%d]\n", i)" (identifier) "DHT_READ_LOG" (argument_list) "("Timeout waiting for high[%d]\n", i)" (() "(" (string_literal) ""Timeout waiting for high[%d]\n"" (") """ (string_content) "Timeout waiting for high[%d]" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "lowMicros[i] = highStartedUs - lowStartedUs;" (assignment_expression) "lowMicros[i] = highStartedUs - lowStartedUs" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (=) "=" (binary_expression) "highStartedUs - lowStartedUs" (identifier) "highStartedUs" (-) "-" (identifier) "lowStartedUs" (;) ";" (comment) "// Count how long pin is high and store in highMicros[i]" (expression_statement) "lowStartedUs = getTransitionMicros(pin, false);" (assignment_expression) "lowStartedUs = getTransitionMicros(pin, false)" (identifier) "lowStartedUs" (=) "=" (call_expression) "getTransitionMicros(pin, false)" (identifier) "getTransitionMicros" (argument_list) "(pin, false)" (() "(" (identifier) "pin" (,) "," (false) "false" ()) ")" (;) ";" (if_statement) "if (lowStartedUs == 0) {\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }" (if) "if" (parenthesized_expression) "(lowStartedUs == 0)" (() "(" (binary_expression) "lowStartedUs == 0" (identifier) "lowStartedUs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for low[%d]\n", i);\n return 0;\n }" ({) "{" (expression_statement) "set_default_priority();" (call_expression) "set_default_priority()" (identifier) "set_default_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "DHT_READ_LOG("Timeout waiting for low[%d]\n", i);" (call_expression) "DHT_READ_LOG("Timeout waiting for low[%d]\n", i)" (identifier) "DHT_READ_LOG" (argument_list) "("Timeout waiting for low[%d]\n", i)" (() "(" (string_literal) ""Timeout waiting for low[%d]\n"" (") """ (string_content) "Timeout waiting for low[%d]" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "highMicros[i] = lowStartedUs - highStartedUs;" (assignment_expression) "highMicros[i] = lowStartedUs - highStartedUs" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (=) "=" (binary_expression) "lowStartedUs - highStartedUs" (identifier) "lowStartedUs" (-) "-" (identifier) "highStartedUs" (;) ";" (}) "}" (comment) "// Count how log pin is low and store the final lowMicros" (expression_statement) "highStartedUs = getTransitionMicros(pin, true);" (assignment_expression) "highStartedUs = getTransitionMicros(pin, true)" (identifier) "highStartedUs" (=) "=" (call_expression) "getTransitionMicros(pin, true)" (identifier) "getTransitionMicros" (argument_list) "(pin, true)" (() "(" (identifier) "pin" (,) "," (true) "true" ()) ")" (;) ";" (if_statement) "if (highStartedUs == 0) {\n // Timeout waiting for response.\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[release]\n");\n return 0;\n }" (if) "if" (parenthesized_expression) "(highStartedUs == 0)" (() "(" (binary_expression) "highStartedUs == 0" (identifier) "highStartedUs" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n // Timeout waiting for response.\n set_default_priority();\n DHT_READ_LOG("Timeout waiting for high[release]\n");\n return 0;\n }" ({) "{" (comment) "// Timeout waiting for response." (expression_statement) "set_default_priority();" (call_expression) "set_default_priority()" (identifier) "set_default_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "DHT_READ_LOG("Timeout waiting for high[release]\n");" (call_expression) "DHT_READ_LOG("Timeout waiting for high[release]\n")" (identifier) "DHT_READ_LOG" (argument_list) "("Timeout waiting for high[release]\n")" (() "(" (string_literal) ""Timeout waiting for high[release]\n"" (") """ (string_content) "Timeout waiting for high[release]" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs;" (assignment_expression) "lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs" (subscript_expression) "lowMicros[DHT_PULSES]" (identifier) "lowMicros" ([) "[" (identifier) "DHT_PULSES" (]) "]" (=) "=" (binary_expression) "highStartedUs - lowStartedUs" (identifier) "highStartedUs" (-) "-" (identifier) "lowStartedUs" (;) ";" (comment) "// Done with timing critical code, now interpret the results." (comment) "// Drop back to normal priority." (expression_statement) "set_default_priority();" (call_expression) "set_default_priority()" (identifier) "set_default_priority" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "uint32_t threshold = 0;" (primitive_type) "uint32_t" (init_declarator) "threshold = 0" (identifier) "threshold" (=) "=" (number_literal) "0" (;) ";" (declaration) "bool needAdjust = true;" (primitive_type) "bool" (init_declarator) "needAdjust = true" (identifier) "needAdjust" (=) "=" (true) "true" (;) ";" (while_statement) "while (needAdjust) {\n // Compute the average low pulse width to use as a 50 microsecond reference threshold.\n // Ignore the first reading because it is a constant 80 microsecond pulse.\n threshold = 0;\n for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }\n threshold /= DHT_PULSES-1;\n uint32_t lowHighThreshold = threshold * 2;\n \n // Adjust high pulse widths for the interrupts\n needAdjust = false;\n for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n } // for adjust loop\n }" (while) "while" (parenthesized_expression) "(needAdjust)" (() "(" (identifier) "needAdjust" ()) ")" (compound_statement) "{\n // Compute the average low pulse width to use as a 50 microsecond reference threshold.\n // Ignore the first reading because it is a constant 80 microsecond pulse.\n threshold = 0;\n for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }\n threshold /= DHT_PULSES-1;\n uint32_t lowHighThreshold = threshold * 2;\n \n // Adjust high pulse widths for the interrupts\n needAdjust = false;\n for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n } // for adjust loop\n }" ({) "{" (comment) "// Compute the average low pulse width to use as a 50 microsecond reference threshold." (comment) "// Ignore the first reading because it is a constant 80 microsecond pulse." (expression_statement) "threshold = 0;" (assignment_expression) "threshold = 0" (identifier) "threshold" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (i=1; i < DHT_PULSES; i++) {\n threshold += lowMicros[i];\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i < DHT_PULSES" (identifier) "i" (<) "<" (identifier) "DHT_PULSES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n threshold += lowMicros[i];\n }" ({) "{" (expression_statement) "threshold += lowMicros[i];" (assignment_expression) "threshold += lowMicros[i]" (identifier) "threshold" (+=) "+=" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (;) ";" (}) "}" (expression_statement) "threshold /= DHT_PULSES-1;" (assignment_expression) "threshold /= DHT_PULSES-1" (identifier) "threshold" (/=) "/=" (binary_expression) "DHT_PULSES-1" (identifier) "DHT_PULSES" (-) "-" (number_literal) "1" (;) ";" (declaration) "uint32_t lowHighThreshold = threshold * 2;" (primitive_type) "uint32_t" (init_declarator) "lowHighThreshold = threshold * 2" (identifier) "lowHighThreshold" (=) "=" (binary_expression) "threshold * 2" (identifier) "threshold" (*) "*" (number_literal) "2" (;) ";" (comment) "// Adjust high pulse widths for the interrupts" (expression_statement) "needAdjust = false;" (assignment_expression) "needAdjust = false" (identifier) "needAdjust" (=) "=" (false) "false" (;) ";" (for_statement) "for (i=1; i < DHT_PULSES; i++) {\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i < DHT_PULSES" (identifier) "i" (<) "<" (identifier) "DHT_PULSES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n // If the high width is less than the threshold...\n if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }\n }" ({) "{" (comment) "// If the high width is less than the threshold..." (if_statement) "if (highMicros[i] < threshold) {\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n } else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }" (if) "if" (parenthesized_expression) "(highMicros[i] < threshold)" (() "(" (binary_expression) "highMicros[i] < threshold" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (<) "<" (identifier) "threshold" ()) ")" (compound_statement) "{\n uint32_t lowHigh = lowMicros[i] + highMicros[i];\n // But the (low + high) width is equal to or more than the threshold...\n if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }\n }" ({) "{" (declaration) "uint32_t lowHigh = lowMicros[i] + highMicros[i];" (primitive_type) "uint32_t" (init_declarator) "lowHigh = lowMicros[i] + highMicros[i]" (identifier) "lowHigh" (=) "=" (binary_expression) "lowMicros[i] + highMicros[i]" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (+) "+" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (;) ";" (comment) "// But the (low + high) width is equal to or more than the threshold..." (if_statement) "if (lowHigh >= lowHighThreshold) {\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }" (if) "if" (parenthesized_expression) "(lowHigh >= lowHighThreshold)" (() "(" (binary_expression) "lowHigh >= lowHighThreshold" (identifier) "lowHigh" (>=) ">=" (identifier) "lowHighThreshold" ()) ")" (compound_statement) "{\n // Interrupted during high detection. Add interrupt time to highMicors\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n highMicros[i] += lowMicros[i] - threshold;\n lowMicros[i] = threshold;\n needAdjust = true;\n }" ({) "{" (comment) "// Interrupted during high detection. Add interrupt time to highMicors" (expression_statement) "DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));" (call_expression) "DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold))" (identifier) "DHT_READ_LOG" (argument_list) "("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold))" (() "(" (string_literal) ""Adjusting bit[%d] : %u -> %u\n"" (") """ (string_content) "Adjusting bit[%d] : %u -> %u" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" (,) "," (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (,) "," (parenthesized_expression) "(highMicros[i] + lowMicros[i] - threshold)" (() "(" (binary_expression) "highMicros[i] + lowMicros[i] - threshold" (binary_expression) "highMicros[i] + lowMicros[i]" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (+) "+" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (-) "-" (identifier) "threshold" ()) ")" ()) ")" (;) ";" (expression_statement) "highMicros[i] += lowMicros[i] - threshold;" (assignment_expression) "highMicros[i] += lowMicros[i] - threshold" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (+=) "+=" (binary_expression) "lowMicros[i] - threshold" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (-) "-" (identifier) "threshold" (;) ";" (expression_statement) "lowMicros[i] = threshold;" (assignment_expression) "lowMicros[i] = threshold" (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "threshold" (;) ";" (expression_statement) "needAdjust = true;" (assignment_expression) "needAdjust = true" (identifier) "needAdjust" (=) "=" (true) "true" (;) ";" (}) "}" (}) "}" (else_clause) "else { // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }" (else) "else" (compound_statement) "{ // If the high width is equal or more than the threshold...\n uint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n // But the (high+low) width is less than the threshold\n if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }\n }" ({) "{" (comment) "// If the high width is equal or more than the threshold..." (declaration) "uint32_t lowHigh = highMicros[i] + lowMicros[i+1];" (primitive_type) "uint32_t" (init_declarator) "lowHigh = highMicros[i] + lowMicros[i+1]" (identifier) "lowHigh" (=) "=" (binary_expression) "highMicros[i] + lowMicros[i+1]" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (+) "+" (subscript_expression) "lowMicros[i+1]" (identifier) "lowMicros" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (;) ";" (comment) "// But the (high+low) width is less than the threshold" (if_statement) "if (lowHigh < lowHighThreshold) {\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }" (if) "if" (parenthesized_expression) "(lowHigh < lowHighThreshold)" (() "(" (binary_expression) "lowHigh < lowHighThreshold" (identifier) "lowHigh" (<) "<" (identifier) "lowHighThreshold" ()) ")" (compound_statement) "{\n // Interrupted during low detection. Subtract interrupt time from highMicros.\n DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n highMicros[i] += lowMicros[i+1] - threshold;\n lowMicros[i+1] = threshold;\n needAdjust = true;\n }" ({) "{" (comment) "// Interrupted during low detection. Subtract interrupt time from highMicros." (expression_statement) "DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));" (call_expression) "DHT_READ_LOG("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold))" (identifier) "DHT_READ_LOG" (argument_list) "("Adjusting bit[%d] : %u -> %u\n", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold))" (() "(" (string_literal) ""Adjusting bit[%d] : %u -> %u\n"" (") """ (string_content) "Adjusting bit[%d] : %u -> %u" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" (,) "," (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (,) "," (parenthesized_expression) "(highMicros[i] + lowMicros[i+1] - threshold)" (() "(" (binary_expression) "highMicros[i] + lowMicros[i+1] - threshold" (binary_expression) "highMicros[i] + lowMicros[i+1]" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (+) "+" (subscript_expression) "lowMicros[i+1]" (identifier) "lowMicros" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (-) "-" (identifier) "threshold" ()) ")" ()) ")" (;) ";" (expression_statement) "highMicros[i] += lowMicros[i+1] - threshold;" (assignment_expression) "highMicros[i] += lowMicros[i+1] - threshold" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (+=) "+=" (binary_expression) "lowMicros[i+1] - threshold" (subscript_expression) "lowMicros[i+1]" (identifier) "lowMicros" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (-) "-" (identifier) "threshold" (;) ";" (expression_statement) "lowMicros[i+1] = threshold;" (assignment_expression) "lowMicros[i+1] = threshold" (subscript_expression) "lowMicros[i+1]" (identifier) "lowMicros" ([) "[" (binary_expression) "i+1" (identifier) "i" (+) "+" (number_literal) "1" (]) "]" (=) "=" (identifier) "threshold" (;) ";" (expression_statement) "needAdjust = true;" (assignment_expression) "needAdjust = true" (identifier) "needAdjust" (=) "=" (true) "true" (;) ";" (}) "}" (}) "}" (}) "}" (comment) "// for adjust loop" (}) "}" (comment) "// while needAdjust" (comment) "// Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference." (comment) "// If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher" (comment) "// then it must be a ~70us 1 pulse." (declaration) "uint8_t data[DHT_BYTES] = {0};" (primitive_type) "uint8_t" (init_declarator) "data[DHT_BYTES] = {0}" (array_declarator) "data[DHT_BYTES]" (identifier) "data" ([) "[" (identifier) "DHT_BYTES" (]) "]" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (for_statement) "for (i=1; i < DHT_PULSES; i++) {\n int index = (i-1)/8;\n data[index] <<= 1;\n if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }\n // Else zero bit for short pulse.\n }" (for) "for" (() "(" (assignment_expression) "i=1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (binary_expression) "i < DHT_PULSES" (identifier) "i" (<) "<" (identifier) "DHT_PULSES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n int index = (i-1)/8;\n data[index] <<= 1;\n if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }\n // Else zero bit for short pulse.\n }" ({) "{" (declaration) "int index = (i-1)/8;" (primitive_type) "int" (init_declarator) "index = (i-1)/8" (identifier) "index" (=) "=" (binary_expression) "(i-1)/8" (parenthesized_expression) "(i-1)" (() "(" (binary_expression) "i-1" (identifier) "i" (-) "-" (number_literal) "1" ()) ")" (/) "/" (number_literal) "8" (;) ";" (expression_statement) "data[index] <<= 1;" (assignment_expression) "data[index] <<= 1" (subscript_expression) "data[index]" (identifier) "data" ([) "[" (identifier) "index" (]) "]" (<<=) "<<=" (number_literal) "1" (;) ";" (if_statement) "if (highMicros[i] >= threshold) {\n // One bit for long pulse.\n data[index] |= 1;\n }" (if) "if" (parenthesized_expression) "(highMicros[i] >= threshold)" (() "(" (binary_expression) "highMicros[i] >= threshold" (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" (>=) ">=" (identifier) "threshold" ()) ")" (compound_statement) "{\n // One bit for long pulse.\n data[index] |= 1;\n }" ({) "{" (comment) "// One bit for long pulse." (expression_statement) "data[index] |= 1;" (assignment_expression) "data[index] |= 1" (subscript_expression) "data[index]" (identifier) "data" ([) "[" (identifier) "index" (]) "]" (|=) "|=" (number_literal) "1" (;) ";" (}) "}" (comment) "// Else zero bit for short pulse." (}) "}" (comment) "// Useful debug info:" (comment) "//printf("Data: 0x%x 0x%x 0x%x 0x%x 0x%x\n", data[0], data[1], data[2], data[3], data[4]);" (comment) "// Verify checksum of received data." (if_statement) "if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n DHT_READ_LOG("Checksum error\n");\n for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);\n DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);\n return 0;\n }" (if) "if" (parenthesized_expression) "(data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF))" (() "(" (binary_expression) "data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)" (subscript_expression) "data[4]" (identifier) "data" ([) "[" (number_literal) "4" (]) "]" (!=) "!=" (parenthesized_expression) "((data[0] + data[1] + data[2] + data[3]) & 0xFF)" (() "(" (binary_expression) "(data[0] + data[1] + data[2] + data[3]) & 0xFF" (parenthesized_expression) "(data[0] + data[1] + data[2] + data[3])" (() "(" (binary_expression) "data[0] + data[1] + data[2] + data[3]" (binary_expression) "data[0] + data[1] + data[2]" (binary_expression) "data[0] + data[1]" (subscript_expression) "data[0]" (identifier) "data" ([) "[" (number_literal) "0" (]) "]" (+) "+" (subscript_expression) "data[1]" (identifier) "data" ([) "[" (number_literal) "1" (]) "]" (+) "+" (subscript_expression) "data[2]" (identifier) "data" ([) "[" (number_literal) "2" (]) "]" (+) "+" (subscript_expression) "data[3]" (identifier) "data" ([) "[" (number_literal) "3" (]) "]" ()) ")" (&) "&" (number_literal) "0xFF" ()) ")" ()) ")" (compound_statement) "{\n DHT_READ_LOG("Checksum error\n");\n for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);\n DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);\n return 0;\n }" ({) "{" (expression_statement) "DHT_READ_LOG("Checksum error\n");" (call_expression) "DHT_READ_LOG("Checksum error\n")" (identifier) "DHT_READ_LOG" (argument_list) "("Checksum error\n")" (() "(" (string_literal) ""Checksum error\n"" (") """ (string_content) "Checksum error" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (for_statement) "for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i <DHT_PULSES" (identifier) "i" (<) "<" (identifier) "DHT_PULSES" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i]);" (call_expression) "DHT_READ_LOG("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i])" (identifier) "DHT_READ_LOG" (argument_list) "("%2d,%4u,%4u\n", i, lowMicros[i], highMicros[i])" (() "(" (string_literal) ""%2d,%4u,%4u\n"" (") """ (string_content) "%2d,%4u,%4u" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" (,) "," (subscript_expression) "lowMicros[i]" (identifier) "lowMicros" ([) "[" (identifier) "i" (]) "]" (,) "," (subscript_expression) "highMicros[i]" (identifier) "highMicros" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES]);" (call_expression) "DHT_READ_LOG("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES])" (identifier) "DHT_READ_LOG" (argument_list) "("%2d,%4u\n", DHT_PULSES, lowMicros[DHT_PULSES])" (() "(" (string_literal) ""%2d,%4u\n"" (") """ (string_content) "%2d,%4u" (escape_sequence) "\n" (") """ (,) "," (identifier) "DHT_PULSES" (,) "," (subscript_expression) "lowMicros[DHT_PULSES]" (identifier) "lowMicros" ([) "[" (identifier) "DHT_PULSES" (]) "]" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (if_statement) "if (type == DHT11) {\n // Get humidity and temp for DHT11 sensor.\n *pHumidity = (float)data[0];\n *pTemperature = (float)data[2];\n } else if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }" (if) "if" (parenthesized_expression) "(type == DHT11)" (() "(" (binary_expression) "type == DHT11" (identifier) "type" (==) "==" (identifier) "DHT11" ()) ")" (compound_statement) "{\n // Get humidity and temp for DHT11 sensor.\n *pHumidity = (float)data[0];\n *pTemperature = (float)data[2];\n }" ({) "{" (comment) "// Get humidity and temp for DHT11 sensor." (expression_statement) "*pHumidity = (float)data[0];" (assignment_expression) "*pHumidity = (float)data[0]" (pointer_expression) "*pHumidity" (*) "*" (identifier) "pHumidity" (=) "=" (cast_expression) "(float)data[0]" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (subscript_expression) "data[0]" (identifier) "data" ([) "[" (number_literal) "0" (]) "]" (;) ";" (expression_statement) "*pTemperature = (float)data[2];" (assignment_expression) "*pTemperature = (float)data[2]" (pointer_expression) "*pTemperature" (*) "*" (identifier) "pTemperature" (=) "=" (cast_expression) "(float)data[2]" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (subscript_expression) "data[2]" (identifier) "data" ([) "[" (number_literal) "2" (]) "]" (;) ";" (}) "}" (else_clause) "else if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }" (else) "else" (if_statement) "if (type == DHT22) {\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }" (if) "if" (parenthesized_expression) "(type == DHT22)" (() "(" (binary_expression) "type == DHT22" (identifier) "type" (==) "==" (identifier) "DHT22" ()) ")" (compound_statement) "{\n // Calculate humidity and temp for DHT22 sensor.\n *pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n *pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }\n }" ({) "{" (comment) "// Calculate humidity and temp for DHT22 sensor." (expression_statement) "*pHumidity = (data[0] * 256 + data[1]) / 10.0f;" (assignment_expression) "*pHumidity = (data[0] * 256 + data[1]) / 10.0f" (pointer_expression) "*pHumidity" (*) "*" (identifier) "pHumidity" (=) "=" (binary_expression) "(data[0] * 256 + data[1]) / 10.0f" (parenthesized_expression) "(data[0] * 256 + data[1])" (() "(" (binary_expression) "data[0] * 256 + data[1]" (binary_expression) "data[0] * 256" (subscript_expression) "data[0]" (identifier) "data" ([) "[" (number_literal) "0" (]) "]" (*) "*" (number_literal) "256" (+) "+" (subscript_expression) "data[1]" (identifier) "data" ([) "[" (number_literal) "1" (]) "]" ()) ")" (/) "/" (number_literal) "10.0f" (;) ";" (expression_statement) "*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;" (assignment_expression) "*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f" (pointer_expression) "*pTemperature" (*) "*" (identifier) "pTemperature" (=) "=" (binary_expression) "((data[2] & 0x7F) * 256 + data[3]) / 10.0f" (parenthesized_expression) "((data[2] & 0x7F) * 256 + data[3])" (() "(" (binary_expression) "(data[2] & 0x7F) * 256 + data[3]" (binary_expression) "(data[2] & 0x7F) * 256" (parenthesized_expression) "(data[2] & 0x7F)" (() "(" (binary_expression) "data[2] & 0x7F" (subscript_expression) "data[2]" (identifier) "data" ([) "[" (number_literal) "2" (]) "]" (&) "&" (number_literal) "0x7F" ()) ")" (*) "*" (number_literal) "256" (+) "+" (subscript_expression) "data[3]" (identifier) "data" ([) "[" (number_literal) "3" (]) "]" ()) ")" (/) "/" (number_literal) "10.0f" (;) ";" (if_statement) "if (data[2] & 0x80) {\n *pTemperature *= -1.0f;\n }" (if) "if" (parenthesized_expression) "(data[2] & 0x80)" (() "(" (binary_expression) "data[2] & 0x80" (subscript_expression) "data[2]" (identifier) "data" ([) "[" (number_literal) "2" (]) "]" (&) "&" (number_literal) "0x80" ()) ")" (compound_statement) "{\n *pTemperature *= -1.0f;\n }" ({) "{" (expression_statement) "*pTemperature *= -1.0f;" (assignment_expression) "*pTemperature *= -1.0f" (pointer_expression) "*pTemperature" (*) "*" (identifier) "pTemperature" (*=) "*=" (number_literal) "-1.0f" (;) ";" (}) "}" (}) "}" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (function_definition) "static int open_lockfile(const char *filename) {\n int fd = open(filename, O_CREAT | O_RDONLY, 0600);\n if (fd < 0) {\n printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));\n return -1;\n }\n if (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }\n perror("Flock failed");\n return -1;\n }\n return fd;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "open_lockfile(const char *filename)" (identifier) "open_lockfile" (parameter_list) "(const char *filename)" (() "(" (parameter_declaration) "const char *filename" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*filename" (*) "*" (identifier) "filename" ()) ")" (compound_statement) "{\n int fd = open(filename, O_CREAT | O_RDONLY, 0600);\n if (fd < 0) {\n printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));\n return -1;\n }\n if (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }\n perror("Flock failed");\n return -1;\n }\n return fd;\n}" ({) "{" (declaration) "int fd = open(filename, O_CREAT | O_RDONLY, 0600);" (primitive_type) "int" (init_declarator) "fd = open(filename, O_CREAT | O_RDONLY, 0600)" (identifier) "fd" (=) "=" (call_expression) "open(filename, O_CREAT | O_RDONLY, 0600)" (identifier) "open" (argument_list) "(filename, O_CREAT | O_RDONLY, 0600)" (() "(" (identifier) "filename" (,) "," (binary_expression) "O_CREAT | O_RDONLY" (identifier) "O_CREAT" (|) "|" (identifier) "O_RDONLY" (,) "," (number_literal) "0600" ()) ")" (;) ";" (if_statement) "if (fd < 0) {\n printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));\n return -1;\n }" (if) "if" (parenthesized_expression) "(fd < 0)" (() "(" (binary_expression) "fd < 0" (identifier) "fd" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));\n return -1;\n }" ({) "{" (expression_statement) "printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno));" (call_expression) "printf("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno))" (identifier) "printf" (argument_list) "("Failed to access lock file: %s\nerror: %s\n", filename, strerror(errno))" (() "(" (string_literal) ""Failed to access lock file: %s\nerror: %s\n"" (") """ (string_content) "Failed to access lock file: %s" (escape_sequence) "\n" (string_content) "error: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "filename" (,) "," (call_expression) "strerror(errno)" (identifier) "strerror" (argument_list) "(errno)" (() "(" (identifier) "errno" ()) ")" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (if_statement) "if (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }\n perror("Flock failed");\n return -1;\n }" (if) "if" (parenthesized_expression) "(flock(fd, LOCK_EX | LOCK_NB) == -1)" (() "(" (binary_expression) "flock(fd, LOCK_EX | LOCK_NB) == -1" (call_expression) "flock(fd, LOCK_EX | LOCK_NB)" (identifier) "flock" (argument_list) "(fd, LOCK_EX | LOCK_NB)" (() "(" (identifier) "fd" (,) "," (binary_expression) "LOCK_EX | LOCK_NB" (identifier) "LOCK_EX" (|) "|" (identifier) "LOCK_NB" ()) ")" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{\n if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }\n perror("Flock failed");\n return -1;\n }" ({) "{" (if_statement) "if(errno == EWOULDBLOCK) {\n printf("Lock file is in use\n");\n }" (if) "if" (parenthesized_expression) "(errno == EWOULDBLOCK)" (() "(" (binary_expression) "errno == EWOULDBLOCK" (identifier) "errno" (==) "==" (identifier) "EWOULDBLOCK" ()) ")" (compound_statement) "{\n printf("Lock file is in use\n");\n }" ({) "{" (expression_statement) "printf("Lock file is in use\n");" (call_expression) "printf("Lock file is in use\n")" (identifier) "printf" (argument_list) "("Lock file is in use\n")" (() "(" (string_literal) ""Lock file is in use\n"" (") """ (string_content) "Lock file is in use" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "perror("Flock failed");" (call_expression) "perror("Flock failed")" (identifier) "perror" (argument_list) "("Flock failed")" (() "(" (string_literal) ""Flock failed"" (") """ (string_content) "Flock failed" (") """ ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (return_statement) "return fd;" (return) "return" (identifier) "fd" (;) ";" (}) "}" (function_definition) "static void close_lockfile(int fd) {\n if(flock(fd, LOCK_UN) == -1) {\n perror("Failed to unlock file");\n }\n if(close(fd) == -1) {\n perror("Closing descriptor on lock file failed");\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "close_lockfile(int fd)" (identifier) "close_lockfile" (parameter_list) "(int fd)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" ()) ")" (compound_statement) "{\n if(flock(fd, LOCK_UN) == -1) {\n perror("Failed to unlock file");\n }\n if(close(fd) == -1) {\n perror("Closing descriptor on lock file failed");\n }\n}" ({) "{" (if_statement) "if(flock(fd, LOCK_UN) == -1) {\n perror("Failed to unlock file");\n }" (if) "if" (parenthesized_expression) "(flock(fd, LOCK_UN) == -1)" (() "(" (binary_expression) "flock(fd, LOCK_UN) == -1" (call_expression) "flock(fd, LOCK_UN)" (identifier) "flock" (argument_list) "(fd, LOCK_UN)" (() "(" (identifier) "fd" (,) "," (identifier) "LOCK_UN" ()) ")" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{\n perror("Failed to unlock file");\n }" ({) "{" (expression_statement) "perror("Failed to unlock file");" (call_expression) "perror("Failed to unlock file")" (identifier) "perror" (argument_list) "("Failed to unlock file")" (() "(" (string_literal) ""Failed to unlock file"" (") """ (string_content) "Failed to unlock file" (") """ ()) ")" (;) ";" (}) "}" (if_statement) "if(close(fd) == -1) {\n perror("Closing descriptor on lock file failed");\n }" (if) "if" (parenthesized_expression) "(close(fd) == -1)" (() "(" (binary_expression) "close(fd) == -1" (call_expression) "close(fd)" (identifier) "close" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (==) "==" (number_literal) "-1" ()) ")" (compound_statement) "{\n perror("Closing descriptor on lock file failed");\n }" ({) "{" (expression_statement) "perror("Closing descriptor on lock file failed");" (call_expression) "perror("Closing descriptor on lock file failed")" (identifier) "perror" (argument_list) "("Closing descriptor on lock file failed")" (() "(" (string_literal) ""Closing descriptor on lock file failed"" (") """ (string_content) "Closing descriptor on lock file failed" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "int dht_read(int type, int pin, float *pHumidity, float *pTemperature) {\n int success = 0;\n // Validate humidity and temperature arguments and set them to zero.\n if (pHumidity == NULL || pTemperature == NULL) {\n DHT_READ_LOG("bad argument\n");\n } else \n // Initialize GPIO library.\n if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n } // successfully initialized GPIO library\n return success;\n}" (primitive_type) "int" (function_declarator) "dht_read(int type, int pin, float *pHumidity, float *pTemperature)" (identifier) "dht_read" (parameter_list) "(int type, int pin, float *pHumidity, float *pTemperature)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "int pin" (primitive_type) "int" (identifier) "pin" (,) "," (parameter_declaration) "float *pHumidity" (primitive_type) "float" (pointer_declarator) "*pHumidity" (*) "*" (identifier) "pHumidity" (,) "," (parameter_declaration) "float *pTemperature" (primitive_type) "float" (pointer_declarator) "*pTemperature" (*) "*" (identifier) "pTemperature" ()) ")" (compound_statement) "{\n int success = 0;\n // Validate humidity and temperature arguments and set them to zero.\n if (pHumidity == NULL || pTemperature == NULL) {\n DHT_READ_LOG("bad argument\n");\n } else \n // Initialize GPIO library.\n if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n } // successfully initialized GPIO library\n return success;\n}" ({) "{" (declaration) "int success = 0;" (primitive_type) "int" (init_declarator) "success = 0" (identifier) "success" (=) "=" (number_literal) "0" (;) ";" (comment) "// Validate humidity and temperature arguments and set them to zero." (if_statement) "if (pHumidity == NULL || pTemperature == NULL) {\n DHT_READ_LOG("bad argument\n");\n } else \n // Initialize GPIO library.\n if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n }" (if) "if" (parenthesized_expression) "(pHumidity == NULL || pTemperature == NULL)" (() "(" (binary_expression) "pHumidity == NULL || pTemperature == NULL" (binary_expression) "pHumidity == NULL" (identifier) "pHumidity" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "pTemperature == NULL" (identifier) "pTemperature" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n DHT_READ_LOG("bad argument\n");\n }" ({) "{" (expression_statement) "DHT_READ_LOG("bad argument\n");" (call_expression) "DHT_READ_LOG("bad argument\n")" (identifier) "DHT_READ_LOG" (argument_list) "("bad argument\n")" (() "(" (string_literal) ""bad argument\n"" (") """ (string_content) "bad argument" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else \n // Initialize GPIO library.\n if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n }" (else) "else" (comment) "// Initialize GPIO library." (if_statement) "if (pi_mmio_init() < 0) {\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n } else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n }" (if) "if" (parenthesized_expression) "(pi_mmio_init() < 0)" (() "(" (binary_expression) "pi_mmio_init() < 0" (call_expression) "pi_mmio_init()" (identifier) "pi_mmio_init" (argument_list) "()" (() "(" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n DHT_READ_LOG("MMIO init failed. May not be root\n");\n }" ({) "{" (expression_statement) "DHT_READ_LOG("MMIO init failed. May not be root\n");" (call_expression) "DHT_READ_LOG("MMIO init failed. May not be root\n")" (identifier) "DHT_READ_LOG" (argument_list) "("MMIO init failed. May not be root\n")" (() "(" (string_literal) ""MMIO init failed. May not be root\n"" (") """ (string_content) "MMIO init failed. May not be root" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (else_clause) "else {\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n }" (else) "else" (compound_statement) "{\n int lockfd = -1;\n int count = 10;\n while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n } // while count > 0\n if (lockfd >= 0) {\n close_lockfile(lockfd);\n }\n }" ({) "{" (declaration) "int lockfd = -1;" (primitive_type) "int" (init_declarator) "lockfd = -1" (identifier) "lockfd" (=) "=" (number_literal) "-1" (;) ";" (declaration) "int count = 10;" (primitive_type) "int" (init_declarator) "count = 10" (identifier) "count" (=) "=" (number_literal) "10" (;) ";" (while_statement) "while (count-- > 0) {\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n }" (while) "while" (parenthesized_expression) "(count-- > 0)" (() "(" (binary_expression) "count-- > 0" (update_expression) "count--" (identifier) "count" (--) "--" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }\n if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }\n if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }\n }" ({) "{" (if_statement) "if (lockfd < 0) {\n lockfd = open_lockfile(LOCKFILE);\n }" (if) "if" (parenthesized_expression) "(lockfd < 0)" (() "(" (binary_expression) "lockfd < 0" (identifier) "lockfd" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n lockfd = open_lockfile(LOCKFILE);\n }" ({) "{" (expression_statement) "lockfd = open_lockfile(LOCKFILE);" (assignment_expression) "lockfd = open_lockfile(LOCKFILE)" (identifier) "lockfd" (=) "=" (call_expression) "open_lockfile(LOCKFILE)" (identifier) "open_lockfile" (argument_list) "(LOCKFILE)" (() "(" (identifier) "LOCKFILE" ()) ")" (;) ";" (}) "}" (if_statement) "if (lockfd >= 0) {\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }" (if) "if" (parenthesized_expression) "(lockfd >= 0)" (() "(" (binary_expression) "lockfd >= 0" (identifier) "lockfd" (>=) ">=" (number_literal) "0" ()) ")" (compound_statement) "{\n success = pi_dht_read(type, pin, pHumidity, pTemperature);\n if (success) {\n count = 0;\n }\n }" ({) "{" (expression_statement) "success = pi_dht_read(type, pin, pHumidity, pTemperature);" (assignment_expression) "success = pi_dht_read(type, pin, pHumidity, pTemperature)" (identifier) "success" (=) "=" (call_expression) "pi_dht_read(type, pin, pHumidity, pTemperature)" (identifier) "pi_dht_read" (argument_list) "(type, pin, pHumidity, pTemperature)" (() "(" (identifier) "type" (,) "," (identifier) "pin" (,) "," (identifier) "pHumidity" (,) "," (identifier) "pTemperature" ()) ")" (;) ";" (if_statement) "if (success) {\n count = 0;\n }" (if) "if" (parenthesized_expression) "(success)" (() "(" (identifier) "success" ()) ")" (compound_statement) "{\n count = 0;\n }" ({) "{" (expression_statement) "count = 0;" (assignment_expression) "count = 0" (identifier) "count" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (if_statement) "if (count > 0) {\n sleep(1); // wait 1 sec to refresh\n }" (if) "if" (parenthesized_expression) "(count > 0)" (() "(" (binary_expression) "count > 0" (identifier) "count" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n sleep(1); // wait 1 sec to refresh\n }" ({) "{" (expression_statement) "sleep(1);" (call_expression) "sleep(1)" (identifier) "sleep" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (comment) "// wait 1 sec to refresh" (}) "}" (}) "}" (comment) "// while count > 0" (if_statement) "if (lockfd >= 0) {\n close_lockfile(lockfd);\n }" (if) "if" (parenthesized_expression) "(lockfd >= 0)" (() "(" (binary_expression) "lockfd >= 0" (identifier) "lockfd" (>=) ">=" (number_literal) "0" ()) ")" (compound_statement) "{\n close_lockfile(lockfd);\n }" ({) "{" (expression_statement) "close_lockfile(lockfd);" (call_expression) "close_lockfile(lockfd)" (identifier) "close_lockfile" (argument_list) "(lockfd)" (() "(" (identifier) "lockfd" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// successfully initialized GPIO library" (return_statement) "return success;" (return) "return" (identifier) "success" (;) ";" (}) "}"
1,964
0
{"language": "c", "success": true, "metadata": {"lines": 264, "avg_line_length": 35.64, "nodes": 1115, "errors": 0, "source_hash": "c8318661642a9d813aaa8878456a5c4a3db498707a04c730c846baa3972bf58e", "categorized_nodes": 796}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<errno.h>", "parent": 0, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <fcntl.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<fcntl.h>", "parent": 3, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdio.h>", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 12, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 15, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<string.h>", "parent": 15, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 19}}, {"id": 18, "type": "preproc_include", "text": "#include <sys/file.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<sys/file.h>", "parent": 18, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 21}}, {"id": 21, "type": "preproc_include", "text": "#include <time.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<time.h>", "parent": 21, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 17}}, {"id": 24, "type": "preproc_include", "text": "#include <unistd.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<unistd.h>", "parent": 24, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 19}}, {"id": 27, "type": "preproc_include", "text": "#include \"bcm2708.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"bcm2708.h\"", "parent": 27, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 20}}, {"id": 30, "type": "preproc_include", "text": "#include \"../realtime.h\"\n", "parent": null, "children": [31, 32], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 32, "type": "string_literal", "text": "\"../realtime.h\"", "parent": 30, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 24}}, {"id": 33, "type": "preproc_include", "text": "#include \"pi_dht_read.h\"\n", "parent": null, "children": [34, 35], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 35, "type": "string_literal", "text": "\"pi_dht_read.h\"", "parent": 33, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 24}}, {"id": 36, "type": "preproc_def", "text": "#define LOCKFILE \"/run/lock/dht_read.lck\"\n", "parent": null, "children": [37, 38, 39], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 38, "type": "identifier", "text": "LOCKFILE", "parent": 36, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 16}}, {"id": 39, "type": "preproc_arg", "text": "\"/run/lock/dht_read.lck\"", "parent": 36, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 41}}, {"id": 40, "type": "preproc_def", "text": "#define MAX_WAIT_US 400\n", "parent": null, "children": [41, 42, 43], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 42, "type": "identifier", "text": "MAX_WAIT_US", "parent": 40, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 19}}, {"id": 43, "type": "preproc_arg", "text": "400", "parent": 40, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 23}}, {"id": 44, "type": "preproc_def", "text": "#define DHT_BYTES 5\n", "parent": null, "children": [45, 46, 47], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 46, "type": "identifier", "text": "DHT_BYTES", "parent": 44, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 17}}, {"id": 47, "type": "preproc_arg", "text": "5", "parent": 44, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 20}}, {"id": 48, "type": "preproc_def", "text": "#define DHT_PULSES (1 + DHT_BYTES * 8)\n", "parent": null, "children": [49, 50, 51], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 50, "type": "identifier", "text": "DHT_PULSES", "parent": 48, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 51, "type": "preproc_arg", "text": "(1 + DHT_BYTES * 8)", "parent": 48, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 38}}, {"id": 52, "type": "function_definition", "text": "static const char *getLogHeader() {\n\tstatic char buff[] = \"YYYY-MM-DDTHH:MM:SS dht_read: \";\n\ttime_t timeNow = time(NULL);\n\tstruct tm tmNow;\n\tlocaltime_r(&timeNow, &tmNow);\n\tsnprintf(buff, sizeof(buff), \"%04d-%02d-%02d %02d:%02d:%02d dht_read: \",\n\t\ttmNow.tm_year + 1900,\n\t\ttmNow.tm_mon + 1,\n\t\ttmNow.tm_mday,\n\t\ttmNow.tm_hour,\n\t\ttmNow.tm_min,\n\t\ttmNow.tm_sec);\n\treturn buff;\n}", "parent": null, "children": [53, 54], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 61, "column": 1}}, {"id": 53, "type": "primitive_type", "text": "char", "parent": 52, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 54, "type": "pointer_declarator", "text": "*getLogHeader()", "parent": 52, "children": [55, 56], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 33}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 56, "type": "function_declarator", "text": "getLogHeader()", "parent": 54, "children": [57, 58], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 33}}, {"id": 57, "type": "identifier", "text": "getLogHeader", "parent": 56, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 31}}, {"id": 58, "type": "parameter_list", "text": "()", "parent": 56, "children": [], "start_point": {"row": 48, "column": 31}, "end_point": {"row": 48, "column": 33}}, {"id": 59, "type": "declaration", "text": "static char buff[] = \"YYYY-MM-DDTHH:MM:SS dht_read: \";", "parent": 52, "children": [60, 61], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 55}}, {"id": 60, "type": "primitive_type", "text": "char", "parent": 59, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 12}}, {"id": 61, "type": "init_declarator", "text": "buff[] = \"YYYY-MM-DDTHH:MM:SS dht_read: \"", "parent": 59, "children": [62, 64, 65], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 54}}, {"id": 62, "type": "array_declarator", "text": "buff[]", "parent": 61, "children": [63], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 19}}, {"id": 63, "type": "identifier", "text": "buff", "parent": 62, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 17}}, {"id": 64, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 65, "type": "string_literal", "text": "\"YYYY-MM-DDTHH:MM:SS dht_read: \"", "parent": 61, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 54}}, {"id": 66, "type": "declaration", "text": "time_t timeNow = time(NULL);", "parent": 52, "children": [67, 68], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 29}}, {"id": 67, "type": "type_identifier", "text": "time_t", "parent": 66, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 7}}, {"id": 68, "type": "init_declarator", "text": "timeNow = time(NULL)", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 28}}, {"id": 69, "type": "identifier", "text": "timeNow", "parent": 68, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 15}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 17}}, {"id": 71, "type": "call_expression", "text": "time(NULL)", "parent": 68, "children": [72, 73], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 28}}, {"id": 72, "type": "identifier", "text": "time", "parent": 71, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 22}}, {"id": 73, "type": "argument_list", "text": "(NULL)", "parent": 71, "children": [74], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 28}}, {"id": 74, "type": "null", "text": "NULL", "parent": 73, "children": [75], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 27}}, {"id": 75, "type": "NULL", "text": "NULL", "parent": 74, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 27}}, {"id": 76, "type": "declaration", "text": "struct tm tmNow;", "parent": 52, "children": [77, 80], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 17}}, {"id": 77, "type": "struct_specifier", "text": "struct tm", "parent": 76, "children": [78, 79], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 10}}, {"id": 78, "type": "struct", "text": "struct", "parent": 77, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 7}}, {"id": 79, "type": "type_identifier", "text": "tm", "parent": 77, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 10}}, {"id": 80, "type": "identifier", "text": "tmNow", "parent": 76, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 16}}, {"id": 81, "type": "call_expression", "text": "localtime_r(&timeNow, &tmNow)", "parent": 52, "children": [82, 83], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 30}}, {"id": 82, "type": "identifier", "text": "localtime_r", "parent": 81, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 12}}, {"id": 83, "type": "argument_list", "text": "(&timeNow, &tmNow)", "parent": 81, "children": [84, 86], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 30}}, {"id": 84, "type": "pointer_expression", "text": "&timeNow", "parent": 83, "children": [85], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 21}}, {"id": 85, "type": "identifier", "text": "timeNow", "parent": 84, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 21}}, {"id": 86, "type": "pointer_expression", "text": "&tmNow", "parent": 83, "children": [87], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 29}}, {"id": 87, "type": "identifier", "text": "tmNow", "parent": 86, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 29}}, {"id": 88, "type": "call_expression", "text": "snprintf(buff, sizeof(buff), \"%04d-%02d-%02d %02d:%02d:%02d dht_read: \",\n\t\ttmNow.tm_year + 1900,\n\t\ttmNow.tm_mon + 1,\n\t\ttmNow.tm_mday,\n\t\ttmNow.tm_hour,\n\t\ttmNow.tm_min,\n\t\ttmNow.tm_sec)", "parent": 52, "children": [89, 90], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 59, "column": 15}}, {"id": 89, "type": "identifier", "text": "snprintf", "parent": 88, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 90, "type": "argument_list", "text": "(buff, sizeof(buff), \"%04d-%02d-%02d %02d:%02d:%02d dht_read: \",\n\t\ttmNow.tm_year + 1900,\n\t\ttmNow.tm_mon + 1,\n\t\ttmNow.tm_mday,\n\t\ttmNow.tm_hour,\n\t\ttmNow.tm_min,\n\t\ttmNow.tm_sec)", "parent": 88, "children": [91, 92, 95, 96, 102, 108, 111, 114, 117], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 59, "column": 15}}, {"id": 91, "type": "identifier", "text": "buff", "parent": 90, "children": [], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 14}}, {"id": 92, "type": "sizeof_expression", "text": "sizeof(buff)", "parent": 90, "children": [93], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 28}}, {"id": 93, "type": "parenthesized_expression", "text": "(buff)", "parent": 92, "children": [94], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 28}}, {"id": 94, "type": "identifier", "text": "buff", "parent": 93, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 27}}, {"id": 95, "type": "string_literal", "text": "\"%04d-%02d-%02d %02d:%02d:%02d dht_read: \"", "parent": 90, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 72}}, {"id": 96, "type": "binary_expression", "text": "tmNow.tm_year + 1900", "parent": 90, "children": [97, 100, 101], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 22}}, {"id": 97, "type": "field_expression", "text": "tmNow.tm_year", "parent": 96, "children": [98, 99], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 15}}, {"id": 98, "type": "identifier", "text": "tmNow", "parent": 97, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 7}}, {"id": 99, "type": "field_identifier", "text": "tm_year", "parent": 97, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 15}}, {"id": 100, "type": "+", "text": "+", "parent": 96, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 101, "type": "number_literal", "text": "1900", "parent": 96, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 22}}, {"id": 102, "type": "binary_expression", "text": "tmNow.tm_mon + 1", "parent": 90, "children": [103, 106, 107], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 18}}, {"id": 103, "type": "field_expression", "text": "tmNow.tm_mon", "parent": 102, "children": [104, 105], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 14}}, {"id": 104, "type": "identifier", "text": "tmNow", "parent": 103, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 7}}, {"id": 105, "type": "field_identifier", "text": "tm_mon", "parent": 103, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 14}}, {"id": 106, "type": "+", "text": "+", "parent": 102, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 16}}, {"id": 107, "type": "number_literal", "text": "1", "parent": 102, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 18}}, {"id": 108, "type": "field_expression", "text": "tmNow.tm_mday", "parent": 90, "children": [109, 110], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 15}}, {"id": 109, "type": "identifier", "text": "tmNow", "parent": 108, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 7}}, {"id": 110, "type": "field_identifier", "text": "tm_mday", "parent": 108, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 15}}, {"id": 111, "type": "field_expression", "text": "tmNow.tm_hour", "parent": 90, "children": [112, 113], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 15}}, {"id": 112, "type": "identifier", "text": "tmNow", "parent": 111, "children": [], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 7}}, {"id": 113, "type": "field_identifier", "text": "tm_hour", "parent": 111, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 15}}, {"id": 114, "type": "field_expression", "text": "tmNow.tm_min", "parent": 90, "children": [115, 116], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 14}}, {"id": 115, "type": "identifier", "text": "tmNow", "parent": 114, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 7}}, {"id": 116, "type": "field_identifier", "text": "tm_min", "parent": 114, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 14}}, {"id": 117, "type": "field_expression", "text": "tmNow.tm_sec", "parent": 90, "children": [118, 119], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 14}}, {"id": 118, "type": "identifier", "text": "tmNow", "parent": 117, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 7}}, {"id": 119, "type": "field_identifier", "text": "tm_sec", "parent": 117, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 120, "type": "return_statement", "text": "return buff;", "parent": 52, "children": [121], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 13}}, {"id": 121, "type": "identifier", "text": "buff", "parent": 120, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 12}}, {"id": 122, "type": "preproc_function_def", "text": "#define DHT_READ_LOG(fmt, ...) printf(\"%s\" fmt, getLogHeader(), ##__VA_ARGS__ )\n", "parent": null, "children": [123, 124, 125, 127], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 123, "type": "#define", "text": "#define", "parent": 122, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 124, "type": "identifier", "text": "DHT_READ_LOG", "parent": 122, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 20}}, {"id": 125, "type": "preproc_params", "text": "(fmt, ...)", "parent": 122, "children": [126], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 30}}, {"id": 126, "type": "identifier", "text": "fmt", "parent": 125, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 24}}, {"id": 127, "type": "preproc_arg", "text": "printf(\"%s\" fmt, getLogHeader(), ##__VA_ARGS__ )", "parent": 122, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 79}}, {"id": 128, "type": "function_definition", "text": "static uint32_t getTransitionMicros(int pin, bool transitionHigh) {\n\tuint32_t expectedValue = transitionHigh ? (1 << pin) : 0;\n\tuint32_t startedMicros = pi_timer_micros();\n\twhile (pi_mmio_input(pin) != expectedValue) {\n\t\tuint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n\t\tif (elapsedMicros >= MAX_WAIT_US) {\n\t\t\treturn 0; // Timeout!\n\t\t}\n\t}\n\tuint32_t nowMicros = pi_timer_micros();\n\t// If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second),\n\t// return maximum uint32 value, which is one microsecond earier time.\n\treturn (nowMicros == 0) ? UINT32_MAX : nowMicros;\n}", "parent": null, "children": [129, 130], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 129, "type": "primitive_type", "text": "uint32_t", "parent": 128, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 15}}, {"id": 130, "type": "function_declarator", "text": "getTransitionMicros(int pin, bool transitionHigh)", "parent": 128, "children": [131, 132], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 65}}, {"id": 131, "type": "identifier", "text": "getTransitionMicros", "parent": 130, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 35}}, {"id": 132, "type": "parameter_list", "text": "(int pin, bool transitionHigh)", "parent": 130, "children": [133, 136], "start_point": {"row": 68, "column": 35}, "end_point": {"row": 68, "column": 65}}, {"id": 133, "type": "parameter_declaration", "text": "int pin", "parent": 132, "children": [134, 135], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 43}}, {"id": 134, "type": "primitive_type", "text": "int", "parent": 133, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 39}}, {"id": 135, "type": "identifier", "text": "pin", "parent": 133, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 43}}, {"id": 136, "type": "parameter_declaration", "text": "bool transitionHigh", "parent": 132, "children": [137, 138], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 64}}, {"id": 137, "type": "primitive_type", "text": "bool", "parent": 136, "children": [], "start_point": {"row": 68, "column": 45}, "end_point": {"row": 68, "column": 49}}, {"id": 138, "type": "identifier", "text": "transitionHigh", "parent": 136, "children": [], "start_point": {"row": 68, "column": 50}, "end_point": {"row": 68, "column": 64}}, {"id": 139, "type": "declaration", "text": "uint32_t expectedValue = transitionHigh ? (1 << pin) : 0;", "parent": 128, "children": [140, 141], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 58}}, {"id": 140, "type": "primitive_type", "text": "uint32_t", "parent": 139, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 9}}, {"id": 141, "type": "init_declarator", "text": "expectedValue = transitionHigh ? (1 << pin) : 0", "parent": 139, "children": [142, 143, 144], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 57}}, {"id": 142, "type": "identifier", "text": "expectedValue", "parent": 141, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 23}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 25}}, {"id": 144, "type": "conditional_expression", "text": "transitionHigh ? (1 << pin) : 0", "parent": 141, "children": [145, 146, 147, 152], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 57}}, {"id": 145, "type": "identifier", "text": "transitionHigh", "parent": 144, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 40}}, {"id": 146, "type": "?", "text": "?", "parent": 144, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 42}}, {"id": 147, "type": "parenthesized_expression", "text": "(1 << pin)", "parent": 144, "children": [148], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 53}}, {"id": 148, "type": "binary_expression", "text": "1 << pin", "parent": 147, "children": [149, 150, 151], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 52}}, {"id": 149, "type": "number_literal", "text": "1", "parent": 148, "children": [], "start_point": {"row": 69, "column": 44}, "end_point": {"row": 69, "column": 45}}, {"id": 150, "type": "<<", "text": "<<", "parent": 148, "children": [], "start_point": {"row": 69, "column": 46}, "end_point": {"row": 69, "column": 48}}, {"id": 151, "type": "identifier", "text": "pin", "parent": 148, "children": [], "start_point": {"row": 69, "column": 49}, "end_point": {"row": 69, "column": 52}}, {"id": 152, "type": "number_literal", "text": "0", "parent": 144, "children": [], "start_point": {"row": 69, "column": 56}, "end_point": {"row": 69, "column": 57}}, {"id": 153, "type": "declaration", "text": "uint32_t startedMicros = pi_timer_micros();", "parent": 128, "children": [154, 155], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 44}}, {"id": 154, "type": "primitive_type", "text": "uint32_t", "parent": 153, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 155, "type": "init_declarator", "text": "startedMicros = pi_timer_micros()", "parent": 153, "children": [156, 157, 158], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 43}}, {"id": 156, "type": "identifier", "text": "startedMicros", "parent": 155, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 23}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 25}}, {"id": 158, "type": "call_expression", "text": "pi_timer_micros()", "parent": 155, "children": [159, 160], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 43}}, {"id": 159, "type": "identifier", "text": "pi_timer_micros", "parent": 158, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 41}}, {"id": 160, "type": "argument_list", "text": "()", "parent": 158, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 43}}, {"id": 161, "type": "while_statement", "text": "while (pi_mmio_input(pin) != expectedValue) {\n\t\tuint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n\t\tif (elapsedMicros >= MAX_WAIT_US) {\n\t\t\treturn 0; // Timeout!\n\t\t}\n\t}", "parent": 128, "children": [162], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 76, "column": 2}}, {"id": 162, "type": "parenthesized_expression", "text": "(pi_mmio_input(pin) != expectedValue)", "parent": 161, "children": [163], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 44}}, {"id": 163, "type": "binary_expression", "text": "pi_mmio_input(pin) != expectedValue", "parent": 162, "children": [164, 168, 169], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 43}}, {"id": 164, "type": "call_expression", "text": "pi_mmio_input(pin)", "parent": 163, "children": [165, 166], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 26}}, {"id": 165, "type": "identifier", "text": "pi_mmio_input", "parent": 164, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 21}}, {"id": 166, "type": "argument_list", "text": "(pin)", "parent": 164, "children": [167], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 26}}, {"id": 167, "type": "identifier", "text": "pin", "parent": 166, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 25}}, {"id": 168, "type": "!=", "text": "!=", "parent": 163, "children": [], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 29}}, {"id": 169, "type": "identifier", "text": "expectedValue", "parent": 163, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 43}}, {"id": 170, "type": "declaration", "text": "uint32_t elapsedMicros = pi_timer_micros() - startedMicros;", "parent": 161, "children": [171, 172], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 61}}, {"id": 171, "type": "primitive_type", "text": "uint32_t", "parent": 170, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 10}}, {"id": 172, "type": "init_declarator", "text": "elapsedMicros = pi_timer_micros() - startedMicros", "parent": 170, "children": [173, 174, 175], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 60}}, {"id": 173, "type": "identifier", "text": "elapsedMicros", "parent": 172, "children": [], "start_point": {"row": 72, "column": 11}, "end_point": {"row": 72, "column": 24}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 26}}, {"id": 175, "type": "binary_expression", "text": "pi_timer_micros() - startedMicros", "parent": 172, "children": [176, 179, 180], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 60}}, {"id": 176, "type": "call_expression", "text": "pi_timer_micros()", "parent": 175, "children": [177, 178], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 44}}, {"id": 177, "type": "identifier", "text": "pi_timer_micros", "parent": 176, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 42}}, {"id": 178, "type": "argument_list", "text": "()", "parent": 176, "children": [], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 44}}, {"id": 179, "type": "-", "text": "-", "parent": 175, "children": [], "start_point": {"row": 72, "column": 45}, "end_point": {"row": 72, "column": 46}}, {"id": 180, "type": "identifier", "text": "startedMicros", "parent": 175, "children": [], "start_point": {"row": 72, "column": 47}, "end_point": {"row": 72, "column": 60}}, {"id": 181, "type": "if_statement", "text": "if (elapsedMicros >= MAX_WAIT_US) {\n\t\t\treturn 0; // Timeout!\n\t\t}", "parent": 161, "children": [182], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 182, "type": "parenthesized_expression", "text": "(elapsedMicros >= MAX_WAIT_US)", "parent": 181, "children": [183], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 35}}, {"id": 183, "type": "binary_expression", "text": "elapsedMicros >= MAX_WAIT_US", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 34}}, {"id": 184, "type": "identifier", "text": "elapsedMicros", "parent": 183, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 19}}, {"id": 185, "type": ">=", "text": ">=", "parent": 183, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 22}}, {"id": 186, "type": "identifier", "text": "MAX_WAIT_US", "parent": 183, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 34}}, {"id": 187, "type": "return_statement", "text": "return 0;", "parent": 181, "children": [188], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 12}}, {"id": 188, "type": "number_literal", "text": "0", "parent": 187, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 189, "type": "declaration", "text": "uint32_t nowMicros = pi_timer_micros();", "parent": 128, "children": [190, 191], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 40}}, {"id": 190, "type": "primitive_type", "text": "uint32_t", "parent": 189, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 9}}, {"id": 191, "type": "init_declarator", "text": "nowMicros = pi_timer_micros()", "parent": 189, "children": [192, 193, 194], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 39}}, {"id": 192, "type": "identifier", "text": "nowMicros", "parent": 191, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 19}}, {"id": 193, "type": "=", "text": "=", "parent": 191, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 21}}, {"id": 194, "type": "call_expression", "text": "pi_timer_micros()", "parent": 191, "children": [195, 196], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 39}}, {"id": 195, "type": "identifier", "text": "pi_timer_micros", "parent": 194, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 37}}, {"id": 196, "type": "argument_list", "text": "()", "parent": 194, "children": [], "start_point": {"row": 77, "column": 37}, "end_point": {"row": 77, "column": 39}}, {"id": 197, "type": "return_statement", "text": "return (nowMicros == 0) ? UINT32_MAX : nowMicros;", "parent": 128, "children": [198], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 50}}, {"id": 198, "type": "conditional_expression", "text": "(nowMicros == 0) ? UINT32_MAX : nowMicros", "parent": 197, "children": [199, 204, 205, 206], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 49}}, {"id": 199, "type": "parenthesized_expression", "text": "(nowMicros == 0)", "parent": 198, "children": [200], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 24}}, {"id": 200, "type": "binary_expression", "text": "nowMicros == 0", "parent": 199, "children": [201, 202, 203], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 23}}, {"id": 201, "type": "identifier", "text": "nowMicros", "parent": 200, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 18}}, {"id": 202, "type": "==", "text": "==", "parent": 200, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 21}}, {"id": 203, "type": "number_literal", "text": "0", "parent": 200, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 23}}, {"id": 204, "type": "?", "text": "?", "parent": 198, "children": [], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 26}}, {"id": 205, "type": "identifier", "text": "UINT32_MAX", "parent": 198, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 37}}, {"id": 206, "type": "identifier", "text": "nowMicros", "parent": 198, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 49}}, {"id": 207, "type": "function_definition", "text": "static int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) {\n\t*pTemperature = 0.0f;\n\t*pHumidity = 0.0f;\n\n\t// Store pulse widths that each DHT bit pulse is low and high.\n\t// Make sure array is initialized to start at zero.\n\tuint32_t lowMicros[DHT_PULSES + 1] = {0};\n\tuint32_t highMicros[DHT_PULSES] = {0};\n\n\t// Set pin to output.\n\tpi_mmio_set_output(pin);\n\n\t// Bump up process priority and change scheduler to try to try to make process more 'real time'.\n\tset_max_priority();\n\n\t// Set pin high for ~500 milliseconds.\n\tpi_mmio_set_high(pin);\n\tsleep_milliseconds(500);\n\n\t// The next calls are timing critical and care should be taken\n\t// to ensure no unnecssary work is done below.\n\n\t// Set pin low for ~20 milliseconds.\n\tpi_mmio_set_low(pin);\n\tbusy_wait_milliseconds(20);\n\n\t// Set pin at input.\n\tpi_mmio_set_input(pin);\n\n\t// Need a very short delay before reading pins or else value is sometimes still low.\n\tpi_timer_sleep_micros( 2 );\n\n\t// Wait for DHT to pull pin low.\n\tuint32_t lowStartedUs = getTransitionMicros(pin, false);\n\tif (lowStartedUs == 0) {\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for response low\\n\");\n\t\treturn 0;\n\t}\n\n\t// Record pulse widths for the expected result bits.\n\tint i;\n\tuint32_t highStartedUs;\n\tfor (i=0; i < DHT_PULSES; i++) {\n\n\t\t// Count how long pin is low and store in lowMicros[i]\n\t\thighStartedUs = getTransitionMicros(pin, true);\n\t\tif (highStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for high[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\tlowMicros[i] = highStartedUs - lowStartedUs; \n\n\t\t// Count how long pin is high and store in highMicros[i]\n\t\tlowStartedUs = getTransitionMicros(pin, false);\n\t\tif (lowStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for low[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\thighMicros[i] = lowStartedUs - highStartedUs;\n\t}\n\t// Count how log pin is low and store the final lowMicros\n\thighStartedUs = getTransitionMicros(pin, true);\n\tif (highStartedUs == 0) {\n\t\t// Timeout waiting for response.\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for high[release]\\n\");\n\t\treturn 0;\n\t}\n\tlowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; \n\n\t// Done with timing critical code, now interpret the results.\n\n\t// Drop back to normal priority.\n\tset_default_priority();\n\n\tuint32_t threshold = 0;\n\tbool needAdjust = true;\n\twhile (needAdjust) {\n\t\t// Compute the average low pulse width to use as a 50 microsecond reference threshold.\n\t\t// Ignore the first reading because it is a constant 80 microsecond pulse.\n\t\tthreshold = 0;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\tthreshold += lowMicros[i];\n\t\t}\n\t\tthreshold /= DHT_PULSES-1;\n\t\tuint32_t lowHighThreshold = threshold * 2;\n\t\t\n\t\t// Adjust high pulse widths for the interrupts\n\t\tneedAdjust = false;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\t// If the high width is less than the threshold...\n\t\t\tif (highMicros[i] < threshold) {\n\t\t\t\tuint32_t lowHigh = lowMicros[i] + highMicros[i];\n\t\t\t\t// But the (low + high) width is equal to or more than the threshold...\n\t\t\t\tif (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t} else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} // for adjust loop\n\t} // while needAdjust\n\n\t// Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference.\n\t// If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher\n\t// then it must be a ~70us 1 pulse.\n\tuint8_t data[DHT_BYTES] = {0};\n\tfor (i=1; i < DHT_PULSES; i++) {\n\t\tint index = (i-1)/8;\n\t\tdata[index] <<= 1;\n\t\tif (highMicros[i] >= threshold) {\n\t\t\t// One bit for long pulse.\n\t\t\tdata[index] |= 1;\n\t\t}\n\t\t// Else zero bit for short pulse.\n\t}\n\n\t// Useful debug info:\n\t//printf(\"Data: 0x%x 0x%x 0x%x 0x%x 0x%x\\n\", data[0], data[1], data[2], data[3], data[4]);\n\n\t// Verify checksum of received data.\n\tif (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n\t\tDHT_READ_LOG(\"Checksum error\\n\");\n\t\tfor (i=0; i <DHT_PULSES; i++) DHT_READ_LOG(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i]);\n\t\tDHT_READ_LOG(\"%2d,%4u\\n\", DHT_PULSES, lowMicros[DHT_PULSES]);\n\t\treturn 0;\n\t}\n\tif (type == DHT11) {\n\t\t// Get humidity and temp for DHT11 sensor.\n\t\t*pHumidity = (float)data[0];\n\t\t*pTemperature = (float)data[2];\n\t} else if (type == DHT22) {\n\t\t// Calculate humidity and temp for DHT22 sensor.\n\t\t*pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n\t\t*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n\t\tif (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}\n\t}\n\treturn 1;\n}", "parent": null, "children": [208, 209], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 238, "column": 1}}, {"id": 208, "type": "primitive_type", "text": "int", "parent": 207, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 10}}, {"id": 209, "type": "function_declarator", "text": "pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature)", "parent": 207, "children": [210, 211], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 80}}, {"id": 210, "type": "identifier", "text": "pi_dht_read", "parent": 209, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 22}}, {"id": 211, "type": "parameter_list", "text": "(int type, int pin, float* pHumidity, float* pTemperature)", "parent": 209, "children": [212, 215, 218, 223], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 80}}, {"id": 212, "type": "parameter_declaration", "text": "int type", "parent": 211, "children": [213, 214], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 31}}, {"id": 213, "type": "primitive_type", "text": "int", "parent": 212, "children": [], "start_point": {"row": 83, "column": 23}, "end_point": {"row": 83, "column": 26}}, {"id": 214, "type": "identifier", "text": "type", "parent": 212, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 31}}, {"id": 215, "type": "parameter_declaration", "text": "int pin", "parent": 211, "children": [216, 217], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 40}}, {"id": 216, "type": "primitive_type", "text": "int", "parent": 215, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 36}}, {"id": 217, "type": "identifier", "text": "pin", "parent": 215, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 40}}, {"id": 218, "type": "parameter_declaration", "text": "float* pHumidity", "parent": 211, "children": [219, 220], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 58}}, {"id": 219, "type": "primitive_type", "text": "float", "parent": 218, "children": [], "start_point": {"row": 83, "column": 42}, "end_point": {"row": 83, "column": 47}}, {"id": 220, "type": "pointer_declarator", "text": "* pHumidity", "parent": 218, "children": [221, 222], "start_point": {"row": 83, "column": 47}, "end_point": {"row": 83, "column": 58}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 83, "column": 47}, "end_point": {"row": 83, "column": 48}}, {"id": 222, "type": "identifier", "text": "pHumidity", "parent": 220, "children": [], "start_point": {"row": 83, "column": 49}, "end_point": {"row": 83, "column": 58}}, {"id": 223, "type": "parameter_declaration", "text": "float* pTemperature", "parent": 211, "children": [224, 225], "start_point": {"row": 83, "column": 60}, "end_point": {"row": 83, "column": 79}}, {"id": 224, "type": "primitive_type", "text": "float", "parent": 223, "children": [], "start_point": {"row": 83, "column": 60}, "end_point": {"row": 83, "column": 65}}, {"id": 225, "type": "pointer_declarator", "text": "* pTemperature", "parent": 223, "children": [226, 227], "start_point": {"row": 83, "column": 65}, "end_point": {"row": 83, "column": 79}}, {"id": 226, "type": "*", "text": "*", "parent": 225, "children": [], "start_point": {"row": 83, "column": 65}, "end_point": {"row": 83, "column": 66}}, {"id": 227, "type": "identifier", "text": "pTemperature", "parent": 225, "children": [], "start_point": {"row": 83, "column": 67}, "end_point": {"row": 83, "column": 79}}, {"id": 228, "type": "assignment_expression", "text": "*pTemperature = 0.0f", "parent": 207, "children": [229, 232, 233], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 21}}, {"id": 229, "type": "pointer_expression", "text": "*pTemperature", "parent": 228, "children": [230, 231], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 14}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 2}}, {"id": 231, "type": "identifier", "text": "pTemperature", "parent": 229, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 14}}, {"id": 232, "type": "=", "text": "=", "parent": 228, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 16}}, {"id": 233, "type": "number_literal", "text": "0.0f", "parent": 228, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 21}}, {"id": 234, "type": "assignment_expression", "text": "*pHumidity = 0.0f", "parent": 207, "children": [235, 238, 239], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 18}}, {"id": 235, "type": "pointer_expression", "text": "*pHumidity", "parent": 234, "children": [236, 237], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 11}}, {"id": 236, "type": "*", "text": "*", "parent": 235, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 2}}, {"id": 237, "type": "identifier", "text": "pHumidity", "parent": 235, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 11}}, {"id": 238, "type": "=", "text": "=", "parent": 234, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 13}}, {"id": 239, "type": "number_literal", "text": "0.0f", "parent": 234, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 18}}, {"id": 240, "type": "declaration", "text": "uint32_t lowMicros[DHT_PULSES + 1] = {0};", "parent": 207, "children": [241, 242], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 42}}, {"id": 241, "type": "primitive_type", "text": "uint32_t", "parent": 240, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 9}}, {"id": 242, "type": "init_declarator", "text": "lowMicros[DHT_PULSES + 1] = {0}", "parent": 240, "children": [243, 249, 250], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 41}}, {"id": 243, "type": "array_declarator", "text": "lowMicros[DHT_PULSES + 1]", "parent": 242, "children": [244, 245], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 35}}, {"id": 244, "type": "identifier", "text": "lowMicros", "parent": 243, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 19}}, {"id": 245, "type": "binary_expression", "text": "DHT_PULSES + 1", "parent": 243, "children": [246, 247, 248], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 34}}, {"id": 246, "type": "identifier", "text": "DHT_PULSES", "parent": 245, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 30}}, {"id": 247, "type": "+", "text": "+", "parent": 245, "children": [], "start_point": {"row": 89, "column": 31}, "end_point": {"row": 89, "column": 32}}, {"id": 248, "type": "number_literal", "text": "1", "parent": 245, "children": [], "start_point": {"row": 89, "column": 33}, "end_point": {"row": 89, "column": 34}}, {"id": 249, "type": "=", "text": "=", "parent": 242, "children": [], "start_point": {"row": 89, "column": 36}, "end_point": {"row": 89, "column": 37}}, {"id": 250, "type": "initializer_list", "text": "{0}", "parent": 242, "children": [251], "start_point": {"row": 89, "column": 38}, "end_point": {"row": 89, "column": 41}}, {"id": 251, "type": "number_literal", "text": "0", "parent": 250, "children": [], "start_point": {"row": 89, "column": 39}, "end_point": {"row": 89, "column": 40}}, {"id": 252, "type": "declaration", "text": "uint32_t highMicros[DHT_PULSES] = {0};", "parent": 207, "children": [253, 254], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 39}}, {"id": 253, "type": "primitive_type", "text": "uint32_t", "parent": 252, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 9}}, {"id": 254, "type": "init_declarator", "text": "highMicros[DHT_PULSES] = {0}", "parent": 252, "children": [255, 258, 259], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 38}}, {"id": 255, "type": "array_declarator", "text": "highMicros[DHT_PULSES]", "parent": 254, "children": [256, 257], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 32}}, {"id": 256, "type": "identifier", "text": "highMicros", "parent": 255, "children": [], "start_point": {"row": 90, "column": 10}, "end_point": {"row": 90, "column": 20}}, {"id": 257, "type": "identifier", "text": "DHT_PULSES", "parent": 255, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 31}}, {"id": 258, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 34}}, {"id": 259, "type": "initializer_list", "text": "{0}", "parent": 254, "children": [260], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 38}}, {"id": 260, "type": "number_literal", "text": "0", "parent": 259, "children": [], "start_point": {"row": 90, "column": 36}, "end_point": {"row": 90, "column": 37}}, {"id": 261, "type": "call_expression", "text": "pi_mmio_set_output(pin)", "parent": 207, "children": [262, 263], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 24}}, {"id": 262, "type": "identifier", "text": "pi_mmio_set_output", "parent": 261, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 19}}, {"id": 263, "type": "argument_list", "text": "(pin)", "parent": 261, "children": [264], "start_point": {"row": 93, "column": 19}, "end_point": {"row": 93, "column": 24}}, {"id": 264, "type": "identifier", "text": "pin", "parent": 263, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 23}}, {"id": 265, "type": "call_expression", "text": "set_max_priority()", "parent": 207, "children": [266, 267], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 19}}, {"id": 266, "type": "identifier", "text": "set_max_priority", "parent": 265, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 17}}, {"id": 267, "type": "argument_list", "text": "()", "parent": 265, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 19}}, {"id": 268, "type": "call_expression", "text": "pi_mmio_set_high(pin)", "parent": 207, "children": [269, 270], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 22}}, {"id": 269, "type": "identifier", "text": "pi_mmio_set_high", "parent": 268, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 17}}, {"id": 270, "type": "argument_list", "text": "(pin)", "parent": 268, "children": [271], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 22}}, {"id": 271, "type": "identifier", "text": "pin", "parent": 270, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 21}}, {"id": 272, "type": "call_expression", "text": "sleep_milliseconds(500)", "parent": 207, "children": [273, 274], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 24}}, {"id": 273, "type": "identifier", "text": "sleep_milliseconds", "parent": 272, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 19}}, {"id": 274, "type": "argument_list", "text": "(500)", "parent": 272, "children": [275], "start_point": {"row": 100, "column": 19}, "end_point": {"row": 100, "column": 24}}, {"id": 275, "type": "number_literal", "text": "500", "parent": 274, "children": [], "start_point": {"row": 100, "column": 20}, "end_point": {"row": 100, "column": 23}}, {"id": 276, "type": "call_expression", "text": "pi_mmio_set_low(pin)", "parent": 207, "children": [277, 278], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 21}}, {"id": 277, "type": "identifier", "text": "pi_mmio_set_low", "parent": 276, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 16}}, {"id": 278, "type": "argument_list", "text": "(pin)", "parent": 276, "children": [279], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 21}}, {"id": 279, "type": "identifier", "text": "pin", "parent": 278, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 20}}, {"id": 280, "type": "call_expression", "text": "busy_wait_milliseconds(20)", "parent": 207, "children": [281, 282], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 27}}, {"id": 281, "type": "identifier", "text": "busy_wait_milliseconds", "parent": 280, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 23}}, {"id": 282, "type": "argument_list", "text": "(20)", "parent": 280, "children": [283], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 27}}, {"id": 283, "type": "number_literal", "text": "20", "parent": 282, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 26}}, {"id": 284, "type": "call_expression", "text": "pi_mmio_set_input(pin)", "parent": 207, "children": [285, 286], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 23}}, {"id": 285, "type": "identifier", "text": "pi_mmio_set_input", "parent": 284, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 18}}, {"id": 286, "type": "argument_list", "text": "(pin)", "parent": 284, "children": [287], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 23}}, {"id": 287, "type": "identifier", "text": "pin", "parent": 286, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 22}}, {"id": 288, "type": "call_expression", "text": "pi_timer_sleep_micros( 2 )", "parent": 207, "children": [289, 290], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 27}}, {"id": 289, "type": "identifier", "text": "pi_timer_sleep_micros", "parent": 288, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 22}}, {"id": 290, "type": "argument_list", "text": "( 2 )", "parent": 288, "children": [291], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 27}}, {"id": 291, "type": "number_literal", "text": "2", "parent": 290, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 25}}, {"id": 292, "type": "declaration", "text": "uint32_t lowStartedUs = getTransitionMicros(pin, false);", "parent": 207, "children": [293, 294], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 57}}, {"id": 293, "type": "primitive_type", "text": "uint32_t", "parent": 292, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 9}}, {"id": 294, "type": "init_declarator", "text": "lowStartedUs = getTransitionMicros(pin, false)", "parent": 292, "children": [295, 296, 297], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 56}}, {"id": 295, "type": "identifier", "text": "lowStartedUs", "parent": 294, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 22}}, {"id": 296, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 116, "column": 23}, "end_point": {"row": 116, "column": 24}}, {"id": 297, "type": "call_expression", "text": "getTransitionMicros(pin, false)", "parent": 294, "children": [298, 299], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 56}}, {"id": 298, "type": "identifier", "text": "getTransitionMicros", "parent": 297, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 44}}, {"id": 299, "type": "argument_list", "text": "(pin, false)", "parent": 297, "children": [300, 301], "start_point": {"row": 116, "column": 44}, "end_point": {"row": 116, "column": 56}}, {"id": 300, "type": "identifier", "text": "pin", "parent": 299, "children": [], "start_point": {"row": 116, "column": 45}, "end_point": {"row": 116, "column": 48}}, {"id": 301, "type": "false", "text": "false", "parent": 299, "children": [], "start_point": {"row": 116, "column": 50}, "end_point": {"row": 116, "column": 55}}, {"id": 302, "type": "if_statement", "text": "if (lowStartedUs == 0) {\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for response low\\n\");\n\t\treturn 0;\n\t}", "parent": 207, "children": [303], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 303, "type": "parenthesized_expression", "text": "(lowStartedUs == 0)", "parent": 302, "children": [304], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 23}}, {"id": 304, "type": "binary_expression", "text": "lowStartedUs == 0", "parent": 303, "children": [305, 306, 307], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 22}}, {"id": 305, "type": "identifier", "text": "lowStartedUs", "parent": 304, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 17}}, {"id": 306, "type": "==", "text": "==", "parent": 304, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 20}}, {"id": 307, "type": "number_literal", "text": "0", "parent": 304, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 22}}, {"id": 308, "type": "call_expression", "text": "set_default_priority()", "parent": 302, "children": [309, 310], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 24}}, {"id": 309, "type": "identifier", "text": "set_default_priority", "parent": 308, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 22}}, {"id": 310, "type": "argument_list", "text": "()", "parent": 308, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 24}}, {"id": 311, "type": "call_expression", "text": "DHT_READ_LOG(\"Timeout waiting for response low\\n\")", "parent": 302, "children": [312, 313], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 52}}, {"id": 312, "type": "identifier", "text": "DHT_READ_LOG", "parent": 311, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 14}}, {"id": 313, "type": "argument_list", "text": "(\"Timeout waiting for response low\\n\")", "parent": 311, "children": [314], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 52}}, {"id": 314, "type": "string_literal", "text": "\"Timeout waiting for response low\\n\"", "parent": 313, "children": [315], "start_point": {"row": 119, "column": 15}, "end_point": {"row": 119, "column": 51}}, {"id": 315, "type": "escape_sequence", "text": "\\n", "parent": 314, "children": [], "start_point": {"row": 119, "column": 48}, "end_point": {"row": 119, "column": 50}}, {"id": 316, "type": "return_statement", "text": "return 0;", "parent": 302, "children": [317], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 11}}, {"id": 317, "type": "number_literal", "text": "0", "parent": 316, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 10}}, {"id": 318, "type": "declaration", "text": "int i;", "parent": 207, "children": [319, 320], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 7}}, {"id": 319, "type": "primitive_type", "text": "int", "parent": 318, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 4}}, {"id": 320, "type": "identifier", "text": "i", "parent": 318, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 6}}, {"id": 321, "type": "declaration", "text": "uint32_t highStartedUs;", "parent": 207, "children": [322, 323], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 24}}, {"id": 322, "type": "primitive_type", "text": "uint32_t", "parent": 321, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 9}}, {"id": 323, "type": "identifier", "text": "highStartedUs", "parent": 321, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 23}}, {"id": 324, "type": "for_statement", "text": "for (i=0; i < DHT_PULSES; i++) {\n\n\t\t// Count how long pin is low and store in lowMicros[i]\n\t\thighStartedUs = getTransitionMicros(pin, true);\n\t\tif (highStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for high[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\tlowMicros[i] = highStartedUs - lowStartedUs; \n\n\t\t// Count how long pin is high and store in highMicros[i]\n\t\tlowStartedUs = getTransitionMicros(pin, false);\n\t\tif (lowStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for low[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\thighMicros[i] = lowStartedUs - highStartedUs;\n\t}", "parent": 207, "children": [325, 329, 333], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 145, "column": 2}}, {"id": 325, "type": "assignment_expression", "text": "i=0", "parent": 324, "children": [326, 327, 328], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 9}}, {"id": 326, "type": "identifier", "text": "i", "parent": 325, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 7}}, {"id": 327, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 8}}, {"id": 328, "type": "number_literal", "text": "0", "parent": 325, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 9}}, {"id": 329, "type": "binary_expression", "text": "i < DHT_PULSES", "parent": 324, "children": [330, 331, 332], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 25}}, {"id": 330, "type": "identifier", "text": "i", "parent": 329, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 12}}, {"id": 331, "type": "<", "text": "<", "parent": 329, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 14}}, {"id": 332, "type": "identifier", "text": "DHT_PULSES", "parent": 329, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 25}}, {"id": 333, "type": "update_expression", "text": "i++", "parent": 324, "children": [334, 335], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 30}}, {"id": 334, "type": "identifier", "text": "i", "parent": 333, "children": [], "start_point": {"row": 126, "column": 27}, "end_point": {"row": 126, "column": 28}}, {"id": 335, "type": "++", "text": "++", "parent": 333, "children": [], "start_point": {"row": 126, "column": 28}, "end_point": {"row": 126, "column": 30}}, {"id": 336, "type": "assignment_expression", "text": "highStartedUs = getTransitionMicros(pin, true)", "parent": 324, "children": [337, 338, 339], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 48}}, {"id": 337, "type": "identifier", "text": "highStartedUs", "parent": 336, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 15}}, {"id": 338, "type": "=", "text": "=", "parent": 336, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 17}}, {"id": 339, "type": "call_expression", "text": "getTransitionMicros(pin, true)", "parent": 336, "children": [340, 341], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 48}}, {"id": 340, "type": "identifier", "text": "getTransitionMicros", "parent": 339, "children": [], "start_point": {"row": 129, "column": 18}, "end_point": {"row": 129, "column": 37}}, {"id": 341, "type": "argument_list", "text": "(pin, true)", "parent": 339, "children": [342, 343], "start_point": {"row": 129, "column": 37}, "end_point": {"row": 129, "column": 48}}, {"id": 342, "type": "identifier", "text": "pin", "parent": 341, "children": [], "start_point": {"row": 129, "column": 38}, "end_point": {"row": 129, "column": 41}}, {"id": 343, "type": "true", "text": "true", "parent": 341, "children": [], "start_point": {"row": 129, "column": 43}, "end_point": {"row": 129, "column": 47}}, {"id": 344, "type": "if_statement", "text": "if (highStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for high[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}", "parent": 324, "children": [345], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 134, "column": 3}}, {"id": 345, "type": "parenthesized_expression", "text": "(highStartedUs == 0)", "parent": 344, "children": [346], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 25}}, {"id": 346, "type": "binary_expression", "text": "highStartedUs == 0", "parent": 345, "children": [347, 348, 349], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 24}}, {"id": 347, "type": "identifier", "text": "highStartedUs", "parent": 346, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 19}}, {"id": 348, "type": "==", "text": "==", "parent": 346, "children": [], "start_point": {"row": 130, "column": 20}, "end_point": {"row": 130, "column": 22}}, {"id": 349, "type": "number_literal", "text": "0", "parent": 346, "children": [], "start_point": {"row": 130, "column": 23}, "end_point": {"row": 130, "column": 24}}, {"id": 350, "type": "call_expression", "text": "set_default_priority()", "parent": 344, "children": [351, 352], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 25}}, {"id": 351, "type": "identifier", "text": "set_default_priority", "parent": 350, "children": [], "start_point": {"row": 131, "column": 3}, "end_point": {"row": 131, "column": 23}}, {"id": 352, "type": "argument_list", "text": "()", "parent": 350, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 25}}, {"id": 353, "type": "call_expression", "text": "DHT_READ_LOG(\"Timeout waiting for high[%d]\\n\", i)", "parent": 344, "children": [354, 355], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 52}}, {"id": 354, "type": "identifier", "text": "DHT_READ_LOG", "parent": 353, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 15}}, {"id": 355, "type": "argument_list", "text": "(\"Timeout waiting for high[%d]\\n\", i)", "parent": 353, "children": [356, 358], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 52}}, {"id": 356, "type": "string_literal", "text": "\"Timeout waiting for high[%d]\\n\"", "parent": 355, "children": [357], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 48}}, {"id": 357, "type": "escape_sequence", "text": "\\n", "parent": 356, "children": [], "start_point": {"row": 132, "column": 45}, "end_point": {"row": 132, "column": 47}}, {"id": 358, "type": "identifier", "text": "i", "parent": 355, "children": [], "start_point": {"row": 132, "column": 50}, "end_point": {"row": 132, "column": 51}}, {"id": 359, "type": "return_statement", "text": "return 0;", "parent": 344, "children": [360], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 12}}, {"id": 360, "type": "number_literal", "text": "0", "parent": 359, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 11}}, {"id": 361, "type": "assignment_expression", "text": "lowMicros[i] = highStartedUs - lowStartedUs", "parent": 324, "children": [362, 365, 366], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 45}}, {"id": 362, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 361, "children": [363, 364], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 14}}, {"id": 363, "type": "identifier", "text": "lowMicros", "parent": 362, "children": [], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 11}}, {"id": 364, "type": "identifier", "text": "i", "parent": 362, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 13}}, {"id": 365, "type": "=", "text": "=", "parent": 361, "children": [], "start_point": {"row": 135, "column": 15}, "end_point": {"row": 135, "column": 16}}, {"id": 366, "type": "binary_expression", "text": "highStartedUs - lowStartedUs", "parent": 361, "children": [367, 368, 369], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 45}}, {"id": 367, "type": "identifier", "text": "highStartedUs", "parent": 366, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 30}}, {"id": 368, "type": "-", "text": "-", "parent": 366, "children": [], "start_point": {"row": 135, "column": 31}, "end_point": {"row": 135, "column": 32}}, {"id": 369, "type": "identifier", "text": "lowStartedUs", "parent": 366, "children": [], "start_point": {"row": 135, "column": 33}, "end_point": {"row": 135, "column": 45}}, {"id": 370, "type": "assignment_expression", "text": "lowStartedUs = getTransitionMicros(pin, false)", "parent": 324, "children": [371, 372, 373], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 48}}, {"id": 371, "type": "identifier", "text": "lowStartedUs", "parent": 370, "children": [], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 14}}, {"id": 372, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 16}}, {"id": 373, "type": "call_expression", "text": "getTransitionMicros(pin, false)", "parent": 370, "children": [374, 375], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 48}}, {"id": 374, "type": "identifier", "text": "getTransitionMicros", "parent": 373, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 36}}, {"id": 375, "type": "argument_list", "text": "(pin, false)", "parent": 373, "children": [376, 377], "start_point": {"row": 138, "column": 36}, "end_point": {"row": 138, "column": 48}}, {"id": 376, "type": "identifier", "text": "pin", "parent": 375, "children": [], "start_point": {"row": 138, "column": 37}, "end_point": {"row": 138, "column": 40}}, {"id": 377, "type": "false", "text": "false", "parent": 375, "children": [], "start_point": {"row": 138, "column": 42}, "end_point": {"row": 138, "column": 47}}, {"id": 378, "type": "if_statement", "text": "if (lowStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for low[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}", "parent": 324, "children": [379], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 143, "column": 3}}, {"id": 379, "type": "parenthesized_expression", "text": "(lowStartedUs == 0)", "parent": 378, "children": [380], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 24}}, {"id": 380, "type": "binary_expression", "text": "lowStartedUs == 0", "parent": 379, "children": [381, 382, 383], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 23}}, {"id": 381, "type": "identifier", "text": "lowStartedUs", "parent": 380, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 18}}, {"id": 382, "type": "==", "text": "==", "parent": 380, "children": [], "start_point": {"row": 139, "column": 19}, "end_point": {"row": 139, "column": 21}}, {"id": 383, "type": "number_literal", "text": "0", "parent": 380, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 23}}, {"id": 384, "type": "call_expression", "text": "set_default_priority()", "parent": 378, "children": [385, 386], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 25}}, {"id": 385, "type": "identifier", "text": "set_default_priority", "parent": 384, "children": [], "start_point": {"row": 140, "column": 3}, "end_point": {"row": 140, "column": 23}}, {"id": 386, "type": "argument_list", "text": "()", "parent": 384, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 25}}, {"id": 387, "type": "call_expression", "text": "DHT_READ_LOG(\"Timeout waiting for low[%d]\\n\", i)", "parent": 378, "children": [388, 389], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 51}}, {"id": 388, "type": "identifier", "text": "DHT_READ_LOG", "parent": 387, "children": [], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 15}}, {"id": 389, "type": "argument_list", "text": "(\"Timeout waiting for low[%d]\\n\", i)", "parent": 387, "children": [390, 392], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 51}}, {"id": 390, "type": "string_literal", "text": "\"Timeout waiting for low[%d]\\n\"", "parent": 389, "children": [391], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 47}}, {"id": 391, "type": "escape_sequence", "text": "\\n", "parent": 390, "children": [], "start_point": {"row": 141, "column": 44}, "end_point": {"row": 141, "column": 46}}, {"id": 392, "type": "identifier", "text": "i", "parent": 389, "children": [], "start_point": {"row": 141, "column": 49}, "end_point": {"row": 141, "column": 50}}, {"id": 393, "type": "return_statement", "text": "return 0;", "parent": 378, "children": [394], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 142, "column": 12}}, {"id": 394, "type": "number_literal", "text": "0", "parent": 393, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 11}}, {"id": 395, "type": "assignment_expression", "text": "highMicros[i] = lowStartedUs - highStartedUs", "parent": 324, "children": [396, 399, 400], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 46}}, {"id": 396, "type": "subscript_expression", "text": "highMicros[i]", "parent": 395, "children": [397, 398], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 15}}, {"id": 397, "type": "identifier", "text": "highMicros", "parent": 396, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 12}}, {"id": 398, "type": "identifier", "text": "i", "parent": 396, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 14}}, {"id": 399, "type": "=", "text": "=", "parent": 395, "children": [], "start_point": {"row": 144, "column": 16}, "end_point": {"row": 144, "column": 17}}, {"id": 400, "type": "binary_expression", "text": "lowStartedUs - highStartedUs", "parent": 395, "children": [401, 402, 403], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 46}}, {"id": 401, "type": "identifier", "text": "lowStartedUs", "parent": 400, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 30}}, {"id": 402, "type": "-", "text": "-", "parent": 400, "children": [], "start_point": {"row": 144, "column": 31}, "end_point": {"row": 144, "column": 32}}, {"id": 403, "type": "identifier", "text": "highStartedUs", "parent": 400, "children": [], "start_point": {"row": 144, "column": 33}, "end_point": {"row": 144, "column": 46}}, {"id": 404, "type": "assignment_expression", "text": "highStartedUs = getTransitionMicros(pin, true)", "parent": 207, "children": [405, 406, 407], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 47}}, {"id": 405, "type": "identifier", "text": "highStartedUs", "parent": 404, "children": [], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 147, "column": 14}}, {"id": 406, "type": "=", "text": "=", "parent": 404, "children": [], "start_point": {"row": 147, "column": 15}, "end_point": {"row": 147, "column": 16}}, {"id": 407, "type": "call_expression", "text": "getTransitionMicros(pin, true)", "parent": 404, "children": [408, 409], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 47}}, {"id": 408, "type": "identifier", "text": "getTransitionMicros", "parent": 407, "children": [], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 36}}, {"id": 409, "type": "argument_list", "text": "(pin, true)", "parent": 407, "children": [410, 411], "start_point": {"row": 147, "column": 36}, "end_point": {"row": 147, "column": 47}}, {"id": 410, "type": "identifier", "text": "pin", "parent": 409, "children": [], "start_point": {"row": 147, "column": 37}, "end_point": {"row": 147, "column": 40}}, {"id": 411, "type": "true", "text": "true", "parent": 409, "children": [], "start_point": {"row": 147, "column": 42}, "end_point": {"row": 147, "column": 46}}, {"id": 412, "type": "if_statement", "text": "if (highStartedUs == 0) {\n\t\t// Timeout waiting for response.\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for high[release]\\n\");\n\t\treturn 0;\n\t}", "parent": 207, "children": [413], "start_point": {"row": 148, "column": 1}, "end_point": {"row": 153, "column": 2}}, {"id": 413, "type": "parenthesized_expression", "text": "(highStartedUs == 0)", "parent": 412, "children": [414], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 24}}, {"id": 414, "type": "binary_expression", "text": "highStartedUs == 0", "parent": 413, "children": [415, 416, 417], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 23}}, {"id": 415, "type": "identifier", "text": "highStartedUs", "parent": 414, "children": [], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 18}}, {"id": 416, "type": "==", "text": "==", "parent": 414, "children": [], "start_point": {"row": 148, "column": 19}, "end_point": {"row": 148, "column": 21}}, {"id": 417, "type": "number_literal", "text": "0", "parent": 414, "children": [], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 23}}, {"id": 418, "type": "call_expression", "text": "set_default_priority()", "parent": 412, "children": [419, 420], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 24}}, {"id": 419, "type": "identifier", "text": "set_default_priority", "parent": 418, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 22}}, {"id": 420, "type": "argument_list", "text": "()", "parent": 418, "children": [], "start_point": {"row": 150, "column": 22}, "end_point": {"row": 150, "column": 24}}, {"id": 421, "type": "call_expression", "text": "DHT_READ_LOG(\"Timeout waiting for high[release]\\n\")", "parent": 412, "children": [422, 423], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 53}}, {"id": 422, "type": "identifier", "text": "DHT_READ_LOG", "parent": 421, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 14}}, {"id": 423, "type": "argument_list", "text": "(\"Timeout waiting for high[release]\\n\")", "parent": 421, "children": [424], "start_point": {"row": 151, "column": 14}, "end_point": {"row": 151, "column": 53}}, {"id": 424, "type": "string_literal", "text": "\"Timeout waiting for high[release]\\n\"", "parent": 423, "children": [425], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 52}}, {"id": 425, "type": "escape_sequence", "text": "\\n", "parent": 424, "children": [], "start_point": {"row": 151, "column": 49}, "end_point": {"row": 151, "column": 51}}, {"id": 426, "type": "return_statement", "text": "return 0;", "parent": 412, "children": [427], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 152, "column": 11}}, {"id": 427, "type": "number_literal", "text": "0", "parent": 426, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 10}}, {"id": 428, "type": "assignment_expression", "text": "lowMicros[DHT_PULSES] = highStartedUs - lowStartedUs", "parent": 207, "children": [429, 432, 433], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 53}}, {"id": 429, "type": "subscript_expression", "text": "lowMicros[DHT_PULSES]", "parent": 428, "children": [430, 431], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 22}}, {"id": 430, "type": "identifier", "text": "lowMicros", "parent": 429, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 10}}, {"id": 431, "type": "identifier", "text": "DHT_PULSES", "parent": 429, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 21}}, {"id": 432, "type": "=", "text": "=", "parent": 428, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 24}}, {"id": 433, "type": "binary_expression", "text": "highStartedUs - lowStartedUs", "parent": 428, "children": [434, 435, 436], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 53}}, {"id": 434, "type": "identifier", "text": "highStartedUs", "parent": 433, "children": [], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 154, "column": 38}}, {"id": 435, "type": "-", "text": "-", "parent": 433, "children": [], "start_point": {"row": 154, "column": 39}, "end_point": {"row": 154, "column": 40}}, {"id": 436, "type": "identifier", "text": "lowStartedUs", "parent": 433, "children": [], "start_point": {"row": 154, "column": 41}, "end_point": {"row": 154, "column": 53}}, {"id": 437, "type": "call_expression", "text": "set_default_priority()", "parent": 207, "children": [438, 439], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 23}}, {"id": 438, "type": "identifier", "text": "set_default_priority", "parent": 437, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 21}}, {"id": 439, "type": "argument_list", "text": "()", "parent": 437, "children": [], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 23}}, {"id": 440, "type": "declaration", "text": "uint32_t threshold = 0;", "parent": 207, "children": [441, 442], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 24}}, {"id": 441, "type": "primitive_type", "text": "uint32_t", "parent": 440, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 9}}, {"id": 442, "type": "init_declarator", "text": "threshold = 0", "parent": 440, "children": [443, 444, 445], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 23}}, {"id": 443, "type": "identifier", "text": "threshold", "parent": 442, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 19}}, {"id": 444, "type": "=", "text": "=", "parent": 442, "children": [], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 161, "column": 21}}, {"id": 445, "type": "number_literal", "text": "0", "parent": 442, "children": [], "start_point": {"row": 161, "column": 22}, "end_point": {"row": 161, "column": 23}}, {"id": 446, "type": "declaration", "text": "bool needAdjust = true;", "parent": 207, "children": [447, 448], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 24}}, {"id": 447, "type": "primitive_type", "text": "bool", "parent": 446, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 5}}, {"id": 448, "type": "init_declarator", "text": "needAdjust = true", "parent": 446, "children": [449, 450, 451], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 23}}, {"id": 449, "type": "identifier", "text": "needAdjust", "parent": 448, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 16}}, {"id": 450, "type": "=", "text": "=", "parent": 448, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 18}}, {"id": 451, "type": "true", "text": "true", "parent": 448, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 23}}, {"id": 452, "type": "while_statement", "text": "while (needAdjust) {\n\t\t// Compute the average low pulse width to use as a 50 microsecond reference threshold.\n\t\t// Ignore the first reading because it is a constant 80 microsecond pulse.\n\t\tthreshold = 0;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\tthreshold += lowMicros[i];\n\t\t}\n\t\tthreshold /= DHT_PULSES-1;\n\t\tuint32_t lowHighThreshold = threshold * 2;\n\t\t\n\t\t// Adjust high pulse widths for the interrupts\n\t\tneedAdjust = false;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\t// If the high width is less than the threshold...\n\t\t\tif (highMicros[i] < threshold) {\n\t\t\t\tuint32_t lowHigh = lowMicros[i] + highMicros[i];\n\t\t\t\t// But the (low + high) width is equal to or more than the threshold...\n\t\t\t\tif (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t} else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} // for adjust loop\n\t}", "parent": 207, "children": [453], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 199, "column": 2}}, {"id": 453, "type": "parenthesized_expression", "text": "(needAdjust)", "parent": 452, "children": [454], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 19}}, {"id": 454, "type": "identifier", "text": "needAdjust", "parent": 453, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 18}}, {"id": 455, "type": "assignment_expression", "text": "threshold = 0", "parent": 452, "children": [456, 457, 458], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 15}}, {"id": 456, "type": "identifier", "text": "threshold", "parent": 455, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 11}}, {"id": 457, "type": "=", "text": "=", "parent": 455, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 13}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 455, "children": [], "start_point": {"row": 166, "column": 14}, "end_point": {"row": 166, "column": 15}}, {"id": 459, "type": "for_statement", "text": "for (i=1; i < DHT_PULSES; i++) {\n\t\t\tthreshold += lowMicros[i];\n\t\t}", "parent": 452, "children": [460, 464, 468], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 169, "column": 3}}, {"id": 460, "type": "assignment_expression", "text": "i=1", "parent": 459, "children": [461, 462, 463], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 10}}, {"id": 461, "type": "identifier", "text": "i", "parent": 460, "children": [], "start_point": {"row": 167, "column": 7}, "end_point": {"row": 167, "column": 8}}, {"id": 462, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 9}}, {"id": 463, "type": "number_literal", "text": "1", "parent": 460, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 10}}, {"id": 464, "type": "binary_expression", "text": "i < DHT_PULSES", "parent": 459, "children": [465, 466, 467], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 26}}, {"id": 465, "type": "identifier", "text": "i", "parent": 464, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 13}}, {"id": 466, "type": "<", "text": "<", "parent": 464, "children": [], "start_point": {"row": 167, "column": 14}, "end_point": {"row": 167, "column": 15}}, {"id": 467, "type": "identifier", "text": "DHT_PULSES", "parent": 464, "children": [], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 26}}, {"id": 468, "type": "update_expression", "text": "i++", "parent": 459, "children": [469, 470], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 31}}, {"id": 469, "type": "identifier", "text": "i", "parent": 468, "children": [], "start_point": {"row": 167, "column": 28}, "end_point": {"row": 167, "column": 29}}, {"id": 470, "type": "++", "text": "++", "parent": 468, "children": [], "start_point": {"row": 167, "column": 29}, "end_point": {"row": 167, "column": 31}}, {"id": 471, "type": "assignment_expression", "text": "threshold += lowMicros[i]", "parent": 459, "children": [472, 473, 474], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 168, "column": 28}}, {"id": 472, "type": "identifier", "text": "threshold", "parent": 471, "children": [], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 168, "column": 12}}, {"id": 473, "type": "+=", "text": "+=", "parent": 471, "children": [], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 15}}, {"id": 474, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 471, "children": [475, 476], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 28}}, {"id": 475, "type": "identifier", "text": "lowMicros", "parent": 474, "children": [], "start_point": {"row": 168, "column": 16}, "end_point": {"row": 168, "column": 25}}, {"id": 476, "type": "identifier", "text": "i", "parent": 474, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 27}}, {"id": 477, "type": "assignment_expression", "text": "threshold /= DHT_PULSES-1", "parent": 452, "children": [478, 479, 480], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 27}}, {"id": 478, "type": "identifier", "text": "threshold", "parent": 477, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 11}}, {"id": 479, "type": "/=", "text": "/=", "parent": 477, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 14}}, {"id": 480, "type": "binary_expression", "text": "DHT_PULSES-1", "parent": 477, "children": [481, 482, 483], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 27}}, {"id": 481, "type": "identifier", "text": "DHT_PULSES", "parent": 480, "children": [], "start_point": {"row": 170, "column": 15}, "end_point": {"row": 170, "column": 25}}, {"id": 482, "type": "-", "text": "-", "parent": 480, "children": [], "start_point": {"row": 170, "column": 25}, "end_point": {"row": 170, "column": 26}}, {"id": 483, "type": "number_literal", "text": "1", "parent": 480, "children": [], "start_point": {"row": 170, "column": 26}, "end_point": {"row": 170, "column": 27}}, {"id": 484, "type": "declaration", "text": "uint32_t lowHighThreshold = threshold * 2;", "parent": 452, "children": [485, 486], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 44}}, {"id": 485, "type": "primitive_type", "text": "uint32_t", "parent": 484, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 10}}, {"id": 486, "type": "init_declarator", "text": "lowHighThreshold = threshold * 2", "parent": 484, "children": [487, 488, 489], "start_point": {"row": 171, "column": 11}, "end_point": {"row": 171, "column": 43}}, {"id": 487, "type": "identifier", "text": "lowHighThreshold", "parent": 486, "children": [], "start_point": {"row": 171, "column": 11}, "end_point": {"row": 171, "column": 27}}, {"id": 488, "type": "=", "text": "=", "parent": 486, "children": [], "start_point": {"row": 171, "column": 28}, "end_point": {"row": 171, "column": 29}}, {"id": 489, "type": "binary_expression", "text": "threshold * 2", "parent": 486, "children": [490, 491, 492], "start_point": {"row": 171, "column": 30}, "end_point": {"row": 171, "column": 43}}, {"id": 490, "type": "identifier", "text": "threshold", "parent": 489, "children": [], "start_point": {"row": 171, "column": 30}, "end_point": {"row": 171, "column": 39}}, {"id": 491, "type": "*", "text": "*", "parent": 489, "children": [], "start_point": {"row": 171, "column": 40}, "end_point": {"row": 171, "column": 41}}, {"id": 492, "type": "number_literal", "text": "2", "parent": 489, "children": [], "start_point": {"row": 171, "column": 42}, "end_point": {"row": 171, "column": 43}}, {"id": 493, "type": "assignment_expression", "text": "needAdjust = false", "parent": 452, "children": [494, 495, 496], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 20}}, {"id": 494, "type": "identifier", "text": "needAdjust", "parent": 493, "children": [], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 12}}, {"id": 495, "type": "=", "text": "=", "parent": 493, "children": [], "start_point": {"row": 174, "column": 13}, "end_point": {"row": 174, "column": 14}}, {"id": 496, "type": "false", "text": "false", "parent": 493, "children": [], "start_point": {"row": 174, "column": 15}, "end_point": {"row": 174, "column": 20}}, {"id": 497, "type": "for_statement", "text": "for (i=1; i < DHT_PULSES; i++) {\n\t\t\t// If the high width is less than the threshold...\n\t\t\tif (highMicros[i] < threshold) {\n\t\t\t\tuint32_t lowHigh = lowMicros[i] + highMicros[i];\n\t\t\t\t// But the (low + high) width is equal to or more than the threshold...\n\t\t\t\tif (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t} else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "parent": 452, "children": [498, 502, 506], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 198, "column": 3}}, {"id": 498, "type": "assignment_expression", "text": "i=1", "parent": 497, "children": [499, 500, 501], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 10}}, {"id": 499, "type": "identifier", "text": "i", "parent": 498, "children": [], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 8}}, {"id": 500, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 9}}, {"id": 501, "type": "number_literal", "text": "1", "parent": 498, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 10}}, {"id": 502, "type": "binary_expression", "text": "i < DHT_PULSES", "parent": 497, "children": [503, 504, 505], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 26}}, {"id": 503, "type": "identifier", "text": "i", "parent": 502, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 504, "type": "<", "text": "<", "parent": 502, "children": [], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 15}}, {"id": 505, "type": "identifier", "text": "DHT_PULSES", "parent": 502, "children": [], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 26}}, {"id": 506, "type": "update_expression", "text": "i++", "parent": 497, "children": [507, 508], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 31}}, {"id": 507, "type": "identifier", "text": "i", "parent": 506, "children": [], "start_point": {"row": 175, "column": 28}, "end_point": {"row": 175, "column": 29}}, {"id": 508, "type": "++", "text": "++", "parent": 506, "children": [], "start_point": {"row": 175, "column": 29}, "end_point": {"row": 175, "column": 31}}, {"id": 509, "type": "if_statement", "text": "if (highMicros[i] < threshold) {\n\t\t\t\tuint32_t lowHigh = lowMicros[i] + highMicros[i];\n\t\t\t\t// But the (low + high) width is equal to or more than the threshold...\n\t\t\t\tif (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t} else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}", "parent": 497, "children": [510, 578], "start_point": {"row": 177, "column": 3}, "end_point": {"row": 197, "column": 4}}, {"id": 510, "type": "parenthesized_expression", "text": "(highMicros[i] < threshold)", "parent": 509, "children": [511], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 33}}, {"id": 511, "type": "binary_expression", "text": "highMicros[i] < threshold", "parent": 510, "children": [512, 515, 516], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 32}}, {"id": 512, "type": "subscript_expression", "text": "highMicros[i]", "parent": 511, "children": [513, 514], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 20}}, {"id": 513, "type": "identifier", "text": "highMicros", "parent": 512, "children": [], "start_point": {"row": 177, "column": 7}, "end_point": {"row": 177, "column": 17}}, {"id": 514, "type": "identifier", "text": "i", "parent": 512, "children": [], "start_point": {"row": 177, "column": 18}, "end_point": {"row": 177, "column": 19}}, {"id": 515, "type": "<", "text": "<", "parent": 511, "children": [], "start_point": {"row": 177, "column": 21}, "end_point": {"row": 177, "column": 22}}, {"id": 516, "type": "identifier", "text": "threshold", "parent": 511, "children": [], "start_point": {"row": 177, "column": 23}, "end_point": {"row": 177, "column": 32}}, {"id": 517, "type": "declaration", "text": "uint32_t lowHigh = lowMicros[i] + highMicros[i];", "parent": 509, "children": [518, 519], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 52}}, {"id": 518, "type": "primitive_type", "text": "uint32_t", "parent": 517, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 12}}, {"id": 519, "type": "init_declarator", "text": "lowHigh = lowMicros[i] + highMicros[i]", "parent": 517, "children": [520, 521, 522], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 51}}, {"id": 520, "type": "identifier", "text": "lowHigh", "parent": 519, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 20}}, {"id": 521, "type": "=", "text": "=", "parent": 519, "children": [], "start_point": {"row": 178, "column": 21}, "end_point": {"row": 178, "column": 22}}, {"id": 522, "type": "binary_expression", "text": "lowMicros[i] + highMicros[i]", "parent": 519, "children": [523, 526, 527], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 51}}, {"id": 523, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 522, "children": [524, 525], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 35}}, {"id": 524, "type": "identifier", "text": "lowMicros", "parent": 523, "children": [], "start_point": {"row": 178, "column": 23}, "end_point": {"row": 178, "column": 32}}, {"id": 525, "type": "identifier", "text": "i", "parent": 523, "children": [], "start_point": {"row": 178, "column": 33}, "end_point": {"row": 178, "column": 34}}, {"id": 526, "type": "+", "text": "+", "parent": 522, "children": [], "start_point": {"row": 178, "column": 36}, "end_point": {"row": 178, "column": 37}}, {"id": 527, "type": "subscript_expression", "text": "highMicros[i]", "parent": 522, "children": [528, 529], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 51}}, {"id": 528, "type": "identifier", "text": "highMicros", "parent": 527, "children": [], "start_point": {"row": 178, "column": 38}, "end_point": {"row": 178, "column": 48}}, {"id": 529, "type": "identifier", "text": "i", "parent": 527, "children": [], "start_point": {"row": 178, "column": 49}, "end_point": {"row": 178, "column": 50}}, {"id": 530, "type": "if_statement", "text": "if (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}", "parent": 509, "children": [531], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 186, "column": 5}}, {"id": 531, "type": "parenthesized_expression", "text": "(lowHigh >= lowHighThreshold)", "parent": 530, "children": [532], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 36}}, {"id": 532, "type": "binary_expression", "text": "lowHigh >= lowHighThreshold", "parent": 531, "children": [533, 534, 535], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 35}}, {"id": 533, "type": "identifier", "text": "lowHigh", "parent": 532, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 15}}, {"id": 534, "type": ">=", "text": ">=", "parent": 532, "children": [], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 18}}, {"id": 535, "type": "identifier", "text": "lowHighThreshold", "parent": 532, "children": [], "start_point": {"row": 180, "column": 19}, "end_point": {"row": 180, "column": 35}}, {"id": 536, "type": "call_expression", "text": "DHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold))", "parent": 530, "children": [537, 538], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 182, "column": 113}}, {"id": 537, "type": "identifier", "text": "DHT_READ_LOG", "parent": 536, "children": [], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 182, "column": 17}}, {"id": 538, "type": "argument_list", "text": "(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold))", "parent": 536, "children": [539, 541, 542, 545], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 113}}, {"id": 539, "type": "string_literal", "text": "\"Adjusting bit[%d] : %u -> %u\\n\"", "parent": 538, "children": [540], "start_point": {"row": 182, "column": 18}, "end_point": {"row": 182, "column": 50}}, {"id": 540, "type": "escape_sequence", "text": "\\n", "parent": 539, "children": [], "start_point": {"row": 182, "column": 47}, "end_point": {"row": 182, "column": 49}}, {"id": 541, "type": "identifier", "text": "i", "parent": 538, "children": [], "start_point": {"row": 182, "column": 52}, "end_point": {"row": 182, "column": 53}}, {"id": 542, "type": "subscript_expression", "text": "highMicros[i]", "parent": 538, "children": [543, 544], "start_point": {"row": 182, "column": 55}, "end_point": {"row": 182, "column": 68}}, {"id": 543, "type": "identifier", "text": "highMicros", "parent": 542, "children": [], "start_point": {"row": 182, "column": 55}, "end_point": {"row": 182, "column": 65}}, {"id": 544, "type": "identifier", "text": "i", "parent": 542, "children": [], "start_point": {"row": 182, "column": 66}, "end_point": {"row": 182, "column": 67}}, {"id": 545, "type": "parenthesized_expression", "text": "(highMicros[i] + lowMicros[i] - threshold)", "parent": 538, "children": [546], "start_point": {"row": 182, "column": 70}, "end_point": {"row": 182, "column": 112}}, {"id": 546, "type": "binary_expression", "text": "highMicros[i] + lowMicros[i] - threshold", "parent": 545, "children": [547, 555, 556], "start_point": {"row": 182, "column": 71}, "end_point": {"row": 182, "column": 111}}, {"id": 547, "type": "binary_expression", "text": "highMicros[i] + lowMicros[i]", "parent": 546, "children": [548, 551, 552], "start_point": {"row": 182, "column": 71}, "end_point": {"row": 182, "column": 99}}, {"id": 548, "type": "subscript_expression", "text": "highMicros[i]", "parent": 547, "children": [549, 550], "start_point": {"row": 182, "column": 71}, "end_point": {"row": 182, "column": 84}}, {"id": 549, "type": "identifier", "text": "highMicros", "parent": 548, "children": [], "start_point": {"row": 182, "column": 71}, "end_point": {"row": 182, "column": 81}}, {"id": 550, "type": "identifier", "text": "i", "parent": 548, "children": [], "start_point": {"row": 182, "column": 82}, "end_point": {"row": 182, "column": 83}}, {"id": 551, "type": "+", "text": "+", "parent": 547, "children": [], "start_point": {"row": 182, "column": 85}, "end_point": {"row": 182, "column": 86}}, {"id": 552, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 547, "children": [553, 554], "start_point": {"row": 182, "column": 87}, "end_point": {"row": 182, "column": 99}}, {"id": 553, "type": "identifier", "text": "lowMicros", "parent": 552, "children": [], "start_point": {"row": 182, "column": 87}, "end_point": {"row": 182, "column": 96}}, {"id": 554, "type": "identifier", "text": "i", "parent": 552, "children": [], "start_point": {"row": 182, "column": 97}, "end_point": {"row": 182, "column": 98}}, {"id": 555, "type": "-", "text": "-", "parent": 546, "children": [], "start_point": {"row": 182, "column": 100}, "end_point": {"row": 182, "column": 101}}, {"id": 556, "type": "identifier", "text": "threshold", "parent": 546, "children": [], "start_point": {"row": 182, "column": 102}, "end_point": {"row": 182, "column": 111}}, {"id": 557, "type": "assignment_expression", "text": "highMicros[i] += lowMicros[i] - threshold", "parent": 530, "children": [558, 561, 562], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 46}}, {"id": 558, "type": "subscript_expression", "text": "highMicros[i]", "parent": 557, "children": [559, 560], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 18}}, {"id": 559, "type": "identifier", "text": "highMicros", "parent": 558, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 15}}, {"id": 560, "type": "identifier", "text": "i", "parent": 558, "children": [], "start_point": {"row": 183, "column": 16}, "end_point": {"row": 183, "column": 17}}, {"id": 561, "type": "+=", "text": "+=", "parent": 557, "children": [], "start_point": {"row": 183, "column": 19}, "end_point": {"row": 183, "column": 21}}, {"id": 562, "type": "binary_expression", "text": "lowMicros[i] - threshold", "parent": 557, "children": [563, 566, 567], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 46}}, {"id": 563, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 562, "children": [564, 565], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 34}}, {"id": 564, "type": "identifier", "text": "lowMicros", "parent": 563, "children": [], "start_point": {"row": 183, "column": 22}, "end_point": {"row": 183, "column": 31}}, {"id": 565, "type": "identifier", "text": "i", "parent": 563, "children": [], "start_point": {"row": 183, "column": 32}, "end_point": {"row": 183, "column": 33}}, {"id": 566, "type": "-", "text": "-", "parent": 562, "children": [], "start_point": {"row": 183, "column": 35}, "end_point": {"row": 183, "column": 36}}, {"id": 567, "type": "identifier", "text": "threshold", "parent": 562, "children": [], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 46}}, {"id": 568, "type": "assignment_expression", "text": "lowMicros[i] = threshold", "parent": 530, "children": [569, 572, 573], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 29}}, {"id": 569, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 568, "children": [570, 571], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 17}}, {"id": 570, "type": "identifier", "text": "lowMicros", "parent": 569, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 14}}, {"id": 571, "type": "identifier", "text": "i", "parent": 569, "children": [], "start_point": {"row": 184, "column": 15}, "end_point": {"row": 184, "column": 16}}, {"id": 572, "type": "=", "text": "=", "parent": 568, "children": [], "start_point": {"row": 184, "column": 18}, "end_point": {"row": 184, "column": 19}}, {"id": 573, "type": "identifier", "text": "threshold", "parent": 568, "children": [], "start_point": {"row": 184, "column": 20}, "end_point": {"row": 184, "column": 29}}, {"id": 574, "type": "assignment_expression", "text": "needAdjust = true", "parent": 530, "children": [575, 576, 577], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 22}}, {"id": 575, "type": "identifier", "text": "needAdjust", "parent": 574, "children": [], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 15}}, {"id": 576, "type": "=", "text": "=", "parent": 574, "children": [], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 17}}, {"id": 577, "type": "true", "text": "true", "parent": 574, "children": [], "start_point": {"row": 185, "column": 18}, "end_point": {"row": 185, "column": 22}}, {"id": 578, "type": "else_clause", "text": "else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}", "parent": 509, "children": [], "start_point": {"row": 187, "column": 5}, "end_point": {"row": 197, "column": 4}}, {"id": 579, "type": "declaration", "text": "uint32_t lowHigh = highMicros[i] + lowMicros[i+1];", "parent": 578, "children": [580, 581], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 54}}, {"id": 580, "type": "primitive_type", "text": "uint32_t", "parent": 579, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 12}}, {"id": 581, "type": "init_declarator", "text": "lowHigh = highMicros[i] + lowMicros[i+1]", "parent": 579, "children": [582, 583, 584], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 53}}, {"id": 582, "type": "identifier", "text": "lowHigh", "parent": 581, "children": [], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 20}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 22}}, {"id": 584, "type": "binary_expression", "text": "highMicros[i] + lowMicros[i+1]", "parent": 581, "children": [585, 588, 589], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 53}}, {"id": 585, "type": "subscript_expression", "text": "highMicros[i]", "parent": 584, "children": [586, 587], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 36}}, {"id": 586, "type": "identifier", "text": "highMicros", "parent": 585, "children": [], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 33}}, {"id": 587, "type": "identifier", "text": "i", "parent": 585, "children": [], "start_point": {"row": 188, "column": 34}, "end_point": {"row": 188, "column": 35}}, {"id": 588, "type": "+", "text": "+", "parent": 584, "children": [], "start_point": {"row": 188, "column": 37}, "end_point": {"row": 188, "column": 38}}, {"id": 589, "type": "subscript_expression", "text": "lowMicros[i+1]", "parent": 584, "children": [590, 591], "start_point": {"row": 188, "column": 39}, "end_point": {"row": 188, "column": 53}}, {"id": 590, "type": "identifier", "text": "lowMicros", "parent": 589, "children": [], "start_point": {"row": 188, "column": 39}, "end_point": {"row": 188, "column": 48}}, {"id": 591, "type": "binary_expression", "text": "i+1", "parent": 589, "children": [592, 593, 594], "start_point": {"row": 188, "column": 49}, "end_point": {"row": 188, "column": 52}}, {"id": 592, "type": "identifier", "text": "i", "parent": 591, "children": [], "start_point": {"row": 188, "column": 49}, "end_point": {"row": 188, "column": 50}}, {"id": 593, "type": "+", "text": "+", "parent": 591, "children": [], "start_point": {"row": 188, "column": 50}, "end_point": {"row": 188, "column": 51}}, {"id": 594, "type": "number_literal", "text": "1", "parent": 591, "children": [], "start_point": {"row": 188, "column": 51}, "end_point": {"row": 188, "column": 52}}, {"id": 595, "type": "if_statement", "text": "if (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}", "parent": 578, "children": [596], "start_point": {"row": 190, "column": 4}, "end_point": {"row": 196, "column": 5}}, {"id": 596, "type": "parenthesized_expression", "text": "(lowHigh < lowHighThreshold)", "parent": 595, "children": [597], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 35}}, {"id": 597, "type": "binary_expression", "text": "lowHigh < lowHighThreshold", "parent": 596, "children": [598, 599, 600], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 34}}, {"id": 598, "type": "identifier", "text": "lowHigh", "parent": 597, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 15}}, {"id": 599, "type": "<", "text": "<", "parent": 597, "children": [], "start_point": {"row": 190, "column": 16}, "end_point": {"row": 190, "column": 17}}, {"id": 600, "type": "identifier", "text": "lowHighThreshold", "parent": 597, "children": [], "start_point": {"row": 190, "column": 18}, "end_point": {"row": 190, "column": 34}}, {"id": 601, "type": "call_expression", "text": "DHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold))", "parent": 595, "children": [602, 603], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 115}}, {"id": 602, "type": "identifier", "text": "DHT_READ_LOG", "parent": 601, "children": [], "start_point": {"row": 192, "column": 5}, "end_point": {"row": 192, "column": 17}}, {"id": 603, "type": "argument_list", "text": "(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold))", "parent": 601, "children": [604, 606, 607, 610], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 115}}, {"id": 604, "type": "string_literal", "text": "\"Adjusting bit[%d] : %u -> %u\\n\"", "parent": 603, "children": [605], "start_point": {"row": 192, "column": 18}, "end_point": {"row": 192, "column": 50}}, {"id": 605, "type": "escape_sequence", "text": "\\n", "parent": 604, "children": [], "start_point": {"row": 192, "column": 47}, "end_point": {"row": 192, "column": 49}}, {"id": 606, "type": "identifier", "text": "i", "parent": 603, "children": [], "start_point": {"row": 192, "column": 52}, "end_point": {"row": 192, "column": 53}}, {"id": 607, "type": "subscript_expression", "text": "highMicros[i]", "parent": 603, "children": [608, 609], "start_point": {"row": 192, "column": 55}, "end_point": {"row": 192, "column": 68}}, {"id": 608, "type": "identifier", "text": "highMicros", "parent": 607, "children": [], "start_point": {"row": 192, "column": 55}, "end_point": {"row": 192, "column": 65}}, {"id": 609, "type": "identifier", "text": "i", "parent": 607, "children": [], "start_point": {"row": 192, "column": 66}, "end_point": {"row": 192, "column": 67}}, {"id": 610, "type": "parenthesized_expression", "text": "(highMicros[i] + lowMicros[i+1] - threshold)", "parent": 603, "children": [611], "start_point": {"row": 192, "column": 70}, "end_point": {"row": 192, "column": 114}}, {"id": 611, "type": "binary_expression", "text": "highMicros[i] + lowMicros[i+1] - threshold", "parent": 610, "children": [612, 623, 624], "start_point": {"row": 192, "column": 71}, "end_point": {"row": 192, "column": 113}}, {"id": 612, "type": "binary_expression", "text": "highMicros[i] + lowMicros[i+1]", "parent": 611, "children": [613, 616, 617], "start_point": {"row": 192, "column": 71}, "end_point": {"row": 192, "column": 101}}, {"id": 613, "type": "subscript_expression", "text": "highMicros[i]", "parent": 612, "children": [614, 615], "start_point": {"row": 192, "column": 71}, "end_point": {"row": 192, "column": 84}}, {"id": 614, "type": "identifier", "text": "highMicros", "parent": 613, "children": [], "start_point": {"row": 192, "column": 71}, "end_point": {"row": 192, "column": 81}}, {"id": 615, "type": "identifier", "text": "i", "parent": 613, "children": [], "start_point": {"row": 192, "column": 82}, "end_point": {"row": 192, "column": 83}}, {"id": 616, "type": "+", "text": "+", "parent": 612, "children": [], "start_point": {"row": 192, "column": 85}, "end_point": {"row": 192, "column": 86}}, {"id": 617, "type": "subscript_expression", "text": "lowMicros[i+1]", "parent": 612, "children": [618, 619], "start_point": {"row": 192, "column": 87}, "end_point": {"row": 192, "column": 101}}, {"id": 618, "type": "identifier", "text": "lowMicros", "parent": 617, "children": [], "start_point": {"row": 192, "column": 87}, "end_point": {"row": 192, "column": 96}}, {"id": 619, "type": "binary_expression", "text": "i+1", "parent": 617, "children": [620, 621, 622], "start_point": {"row": 192, "column": 97}, "end_point": {"row": 192, "column": 100}}, {"id": 620, "type": "identifier", "text": "i", "parent": 619, "children": [], "start_point": {"row": 192, "column": 97}, "end_point": {"row": 192, "column": 98}}, {"id": 621, "type": "+", "text": "+", "parent": 619, "children": [], "start_point": {"row": 192, "column": 98}, "end_point": {"row": 192, "column": 99}}, {"id": 622, "type": "number_literal", "text": "1", "parent": 619, "children": [], "start_point": {"row": 192, "column": 99}, "end_point": {"row": 192, "column": 100}}, {"id": 623, "type": "-", "text": "-", "parent": 611, "children": [], "start_point": {"row": 192, "column": 102}, "end_point": {"row": 192, "column": 103}}, {"id": 624, "type": "identifier", "text": "threshold", "parent": 611, "children": [], "start_point": {"row": 192, "column": 104}, "end_point": {"row": 192, "column": 113}}, {"id": 625, "type": "assignment_expression", "text": "highMicros[i] += lowMicros[i+1] - threshold", "parent": 595, "children": [626, 629, 630], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 48}}, {"id": 626, "type": "subscript_expression", "text": "highMicros[i]", "parent": 625, "children": [627, 628], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 18}}, {"id": 627, "type": "identifier", "text": "highMicros", "parent": 626, "children": [], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 15}}, {"id": 628, "type": "identifier", "text": "i", "parent": 626, "children": [], "start_point": {"row": 193, "column": 16}, "end_point": {"row": 193, "column": 17}}, {"id": 629, "type": "+=", "text": "+=", "parent": 625, "children": [], "start_point": {"row": 193, "column": 19}, "end_point": {"row": 193, "column": 21}}, {"id": 630, "type": "binary_expression", "text": "lowMicros[i+1] - threshold", "parent": 625, "children": [631, 637, 638], "start_point": {"row": 193, "column": 22}, "end_point": {"row": 193, "column": 48}}, {"id": 631, "type": "subscript_expression", "text": "lowMicros[i+1]", "parent": 630, "children": [632, 633], "start_point": {"row": 193, "column": 22}, "end_point": {"row": 193, "column": 36}}, {"id": 632, "type": "identifier", "text": "lowMicros", "parent": 631, "children": [], "start_point": {"row": 193, "column": 22}, "end_point": {"row": 193, "column": 31}}, {"id": 633, "type": "binary_expression", "text": "i+1", "parent": 631, "children": [634, 635, 636], "start_point": {"row": 193, "column": 32}, "end_point": {"row": 193, "column": 35}}, {"id": 634, "type": "identifier", "text": "i", "parent": 633, "children": [], "start_point": {"row": 193, "column": 32}, "end_point": {"row": 193, "column": 33}}, {"id": 635, "type": "+", "text": "+", "parent": 633, "children": [], "start_point": {"row": 193, "column": 33}, "end_point": {"row": 193, "column": 34}}, {"id": 636, "type": "number_literal", "text": "1", "parent": 633, "children": [], "start_point": {"row": 193, "column": 34}, "end_point": {"row": 193, "column": 35}}, {"id": 637, "type": "-", "text": "-", "parent": 630, "children": [], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 38}}, {"id": 638, "type": "identifier", "text": "threshold", "parent": 630, "children": [], "start_point": {"row": 193, "column": 39}, "end_point": {"row": 193, "column": 48}}, {"id": 639, "type": "assignment_expression", "text": "lowMicros[i+1] = threshold", "parent": 595, "children": [640, 646, 647], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 31}}, {"id": 640, "type": "subscript_expression", "text": "lowMicros[i+1]", "parent": 639, "children": [641, 642], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 19}}, {"id": 641, "type": "identifier", "text": "lowMicros", "parent": 640, "children": [], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 14}}, {"id": 642, "type": "binary_expression", "text": "i+1", "parent": 640, "children": [643, 644, 645], "start_point": {"row": 194, "column": 15}, "end_point": {"row": 194, "column": 18}}, {"id": 643, "type": "identifier", "text": "i", "parent": 642, "children": [], "start_point": {"row": 194, "column": 15}, "end_point": {"row": 194, "column": 16}}, {"id": 644, "type": "+", "text": "+", "parent": 642, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 17}}, {"id": 645, "type": "number_literal", "text": "1", "parent": 642, "children": [], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 18}}, {"id": 646, "type": "=", "text": "=", "parent": 639, "children": [], "start_point": {"row": 194, "column": 20}, "end_point": {"row": 194, "column": 21}}, {"id": 647, "type": "identifier", "text": "threshold", "parent": 639, "children": [], "start_point": {"row": 194, "column": 22}, "end_point": {"row": 194, "column": 31}}, {"id": 648, "type": "assignment_expression", "text": "needAdjust = true", "parent": 595, "children": [649, 650, 651], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 22}}, {"id": 649, "type": "identifier", "text": "needAdjust", "parent": 648, "children": [], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 15}}, {"id": 650, "type": "=", "text": "=", "parent": 648, "children": [], "start_point": {"row": 195, "column": 16}, "end_point": {"row": 195, "column": 17}}, {"id": 651, "type": "true", "text": "true", "parent": 648, "children": [], "start_point": {"row": 195, "column": 18}, "end_point": {"row": 195, "column": 22}}, {"id": 652, "type": "declaration", "text": "uint8_t data[DHT_BYTES] = {0};", "parent": 207, "children": [653, 654], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 31}}, {"id": 653, "type": "primitive_type", "text": "uint8_t", "parent": 652, "children": [], "start_point": {"row": 204, "column": 1}, "end_point": {"row": 204, "column": 8}}, {"id": 654, "type": "init_declarator", "text": "data[DHT_BYTES] = {0}", "parent": 652, "children": [655, 658, 659], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 30}}, {"id": 655, "type": "array_declarator", "text": "data[DHT_BYTES]", "parent": 654, "children": [656, 657], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 24}}, {"id": 656, "type": "identifier", "text": "data", "parent": 655, "children": [], "start_point": {"row": 204, "column": 9}, "end_point": {"row": 204, "column": 13}}, {"id": 657, "type": "identifier", "text": "DHT_BYTES", "parent": 655, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 23}}, {"id": 658, "type": "=", "text": "=", "parent": 654, "children": [], "start_point": {"row": 204, "column": 25}, "end_point": {"row": 204, "column": 26}}, {"id": 659, "type": "initializer_list", "text": "{0}", "parent": 654, "children": [660], "start_point": {"row": 204, "column": 27}, "end_point": {"row": 204, "column": 30}}, {"id": 660, "type": "number_literal", "text": "0", "parent": 659, "children": [], "start_point": {"row": 204, "column": 28}, "end_point": {"row": 204, "column": 29}}, {"id": 661, "type": "for_statement", "text": "for (i=1; i < DHT_PULSES; i++) {\n\t\tint index = (i-1)/8;\n\t\tdata[index] <<= 1;\n\t\tif (highMicros[i] >= threshold) {\n\t\t\t// One bit for long pulse.\n\t\t\tdata[index] |= 1;\n\t\t}\n\t\t// Else zero bit for short pulse.\n\t}", "parent": 207, "children": [662, 666, 670], "start_point": {"row": 205, "column": 1}, "end_point": {"row": 213, "column": 2}}, {"id": 662, "type": "assignment_expression", "text": "i=1", "parent": 661, "children": [663, 664, 665], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 9}}, {"id": 663, "type": "identifier", "text": "i", "parent": 662, "children": [], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 7}}, {"id": 664, "type": "=", "text": "=", "parent": 662, "children": [], "start_point": {"row": 205, "column": 7}, "end_point": {"row": 205, "column": 8}}, {"id": 665, "type": "number_literal", "text": "1", "parent": 662, "children": [], "start_point": {"row": 205, "column": 8}, "end_point": {"row": 205, "column": 9}}, {"id": 666, "type": "binary_expression", "text": "i < DHT_PULSES", "parent": 661, "children": [667, 668, 669], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 25}}, {"id": 667, "type": "identifier", "text": "i", "parent": 666, "children": [], "start_point": {"row": 205, "column": 11}, "end_point": {"row": 205, "column": 12}}, {"id": 668, "type": "<", "text": "<", "parent": 666, "children": [], "start_point": {"row": 205, "column": 13}, "end_point": {"row": 205, "column": 14}}, {"id": 669, "type": "identifier", "text": "DHT_PULSES", "parent": 666, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 25}}, {"id": 670, "type": "update_expression", "text": "i++", "parent": 661, "children": [671, 672], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 30}}, {"id": 671, "type": "identifier", "text": "i", "parent": 670, "children": [], "start_point": {"row": 205, "column": 27}, "end_point": {"row": 205, "column": 28}}, {"id": 672, "type": "++", "text": "++", "parent": 670, "children": [], "start_point": {"row": 205, "column": 28}, "end_point": {"row": 205, "column": 30}}, {"id": 673, "type": "declaration", "text": "int index = (i-1)/8;", "parent": 661, "children": [674, 675], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 22}}, {"id": 674, "type": "primitive_type", "text": "int", "parent": 673, "children": [], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 5}}, {"id": 675, "type": "init_declarator", "text": "index = (i-1)/8", "parent": 673, "children": [676, 677, 678], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 21}}, {"id": 676, "type": "identifier", "text": "index", "parent": 675, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 11}}, {"id": 677, "type": "=", "text": "=", "parent": 675, "children": [], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 13}}, {"id": 678, "type": "binary_expression", "text": "(i-1)/8", "parent": 675, "children": [679, 684, 685], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 21}}, {"id": 679, "type": "parenthesized_expression", "text": "(i-1)", "parent": 678, "children": [680], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 19}}, {"id": 680, "type": "binary_expression", "text": "i-1", "parent": 679, "children": [681, 682, 683], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 18}}, {"id": 681, "type": "identifier", "text": "i", "parent": 680, "children": [], "start_point": {"row": 206, "column": 15}, "end_point": {"row": 206, "column": 16}}, {"id": 682, "type": "-", "text": "-", "parent": 680, "children": [], "start_point": {"row": 206, "column": 16}, "end_point": {"row": 206, "column": 17}}, {"id": 683, "type": "number_literal", "text": "1", "parent": 680, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 18}}, {"id": 684, "type": "/", "text": "/", "parent": 678, "children": [], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 20}}, {"id": 685, "type": "number_literal", "text": "8", "parent": 678, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 21}}, {"id": 686, "type": "assignment_expression", "text": "data[index] <<= 1", "parent": 661, "children": [687, 690, 691], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 19}}, {"id": 687, "type": "subscript_expression", "text": "data[index]", "parent": 686, "children": [688, 689], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 13}}, {"id": 688, "type": "identifier", "text": "data", "parent": 687, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 6}}, {"id": 689, "type": "identifier", "text": "index", "parent": 687, "children": [], "start_point": {"row": 207, "column": 7}, "end_point": {"row": 207, "column": 12}}, {"id": 690, "type": "<<=", "text": "<<=", "parent": 686, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 17}}, {"id": 691, "type": "number_literal", "text": "1", "parent": 686, "children": [], "start_point": {"row": 207, "column": 18}, "end_point": {"row": 207, "column": 19}}, {"id": 692, "type": "if_statement", "text": "if (highMicros[i] >= threshold) {\n\t\t\t// One bit for long pulse.\n\t\t\tdata[index] |= 1;\n\t\t}", "parent": 661, "children": [693], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 211, "column": 3}}, {"id": 693, "type": "parenthesized_expression", "text": "(highMicros[i] >= threshold)", "parent": 692, "children": [694], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 33}}, {"id": 694, "type": "binary_expression", "text": "highMicros[i] >= threshold", "parent": 693, "children": [695, 698, 699], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 32}}, {"id": 695, "type": "subscript_expression", "text": "highMicros[i]", "parent": 694, "children": [696, 697], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 19}}, {"id": 696, "type": "identifier", "text": "highMicros", "parent": 695, "children": [], "start_point": {"row": 208, "column": 6}, "end_point": {"row": 208, "column": 16}}, {"id": 697, "type": "identifier", "text": "i", "parent": 695, "children": [], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 18}}, {"id": 698, "type": ">=", "text": ">=", "parent": 694, "children": [], "start_point": {"row": 208, "column": 20}, "end_point": {"row": 208, "column": 22}}, {"id": 699, "type": "identifier", "text": "threshold", "parent": 694, "children": [], "start_point": {"row": 208, "column": 23}, "end_point": {"row": 208, "column": 32}}, {"id": 700, "type": "assignment_expression", "text": "data[index] |= 1", "parent": 692, "children": [701, 704, 705], "start_point": {"row": 210, "column": 3}, "end_point": {"row": 210, "column": 19}}, {"id": 701, "type": "subscript_expression", "text": "data[index]", "parent": 700, "children": [702, 703], "start_point": {"row": 210, "column": 3}, "end_point": {"row": 210, "column": 14}}, {"id": 702, "type": "identifier", "text": "data", "parent": 701, "children": [], "start_point": {"row": 210, "column": 3}, "end_point": {"row": 210, "column": 7}}, {"id": 703, "type": "identifier", "text": "index", "parent": 701, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 13}}, {"id": 704, "type": "|=", "text": "|=", "parent": 700, "children": [], "start_point": {"row": 210, "column": 15}, "end_point": {"row": 210, "column": 17}}, {"id": 705, "type": "number_literal", "text": "1", "parent": 700, "children": [], "start_point": {"row": 210, "column": 18}, "end_point": {"row": 210, "column": 19}}, {"id": 706, "type": "if_statement", "text": "if (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n\t\tDHT_READ_LOG(\"Checksum error\\n\");\n\t\tfor (i=0; i <DHT_PULSES; i++) DHT_READ_LOG(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i]);\n\t\tDHT_READ_LOG(\"%2d,%4u\\n\", DHT_PULSES, lowMicros[DHT_PULSES]);\n\t\treturn 0;\n\t}", "parent": 207, "children": [707], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 224, "column": 2}}, {"id": 707, "type": "parenthesized_expression", "text": "(data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF))", "parent": 706, "children": [708], "start_point": {"row": 219, "column": 4}, "end_point": {"row": 219, "column": 65}}, {"id": 708, "type": "binary_expression", "text": "data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)", "parent": 707, "children": [709, 712, 713], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 64}}, {"id": 709, "type": "subscript_expression", "text": "data[4]", "parent": 708, "children": [710, 711], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 12}}, {"id": 710, "type": "identifier", "text": "data", "parent": 709, "children": [], "start_point": {"row": 219, "column": 5}, "end_point": {"row": 219, "column": 9}}, {"id": 711, "type": "number_literal", "text": "4", "parent": 709, "children": [], "start_point": {"row": 219, "column": 10}, "end_point": {"row": 219, "column": 11}}, {"id": 712, "type": "!=", "text": "!=", "parent": 708, "children": [], "start_point": {"row": 219, "column": 13}, "end_point": {"row": 219, "column": 15}}, {"id": 713, "type": "parenthesized_expression", "text": "((data[0] + data[1] + data[2] + data[3]) & 0xFF)", "parent": 708, "children": [714], "start_point": {"row": 219, "column": 16}, "end_point": {"row": 219, "column": 64}}, {"id": 714, "type": "binary_expression", "text": "(data[0] + data[1] + data[2] + data[3]) & 0xFF", "parent": 713, "children": [715, 734], "start_point": {"row": 219, "column": 17}, "end_point": {"row": 219, "column": 63}}, {"id": 715, "type": "parenthesized_expression", "text": "(data[0] + data[1] + data[2] + data[3])", "parent": 714, "children": [716], "start_point": {"row": 219, "column": 17}, "end_point": {"row": 219, "column": 56}}, {"id": 716, "type": "binary_expression", "text": "data[0] + data[1] + data[2] + data[3]", "parent": 715, "children": [717, 730, 731], "start_point": {"row": 219, "column": 18}, "end_point": {"row": 219, "column": 55}}, {"id": 717, "type": "binary_expression", "text": "data[0] + data[1] + data[2]", "parent": 716, "children": [718, 726, 727], "start_point": {"row": 219, "column": 18}, "end_point": {"row": 219, "column": 45}}, {"id": 718, "type": "binary_expression", "text": "data[0] + data[1]", "parent": 717, "children": [719, 722, 723], "start_point": {"row": 219, "column": 18}, "end_point": {"row": 219, "column": 35}}, {"id": 719, "type": "subscript_expression", "text": "data[0]", "parent": 718, "children": [720, 721], "start_point": {"row": 219, "column": 18}, "end_point": {"row": 219, "column": 25}}, {"id": 720, "type": "identifier", "text": "data", "parent": 719, "children": [], "start_point": {"row": 219, "column": 18}, "end_point": {"row": 219, "column": 22}}, {"id": 721, "type": "number_literal", "text": "0", "parent": 719, "children": [], "start_point": {"row": 219, "column": 23}, "end_point": {"row": 219, "column": 24}}, {"id": 722, "type": "+", "text": "+", "parent": 718, "children": [], "start_point": {"row": 219, "column": 26}, "end_point": {"row": 219, "column": 27}}, {"id": 723, "type": "subscript_expression", "text": "data[1]", "parent": 718, "children": [724, 725], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 35}}, {"id": 724, "type": "identifier", "text": "data", "parent": 723, "children": [], "start_point": {"row": 219, "column": 28}, "end_point": {"row": 219, "column": 32}}, {"id": 725, "type": "number_literal", "text": "1", "parent": 723, "children": [], "start_point": {"row": 219, "column": 33}, "end_point": {"row": 219, "column": 34}}, {"id": 726, "type": "+", "text": "+", "parent": 717, "children": [], "start_point": {"row": 219, "column": 36}, "end_point": {"row": 219, "column": 37}}, {"id": 727, "type": "subscript_expression", "text": "data[2]", "parent": 717, "children": [728, 729], "start_point": {"row": 219, "column": 38}, "end_point": {"row": 219, "column": 45}}, {"id": 728, "type": "identifier", "text": "data", "parent": 727, "children": [], "start_point": {"row": 219, "column": 38}, "end_point": {"row": 219, "column": 42}}, {"id": 729, "type": "number_literal", "text": "2", "parent": 727, "children": [], "start_point": {"row": 219, "column": 43}, "end_point": {"row": 219, "column": 44}}, {"id": 730, "type": "+", "text": "+", "parent": 716, "children": [], "start_point": {"row": 219, "column": 46}, "end_point": {"row": 219, "column": 47}}, {"id": 731, "type": "subscript_expression", "text": "data[3]", "parent": 716, "children": [732, 733], "start_point": {"row": 219, "column": 48}, "end_point": {"row": 219, "column": 55}}, {"id": 732, "type": "identifier", "text": "data", "parent": 731, "children": [], "start_point": {"row": 219, "column": 48}, "end_point": {"row": 219, "column": 52}}, {"id": 733, "type": "number_literal", "text": "3", "parent": 731, "children": [], "start_point": {"row": 219, "column": 53}, "end_point": {"row": 219, "column": 54}}, {"id": 734, "type": "number_literal", "text": "0xFF", "parent": 714, "children": [], "start_point": {"row": 219, "column": 59}, "end_point": {"row": 219, "column": 63}}, {"id": 735, "type": "call_expression", "text": "DHT_READ_LOG(\"Checksum error\\n\")", "parent": 706, "children": [736, 737], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 34}}, {"id": 736, "type": "identifier", "text": "DHT_READ_LOG", "parent": 735, "children": [], "start_point": {"row": 220, "column": 2}, "end_point": {"row": 220, "column": 14}}, {"id": 737, "type": "argument_list", "text": "(\"Checksum error\\n\")", "parent": 735, "children": [738], "start_point": {"row": 220, "column": 14}, "end_point": {"row": 220, "column": 34}}, {"id": 738, "type": "string_literal", "text": "\"Checksum error\\n\"", "parent": 737, "children": [739], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 33}}, {"id": 739, "type": "escape_sequence", "text": "\\n", "parent": 738, "children": [], "start_point": {"row": 220, "column": 30}, "end_point": {"row": 220, "column": 32}}, {"id": 740, "type": "for_statement", "text": "for (i=0; i <DHT_PULSES; i++) DHT_READ_LOG(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i]);", "parent": 706, "children": [741, 745, 749], "start_point": {"row": 221, "column": 2}, "end_point": {"row": 221, "column": 94}}, {"id": 741, "type": "assignment_expression", "text": "i=0", "parent": 740, "children": [742, 743, 744], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 10}}, {"id": 742, "type": "identifier", "text": "i", "parent": 741, "children": [], "start_point": {"row": 221, "column": 7}, "end_point": {"row": 221, "column": 8}}, {"id": 743, "type": "=", "text": "=", "parent": 741, "children": [], "start_point": {"row": 221, "column": 8}, "end_point": {"row": 221, "column": 9}}, {"id": 744, "type": "number_literal", "text": "0", "parent": 741, "children": [], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 10}}, {"id": 745, "type": "binary_expression", "text": "i <DHT_PULSES", "parent": 740, "children": [746, 747, 748], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 25}}, {"id": 746, "type": "identifier", "text": "i", "parent": 745, "children": [], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 13}}, {"id": 747, "type": "<", "text": "<", "parent": 745, "children": [], "start_point": {"row": 221, "column": 14}, "end_point": {"row": 221, "column": 15}}, {"id": 748, "type": "identifier", "text": "DHT_PULSES", "parent": 745, "children": [], "start_point": {"row": 221, "column": 15}, "end_point": {"row": 221, "column": 25}}, {"id": 749, "type": "update_expression", "text": "i++", "parent": 740, "children": [750, 751], "start_point": {"row": 221, "column": 27}, "end_point": {"row": 221, "column": 30}}, {"id": 750, "type": "identifier", "text": "i", "parent": 749, "children": [], "start_point": {"row": 221, "column": 27}, "end_point": {"row": 221, "column": 28}}, {"id": 751, "type": "++", "text": "++", "parent": 749, "children": [], "start_point": {"row": 221, "column": 28}, "end_point": {"row": 221, "column": 30}}, {"id": 752, "type": "call_expression", "text": "DHT_READ_LOG(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i])", "parent": 740, "children": [753, 754], "start_point": {"row": 221, "column": 32}, "end_point": {"row": 221, "column": 93}}, {"id": 753, "type": "identifier", "text": "DHT_READ_LOG", "parent": 752, "children": [], "start_point": {"row": 221, "column": 32}, "end_point": {"row": 221, "column": 44}}, {"id": 754, "type": "argument_list", "text": "(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i])", "parent": 752, "children": [755, 757, 758, 761], "start_point": {"row": 221, "column": 44}, "end_point": {"row": 221, "column": 93}}, {"id": 755, "type": "string_literal", "text": "\"%2d,%4u,%4u\\n\"", "parent": 754, "children": [756], "start_point": {"row": 221, "column": 45}, "end_point": {"row": 221, "column": 60}}, {"id": 756, "type": "escape_sequence", "text": "\\n", "parent": 755, "children": [], "start_point": {"row": 221, "column": 57}, "end_point": {"row": 221, "column": 59}}, {"id": 757, "type": "identifier", "text": "i", "parent": 754, "children": [], "start_point": {"row": 221, "column": 62}, "end_point": {"row": 221, "column": 63}}, {"id": 758, "type": "subscript_expression", "text": "lowMicros[i]", "parent": 754, "children": [759, 760], "start_point": {"row": 221, "column": 65}, "end_point": {"row": 221, "column": 77}}, {"id": 759, "type": "identifier", "text": "lowMicros", "parent": 758, "children": [], "start_point": {"row": 221, "column": 65}, "end_point": {"row": 221, "column": 74}}, {"id": 760, "type": "identifier", "text": "i", "parent": 758, "children": [], "start_point": {"row": 221, "column": 75}, "end_point": {"row": 221, "column": 76}}, {"id": 761, "type": "subscript_expression", "text": "highMicros[i]", "parent": 754, "children": [762, 763], "start_point": {"row": 221, "column": 79}, "end_point": {"row": 221, "column": 92}}, {"id": 762, "type": "identifier", "text": "highMicros", "parent": 761, "children": [], "start_point": {"row": 221, "column": 79}, "end_point": {"row": 221, "column": 89}}, {"id": 763, "type": "identifier", "text": "i", "parent": 761, "children": [], "start_point": {"row": 221, "column": 90}, "end_point": {"row": 221, "column": 91}}, {"id": 764, "type": "call_expression", "text": "DHT_READ_LOG(\"%2d,%4u\\n\", DHT_PULSES, lowMicros[DHT_PULSES])", "parent": 706, "children": [765, 766], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 62}}, {"id": 765, "type": "identifier", "text": "DHT_READ_LOG", "parent": 764, "children": [], "start_point": {"row": 222, "column": 2}, "end_point": {"row": 222, "column": 14}}, {"id": 766, "type": "argument_list", "text": "(\"%2d,%4u\\n\", DHT_PULSES, lowMicros[DHT_PULSES])", "parent": 764, "children": [767, 769, 770], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 62}}, {"id": 767, "type": "string_literal", "text": "\"%2d,%4u\\n\"", "parent": 766, "children": [768], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 26}}, {"id": 768, "type": "escape_sequence", "text": "\\n", "parent": 767, "children": [], "start_point": {"row": 222, "column": 23}, "end_point": {"row": 222, "column": 25}}, {"id": 769, "type": "identifier", "text": "DHT_PULSES", "parent": 766, "children": [], "start_point": {"row": 222, "column": 28}, "end_point": {"row": 222, "column": 38}}, {"id": 770, "type": "subscript_expression", "text": "lowMicros[DHT_PULSES]", "parent": 766, "children": [771, 772], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 61}}, {"id": 771, "type": "identifier", "text": "lowMicros", "parent": 770, "children": [], "start_point": {"row": 222, "column": 40}, "end_point": {"row": 222, "column": 49}}, {"id": 772, "type": "identifier", "text": "DHT_PULSES", "parent": 770, "children": [], "start_point": {"row": 222, "column": 50}, "end_point": {"row": 222, "column": 60}}, {"id": 773, "type": "return_statement", "text": "return 0;", "parent": 706, "children": [774], "start_point": {"row": 223, "column": 2}, "end_point": {"row": 223, "column": 11}}, {"id": 774, "type": "number_literal", "text": "0", "parent": 773, "children": [], "start_point": {"row": 223, "column": 9}, "end_point": {"row": 223, "column": 10}}, {"id": 775, "type": "if_statement", "text": "if (type == DHT11) {\n\t\t// Get humidity and temp for DHT11 sensor.\n\t\t*pHumidity = (float)data[0];\n\t\t*pTemperature = (float)data[2];\n\t} else if (type == DHT22) {\n\t\t// Calculate humidity and temp for DHT22 sensor.\n\t\t*pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n\t\t*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n\t\tif (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}\n\t}", "parent": 207, "children": [776, 803], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 236, "column": 2}}, {"id": 776, "type": "parenthesized_expression", "text": "(type == DHT11)", "parent": 775, "children": [777], "start_point": {"row": 225, "column": 4}, "end_point": {"row": 225, "column": 19}}, {"id": 777, "type": "binary_expression", "text": "type == DHT11", "parent": 776, "children": [778, 779, 780], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 18}}, {"id": 778, "type": "identifier", "text": "type", "parent": 777, "children": [], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 9}}, {"id": 779, "type": "==", "text": "==", "parent": 777, "children": [], "start_point": {"row": 225, "column": 10}, "end_point": {"row": 225, "column": 12}}, {"id": 780, "type": "identifier", "text": "DHT11", "parent": 777, "children": [], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 18}}, {"id": 781, "type": "assignment_expression", "text": "*pHumidity = (float)data[0]", "parent": 775, "children": [782, 785, 786], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 29}}, {"id": 782, "type": "pointer_expression", "text": "*pHumidity", "parent": 781, "children": [783, 784], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 12}}, {"id": 783, "type": "*", "text": "*", "parent": 782, "children": [], "start_point": {"row": 227, "column": 2}, "end_point": {"row": 227, "column": 3}}, {"id": 784, "type": "identifier", "text": "pHumidity", "parent": 782, "children": [], "start_point": {"row": 227, "column": 3}, "end_point": {"row": 227, "column": 12}}, {"id": 785, "type": "=", "text": "=", "parent": 781, "children": [], "start_point": {"row": 227, "column": 13}, "end_point": {"row": 227, "column": 14}}, {"id": 786, "type": "cast_expression", "text": "(float)data[0]", "parent": 781, "children": [787, 789], "start_point": {"row": 227, "column": 15}, "end_point": {"row": 227, "column": 29}}, {"id": 787, "type": "type_descriptor", "text": "float", "parent": 786, "children": [788], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 21}}, {"id": 788, "type": "primitive_type", "text": "float", "parent": 787, "children": [], "start_point": {"row": 227, "column": 16}, "end_point": {"row": 227, "column": 21}}, {"id": 789, "type": "subscript_expression", "text": "data[0]", "parent": 786, "children": [790, 791], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 29}}, {"id": 790, "type": "identifier", "text": "data", "parent": 789, "children": [], "start_point": {"row": 227, "column": 22}, "end_point": {"row": 227, "column": 26}}, {"id": 791, "type": "number_literal", "text": "0", "parent": 789, "children": [], "start_point": {"row": 227, "column": 27}, "end_point": {"row": 227, "column": 28}}, {"id": 792, "type": "assignment_expression", "text": "*pTemperature = (float)data[2]", "parent": 775, "children": [793, 796, 797], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 32}}, {"id": 793, "type": "pointer_expression", "text": "*pTemperature", "parent": 792, "children": [794, 795], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 15}}, {"id": 794, "type": "*", "text": "*", "parent": 793, "children": [], "start_point": {"row": 228, "column": 2}, "end_point": {"row": 228, "column": 3}}, {"id": 795, "type": "identifier", "text": "pTemperature", "parent": 793, "children": [], "start_point": {"row": 228, "column": 3}, "end_point": {"row": 228, "column": 15}}, {"id": 796, "type": "=", "text": "=", "parent": 792, "children": [], "start_point": {"row": 228, "column": 16}, "end_point": {"row": 228, "column": 17}}, {"id": 797, "type": "cast_expression", "text": "(float)data[2]", "parent": 792, "children": [798, 800], "start_point": {"row": 228, "column": 18}, "end_point": {"row": 228, "column": 32}}, {"id": 798, "type": "type_descriptor", "text": "float", "parent": 797, "children": [799], "start_point": {"row": 228, "column": 19}, "end_point": {"row": 228, "column": 24}}, {"id": 799, "type": "primitive_type", "text": "float", "parent": 798, "children": [], "start_point": {"row": 228, "column": 19}, "end_point": {"row": 228, "column": 24}}, {"id": 800, "type": "subscript_expression", "text": "data[2]", "parent": 797, "children": [801, 802], "start_point": {"row": 228, "column": 25}, "end_point": {"row": 228, "column": 32}}, {"id": 801, "type": "identifier", "text": "data", "parent": 800, "children": [], "start_point": {"row": 228, "column": 25}, "end_point": {"row": 228, "column": 29}}, {"id": 802, "type": "number_literal", "text": "2", "parent": 800, "children": [], "start_point": {"row": 228, "column": 30}, "end_point": {"row": 228, "column": 31}}, {"id": 803, "type": "else_clause", "text": "else if (type == DHT22) {\n\t\t// Calculate humidity and temp for DHT22 sensor.\n\t\t*pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n\t\t*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n\t\tif (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}\n\t}", "parent": 775, "children": [804], "start_point": {"row": 229, "column": 3}, "end_point": {"row": 236, "column": 2}}, {"id": 804, "type": "if_statement", "text": "if (type == DHT22) {\n\t\t// Calculate humidity and temp for DHT22 sensor.\n\t\t*pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n\t\t*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n\t\tif (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}\n\t}", "parent": 803, "children": [805], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 236, "column": 2}}, {"id": 805, "type": "parenthesized_expression", "text": "(type == DHT22)", "parent": 804, "children": [806], "start_point": {"row": 229, "column": 11}, "end_point": {"row": 229, "column": 26}}, {"id": 806, "type": "binary_expression", "text": "type == DHT22", "parent": 805, "children": [807, 808, 809], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 25}}, {"id": 807, "type": "identifier", "text": "type", "parent": 806, "children": [], "start_point": {"row": 229, "column": 12}, "end_point": {"row": 229, "column": 16}}, {"id": 808, "type": "==", "text": "==", "parent": 806, "children": [], "start_point": {"row": 229, "column": 17}, "end_point": {"row": 229, "column": 19}}, {"id": 809, "type": "identifier", "text": "DHT22", "parent": 806, "children": [], "start_point": {"row": 229, "column": 20}, "end_point": {"row": 229, "column": 25}}, {"id": 810, "type": "assignment_expression", "text": "*pHumidity = (data[0] * 256 + data[1]) / 10.0f", "parent": 804, "children": [811, 814, 815], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 48}}, {"id": 811, "type": "pointer_expression", "text": "*pHumidity", "parent": 810, "children": [812, 813], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 12}}, {"id": 812, "type": "*", "text": "*", "parent": 811, "children": [], "start_point": {"row": 231, "column": 2}, "end_point": {"row": 231, "column": 3}}, {"id": 813, "type": "identifier", "text": "pHumidity", "parent": 811, "children": [], "start_point": {"row": 231, "column": 3}, "end_point": {"row": 231, "column": 12}}, {"id": 814, "type": "=", "text": "=", "parent": 810, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 14}}, {"id": 815, "type": "binary_expression", "text": "(data[0] * 256 + data[1]) / 10.0f", "parent": 810, "children": [816, 828, 829], "start_point": {"row": 231, "column": 15}, "end_point": {"row": 231, "column": 48}}, {"id": 816, "type": "parenthesized_expression", "text": "(data[0] * 256 + data[1])", "parent": 815, "children": [817], "start_point": {"row": 231, "column": 15}, "end_point": {"row": 231, "column": 40}}, {"id": 817, "type": "binary_expression", "text": "data[0] * 256 + data[1]", "parent": 816, "children": [818, 824, 825], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 39}}, {"id": 818, "type": "binary_expression", "text": "data[0] * 256", "parent": 817, "children": [819, 822, 823], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 29}}, {"id": 819, "type": "subscript_expression", "text": "data[0]", "parent": 818, "children": [820, 821], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 23}}, {"id": 820, "type": "identifier", "text": "data", "parent": 819, "children": [], "start_point": {"row": 231, "column": 16}, "end_point": {"row": 231, "column": 20}}, {"id": 821, "type": "number_literal", "text": "0", "parent": 819, "children": [], "start_point": {"row": 231, "column": 21}, "end_point": {"row": 231, "column": 22}}, {"id": 822, "type": "*", "text": "*", "parent": 818, "children": [], "start_point": {"row": 231, "column": 24}, "end_point": {"row": 231, "column": 25}}, {"id": 823, "type": "number_literal", "text": "256", "parent": 818, "children": [], "start_point": {"row": 231, "column": 26}, "end_point": {"row": 231, "column": 29}}, {"id": 824, "type": "+", "text": "+", "parent": 817, "children": [], "start_point": {"row": 231, "column": 30}, "end_point": {"row": 231, "column": 31}}, {"id": 825, "type": "subscript_expression", "text": "data[1]", "parent": 817, "children": [826, 827], "start_point": {"row": 231, "column": 32}, "end_point": {"row": 231, "column": 39}}, {"id": 826, "type": "identifier", "text": "data", "parent": 825, "children": [], "start_point": {"row": 231, "column": 32}, "end_point": {"row": 231, "column": 36}}, {"id": 827, "type": "number_literal", "text": "1", "parent": 825, "children": [], "start_point": {"row": 231, "column": 37}, "end_point": {"row": 231, "column": 38}}, {"id": 828, "type": "/", "text": "/", "parent": 815, "children": [], "start_point": {"row": 231, "column": 41}, "end_point": {"row": 231, "column": 42}}, {"id": 829, "type": "number_literal", "text": "10.0f", "parent": 815, "children": [], "start_point": {"row": 231, "column": 43}, "end_point": {"row": 231, "column": 48}}, {"id": 830, "type": "assignment_expression", "text": "*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f", "parent": 804, "children": [831, 834, 835], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 60}}, {"id": 831, "type": "pointer_expression", "text": "*pTemperature", "parent": 830, "children": [832, 833], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 15}}, {"id": 832, "type": "*", "text": "*", "parent": 831, "children": [], "start_point": {"row": 232, "column": 2}, "end_point": {"row": 232, "column": 3}}, {"id": 833, "type": "identifier", "text": "pTemperature", "parent": 831, "children": [], "start_point": {"row": 232, "column": 3}, "end_point": {"row": 232, "column": 15}}, {"id": 834, "type": "=", "text": "=", "parent": 830, "children": [], "start_point": {"row": 232, "column": 16}, "end_point": {"row": 232, "column": 17}}, {"id": 835, "type": "binary_expression", "text": "((data[2] & 0x7F) * 256 + data[3]) / 10.0f", "parent": 830, "children": [836, 851, 852], "start_point": {"row": 232, "column": 18}, "end_point": {"row": 232, "column": 60}}, {"id": 836, "type": "parenthesized_expression", "text": "((data[2] & 0x7F) * 256 + data[3])", "parent": 835, "children": [837], "start_point": {"row": 232, "column": 18}, "end_point": {"row": 232, "column": 52}}, {"id": 837, "type": "binary_expression", "text": "(data[2] & 0x7F) * 256 + data[3]", "parent": 836, "children": [838, 847, 848], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 51}}, {"id": 838, "type": "binary_expression", "text": "(data[2] & 0x7F) * 256", "parent": 837, "children": [839, 845, 846], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 41}}, {"id": 839, "type": "parenthesized_expression", "text": "(data[2] & 0x7F)", "parent": 838, "children": [840], "start_point": {"row": 232, "column": 19}, "end_point": {"row": 232, "column": 35}}, {"id": 840, "type": "binary_expression", "text": "data[2] & 0x7F", "parent": 839, "children": [841, 844], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 34}}, {"id": 841, "type": "subscript_expression", "text": "data[2]", "parent": 840, "children": [842, 843], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 27}}, {"id": 842, "type": "identifier", "text": "data", "parent": 841, "children": [], "start_point": {"row": 232, "column": 20}, "end_point": {"row": 232, "column": 24}}, {"id": 843, "type": "number_literal", "text": "2", "parent": 841, "children": [], "start_point": {"row": 232, "column": 25}, "end_point": {"row": 232, "column": 26}}, {"id": 844, "type": "number_literal", "text": "0x7F", "parent": 840, "children": [], "start_point": {"row": 232, "column": 30}, "end_point": {"row": 232, "column": 34}}, {"id": 845, "type": "*", "text": "*", "parent": 838, "children": [], "start_point": {"row": 232, "column": 36}, "end_point": {"row": 232, "column": 37}}, {"id": 846, "type": "number_literal", "text": "256", "parent": 838, "children": [], "start_point": {"row": 232, "column": 38}, "end_point": {"row": 232, "column": 41}}, {"id": 847, "type": "+", "text": "+", "parent": 837, "children": [], "start_point": {"row": 232, "column": 42}, "end_point": {"row": 232, "column": 43}}, {"id": 848, "type": "subscript_expression", "text": "data[3]", "parent": 837, "children": [849, 850], "start_point": {"row": 232, "column": 44}, "end_point": {"row": 232, "column": 51}}, {"id": 849, "type": "identifier", "text": "data", "parent": 848, "children": [], "start_point": {"row": 232, "column": 44}, "end_point": {"row": 232, "column": 48}}, {"id": 850, "type": "number_literal", "text": "3", "parent": 848, "children": [], "start_point": {"row": 232, "column": 49}, "end_point": {"row": 232, "column": 50}}, {"id": 851, "type": "/", "text": "/", "parent": 835, "children": [], "start_point": {"row": 232, "column": 53}, "end_point": {"row": 232, "column": 54}}, {"id": 852, "type": "number_literal", "text": "10.0f", "parent": 835, "children": [], "start_point": {"row": 232, "column": 55}, "end_point": {"row": 232, "column": 60}}, {"id": 853, "type": "if_statement", "text": "if (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}", "parent": 804, "children": [854], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 235, "column": 3}}, {"id": 854, "type": "parenthesized_expression", "text": "(data[2] & 0x80)", "parent": 853, "children": [855], "start_point": {"row": 233, "column": 5}, "end_point": {"row": 233, "column": 21}}, {"id": 855, "type": "binary_expression", "text": "data[2] & 0x80", "parent": 854, "children": [856, 859], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 20}}, {"id": 856, "type": "subscript_expression", "text": "data[2]", "parent": 855, "children": [857, 858], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 13}}, {"id": 857, "type": "identifier", "text": "data", "parent": 856, "children": [], "start_point": {"row": 233, "column": 6}, "end_point": {"row": 233, "column": 10}}, {"id": 858, "type": "number_literal", "text": "2", "parent": 856, "children": [], "start_point": {"row": 233, "column": 11}, "end_point": {"row": 233, "column": 12}}, {"id": 859, "type": "number_literal", "text": "0x80", "parent": 855, "children": [], "start_point": {"row": 233, "column": 16}, "end_point": {"row": 233, "column": 20}}, {"id": 860, "type": "assignment_expression", "text": "*pTemperature *= -1.0f", "parent": 853, "children": [861, 864, 865], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 25}}, {"id": 861, "type": "pointer_expression", "text": "*pTemperature", "parent": 860, "children": [862, 863], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 16}}, {"id": 862, "type": "*", "text": "*", "parent": 861, "children": [], "start_point": {"row": 234, "column": 3}, "end_point": {"row": 234, "column": 4}}, {"id": 863, "type": "identifier", "text": "pTemperature", "parent": 861, "children": [], "start_point": {"row": 234, "column": 4}, "end_point": {"row": 234, "column": 16}}, {"id": 864, "type": "*=", "text": "*=", "parent": 860, "children": [], "start_point": {"row": 234, "column": 17}, "end_point": {"row": 234, "column": 19}}, {"id": 865, "type": "number_literal", "text": "-1.0f", "parent": 860, "children": [], "start_point": {"row": 234, "column": 20}, "end_point": {"row": 234, "column": 25}}, {"id": 866, "type": "return_statement", "text": "return 1;", "parent": 207, "children": [867], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 10}}, {"id": 867, "type": "number_literal", "text": "1", "parent": 866, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 9}}, {"id": 868, "type": "function_definition", "text": "static int open_lockfile(const char *filename) {\n\tint fd = open(filename, O_CREAT | O_RDONLY, 0600);\n\tif (fd < 0) {\n\t\tprintf(\"Failed to access lock file: %s\\nerror: %s\\n\", filename, strerror(errno));\n\t\treturn -1;\n\t}\n\tif (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n\t\tif(errno == EWOULDBLOCK) {\n\t\t\tprintf(\"Lock file is in use\\n\");\n\t\t}\n\t\tperror(\"Flock failed\");\n\t\treturn -1;\n\t}\n\treturn fd;\n}", "parent": null, "children": [869, 870], "start_point": {"row": 240, "column": 0}, "end_point": {"row": 254, "column": 1}}, {"id": 869, "type": "primitive_type", "text": "int", "parent": 868, "children": [], "start_point": {"row": 240, "column": 7}, "end_point": {"row": 240, "column": 10}}, {"id": 870, "type": "function_declarator", "text": "open_lockfile(const char *filename)", "parent": 868, "children": [871, 872], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 46}}, {"id": 871, "type": "identifier", "text": "open_lockfile", "parent": 870, "children": [], "start_point": {"row": 240, "column": 11}, "end_point": {"row": 240, "column": 24}}, {"id": 872, "type": "parameter_list", "text": "(const char *filename)", "parent": 870, "children": [873], "start_point": {"row": 240, "column": 24}, "end_point": {"row": 240, "column": 46}}, {"id": 873, "type": "parameter_declaration", "text": "const char *filename", "parent": 872, "children": [874, 875], "start_point": {"row": 240, "column": 25}, "end_point": {"row": 240, "column": 45}}, {"id": 874, "type": "primitive_type", "text": "char", "parent": 873, "children": [], "start_point": {"row": 240, "column": 31}, "end_point": {"row": 240, "column": 35}}, {"id": 875, "type": "pointer_declarator", "text": "*filename", "parent": 873, "children": [876, 877], "start_point": {"row": 240, "column": 36}, "end_point": {"row": 240, "column": 45}}, {"id": 876, "type": "*", "text": "*", "parent": 875, "children": [], "start_point": {"row": 240, "column": 36}, "end_point": {"row": 240, "column": 37}}, {"id": 877, "type": "identifier", "text": "filename", "parent": 875, "children": [], "start_point": {"row": 240, "column": 37}, "end_point": {"row": 240, "column": 45}}, {"id": 878, "type": "declaration", "text": "int fd = open(filename, O_CREAT | O_RDONLY, 0600);", "parent": 868, "children": [879, 880], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 51}}, {"id": 879, "type": "primitive_type", "text": "int", "parent": 878, "children": [], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 4}}, {"id": 880, "type": "init_declarator", "text": "fd = open(filename, O_CREAT | O_RDONLY, 0600)", "parent": 878, "children": [881, 882, 883], "start_point": {"row": 241, "column": 5}, "end_point": {"row": 241, "column": 50}}, {"id": 881, "type": "identifier", "text": "fd", "parent": 880, "children": [], "start_point": {"row": 241, "column": 5}, "end_point": {"row": 241, "column": 7}}, {"id": 882, "type": "=", "text": "=", "parent": 880, "children": [], "start_point": {"row": 241, "column": 8}, "end_point": {"row": 241, "column": 9}}, {"id": 883, "type": "call_expression", "text": "open(filename, O_CREAT | O_RDONLY, 0600)", "parent": 880, "children": [884, 885], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 50}}, {"id": 884, "type": "identifier", "text": "open", "parent": 883, "children": [], "start_point": {"row": 241, "column": 10}, "end_point": {"row": 241, "column": 14}}, {"id": 885, "type": "argument_list", "text": "(filename, O_CREAT | O_RDONLY, 0600)", "parent": 883, "children": [886, 887, 890], "start_point": {"row": 241, "column": 14}, "end_point": {"row": 241, "column": 50}}, {"id": 886, "type": "identifier", "text": "filename", "parent": 885, "children": [], "start_point": {"row": 241, "column": 15}, "end_point": {"row": 241, "column": 23}}, {"id": 887, "type": "binary_expression", "text": "O_CREAT | O_RDONLY", "parent": 885, "children": [888, 889], "start_point": {"row": 241, "column": 25}, "end_point": {"row": 241, "column": 43}}, {"id": 888, "type": "identifier", "text": "O_CREAT", "parent": 887, "children": [], "start_point": {"row": 241, "column": 25}, "end_point": {"row": 241, "column": 32}}, {"id": 889, "type": "identifier", "text": "O_RDONLY", "parent": 887, "children": [], "start_point": {"row": 241, "column": 35}, "end_point": {"row": 241, "column": 43}}, {"id": 890, "type": "number_literal", "text": "0600", "parent": 885, "children": [], "start_point": {"row": 241, "column": 45}, "end_point": {"row": 241, "column": 49}}, {"id": 891, "type": "if_statement", "text": "if (fd < 0) {\n\t\tprintf(\"Failed to access lock file: %s\\nerror: %s\\n\", filename, strerror(errno));\n\t\treturn -1;\n\t}", "parent": 868, "children": [892], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 245, "column": 2}}, {"id": 892, "type": "parenthesized_expression", "text": "(fd < 0)", "parent": 891, "children": [893], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 12}}, {"id": 893, "type": "binary_expression", "text": "fd < 0", "parent": 892, "children": [894, 895, 896], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 11}}, {"id": 894, "type": "identifier", "text": "fd", "parent": 893, "children": [], "start_point": {"row": 242, "column": 5}, "end_point": {"row": 242, "column": 7}}, {"id": 895, "type": "<", "text": "<", "parent": 893, "children": [], "start_point": {"row": 242, "column": 8}, "end_point": {"row": 242, "column": 9}}, {"id": 896, "type": "number_literal", "text": "0", "parent": 893, "children": [], "start_point": {"row": 242, "column": 10}, "end_point": {"row": 242, "column": 11}}, {"id": 897, "type": "call_expression", "text": "printf(\"Failed to access lock file: %s\\nerror: %s\\n\", filename, strerror(errno))", "parent": 891, "children": [898, 899], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 82}}, {"id": 898, "type": "identifier", "text": "printf", "parent": 897, "children": [], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 8}}, {"id": 899, "type": "argument_list", "text": "(\"Failed to access lock file: %s\\nerror: %s\\n\", filename, strerror(errno))", "parent": 897, "children": [900, 903, 904], "start_point": {"row": 243, "column": 8}, "end_point": {"row": 243, "column": 82}}, {"id": 900, "type": "string_literal", "text": "\"Failed to access lock file: %s\\nerror: %s\\n\"", "parent": 899, "children": [901, 902], "start_point": {"row": 243, "column": 9}, "end_point": {"row": 243, "column": 54}}, {"id": 901, "type": "escape_sequence", "text": "\\n", "parent": 900, "children": [], "start_point": {"row": 243, "column": 40}, "end_point": {"row": 243, "column": 42}}, {"id": 902, "type": "escape_sequence", "text": "\\n", "parent": 900, "children": [], "start_point": {"row": 243, "column": 51}, "end_point": {"row": 243, "column": 53}}, {"id": 903, "type": "identifier", "text": "filename", "parent": 899, "children": [], "start_point": {"row": 243, "column": 56}, "end_point": {"row": 243, "column": 64}}, {"id": 904, "type": "call_expression", "text": "strerror(errno)", "parent": 899, "children": [905, 906], "start_point": {"row": 243, "column": 66}, "end_point": {"row": 243, "column": 81}}, {"id": 905, "type": "identifier", "text": "strerror", "parent": 904, "children": [], "start_point": {"row": 243, "column": 66}, "end_point": {"row": 243, "column": 74}}, {"id": 906, "type": "argument_list", "text": "(errno)", "parent": 904, "children": [907], "start_point": {"row": 243, "column": 74}, "end_point": {"row": 243, "column": 81}}, {"id": 907, "type": "identifier", "text": "errno", "parent": 906, "children": [], "start_point": {"row": 243, "column": 75}, "end_point": {"row": 243, "column": 80}}, {"id": 908, "type": "return_statement", "text": "return -1;", "parent": 891, "children": [909], "start_point": {"row": 244, "column": 2}, "end_point": {"row": 244, "column": 12}}, {"id": 909, "type": "number_literal", "text": "-1", "parent": 908, "children": [], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 11}}, {"id": 910, "type": "if_statement", "text": "if (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n\t\tif(errno == EWOULDBLOCK) {\n\t\t\tprintf(\"Lock file is in use\\n\");\n\t\t}\n\t\tperror(\"Flock failed\");\n\t\treturn -1;\n\t}", "parent": 868, "children": [911], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 252, "column": 2}}, {"id": 911, "type": "parenthesized_expression", "text": "(flock(fd, LOCK_EX | LOCK_NB) == -1)", "parent": 910, "children": [912], "start_point": {"row": 246, "column": 4}, "end_point": {"row": 246, "column": 40}}, {"id": 912, "type": "binary_expression", "text": "flock(fd, LOCK_EX | LOCK_NB) == -1", "parent": 911, "children": [913, 920, 921], "start_point": {"row": 246, "column": 5}, "end_point": {"row": 246, "column": 39}}, {"id": 913, "type": "call_expression", "text": "flock(fd, LOCK_EX | LOCK_NB)", "parent": 912, "children": [914, 915], "start_point": {"row": 246, "column": 5}, "end_point": {"row": 246, "column": 33}}, {"id": 914, "type": "identifier", "text": "flock", "parent": 913, "children": [], "start_point": {"row": 246, "column": 5}, "end_point": {"row": 246, "column": 10}}, {"id": 915, "type": "argument_list", "text": "(fd, LOCK_EX | LOCK_NB)", "parent": 913, "children": [916, 917], "start_point": {"row": 246, "column": 10}, "end_point": {"row": 246, "column": 33}}, {"id": 916, "type": "identifier", "text": "fd", "parent": 915, "children": [], "start_point": {"row": 246, "column": 11}, "end_point": {"row": 246, "column": 13}}, {"id": 917, "type": "binary_expression", "text": "LOCK_EX | LOCK_NB", "parent": 915, "children": [918, 919], "start_point": {"row": 246, "column": 15}, "end_point": {"row": 246, "column": 32}}, {"id": 918, "type": "identifier", "text": "LOCK_EX", "parent": 917, "children": [], "start_point": {"row": 246, "column": 15}, "end_point": {"row": 246, "column": 22}}, {"id": 919, "type": "identifier", "text": "LOCK_NB", "parent": 917, "children": [], "start_point": {"row": 246, "column": 25}, "end_point": {"row": 246, "column": 32}}, {"id": 920, "type": "==", "text": "==", "parent": 912, "children": [], "start_point": {"row": 246, "column": 34}, "end_point": {"row": 246, "column": 36}}, {"id": 921, "type": "number_literal", "text": "-1", "parent": 912, "children": [], "start_point": {"row": 246, "column": 37}, "end_point": {"row": 246, "column": 39}}, {"id": 922, "type": "if_statement", "text": "if(errno == EWOULDBLOCK) {\n\t\t\tprintf(\"Lock file is in use\\n\");\n\t\t}", "parent": 910, "children": [923], "start_point": {"row": 247, "column": 2}, "end_point": {"row": 249, "column": 3}}, {"id": 923, "type": "parenthesized_expression", "text": "(errno == EWOULDBLOCK)", "parent": 922, "children": [924], "start_point": {"row": 247, "column": 4}, "end_point": {"row": 247, "column": 26}}, {"id": 924, "type": "binary_expression", "text": "errno == EWOULDBLOCK", "parent": 923, "children": [925, 926, 927], "start_point": {"row": 247, "column": 5}, "end_point": {"row": 247, "column": 25}}, {"id": 925, "type": "identifier", "text": "errno", "parent": 924, "children": [], "start_point": {"row": 247, "column": 5}, "end_point": {"row": 247, "column": 10}}, {"id": 926, "type": "==", "text": "==", "parent": 924, "children": [], "start_point": {"row": 247, "column": 11}, "end_point": {"row": 247, "column": 13}}, {"id": 927, "type": "identifier", "text": "EWOULDBLOCK", "parent": 924, "children": [], "start_point": {"row": 247, "column": 14}, "end_point": {"row": 247, "column": 25}}, {"id": 928, "type": "call_expression", "text": "printf(\"Lock file is in use\\n\")", "parent": 922, "children": [929, 930], "start_point": {"row": 248, "column": 3}, "end_point": {"row": 248, "column": 34}}, {"id": 929, "type": "identifier", "text": "printf", "parent": 928, "children": [], "start_point": {"row": 248, "column": 3}, "end_point": {"row": 248, "column": 9}}, {"id": 930, "type": "argument_list", "text": "(\"Lock file is in use\\n\")", "parent": 928, "children": [931], "start_point": {"row": 248, "column": 9}, "end_point": {"row": 248, "column": 34}}, {"id": 931, "type": "string_literal", "text": "\"Lock file is in use\\n\"", "parent": 930, "children": [932], "start_point": {"row": 248, "column": 10}, "end_point": {"row": 248, "column": 33}}, {"id": 932, "type": "escape_sequence", "text": "\\n", "parent": 931, "children": [], "start_point": {"row": 248, "column": 30}, "end_point": {"row": 248, "column": 32}}, {"id": 933, "type": "call_expression", "text": "perror(\"Flock failed\")", "parent": 910, "children": [934, 935], "start_point": {"row": 250, "column": 2}, "end_point": {"row": 250, "column": 24}}, {"id": 934, "type": "identifier", "text": "perror", "parent": 933, "children": [], "start_point": {"row": 250, "column": 2}, "end_point": {"row": 250, "column": 8}}, {"id": 935, "type": "argument_list", "text": "(\"Flock failed\")", "parent": 933, "children": [936], "start_point": {"row": 250, "column": 8}, "end_point": {"row": 250, "column": 24}}, {"id": 936, "type": "string_literal", "text": "\"Flock failed\"", "parent": 935, "children": [], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 23}}, {"id": 937, "type": "return_statement", "text": "return -1;", "parent": 910, "children": [938], "start_point": {"row": 251, "column": 2}, "end_point": {"row": 251, "column": 12}}, {"id": 938, "type": "number_literal", "text": "-1", "parent": 937, "children": [], "start_point": {"row": 251, "column": 9}, "end_point": {"row": 251, "column": 11}}, {"id": 939, "type": "return_statement", "text": "return fd;", "parent": 868, "children": [940], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 11}}, {"id": 940, "type": "identifier", "text": "fd", "parent": 939, "children": [], "start_point": {"row": 253, "column": 8}, "end_point": {"row": 253, "column": 10}}, {"id": 941, "type": "function_definition", "text": "static void close_lockfile(int fd) {\n\tif(flock(fd, LOCK_UN) == -1) {\n\t\tperror(\"Failed to unlock file\");\n\t}\n\tif(close(fd) == -1) {\n\t\tperror(\"Closing descriptor on lock file failed\");\n\t}\n}", "parent": null, "children": [942, 943], "start_point": {"row": 256, "column": 0}, "end_point": {"row": 263, "column": 1}}, {"id": 942, "type": "primitive_type", "text": "void", "parent": 941, "children": [], "start_point": {"row": 256, "column": 7}, "end_point": {"row": 256, "column": 11}}, {"id": 943, "type": "function_declarator", "text": "close_lockfile(int fd)", "parent": 941, "children": [944, 945], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 34}}, {"id": 944, "type": "identifier", "text": "close_lockfile", "parent": 943, "children": [], "start_point": {"row": 256, "column": 12}, "end_point": {"row": 256, "column": 26}}, {"id": 945, "type": "parameter_list", "text": "(int fd)", "parent": 943, "children": [946], "start_point": {"row": 256, "column": 26}, "end_point": {"row": 256, "column": 34}}, {"id": 946, "type": "parameter_declaration", "text": "int fd", "parent": 945, "children": [947, 948], "start_point": {"row": 256, "column": 27}, "end_point": {"row": 256, "column": 33}}, {"id": 947, "type": "primitive_type", "text": "int", "parent": 946, "children": [], "start_point": {"row": 256, "column": 27}, "end_point": {"row": 256, "column": 30}}, {"id": 948, "type": "identifier", "text": "fd", "parent": 946, "children": [], "start_point": {"row": 256, "column": 31}, "end_point": {"row": 256, "column": 33}}, {"id": 949, "type": "if_statement", "text": "if(flock(fd, LOCK_UN) == -1) {\n\t\tperror(\"Failed to unlock file\");\n\t}", "parent": 941, "children": [950], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 259, "column": 2}}, {"id": 950, "type": "parenthesized_expression", "text": "(flock(fd, LOCK_UN) == -1)", "parent": 949, "children": [951], "start_point": {"row": 257, "column": 3}, "end_point": {"row": 257, "column": 29}}, {"id": 951, "type": "binary_expression", "text": "flock(fd, LOCK_UN) == -1", "parent": 950, "children": [952, 957, 958], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 28}}, {"id": 952, "type": "call_expression", "text": "flock(fd, LOCK_UN)", "parent": 951, "children": [953, 954], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 22}}, {"id": 953, "type": "identifier", "text": "flock", "parent": 952, "children": [], "start_point": {"row": 257, "column": 4}, "end_point": {"row": 257, "column": 9}}, {"id": 954, "type": "argument_list", "text": "(fd, LOCK_UN)", "parent": 952, "children": [955, 956], "start_point": {"row": 257, "column": 9}, "end_point": {"row": 257, "column": 22}}, {"id": 955, "type": "identifier", "text": "fd", "parent": 954, "children": [], "start_point": {"row": 257, "column": 10}, "end_point": {"row": 257, "column": 12}}, {"id": 956, "type": "identifier", "text": "LOCK_UN", "parent": 954, "children": [], "start_point": {"row": 257, "column": 14}, "end_point": {"row": 257, "column": 21}}, {"id": 957, "type": "==", "text": "==", "parent": 951, "children": [], "start_point": {"row": 257, "column": 23}, "end_point": {"row": 257, "column": 25}}, {"id": 958, "type": "number_literal", "text": "-1", "parent": 951, "children": [], "start_point": {"row": 257, "column": 26}, "end_point": {"row": 257, "column": 28}}, {"id": 959, "type": "call_expression", "text": "perror(\"Failed to unlock file\")", "parent": 949, "children": [960, 961], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 33}}, {"id": 960, "type": "identifier", "text": "perror", "parent": 959, "children": [], "start_point": {"row": 258, "column": 2}, "end_point": {"row": 258, "column": 8}}, {"id": 961, "type": "argument_list", "text": "(\"Failed to unlock file\")", "parent": 959, "children": [962], "start_point": {"row": 258, "column": 8}, "end_point": {"row": 258, "column": 33}}, {"id": 962, "type": "string_literal", "text": "\"Failed to unlock file\"", "parent": 961, "children": [], "start_point": {"row": 258, "column": 9}, "end_point": {"row": 258, "column": 32}}, {"id": 963, "type": "if_statement", "text": "if(close(fd) == -1) {\n\t\tperror(\"Closing descriptor on lock file failed\");\n\t}", "parent": 941, "children": [964], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 262, "column": 2}}, {"id": 964, "type": "parenthesized_expression", "text": "(close(fd) == -1)", "parent": 963, "children": [965], "start_point": {"row": 260, "column": 3}, "end_point": {"row": 260, "column": 20}}, {"id": 965, "type": "binary_expression", "text": "close(fd) == -1", "parent": 964, "children": [966, 970, 971], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 19}}, {"id": 966, "type": "call_expression", "text": "close(fd)", "parent": 965, "children": [967, 968], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 13}}, {"id": 967, "type": "identifier", "text": "close", "parent": 966, "children": [], "start_point": {"row": 260, "column": 4}, "end_point": {"row": 260, "column": 9}}, {"id": 968, "type": "argument_list", "text": "(fd)", "parent": 966, "children": [969], "start_point": {"row": 260, "column": 9}, "end_point": {"row": 260, "column": 13}}, {"id": 969, "type": "identifier", "text": "fd", "parent": 968, "children": [], "start_point": {"row": 260, "column": 10}, "end_point": {"row": 260, "column": 12}}, {"id": 970, "type": "==", "text": "==", "parent": 965, "children": [], "start_point": {"row": 260, "column": 14}, "end_point": {"row": 260, "column": 16}}, {"id": 971, "type": "number_literal", "text": "-1", "parent": 965, "children": [], "start_point": {"row": 260, "column": 17}, "end_point": {"row": 260, "column": 19}}, {"id": 972, "type": "call_expression", "text": "perror(\"Closing descriptor on lock file failed\")", "parent": 963, "children": [973, 974], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 50}}, {"id": 973, "type": "identifier", "text": "perror", "parent": 972, "children": [], "start_point": {"row": 261, "column": 2}, "end_point": {"row": 261, "column": 8}}, {"id": 974, "type": "argument_list", "text": "(\"Closing descriptor on lock file failed\")", "parent": 972, "children": [975], "start_point": {"row": 261, "column": 8}, "end_point": {"row": 261, "column": 50}}, {"id": 975, "type": "string_literal", "text": "\"Closing descriptor on lock file failed\"", "parent": 974, "children": [], "start_point": {"row": 261, "column": 9}, "end_point": {"row": 261, "column": 49}}, {"id": 976, "type": "function_definition", "text": "int dht_read(int type, int pin, float *pHumidity, float *pTemperature) {\n\tint success = 0;\n\t// Validate humidity and temperature arguments and set them to zero.\n\tif (pHumidity == NULL || pTemperature == NULL) {\n\t\tDHT_READ_LOG(\"bad argument\\n\");\n\t} else \n\t// Initialize GPIO library.\n\tif (pi_mmio_init() < 0) {\n\t\tDHT_READ_LOG(\"MMIO init failed. May not be root\\n\");\n\t} else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t} // successfully initialized GPIO library\n\treturn success;\n}", "parent": null, "children": [977, 978], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 296, "column": 1}}, {"id": 977, "type": "primitive_type", "text": "int", "parent": 976, "children": [], "start_point": {"row": 265, "column": 0}, "end_point": {"row": 265, "column": 3}}, {"id": 978, "type": "function_declarator", "text": "dht_read(int type, int pin, float *pHumidity, float *pTemperature)", "parent": 976, "children": [979, 980], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 70}}, {"id": 979, "type": "identifier", "text": "dht_read", "parent": 978, "children": [], "start_point": {"row": 265, "column": 4}, "end_point": {"row": 265, "column": 12}}, {"id": 980, "type": "parameter_list", "text": "(int type, int pin, float *pHumidity, float *pTemperature)", "parent": 978, "children": [981, 984, 987, 992], "start_point": {"row": 265, "column": 12}, "end_point": {"row": 265, "column": 70}}, {"id": 981, "type": "parameter_declaration", "text": "int type", "parent": 980, "children": [982, 983], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 21}}, {"id": 982, "type": "primitive_type", "text": "int", "parent": 981, "children": [], "start_point": {"row": 265, "column": 13}, "end_point": {"row": 265, "column": 16}}, {"id": 983, "type": "identifier", "text": "type", "parent": 981, "children": [], "start_point": {"row": 265, "column": 17}, "end_point": {"row": 265, "column": 21}}, {"id": 984, "type": "parameter_declaration", "text": "int pin", "parent": 980, "children": [985, 986], "start_point": {"row": 265, "column": 23}, "end_point": {"row": 265, "column": 30}}, {"id": 985, "type": "primitive_type", "text": "int", "parent": 984, "children": [], "start_point": {"row": 265, "column": 23}, "end_point": {"row": 265, "column": 26}}, {"id": 986, "type": "identifier", "text": "pin", "parent": 984, "children": [], "start_point": {"row": 265, "column": 27}, "end_point": {"row": 265, "column": 30}}, {"id": 987, "type": "parameter_declaration", "text": "float *pHumidity", "parent": 980, "children": [988, 989], "start_point": {"row": 265, "column": 32}, "end_point": {"row": 265, "column": 48}}, {"id": 988, "type": "primitive_type", "text": "float", "parent": 987, "children": [], "start_point": {"row": 265, "column": 32}, "end_point": {"row": 265, "column": 37}}, {"id": 989, "type": "pointer_declarator", "text": "*pHumidity", "parent": 987, "children": [990, 991], "start_point": {"row": 265, "column": 38}, "end_point": {"row": 265, "column": 48}}, {"id": 990, "type": "*", "text": "*", "parent": 989, "children": [], "start_point": {"row": 265, "column": 38}, "end_point": {"row": 265, "column": 39}}, {"id": 991, "type": "identifier", "text": "pHumidity", "parent": 989, "children": [], "start_point": {"row": 265, "column": 39}, "end_point": {"row": 265, "column": 48}}, {"id": 992, "type": "parameter_declaration", "text": "float *pTemperature", "parent": 980, "children": [993, 994], "start_point": {"row": 265, "column": 50}, "end_point": {"row": 265, "column": 69}}, {"id": 993, "type": "primitive_type", "text": "float", "parent": 992, "children": [], "start_point": {"row": 265, "column": 50}, "end_point": {"row": 265, "column": 55}}, {"id": 994, "type": "pointer_declarator", "text": "*pTemperature", "parent": 992, "children": [995, 996], "start_point": {"row": 265, "column": 56}, "end_point": {"row": 265, "column": 69}}, {"id": 995, "type": "*", "text": "*", "parent": 994, "children": [], "start_point": {"row": 265, "column": 56}, "end_point": {"row": 265, "column": 57}}, {"id": 996, "type": "identifier", "text": "pTemperature", "parent": 994, "children": [], "start_point": {"row": 265, "column": 57}, "end_point": {"row": 265, "column": 69}}, {"id": 997, "type": "declaration", "text": "int success = 0;", "parent": 976, "children": [998, 999], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 17}}, {"id": 998, "type": "primitive_type", "text": "int", "parent": 997, "children": [], "start_point": {"row": 266, "column": 1}, "end_point": {"row": 266, "column": 4}}, {"id": 999, "type": "init_declarator", "text": "success = 0", "parent": 997, "children": [1000, 1001, 1002], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 16}}, {"id": 1000, "type": "identifier", "text": "success", "parent": 999, "children": [], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 12}}, {"id": 1001, "type": "=", "text": "=", "parent": 999, "children": [], "start_point": {"row": 266, "column": 13}, "end_point": {"row": 266, "column": 14}}, {"id": 1002, "type": "number_literal", "text": "0", "parent": 999, "children": [], "start_point": {"row": 266, "column": 15}, "end_point": {"row": 266, "column": 16}}, {"id": 1003, "type": "if_statement", "text": "if (pHumidity == NULL || pTemperature == NULL) {\n\t\tDHT_READ_LOG(\"bad argument\\n\");\n\t} else \n\t// Initialize GPIO library.\n\tif (pi_mmio_init() < 0) {\n\t\tDHT_READ_LOG(\"MMIO init failed. May not be root\\n\");\n\t} else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t}", "parent": 976, "children": [1004, 1022], "start_point": {"row": 268, "column": 1}, "end_point": {"row": 294, "column": 2}}, {"id": 1004, "type": "parenthesized_expression", "text": "(pHumidity == NULL || pTemperature == NULL)", "parent": 1003, "children": [1005], "start_point": {"row": 268, "column": 4}, "end_point": {"row": 268, "column": 47}}, {"id": 1005, "type": "binary_expression", "text": "pHumidity == NULL || pTemperature == NULL", "parent": 1004, "children": [1006, 1011, 1012], "start_point": {"row": 268, "column": 5}, "end_point": {"row": 268, "column": 46}}, {"id": 1006, "type": "binary_expression", "text": "pHumidity == NULL", "parent": 1005, "children": [1007, 1008, 1009], "start_point": {"row": 268, "column": 5}, "end_point": {"row": 268, "column": 22}}, {"id": 1007, "type": "identifier", "text": "pHumidity", "parent": 1006, "children": [], "start_point": {"row": 268, "column": 5}, "end_point": {"row": 268, "column": 14}}, {"id": 1008, "type": "==", "text": "==", "parent": 1006, "children": [], "start_point": {"row": 268, "column": 15}, "end_point": {"row": 268, "column": 17}}, {"id": 1009, "type": "null", "text": "NULL", "parent": 1006, "children": [1010], "start_point": {"row": 268, "column": 18}, "end_point": {"row": 268, "column": 22}}, {"id": 1010, "type": "NULL", "text": "NULL", "parent": 1009, "children": [], "start_point": {"row": 268, "column": 18}, "end_point": {"row": 268, "column": 22}}, {"id": 1011, "type": "||", "text": "||", "parent": 1005, "children": [], "start_point": {"row": 268, "column": 23}, "end_point": {"row": 268, "column": 25}}, {"id": 1012, "type": "binary_expression", "text": "pTemperature == NULL", "parent": 1005, "children": [1013, 1014, 1015], "start_point": {"row": 268, "column": 26}, "end_point": {"row": 268, "column": 46}}, {"id": 1013, "type": "identifier", "text": "pTemperature", "parent": 1012, "children": [], "start_point": {"row": 268, "column": 26}, "end_point": {"row": 268, "column": 38}}, {"id": 1014, "type": "==", "text": "==", "parent": 1012, "children": [], "start_point": {"row": 268, "column": 39}, "end_point": {"row": 268, "column": 41}}, {"id": 1015, "type": "null", "text": "NULL", "parent": 1012, "children": [1016], "start_point": {"row": 268, "column": 42}, "end_point": {"row": 268, "column": 46}}, {"id": 1016, "type": "NULL", "text": "NULL", "parent": 1015, "children": [], "start_point": {"row": 268, "column": 42}, "end_point": {"row": 268, "column": 46}}, {"id": 1017, "type": "call_expression", "text": "DHT_READ_LOG(\"bad argument\\n\")", "parent": 1003, "children": [1018, 1019], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 32}}, {"id": 1018, "type": "identifier", "text": "DHT_READ_LOG", "parent": 1017, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 14}}, {"id": 1019, "type": "argument_list", "text": "(\"bad argument\\n\")", "parent": 1017, "children": [1020], "start_point": {"row": 269, "column": 14}, "end_point": {"row": 269, "column": 32}}, {"id": 1020, "type": "string_literal", "text": "\"bad argument\\n\"", "parent": 1019, "children": [1021], "start_point": {"row": 269, "column": 15}, "end_point": {"row": 269, "column": 31}}, {"id": 1021, "type": "escape_sequence", "text": "\\n", "parent": 1020, "children": [], "start_point": {"row": 269, "column": 28}, "end_point": {"row": 269, "column": 30}}, {"id": 1022, "type": "else_clause", "text": "else \n\t// Initialize GPIO library.\n\tif (pi_mmio_init() < 0) {\n\t\tDHT_READ_LOG(\"MMIO init failed. May not be root\\n\");\n\t} else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t}", "parent": 1003, "children": [1023], "start_point": {"row": 270, "column": 3}, "end_point": {"row": 294, "column": 2}}, {"id": 1023, "type": "if_statement", "text": "if (pi_mmio_init() < 0) {\n\t\tDHT_READ_LOG(\"MMIO init failed. May not be root\\n\");\n\t} else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t}", "parent": 1022, "children": [1024, 1036], "start_point": {"row": 272, "column": 1}, "end_point": {"row": 294, "column": 2}}, {"id": 1024, "type": "parenthesized_expression", "text": "(pi_mmio_init() < 0)", "parent": 1023, "children": [1025], "start_point": {"row": 272, "column": 4}, "end_point": {"row": 272, "column": 24}}, {"id": 1025, "type": "binary_expression", "text": "pi_mmio_init() < 0", "parent": 1024, "children": [1026, 1029, 1030], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 23}}, {"id": 1026, "type": "call_expression", "text": "pi_mmio_init()", "parent": 1025, "children": [1027, 1028], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 19}}, {"id": 1027, "type": "identifier", "text": "pi_mmio_init", "parent": 1026, "children": [], "start_point": {"row": 272, "column": 5}, "end_point": {"row": 272, "column": 17}}, {"id": 1028, "type": "argument_list", "text": "()", "parent": 1026, "children": [], "start_point": {"row": 272, "column": 17}, "end_point": {"row": 272, "column": 19}}, {"id": 1029, "type": "<", "text": "<", "parent": 1025, "children": [], "start_point": {"row": 272, "column": 20}, "end_point": {"row": 272, "column": 21}}, {"id": 1030, "type": "number_literal", "text": "0", "parent": 1025, "children": [], "start_point": {"row": 272, "column": 22}, "end_point": {"row": 272, "column": 23}}, {"id": 1031, "type": "call_expression", "text": "DHT_READ_LOG(\"MMIO init failed. May not be root\\n\")", "parent": 1023, "children": [1032, 1033], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 53}}, {"id": 1032, "type": "identifier", "text": "DHT_READ_LOG", "parent": 1031, "children": [], "start_point": {"row": 273, "column": 2}, "end_point": {"row": 273, "column": 14}}, {"id": 1033, "type": "argument_list", "text": "(\"MMIO init failed. May not be root\\n\")", "parent": 1031, "children": [1034], "start_point": {"row": 273, "column": 14}, "end_point": {"row": 273, "column": 53}}, {"id": 1034, "type": "string_literal", "text": "\"MMIO init failed. May not be root\\n\"", "parent": 1033, "children": [1035], "start_point": {"row": 273, "column": 15}, "end_point": {"row": 273, "column": 52}}, {"id": 1035, "type": "escape_sequence", "text": "\\n", "parent": 1034, "children": [], "start_point": {"row": 273, "column": 49}, "end_point": {"row": 273, "column": 51}}, {"id": 1036, "type": "else_clause", "text": "else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t}", "parent": 1023, "children": [], "start_point": {"row": 274, "column": 3}, "end_point": {"row": 294, "column": 2}}, {"id": 1037, "type": "declaration", "text": "int lockfd = -1;", "parent": 1036, "children": [1038, 1039], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 18}}, {"id": 1038, "type": "primitive_type", "text": "int", "parent": 1037, "children": [], "start_point": {"row": 275, "column": 2}, "end_point": {"row": 275, "column": 5}}, {"id": 1039, "type": "init_declarator", "text": "lockfd = -1", "parent": 1037, "children": [1040, 1041, 1042], "start_point": {"row": 275, "column": 6}, "end_point": {"row": 275, "column": 17}}, {"id": 1040, "type": "identifier", "text": "lockfd", "parent": 1039, "children": [], "start_point": {"row": 275, "column": 6}, "end_point": {"row": 275, "column": 12}}, {"id": 1041, "type": "=", "text": "=", "parent": 1039, "children": [], "start_point": {"row": 275, "column": 13}, "end_point": {"row": 275, "column": 14}}, {"id": 1042, "type": "number_literal", "text": "-1", "parent": 1039, "children": [], "start_point": {"row": 275, "column": 15}, "end_point": {"row": 275, "column": 17}}, {"id": 1043, "type": "declaration", "text": "int count = 10;", "parent": 1036, "children": [1044, 1045], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 17}}, {"id": 1044, "type": "primitive_type", "text": "int", "parent": 1043, "children": [], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 5}}, {"id": 1045, "type": "init_declarator", "text": "count = 10", "parent": 1043, "children": [1046, 1047, 1048], "start_point": {"row": 276, "column": 6}, "end_point": {"row": 276, "column": 16}}, {"id": 1046, "type": "identifier", "text": "count", "parent": 1045, "children": [], "start_point": {"row": 276, "column": 6}, "end_point": {"row": 276, "column": 11}}, {"id": 1047, "type": "=", "text": "=", "parent": 1045, "children": [], "start_point": {"row": 276, "column": 12}, "end_point": {"row": 276, "column": 13}}, {"id": 1048, "type": "number_literal", "text": "10", "parent": 1045, "children": [], "start_point": {"row": 276, "column": 14}, "end_point": {"row": 276, "column": 16}}, {"id": 1049, "type": "while_statement", "text": "while (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t}", "parent": 1036, "children": [1050], "start_point": {"row": 277, "column": 2}, "end_point": {"row": 290, "column": 3}}, {"id": 1050, "type": "parenthesized_expression", "text": "(count-- > 0)", "parent": 1049, "children": [1051], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 21}}, {"id": 1051, "type": "binary_expression", "text": "count-- > 0", "parent": 1050, "children": [1052, 1055, 1056], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 20}}, {"id": 1052, "type": "update_expression", "text": "count--", "parent": 1051, "children": [1053, 1054], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 16}}, {"id": 1053, "type": "identifier", "text": "count", "parent": 1052, "children": [], "start_point": {"row": 277, "column": 9}, "end_point": {"row": 277, "column": 14}}, {"id": 1054, "type": "--", "text": "--", "parent": 1052, "children": [], "start_point": {"row": 277, "column": 14}, "end_point": {"row": 277, "column": 16}}, {"id": 1055, "type": ">", "text": ">", "parent": 1051, "children": [], "start_point": {"row": 277, "column": 17}, "end_point": {"row": 277, "column": 18}}, {"id": 1056, "type": "number_literal", "text": "0", "parent": 1051, "children": [], "start_point": {"row": 277, "column": 19}, "end_point": {"row": 277, "column": 20}}, {"id": 1057, "type": "if_statement", "text": "if (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}", "parent": 1049, "children": [1058], "start_point": {"row": 278, "column": 3}, "end_point": {"row": 280, "column": 4}}, {"id": 1058, "type": "parenthesized_expression", "text": "(lockfd < 0)", "parent": 1057, "children": [1059], "start_point": {"row": 278, "column": 6}, "end_point": {"row": 278, "column": 18}}, {"id": 1059, "type": "binary_expression", "text": "lockfd < 0", "parent": 1058, "children": [1060, 1061, 1062], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 17}}, {"id": 1060, "type": "identifier", "text": "lockfd", "parent": 1059, "children": [], "start_point": {"row": 278, "column": 7}, "end_point": {"row": 278, "column": 13}}, {"id": 1061, "type": "<", "text": "<", "parent": 1059, "children": [], "start_point": {"row": 278, "column": 14}, "end_point": {"row": 278, "column": 15}}, {"id": 1062, "type": "number_literal", "text": "0", "parent": 1059, "children": [], "start_point": {"row": 278, "column": 16}, "end_point": {"row": 278, "column": 17}}, {"id": 1063, "type": "assignment_expression", "text": "lockfd = open_lockfile(LOCKFILE)", "parent": 1057, "children": [1064, 1065, 1066], "start_point": {"row": 279, "column": 4}, "end_point": {"row": 279, "column": 36}}, {"id": 1064, "type": "identifier", "text": "lockfd", "parent": 1063, "children": [], "start_point": {"row": 279, "column": 4}, "end_point": {"row": 279, "column": 10}}, {"id": 1065, "type": "=", "text": "=", "parent": 1063, "children": [], "start_point": {"row": 279, "column": 11}, "end_point": {"row": 279, "column": 12}}, {"id": 1066, "type": "call_expression", "text": "open_lockfile(LOCKFILE)", "parent": 1063, "children": [1067, 1068], "start_point": {"row": 279, "column": 13}, "end_point": {"row": 279, "column": 36}}, {"id": 1067, "type": "identifier", "text": "open_lockfile", "parent": 1066, "children": [], "start_point": {"row": 279, "column": 13}, "end_point": {"row": 279, "column": 26}}, {"id": 1068, "type": "argument_list", "text": "(LOCKFILE)", "parent": 1066, "children": [1069], "start_point": {"row": 279, "column": 26}, "end_point": {"row": 279, "column": 36}}, {"id": 1069, "type": "identifier", "text": "LOCKFILE", "parent": 1068, "children": [], "start_point": {"row": 279, "column": 27}, "end_point": {"row": 279, "column": 35}}, {"id": 1070, "type": "if_statement", "text": "if (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}", "parent": 1049, "children": [1071], "start_point": {"row": 281, "column": 3}, "end_point": {"row": 286, "column": 4}}, {"id": 1071, "type": "parenthesized_expression", "text": "(lockfd >= 0)", "parent": 1070, "children": [1072], "start_point": {"row": 281, "column": 6}, "end_point": {"row": 281, "column": 19}}, {"id": 1072, "type": "binary_expression", "text": "lockfd >= 0", "parent": 1071, "children": [1073, 1074, 1075], "start_point": {"row": 281, "column": 7}, "end_point": {"row": 281, "column": 18}}, {"id": 1073, "type": "identifier", "text": "lockfd", "parent": 1072, "children": [], "start_point": {"row": 281, "column": 7}, "end_point": {"row": 281, "column": 13}}, {"id": 1074, "type": ">=", "text": ">=", "parent": 1072, "children": [], "start_point": {"row": 281, "column": 14}, "end_point": {"row": 281, "column": 16}}, {"id": 1075, "type": "number_literal", "text": "0", "parent": 1072, "children": [], "start_point": {"row": 281, "column": 17}, "end_point": {"row": 281, "column": 18}}, {"id": 1076, "type": "assignment_expression", "text": "success = pi_dht_read(type, pin, pHumidity, pTemperature)", "parent": 1070, "children": [1077, 1078, 1079], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 61}}, {"id": 1077, "type": "identifier", "text": "success", "parent": 1076, "children": [], "start_point": {"row": 282, "column": 4}, "end_point": {"row": 282, "column": 11}}, {"id": 1078, "type": "=", "text": "=", "parent": 1076, "children": [], "start_point": {"row": 282, "column": 12}, "end_point": {"row": 282, "column": 13}}, {"id": 1079, "type": "call_expression", "text": "pi_dht_read(type, pin, pHumidity, pTemperature)", "parent": 1076, "children": [1080, 1081], "start_point": {"row": 282, "column": 14}, "end_point": {"row": 282, "column": 61}}, {"id": 1080, "type": "identifier", "text": "pi_dht_read", "parent": 1079, "children": [], "start_point": {"row": 282, "column": 14}, "end_point": {"row": 282, "column": 25}}, {"id": 1081, "type": "argument_list", "text": "(type, pin, pHumidity, pTemperature)", "parent": 1079, "children": [1082, 1083, 1084, 1085], "start_point": {"row": 282, "column": 25}, "end_point": {"row": 282, "column": 61}}, {"id": 1082, "type": "identifier", "text": "type", "parent": 1081, "children": [], "start_point": {"row": 282, "column": 26}, "end_point": {"row": 282, "column": 30}}, {"id": 1083, "type": "identifier", "text": "pin", "parent": 1081, "children": [], "start_point": {"row": 282, "column": 32}, "end_point": {"row": 282, "column": 35}}, {"id": 1084, "type": "identifier", "text": "pHumidity", "parent": 1081, "children": [], "start_point": {"row": 282, "column": 37}, "end_point": {"row": 282, "column": 46}}, {"id": 1085, "type": "identifier", "text": "pTemperature", "parent": 1081, "children": [], "start_point": {"row": 282, "column": 48}, "end_point": {"row": 282, "column": 60}}, {"id": 1086, "type": "if_statement", "text": "if (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}", "parent": 1070, "children": [1087], "start_point": {"row": 283, "column": 4}, "end_point": {"row": 285, "column": 5}}, {"id": 1087, "type": "parenthesized_expression", "text": "(success)", "parent": 1086, "children": [1088], "start_point": {"row": 283, "column": 7}, "end_point": {"row": 283, "column": 16}}, {"id": 1088, "type": "identifier", "text": "success", "parent": 1087, "children": [], "start_point": {"row": 283, "column": 8}, "end_point": {"row": 283, "column": 15}}, {"id": 1089, "type": "assignment_expression", "text": "count = 0", "parent": 1086, "children": [1090, 1091, 1092], "start_point": {"row": 284, "column": 5}, "end_point": {"row": 284, "column": 14}}, {"id": 1090, "type": "identifier", "text": "count", "parent": 1089, "children": [], "start_point": {"row": 284, "column": 5}, "end_point": {"row": 284, "column": 10}}, {"id": 1091, "type": "=", "text": "=", "parent": 1089, "children": [], "start_point": {"row": 284, "column": 11}, "end_point": {"row": 284, "column": 12}}, {"id": 1092, "type": "number_literal", "text": "0", "parent": 1089, "children": [], "start_point": {"row": 284, "column": 13}, "end_point": {"row": 284, "column": 14}}, {"id": 1093, "type": "if_statement", "text": "if (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}", "parent": 1049, "children": [1094], "start_point": {"row": 287, "column": 3}, "end_point": {"row": 289, "column": 4}}, {"id": 1094, "type": "parenthesized_expression", "text": "(count > 0)", "parent": 1093, "children": [1095], "start_point": {"row": 287, "column": 6}, "end_point": {"row": 287, "column": 17}}, {"id": 1095, "type": "binary_expression", "text": "count > 0", "parent": 1094, "children": [1096, 1097, 1098], "start_point": {"row": 287, "column": 7}, "end_point": {"row": 287, "column": 16}}, {"id": 1096, "type": "identifier", "text": "count", "parent": 1095, "children": [], "start_point": {"row": 287, "column": 7}, "end_point": {"row": 287, "column": 12}}, {"id": 1097, "type": ">", "text": ">", "parent": 1095, "children": [], "start_point": {"row": 287, "column": 13}, "end_point": {"row": 287, "column": 14}}, {"id": 1098, "type": "number_literal", "text": "0", "parent": 1095, "children": [], "start_point": {"row": 287, "column": 15}, "end_point": {"row": 287, "column": 16}}, {"id": 1099, "type": "call_expression", "text": "sleep(1)", "parent": 1093, "children": [1100, 1101], "start_point": {"row": 288, "column": 4}, "end_point": {"row": 288, "column": 12}}, {"id": 1100, "type": "identifier", "text": "sleep", "parent": 1099, "children": [], "start_point": {"row": 288, "column": 4}, "end_point": {"row": 288, "column": 9}}, {"id": 1101, "type": "argument_list", "text": "(1)", "parent": 1099, "children": [1102], "start_point": {"row": 288, "column": 9}, "end_point": {"row": 288, "column": 12}}, {"id": 1102, "type": "number_literal", "text": "1", "parent": 1101, "children": [], "start_point": {"row": 288, "column": 10}, "end_point": {"row": 288, "column": 11}}, {"id": 1103, "type": "if_statement", "text": "if (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}", "parent": 1036, "children": [1104], "start_point": {"row": 291, "column": 2}, "end_point": {"row": 293, "column": 3}}, {"id": 1104, "type": "parenthesized_expression", "text": "(lockfd >= 0)", "parent": 1103, "children": [1105], "start_point": {"row": 291, "column": 5}, "end_point": {"row": 291, "column": 18}}, {"id": 1105, "type": "binary_expression", "text": "lockfd >= 0", "parent": 1104, "children": [1106, 1107, 1108], "start_point": {"row": 291, "column": 6}, "end_point": {"row": 291, "column": 17}}, {"id": 1106, "type": "identifier", "text": "lockfd", "parent": 1105, "children": [], "start_point": {"row": 291, "column": 6}, "end_point": {"row": 291, "column": 12}}, {"id": 1107, "type": ">=", "text": ">=", "parent": 1105, "children": [], "start_point": {"row": 291, "column": 13}, "end_point": {"row": 291, "column": 15}}, {"id": 1108, "type": "number_literal", "text": "0", "parent": 1105, "children": [], "start_point": {"row": 291, "column": 16}, "end_point": {"row": 291, "column": 17}}, {"id": 1109, "type": "call_expression", "text": "close_lockfile(lockfd)", "parent": 1103, "children": [1110, 1111], "start_point": {"row": 292, "column": 3}, "end_point": {"row": 292, "column": 25}}, {"id": 1110, "type": "identifier", "text": "close_lockfile", "parent": 1109, "children": [], "start_point": {"row": 292, "column": 3}, "end_point": {"row": 292, "column": 17}}, {"id": 1111, "type": "argument_list", "text": "(lockfd)", "parent": 1109, "children": [1112], "start_point": {"row": 292, "column": 17}, "end_point": {"row": 292, "column": 25}}, {"id": 1112, "type": "identifier", "text": "lockfd", "parent": 1111, "children": [], "start_point": {"row": 292, "column": 18}, "end_point": {"row": 292, "column": 24}}, {"id": 1113, "type": "return_statement", "text": "return success;", "parent": 976, "children": [1114], "start_point": {"row": 295, "column": 1}, "end_point": {"row": 295, "column": 16}}, {"id": 1114, "type": "identifier", "text": "success", "parent": 1113, "children": [], "start_point": {"row": 295, "column": 8}, "end_point": {"row": 295, "column": 15}}]}, "node_categories": {"declarations": {"functions": [52, 56, 122, 128, 130, 207, 209, 868, 870, 941, 943, 976, 978], "variables": [59, 66, 76, 133, 136, 139, 153, 170, 189, 212, 215, 218, 223, 240, 252, 292, 318, 321, 440, 446, 484, 517, 579, 652, 673, 873, 878, 946, 981, 984, 987, 992, 997, 1037, 1043], "classes": [77, 78], "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": []}, "statements": {"expressions": [71, 81, 84, 86, 88, 92, 93, 96, 97, 102, 103, 108, 111, 114, 117, 147, 148, 158, 162, 163, 164, 175, 176, 182, 183, 194, 199, 200, 229, 235, 245, 261, 265, 268, 272, 276, 280, 284, 288, 297, 303, 304, 308, 311, 329, 333, 339, 345, 346, 350, 353, 362, 366, 373, 379, 380, 384, 387, 396, 400, 407, 413, 414, 418, 421, 429, 433, 437, 453, 464, 468, 474, 480, 489, 502, 506, 510, 511, 512, 522, 523, 527, 531, 532, 536, 542, 545, 546, 547, 548, 552, 558, 562, 563, 569, 584, 585, 589, 591, 596, 597, 601, 607, 610, 611, 612, 613, 617, 619, 626, 630, 631, 633, 640, 642, 666, 670, 678, 679, 680, 687, 693, 694, 695, 701, 707, 708, 709, 713, 714, 715, 716, 717, 718, 719, 723, 727, 731, 735, 745, 749, 752, 758, 761, 764, 770, 776, 777, 782, 786, 789, 793, 797, 800, 805, 806, 811, 815, 816, 817, 818, 819, 825, 831, 835, 836, 837, 838, 839, 840, 841, 848, 854, 855, 856, 861, 883, 887, 892, 893, 897, 904, 911, 912, 913, 917, 923, 924, 928, 933, 950, 951, 952, 959, 964, 965, 966, 972, 1004, 1005, 1006, 1012, 1017, 1024, 1025, 1026, 1031, 1050, 1051, 1052, 1058, 1059, 1066, 1071, 1072, 1079, 1087, 1094, 1095, 1099, 1104, 1105, 1109], "assignments": [228, 234, 325, 336, 361, 370, 395, 404, 428, 455, 460, 471, 477, 493, 498, 557, 568, 574, 625, 639, 648, 662, 686, 700, 741, 781, 792, 810, 830, 860, 1063, 1076, 1089], "loops": [161, 324, 452, 459, 497, 661, 740, 1049], "conditionals": [38, 42, 46, 50, 57, 63, 67, 69, 72, 79, 80, 82, 85, 87, 89, 91, 94, 98, 99, 104, 105, 109, 110, 112, 113, 115, 116, 118, 119, 121, 124, 126, 131, 135, 138, 142, 144, 145, 151, 156, 159, 165, 167, 169, 173, 177, 180, 181, 184, 186, 192, 195, 198, 201, 205, 206, 210, 214, 217, 222, 227, 231, 237, 244, 246, 256, 257, 262, 264, 266, 269, 271, 273, 277, 279, 281, 285, 287, 289, 295, 298, 300, 302, 305, 309, 312, 320, 323, 326, 330, 332, 334, 337, 340, 342, 344, 347, 351, 354, 358, 363, 364, 367, 369, 371, 374, 376, 378, 381, 385, 388, 392, 397, 398, 401, 403, 405, 408, 410, 412, 415, 419, 422, 430, 431, 434, 436, 438, 443, 449, 454, 456, 461, 465, 467, 469, 472, 475, 476, 478, 481, 487, 490, 494, 499, 503, 505, 507, 509, 513, 514, 516, 520, 524, 525, 528, 529, 530, 533, 535, 537, 541, 543, 544, 549, 550, 553, 554, 556, 559, 560, 564, 565, 567, 570, 571, 573, 575, 582, 586, 587, 590, 592, 595, 598, 600, 602, 606, 608, 609, 614, 615, 618, 620, 624, 627, 628, 632, 634, 638, 641, 643, 647, 649, 656, 657, 663, 667, 669, 671, 676, 681, 688, 689, 692, 696, 697, 699, 702, 703, 706, 710, 720, 724, 728, 732, 736, 742, 746, 748, 750, 753, 757, 759, 760, 762, 763, 765, 769, 771, 772, 775, 778, 780, 784, 790, 795, 801, 804, 807, 809, 813, 820, 826, 833, 842, 849, 853, 857, 863, 871, 877, 881, 884, 886, 888, 889, 891, 894, 898, 903, 905, 907, 910, 914, 916, 918, 919, 922, 925, 927, 929, 934, 940, 944, 948, 949, 953, 955, 956, 960, 963, 967, 969, 973, 979, 983, 986, 991, 996, 1000, 1003, 1007, 1013, 1018, 1023, 1027, 1032, 1040, 1046, 1053, 1057, 1060, 1064, 1067, 1069, 1070, 1073, 1077, 1080, 1082, 1083, 1084, 1085, 1086, 1088, 1090, 1093, 1096, 1100, 1103, 1106, 1110, 1112, 1114], "returns": [120, 187, 197, 316, 359, 393, 426, 773, 866, 908, 937, 939, 1113], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 65, 95, 101, 107, 149, 152, 188, 203, 233, 239, 248, 251, 260, 275, 283, 291, 307, 314, 317, 328, 349, 356, 360, 383, 390, 394, 417, 424, 427, 445, 458, 463, 483, 492, 501, 539, 594, 604, 622, 636, 645, 660, 665, 683, 685, 691, 705, 711, 721, 725, 729, 733, 734, 738, 744, 755, 767, 774, 791, 802, 821, 823, 827, 829, 843, 844, 846, 850, 852, 858, 859, 865, 867, 890, 896, 900, 909, 921, 931, 936, 938, 958, 962, 971, 975, 1002, 1020, 1030, 1034, 1042, 1048, 1056, 1062, 1075, 1092, 1098, 1102, 1108], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 52, "universal_type": "function", "name": "tm", "text_snippet": "static const char *getLogHeader() {\n\tstatic char buff[] = \"YYYY-MM-DDTHH:MM:SS dht_read: \";\n\ttime_t "}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "getLogHeader()"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "#define DHT_READ_LOG(fmt, ...) printf(\"%s\" fmt, getLogHeader(), ##__VA_ARGS__ )\n"}, {"node_id": 128, "universal_type": "function", "name": "transitionHigh)", "text_snippet": "static uint32_t getTransitionMicros(int pin, bool transitionHigh) {\n\tuint32_t expectedValue = transi"}, {"node_id": 130, "universal_type": "function", "name": "transitionHigh)", "text_snippet": "getTransitionMicros(int pin, bool transitionHigh)"}, {"node_id": 207, "universal_type": "function", "name": "pi_dht_read", "text_snippet": "static int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) {\n\t*pTemperature = "}, {"node_id": 209, "universal_type": "function", "name": "pin,", "text_snippet": "pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature)"}, {"node_id": 868, "universal_type": "function", "name": "open_lockfile", "text_snippet": "static int open_lockfile(const char *filename) {\n\tint fd = open(filename, O_CREAT | O_RDONLY, 0600);"}, {"node_id": 870, "universal_type": "function", "name": "unknown", "text_snippet": "open_lockfile(const char *filename)"}, {"node_id": 941, "universal_type": "function", "name": "close_lockfile", "text_snippet": "static void close_lockfile(int fd) {\n\tif(flock(fd, LOCK_UN) == -1) {\n\t\tperror(\"Failed to unlock file"}, {"node_id": 943, "universal_type": "function", "name": "unknown", "text_snippet": "close_lockfile(int fd)"}, {"node_id": 976, "universal_type": "function", "name": "dht_read", "text_snippet": "int dht_read(int type, int pin, float *pHumidity, float *pTemperature) {\n\tint success = 0;\n\t// Valid"}, {"node_id": 978, "universal_type": "function", "name": "pin,", "text_snippet": "dht_read(int type, int pin, float *pHumidity, float *pTemperature)"}], "class_declarations": [{"node_id": 77, "universal_type": "class", "name": "tm", "text_snippet": "struct tm"}, {"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <errno.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <fcntl.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdbool.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdio.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <stdlib.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <string.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sys/file.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <time.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <unistd.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"bcm2708.h\"\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include \"../realtime.h\"\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include \"pi_dht_read.h\"\n"}, {"node_id": 34, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2014 Adafruit Industries\n// Author: <NAME>\n\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in 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#include <errno.h>\n#include <fcntl.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <sys/file.h>\n#include <time.h>\n#include <unistd.h>\n\n#include \"bcm2708.h\"\n#include \"../realtime.h\"\n#include \"pi_dht_read.h\"\n\n#define LOCKFILE \"/run/lock/dht_read.lck\"\n\n// Signal transition timeout in microsecond\n#define MAX_WAIT_US 400\n\n// Number of bytes to expect from the DHT.\n// They are humidity high, humidity low, temp high, temp low and checksum.\n#define DHT_BYTES 5\n\n// Number of bit pulses to expect from the DHT. Note that this is 41 because\n// the first pulse is a constant 80 microsecond pulse, with 40 pulses to represent\n// the data afterwards.\n#define DHT_PULSES (1 + DHT_BYTES * 8)\n\nstatic const char *getLogHeader() {\n\tstatic char buff[] = \"YYYY-MM-DDTHH:MM:SS dht_read: \";\n\ttime_t timeNow = time(NULL);\n\tstruct tm tmNow;\n\tlocaltime_r(&timeNow, &tmNow);\n\tsnprintf(buff, sizeof(buff), \"%04d-%02d-%02d %02d:%02d:%02d dht_read: \",\n\t\ttmNow.tm_year + 1900,\n\t\ttmNow.tm_mon + 1,\n\t\ttmNow.tm_mday,\n\t\ttmNow.tm_hour,\n\t\ttmNow.tm_min,\n\t\ttmNow.tm_sec);\n\treturn buff;\n}\n\n#define DHT_READ_LOG(fmt, ...) printf(\"%s\" fmt, getLogHeader(), ##__VA_ARGS__ )\n\n\n// Return time in microsecond when the (pin) input signal is changed to (transitionHigh).\n// Returns 0 if timeout. Otherwise non-zero microsecond is returned.\nstatic uint32_t getTransitionMicros(int pin, bool transitionHigh) {\n\tuint32_t expectedValue = transitionHigh ? (1 << pin) : 0;\n\tuint32_t startedMicros = pi_timer_micros();\n\twhile (pi_mmio_input(pin) != expectedValue) {\n\t\tuint32_t elapsedMicros = pi_timer_micros() - startedMicros;\n\t\tif (elapsedMicros >= MAX_WAIT_US) {\n\t\t\treturn 0; // Timeout!\n\t\t}\n\t}\n\tuint32_t nowMicros = pi_timer_micros();\n\t// If nowMicro is 0, which happens 1uS every 2^32 us(1 hour 11 minute 35 second),\n\t// return maximum uint32 value, which is one microsecond earier time.\n\treturn (nowMicros == 0) ? UINT32_MAX : nowMicros;\n}\n\nstatic int pi_dht_read(int type, int pin, float* pHumidity, float* pTemperature) {\n\t*pTemperature = 0.0f;\n\t*pHumidity = 0.0f;\n\n\t// Store pulse widths that each DHT bit pulse is low and high.\n\t// Make sure array is initialized to start at zero.\n\tuint32_t lowMicros[DHT_PULSES + 1] = {0};\n\tuint32_t highMicros[DHT_PULSES] = {0};\n\n\t// Set pin to output.\n\tpi_mmio_set_output(pin);\n\n\t// Bump up process priority and change scheduler to try to try to make process more 'real time'.\n\tset_max_priority();\n\n\t// Set pin high for ~500 milliseconds.\n\tpi_mmio_set_high(pin);\n\tsleep_milliseconds(500);\n\n\t// The next calls are timing critical and care should be taken\n\t// to ensure no unnecssary work is done below.\n\n\t// Set pin low for ~20 milliseconds.\n\tpi_mmio_set_low(pin);\n\tbusy_wait_milliseconds(20);\n\n\t// Set pin at input.\n\tpi_mmio_set_input(pin);\n\n\t// Need a very short delay before reading pins or else value is sometimes still low.\n\tpi_timer_sleep_micros( 2 );\n\n\t// Wait for DHT to pull pin low.\n\tuint32_t lowStartedUs = getTransitionMicros(pin, false);\n\tif (lowStartedUs == 0) {\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for response low\\n\");\n\t\treturn 0;\n\t}\n\n\t// Record pulse widths for the expected result bits.\n\tint i;\n\tuint32_t highStartedUs;\n\tfor (i=0; i < DHT_PULSES; i++) {\n\n\t\t// Count how long pin is low and store in lowMicros[i]\n\t\thighStartedUs = getTransitionMicros(pin, true);\n\t\tif (highStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for high[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\tlowMicros[i] = highStartedUs - lowStartedUs; \n\n\t\t// Count how long pin is high and store in highMicros[i]\n\t\tlowStartedUs = getTransitionMicros(pin, false);\n\t\tif (lowStartedUs == 0) {\n\t\t\tset_default_priority();\n\t\t\tDHT_READ_LOG(\"Timeout waiting for low[%d]\\n\", i);\n\t\t\treturn 0;\n\t\t}\n\t\thighMicros[i] = lowStartedUs - highStartedUs;\n\t}\n\t// Count how log pin is low and store the final lowMicros\n\thighStartedUs = getTransitionMicros(pin, true);\n\tif (highStartedUs == 0) {\n\t\t// Timeout waiting for response.\n\t\tset_default_priority();\n\t\tDHT_READ_LOG(\"Timeout waiting for high[release]\\n\");\n\t\treturn 0;\n\t}\n\tlowMicros[DHT_PULSES] = highStartedUs - lowStartedUs; \n\n\t// Done with timing critical code, now interpret the results.\n\n\t// Drop back to normal priority.\n\tset_default_priority();\n\n\tuint32_t threshold = 0;\n\tbool needAdjust = true;\n\twhile (needAdjust) {\n\t\t// Compute the average low pulse width to use as a 50 microsecond reference threshold.\n\t\t// Ignore the first reading because it is a constant 80 microsecond pulse.\n\t\tthreshold = 0;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\tthreshold += lowMicros[i];\n\t\t}\n\t\tthreshold /= DHT_PULSES-1;\n\t\tuint32_t lowHighThreshold = threshold * 2;\n\t\t\n\t\t// Adjust high pulse widths for the interrupts\n\t\tneedAdjust = false;\n\t\tfor (i=1; i < DHT_PULSES; i++) {\n\t\t\t// If the high width is less than the threshold...\n\t\t\tif (highMicros[i] < threshold) {\n\t\t\t\tuint32_t lowHigh = lowMicros[i] + highMicros[i];\n\t\t\t\t// But the (low + high) width is equal to or more than the threshold...\n\t\t\t\tif (lowHigh >= lowHighThreshold) {\n\t\t\t\t\t// Interrupted during high detection. Add interrupt time to highMicors\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i] - threshold;\n\t\t\t\t\tlowMicros[i] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t} else { // If the high width is equal or more than the threshold...\n\t\t\t\tuint32_t lowHigh = highMicros[i] + lowMicros[i+1];\n\t\t\t\t// But the (high+low) width is less than the threshold\n\t\t\t\tif (lowHigh < lowHighThreshold) {\n\t\t\t\t\t// Interrupted during low detection. Subtract interrupt time from highMicros.\n\t\t\t\t\tDHT_READ_LOG(\"Adjusting bit[%d] : %u -> %u\\n\", i, highMicros[i], (highMicros[i] + lowMicros[i+1] - threshold));\n\t\t\t\t\thighMicros[i] += lowMicros[i+1] - threshold;\n\t\t\t\t\tlowMicros[i+1] = threshold;\n\t\t\t\t\tneedAdjust = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} // for adjust loop\n\t} // while needAdjust\n\n\t// Interpret each high pulse as a 0 or 1 by comparing it to the 50us reference.\n\t// If the count is less than 50us it must be a ~28us 0 pulse, and if it's higher\n\t// then it must be a ~70us 1 pulse.\n\tuint8_t data[DHT_BYTES] = {0};\n\tfor (i=1; i < DHT_PULSES; i++) {\n\t\tint index = (i-1)/8;\n\t\tdata[index] <<= 1;\n\t\tif (highMicros[i] >= threshold) {\n\t\t\t// One bit for long pulse.\n\t\t\tdata[index] |= 1;\n\t\t}\n\t\t// Else zero bit for short pulse.\n\t}\n\n\t// Useful debug info:\n\t//printf(\"Data: 0x%x 0x%x 0x%x 0x%x 0x%x\\n\", data[0], data[1], data[2], data[3], data[4]);\n\n\t// Verify checksum of received data.\n\tif (data[4] != ((data[0] + data[1] + data[2] + data[3]) & 0xFF)) {\n\t\tDHT_READ_LOG(\"Checksum error\\n\");\n\t\tfor (i=0; i <DHT_PULSES; i++) DHT_READ_LOG(\"%2d,%4u,%4u\\n\", i, lowMicros[i], highMicros[i]);\n\t\tDHT_READ_LOG(\"%2d,%4u\\n\", DHT_PULSES, lowMicros[DHT_PULSES]);\n\t\treturn 0;\n\t}\n\tif (type == DHT11) {\n\t\t// Get humidity and temp for DHT11 sensor.\n\t\t*pHumidity = (float)data[0];\n\t\t*pTemperature = (float)data[2];\n\t} else if (type == DHT22) {\n\t\t// Calculate humidity and temp for DHT22 sensor.\n\t\t*pHumidity = (data[0] * 256 + data[1]) / 10.0f;\n\t\t*pTemperature = ((data[2] & 0x7F) * 256 + data[3]) / 10.0f;\n\t\tif (data[2] & 0x80) {\n\t\t\t*pTemperature *= -1.0f;\n\t\t}\n\t}\n\treturn 1;\n}\n\nstatic int open_lockfile(const char *filename) {\n\tint fd = open(filename, O_CREAT | O_RDONLY, 0600);\n\tif (fd < 0) {\n\t\tprintf(\"Failed to access lock file: %s\\nerror: %s\\n\", filename, strerror(errno));\n\t\treturn -1;\n\t}\n\tif (flock(fd, LOCK_EX | LOCK_NB) == -1) {\n\t\tif(errno == EWOULDBLOCK) {\n\t\t\tprintf(\"Lock file is in use\\n\");\n\t\t}\n\t\tperror(\"Flock failed\");\n\t\treturn -1;\n\t}\n\treturn fd;\n}\n\nstatic void close_lockfile(int fd) {\n\tif(flock(fd, LOCK_UN) == -1) {\n\t\tperror(\"Failed to unlock file\");\n\t}\n\tif(close(fd) == -1) {\n\t\tperror(\"Closing descriptor on lock file failed\");\n\t}\n}\n\nint dht_read(int type, int pin, float *pHumidity, float *pTemperature) {\n\tint success = 0;\n\t// Validate humidity and temperature arguments and set them to zero.\n\tif (pHumidity == NULL || pTemperature == NULL) {\n\t\tDHT_READ_LOG(\"bad argument\\n\");\n\t} else \n\t// Initialize GPIO library.\n\tif (pi_mmio_init() < 0) {\n\t\tDHT_READ_LOG(\"MMIO init failed. May not be root\\n\");\n\t} else {\n\t\tint lockfd = -1;\n\t\tint count = 10;\n\t\twhile (count-- > 0) {\n\t\t\tif (lockfd < 0) {\n\t\t\t\tlockfd = open_lockfile(LOCKFILE);\n\t\t\t}\n\t\t\tif (lockfd >= 0) {\n\t\t\t\tsuccess = pi_dht_read(type, pin, pHumidity, pTemperature);\n\t\t\t\tif (success) {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count > 0) {\n\t\t\t\tsleep(1); // wait 1 sec to refresh\n\t\t\t}\n\t\t} // while count > 0\n\t\tif (lockfd >= 0) {\n\t\t\tclose_lockfile(lockfd);\n\t\t}\n\t} // successfully initialized GPIO library\n\treturn success;\n}\n"}
80,765
c
#pragma once namespace StringExt { using VM = RE::BSScript::IVirtualMachine; using StackID = RE::VMStackID; using Severity = RE::BSScript::ErrorLogger::Severity; uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start); RE::BSFixedString IntToHexString(RE::StaticFunctionTag*, uint32_t a_num); RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str); bool RegisterFuncs(VM* a_vm); }
39.17
12
(translation_unit) "#pragma once\n\nnamespace StringExt\n{\n using VM = RE::BSScript::IVirtualMachine;\n using StackID = RE::VMStackID;\n using Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n RE::BSFixedString IntToHexString(RE::StaticFunctionTag*, uint32_t a_num);\n RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str);\n\n bool RegisterFuncs(VM* a_vm);\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (function_definition) "namespace StringExt\n{\n using VM = RE::BSScript::IVirtualMachine;\n using StackID = RE::VMStackID;\n using Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n RE::BSFixedString IntToHexString(RE::StaticFunctionTag*, uint32_t a_num);\n RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str);\n\n bool RegisterFuncs(VM* a_vm);\n}" (type_identifier) "namespace" (identifier) "StringExt" (compound_statement) "{\n using VM = RE::BSScript::IVirtualMachine;\n using StackID = RE::VMStackID;\n using Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n RE::BSFixedString IntToHexString(RE::StaticFunctionTag*, uint32_t a_num);\n RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str);\n\n bool RegisterFuncs(VM* a_vm);\n}" ({) "{" (declaration) "using VM = RE::BSScript::IVirtualMachine;" (type_identifier) "using" (init_declarator) "VM = RE::BSScript::IVirtualMachine" (identifier) "VM" (=) "=" (ERROR) "RE::BSScript::" (identifier) "RE" (:) ":" (:) ":" (identifier) "BSScript" (:) ":" (:) ":" (identifier) "IVirtualMachine" (;) ";" (declaration) "using StackID = RE::VMStackID;" (type_identifier) "using" (init_declarator) "StackID = RE::VMStackID" (identifier) "StackID" (=) "=" (ERROR) "RE::" (identifier) "RE" (:) ":" (:) ":" (identifier) "VMStackID" (;) ";" (declaration) "using Severity = RE::BSScript::ErrorLogger::Severity;" (type_identifier) "using" (init_declarator) "Severity = RE::BSScript::ErrorLogger::Severity" (identifier) "Severity" (=) "=" (ERROR) "RE::BSScript::ErrorLogger::" (identifier) "RE" (:) ":" (:) ":" (identifier) "BSScript" (:) ":" (:) ":" (identifier) "ErrorLogger" (:) ":" (:) ":" (identifier) "Severity" (;) ";" (declaration) "uint32_t CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);" (primitive_type) "uint32_t" (function_declarator) "CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start)" (identifier) "CalcCRC32Hash" (parameter_list) "(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start)" (() "(" (parameter_declaration) "RE::StaticFunctionTag*" (type_identifier) "RE" (ERROR) "::StaticFunctionTag" (:) ":" (:) ":" (identifier) "StaticFunctionTag" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "RE::BSFixedString a_str" (type_identifier) "RE" (ERROR) "::BSFixedString" (:) ":" (:) ":" (identifier) "BSFixedString" (identifier) "a_str" (,) "," (parameter_declaration) "uint32_t a_start" (primitive_type) "uint32_t" (identifier) "a_start" ()) ")" (;) ";" (labeled_statement) "RE::BSFixedString IntToHexString(RE::StaticFunctionTag*, uint32_t a_num);" (statement_identifier) "RE" (ERROR) "::BSFixedString IntToHexString(RE:" (:) ":" (:) ":" (type_identifier) "BSFixedString" (identifier) "IntToHexString" (() "(" (type_identifier) "RE" (:) ":" (:) ":" (ERROR) "StaticFunctionTag*," (identifier) "StaticFunctionTag" (*) "*" (,) "," (declaration) "uint32_t a_num);" (primitive_type) "uint32_t" (identifier) "a_num" (ERROR) ")" ()) ")" (;) ";" (ERROR) "RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::" (comma_expression) "RE::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE" (identifier) "RE" (ERROR) "::BSFixedString LocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*" (:) ":" (:) ":" (type_identifier) "BSFixedString" (identifier) "LocalizeString" (() "(" (parameter_declaration) "VM* a_vm" (type_identifier) "VM" (pointer_declarator) "* a_vm" (*) "*" (identifier) "a_vm" (,) "," (parameter_declaration) "StackID a_stackID" (type_identifier) "StackID" (identifier) "a_stackID" (,) "," (parameter_declaration) "RE" (type_identifier) "RE" (:) ":" (:) ":" (identifier) "StaticFunctionTag" (*) "*" (,) "," (identifier) "RE" (:) ":" (:) ":" (declaration) "BSFixedString a_str);" (type_identifier) "BSFixedString" (identifier) "a_str" (ERROR) ")" ()) ")" (;) ";" (declaration) "bool RegisterFuncs(VM* a_vm);" (primitive_type) "bool" (function_declarator) "RegisterFuncs(VM* a_vm)" (identifier) "RegisterFuncs" (parameter_list) "(VM* a_vm)" (() "(" (parameter_declaration) "VM* a_vm" (type_identifier) "VM" (pointer_declarator) "* a_vm" (*) "*" (identifier) "a_vm" ()) ")" (;) ";" (}) "}"
149
11
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 39.17, "nodes": 96, "errors": 0, "source_hash": "45fcaa0a3a83bfe36ab0ea30f3d8dbd50ead320d22d98de399b79a55ef19c55d", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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 StringExt\n{\n\tusing VM = RE::BSScript::IVirtualMachine;\n\tusing StackID = RE::VMStackID;\n\tusing Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n\tuint32_t\t\t\t\tCalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n\tRE::BSFixedString\tIntToHexString(RE::StaticFunctionTag*, uint32_t a_num);\n\tRE::BSFixedString\tLocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str);\n\n\tbool RegisterFuncs(VM* a_vm);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"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": "StringExt", "parent": 3, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 19}}, {"id": 6, "type": "declaration", "text": "using VM = RE::BSScript::IVirtualMachine;", "parent": 3, "children": [7, 8], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 42}}, {"id": 7, "type": "type_identifier", "text": "using", "parent": 6, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "init_declarator", "text": "VM = RE::BSScript::IVirtualMachine", "parent": 6, "children": [9, 10, 11, 14], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 41}}, {"id": 9, "type": "identifier", "text": "VM", "parent": 8, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 9}}, {"id": 10, "type": "=", "text": "=", "parent": 8, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 11}}, {"id": 11, "type": "ERROR", "text": "RE::BSScript::", "parent": 8, "children": [12, 13], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 26}}, {"id": 12, "type": "identifier", "text": "RE", "parent": 11, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 14}}, {"id": 13, "type": "identifier", "text": "BSScript", "parent": 11, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 24}}, {"id": 14, "type": "identifier", "text": "IVirtualMachine", "parent": 8, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 41}}, {"id": 15, "type": "declaration", "text": "using StackID = RE::VMStackID;", "parent": 3, "children": [16, 17], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 31}}, {"id": 16, "type": "type_identifier", "text": "using", "parent": 15, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 6}}, {"id": 17, "type": "init_declarator", "text": "StackID = RE::VMStackID", "parent": 15, "children": [18, 19, 20, 22], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 30}}, {"id": 18, "type": "identifier", "text": "StackID", "parent": 17, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 14}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 16}}, {"id": 20, "type": "ERROR", "text": "RE::", "parent": 17, "children": [21], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 21}}, {"id": 21, "type": "identifier", "text": "RE", "parent": 20, "children": [], "start_point": {"row": 5, "column": 17}, "end_point": {"row": 5, "column": 19}}, {"id": 22, "type": "identifier", "text": "VMStackID", "parent": 17, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 30}}, {"id": 23, "type": "declaration", "text": "using Severity = RE::BSScript::ErrorLogger::Severity;", "parent": 3, "children": [24, 25], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 54}}, {"id": 24, "type": "type_identifier", "text": "using", "parent": 23, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 6}}, {"id": 25, "type": "init_declarator", "text": "Severity = RE::BSScript::ErrorLogger::Severity", "parent": 23, "children": [26, 27, 28, 32], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 53}}, {"id": 26, "type": "identifier", "text": "Severity", "parent": 25, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 15}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 17}}, {"id": 28, "type": "ERROR", "text": "RE::BSScript::ErrorLogger::", "parent": 25, "children": [29, 30, 31], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 45}}, {"id": 29, "type": "identifier", "text": "RE", "parent": 28, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 20}}, {"id": 30, "type": "identifier", "text": "BSScript", "parent": 28, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 30}}, {"id": 31, "type": "identifier", "text": "ErrorLogger", "parent": 28, "children": [], "start_point": {"row": 6, "column": 32}, "end_point": {"row": 6, "column": 43}}, {"id": 32, "type": "identifier", "text": "Severity", "parent": 25, "children": [], "start_point": {"row": 6, "column": 45}, "end_point": {"row": 6, "column": 53}}, {"id": 33, "type": "declaration", "text": "uint32_t\t\t\t\tCalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);", "parent": 3, "children": [34, 35], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 94}}, {"id": 34, "type": "primitive_type", "text": "uint32_t", "parent": 33, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 9}}, {"id": 35, "type": "function_declarator", "text": "CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start)", "parent": 33, "children": [36, 37], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 93}}, {"id": 36, "type": "identifier", "text": "CalcCRC32Hash", "parent": 35, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 26}}, {"id": 37, "type": "parameter_list", "text": "(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start)", "parent": 35, "children": [38, 44, 49], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 93}}, {"id": 38, "type": "parameter_declaration", "text": "RE::StaticFunctionTag*", "parent": 37, "children": [39, 40, 42], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 49}}, {"id": 39, "type": "type_identifier", "text": "RE", "parent": 38, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 29}}, {"id": 40, "type": "ERROR", "text": "::StaticFunctionTag", "parent": 38, "children": [41], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 48}}, {"id": 41, "type": "identifier", "text": "StaticFunctionTag", "parent": 40, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 48}}, {"id": 42, "type": "abstract_pointer_declarator", "text": "*", "parent": 38, "children": [43], "start_point": {"row": 9, "column": 48}, "end_point": {"row": 9, "column": 49}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 9, "column": 48}, "end_point": {"row": 9, "column": 49}}, {"id": 44, "type": "parameter_declaration", "text": "RE::BSFixedString a_str", "parent": 37, "children": [45, 46, 48], "start_point": {"row": 9, "column": 51}, "end_point": {"row": 9, "column": 74}}, {"id": 45, "type": "type_identifier", "text": "RE", "parent": 44, "children": [], "start_point": {"row": 9, "column": 51}, "end_point": {"row": 9, "column": 53}}, {"id": 46, "type": "ERROR", "text": "::BSFixedString", "parent": 44, "children": [47], "start_point": {"row": 9, "column": 53}, "end_point": {"row": 9, "column": 68}}, {"id": 47, "type": "identifier", "text": "BSFixedString", "parent": 46, "children": [], "start_point": {"row": 9, "column": 55}, "end_point": {"row": 9, "column": 68}}, {"id": 48, "type": "identifier", "text": "a_str", "parent": 44, "children": [], "start_point": {"row": 9, "column": 69}, "end_point": {"row": 9, "column": 74}}, {"id": 49, "type": "parameter_declaration", "text": "uint32_t a_start", "parent": 37, "children": [50, 51], "start_point": {"row": 9, "column": 76}, "end_point": {"row": 9, "column": 92}}, {"id": 50, "type": "primitive_type", "text": "uint32_t", "parent": 49, "children": [], "start_point": {"row": 9, "column": 76}, "end_point": {"row": 9, "column": 84}}, {"id": 51, "type": "identifier", "text": "a_start", "parent": 49, "children": [], "start_point": {"row": 9, "column": 85}, "end_point": {"row": 9, "column": 92}}, {"id": 52, "type": "labeled_statement", "text": "RE::BSFixedString\tIntToHexString(RE::StaticFunctionTag*, uint32_t a_num);", "parent": 3, "children": [53, 54, 58, 61], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 74}}, {"id": 53, "type": "statement_identifier", "text": "RE", "parent": 52, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 3}}, {"id": 54, "type": "ERROR", "text": "::BSFixedString\tIntToHexString(RE:", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 37}}, {"id": 55, "type": "type_identifier", "text": "BSFixedString", "parent": 54, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 18}}, {"id": 56, "type": "identifier", "text": "IntToHexString", "parent": 54, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 33}}, {"id": 57, "type": "type_identifier", "text": "RE", "parent": 54, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 36}}, {"id": 58, "type": "ERROR", "text": "StaticFunctionTag*,", "parent": 52, "children": [59, 60], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 57}}, {"id": 59, "type": "identifier", "text": "StaticFunctionTag", "parent": 58, "children": [], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 55}}, {"id": 60, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 10, "column": 55}, "end_point": {"row": 10, "column": 56}}, {"id": 61, "type": "declaration", "text": "uint32_t a_num);", "parent": 52, "children": [62, 63], "start_point": {"row": 10, "column": 58}, "end_point": {"row": 10, "column": 74}}, {"id": 62, "type": "primitive_type", "text": "uint32_t", "parent": 61, "children": [], "start_point": {"row": 10, "column": 58}, "end_point": {"row": 10, "column": 66}}, {"id": 63, "type": "identifier", "text": "a_num", "parent": 61, "children": [], "start_point": {"row": 10, "column": 67}, "end_point": {"row": 10, "column": 72}}, {"id": 64, "type": "ERROR", "text": "RE::BSFixedString\tLocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::", "parent": 3, "children": [65], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 91}}, {"id": 65, "type": "comma_expression", "text": "RE::BSFixedString\tLocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE", "parent": 64, "children": [66, 67, 82], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 89}}, {"id": 66, "type": "identifier", "text": "RE", "parent": 65, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 3}}, {"id": 67, "type": "ERROR", "text": "::BSFixedString\tLocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*", "parent": 65, "children": [68, 69, 70, 75, 78, 80, 81], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 85}}, {"id": 68, "type": "type_identifier", "text": "BSFixedString", "parent": 67, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 18}}, {"id": 69, "type": "identifier", "text": "LocalizeString", "parent": 67, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 33}}, {"id": 70, "type": "parameter_declaration", "text": "VM* a_vm", "parent": 67, "children": [71, 72], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 42}}, {"id": 71, "type": "type_identifier", "text": "VM", "parent": 70, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 36}}, {"id": 72, "type": "pointer_declarator", "text": "* a_vm", "parent": 70, "children": [73, 74], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 42}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 11, "column": 36}, "end_point": {"row": 11, "column": 37}}, {"id": 74, "type": "identifier", "text": "a_vm", "parent": 72, "children": [], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 42}}, {"id": 75, "type": "parameter_declaration", "text": "StackID a_stackID", "parent": 67, "children": [76, 77], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 61}}, {"id": 76, "type": "type_identifier", "text": "StackID", "parent": 75, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 51}}, {"id": 77, "type": "identifier", "text": "a_stackID", "parent": 75, "children": [], "start_point": {"row": 11, "column": 52}, "end_point": {"row": 11, "column": 61}}, {"id": 78, "type": "parameter_declaration", "text": "RE", "parent": 67, "children": [79], "start_point": {"row": 11, "column": 63}, "end_point": {"row": 11, "column": 65}}, {"id": 79, "type": "type_identifier", "text": "RE", "parent": 78, "children": [], "start_point": {"row": 11, "column": 63}, "end_point": {"row": 11, "column": 65}}, {"id": 80, "type": "identifier", "text": "StaticFunctionTag", "parent": 67, "children": [], "start_point": {"row": 11, "column": 67}, "end_point": {"row": 11, "column": 84}}, {"id": 81, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 11, "column": 84}, "end_point": {"row": 11, "column": 85}}, {"id": 82, "type": "identifier", "text": "RE", "parent": 65, "children": [], "start_point": {"row": 11, "column": 87}, "end_point": {"row": 11, "column": 89}}, {"id": 83, "type": "declaration", "text": "BSFixedString a_str);", "parent": 3, "children": [84, 85], "start_point": {"row": 11, "column": 91}, "end_point": {"row": 11, "column": 112}}, {"id": 84, "type": "type_identifier", "text": "BSFixedString", "parent": 83, "children": [], "start_point": {"row": 11, "column": 91}, "end_point": {"row": 11, "column": 104}}, {"id": 85, "type": "identifier", "text": "a_str", "parent": 83, "children": [], "start_point": {"row": 11, "column": 105}, "end_point": {"row": 11, "column": 110}}, {"id": 86, "type": "declaration", "text": "bool RegisterFuncs(VM* a_vm);", "parent": 3, "children": [87, 88], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 30}}, {"id": 87, "type": "primitive_type", "text": "bool", "parent": 86, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 5}}, {"id": 88, "type": "function_declarator", "text": "RegisterFuncs(VM* a_vm)", "parent": 86, "children": [89, 90], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 29}}, {"id": 89, "type": "identifier", "text": "RegisterFuncs", "parent": 88, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 19}}, {"id": 90, "type": "parameter_list", "text": "(VM* a_vm)", "parent": 88, "children": [91], "start_point": {"row": 13, "column": 19}, "end_point": {"row": 13, "column": 29}}, {"id": 91, "type": "parameter_declaration", "text": "VM* a_vm", "parent": 90, "children": [92, 93], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 28}}, {"id": 92, "type": "type_identifier", "text": "VM", "parent": 91, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 22}}, {"id": 93, "type": "pointer_declarator", "text": "* a_vm", "parent": 91, "children": [94, 95], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 23}}, {"id": 95, "type": "identifier", "text": "a_vm", "parent": 93, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 28}}]}, "node_categories": {"declarations": {"functions": [3, 35, 88], "variables": [6, 15, 23, 33, 38, 44, 49, 61, 70, 75, 78, 83, 86, 91], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [65], "assignments": [], "loops": [], "conditionals": [4, 5, 7, 9, 12, 13, 14, 16, 18, 21, 22, 24, 26, 29, 30, 31, 32, 36, 39, 41, 45, 47, 48, 51, 53, 55, 56, 57, 59, 63, 66, 68, 69, 71, 74, 76, 77, 79, 80, 82, 84, 85, 89, 92, 95], "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": "RegisterFuncs", "text_snippet": "namespace StringExt\n{\n\tusing VM = RE::BSScript::IVirtualMachine;\n\tusing StackID = RE::VMStackID;\n\tus"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "CalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start)"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "RegisterFuncs(VM* a_vm)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n\nnamespace StringExt\n{\n\tusing VM = RE::BSScript::IVirtualMachine;\n\tusing StackID = RE::VMStackID;\n\tusing Severity = RE::BSScript::ErrorLogger::Severity;\n\n\n\tuint32_t\t\t\t\tCalcCRC32Hash(RE::StaticFunctionTag*, RE::BSFixedString a_str, uint32_t a_start);\n\tRE::BSFixedString\tIntToHexString(RE::StaticFunctionTag*, uint32_t a_num);\n\tRE::BSFixedString\tLocalizeString(VM* a_vm, StackID a_stackID, RE::StaticFunctionTag*, RE::BSFixedString a_str);\n\n\tbool RegisterFuncs(VM* a_vm);\n}\n"}
80,766
c
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $Workfile: $ // $Date: $ // //----------------------------------------------------------------------------- // $Log: $ // // $NoKeywords: $ //=============================================================================// #pragma once #include "BoundBox.h" #include "MapClass.h" class CCullTreeNode; class CCullTreeNode : public BoundBox { public: CCullTreeNode(void); ~CCullTreeNode(void); // // Children. // inline int GetChildCount(void) { return (m_Children.Count()); } inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); } void AddCullTreeChild(CCullTreeNode *pChild); // // Objects. // inline int GetObjectCount(void) { return (m_Objects.Count()); } inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); } void AddCullTreeObject(CMapClass *pObject); void AddCullTreeObjectRecurse(CMapClass *pObject); CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject); void RemoveAllCullTreeObjects(void); void RemoveAllCullTreeObjectsRecurse(void); void RemoveCullTreeObject(CMapClass *pObject); void RemoveCullTreeObjectRecurse(CMapClass *pObject); void UpdateAllCullTreeObjects(void); void UpdateAllCullTreeObjectsRecurse(void); void UpdateCullTreeObject(CMapClass *pObject); void UpdateCullTreeObjectRecurse(CMapClass *pObject); protected: CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree. CMapObjectList m_Objects; // The objects contained in this node. };
24.41
70
(translation_unit) "========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// \n// \n// Purpose: \n// \n// $Workfile: $ \n// $Date: $ \n// \n//----------------------------------------------------------------------------- \n// $Log: $ \n// \n// $NoKeywords: $ \n//=============================================================================// \n \n#pragma once \n \n#include "BoundBox.h" \n#include "MapClass.h" \n \nclass CCullTreeNode; \n \nclass CCullTreeNode : public BoundBox { \npublic: \n \n CCullTreeNode(void); \n \n ~CCullTreeNode(void); \n \n // \n // Children. \n // \n inline int GetChildCount(void) { return (m_Children.Count()); } \n \n inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); } \n \n void AddCullTreeChild(CCullTreeNode *pChild); \n \n // \n // Objects. \n // \n inline int GetObjectCount(void) { return (m_Objects.Count()); } \n \n inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); } \n \n void AddCullTreeObject(CMapClass *pObject); \n \n void AddCullTreeObjectRecurse(CMapClass *pObject); \n \n CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject); \n \n void RemoveAllCullTreeObjects(void); \n \n void RemoveAllCullTreeObjectsRecurse(void); \n \n void RemoveCullTreeObject(CMapClass *pObject); \n \n void RemoveCullTreeObjectRecurse(CMapClass *pObject); \n \n void UpdateAllCullTreeObjects(void); \n \n void UpdateAllCullTreeObjectsRecurse(void); \n \n void UpdateCullTreeObject(CMapClass *pObject); \n \n void UpdateCullTreeObjectRecurse(CMapClass *pObject); \n \nprotected: \n \n CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree. \n CMapObjectList m_Objects; // The objects contained in this node. \n}; \n \n" (comment) "========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// \n// " (comment) "// " (comment) "urpose: \n// " (comment) "// " (comment) "Workfile: $ \n// " (comment) "Date: $ \n// " (comment) "//-" (comment) "--------------------------------------------------------------------------- \n// " (comment) "Log: $ \n// " (comment) "// " (comment) "NoKeywords: $ \n//=" (comment) "===========================================================================// \n \n#" (preproc_call) "gma once \n \n#i" (preproc_directive) "gma onc" (preproc_arg) " \n \n#" (preproc_include) "lude "BoundBox.h" \n#inc" (#include) "lude "Bo" (string_literal) "ndBox.h" \n#i" (") "n" (string_content) "dBox.h" \n#" (") "i" (preproc_include) "lude "MapClass.h" \n \ncl" (#include) "lude "Ma" (string_literal) "Class.h" \n \n" (") "C" (string_content) "lass.h" \n " (") "\n" (declaration) "s CCullTreeNode; \n \n" (type_identifier) "s CCu" (identifier) "lTreeNode; \n " (;) "\n" (function_definition) "s CCullTreeNode : public BoundBox { \npublic: \n \n CCullTreeNode(void); \n \n ~CCullTreeNode(void); \n \n // \n // Children. \n // \n inline int GetChildCount(void) { return (m_Children.Count()); } \n \n inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); } \n \n void AddCullTreeChild(CCullTreeNode *pChild); \n \n // \n // Objects. \n // \n inline int GetObjectCount(void) { return (m_Objects.Count()); } \n \n inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); } \n \n void AddCullTreeObject(CMapClass *pObject); \n \n void AddCullTreeObjectRecurse(CMapClass *pObject); \n \n CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject); \n \n void RemoveAllCullTreeObjects(void); \n \n void RemoveAllCullTreeObjectsRecurse(void); \n \n void RemoveCullTreeObject(CMapClass *pObject); \n \n void RemoveCullTreeObjectRecurse(CMapClass *pObject); \n \n void UpdateAllCullTreeObjects(void); \n \n void UpdateAllCullTreeObjectsRecurse(void); \n \n void UpdateCullTreeObject(CMapClass *pObject); \n \n void UpdateCullTreeObjectRecurse(CMapClass *pObject); \n \nprotected: \n \n CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree. \n CMapObjectList m_Objects; // The objects contained in this node. \n}; \n " (type_identifier) "s CCu" (identifier) "lTreeNode : p" (ERROR) "blic BoundBox { \n" (:) "b" (identifier) "ic Bou" (identifier) "dBox { \n" (compound_statement) "ublic: \n \n CCullTreeNode(void); \n \n ~CCullTreeNode(void); \n \n // \n // Children. \n // \n inline int GetChildCount(void) { return (m_Children.Count()); } \n \n inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); } \n \n void AddCullTreeChild(CCullTreeNode *pChild); \n \n // \n // Objects. \n // \n inline int GetObjectCount(void) { return (m_Objects.Count()); } \n \n inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); } \n \n void AddCullTreeObject(CMapClass *pObject); \n \n void AddCullTreeObjectRecurse(CMapClass *pObject); \n \n CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject); \n \n void RemoveAllCullTreeObjects(void); \n \n void RemoveAllCullTreeObjectsRecurse(void); \n \n void RemoveCullTreeObject(CMapClass *pObject); \n \n void RemoveCullTreeObjectRecurse(CMapClass *pObject); \n \n void UpdateAllCullTreeObjects(void); \n \n void UpdateAllCullTreeObjectsRecurse(void); \n \n void UpdateCullTreeObject(CMapClass *pObject); \n \n void UpdateCullTreeObjectRecurse(CMapClass *pObject); \n \nprotected: \n \n CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree. \n CMapObjectList m_Objects; // The objects contained in this node. \n}; \n " ({) "u" (labeled_statement) "ic: \n \n CCullTreeNode(void); \n \n" (statement_identifier) "ic: \n " (:) "\n" (expression_statement) "lTreeNode(void); \n \n" (call_expression) "lTreeNode(void); \n " (identifier) "lTreeNode(voi" (argument_list) "d); \n " (() "d" (identifier) "); \n" ()) " " (;) "\n" (expression_statement) "llTreeNode(void); \n \n" (unary_expression) "llTreeNode(void); \n " (~) "l" (call_expression) "lTreeNode(void); \n " (identifier) "lTreeNode(voi" (argument_list) "d); \n " (() "d" (identifier) "); \n" ()) " " (;) "\n" (comment) " " (comment) "hildren. \n " (comment) " " (function_definition) "ne int GetChildCount(void) { return (m_Children.Count()); } \n \n" (storage_class_specifier) "ne int" (inline) "ne int" (primitive_type) "Get" (function_declarator) "hildCount(void) { r" (identifier) "hildCount(voi" (parameter_list) "d) { r" (() "d" (parameter_declaration) ") { " (primitive_type) ") { " ()) "r" (compound_statement) "turn (m_Children.Count()); } \n \n" ({) "t" (return_statement) "rn (m_Children.Count()); } \n" (return) "rn (m_" (parenthesized_expression) "hildren.Count()); } " (() "h" (call_expression) "ildren.Count()); }" (field_expression) "ildren.Count());" (identifier) "ildren.Cou" (.) "n" (field_identifier) "t());" (argument_list) " }" (() " " ()) "}" ()) " " (;) "\n" (}) "\n" (function_definition) "ne CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); } \n \n" (storage_class_specifier) "ne CCu" (inline) "ne CCu" (type_identifier) "lTreeNode *Ge" (pointer_declarator) "CullTreeChild(int nChild) { r" (*) "C" (function_declarator) "ullTreeChild(int nChild) { r" (identifier) "ullTreeChild(int" (parameter_list) " nChild) { r" (() " " (parameter_declaration) "nChild) { " (primitive_type) "nCh" (identifier) "ld) { " ()) "r" (compound_statement) "turn (m_Children[nChild]); } \n \n" ({) "t" (return_statement) "rn (m_Children[nChild]); } \n" (return) "rn (m_" (parenthesized_expression) "hildren[nChild]); } " (() "h" (subscript_expression) "ildren[nChild]); }" (identifier) "ildren[nCh" ([) "i" (identifier) "ld]); " (]) "}" ()) " " (;) "\n" (}) "\n" (declaration) " AddCullTreeChild(CCullTreeNode *pChild); \n \n" (primitive_type) " Add" (function_declarator) "ullTreeChild(CCullTreeNode *pChild); \n " (identifier) "ullTreeChild(CCu" (parameter_list) "llTreeNode *pChild); \n " (() "l" (parameter_declaration) "lTreeNode *pChild); \n" (type_identifier) "lTreeNode *pC" (pointer_declarator) "ild); \n" (*) "i" (identifier) "ld); \n" ()) " " (;) "\n" (comment) " " (comment) "bjects. \n " (comment) " " (function_definition) "ne int GetObjectCount(void) { return (m_Objects.Count()); } \n \n" (storage_class_specifier) "ne int" (inline) "ne int" (primitive_type) "Get" (function_declarator) "bjectCount(void) { r" (identifier) "bjectCount(voi" (parameter_list) "d) { r" (() "d" (parameter_declaration) ") { " (primitive_type) ") { " ()) "r" (compound_statement) "turn (m_Objects.Count()); } \n \n" ({) "t" (return_statement) "rn (m_Objects.Count()); } \n" (return) "rn (m_" (parenthesized_expression) "bjects.Count()); } " (() "b" (call_expression) "jects.Count()); }" (field_expression) "jects.Count());" (identifier) "jects.Cou" (.) "n" (field_identifier) "t());" (argument_list) " }" (() " " ()) "}" ()) " " (;) "\n" (}) "\n" (function_definition) "ne CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); } \n \n" (storage_class_specifier) "ne CMa" (inline) "ne CMa" (type_identifier) "Class *Ge" (pointer_declarator) "CullTreeObject(int nObject) { r" (*) "C" (function_declarator) "ullTreeObject(int nObject) { r" (identifier) "ullTreeObject(int" (parameter_list) " nObject) { r" (() " " (parameter_declaration) "nObject) { " (primitive_type) "nOb" (identifier) "ect) { " ()) "r" (compound_statement) "turn (m_Objects[nObject]); } \n \n" ({) "t" (return_statement) "rn (m_Objects[nObject]); } \n" (return) "rn (m_" (parenthesized_expression) "bjects[nObject]); } " (() "b" (subscript_expression) "jects[nObject]); }" (identifier) "jects[nOb" ([) "j" (identifier) "ect]); " (]) "}" ()) " " (;) "\n" (}) "\n" (declaration) " AddCullTreeObject(CMapClass *pObject); \n \n" (primitive_type) " Add" (function_declarator) "ullTreeObject(CMapClass *pObject); \n " (identifier) "ullTreeObject(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) " AddCullTreeObjectRecurse(CMapClass *pObject); \n \n" (primitive_type) " Add" (function_declarator) "ullTreeObjectRecurse(CMapClass *pObject); \n " (identifier) "ullTreeObjectRecurse(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) "lTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject); \n \n" (type_identifier) "lTreeNode *Fi" (pointer_declarator) "dCullTreeObjectRecurse(CMapClass *pObject); \n " (*) "d" (function_declarator) "CullTreeObjectRecurse(CMapClass *pObject); \n " (identifier) "CullTreeObjectRecurse(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) " RemoveAllCullTreeObjects(void); \n \n" (primitive_type) " Rem" (function_declarator) "veAllCullTreeObjects(void); \n " (identifier) "veAllCullTreeObjects(voi" (parameter_list) "d); \n " (() "d" (parameter_declaration) "); \n" (primitive_type) "); \n" ()) " " (;) "\n" (declaration) " RemoveAllCullTreeObjectsRecurse(void); \n \n" (primitive_type) " Rem" (function_declarator) "veAllCullTreeObjectsRecurse(void); \n " (identifier) "veAllCullTreeObjectsRecurse(voi" (parameter_list) "d); \n " (() "d" (parameter_declaration) "); \n" (primitive_type) "); \n" ()) " " (;) "\n" (declaration) " RemoveCullTreeObject(CMapClass *pObject); \n \n" (primitive_type) " Rem" (function_declarator) "veCullTreeObject(CMapClass *pObject); \n " (identifier) "veCullTreeObject(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) " RemoveCullTreeObjectRecurse(CMapClass *pObject); \n \n" (primitive_type) " Rem" (function_declarator) "veCullTreeObjectRecurse(CMapClass *pObject); \n " (identifier) "veCullTreeObjectRecurse(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) " UpdateAllCullTreeObjects(void); \n \n" (primitive_type) " Upd" (function_declarator) "teAllCullTreeObjects(void); \n " (identifier) "teAllCullTreeObjects(voi" (parameter_list) "d); \n " (() "d" (parameter_declaration) "); \n" (primitive_type) "); \n" ()) " " (;) "\n" (declaration) " UpdateAllCullTreeObjectsRecurse(void); \n \n" (primitive_type) " Upd" (function_declarator) "teAllCullTreeObjectsRecurse(void); \n " (identifier) "teAllCullTreeObjectsRecurse(voi" (parameter_list) "d); \n " (() "d" (parameter_declaration) "); \n" (primitive_type) "); \n" ()) " " (;) "\n" (declaration) " UpdateCullTreeObject(CMapClass *pObject); \n \n" (primitive_type) " Upd" (function_declarator) "teCullTreeObject(CMapClass *pObject); \n " (identifier) "teCullTreeObject(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (declaration) " UpdateCullTreeObjectRecurse(CMapClass *pObject); \n \n" (primitive_type) " Upd" (function_declarator) "teCullTreeObjectRecurse(CMapClass *pObject); \n " (identifier) "teCullTreeObjectRecurse(CMa" (parameter_list) "pClass *pObject); \n " (() "p" (parameter_declaration) "Class *pObject); \n" (type_identifier) "Class *pO" (pointer_declarator) "ject); \n" (*) "j" (identifier) "ect); \n" ()) " " (;) "\n" (labeled_statement) "ected: \n \n CUtlVector<CCullTreeNode *> m_Children; " (statement_identifier) "ected: \n " (:) "\n" (expression_statement) "Vector<CCullTreeNode *> m_Children; " (binary_expression) "Vector<CCullTreeNode *> m_Children; " (binary_expression) "Vector<CCullTreeNode *> " (identifier) "Vector<CCu" (<) "l" (identifier) "lTreeNode *> " (ERROR) "_" (*) "_" (>) "C" (identifier) "ildren; " (;) " " (comment) "he child nodes. This is an octree. \n " (declaration) "ObjectList m_Objects; " (type_identifier) "ObjectList m_O" (identifier) "jects; " (;) " " (comment) "he objects contained in this node. \n}; " (}) " " (expression_statement) "\n" (;) "\n"
349
2
{"language": "c", "success": true, "metadata": {"lines": 70, "avg_line_length": 24.41, "nodes": 218, "errors": 0, "source_hash": "ae659d4ce3d20d78fd8ca6b1daaf62b988ccbbbc11032fe0418258bb778abb86", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "gma once\r\n\r\n#i", "parent": null, "children": [1, 2], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "gma onc", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "\r\n\r\n#", "parent": 0, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 13}}, {"id": 3, "type": "preproc_include", "text": "lude \"BoundBox.h\"\r\n#inc", "parent": null, "children": [4, 5], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 4, "type": "#include", "text": "lude \"Bo", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 5, "type": "string_literal", "text": "ndBox.h\"\r\n#i", "parent": 3, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "lude \"MapClass.h\"\r\n\r\ncl", "parent": null, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 7, "type": "#include", "text": "lude \"Ma", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 8, "type": "string_literal", "text": "Class.h\"\r\n\r\n", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 21}}, {"id": 9, "type": "declaration", "text": "s CCullTreeNode;\r\n\r\n", "parent": null, "children": [10, 11], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 20}}, {"id": 10, "type": "type_identifier", "text": "s CCu", "parent": 9, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 5}}, {"id": 11, "type": "identifier", "text": "lTreeNode;\r\n\r", "parent": 9, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 19}}, {"id": 12, "type": "function_definition", "text": "s CCullTreeNode : public BoundBox {\r\npublic:\r\n\r\n CCullTreeNode(void);\r\n\r\n ~CCullTreeNode(void);\r\n\r\n //\r\n // Children.\r\n //\r\n inline int GetChildCount(void) { return (m_Children.Count()); }\r\n\r\n inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); }\r\n\r\n void AddCullTreeChild(CCullTreeNode *pChild);\r\n\r\n //\r\n // Objects.\r\n //\r\n inline int GetObjectCount(void) { return (m_Objects.Count()); }\r\n\r\n inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); }\r\n\r\n void AddCullTreeObject(CMapClass *pObject);\r\n\r\n void AddCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n void RemoveAllCullTreeObjects(void);\r\n\r\n void RemoveAllCullTreeObjectsRecurse(void);\r\n\r\n void RemoveCullTreeObject(CMapClass *pObject);\r\n\r\n void RemoveCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n void UpdateAllCullTreeObjects(void);\r\n\r\n void UpdateAllCullTreeObjectsRecurse(void);\r\n\r\n void UpdateCullTreeObject(CMapClass *pObject);\r\n\r\n void UpdateCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\nprotected:\r\n\r\n CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree.\r\n CMapObjectList m_Objects; // The objects contained in this node.\r\n};\r\n\r", "parent": null, "children": [13, 14, 15], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "s CCu", "parent": 12, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 5}}, {"id": 14, "type": "identifier", "text": "lTreeNode : p", "parent": 12, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 19}}, {"id": 15, "type": "ERROR", "text": "blic BoundBox {\r\n", "parent": 12, "children": [16, 17], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 37}}, {"id": 16, "type": "identifier", "text": "ic Bou", "parent": 15, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 28}}, {"id": 17, "type": "identifier", "text": "dBox {\r\n", "parent": 15, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 37}}, {"id": 18, "type": "labeled_statement", "text": "ic:\r\n\r\n CCullTreeNode(void);\r\n\r\n", "parent": 12, "children": [19], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 24}}, {"id": 19, "type": "statement_identifier", "text": "ic:\r\n\r", "parent": 18, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 20, "type": "call_expression", "text": "lTreeNode(void);\r\n\r", "parent": 18, "children": [21, 22], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 23}}, {"id": 21, "type": "identifier", "text": "lTreeNode(voi", "parent": 20, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 17}}, {"id": 22, "type": "argument_list", "text": "d);\r\n\r", "parent": 20, "children": [23], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 23}}, {"id": 23, "type": "identifier", "text": ");\r\n", "parent": 22, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 22}}, {"id": 24, "type": "unary_expression", "text": "llTreeNode(void);\r\n\r", "parent": 12, "children": [25, 26], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 24}}, {"id": 25, "type": "~", "text": "l", "parent": 24, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 26, "type": "call_expression", "text": "lTreeNode(void);\r\n\r", "parent": 24, "children": [27, 28], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 24}}, {"id": 27, "type": "identifier", "text": "lTreeNode(voi", "parent": 26, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 18}}, {"id": 28, "type": "argument_list", "text": "d);\r\n\r", "parent": 26, "children": [29], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 24}}, {"id": 29, "type": "identifier", "text": ");\r\n", "parent": 28, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 23}}, {"id": 30, "type": "function_definition", "text": "ne int GetChildCount(void) { return (m_Children.Count()); }\r\n\r\n", "parent": 12, "children": [31, 33, 34], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 67}}, {"id": 31, "type": "storage_class_specifier", "text": "ne int", "parent": 30, "children": [32], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 32, "type": "inline", "text": "ne int", "parent": 31, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 33, "type": "primitive_type", "text": "Get", "parent": 30, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 14}}, {"id": 34, "type": "function_declarator", "text": "hildCount(void) { r", "parent": 30, "children": [35, 36], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 34}}, {"id": 35, "type": "identifier", "text": "hildCount(voi", "parent": 34, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 28}}, {"id": 36, "type": "parameter_list", "text": "d) { r", "parent": 34, "children": [37], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 34}}, {"id": 37, "type": "parameter_declaration", "text": ") { ", "parent": 36, "children": [38], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 33}}, {"id": 38, "type": "primitive_type", "text": ") { ", "parent": 37, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 33}}, {"id": 39, "type": "return_statement", "text": "rn (m_Children.Count()); }\r\n", "parent": 30, "children": [40], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 65}}, {"id": 40, "type": "parenthesized_expression", "text": "hildren.Count()); }\r", "parent": 39, "children": [41], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 64}}, {"id": 41, "type": "call_expression", "text": "ildren.Count()); }", "parent": 40, "children": [42], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 63}}, {"id": 42, "type": "field_expression", "text": "ildren.Count());", "parent": 41, "children": [43, 44], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 61}}, {"id": 43, "type": "identifier", "text": "ildren.Cou", "parent": 42, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 55}}, {"id": 44, "type": "field_identifier", "text": "t());", "parent": 42, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 61}}, {"id": 45, "type": "function_definition", "text": "ne CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); }\r\n\r\n", "parent": 12, "children": [46, 48, 49], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 87}}, {"id": 46, "type": "storage_class_specifier", "text": "ne CCu", "parent": 45, "children": [47], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 47, "type": "inline", "text": "ne CCu", "parent": 46, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 48, "type": "type_identifier", "text": "lTreeNode *Ge", "parent": 45, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 24}}, {"id": 49, "type": "pointer_declarator", "text": "CullTreeChild(int nChild) { r", "parent": 45, "children": [50, 51], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 54}}, {"id": 50, "type": "*", "text": "C", "parent": 49, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 26}}, {"id": 51, "type": "function_declarator", "text": "ullTreeChild(int nChild) { r", "parent": 49, "children": [52, 53], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 54}}, {"id": 52, "type": "identifier", "text": "ullTreeChild(int", "parent": 51, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 42}}, {"id": 53, "type": "parameter_list", "text": " nChild) { r", "parent": 51, "children": [54], "start_point": {"row": 32, "column": 42}, "end_point": {"row": 32, "column": 54}}, {"id": 54, "type": "parameter_declaration", "text": "nChild) { ", "parent": 53, "children": [55, 56], "start_point": {"row": 32, "column": 43}, "end_point": {"row": 32, "column": 53}}, {"id": 55, "type": "primitive_type", "text": "nCh", "parent": 54, "children": [], "start_point": {"row": 32, "column": 43}, "end_point": {"row": 32, "column": 46}}, {"id": 56, "type": "identifier", "text": "ld) { ", "parent": 54, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 53}}, {"id": 57, "type": "return_statement", "text": "rn (m_Children[nChild]); }\r\n", "parent": 45, "children": [58], "start_point": {"row": 32, "column": 57}, "end_point": {"row": 32, "column": 85}}, {"id": 58, "type": "parenthesized_expression", "text": "hildren[nChild]); }\r", "parent": 57, "children": [59], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 84}}, {"id": 59, "type": "subscript_expression", "text": "ildren[nChild]); }", "parent": 58, "children": [60, 61], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 83}}, {"id": 60, "type": "identifier", "text": "ildren[nCh", "parent": 59, "children": [], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 75}}, {"id": 61, "type": "identifier", "text": "ld]); ", "parent": 59, "children": [], "start_point": {"row": 32, "column": 76}, "end_point": {"row": 32, "column": 82}}, {"id": 62, "type": "declaration", "text": " AddCullTreeChild(CCullTreeNode *pChild);\r\n\r\n", "parent": 12, "children": [63, 64], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 49}}, {"id": 63, "type": "primitive_type", "text": " Add", "parent": 62, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 64, "type": "function_declarator", "text": "ullTreeChild(CCullTreeNode *pChild);\r\n\r", "parent": 62, "children": [65, 66], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 48}}, {"id": 65, "type": "identifier", "text": "ullTreeChild(CCu", "parent": 64, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 25}}, {"id": 66, "type": "parameter_list", "text": "llTreeNode *pChild);\r\n\r", "parent": 64, "children": [67], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 48}}, {"id": 67, "type": "parameter_declaration", "text": "lTreeNode *pChild);\r\n", "parent": 66, "children": [68, 69], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 47}}, {"id": 68, "type": "type_identifier", "text": "lTreeNode *pC", "parent": 67, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 39}}, {"id": 69, "type": "pointer_declarator", "text": "ild);\r\n", "parent": 67, "children": [70, 71], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 47}}, {"id": 70, "type": "*", "text": "i", "parent": 69, "children": [], "start_point": {"row": 34, "column": 40}, "end_point": {"row": 34, "column": 41}}, {"id": 71, "type": "identifier", "text": "ld);\r\n", "parent": 69, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 47}}, {"id": 72, "type": "function_definition", "text": "ne int GetObjectCount(void) { return (m_Objects.Count()); }\r\n\r\n", "parent": 12, "children": [73, 75, 76], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 67}}, {"id": 73, "type": "storage_class_specifier", "text": "ne int", "parent": 72, "children": [74], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 74, "type": "inline", "text": "ne int", "parent": 73, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 10}}, {"id": 75, "type": "primitive_type", "text": "Get", "parent": 72, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 14}}, {"id": 76, "type": "function_declarator", "text": "bjectCount(void) { r", "parent": 72, "children": [77, 78], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 35}}, {"id": 77, "type": "identifier", "text": "bjectCount(voi", "parent": 76, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 29}}, {"id": 78, "type": "parameter_list", "text": "d) { r", "parent": 76, "children": [79], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 35}}, {"id": 79, "type": "parameter_declaration", "text": ") { ", "parent": 78, "children": [80], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 80, "type": "primitive_type", "text": ") { ", "parent": 79, "children": [], "start_point": {"row": 39, "column": 30}, "end_point": {"row": 39, "column": 34}}, {"id": 81, "type": "return_statement", "text": "rn (m_Objects.Count()); }\r\n", "parent": 72, "children": [82], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 65}}, {"id": 82, "type": "parenthesized_expression", "text": "bjects.Count()); }\r", "parent": 81, "children": [83], "start_point": {"row": 39, "column": 45}, "end_point": {"row": 39, "column": 64}}, {"id": 83, "type": "call_expression", "text": "jects.Count()); }", "parent": 82, "children": [84], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 63}}, {"id": 84, "type": "field_expression", "text": "jects.Count());", "parent": 83, "children": [85, 86], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 61}}, {"id": 85, "type": "identifier", "text": "jects.Cou", "parent": 84, "children": [], "start_point": {"row": 39, "column": 46}, "end_point": {"row": 39, "column": 55}}, {"id": 86, "type": "field_identifier", "text": "t());", "parent": 84, "children": [], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 61}}, {"id": 87, "type": "function_definition", "text": "ne CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); }\r\n\r\n", "parent": 12, "children": [88, 90, 91], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 85}}, {"id": 88, "type": "storage_class_specifier", "text": "ne CMa", "parent": 87, "children": [89], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 10}}, {"id": 89, "type": "inline", "text": "ne CMa", "parent": 88, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 10}}, {"id": 90, "type": "type_identifier", "text": "Class *Ge", "parent": 87, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 20}}, {"id": 91, "type": "pointer_declarator", "text": "CullTreeObject(int nObject) { r", "parent": 87, "children": [92, 93], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 52}}, {"id": 92, "type": "*", "text": "C", "parent": 91, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 93, "type": "function_declarator", "text": "ullTreeObject(int nObject) { r", "parent": 91, "children": [94, 95], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 52}}, {"id": 94, "type": "identifier", "text": "ullTreeObject(int", "parent": 93, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 39}}, {"id": 95, "type": "parameter_list", "text": " nObject) { r", "parent": 93, "children": [96], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 52}}, {"id": 96, "type": "parameter_declaration", "text": "nObject) { ", "parent": 95, "children": [97, 98], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 51}}, {"id": 97, "type": "primitive_type", "text": "nOb", "parent": 96, "children": [], "start_point": {"row": 41, "column": 40}, "end_point": {"row": 41, "column": 43}}, {"id": 98, "type": "identifier", "text": "ect) { ", "parent": 96, "children": [], "start_point": {"row": 41, "column": 44}, "end_point": {"row": 41, "column": 51}}, {"id": 99, "type": "return_statement", "text": "rn (m_Objects[nObject]); }\r\n", "parent": 87, "children": [100], "start_point": {"row": 41, "column": 55}, "end_point": {"row": 41, "column": 83}}, {"id": 100, "type": "parenthesized_expression", "text": "bjects[nObject]); }\r", "parent": 99, "children": [101], "start_point": {"row": 41, "column": 62}, "end_point": {"row": 41, "column": 82}}, {"id": 101, "type": "subscript_expression", "text": "jects[nObject]); }", "parent": 100, "children": [102, 103], "start_point": {"row": 41, "column": 63}, "end_point": {"row": 41, "column": 81}}, {"id": 102, "type": "identifier", "text": "jects[nOb", "parent": 101, "children": [], "start_point": {"row": 41, "column": 63}, "end_point": {"row": 41, "column": 72}}, {"id": 103, "type": "identifier", "text": "ect]); ", "parent": 101, "children": [], "start_point": {"row": 41, "column": 73}, "end_point": {"row": 41, "column": 80}}, {"id": 104, "type": "declaration", "text": " AddCullTreeObject(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [105, 106], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 47}}, {"id": 105, "type": "primitive_type", "text": " Add", "parent": 104, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 106, "type": "function_declarator", "text": "ullTreeObject(CMapClass *pObject);\r\n\r", "parent": 104, "children": [107, 108], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 46}}, {"id": 107, "type": "identifier", "text": "ullTreeObject(CMa", "parent": 106, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 26}}, {"id": 108, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 106, "children": [109], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 46}}, {"id": 109, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 108, "children": [110, 111], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 45}}, {"id": 110, "type": "type_identifier", "text": "Class *pO", "parent": 109, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 36}}, {"id": 111, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 109, "children": [112, 113], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 45}}, {"id": 112, "type": "*", "text": "j", "parent": 111, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 38}}, {"id": 113, "type": "identifier", "text": "ect);\r\n", "parent": 111, "children": [], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 45}}, {"id": 114, "type": "declaration", "text": " AddCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [115, 116], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 54}}, {"id": 115, "type": "primitive_type", "text": " Add", "parent": 114, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 116, "type": "function_declarator", "text": "ullTreeObjectRecurse(CMapClass *pObject);\r\n\r", "parent": 114, "children": [117, 118], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 53}}, {"id": 117, "type": "identifier", "text": "ullTreeObjectRecurse(CMa", "parent": 116, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 33}}, {"id": 118, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 116, "children": [119], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 53}}, {"id": 119, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 118, "children": [120, 121], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 52}}, {"id": 120, "type": "type_identifier", "text": "Class *pO", "parent": 119, "children": [], "start_point": {"row": 45, "column": 34}, "end_point": {"row": 45, "column": 43}}, {"id": 121, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 119, "children": [122, 123], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 52}}, {"id": 122, "type": "*", "text": "j", "parent": 121, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 45}}, {"id": 123, "type": "identifier", "text": "ect);\r\n", "parent": 121, "children": [], "start_point": {"row": 45, "column": 45}, "end_point": {"row": 45, "column": 52}}, {"id": 124, "type": "declaration", "text": "lTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [125, 126], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 65}}, {"id": 125, "type": "type_identifier", "text": "lTreeNode *Fi", "parent": 124, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 17}}, {"id": 126, "type": "pointer_declarator", "text": "dCullTreeObjectRecurse(CMapClass *pObject);\r\n\r", "parent": 124, "children": [127, 128], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 64}}, {"id": 127, "type": "*", "text": "d", "parent": 126, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 128, "type": "function_declarator", "text": "CullTreeObjectRecurse(CMapClass *pObject);\r\n\r", "parent": 126, "children": [129, 130], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 64}}, {"id": 129, "type": "identifier", "text": "CullTreeObjectRecurse(CMa", "parent": 128, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 44}}, {"id": 130, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 128, "children": [131], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 64}}, {"id": 131, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 130, "children": [132, 133], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 63}}, {"id": 132, "type": "type_identifier", "text": "Class *pO", "parent": 131, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 54}}, {"id": 133, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 131, "children": [134, 135], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 63}}, {"id": 134, "type": "*", "text": "j", "parent": 133, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 56}}, {"id": 135, "type": "identifier", "text": "ect);\r\n", "parent": 133, "children": [], "start_point": {"row": 47, "column": 56}, "end_point": {"row": 47, "column": 63}}, {"id": 136, "type": "declaration", "text": " RemoveAllCullTreeObjects(void);\r\n\r\n", "parent": 12, "children": [137, 138], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 40}}, {"id": 137, "type": "primitive_type", "text": " Rem", "parent": 136, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 8}}, {"id": 138, "type": "function_declarator", "text": "veAllCullTreeObjects(void);\r\n\r", "parent": 136, "children": [139, 140], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 39}}, {"id": 139, "type": "identifier", "text": "veAllCullTreeObjects(voi", "parent": 138, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 33}}, {"id": 140, "type": "parameter_list", "text": "d);\r\n\r", "parent": 138, "children": [141], "start_point": {"row": 49, "column": 33}, "end_point": {"row": 49, "column": 39}}, {"id": 141, "type": "parameter_declaration", "text": ");\r\n", "parent": 140, "children": [142], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 38}}, {"id": 142, "type": "primitive_type", "text": ");\r\n", "parent": 141, "children": [], "start_point": {"row": 49, "column": 34}, "end_point": {"row": 49, "column": 38}}, {"id": 143, "type": "declaration", "text": " RemoveAllCullTreeObjectsRecurse(void);\r\n\r\n", "parent": 12, "children": [144, 145], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 47}}, {"id": 144, "type": "primitive_type", "text": " Rem", "parent": 143, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 145, "type": "function_declarator", "text": "veAllCullTreeObjectsRecurse(void);\r\n\r", "parent": 143, "children": [146, 147], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 46}}, {"id": 146, "type": "identifier", "text": "veAllCullTreeObjectsRecurse(voi", "parent": 145, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 40}}, {"id": 147, "type": "parameter_list", "text": "d);\r\n\r", "parent": 145, "children": [148], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 46}}, {"id": 148, "type": "parameter_declaration", "text": ");\r\n", "parent": 147, "children": [149], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 45}}, {"id": 149, "type": "primitive_type", "text": ");\r\n", "parent": 148, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 45}}, {"id": 150, "type": "declaration", "text": " RemoveCullTreeObject(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [151, 152], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 50}}, {"id": 151, "type": "primitive_type", "text": " Rem", "parent": 150, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 8}}, {"id": 152, "type": "function_declarator", "text": "veCullTreeObject(CMapClass *pObject);\r\n\r", "parent": 150, "children": [153, 154], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 49}}, {"id": 153, "type": "identifier", "text": "veCullTreeObject(CMa", "parent": 152, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 29}}, {"id": 154, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 152, "children": [155], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 49}}, {"id": 155, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 154, "children": [156, 157], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 48}}, {"id": 156, "type": "type_identifier", "text": "Class *pO", "parent": 155, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 39}}, {"id": 157, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 155, "children": [158, 159], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 48}}, {"id": 158, "type": "*", "text": "j", "parent": 157, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 41}}, {"id": 159, "type": "identifier", "text": "ect);\r\n", "parent": 157, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 48}}, {"id": 160, "type": "declaration", "text": " RemoveCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [161, 162], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 57}}, {"id": 161, "type": "primitive_type", "text": " Rem", "parent": 160, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 8}}, {"id": 162, "type": "function_declarator", "text": "veCullTreeObjectRecurse(CMapClass *pObject);\r\n\r", "parent": 160, "children": [163, 164], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 56}}, {"id": 163, "type": "identifier", "text": "veCullTreeObjectRecurse(CMa", "parent": 162, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 36}}, {"id": 164, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 162, "children": [165], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 56}}, {"id": 165, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 164, "children": [166, 167], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 55}}, {"id": 166, "type": "type_identifier", "text": "Class *pO", "parent": 165, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 46}}, {"id": 167, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 165, "children": [168, 169], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 55}}, {"id": 168, "type": "*", "text": "j", "parent": 167, "children": [], "start_point": {"row": 55, "column": 47}, "end_point": {"row": 55, "column": 48}}, {"id": 169, "type": "identifier", "text": "ect);\r\n", "parent": 167, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 55}}, {"id": 170, "type": "declaration", "text": " UpdateAllCullTreeObjects(void);\r\n\r\n", "parent": 12, "children": [171, 172], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 40}}, {"id": 171, "type": "primitive_type", "text": " Upd", "parent": 170, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 172, "type": "function_declarator", "text": "teAllCullTreeObjects(void);\r\n\r", "parent": 170, "children": [173, 174], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 39}}, {"id": 173, "type": "identifier", "text": "teAllCullTreeObjects(voi", "parent": 172, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 33}}, {"id": 174, "type": "parameter_list", "text": "d);\r\n\r", "parent": 172, "children": [175], "start_point": {"row": 57, "column": 33}, "end_point": {"row": 57, "column": 39}}, {"id": 175, "type": "parameter_declaration", "text": ");\r\n", "parent": 174, "children": [176], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 38}}, {"id": 176, "type": "primitive_type", "text": ");\r\n", "parent": 175, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 57, "column": 38}}, {"id": 177, "type": "declaration", "text": " UpdateAllCullTreeObjectsRecurse(void);\r\n\r\n", "parent": 12, "children": [178, 179], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 47}}, {"id": 178, "type": "primitive_type", "text": " Upd", "parent": 177, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 179, "type": "function_declarator", "text": "teAllCullTreeObjectsRecurse(void);\r\n\r", "parent": 177, "children": [180, 181], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 46}}, {"id": 180, "type": "identifier", "text": "teAllCullTreeObjectsRecurse(voi", "parent": 179, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 40}}, {"id": 181, "type": "parameter_list", "text": "d);\r\n\r", "parent": 179, "children": [182], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 59, "column": 46}}, {"id": 182, "type": "parameter_declaration", "text": ");\r\n", "parent": 181, "children": [183], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 45}}, {"id": 183, "type": "primitive_type", "text": ");\r\n", "parent": 182, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 45}}, {"id": 184, "type": "declaration", "text": " UpdateCullTreeObject(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [185, 186], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 50}}, {"id": 185, "type": "primitive_type", "text": " Upd", "parent": 184, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 8}}, {"id": 186, "type": "function_declarator", "text": "teCullTreeObject(CMapClass *pObject);\r\n\r", "parent": 184, "children": [187, 188], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 49}}, {"id": 187, "type": "identifier", "text": "teCullTreeObject(CMa", "parent": 186, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 29}}, {"id": 188, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 186, "children": [189], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 49}}, {"id": 189, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 188, "children": [190, 191], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 48}}, {"id": 190, "type": "type_identifier", "text": "Class *pO", "parent": 189, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 39}}, {"id": 191, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 189, "children": [192, 193], "start_point": {"row": 61, "column": 40}, "end_point": {"row": 61, "column": 48}}, {"id": 192, "type": "*", "text": "j", "parent": 191, "children": [], "start_point": {"row": 61, "column": 40}, "end_point": {"row": 61, "column": 41}}, {"id": 193, "type": "identifier", "text": "ect);\r\n", "parent": 191, "children": [], "start_point": {"row": 61, "column": 41}, "end_point": {"row": 61, "column": 48}}, {"id": 194, "type": "declaration", "text": " UpdateCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n", "parent": 12, "children": [195, 196], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 57}}, {"id": 195, "type": "primitive_type", "text": " Upd", "parent": 194, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 196, "type": "function_declarator", "text": "teCullTreeObjectRecurse(CMapClass *pObject);\r\n\r", "parent": 194, "children": [197, 198], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 56}}, {"id": 197, "type": "identifier", "text": "teCullTreeObjectRecurse(CMa", "parent": 196, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 36}}, {"id": 198, "type": "parameter_list", "text": "pClass *pObject);\r\n\r", "parent": 196, "children": [199], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 56}}, {"id": 199, "type": "parameter_declaration", "text": "Class *pObject);\r\n", "parent": 198, "children": [200, 201], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 55}}, {"id": 200, "type": "type_identifier", "text": "Class *pO", "parent": 199, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 46}}, {"id": 201, "type": "pointer_declarator", "text": "ject);\r\n", "parent": 199, "children": [202, 203], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 55}}, {"id": 202, "type": "*", "text": "j", "parent": 201, "children": [], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 48}}, {"id": 203, "type": "identifier", "text": "ect);\r\n", "parent": 201, "children": [], "start_point": {"row": 63, "column": 48}, "end_point": {"row": 63, "column": 55}}, {"id": 204, "type": "labeled_statement", "text": "ected:\r\n\r\n CUtlVector<CCullTreeNode *> m_Children; ", "parent": 12, "children": [205], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 67, "column": 43}}, {"id": 205, "type": "statement_identifier", "text": "ected:\r\n\r", "parent": 204, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 9}}, {"id": 206, "type": "binary_expression", "text": "Vector<CCullTreeNode *> m_Children; ", "parent": 204, "children": [207, 211, 213, 214], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 42}}, {"id": 207, "type": "binary_expression", "text": "Vector<CCullTreeNode *> ", "parent": 206, "children": [208, 209, 210], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 28}}, {"id": 208, "type": "identifier", "text": "Vector<CCu", "parent": 207, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 14}}, {"id": 209, "type": "<", "text": "l", "parent": 207, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 15}}, {"id": 210, "type": "identifier", "text": "lTreeNode *> ", "parent": 207, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 28}}, {"id": 211, "type": "ERROR", "text": "_", "parent": 206, "children": [212], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 30}}, {"id": 212, "type": "*", "text": "_", "parent": 211, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 30}}, {"id": 213, "type": ">", "text": "C", "parent": 206, "children": [], "start_point": {"row": 67, "column": 30}, "end_point": {"row": 67, "column": 31}}, {"id": 214, "type": "identifier", "text": "ildren; ", "parent": 206, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 42}}, {"id": 215, "type": "declaration", "text": "ObjectList m_Objects; ", "parent": 12, "children": [216, 217], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 29}}, {"id": 216, "type": "type_identifier", "text": "ObjectList m_O", "parent": 215, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 18}}, {"id": 217, "type": "identifier", "text": "jects; ", "parent": 215, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 28}}]}, "node_categories": {"declarations": {"functions": [12, 30, 34, 45, 51, 64, 72, 76, 87, 93, 106, 116, 128, 138, 145, 152, 162, 172, 179, 186, 196], "variables": [9, 37, 54, 62, 67, 79, 96, 104, 109, 114, 119, 124, 131, 136, 141, 143, 148, 150, 155, 160, 165, 170, 175, 177, 182, 184, 189, 194, 199, 215], "classes": [31, 46, 73, 88], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [20, 24, 26, 40, 41, 42, 58, 59, 82, 83, 84, 100, 101, 206, 207], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 14, 16, 17, 19, 21, 23, 27, 29, 35, 43, 44, 48, 52, 56, 60, 61, 65, 68, 71, 77, 85, 86, 90, 94, 98, 102, 103, 107, 110, 113, 117, 120, 123, 125, 129, 132, 135, 139, 146, 153, 156, 159, 163, 166, 169, 173, 180, 187, 190, 193, 197, 200, 203, 205, 208, 210, 214, 216, 217], "returns": [39, 57, 81, 99], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "GetChildCount", "text_snippet": "s CCullTreeNode : public BoundBox {\r\npublic:\r\n\r\n CCullTreeNode(void);\r\n\r\n ~CCullTreeNode(void)"}, {"node_id": 30, "universal_type": "function", "name": "GetChildCount", "text_snippet": "ne int GetChildCount(void) { return (m_Children.Count()); }\r\n\r\n"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "hildCount(void) { r"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "ne CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); }\r\n\r\n"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "ullTreeChild(int nChild) { r"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "ullTreeChild(CCullTreeNode *pChild);\r\n\r"}, {"node_id": 72, "universal_type": "function", "name": "GetObjectCount", "text_snippet": "ne int GetObjectCount(void) { return (m_Objects.Count()); }\r\n\r\n"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "bjectCount(void) { r"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "ne CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); }\r\n\r\n"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "ullTreeObject(int nObject) { r"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "ullTreeObject(CMapClass *pObject);\r\n\r"}, {"node_id": 116, "universal_type": "function", "name": "unknown", "text_snippet": "ullTreeObjectRecurse(CMapClass *pObject);\r\n\r"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "CullTreeObjectRecurse(CMapClass *pObject);\r\n\r"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "veAllCullTreeObjects(void);\r\n\r"}, {"node_id": 145, "universal_type": "function", "name": "unknown", "text_snippet": "veAllCullTreeObjectsRecurse(void);\r\n\r"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "veCullTreeObject(CMapClass *pObject);\r\n\r"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "veCullTreeObjectRecurse(CMapClass *pObject);\r\n\r"}, {"node_id": 172, "universal_type": "function", "name": "unknown", "text_snippet": "teAllCullTreeObjects(void);\r\n\r"}, {"node_id": 179, "universal_type": "function", "name": "unknown", "text_snippet": "teAllCullTreeObjectsRecurse(void);\r\n\r"}, {"node_id": 186, "universal_type": "function", "name": "unknown", "text_snippet": "teCullTreeObject(CMapClass *pObject);\r\n\r"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "teCullTreeObjectRecurse(CMapClass *pObject);\r\n\r"}], "class_declarations": [{"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "ne int"}, {"node_id": 46, "universal_type": "class", "name": "unknown", "text_snippet": "ne CCu"}, {"node_id": 73, "universal_type": "class", "name": "unknown", "text_snippet": "ne int"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "ne CMa"}], "import_statements": [{"node_id": 3, "text": "lude \"BoundBox.h\"\r\n#inc"}, {"node_id": 4, "text": "lude \"Bo"}, {"node_id": 6, "text": "lude \"MapClass.h\"\r\n\r\ncl"}, {"node_id": 7, "text": "lude \"Ma"}]}, "original_source_code": "\ufeff//========= Copyright \ufffd 1996-2005, Valve Corporation, All rights reserved. ============//\r\n//\r\n// Purpose: \r\n//\r\n// $Workfile: $\r\n// $Date: $\r\n//\r\n//-----------------------------------------------------------------------------\r\n// $Log: $\r\n//\r\n// $NoKeywords: $\r\n//=============================================================================//\r\n\r\n#pragma once\r\n\r\n#include \"BoundBox.h\"\r\n#include \"MapClass.h\"\r\n\r\nclass CCullTreeNode;\r\n\r\nclass CCullTreeNode : public BoundBox {\r\npublic:\r\n\r\n CCullTreeNode(void);\r\n\r\n ~CCullTreeNode(void);\r\n\r\n //\r\n // Children.\r\n //\r\n inline int GetChildCount(void) { return (m_Children.Count()); }\r\n\r\n inline CCullTreeNode *GetCullTreeChild(int nChild) { return (m_Children[nChild]); }\r\n\r\n void AddCullTreeChild(CCullTreeNode *pChild);\r\n\r\n //\r\n // Objects.\r\n //\r\n inline int GetObjectCount(void) { return (m_Objects.Count()); }\r\n\r\n inline CMapClass *GetCullTreeObject(int nObject) { return (m_Objects[nObject]); }\r\n\r\n void AddCullTreeObject(CMapClass *pObject);\r\n\r\n void AddCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n CCullTreeNode *FindCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n void RemoveAllCullTreeObjects(void);\r\n\r\n void RemoveAllCullTreeObjectsRecurse(void);\r\n\r\n void RemoveCullTreeObject(CMapClass *pObject);\r\n\r\n void RemoveCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\n void UpdateAllCullTreeObjects(void);\r\n\r\n void UpdateAllCullTreeObjectsRecurse(void);\r\n\r\n void UpdateCullTreeObject(CMapClass *pObject);\r\n\r\n void UpdateCullTreeObjectRecurse(CMapClass *pObject);\r\n\r\nprotected:\r\n\r\n CUtlVector<CCullTreeNode *> m_Children; // The child nodes. This is an octree.\r\n CMapObjectList m_Objects; // The objects contained in this node.\r\n};\r\n\r\n"}
80,767
c
// Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_ #define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_ #include <algorithm> #include "mojo/public/cpp/bindings/array.h" #include "mojo/public/cpp/bindings/map.h" #include "mojo/public/cpp/environment/logging.h" namespace mojo { namespace internal { // |MapKeyIterator| and |MapValueIterator| are templated interfaces for // iterating over a Map<>'s keys and its values, respectively. They provide a // begin() and end() for generating an STL-iterator. The generated Iterator // follows the BidirectionalIterator concept // (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator). // // Example usage: // // Map<int,int> my_map; // my_map[1] = 2; // my_map[3] = 4; // my_map[5] = 6; // for (int key : MapKeyIterator<int,int>(&my_map)) { // std::cout << key << std::endl; // } // for (int val : MapValueIterator<int,int>(&my_map)) { // std::cout << val << std::endl; // } // Interface for iterating over a Map<K, V>'s keys. // To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>; template <typename K, typename V> class MapKeyIterator { public: class Iterator { public: Iterator() : it_() {} explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {} Iterator& operator++() { ++it_; return *this; } Iterator operator++(int) { Iterator original = *this; ++it_; return original; } Iterator& operator--() { --it_; return *this; } Iterator operator--(int) { Iterator original = *this; --it_; return original; } bool operator==(const Iterator& o) const { return o.it_ == it_; } bool operator!=(const Iterator& o) const { return o.it_ != it_; } const K& operator*() { return it_.GetKey(); } const K* operator->() { return &it_.GetKey(); } private: typename Map<K, V>::MapIterator it_; }; explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); } size_t size() const { return map_->size(); } Iterator begin() const { return Iterator{map_->begin()}; } Iterator end() const { return Iterator{map_->end()}; } private: Map<K, V>* const map_; }; // Interface for iterating over a Map<K, V>'s values. template <typename K, typename V> class MapValueIterator { public: class Iterator { public: Iterator() : it_(typename Map<K, V>::MapIterator()) {} explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {} Iterator& operator++() { ++it_; return *this; } Iterator operator++(int) { Iterator original = *this; ++it_; return original; } Iterator& operator--() { --it_; return *this; } Iterator operator--(int) { Iterator original = *this; --it_; return original; } bool operator==(const Iterator& o) const { return o.it_ == it_; } bool operator!=(const Iterator& o) const { return o.it_ != it_; } V& operator*() { return it_.GetValue(); } V* operator->() { return &it_.GetValue(); } private: typename Map<K, V>::MapIterator it_; }; explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); } size_t size() const { return map_->size(); } Iterator begin() const { return Iterator{map_->begin()}; } Iterator end() const { return Iterator{map_->end()}; } private: Map<K, V>* const map_; }; } // namespace internal } // namespace mojo #endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_
31.48
113
(translation_unit) "// Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n\n#include <algorithm>\n\n#include "mojo/public/cpp/bindings/array.h"\n#include "mojo/public/cpp/bindings/map.h"\n#include "mojo/public/cpp/environment/logging.h"\n\nnamespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n} // namespace mojo\n\n#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n" (comment) "// Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n\n#include <algorithm>\n\n#include "mojo/public/cpp/bindings/array.h"\n#include "mojo/public/cpp/bindings/map.h"\n#include "mojo/public/cpp/environment/logging.h"\n\nnamespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n} // namespace mojo\n\n#endif" (#ifndef) "#ifndef" (identifier) "MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_" (preproc_def) "#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n" (#define) "#define" (identifier) "MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_" (preproc_include) "#include <algorithm>\n" (#include) "#include" (system_lib_string) "<algorithm>" (preproc_include) "#include "mojo/public/cpp/bindings/array.h"\n" (#include) "#include" (string_literal) ""mojo/public/cpp/bindings/array.h"" (") """ (string_content) "mojo/public/cpp/bindings/array.h" (") """ (preproc_include) "#include "mojo/public/cpp/bindings/map.h"\n" (#include) "#include" (string_literal) ""mojo/public/cpp/bindings/map.h"" (") """ (string_content) "mojo/public/cpp/bindings/map.h" (") """ (preproc_include) "#include "mojo/public/cpp/environment/logging.h"\n" (#include) "#include" (string_literal) ""mojo/public/cpp/environment/logging.h"" (") """ (string_content) "mojo/public/cpp/environment/logging.h" (") """ (ERROR) "namespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n}" (type_identifier) "namespace" (identifier) "mojo" ({) "{" (function_definition) "namespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }" (type_identifier) "namespace" (identifier) "internal" (compound_statement) "{\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }" ({) "{" (comment) "// |MapKeyIterator| and |MapValueIterator| are templated interfaces for" (comment) "// iterating over a Map<>'s keys and its values, respectively. They provide a" (comment) "// begin() and end() for generating an STL-iterator. The generated Iterator" (comment) "// follows the BidirectionalIterator concept" (comment) "// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator)." (comment) "//" (comment) "// Example usage:" (comment) "//" (comment) "// Map<int,int> my_map;" (comment) "// my_map[1] = 2;" (comment) "// my_map[3] = 4;" (comment) "// my_map[5] = 6;" (comment) "// for (int key : MapKeyIterator<int,int>(&my_map)) {" (comment) "// std::cout << key << std::endl;" (comment) "// }" (comment) "// for (int val : MapValueIterator<int,int>(&my_map)) {" (comment) "// std::cout << val << std::endl;" (comment) "// }" (comment) "// Interface for iterating over a Map<K, V>'s keys." (comment) "// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;" (ERROR) "template <typename K, typename V>\nclass MapKeyIterator" (comma_expression) "template <typename K, typename V>\nclass" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "K" (identifier) "K" (,) "," (binary_expression) "typename V>\nclass" (identifier) "typename" (ERROR) "V" (identifier) "V" (>) ">" (identifier) "class" (identifier) "MapKeyIterator" (compound_statement) "{\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }" ({) "{" (labeled_statement) "public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }" (statement_identifier) "public" (:) ":" (ERROR) "class Iterator" (type_identifier) "class" (identifier) "Iterator" (compound_statement) "{\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }" ({) "{" (labeled_statement) "public:\n Iterator() : it_() {}" (statement_identifier) "public" (:) ":" (ERROR) "Iterator() : it_()" (call_expression) "Iterator()" (identifier) "Iterator" (argument_list) "()" (() "(" ()) ")" (:) ":" (call_expression) "it_()" (identifier) "it_" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (function_definition) "explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}" (type_identifier) "explicit" (function_declarator) "Iterator(typename Map<K, V>::MapIterator it) : it_(it)" (identifier) "Iterator" (parameter_list) "(typename Map<K, V>::MapIterator it)" (() "(" (parameter_declaration) "typename Map" (type_identifier) "typename" (identifier) "Map" (ERROR) "<K" (<) "<" (identifier) "K" (,) "," (parameter_declaration) "V>::MapIterator it" (type_identifier) "V" (ERROR) ">::MapIterator" (>) ">" (:) ":" (:) ":" (identifier) "MapIterator" (identifier) "it" ()) ")" (ERROR) ":" (:) ":" (call_expression) "it_(it)" (identifier) "it_" (argument_list) "(it)" (() "(" (identifier) "it" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) "Iterator& operator++()" (binary_expression) "Iterator& operator++()" (identifier) "Iterator" (&) "&" (call_expression) "operator++()" (update_expression) "operator++" (identifier) "operator" (++) "++" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n ++it_;\n return *this;\n }" ({) "{" (expression_statement) "++it_;" (update_expression) "++it_" (++) "++" (identifier) "it_" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (declaration) "Iterator operator" (type_identifier) "Iterator" (identifier) "operator" (;) "" (expression_statement) "++(int) {\n Iterator original = *this;" (update_expression) "++(int) {\n Iterator original = *this" (++) "++" (compound_literal_expression) "(int) {\n Iterator original = *this" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (initializer_list) "{\n Iterator original = *this" ({) "{" (ERROR) "Iterator" (identifier) "Iterator" (assignment_expression) "original = *this" (identifier) "original" (=) "=" (pointer_expression) "*this" (*) "*" (identifier) "this" (}) "" (;) ";" (expression_statement) "++it_;" (update_expression) "++it_" (++) "++" (identifier) "it_" (;) ";" (return_statement) "return original;" (return) "return" (identifier) "original" (;) ";" (}) "}" (expression_statement) "Iterator& operator--()" (binary_expression) "Iterator& operator--()" (identifier) "Iterator" (&) "&" (call_expression) "operator--()" (update_expression) "operator--" (identifier) "operator" (--) "--" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n --it_;\n return *this;\n }" ({) "{" (expression_statement) "--it_;" (update_expression) "--it_" (--) "--" (identifier) "it_" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (declaration) "Iterator operator" (type_identifier) "Iterator" (identifier) "operator" (;) "" (expression_statement) "--(int) {\n Iterator original = *this;" (update_expression) "--(int) {\n Iterator original = *this" (--) "--" (compound_literal_expression) "(int) {\n Iterator original = *this" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (initializer_list) "{\n Iterator original = *this" ({) "{" (ERROR) "Iterator" (identifier) "Iterator" (assignment_expression) "original = *this" (identifier) "original" (=) "=" (pointer_expression) "*this" (*) "*" (identifier) "this" (}) "" (;) ";" (expression_statement) "--it_;" (update_expression) "--it_" (--) "--" (identifier) "it_" (;) ";" (return_statement) "return original;" (return) "return" (identifier) "original" (;) ";" (}) "}" (ERROR) "bool operator==(const Iterator& o) const" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Iterator" (pointer_expression) "& o" (&) "&" (identifier) "o" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return o.it_ == it_; }" ({) "{" (return_statement) "return o.it_ == it_;" (return) "return" (binary_expression) "o.it_ == it_" (field_expression) "o.it_" (identifier) "o" (.) "." (field_identifier) "it_" (==) "==" (identifier) "it_" (;) ";" (}) "}" (ERROR) "bool operator!=(const Iterator& o) const" (primitive_type) "bool" (identifier) "operator" (!=) "!=" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Iterator" (pointer_expression) "& o" (&) "&" (identifier) "o" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return o.it_ != it_; }" ({) "{" (return_statement) "return o.it_ != it_;" (return) "return" (binary_expression) "o.it_ != it_" (field_expression) "o.it_" (identifier) "o" (.) "." (field_identifier) "it_" (!=) "!=" (identifier) "it_" (;) ";" (}) "}" (ERROR) "const K" (type_qualifier) "const" (const) "const" (type_identifier) "K" (expression_statement) "& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_;" (binary_expression) "& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_" (binary_expression) "& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_" (pointer_expression) "& operator" (&) "&" (identifier) "operator" (*) "*" (field_expression) "() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_" (parenthesized_expression) "() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o)" (() "(" (ERROR) ") { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const" ()) ")" (compound_statement) "{ return it_.GetKey(); }" ({) "{" (return_statement) "return it_.GetKey();" (return) "return" (call_expression) "it_.GetKey()" (field_expression) "it_.GetKey" (identifier) "it_" (.) "." (field_identifier) "GetKey" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (const) "const" (binary_expression) "K* operator->()" (identifier) "K" (*) "*" (call_expression) "operator->()" (field_expression) "operator->" (identifier) "operator" (->) "->" (field_identifier) "" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{ return &it_.GetKey(); }" ({) "{" (return_statement) "return &it_.GetKey();" (return) "return" (pointer_expression) "&it_.GetKey()" (&) "&" (call_expression) "it_.GetKey()" (field_expression) "it_.GetKey" (identifier) "it_" (.) "." (field_identifier) "GetKey" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (identifier) "private" (:) ":" (identifier) "typename" (comma_expression) "Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map)" (binary_expression) "Map<K" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (binary_expression) "V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map)" (identifier) "V" (>) ">" (ERROR) "::MapIterator it_;\n };\n\n explicit" (:) ":" (:) ":" (identifier) "MapIterator" (identifier) "it_" (;) ";" (}) "}" (;) ";" (identifier) "explicit" (call_expression) "MapKeyIterator(Map<K, V>* map)" (identifier) "MapKeyIterator" (argument_list) "(Map<K, V>* map)" (() "(" (binary_expression) "Map<K" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (binary_expression) "V>* map" (identifier) "V" (>) ">" (pointer_expression) "* map" (*) "*" (identifier) "map" ()) ")" (:) ":" (macro_type_specifier) "map_(map)" (identifier) "map_" (() "(" (type_descriptor) "map" (type_identifier) "map" ()) ")" (compound_statement) "{ MOJO_DCHECK(map); }" ({) "{" (expression_statement) "MOJO_DCHECK(map);" (call_expression) "MOJO_DCHECK(map)" (identifier) "MOJO_DCHECK" (argument_list) "(map)" (() "(" (identifier) "map" ()) ")" (;) ";" (}) "}" (primitive_type) "size_t" (type_descriptor) "size()" (type_identifier) "size" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return map_->size(); }" ({) "{" (return_statement) "return map_->size();" (return) "return" (call_expression) "map_->size()" (field_expression) "map_->size" (identifier) "map_" (->) "->" (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (identifier) "Iterator" (type_descriptor) "begin()" (type_identifier) "begin" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }" ({) "{" (return_statement) "return Iterator" (return) "return" (identifier) "Iterator" (;) "" (compound_statement) "{map_->begin()}; }" ({) "{" (expression_statement) "map_->begin()};" (call_expression) "map_->begin()" (field_expression) "map_->begin" (identifier) "map_" (->) "->" (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (}) "}" (function_definition) "Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }" (type_identifier) "Iterator" (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (declaration) "const { return Iterator{map_->end()};" (type_qualifier) "const" (const) "const" (ERROR) "{ return" ({) "{" (return) "return" (type_identifier) "Iterator" (ERROR) "{map_->" ({) "{" (identifier) "map_" (->) "->" (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (ERROR) "}" (}) "}" (declaration) "private:\n Map<K, V>* const map_;" (type_identifier) "private" (ERROR) ":\n Map<" (:) ":" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (ERROR) "V>" (identifier) "V" (>) ">" (pointer_declarator) "* const map_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "map_" (;) ";" (ERROR) "};" (}) "}" (;) ";" (comment) "// Interface for iterating over a Map<K, V>'s values." (declaration) "template <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;" (type_identifier) "template" (ERROR) "<typename" (<) "<" (identifier) "typename" (identifier) "K" (,) "," (ERROR) "typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++" (identifier) "typename" (identifier) "V" (>) ">" (identifier) "class" (identifier) "MapValueIterator" ({) "{" (identifier) "public" (:) ":" (identifier) "class" (identifier) "Iterator" ({) "{" (identifier) "public" (:) ":" (function_declarator) "Iterator() : it_(typename Map<K, V>::MapIterator())" (identifier) "Iterator" (parameter_list) "()" (() "(" ()) ")" (ERROR) ":" (:) ":" (call_expression) "it_(typename Map<K, V>::MapIterator())" (identifier) "it_" (argument_list) "(typename Map<K, V>::MapIterator())" (() "(" (binary_expression) "typename Map<K" (identifier) "typename" (ERROR) "Map" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (binary_expression) "V>::MapIterator()" (identifier) "V" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "MapIterator()" (identifier) "MapIterator" (argument_list) "()" (() "(" ()) ")" ()) ")" ({) "{" (}) "}" (identifier) "explicit" (function_declarator) "Iterator(typename Map<K, V>::MapIterator it) : it_(it)" (identifier) "Iterator" (parameter_list) "(typename Map<K, V>::MapIterator it)" (() "(" (parameter_declaration) "typename Map" (type_identifier) "typename" (identifier) "Map" (ERROR) "<K" (<) "<" (identifier) "K" (,) "," (parameter_declaration) "V>::MapIterator it" (type_identifier) "V" (ERROR) ">::MapIterator" (>) ">" (:) ":" (:) ":" (identifier) "MapIterator" (identifier) "it" ()) ")" (ERROR) ":" (:) ":" (call_expression) "it_(it)" (identifier) "it_" (argument_list) "(it)" (() "(" (identifier) "it" ()) ")" ({) "{" (}) "}" (identifier) "Iterator" (&) "&" (identifier) "operator" (++) "++" (() "(" ()) ")" ({) "{" (++) "++" (identifier) "it_" (;) ";" (declaration) "return *this;" (type_identifier) "return" (pointer_declarator) "*this" (*) "*" (identifier) "this" (;) ";" (ERROR) "}\n Iterator operator++(int)" (}) "}" (type_identifier) "Iterator" (identifier) "operator" (++) "++" (() "(" (primitive_type) "int" ()) ")" (compound_statement) "{\n Iterator original = *this;\n ++it_;\n return original;\n }" ({) "{" (declaration) "Iterator original = *this;" (type_identifier) "Iterator" (init_declarator) "original = *this" (identifier) "original" (=) "=" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (expression_statement) "++it_;" (update_expression) "++it_" (++) "++" (identifier) "it_" (;) ";" (return_statement) "return original;" (return) "return" (identifier) "original" (;) ";" (}) "}" (expression_statement) "Iterator& operator--()" (binary_expression) "Iterator& operator--()" (identifier) "Iterator" (&) "&" (call_expression) "operator--()" (update_expression) "operator--" (identifier) "operator" (--) "--" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n --it_;\n return *this;\n }" ({) "{" (expression_statement) "--it_;" (update_expression) "--it_" (--) "--" (identifier) "it_" (;) ";" (return_statement) "return *this;" (return) "return" (pointer_expression) "*this" (*) "*" (identifier) "this" (;) ";" (}) "}" (declaration) "Iterator operator" (type_identifier) "Iterator" (identifier) "operator" (;) "" (expression_statement) "--(int) {\n Iterator original = *this;" (update_expression) "--(int) {\n Iterator original = *this" (--) "--" (compound_literal_expression) "(int) {\n Iterator original = *this" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (initializer_list) "{\n Iterator original = *this" ({) "{" (ERROR) "Iterator" (identifier) "Iterator" (assignment_expression) "original = *this" (identifier) "original" (=) "=" (pointer_expression) "*this" (*) "*" (identifier) "this" (}) "" (;) ";" (expression_statement) "--it_;" (update_expression) "--it_" (--) "--" (identifier) "it_" (;) ";" (return_statement) "return original;" (return) "return" (identifier) "original" (;) ";" (}) "}" (ERROR) "bool operator==(const Iterator& o" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (const) "const" (identifier) "Iterator" (&) "&" (identifier) "o" ()) ")" (ERROR) "const { return o" (identifier) "const" ({) "{" (return) "return" (identifier) "o" (.) "." (field_identifier) "it_" (==) "==" (identifier) "it_" (;) ";" (}) "}" (ERROR) "bool operator!=(const Iterator& o) const" (primitive_type) "bool" (identifier) "operator" (!=) "!=" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Iterator" (pointer_expression) "& o" (&) "&" (identifier) "o" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return o.it_ != it_; }" ({) "{" (return_statement) "return o.it_ != it_;" (return) "return" (binary_expression) "o.it_ != it_" (field_expression) "o.it_" (identifier) "o" (.) "." (field_identifier) "it_" (!=) "!=" (identifier) "it_" (;) ";" (}) "}" (identifier) "V" (&) "&" (identifier) "operator" (*) "*" (() "(" (ERROR) ") { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const" ()) ")" (compound_statement) "{ return it_.GetValue(); }" ({) "{" (return_statement) "return it_.GetValue();" (return) "return" (call_expression) "it_.GetValue()" (field_expression) "it_.GetValue" (identifier) "it_" (.) "." (field_identifier) "GetValue" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (binary_expression) "V* operator->()" (identifier) "V" (*) "*" (call_expression) "operator->()" (field_expression) "operator->" (identifier) "operator" (->) "->" (field_identifier) "" (argument_list) "()" (() "(" ()) ")" (compound_statement) "{ return &it_.GetValue(); }" ({) "{" (return_statement) "return &it_.GetValue();" (return) "return" (pointer_expression) "&it_.GetValue()" (&) "&" (call_expression) "it_.GetValue()" (field_expression) "it_.GetValue" (identifier) "it_" (.) "." (field_identifier) "GetValue" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (identifier) "private" (:) ":" (identifier) "typename" (comma_expression) "Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map)" (binary_expression) "Map<K" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (binary_expression) "V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map)" (identifier) "V" (>) ">" (ERROR) "::MapIterator it_;\n };\n\n explicit" (:) ":" (:) ":" (identifier) "MapIterator" (identifier) "it_" (;) ";" (}) "}" (;) ";" (identifier) "explicit" (call_expression) "MapValueIterator(Map<K, V>* map)" (identifier) "MapValueIterator" (argument_list) "(Map<K, V>* map)" (() "(" (binary_expression) "Map<K" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (binary_expression) "V>* map" (identifier) "V" (>) ">" (pointer_expression) "* map" (*) "*" (identifier) "map" ()) ")" (:) ":" (macro_type_specifier) "map_(map)" (identifier) "map_" (() "(" (type_descriptor) "map" (type_identifier) "map" ()) ")" (compound_statement) "{ MOJO_DCHECK(map); }" ({) "{" (expression_statement) "MOJO_DCHECK(map);" (call_expression) "MOJO_DCHECK(map)" (identifier) "MOJO_DCHECK" (argument_list) "(map)" (() "(" (identifier) "map" ()) ")" (;) ";" (}) "}" (primitive_type) "size_t" (type_descriptor) "size()" (type_identifier) "size" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return map_->size(); }" ({) "{" (return_statement) "return map_->size();" (return) "return" (call_expression) "map_->size()" (field_expression) "map_->size" (identifier) "map_" (->) "->" (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (identifier) "Iterator" (type_descriptor) "begin()" (type_identifier) "begin" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return_statement) "return Iterator" (return) "return" (identifier) "Iterator" (;) "" (compound_statement) "{map_->begin()}; }" ({) "{" (expression_statement) "map_->begin()};" (call_expression) "map_->begin()" (field_expression) "map_->begin" (identifier) "map_" (->) "->" (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (}) "}" (type_identifier) "Iterator" (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (declaration) "const { return Iterator{map_->end()};" (type_qualifier) "const" (const) "const" (ERROR) "{ return" ({) "{" (return) "return" (type_identifier) "Iterator" (ERROR) "{map_->" ({) "{" (identifier) "map_" (->) "->" (function_declarator) "end()" (identifier) "end" (parameter_list) "()" (() "(" ()) ")" (ERROR) "}" (}) "}" (;) ";" (ERROR) "}" (}) "}" (declaration) "private:\n Map<K, V>* const map_;" (type_identifier) "private" (ERROR) ":\n Map<" (:) ":" (identifier) "Map" (<) "<" (identifier) "K" (,) "," (ERROR) "V>" (identifier) "V" (>) ">" (pointer_declarator) "* const map_" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "map_" (;) ";" (}) "}" (;) ";" (}) "}" (comment) "// namespace internal" (}) "}" (comment) "// namespace mojo" (#endif) "#endif" (comment) "// MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_"
966
46
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 31.48, "nodes": 519, "errors": 0, "source_hash": "4bfa70903e3c170ae87b90bb5bf0e957ebc30d6049ad1d8f0a74379a757f5dc6", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n\n#include <algorithm>\n\n#include \"mojo/public/cpp/bindings/array.h\"\n#include \"mojo/public/cpp/bindings/map.h\"\n#include \"mojo/public/cpp/environment/logging.h\"\n\nnamespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n} // namespace mojo\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 518], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 128, "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": "MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 53}}, {"id": 3, "type": "preproc_def", "text": "#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_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": "MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 53}}, {"id": 6, "type": "preproc_include", "text": "#include <algorithm>\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": "<algorithm>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"mojo/public/cpp/bindings/array.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": "\"mojo/public/cpp/bindings/array.h\"", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 43}}, {"id": 12, "type": "preproc_include", "text": "#include \"mojo/public/cpp/bindings/map.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": "\"mojo/public/cpp/bindings/map.h\"", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 41}}, {"id": 15, "type": "preproc_include", "text": "#include \"mojo/public/cpp/environment/logging.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"mojo/public/cpp/environment/logging.h\"", "parent": 15, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 48}}, {"id": 18, "type": "ERROR", "text": "namespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n}", "parent": 0, "children": [19, 20, 21, 403, 417, 418, 419, 420, 491, 497, 498, 500, 507], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 126, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 9}}, {"id": 20, "type": "identifier", "text": "mojo", "parent": 18, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 21, "type": "function_definition", "text": "namespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }", "parent": 18, "children": [22, 23], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 107, "column": 69}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 23, "type": "identifier", "text": "internal", "parent": 21, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 18}}, {"id": 24, "type": "ERROR", "text": "template <typename K, typename V>\nclass MapKeyIterator", "parent": 21, "children": [25, 37], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 20}}, {"id": 25, "type": "comma_expression", "text": "template <typename K, typename V>\nclass", "parent": 24, "children": [26, 30, 32], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 5}}, {"id": 26, "type": "binary_expression", "text": "template <typename", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 18}}, {"id": 27, "type": "identifier", "text": "template", "parent": 26, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 10}}, {"id": 29, "type": "identifier", "text": "typename", "parent": 26, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 18}}, {"id": 30, "type": "ERROR", "text": "K", "parent": 25, "children": [31], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 31, "type": "identifier", "text": "K", "parent": 30, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 32, "type": "binary_expression", "text": "typename V>\nclass", "parent": 25, "children": [33, 34, 36], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 38, "column": 5}}, {"id": 33, "type": "identifier", "text": "typename", "parent": 32, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 30}}, {"id": 34, "type": "ERROR", "text": "V", "parent": 32, "children": [35], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 32}}, {"id": 35, "type": "identifier", "text": "V", "parent": 34, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 32}}, {"id": 36, "type": ">", "text": ">", "parent": 32, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 37, "type": "identifier", "text": "MapKeyIterator", "parent": 24, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 20}}, {"id": 38, "type": "labeled_statement", "text": "public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }", "parent": 21, "children": [39], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 39, "type": "ERROR", "text": "class Iterator", "parent": 38, "children": [40], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 16}}, {"id": 40, "type": "identifier", "text": "Iterator", "parent": 39, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 16}}, {"id": 41, "type": "labeled_statement", "text": "public:\n Iterator() : it_() {}", "parent": 38, "children": [42], "start_point": {"row": 41, "column": 3}, "end_point": {"row": 42, "column": 25}}, {"id": 42, "type": "ERROR", "text": "Iterator() : it_()", "parent": 41, "children": [43, 46], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 22}}, {"id": 43, "type": "call_expression", "text": "Iterator()", "parent": 42, "children": [44, 45], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 14}}, {"id": 44, "type": "identifier", "text": "Iterator", "parent": 43, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 12}}, {"id": 45, "type": "argument_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 14}}, {"id": 46, "type": "call_expression", "text": "it_()", "parent": 42, "children": [47, 48], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 22}}, {"id": 47, "type": "identifier", "text": "it_", "parent": 46, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 20}}, {"id": 48, "type": "argument_list", "text": "()", "parent": 46, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 22}}, {"id": 49, "type": "function_definition", "text": "explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}", "parent": 38, "children": [50, 51], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 70}}, {"id": 50, "type": "type_identifier", "text": "explicit", "parent": 49, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 12}}, {"id": 51, "type": "function_declarator", "text": "Iterator(typename Map<K, V>::MapIterator it) : it_(it)", "parent": 49, "children": [52, 53, 66], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 67}}, {"id": 52, "type": "identifier", "text": "Iterator", "parent": 51, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 21}}, {"id": 53, "type": "parameter_list", "text": "(typename Map<K, V>::MapIterator it)", "parent": 51, "children": [54, 57, 60], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 57}}, {"id": 54, "type": "parameter_declaration", "text": "typename Map", "parent": 53, "children": [55, 56], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 34}}, {"id": 55, "type": "type_identifier", "text": "typename", "parent": 54, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 30}}, {"id": 56, "type": "identifier", "text": "Map", "parent": 54, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 34}}, {"id": 57, "type": "ERROR", "text": "<K", "parent": 53, "children": [58, 59], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 36}}, {"id": 58, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 35}}, {"id": 59, "type": "identifier", "text": "K", "parent": 57, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 36}}, {"id": 60, "type": "parameter_declaration", "text": "V>::MapIterator it", "parent": 53, "children": [61, 62, 65], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 56}}, {"id": 61, "type": "type_identifier", "text": "V", "parent": 60, "children": [], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 39}}, {"id": 62, "type": "ERROR", "text": ">::MapIterator", "parent": 60, "children": [63, 64], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 53}}, {"id": 63, "type": ">", "text": ">", "parent": 62, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 40}}, {"id": 64, "type": "identifier", "text": "MapIterator", "parent": 62, "children": [], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 53}}, {"id": 65, "type": "identifier", "text": "it", "parent": 60, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 56}}, {"id": 66, "type": "call_expression", "text": "it_(it)", "parent": 51, "children": [67, 68], "start_point": {"row": 43, "column": 60}, "end_point": {"row": 43, "column": 67}}, {"id": 67, "type": "identifier", "text": "it_", "parent": 66, "children": [], "start_point": {"row": 43, "column": 60}, "end_point": {"row": 43, "column": 63}}, {"id": 68, "type": "argument_list", "text": "(it)", "parent": 66, "children": [69], "start_point": {"row": 43, "column": 63}, "end_point": {"row": 43, "column": 67}}, {"id": 69, "type": "identifier", "text": "it", "parent": 68, "children": [], "start_point": {"row": 43, "column": 64}, "end_point": {"row": 43, "column": 66}}, {"id": 70, "type": "binary_expression", "text": "Iterator& operator++()", "parent": 38, "children": [71, 72], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 26}}, {"id": 71, "type": "identifier", "text": "Iterator", "parent": 70, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 12}}, {"id": 72, "type": "call_expression", "text": "operator++()", "parent": 70, "children": [73, 76], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 26}}, {"id": 73, "type": "update_expression", "text": "operator++", "parent": 72, "children": [74, 75], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 24}}, {"id": 74, "type": "identifier", "text": "operator", "parent": 73, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 22}}, {"id": 75, "type": "++", "text": "++", "parent": 73, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 24}}, {"id": 76, "type": "argument_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 26}}, {"id": 77, "type": "update_expression", "text": "++it_", "parent": 38, "children": [78, 79], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 11}}, {"id": 78, "type": "++", "text": "++", "parent": 77, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 8}}, {"id": 79, "type": "identifier", "text": "it_", "parent": 77, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 80, "type": "return_statement", "text": "return *this;", "parent": 38, "children": [81], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 19}}, {"id": 81, "type": "pointer_expression", "text": "*this", "parent": 80, "children": [82, 83], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 18}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 83, "type": "identifier", "text": "this", "parent": 81, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 84, "type": "declaration", "text": "Iterator operator", "parent": 38, "children": [85, 86], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 21}}, {"id": 85, "type": "type_identifier", "text": "Iterator", "parent": 84, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 12}}, {"id": 86, "type": "identifier", "text": "operator", "parent": 84, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 21}}, {"id": 87, "type": "update_expression", "text": "++(int) {\n Iterator original = *this", "parent": 38, "children": [88, 89], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 49, "column": 31}}, {"id": 88, "type": "++", "text": "++", "parent": 87, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 23}}, {"id": 89, "type": "compound_literal_expression", "text": "(int) {\n Iterator original = *this", "parent": 87, "children": [90, 92], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 49, "column": 31}}, {"id": 90, "type": "type_descriptor", "text": "int", "parent": 89, "children": [91], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 27}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 48, "column": 24}, "end_point": {"row": 48, "column": 27}}, {"id": 92, "type": "initializer_list", "text": "{\n Iterator original = *this", "parent": 89, "children": [93, 95], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 49, "column": 31}}, {"id": 93, "type": "ERROR", "text": "Iterator", "parent": 92, "children": [94], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 14}}, {"id": 94, "type": "identifier", "text": "Iterator", "parent": 93, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 14}}, {"id": 95, "type": "assignment_expression", "text": "original = *this", "parent": 92, "children": [96, 97, 98], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 31}}, {"id": 96, "type": "identifier", "text": "original", "parent": 95, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 23}}, {"id": 97, "type": "=", "text": "=", "parent": 95, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 98, "type": "pointer_expression", "text": "*this", "parent": 95, "children": [99, 100], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 31}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 27}}, {"id": 100, "type": "identifier", "text": "this", "parent": 98, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 31}}, {"id": 101, "type": "update_expression", "text": "++it_", "parent": 38, "children": [102, 103], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 11}}, {"id": 102, "type": "++", "text": "++", "parent": 101, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 8}}, {"id": 103, "type": "identifier", "text": "it_", "parent": 101, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 11}}, {"id": 104, "type": "return_statement", "text": "return original;", "parent": 38, "children": [105], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 22}}, {"id": 105, "type": "identifier", "text": "original", "parent": 104, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 21}}, {"id": 106, "type": "binary_expression", "text": "Iterator& operator--()", "parent": 21, "children": [107, 108], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 26}}, {"id": 107, "type": "identifier", "text": "Iterator", "parent": 106, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 12}}, {"id": 108, "type": "call_expression", "text": "operator--()", "parent": 106, "children": [109, 112], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 26}}, {"id": 109, "type": "update_expression", "text": "operator--", "parent": 108, "children": [110, 111], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 24}}, {"id": 110, "type": "identifier", "text": "operator", "parent": 109, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 22}}, {"id": 111, "type": "--", "text": "--", "parent": 109, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 24}}, {"id": 112, "type": "argument_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 26}}, {"id": 113, "type": "update_expression", "text": "--it_", "parent": 21, "children": [114, 115], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 11}}, {"id": 114, "type": "--", "text": "--", "parent": 113, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 8}}, {"id": 115, "type": "identifier", "text": "it_", "parent": 113, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 11}}, {"id": 116, "type": "return_statement", "text": "return *this;", "parent": 21, "children": [117], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 19}}, {"id": 117, "type": "pointer_expression", "text": "*this", "parent": 116, "children": [118, 119], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 18}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 14}}, {"id": 119, "type": "identifier", "text": "this", "parent": 117, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 18}}, {"id": 120, "type": "declaration", "text": "Iterator operator", "parent": 21, "children": [121, 122], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 21}}, {"id": 121, "type": "type_identifier", "text": "Iterator", "parent": 120, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 12}}, {"id": 122, "type": "identifier", "text": "operator", "parent": 120, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 21}}, {"id": 123, "type": "update_expression", "text": "--(int) {\n Iterator original = *this", "parent": 21, "children": [124, 125], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 58, "column": 31}}, {"id": 124, "type": "--", "text": "--", "parent": 123, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 23}}, {"id": 125, "type": "compound_literal_expression", "text": "(int) {\n Iterator original = *this", "parent": 123, "children": [126, 128], "start_point": {"row": 57, "column": 23}, "end_point": {"row": 58, "column": 31}}, {"id": 126, "type": "type_descriptor", "text": "int", "parent": 125, "children": [127], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 27}}, {"id": 127, "type": "primitive_type", "text": "int", "parent": 126, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 27}}, {"id": 128, "type": "initializer_list", "text": "{\n Iterator original = *this", "parent": 125, "children": [129, 131], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 58, "column": 31}}, {"id": 129, "type": "ERROR", "text": "Iterator", "parent": 128, "children": [130], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 14}}, {"id": 130, "type": "identifier", "text": "Iterator", "parent": 129, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 14}}, {"id": 131, "type": "assignment_expression", "text": "original = *this", "parent": 128, "children": [132, 133, 134], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 31}}, {"id": 132, "type": "identifier", "text": "original", "parent": 131, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 23}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 134, "type": "pointer_expression", "text": "*this", "parent": 131, "children": [135, 136], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 31}}, {"id": 135, "type": "*", "text": "*", "parent": 134, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 27}}, {"id": 136, "type": "identifier", "text": "this", "parent": 134, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 31}}, {"id": 137, "type": "update_expression", "text": "--it_", "parent": 21, "children": [138, 139], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 11}}, {"id": 138, "type": "--", "text": "--", "parent": 137, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 8}}, {"id": 139, "type": "identifier", "text": "it_", "parent": 137, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 11}}, {"id": 140, "type": "return_statement", "text": "return original;", "parent": 21, "children": [141], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 22}}, {"id": 141, "type": "identifier", "text": "original", "parent": 140, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 21}}, {"id": 142, "type": "ERROR", "text": "bool operator==(const Iterator& o) const", "parent": 21, "children": [143, 144, 145, 146, 147], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 44}}, {"id": 143, "type": "primitive_type", "text": "bool", "parent": 142, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 144, "type": "identifier", "text": "operator", "parent": 142, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 17}}, {"id": 145, "type": "==", "text": "==", "parent": 142, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 19}}, {"id": 146, "type": "type_identifier", "text": "Iterator", "parent": 142, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 34}}, {"id": 147, "type": "pointer_expression", "text": "& o", "parent": 142, "children": [148], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 37}}, {"id": 148, "type": "identifier", "text": "o", "parent": 147, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 37}}, {"id": 149, "type": "return_statement", "text": "return o.it_ == it_;", "parent": 21, "children": [150], "start_point": {"row": 62, "column": 47}, "end_point": {"row": 62, "column": 67}}, {"id": 150, "type": "binary_expression", "text": "o.it_ == it_", "parent": 149, "children": [151, 154, 155], "start_point": {"row": 62, "column": 54}, "end_point": {"row": 62, "column": 66}}, {"id": 151, "type": "field_expression", "text": "o.it_", "parent": 150, "children": [152, 153], "start_point": {"row": 62, "column": 54}, "end_point": {"row": 62, "column": 59}}, {"id": 152, "type": "identifier", "text": "o", "parent": 151, "children": [], "start_point": {"row": 62, "column": 54}, "end_point": {"row": 62, "column": 55}}, {"id": 153, "type": "field_identifier", "text": "it_", "parent": 151, "children": [], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 59}}, {"id": 154, "type": "==", "text": "==", "parent": 150, "children": [], "start_point": {"row": 62, "column": 60}, "end_point": {"row": 62, "column": 62}}, {"id": 155, "type": "identifier", "text": "it_", "parent": 150, "children": [], "start_point": {"row": 62, "column": 63}, "end_point": {"row": 62, "column": 66}}, {"id": 156, "type": "ERROR", "text": "bool operator!=(const Iterator& o) const", "parent": 21, "children": [157, 158, 159, 160, 161], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 44}}, {"id": 157, "type": "primitive_type", "text": "bool", "parent": 156, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 8}}, {"id": 158, "type": "identifier", "text": "operator", "parent": 156, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 17}}, {"id": 159, "type": "!=", "text": "!=", "parent": 156, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 19}}, {"id": 160, "type": "type_identifier", "text": "Iterator", "parent": 156, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 34}}, {"id": 161, "type": "pointer_expression", "text": "& o", "parent": 156, "children": [162], "start_point": {"row": 63, "column": 34}, "end_point": {"row": 63, "column": 37}}, {"id": 162, "type": "identifier", "text": "o", "parent": 161, "children": [], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 37}}, {"id": 163, "type": "return_statement", "text": "return o.it_ != it_;", "parent": 21, "children": [164], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 67}}, {"id": 164, "type": "binary_expression", "text": "o.it_ != it_", "parent": 163, "children": [165, 168, 169], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 66}}, {"id": 165, "type": "field_expression", "text": "o.it_", "parent": 164, "children": [166, 167], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 59}}, {"id": 166, "type": "identifier", "text": "o", "parent": 165, "children": [], "start_point": {"row": 63, "column": 54}, "end_point": {"row": 63, "column": 55}}, {"id": 167, "type": "field_identifier", "text": "it_", "parent": 165, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 59}}, {"id": 168, "type": "!=", "text": "!=", "parent": 164, "children": [], "start_point": {"row": 63, "column": 60}, "end_point": {"row": 63, "column": 62}}, {"id": 169, "type": "identifier", "text": "it_", "parent": 164, "children": [], "start_point": {"row": 63, "column": 63}, "end_point": {"row": 63, "column": 66}}, {"id": 170, "type": "ERROR", "text": "const K", "parent": 21, "children": [171], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 11}}, {"id": 171, "type": "type_identifier", "text": "K", "parent": 170, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 172, "type": "binary_expression", "text": "& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_", "parent": 21, "children": [173, 401, 402], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 107, "column": 66}}, {"id": 173, "type": "binary_expression", "text": "& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_", "parent": 172, "children": [174, 176, 177], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 107, "column": 59}}, {"id": 174, "type": "pointer_expression", "text": "& operator", "parent": 173, "children": [175], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 21}}, {"id": 175, "type": "identifier", "text": "operator", "parent": 174, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 21}}, {"id": 176, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 22}}, {"id": 177, "type": "field_expression", "text": "() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_", "parent": 173, "children": [178, 398, 400], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 107, "column": 59}}, {"id": 178, "type": "parenthesized_expression", "text": "() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o)", "parent": 177, "children": [179, 392], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 107, "column": 38}}, {"id": 179, "type": "ERROR", "text": ") { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const", "parent": 178, "children": [186, 201, 202, 227, 235, 236, 246, 247], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 74, "column": 24}}, {"id": 180, "type": "return_statement", "text": "return it_.GetKey();", "parent": 179, "children": [181], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 47}}, {"id": 181, "type": "call_expression", "text": "it_.GetKey()", "parent": 180, "children": [182, 185], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 46}}, {"id": 182, "type": "field_expression", "text": "it_.GetKey", "parent": 181, "children": [183, 184], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 44}}, {"id": 183, "type": "identifier", "text": "it_", "parent": 182, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 37}}, {"id": 184, "type": "field_identifier", "text": "GetKey", "parent": 182, "children": [], "start_point": {"row": 64, "column": 38}, "end_point": {"row": 64, "column": 44}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 181, "children": [], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 64, "column": 46}}, {"id": 186, "type": "binary_expression", "text": "K* operator->()", "parent": 179, "children": [187, 188, 189], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 25}}, {"id": 187, "type": "identifier", "text": "K", "parent": 186, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 11}}, {"id": 188, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 12}}, {"id": 189, "type": "call_expression", "text": "operator->()", "parent": 186, "children": [190, 193], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 25}}, {"id": 190, "type": "field_expression", "text": "operator->", "parent": 189, "children": [191, 192], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 23}}, {"id": 191, "type": "identifier", "text": "operator", "parent": 190, "children": [], "start_point": {"row": 65, "column": 13}, "end_point": {"row": 65, "column": 21}}, {"id": 192, "type": "field_identifier", "text": "", "parent": 190, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 23}}, {"id": 193, "type": "argument_list", "text": "()", "parent": 189, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 25}}, {"id": 194, "type": "return_statement", "text": "return &it_.GetKey();", "parent": 179, "children": [195], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 49}}, {"id": 195, "type": "pointer_expression", "text": "&it_.GetKey()", "parent": 194, "children": [196], "start_point": {"row": 65, "column": 35}, "end_point": {"row": 65, "column": 48}}, {"id": 196, "type": "call_expression", "text": "it_.GetKey()", "parent": 195, "children": [197, 200], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 48}}, {"id": 197, "type": "field_expression", "text": "it_.GetKey", "parent": 196, "children": [198, 199], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 46}}, {"id": 198, "type": "identifier", "text": "it_", "parent": 197, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 39}}, {"id": 199, "type": "field_identifier", "text": "GetKey", "parent": 197, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 46}}, {"id": 200, "type": "argument_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 65, "column": 46}, "end_point": {"row": 65, "column": 48}}, {"id": 201, "type": "identifier", "text": "typename", "parent": 179, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 12}}, {"id": 202, "type": "comma_expression", "text": "Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map)", "parent": 179, "children": [203, 207], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 71, "column": 41}}, {"id": 203, "type": "binary_expression", "text": "Map<K", "parent": 202, "children": [204, 205, 206], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 18}}, {"id": 204, "type": "identifier", "text": "Map", "parent": 203, "children": [], "start_point": {"row": 68, "column": 13}, "end_point": {"row": 68, "column": 16}}, {"id": 205, "type": "<", "text": "<", "parent": 203, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 206, "type": "identifier", "text": "K", "parent": 203, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 18}}, {"id": 207, "type": "binary_expression", "text": "V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map)", "parent": 202, "children": [208, 209, 210, 214], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 71, "column": 41}}, {"id": 208, "type": "identifier", "text": "V", "parent": 207, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 209, "type": ">", "text": ">", "parent": 207, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 22}}, {"id": 210, "type": "ERROR", "text": "::MapIterator it_;\n };\n\n explicit", "parent": 207, "children": [211, 212, 213], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 71, "column": 10}}, {"id": 211, "type": "identifier", "text": "MapIterator", "parent": 210, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 35}}, {"id": 212, "type": "identifier", "text": "it_", "parent": 210, "children": [], "start_point": {"row": 68, "column": 36}, "end_point": {"row": 68, "column": 39}}, {"id": 213, "type": "identifier", "text": "explicit", "parent": 210, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 10}}, {"id": 214, "type": "call_expression", "text": "MapKeyIterator(Map<K, V>* map)", "parent": 207, "children": [215, 216], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 41}}, {"id": 215, "type": "identifier", "text": "MapKeyIterator", "parent": 214, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 25}}, {"id": 216, "type": "argument_list", "text": "(Map<K, V>* map)", "parent": 214, "children": [217, 221], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 41}}, {"id": 217, "type": "binary_expression", "text": "Map<K", "parent": 216, "children": [218, 219, 220], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 31}}, {"id": 218, "type": "identifier", "text": "Map", "parent": 217, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 29}}, {"id": 219, "type": "<", "text": "<", "parent": 217, "children": [], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 30}}, {"id": 220, "type": "identifier", "text": "K", "parent": 217, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 31}}, {"id": 221, "type": "binary_expression", "text": "V>* map", "parent": 216, "children": [222, 223, 224], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 40}}, {"id": 222, "type": "identifier", "text": "V", "parent": 221, "children": [], "start_point": {"row": 71, "column": 33}, "end_point": {"row": 71, "column": 34}}, {"id": 223, "type": ">", "text": ">", "parent": 221, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 35}}, {"id": 224, "type": "pointer_expression", "text": "* map", "parent": 221, "children": [225, 226], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 40}}, {"id": 225, "type": "*", "text": "*", "parent": 224, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 36}}, {"id": 226, "type": "identifier", "text": "map", "parent": 224, "children": [], "start_point": {"row": 71, "column": 37}, "end_point": {"row": 71, "column": 40}}, {"id": 227, "type": "macro_type_specifier", "text": "map_(map)", "parent": 179, "children": [228, 229], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 53}}, {"id": 228, "type": "identifier", "text": "map_", "parent": 227, "children": [], "start_point": {"row": 71, "column": 44}, "end_point": {"row": 71, "column": 48}}, {"id": 229, "type": "type_descriptor", "text": "map", "parent": 227, "children": [230], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 52}}, {"id": 230, "type": "type_identifier", "text": "map", "parent": 229, "children": [], "start_point": {"row": 71, "column": 49}, "end_point": {"row": 71, "column": 52}}, {"id": 231, "type": "call_expression", "text": "MOJO_DCHECK(map)", "parent": 179, "children": [232, 233], "start_point": {"row": 71, "column": 56}, "end_point": {"row": 71, "column": 72}}, {"id": 232, "type": "identifier", "text": "MOJO_DCHECK", "parent": 231, "children": [], "start_point": {"row": 71, "column": 56}, "end_point": {"row": 71, "column": 67}}, {"id": 233, "type": "argument_list", "text": "(map)", "parent": 231, "children": [234], "start_point": {"row": 71, "column": 67}, "end_point": {"row": 71, "column": 72}}, {"id": 234, "type": "identifier", "text": "map", "parent": 233, "children": [], "start_point": {"row": 71, "column": 68}, "end_point": {"row": 71, "column": 71}}, {"id": 235, "type": "primitive_type", "text": "size_t", "parent": 179, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 8}}, {"id": 236, "type": "type_descriptor", "text": "size()", "parent": 179, "children": [237, 238], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 15}}, {"id": 237, "type": "type_identifier", "text": "size", "parent": 236, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 13}}, {"id": 238, "type": "abstract_function_declarator", "text": "()", "parent": 236, "children": [239], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 15}}, {"id": 239, "type": "parameter_list", "text": "()", "parent": 238, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 15}}, {"id": 240, "type": "return_statement", "text": "return map_->size();", "parent": 179, "children": [241], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 44}}, {"id": 241, "type": "call_expression", "text": "map_->size()", "parent": 240, "children": [242, 245], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 43}}, {"id": 242, "type": "field_expression", "text": "map_->size", "parent": 241, "children": [243, 244], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 41}}, {"id": 243, "type": "identifier", "text": "map_", "parent": 242, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 35}}, {"id": 244, "type": "field_identifier", "text": "size", "parent": 242, "children": [], "start_point": {"row": 73, "column": 37}, "end_point": {"row": 73, "column": 41}}, {"id": 245, "type": "argument_list", "text": "()", "parent": 241, "children": [], "start_point": {"row": 73, "column": 41}, "end_point": {"row": 73, "column": 43}}, {"id": 246, "type": "identifier", "text": "Iterator", "parent": 179, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 10}}, {"id": 247, "type": "type_descriptor", "text": "begin()", "parent": 179, "children": [248], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 18}}, {"id": 248, "type": "abstract_function_declarator", "text": "()", "parent": 247, "children": [249], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 18}}, {"id": 249, "type": "parameter_list", "text": "()", "parent": 248, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 18}}, {"id": 250, "type": "return_statement", "text": "return Iterator", "parent": 178, "children": [251], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 42}}, {"id": 251, "type": "identifier", "text": "Iterator", "parent": 250, "children": [], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 42}}, {"id": 252, "type": "call_expression", "text": "map_->begin()", "parent": 178, "children": [253, 255], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 56}}, {"id": 253, "type": "field_expression", "text": "map_->begin", "parent": 252, "children": [254], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 54}}, {"id": 254, "type": "identifier", "text": "map_", "parent": 253, "children": [], "start_point": {"row": 74, "column": 43}, "end_point": {"row": 74, "column": 47}}, {"id": 255, "type": "argument_list", "text": "()", "parent": 252, "children": [], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 56}}, {"id": 256, "type": "function_definition", "text": "Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }", "parent": 178, "children": [257, 258, 260, 267, 278, 279, 334, 338], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 97, "column": 5}}, {"id": 257, "type": "type_identifier", "text": "Iterator", "parent": 256, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 10}}, {"id": 258, "type": "function_declarator", "text": "end()", "parent": 256, "children": [259], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 16}}, {"id": 259, "type": "parameter_list", "text": "()", "parent": 258, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 16}}, {"id": 260, "type": "declaration", "text": "const { return Iterator{map_->end()};", "parent": 256, "children": [261, 262, 263, 265], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 54}}, {"id": 261, "type": "ERROR", "text": "{ return", "parent": 260, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 31}}, {"id": 262, "type": "type_identifier", "text": "Iterator", "parent": 260, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 40}}, {"id": 263, "type": "ERROR", "text": "{map_->", "parent": 260, "children": [264], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 47}}, {"id": 264, "type": "identifier", "text": "map_", "parent": 263, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 45}}, {"id": 265, "type": "function_declarator", "text": "end()", "parent": 260, "children": [266], "start_point": {"row": 75, "column": 47}, "end_point": {"row": 75, "column": 52}}, {"id": 266, "type": "parameter_list", "text": "()", "parent": 265, "children": [], "start_point": {"row": 75, "column": 50}, "end_point": {"row": 75, "column": 52}}, {"id": 267, "type": "declaration", "text": "private:\n Map<K, V>* const map_;", "parent": 256, "children": [268, 271, 272, 275], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 78, "column": 24}}, {"id": 268, "type": "ERROR", "text": ":\n Map<", "parent": 267, "children": [269, 270], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 78, "column": 6}}, {"id": 269, "type": "identifier", "text": "Map", "parent": 268, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 5}}, {"id": 270, "type": "<", "text": "<", "parent": 268, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 6}}, {"id": 271, "type": "identifier", "text": "K", "parent": 267, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 7}}, {"id": 272, "type": "ERROR", "text": "V>", "parent": 267, "children": [273, 274], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 11}}, {"id": 273, "type": "identifier", "text": "V", "parent": 272, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 10}}, {"id": 274, "type": ">", "text": ">", "parent": 272, "children": [], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 11}}, {"id": 275, "type": "pointer_declarator", "text": "* const map_", "parent": 267, "children": [276, 277], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 23}}, {"id": 276, "type": "*", "text": "*", "parent": 275, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 277, "type": "identifier", "text": "map_", "parent": 275, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 23}}, {"id": 278, "type": "ERROR", "text": "};", "parent": 256, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 2}}, {"id": 279, "type": "declaration", "text": "template <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;", "parent": 256, "children": [280, 281, 284, 285, 333], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 90, "column": 12}}, {"id": 280, "type": "type_identifier", "text": "template", "parent": 279, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 8}}, {"id": 281, "type": "ERROR", "text": "<typename", "parent": 279, "children": [282, 283], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 18}}, {"id": 282, "type": "<", "text": "<", "parent": 281, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 10}}, {"id": 283, "type": "identifier", "text": "typename", "parent": 281, "children": [], "start_point": {"row": 82, "column": 10}, "end_point": {"row": 82, "column": 18}}, {"id": 284, "type": "identifier", "text": "K", "parent": 279, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 285, "type": "ERROR", "text": "typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++", "parent": 279, "children": [286, 287, 288, 289, 290, 291, 309, 310, 329, 330, 331, 332], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 90, "column": 8}}, {"id": 286, "type": "identifier", "text": "typename", "parent": 285, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 30}}, {"id": 287, "type": "identifier", "text": "V", "parent": 285, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 32}}, {"id": 288, "type": ">", "text": ">", "parent": 285, "children": [], "start_point": {"row": 82, "column": 32}, "end_point": {"row": 82, "column": 33}}, {"id": 289, "type": "identifier", "text": "MapValueIterator", "parent": 285, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 22}}, {"id": 290, "type": "identifier", "text": "Iterator", "parent": 285, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 16}}, {"id": 291, "type": "function_declarator", "text": "Iterator() : it_(typename Map<K, V>::MapIterator())", "parent": 285, "children": [292, 293, 294], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 55}}, {"id": 292, "type": "identifier", "text": "Iterator", "parent": 291, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 12}}, {"id": 293, "type": "parameter_list", "text": "()", "parent": 291, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 14}}, {"id": 294, "type": "call_expression", "text": "it_(typename Map<K, V>::MapIterator())", "parent": 291, "children": [295, 296], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 55}}, {"id": 295, "type": "identifier", "text": "it_", "parent": 294, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 20}}, {"id": 296, "type": "argument_list", "text": "(typename Map<K, V>::MapIterator())", "parent": 294, "children": [297, 303], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 55}}, {"id": 297, "type": "binary_expression", "text": "typename Map<K", "parent": 296, "children": [298, 299, 301, 302], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 35}}, {"id": 298, "type": "identifier", "text": "typename", "parent": 297, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 29}}, {"id": 299, "type": "ERROR", "text": "Map", "parent": 297, "children": [300], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 33}}, {"id": 300, "type": "identifier", "text": "Map", "parent": 299, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 33}}, {"id": 301, "type": "<", "text": "<", "parent": 297, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 34}}, {"id": 302, "type": "identifier", "text": "K", "parent": 297, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 35}}, {"id": 303, "type": "binary_expression", "text": "V>::MapIterator()", "parent": 296, "children": [304, 305, 306], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 54}}, {"id": 304, "type": "identifier", "text": "V", "parent": 303, "children": [], "start_point": {"row": 87, "column": 37}, "end_point": {"row": 87, "column": 38}}, {"id": 305, "type": ">", "text": ">", "parent": 303, "children": [], "start_point": {"row": 87, "column": 38}, "end_point": {"row": 87, "column": 39}}, {"id": 306, "type": "call_expression", "text": "MapIterator()", "parent": 303, "children": [307, 308], "start_point": {"row": 87, "column": 41}, "end_point": {"row": 87, "column": 54}}, {"id": 307, "type": "identifier", "text": "MapIterator", "parent": 306, "children": [], "start_point": {"row": 87, "column": 41}, "end_point": {"row": 87, "column": 52}}, {"id": 308, "type": "argument_list", "text": "()", "parent": 306, "children": [], "start_point": {"row": 87, "column": 52}, "end_point": {"row": 87, "column": 54}}, {"id": 309, "type": "identifier", "text": "explicit", "parent": 285, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 12}}, {"id": 310, "type": "function_declarator", "text": "Iterator(typename Map<K, V>::MapIterator it) : it_(it)", "parent": 285, "children": [311, 312, 325], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 67}}, {"id": 311, "type": "identifier", "text": "Iterator", "parent": 310, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 21}}, {"id": 312, "type": "parameter_list", "text": "(typename Map<K, V>::MapIterator it)", "parent": 310, "children": [313, 316, 319], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 57}}, {"id": 313, "type": "parameter_declaration", "text": "typename Map", "parent": 312, "children": [314, 315], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 34}}, {"id": 314, "type": "type_identifier", "text": "typename", "parent": 313, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 30}}, {"id": 315, "type": "identifier", "text": "Map", "parent": 313, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 34}}, {"id": 316, "type": "ERROR", "text": "<K", "parent": 312, "children": [317, 318], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 36}}, {"id": 317, "type": "<", "text": "<", "parent": 316, "children": [], "start_point": {"row": 88, "column": 34}, "end_point": {"row": 88, "column": 35}}, {"id": 318, "type": "identifier", "text": "K", "parent": 316, "children": [], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 36}}, {"id": 319, "type": "parameter_declaration", "text": "V>::MapIterator it", "parent": 312, "children": [320, 321, 324], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 56}}, {"id": 320, "type": "type_identifier", "text": "V", "parent": 319, "children": [], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 39}}, {"id": 321, "type": "ERROR", "text": ">::MapIterator", "parent": 319, "children": [322, 323], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 53}}, {"id": 322, "type": ">", "text": ">", "parent": 321, "children": [], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 40}}, {"id": 323, "type": "identifier", "text": "MapIterator", "parent": 321, "children": [], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 53}}, {"id": 324, "type": "identifier", "text": "it", "parent": 319, "children": [], "start_point": {"row": 88, "column": 54}, "end_point": {"row": 88, "column": 56}}, {"id": 325, "type": "call_expression", "text": "it_(it)", "parent": 310, "children": [326, 327], "start_point": {"row": 88, "column": 60}, "end_point": {"row": 88, "column": 67}}, {"id": 326, "type": "identifier", "text": "it_", "parent": 325, "children": [], "start_point": {"row": 88, "column": 60}, "end_point": {"row": 88, "column": 63}}, {"id": 327, "type": "argument_list", "text": "(it)", "parent": 325, "children": [328], "start_point": {"row": 88, "column": 63}, "end_point": {"row": 88, "column": 67}}, {"id": 328, "type": "identifier", "text": "it", "parent": 327, "children": [], "start_point": {"row": 88, "column": 64}, "end_point": {"row": 88, "column": 66}}, {"id": 329, "type": "identifier", "text": "Iterator", "parent": 285, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 12}}, {"id": 330, "type": "identifier", "text": "operator", "parent": 285, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 22}}, {"id": 331, "type": "++", "text": "++", "parent": 285, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 24}}, {"id": 332, "type": "++", "text": "++", "parent": 285, "children": [], "start_point": {"row": 90, "column": 6}, "end_point": {"row": 90, "column": 8}}, {"id": 333, "type": "identifier", "text": "it_", "parent": 279, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 11}}, {"id": 334, "type": "declaration", "text": "return *this;", "parent": 256, "children": [335], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 19}}, {"id": 335, "type": "pointer_declarator", "text": "*this", "parent": 334, "children": [336, 337], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 18}}, {"id": 336, "type": "*", "text": "*", "parent": 335, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 14}}, {"id": 337, "type": "identifier", "text": "this", "parent": 335, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 18}}, {"id": 338, "type": "ERROR", "text": "}\n Iterator operator++(int)", "parent": 256, "children": [339, 340, 341, 342], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 93, "column": 28}}, {"id": 339, "type": "type_identifier", "text": "Iterator", "parent": 338, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 12}}, {"id": 340, "type": "identifier", "text": "operator", "parent": 338, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 21}}, {"id": 341, "type": "++", "text": "++", "parent": 338, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 23}}, {"id": 342, "type": "primitive_type", "text": "int", "parent": 338, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 27}}, {"id": 343, "type": "declaration", "text": "Iterator original = *this;", "parent": 256, "children": [344, 345], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 32}}, {"id": 344, "type": "type_identifier", "text": "Iterator", "parent": 343, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 14}}, {"id": 345, "type": "init_declarator", "text": "original = *this", "parent": 343, "children": [346, 347, 348], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 31}}, {"id": 346, "type": "identifier", "text": "original", "parent": 345, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 23}}, {"id": 347, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 25}}, {"id": 348, "type": "pointer_expression", "text": "*this", "parent": 345, "children": [349, 350], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 31}}, {"id": 349, "type": "*", "text": "*", "parent": 348, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 27}}, {"id": 350, "type": "identifier", "text": "this", "parent": 348, "children": [], "start_point": {"row": 94, "column": 27}, "end_point": {"row": 94, "column": 31}}, {"id": 351, "type": "update_expression", "text": "++it_", "parent": 256, "children": [352, 353], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 11}}, {"id": 352, "type": "++", "text": "++", "parent": 351, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 8}}, {"id": 353, "type": "identifier", "text": "it_", "parent": 351, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 11}}, {"id": 354, "type": "return_statement", "text": "return original;", "parent": 256, "children": [355], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 22}}, {"id": 355, "type": "identifier", "text": "original", "parent": 354, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 21}}, {"id": 356, "type": "binary_expression", "text": "Iterator& operator--()", "parent": 178, "children": [357, 358], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 26}}, {"id": 357, "type": "identifier", "text": "Iterator", "parent": 356, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 12}}, {"id": 358, "type": "call_expression", "text": "operator--()", "parent": 356, "children": [359, 362], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 26}}, {"id": 359, "type": "update_expression", "text": "operator--", "parent": 358, "children": [360, 361], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 24}}, {"id": 360, "type": "identifier", "text": "operator", "parent": 359, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 22}}, {"id": 361, "type": "--", "text": "--", "parent": 359, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 24}}, {"id": 362, "type": "argument_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 26}}, {"id": 363, "type": "update_expression", "text": "--it_", "parent": 178, "children": [364, 365], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 11}}, {"id": 364, "type": "--", "text": "--", "parent": 363, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 8}}, {"id": 365, "type": "identifier", "text": "it_", "parent": 363, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 11}}, {"id": 366, "type": "return_statement", "text": "return *this;", "parent": 178, "children": [367], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 19}}, {"id": 367, "type": "pointer_expression", "text": "*this", "parent": 366, "children": [368, 369], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 18}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 14}}, {"id": 369, "type": "identifier", "text": "this", "parent": 367, "children": [], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 18}}, {"id": 370, "type": "declaration", "text": "Iterator operator", "parent": 178, "children": [371, 372], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 21}}, {"id": 371, "type": "type_identifier", "text": "Iterator", "parent": 370, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 12}}, {"id": 372, "type": "identifier", "text": "operator", "parent": 370, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 21}}, {"id": 373, "type": "update_expression", "text": "--(int) {\n Iterator original = *this", "parent": 178, "children": [374, 375], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 103, "column": 31}}, {"id": 374, "type": "--", "text": "--", "parent": 373, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 23}}, {"id": 375, "type": "compound_literal_expression", "text": "(int) {\n Iterator original = *this", "parent": 373, "children": [376, 378], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 103, "column": 31}}, {"id": 376, "type": "type_descriptor", "text": "int", "parent": 375, "children": [377], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 27}}, {"id": 377, "type": "primitive_type", "text": "int", "parent": 376, "children": [], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 27}}, {"id": 378, "type": "initializer_list", "text": "{\n Iterator original = *this", "parent": 375, "children": [379, 381], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 103, "column": 31}}, {"id": 379, "type": "ERROR", "text": "Iterator", "parent": 378, "children": [380], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 14}}, {"id": 380, "type": "identifier", "text": "Iterator", "parent": 379, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 14}}, {"id": 381, "type": "assignment_expression", "text": "original = *this", "parent": 378, "children": [382, 383, 384], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 31}}, {"id": 382, "type": "identifier", "text": "original", "parent": 381, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 23}}, {"id": 383, "type": "=", "text": "=", "parent": 381, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 25}}, {"id": 384, "type": "pointer_expression", "text": "*this", "parent": 381, "children": [385, 386], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 31}}, {"id": 385, "type": "*", "text": "*", "parent": 384, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 27}}, {"id": 386, "type": "identifier", "text": "this", "parent": 384, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 31}}, {"id": 387, "type": "update_expression", "text": "--it_", "parent": 178, "children": [388, 389], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 11}}, {"id": 388, "type": "--", "text": "--", "parent": 387, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 8}}, {"id": 389, "type": "identifier", "text": "it_", "parent": 387, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 11}}, {"id": 390, "type": "return_statement", "text": "return original;", "parent": 178, "children": [391], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 22}}, {"id": 391, "type": "identifier", "text": "original", "parent": 390, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 21}}, {"id": 392, "type": "ERROR", "text": "bool operator==(const Iterator& o", "parent": 178, "children": [393, 394, 395, 396, 397], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 37}}, {"id": 393, "type": "primitive_type", "text": "bool", "parent": 392, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 8}}, {"id": 394, "type": "identifier", "text": "operator", "parent": 392, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 17}}, {"id": 395, "type": "==", "text": "==", "parent": 392, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 19}}, {"id": 396, "type": "identifier", "text": "Iterator", "parent": 392, "children": [], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 34}}, {"id": 397, "type": "identifier", "text": "o", "parent": 392, "children": [], "start_point": {"row": 107, "column": 36}, "end_point": {"row": 107, "column": 37}}, {"id": 398, "type": "ERROR", "text": "const { return o", "parent": 177, "children": [399], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 55}}, {"id": 399, "type": "identifier", "text": "o", "parent": 398, "children": [], "start_point": {"row": 107, "column": 54}, "end_point": {"row": 107, "column": 55}}, {"id": 400, "type": "field_identifier", "text": "it_", "parent": 177, "children": [], "start_point": {"row": 107, "column": 56}, "end_point": {"row": 107, "column": 59}}, {"id": 401, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 107, "column": 60}, "end_point": {"row": 107, "column": 62}}, {"id": 402, "type": "identifier", "text": "it_", "parent": 172, "children": [], "start_point": {"row": 107, "column": 63}, "end_point": {"row": 107, "column": 66}}, {"id": 403, "type": "ERROR", "text": "bool operator!=(const Iterator& o) const", "parent": 18, "children": [404, 405, 406, 407, 408], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 44}}, {"id": 404, "type": "primitive_type", "text": "bool", "parent": 403, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 8}}, {"id": 405, "type": "identifier", "text": "operator", "parent": 403, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 17}}, {"id": 406, "type": "!=", "text": "!=", "parent": 403, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 19}}, {"id": 407, "type": "type_identifier", "text": "Iterator", "parent": 403, "children": [], "start_point": {"row": 108, "column": 26}, "end_point": {"row": 108, "column": 34}}, {"id": 408, "type": "pointer_expression", "text": "& o", "parent": 403, "children": [409], "start_point": {"row": 108, "column": 34}, "end_point": {"row": 108, "column": 37}}, {"id": 409, "type": "identifier", "text": "o", "parent": 408, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 37}}, {"id": 410, "type": "return_statement", "text": "return o.it_ != it_;", "parent": 18, "children": [411], "start_point": {"row": 108, "column": 47}, "end_point": {"row": 108, "column": 67}}, {"id": 411, "type": "binary_expression", "text": "o.it_ != it_", "parent": 410, "children": [412, 415, 416], "start_point": {"row": 108, "column": 54}, "end_point": {"row": 108, "column": 66}}, {"id": 412, "type": "field_expression", "text": "o.it_", "parent": 411, "children": [413, 414], "start_point": {"row": 108, "column": 54}, "end_point": {"row": 108, "column": 59}}, {"id": 413, "type": "identifier", "text": "o", "parent": 412, "children": [], "start_point": {"row": 108, "column": 54}, "end_point": {"row": 108, "column": 55}}, {"id": 414, "type": "field_identifier", "text": "it_", "parent": 412, "children": [], "start_point": {"row": 108, "column": 56}, "end_point": {"row": 108, "column": 59}}, {"id": 415, "type": "!=", "text": "!=", "parent": 411, "children": [], "start_point": {"row": 108, "column": 60}, "end_point": {"row": 108, "column": 62}}, {"id": 416, "type": "identifier", "text": "it_", "parent": 411, "children": [], "start_point": {"row": 108, "column": 63}, "end_point": {"row": 108, "column": 66}}, {"id": 417, "type": "identifier", "text": "V", "parent": 18, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 5}}, {"id": 418, "type": "identifier", "text": "operator", "parent": 18, "children": [], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 15}}, {"id": 419, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 16}}, {"id": 420, "type": "ERROR", "text": ") { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const", "parent": 18, "children": [427, 442, 443, 468, 476, 477, 487, 488], "start_point": {"row": 109, "column": 17}, "end_point": {"row": 118, "column": 24}}, {"id": 421, "type": "return_statement", "text": "return it_.GetValue();", "parent": 420, "children": [422], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 43}}, {"id": 422, "type": "call_expression", "text": "it_.GetValue()", "parent": 421, "children": [423, 426], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 42}}, {"id": 423, "type": "field_expression", "text": "it_.GetValue", "parent": 422, "children": [424, 425], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 40}}, {"id": 424, "type": "identifier", "text": "it_", "parent": 423, "children": [], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 31}}, {"id": 425, "type": "field_identifier", "text": "GetValue", "parent": 423, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 40}}, {"id": 426, "type": "argument_list", "text": "()", "parent": 422, "children": [], "start_point": {"row": 109, "column": 40}, "end_point": {"row": 109, "column": 42}}, {"id": 427, "type": "binary_expression", "text": "V* operator->()", "parent": 420, "children": [428, 429, 430], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 19}}, {"id": 428, "type": "identifier", "text": "V", "parent": 427, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 5}}, {"id": 429, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 6}}, {"id": 430, "type": "call_expression", "text": "operator->()", "parent": 427, "children": [431, 434], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 19}}, {"id": 431, "type": "field_expression", "text": "operator->", "parent": 430, "children": [432, 433], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 17}}, {"id": 432, "type": "identifier", "text": "operator", "parent": 431, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 15}}, {"id": 433, "type": "field_identifier", "text": "", "parent": 431, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 17}}, {"id": 434, "type": "argument_list", "text": "()", "parent": 430, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 19}}, {"id": 435, "type": "return_statement", "text": "return &it_.GetValue();", "parent": 420, "children": [436], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 45}}, {"id": 436, "type": "pointer_expression", "text": "&it_.GetValue()", "parent": 435, "children": [437], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 44}}, {"id": 437, "type": "call_expression", "text": "it_.GetValue()", "parent": 436, "children": [438, 441], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 44}}, {"id": 438, "type": "field_expression", "text": "it_.GetValue", "parent": 437, "children": [439, 440], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 42}}, {"id": 439, "type": "identifier", "text": "it_", "parent": 438, "children": [], "start_point": {"row": 110, "column": 30}, "end_point": {"row": 110, "column": 33}}, {"id": 440, "type": "field_identifier", "text": "GetValue", "parent": 438, "children": [], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 110, "column": 42}}, {"id": 441, "type": "argument_list", "text": "()", "parent": 437, "children": [], "start_point": {"row": 110, "column": 42}, "end_point": {"row": 110, "column": 44}}, {"id": 442, "type": "identifier", "text": "typename", "parent": 420, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 12}}, {"id": 443, "type": "comma_expression", "text": "Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map)", "parent": 420, "children": [444, 448], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 116, "column": 43}}, {"id": 444, "type": "binary_expression", "text": "Map<K", "parent": 443, "children": [445, 446, 447], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 18}}, {"id": 445, "type": "identifier", "text": "Map", "parent": 444, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 16}}, {"id": 446, "type": "<", "text": "<", "parent": 444, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 17}}, {"id": 447, "type": "identifier", "text": "K", "parent": 444, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 18}}, {"id": 448, "type": "binary_expression", "text": "V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map)", "parent": 443, "children": [449, 450, 451, 455], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 116, "column": 43}}, {"id": 449, "type": "identifier", "text": "V", "parent": 448, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 21}}, {"id": 450, "type": ">", "text": ">", "parent": 448, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 22}}, {"id": 451, "type": "ERROR", "text": "::MapIterator it_;\n };\n\n explicit", "parent": 448, "children": [452, 453, 454], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 116, "column": 10}}, {"id": 452, "type": "identifier", "text": "MapIterator", "parent": 451, "children": [], "start_point": {"row": 113, "column": 24}, "end_point": {"row": 113, "column": 35}}, {"id": 453, "type": "identifier", "text": "it_", "parent": 451, "children": [], "start_point": {"row": 113, "column": 36}, "end_point": {"row": 113, "column": 39}}, {"id": 454, "type": "identifier", "text": "explicit", "parent": 451, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 10}}, {"id": 455, "type": "call_expression", "text": "MapValueIterator(Map<K, V>* map)", "parent": 448, "children": [456, 457], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 43}}, {"id": 456, "type": "identifier", "text": "MapValueIterator", "parent": 455, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 27}}, {"id": 457, "type": "argument_list", "text": "(Map<K, V>* map)", "parent": 455, "children": [458, 462], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 43}}, {"id": 458, "type": "binary_expression", "text": "Map<K", "parent": 457, "children": [459, 460, 461], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 33}}, {"id": 459, "type": "identifier", "text": "Map", "parent": 458, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 31}}, {"id": 460, "type": "<", "text": "<", "parent": 458, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 32}}, {"id": 461, "type": "identifier", "text": "K", "parent": 458, "children": [], "start_point": {"row": 116, "column": 32}, "end_point": {"row": 116, "column": 33}}, {"id": 462, "type": "binary_expression", "text": "V>* map", "parent": 457, "children": [463, 464, 465], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 42}}, {"id": 463, "type": "identifier", "text": "V", "parent": 462, "children": [], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 36}}, {"id": 464, "type": ">", "text": ">", "parent": 462, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 37}}, {"id": 465, "type": "pointer_expression", "text": "* map", "parent": 462, "children": [466, 467], "start_point": {"row": 116, "column": 37}, "end_point": {"row": 116, "column": 42}}, {"id": 466, "type": "*", "text": "*", "parent": 465, "children": [], "start_point": {"row": 116, "column": 37}, "end_point": {"row": 116, "column": 38}}, {"id": 467, "type": "identifier", "text": "map", "parent": 465, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 42}}, {"id": 468, "type": "macro_type_specifier", "text": "map_(map)", "parent": 420, "children": [469, 470], "start_point": {"row": 116, "column": 46}, "end_point": {"row": 116, "column": 55}}, {"id": 469, "type": "identifier", "text": "map_", "parent": 468, "children": [], "start_point": {"row": 116, "column": 46}, "end_point": {"row": 116, "column": 50}}, {"id": 470, "type": "type_descriptor", "text": "map", "parent": 468, "children": [471], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 54}}, {"id": 471, "type": "type_identifier", "text": "map", "parent": 470, "children": [], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 54}}, {"id": 472, "type": "call_expression", "text": "MOJO_DCHECK(map)", "parent": 420, "children": [473, 474], "start_point": {"row": 116, "column": 58}, "end_point": {"row": 116, "column": 74}}, {"id": 473, "type": "identifier", "text": "MOJO_DCHECK", "parent": 472, "children": [], "start_point": {"row": 116, "column": 58}, "end_point": {"row": 116, "column": 69}}, {"id": 474, "type": "argument_list", "text": "(map)", "parent": 472, "children": [475], "start_point": {"row": 116, "column": 69}, "end_point": {"row": 116, "column": 74}}, {"id": 475, "type": "identifier", "text": "map", "parent": 474, "children": [], "start_point": {"row": 116, "column": 70}, "end_point": {"row": 116, "column": 73}}, {"id": 476, "type": "primitive_type", "text": "size_t", "parent": 420, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 8}}, {"id": 477, "type": "type_descriptor", "text": "size()", "parent": 420, "children": [478, 479], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 15}}, {"id": 478, "type": "type_identifier", "text": "size", "parent": 477, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 13}}, {"id": 479, "type": "abstract_function_declarator", "text": "()", "parent": 477, "children": [480], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 15}}, {"id": 480, "type": "parameter_list", "text": "()", "parent": 479, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 15}}, {"id": 481, "type": "return_statement", "text": "return map_->size();", "parent": 420, "children": [482], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 44}}, {"id": 482, "type": "call_expression", "text": "map_->size()", "parent": 481, "children": [483, 486], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 43}}, {"id": 483, "type": "field_expression", "text": "map_->size", "parent": 482, "children": [484, 485], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 41}}, {"id": 484, "type": "identifier", "text": "map_", "parent": 483, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 35}}, {"id": 485, "type": "field_identifier", "text": "size", "parent": 483, "children": [], "start_point": {"row": 117, "column": 37}, "end_point": {"row": 117, "column": 41}}, {"id": 486, "type": "argument_list", "text": "()", "parent": 482, "children": [], "start_point": {"row": 117, "column": 41}, "end_point": {"row": 117, "column": 43}}, {"id": 487, "type": "identifier", "text": "Iterator", "parent": 420, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 10}}, {"id": 488, "type": "type_descriptor", "text": "begin()", "parent": 420, "children": [489], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 18}}, {"id": 489, "type": "abstract_function_declarator", "text": "()", "parent": 488, "children": [490], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 18}}, {"id": 490, "type": "parameter_list", "text": "()", "parent": 489, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 18}}, {"id": 491, "type": "return_statement", "text": "return Iterator", "parent": 18, "children": [492], "start_point": {"row": 118, "column": 27}, "end_point": {"row": 118, "column": 42}}, {"id": 492, "type": "identifier", "text": "Iterator", "parent": 491, "children": [], "start_point": {"row": 118, "column": 34}, "end_point": {"row": 118, "column": 42}}, {"id": 493, "type": "call_expression", "text": "map_->begin()", "parent": 18, "children": [494, 496], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 56}}, {"id": 494, "type": "field_expression", "text": "map_->begin", "parent": 493, "children": [495], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 54}}, {"id": 495, "type": "identifier", "text": "map_", "parent": 494, "children": [], "start_point": {"row": 118, "column": 43}, "end_point": {"row": 118, "column": 47}}, {"id": 496, "type": "argument_list", "text": "()", "parent": 493, "children": [], "start_point": {"row": 118, "column": 54}, "end_point": {"row": 118, "column": 56}}, {"id": 497, "type": "type_identifier", "text": "Iterator", "parent": 18, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 10}}, {"id": 498, "type": "function_declarator", "text": "end()", "parent": 18, "children": [499], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 16}}, {"id": 499, "type": "parameter_list", "text": "()", "parent": 498, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 16}}, {"id": 500, "type": "declaration", "text": "const { return Iterator{map_->end()};", "parent": 18, "children": [501, 502, 503, 505], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 54}}, {"id": 501, "type": "ERROR", "text": "{ return", "parent": 500, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 31}}, {"id": 502, "type": "type_identifier", "text": "Iterator", "parent": 500, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 40}}, {"id": 503, "type": "ERROR", "text": "{map_->", "parent": 500, "children": [504], "start_point": {"row": 119, "column": 40}, "end_point": {"row": 119, "column": 47}}, {"id": 504, "type": "identifier", "text": "map_", "parent": 503, "children": [], "start_point": {"row": 119, "column": 41}, "end_point": {"row": 119, "column": 45}}, {"id": 505, "type": "function_declarator", "text": "end()", "parent": 500, "children": [506], "start_point": {"row": 119, "column": 47}, "end_point": {"row": 119, "column": 52}}, {"id": 506, "type": "parameter_list", "text": "()", "parent": 505, "children": [], "start_point": {"row": 119, "column": 50}, "end_point": {"row": 119, "column": 52}}, {"id": 507, "type": "declaration", "text": "private:\n Map<K, V>* const map_;", "parent": 18, "children": [508, 511, 512, 515], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 122, "column": 24}}, {"id": 508, "type": "ERROR", "text": ":\n Map<", "parent": 507, "children": [509, 510], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 122, "column": 6}}, {"id": 509, "type": "identifier", "text": "Map", "parent": 508, "children": [], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 5}}, {"id": 510, "type": "<", "text": "<", "parent": 508, "children": [], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 6}}, {"id": 511, "type": "identifier", "text": "K", "parent": 507, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 7}}, {"id": 512, "type": "ERROR", "text": "V>", "parent": 507, "children": [513, 514], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 11}}, {"id": 513, "type": "identifier", "text": "V", "parent": 512, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 10}}, {"id": 514, "type": ">", "text": ">", "parent": 512, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 515, "type": "pointer_declarator", "text": "* const map_", "parent": 507, "children": [516, 517], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 23}}, {"id": 516, "type": "*", "text": "*", "parent": 515, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 12}}, {"id": 517, "type": "identifier", "text": "map_", "parent": 515, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 23}}, {"id": 518, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 49, 51, 238, 248, 256, 258, 265, 291, 310, 479, 489, 498, 505], "variables": [54, 60, 84, 120, 260, 267, 279, 313, 319, 334, 343, 370, 500, 507], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [25, 26, 32, 43, 46, 66, 70, 72, 73, 77, 81, 87, 89, 98, 101, 106, 108, 109, 113, 117, 123, 125, 134, 137, 147, 150, 151, 161, 164, 165, 172, 173, 174, 177, 178, 181, 182, 186, 189, 190, 195, 196, 197, 202, 203, 207, 214, 217, 221, 224, 231, 241, 242, 252, 253, 294, 297, 303, 306, 325, 348, 351, 356, 358, 359, 363, 367, 373, 375, 384, 387, 408, 411, 412, 422, 423, 427, 430, 431, 436, 437, 438, 443, 444, 448, 455, 458, 462, 465, 472, 482, 483, 493, 494], "assignments": [95, 131, 381], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 23, 27, 29, 31, 33, 35, 37, 40, 44, 47, 50, 52, 55, 56, 59, 61, 64, 65, 67, 69, 71, 74, 79, 83, 85, 86, 94, 96, 100, 103, 105, 107, 110, 115, 119, 121, 122, 130, 132, 136, 139, 141, 144, 146, 148, 152, 153, 155, 158, 160, 162, 166, 167, 169, 171, 175, 183, 184, 187, 191, 192, 198, 199, 201, 204, 206, 208, 211, 212, 213, 215, 218, 220, 222, 226, 227, 228, 230, 232, 234, 237, 243, 244, 246, 251, 254, 257, 262, 264, 269, 271, 273, 277, 280, 283, 284, 286, 287, 289, 290, 292, 295, 298, 300, 302, 304, 307, 309, 311, 314, 315, 318, 320, 323, 324, 326, 328, 329, 330, 333, 337, 339, 340, 344, 346, 350, 353, 355, 357, 360, 365, 369, 371, 372, 380, 382, 386, 389, 391, 394, 396, 397, 399, 400, 402, 405, 407, 409, 413, 414, 416, 417, 418, 424, 425, 428, 432, 433, 439, 440, 442, 445, 447, 449, 452, 453, 454, 456, 459, 461, 463, 467, 468, 469, 471, 473, 475, 478, 484, 485, 487, 492, 495, 497, 502, 504, 509, 511, 513, 517, 518], "returns": [80, 104, 116, 140, 149, 163, 180, 194, 240, 250, 354, 366, 390, 410, 421, 435, 481, 491], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "MapKeyIterator", "text_snippet": "namespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// ite"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "Iterator(typename Map<K, V>::MapIterator it) : it_(it)"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 256, "universal_type": "function", "name": "MapValueIterator", "text_snippet": "Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// In"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}, {"node_id": 265, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "Iterator() : it_(typename Map<K, V>::MapIterator())"}, {"node_id": 310, "universal_type": "function", "name": "unknown", "text_snippet": "Iterator(typename Map<K, V>::MapIterator it) : it_(it)"}, {"node_id": 479, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 489, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 498, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}, {"node_id": 505, "universal_type": "function", "name": "unknown", "text_snippet": "end()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <algorithm>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"mojo/public/cpp/bindings/array.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"mojo/public/cpp/bindings/map.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"mojo/public/cpp/environment/logging.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "// Copyright 2015 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n#define MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n\n#include <algorithm>\n\n#include \"mojo/public/cpp/bindings/array.h\"\n#include \"mojo/public/cpp/bindings/map.h\"\n#include \"mojo/public/cpp/environment/logging.h\"\n\nnamespace mojo {\nnamespace internal {\n\n// |MapKeyIterator| and |MapValueIterator| are templated interfaces for\n// iterating over a Map<>'s keys and its values, respectively. They provide a\n// begin() and end() for generating an STL-iterator. The generated Iterator\n// follows the BidirectionalIterator concept\n// (http://en.cppreference.com/w/cpp/concept/BidirectionalIterator).\n//\n// Example usage:\n//\n// Map<int,int> my_map;\n// my_map[1] = 2;\n// my_map[3] = 4;\n// my_map[5] = 6;\n// for (int key : MapKeyIterator<int,int>(&my_map)) {\n// std::cout << key << std::endl;\n// }\n// for (int val : MapValueIterator<int,int>(&my_map)) {\n// std::cout << val << std::endl;\n// }\n\n// Interface for iterating over a Map<K, V>'s keys.\n// To construct a |MapKeyIterator|, pass in a non-null pointer to a Map<K, V>;\ntemplate <typename K, typename V>\nclass MapKeyIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_() {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n const K& operator*() { return it_.GetKey(); }\n const K* operator->() { return &it_.GetKey(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapKeyIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n// Interface for iterating over a Map<K, V>'s values.\ntemplate <typename K, typename V>\nclass MapValueIterator {\n public:\n class Iterator {\n public:\n Iterator() : it_(typename Map<K, V>::MapIterator()) {}\n explicit Iterator(typename Map<K, V>::MapIterator it) : it_(it) {}\n Iterator& operator++() {\n ++it_;\n return *this;\n }\n Iterator operator++(int) {\n Iterator original = *this;\n ++it_;\n return original;\n }\n Iterator& operator--() {\n --it_;\n return *this;\n }\n Iterator operator--(int) {\n Iterator original = *this;\n --it_;\n return original;\n }\n bool operator==(const Iterator& o) const { return o.it_ == it_; }\n bool operator!=(const Iterator& o) const { return o.it_ != it_; }\n V& operator*() { return it_.GetValue(); }\n V* operator->() { return &it_.GetValue(); }\n\n private:\n typename Map<K, V>::MapIterator it_;\n };\n\n explicit MapValueIterator(Map<K, V>* map) : map_(map) { MOJO_DCHECK(map); }\n size_t size() const { return map_->size(); }\n Iterator begin() const { return Iterator{map_->begin()}; }\n Iterator end() const { return Iterator{map_->end()}; }\n\n private:\n Map<K, V>* const map_;\n};\n\n} // namespace internal\n} // namespace mojo\n\n#endif // MOJO_PUBLIC_CPP_BINDINGS_LIB_ITERATOR_UTIL_H_\n"}
80,768
c
#ifndef _RREF_LIB #define _RREF_LIB #include <stdio.h> struct Matrix { int dim_x, dim_y; double m_stor[1000*1000]; double *mtx[1000]; }; void InitMatrix(struct Matrix *m, int x_dim, int y_dim); void MtxToReducedREForm(struct Matrix * m); #endif
15.71
17
(translation_unit) "#ifndef _RREF_LIB \n#define _RREF_LIB \n \n#include <stdio.h> \n \nstruct Matrix { \n int dim_x, dim_y; \n double m_stor[1000*1000]; \n double *mtx[1000]; \n}; \n \n \nvoid InitMatrix(struct Matrix *m, int x_dim, int y_dim); \n \nvoid MtxToReducedREForm(struct Matrix * m); \n \n#endif" (preproc_ifdef) "#ifndef _RREF_LIB \n#define _RREF_LIB \n \n#include <stdio.h> \n \nstruct Matrix { \n int dim_x, dim_y; \n double m_stor[1000*1000]; \n double *mtx[1000]; \n}; \n \n \nvoid InitMatrix(struct Matrix *m, int x_dim, int y_dim); \n \nvoid MtxToReducedREForm(struct Matrix * m); \n \n#endif" (#ifndef) "#ifndef" (identifier) "_RREF_LIB" (preproc_def) "#define _RREF_LIB \n" (#define) "#define" (identifier) "_RREF_LIB" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (struct_specifier) "struct Matrix { \n int dim_x, dim_y; \n double m_stor[1000*1000]; \n double *mtx[1000]; \n}" (struct) "struct" (type_identifier) "Matrix" (field_declaration_list) "{ \n int dim_x, dim_y; \n double m_stor[1000*1000]; \n double *mtx[1000]; \n}" ({) "{" (field_declaration) "int dim_x, dim_y;" (primitive_type) "int" (field_identifier) "dim_x" (,) "," (field_identifier) "dim_y" (;) ";" (field_declaration) "double m_stor[1000*1000];" (primitive_type) "double" (array_declarator) "m_stor[1000*1000]" (field_identifier) "m_stor" ([) "[" (binary_expression) "1000*1000" (number_literal) "1000" (*) "*" (number_literal) "1000" (]) "]" (;) ";" (field_declaration) "double *mtx[1000];" (primitive_type) "double" (pointer_declarator) "*mtx[1000]" (*) "*" (array_declarator) "mtx[1000]" (field_identifier) "mtx" ([) "[" (number_literal) "1000" (]) "]" (;) ";" (}) "}" (;) ";" (declaration) "void InitMatrix(struct Matrix *m, int x_dim, int y_dim);" (primitive_type) "void" (function_declarator) "InitMatrix(struct Matrix *m, int x_dim, int y_dim)" (identifier) "InitMatrix" (parameter_list) "(struct Matrix *m, int x_dim, int y_dim)" (() "(" (parameter_declaration) "struct Matrix *m" (struct_specifier) "struct Matrix" (struct) "struct" (type_identifier) "Matrix" (pointer_declarator) "*m" (*) "*" (identifier) "m" (,) "," (parameter_declaration) "int x_dim" (primitive_type) "int" (identifier) "x_dim" (,) "," (parameter_declaration) "int y_dim" (primitive_type) "int" (identifier) "y_dim" ()) ")" (;) ";" (declaration) "void MtxToReducedREForm(struct Matrix * m);" (primitive_type) "void" (function_declarator) "MtxToReducedREForm(struct Matrix * m)" (identifier) "MtxToReducedREForm" (parameter_list) "(struct Matrix * m)" (() "(" (parameter_declaration) "struct Matrix * m" (struct_specifier) "struct Matrix" (struct) "struct" (type_identifier) "Matrix" (pointer_declarator) "* m" (*) "*" (identifier) "m" ()) ")" (;) ";" (#endif) "#endif"
83
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 15.71, "nodes": 62, "errors": 0, "source_hash": "11a1e58f175845171a6d8a4c4606b1fa2dff73b75419655330c908b06be91dbd", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RREF_LIB\r\n#define _RREF_LIB\r\n\r\n#include <stdio.h>\r\n \r\nstruct Matrix {\r\n int dim_x, dim_y;\r\n double m_stor[1000*1000];\r\n double *mtx[1000];\r\n};\r\n\r\n\r\nvoid InitMatrix(struct Matrix *m, int x_dim, int y_dim);\r\n\r\nvoid MtxToReducedREForm(struct Matrix * m);\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 31, 49, 61], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 16, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "_RREF_LIB", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define _RREF_LIB\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": "_RREF_LIB", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "struct_specifier", "text": "struct Matrix {\r\n int dim_x, dim_y;\r\n double m_stor[1000*1000];\r\n double *mtx[1000];\r\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 9, "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": "Matrix", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 13}}, {"id": 12, "type": "field_declaration", "text": "int dim_x, dim_y;", "parent": 9, "children": [13, 14, 15], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 25}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 14, "type": "field_identifier", "text": "dim_x", "parent": 12, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 17}}, {"id": 15, "type": "field_identifier", "text": "dim_y", "parent": 12, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 24}}, {"id": 16, "type": "field_declaration", "text": "double m_stor[1000*1000];", "parent": 9, "children": [17, 18], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 29}}, {"id": 17, "type": "primitive_type", "text": "double", "parent": 16, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 18, "type": "array_declarator", "text": "m_stor[1000*1000]", "parent": 16, "children": [19, 20], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 28}}, {"id": 19, "type": "field_identifier", "text": "m_stor", "parent": 18, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 17}}, {"id": 20, "type": "binary_expression", "text": "1000*1000", "parent": 18, "children": [21, 22, 23], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 27}}, {"id": 21, "type": "number_literal", "text": "1000", "parent": 20, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 22}}, {"id": 22, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 23}}, {"id": 23, "type": "number_literal", "text": "1000", "parent": 20, "children": [], "start_point": {"row": 7, "column": 23}, "end_point": {"row": 7, "column": 27}}, {"id": 24, "type": "field_declaration", "text": "double *mtx[1000];", "parent": 9, "children": [25, 26], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 22}}, {"id": 25, "type": "primitive_type", "text": "double", "parent": 24, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 10}}, {"id": 26, "type": "pointer_declarator", "text": "*mtx[1000]", "parent": 24, "children": [27, 28], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 21}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 12}}, {"id": 28, "type": "array_declarator", "text": "mtx[1000]", "parent": 26, "children": [29, 30], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 21}}, {"id": 29, "type": "field_identifier", "text": "mtx", "parent": 28, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 15}}, {"id": 30, "type": "number_literal", "text": "1000", "parent": 28, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 20}}, {"id": 31, "type": "declaration", "text": "void InitMatrix(struct Matrix *m, int x_dim, int y_dim);", "parent": 0, "children": [32, 33], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 56}}, {"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": "InitMatrix(struct Matrix *m, int x_dim, int y_dim)", "parent": 31, "children": [34, 35], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 55}}, {"id": 34, "type": "identifier", "text": "InitMatrix", "parent": 33, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 15}}, {"id": 35, "type": "parameter_list", "text": "(struct Matrix *m, int x_dim, int y_dim)", "parent": 33, "children": [36, 43, 46], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 55}}, {"id": 36, "type": "parameter_declaration", "text": "struct Matrix *m", "parent": 35, "children": [37, 40], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 32}}, {"id": 37, "type": "struct_specifier", "text": "struct Matrix", "parent": 36, "children": [38, 39], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 29}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 22}}, {"id": 39, "type": "type_identifier", "text": "Matrix", "parent": 37, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 29}}, {"id": 40, "type": "pointer_declarator", "text": "*m", "parent": 36, "children": [41, 42], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 32}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 42, "type": "identifier", "text": "m", "parent": 40, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 43, "type": "parameter_declaration", "text": "int x_dim", "parent": 35, "children": [44, 45], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 43}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 12, "column": 34}, "end_point": {"row": 12, "column": 37}}, {"id": 45, "type": "identifier", "text": "x_dim", "parent": 43, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 43}}, {"id": 46, "type": "parameter_declaration", "text": "int y_dim", "parent": 35, "children": [47, 48], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 54}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 12, "column": 45}, "end_point": {"row": 12, "column": 48}}, {"id": 48, "type": "identifier", "text": "y_dim", "parent": 46, "children": [], "start_point": {"row": 12, "column": 49}, "end_point": {"row": 12, "column": 54}}, {"id": 49, "type": "declaration", "text": "void MtxToReducedREForm(struct Matrix * m);", "parent": 0, "children": [50, 51], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 43}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 51, "type": "function_declarator", "text": "MtxToReducedREForm(struct Matrix * m)", "parent": 49, "children": [52, 53], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 42}}, {"id": 52, "type": "identifier", "text": "MtxToReducedREForm", "parent": 51, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 23}}, {"id": 53, "type": "parameter_list", "text": "(struct Matrix * m)", "parent": 51, "children": [54], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 42}}, {"id": 54, "type": "parameter_declaration", "text": "struct Matrix * m", "parent": 53, "children": [55, 58], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 41}}, {"id": 55, "type": "struct_specifier", "text": "struct Matrix", "parent": 54, "children": [56, 57], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 37}}, {"id": 56, "type": "struct", "text": "struct", "parent": 55, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 30}}, {"id": 57, "type": "type_identifier", "text": "Matrix", "parent": 55, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 37}}, {"id": 58, "type": "pointer_declarator", "text": "* m", "parent": 54, "children": [59, 60], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 41}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 14, "column": 38}, "end_point": {"row": 14, "column": 39}}, {"id": 60, "type": "identifier", "text": "m", "parent": 58, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 41}}, {"id": 61, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 6}}]}, "node_categories": {"declarations": {"functions": [33, 51], "variables": [12, 16, 24, 31, 36, 43, 46, 49, 54], "classes": [9, 10, 37, 38, 55, 56], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [20], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 14, 15, 19, 29, 34, 39, 42, 45, 48, 52, 57, 60, 61], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 21, 23, 30], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 33, "universal_type": "function", "name": "x_dim,", "text_snippet": "InitMatrix(struct Matrix *m, int x_dim, int y_dim)"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "MtxToReducedREForm(struct Matrix * m)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "Matrix", "text_snippet": "struct Matrix {\r\n int dim_x, dim_y;\r\n double m_stor[1000*1000];\r\n double *mtx[1000];\r\n}"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 37, "universal_type": "class", "name": "Matrix", "text_snippet": "struct Matrix"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 55, "universal_type": "class", "name": "Matrix", "text_snippet": "struct Matrix"}, {"node_id": 56, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <stdio.h>\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _RREF_LIB\r\n#define _RREF_LIB\r\n\r\n#include <stdio.h>\r\n \r\nstruct Matrix {\r\n int dim_x, dim_y;\r\n double m_stor[1000*1000];\r\n double *mtx[1000];\r\n};\r\n\r\n\r\nvoid InitMatrix(struct Matrix *m, int x_dim, int y_dim);\r\n\r\nvoid MtxToReducedREForm(struct Matrix * m);\r\n\r\n#endif"}
80,769
c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #ifndef _Stack_h struct Node; //typedef struct Node *ptr_to_node; //typedef ptr_to_node Stack; typedef struct Node { int value; struct Node *next; } Node, *Stack; int is_empty(Stack s); Stack create_stack(); void dispose_stack(Stack s); void make_empty(Stack s); void push(int x, Stack s); int top(Stack s); int pop(Stack s); #endif int is_empty(Stack s) { return s->next == NULL; } Stack create_stack() { Stack s = malloc(sizeof(Node)); s->next = NULL; return s; } void push(int value, Stack s) { Node *node = malloc(sizeof(Node)); node->value = value; node->next = s->next; s->next = node; } void print_stack(Stack s) { printf("inverse print stack: \n"); while (s != NULL) { printf("{.value=%d .next=%x}\n", s->value, s->next); s = s->next; } } int top(Stack s) { if (s->next == NULL) return 0; return s->next->value; } int pop(Stack s) { if (s->next == NULL) return 0; Node *target = s->next; s->next = target->next; int value = target->value; free(target); return value; } int main() { Stack s = create_stack(); assert(is_empty(s) == 1); printf("print empty stack\n"); print_stack(s); printf("push 1 to stack\n"); push(1, s); print_stack(s); printf("get top of stack\n"); printf("%d\n", top(s)); assert(top(s) == 1); printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n"); int pop_value = pop(s); assert(pop_value == 1); push(2, s); push(3, s); pop_value = pop(s); assert(pop_value == 3); print_stack(s); }
21.55
74
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n\n#ifndef _Stack_h\n\nstruct Node;\n//typedef struct Node *ptr_to_node;\n//typedef ptr_to_node Stack;\n\ntypedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;\n\nint is_empty(Stack s);\nStack create_stack();\nvoid dispose_stack(Stack s);\nvoid make_empty(Stack s);\nvoid push(int x, Stack s);\nint top(Stack s);\nint pop(Stack s);\n\n#endif\n\nint is_empty(Stack s) {\n return s->next == NULL;\n}\n\nStack create_stack() {\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}\n\nvoid push(int value, Stack s) {\n Node *node = malloc(sizeof(Node));\n node->value = value;\n node->next = s->next;\n s->next = node;\n}\n\nvoid print_stack(Stack s) {\n printf("inverse print stack: \n");\n while (s != NULL) {\n printf("{.value=%d .next=%x}\n", s->value, s->next);\n s = s->next;\n }\n}\n\nint top(Stack s) {\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}\n\nint pop(Stack s) {\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->next = target->next;\n int value = target->value;\n free(target);\n return value;\n}\n\nint main() {\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf("print empty stack\n");\n print_stack(s);\n printf("push 1 to stack\n");\n push(1, s);\n print_stack(s);\n printf("get top of stack\n");\n printf("%d\n", top(s));\n assert(top(s) == 1);\n printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n");\n int pop_value = pop(s);\n assert(pop_value == 1);\n push(2, s);\n push(3, s);\n pop_value = pop(s);\n assert(pop_value == 3);\n print_stack(s);\n}\n" (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 <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_ifdef) "#ifndef _Stack_h\n\nstruct Node;\n//typedef struct Node *ptr_to_node;\n//typedef ptr_to_node Stack;\n\ntypedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;\n\nint is_empty(Stack s);\nStack create_stack();\nvoid dispose_stack(Stack s);\nvoid make_empty(Stack s);\nvoid push(int x, Stack s);\nint top(Stack s);\nint pop(Stack s);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_Stack_h" (struct_specifier) "struct Node" (struct) "struct" (type_identifier) "Node" (;) ";" (comment) "//typedef struct Node *ptr_to_node;" (comment) "//typedef ptr_to_node Stack;" (type_definition) "typedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;" (typedef) "typedef" (struct_specifier) "struct Node {\n int value;\n struct Node *next;\n}" (struct) "struct" (type_identifier) "Node" (field_declaration_list) "{\n int value;\n struct Node *next;\n}" ({) "{" (field_declaration) "int value;" (primitive_type) "int" (field_identifier) "value" (;) ";" (field_declaration) "struct Node *next;" (struct_specifier) "struct Node" (struct) "struct" (type_identifier) "Node" (pointer_declarator) "*next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (type_identifier) "Node" (,) "," (pointer_declarator) "*Stack" (*) "*" (type_identifier) "Stack" (;) ";" (declaration) "int is_empty(Stack s);" (primitive_type) "int" (function_declarator) "is_empty(Stack s)" (identifier) "is_empty" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (declaration) "Stack create_stack();" (type_identifier) "Stack" (function_declarator) "create_stack()" (identifier) "create_stack" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void dispose_stack(Stack s);" (primitive_type) "void" (function_declarator) "dispose_stack(Stack s)" (identifier) "dispose_stack" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (declaration) "void make_empty(Stack s);" (primitive_type) "void" (function_declarator) "make_empty(Stack s)" (identifier) "make_empty" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (declaration) "void push(int x, Stack s);" (primitive_type) "void" (function_declarator) "push(int x, Stack s)" (identifier) "push" (parameter_list) "(int x, Stack s)" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (declaration) "int top(Stack s);" (primitive_type) "int" (function_declarator) "top(Stack s)" (identifier) "top" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (declaration) "int pop(Stack s);" (primitive_type) "int" (function_declarator) "pop(Stack s)" (identifier) "pop" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (;) ";" (#endif) "#endif" (function_definition) "int is_empty(Stack s) {\n return s->next == NULL;\n}" (primitive_type) "int" (function_declarator) "is_empty(Stack s)" (identifier) "is_empty" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (compound_statement) "{\n return s->next == NULL;\n}" ({) "{" (return_statement) "return s->next == NULL;" (return) "return" (binary_expression) "s->next == NULL" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (==) "==" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (function_definition) "Stack create_stack() {\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}" (type_identifier) "Stack" (function_declarator) "create_stack()" (identifier) "create_stack" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}" ({) "{" (declaration) "Stack s = malloc(sizeof(Node));" (type_identifier) "Stack" (init_declarator) "s = malloc(sizeof(Node))" (identifier) "s" (=) "=" (call_expression) "malloc(sizeof(Node))" (identifier) "malloc" (argument_list) "(sizeof(Node))" (() "(" (sizeof_expression) "sizeof(Node)" (sizeof) "sizeof" (parenthesized_expression) "(Node)" (() "(" (identifier) "Node" ()) ")" ()) ")" (;) ";" (expression_statement) "s->next = NULL;" (assignment_expression) "s->next = NULL" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (return_statement) "return s;" (return) "return" (identifier) "s" (;) ";" (}) "}" (function_definition) "void push(int value, Stack s) {\n Node *node = malloc(sizeof(Node));\n node->value = value;\n node->next = s->next;\n s->next = node;\n}" (primitive_type) "void" (function_declarator) "push(int value, Stack s)" (identifier) "push" (parameter_list) "(int value, Stack s)" (() "(" (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" (,) "," (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (compound_statement) "{\n Node *node = malloc(sizeof(Node));\n node->value = value;\n node->next = s->next;\n s->next = node;\n}" ({) "{" (declaration) "Node *node = malloc(sizeof(Node));" (type_identifier) "Node" (init_declarator) "*node = malloc(sizeof(Node))" (pointer_declarator) "*node" (*) "*" (identifier) "node" (=) "=" (call_expression) "malloc(sizeof(Node))" (identifier) "malloc" (argument_list) "(sizeof(Node))" (() "(" (sizeof_expression) "sizeof(Node)" (sizeof) "sizeof" (parenthesized_expression) "(Node)" (() "(" (identifier) "Node" ()) ")" ()) ")" (;) ";" (expression_statement) "node->value = value;" (assignment_expression) "node->value = value" (field_expression) "node->value" (identifier) "node" (->) "->" (field_identifier) "value" (=) "=" (identifier) "value" (;) ";" (expression_statement) "node->next = s->next;" (assignment_expression) "node->next = s->next" (field_expression) "node->next" (identifier) "node" (->) "->" (field_identifier) "next" (=) "=" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "s->next = node;" (assignment_expression) "s->next = node" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (=) "=" (identifier) "node" (;) ";" (}) "}" (function_definition) "void print_stack(Stack s) {\n printf("inverse print stack: \n");\n while (s != NULL) {\n printf("{.value=%d .next=%x}\n", s->value, s->next);\n s = s->next;\n }\n}" (primitive_type) "void" (function_declarator) "print_stack(Stack s)" (identifier) "print_stack" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (compound_statement) "{\n printf("inverse print stack: \n");\n while (s != NULL) {\n printf("{.value=%d .next=%x}\n", s->value, s->next);\n s = s->next;\n }\n}" ({) "{" (expression_statement) "printf("inverse print stack: \n");" (call_expression) "printf("inverse print stack: \n")" (identifier) "printf" (argument_list) "("inverse print stack: \n")" (() "(" (string_literal) ""inverse print stack: \n"" (") """ (string_content) "inverse print stack: " (escape_sequence) "\n" (") """ ()) ")" (;) ";" (while_statement) "while (s != NULL) {\n printf("{.value=%d .next=%x}\n", s->value, s->next);\n s = s->next;\n }" (while) "while" (parenthesized_expression) "(s != NULL)" (() "(" (binary_expression) "s != NULL" (identifier) "s" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("{.value=%d .next=%x}\n", s->value, s->next);\n s = s->next;\n }" ({) "{" (expression_statement) "printf("{.value=%d .next=%x}\n", s->value, s->next);" (call_expression) "printf("{.value=%d .next=%x}\n", s->value, s->next)" (identifier) "printf" (argument_list) "("{.value=%d .next=%x}\n", s->value, s->next)" (() "(" (string_literal) ""{.value=%d .next=%x}\n"" (") """ (string_content) "{.value=%d .next=%x}" (escape_sequence) "\n" (") """ (,) "," (field_expression) "s->value" (identifier) "s" (->) "->" (field_identifier) "value" (,) "," (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" ()) ")" (;) ";" (expression_statement) "s = s->next;" (assignment_expression) "s = s->next" (identifier) "s" (=) "=" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (}) "}" (function_definition) "int top(Stack s) {\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}" (primitive_type) "int" (function_declarator) "top(Stack s)" (identifier) "top" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (compound_statement) "{\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}" ({) "{" (if_statement) "if (s->next == NULL)\n return 0;" (if) "if" (parenthesized_expression) "(s->next == NULL)" (() "(" (binary_expression) "s->next == NULL" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (return_statement) "return s->next->value;" (return) "return" (field_expression) "s->next->value" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (->) "->" (field_identifier) "value" (;) ";" (}) "}" (function_definition) "int pop(Stack s) {\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->next = target->next;\n int value = target->value;\n free(target);\n return value;\n}" (primitive_type) "int" (function_declarator) "pop(Stack s)" (identifier) "pop" (parameter_list) "(Stack s)" (() "(" (parameter_declaration) "Stack s" (type_identifier) "Stack" (identifier) "s" ()) ")" (compound_statement) "{\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->next = target->next;\n int value = target->value;\n free(target);\n return value;\n}" ({) "{" (if_statement) "if (s->next == NULL)\n return 0;" (if) "if" (parenthesized_expression) "(s->next == NULL)" (() "(" (binary_expression) "s->next == NULL" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (declaration) "Node *target = s->next;" (type_identifier) "Node" (init_declarator) "*target = s->next" (pointer_declarator) "*target" (*) "*" (identifier) "target" (=) "=" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "s->next = target->next;" (assignment_expression) "s->next = target->next" (field_expression) "s->next" (identifier) "s" (->) "->" (field_identifier) "next" (=) "=" (field_expression) "target->next" (identifier) "target" (->) "->" (field_identifier) "next" (;) ";" (declaration) "int value = target->value;" (primitive_type) "int" (init_declarator) "value = target->value" (identifier) "value" (=) "=" (field_expression) "target->value" (identifier) "target" (->) "->" (field_identifier) "value" (;) ";" (expression_statement) "free(target);" (call_expression) "free(target)" (identifier) "free" (argument_list) "(target)" (() "(" (identifier) "target" ()) ")" (;) ";" (return_statement) "return value;" (return) "return" (identifier) "value" (;) ";" (}) "}" (function_definition) "int main() {\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf("print empty stack\n");\n print_stack(s);\n printf("push 1 to stack\n");\n push(1, s);\n print_stack(s);\n printf("get top of stack\n");\n printf("%d\n", top(s));\n assert(top(s) == 1);\n printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n");\n int pop_value = pop(s);\n assert(pop_value == 1);\n push(2, s);\n push(3, s);\n pop_value = pop(s);\n assert(pop_value == 3);\n print_stack(s);\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf("print empty stack\n");\n print_stack(s);\n printf("push 1 to stack\n");\n push(1, s);\n print_stack(s);\n printf("get top of stack\n");\n printf("%d\n", top(s));\n assert(top(s) == 1);\n printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n");\n int pop_value = pop(s);\n assert(pop_value == 1);\n push(2, s);\n push(3, s);\n pop_value = pop(s);\n assert(pop_value == 3);\n print_stack(s);\n}" ({) "{" (declaration) "Stack s = create_stack();" (type_identifier) "Stack" (init_declarator) "s = create_stack()" (identifier) "s" (=) "=" (call_expression) "create_stack()" (identifier) "create_stack" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "assert(is_empty(s) == 1);" (call_expression) "assert(is_empty(s) == 1)" (identifier) "assert" (argument_list) "(is_empty(s) == 1)" (() "(" (binary_expression) "is_empty(s) == 1" (call_expression) "is_empty(s)" (identifier) "is_empty" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (==) "==" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("print empty stack\n");" (call_expression) "printf("print empty stack\n")" (identifier) "printf" (argument_list) "("print empty stack\n")" (() "(" (string_literal) ""print empty stack\n"" (") """ (string_content) "print empty stack" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "print_stack(s);" (call_expression) "print_stack(s)" (identifier) "print_stack" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "printf("push 1 to stack\n");" (call_expression) "printf("push 1 to stack\n")" (identifier) "printf" (argument_list) "("push 1 to stack\n")" (() "(" (string_literal) ""push 1 to stack\n"" (") """ (string_content) "push 1 to stack" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "push(1, s);" (call_expression) "push(1, s)" (identifier) "push" (argument_list) "(1, s)" (() "(" (number_literal) "1" (,) "," (identifier) "s" ()) ")" (;) ";" (expression_statement) "print_stack(s);" (call_expression) "print_stack(s)" (identifier) "print_stack" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "printf("get top of stack\n");" (call_expression) "printf("get top of stack\n")" (identifier) "printf" (argument_list) "("get top of stack\n")" (() "(" (string_literal) ""get top of stack\n"" (") """ (string_content) "get top of stack" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "printf("%d\n", top(s));" (call_expression) "printf("%d\n", top(s))" (identifier) "printf" (argument_list) "("%d\n", top(s))" (() "(" (string_literal) ""%d\n"" (") """ (string_content) "%d" (escape_sequence) "\n" (") """ (,) "," (call_expression) "top(s)" (identifier) "top" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" ()) ")" (;) ";" (expression_statement) "assert(top(s) == 1);" (call_expression) "assert(top(s) == 1)" (identifier) "assert" (argument_list) "(top(s) == 1)" (() "(" (binary_expression) "top(s) == 1" (call_expression) "top(s)" (identifier) "top" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (==) "==" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n");" (call_expression) "printf("pop 1 from stack and push 2, 3, then pop 3 from stack\n")" (identifier) "printf" (argument_list) "("pop 1 from stack and push 2, 3, then pop 3 from stack\n")" (() "(" (string_literal) ""pop 1 from stack and push 2, 3, then pop 3 from stack\n"" (") """ (string_content) "pop 1 from stack and push 2, 3, then pop 3 from stack" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (declaration) "int pop_value = pop(s);" (primitive_type) "int" (init_declarator) "pop_value = pop(s)" (identifier) "pop_value" (=) "=" (call_expression) "pop(s)" (identifier) "pop" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "assert(pop_value == 1);" (call_expression) "assert(pop_value == 1)" (identifier) "assert" (argument_list) "(pop_value == 1)" (() "(" (binary_expression) "pop_value == 1" (identifier) "pop_value" (==) "==" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "push(2, s);" (call_expression) "push(2, s)" (identifier) "push" (argument_list) "(2, s)" (() "(" (number_literal) "2" (,) "," (identifier) "s" ()) ")" (;) ";" (expression_statement) "push(3, s);" (call_expression) "push(3, s)" (identifier) "push" (argument_list) "(3, s)" (() "(" (number_literal) "3" (,) "," (identifier) "s" ()) ")" (;) ";" (expression_statement) "pop_value = pop(s);" (assignment_expression) "pop_value = pop(s)" (identifier) "pop_value" (=) "=" (call_expression) "pop(s)" (identifier) "pop" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (expression_statement) "assert(pop_value == 3);" (call_expression) "assert(pop_value == 3)" (identifier) "assert" (argument_list) "(pop_value == 3)" (() "(" (binary_expression) "pop_value == 3" (identifier) "pop_value" (==) "==" (number_literal) "3" ()) ")" (;) ";" (expression_statement) "print_stack(s);" (call_expression) "print_stack(s)" (identifier) "print_stack" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (}) "}"
659
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 21.55, "nodes": 408, "errors": 0, "source_hash": "ed8bc03afb7155168788a878caad0a8c06a21c3da1e1e8dc7bb9de8d55c17b0c", "categorized_nodes": 298}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdlib.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": "<stdlib.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <assert.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": "<assert.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifndef _Stack_h\n\nstruct Node;\n//typedef struct Node *ptr_to_node;\n//typedef ptr_to_node Stack;\n\ntypedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;\n\nint is_empty(Stack s);\nStack create_stack();\nvoid dispose_stack(Stack s);\nvoid make_empty(Stack s);\nvoid push(int x, Stack s);\nint top(Stack s);\nint pop(Stack s);\n\n#endif", "parent": null, "children": [10, 11, 12, 15, 34, 42, 47, 55, 63, 74, 82, 90], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 10, "type": "#ifndef", "text": "#ifndef", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 11, "type": "identifier", "text": "_Stack_h", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 16}}, {"id": 12, "type": "struct_specifier", "text": "struct Node", "parent": 9, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 11}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "type_identifier", "text": "Node", "parent": 12, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 15, "type": "type_definition", "text": "typedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;", "parent": 9, "children": [16, 17, 30, 31], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 13, "column": 15}}, {"id": 16, "type": "typedef", "text": "typedef", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 17, "type": "struct_specifier", "text": "struct Node {\n int value;\n struct Node *next;\n}", "parent": 15, "children": [18, 19], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 13, "column": 1}}, {"id": 18, "type": "struct", "text": "struct", "parent": 17, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 14}}, {"id": 19, "type": "type_identifier", "text": "Node", "parent": 17, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 19}}, {"id": 20, "type": "field_declaration", "text": "int value;", "parent": 17, "children": [21, 22], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 21, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 7}}, {"id": 22, "type": "field_identifier", "text": "value", "parent": 20, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 13}}, {"id": 23, "type": "field_declaration", "text": "struct Node *next;", "parent": 17, "children": [24, 27], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 22}}, {"id": 24, "type": "struct_specifier", "text": "struct Node", "parent": 23, "children": [25, 26], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 15}}, {"id": 25, "type": "struct", "text": "struct", "parent": 24, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 26, "type": "type_identifier", "text": "Node", "parent": 24, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 15}}, {"id": 27, "type": "pointer_declarator", "text": "*next", "parent": 23, "children": [28, 29], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 21}}, {"id": 28, "type": "*", "text": "*", "parent": 27, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 29, "type": "field_identifier", "text": "next", "parent": 27, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 21}}, {"id": 30, "type": "type_identifier", "text": "Node", "parent": 15, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 6}}, {"id": 31, "type": "pointer_declarator", "text": "*Stack", "parent": 15, "children": [32, 33], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 33, "type": "type_identifier", "text": "Stack", "parent": 31, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 34, "type": "declaration", "text": "int is_empty(Stack s);", "parent": 9, "children": [35, 36], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 3}}, {"id": 36, "type": "function_declarator", "text": "is_empty(Stack s)", "parent": 34, "children": [37, 38], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 21}}, {"id": 37, "type": "identifier", "text": "is_empty", "parent": 36, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 12}}, {"id": 38, "type": "parameter_list", "text": "(Stack s)", "parent": 36, "children": [39], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 21}}, {"id": 39, "type": "parameter_declaration", "text": "Stack s", "parent": 38, "children": [40, 41], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 20}}, {"id": 40, "type": "type_identifier", "text": "Stack", "parent": 39, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 18}}, {"id": 41, "type": "identifier", "text": "s", "parent": 39, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 42, "type": "declaration", "text": "Stack create_stack();", "parent": 9, "children": [43, 44], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 21}}, {"id": 43, "type": "type_identifier", "text": "Stack", "parent": 42, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 5}}, {"id": 44, "type": "function_declarator", "text": "create_stack()", "parent": 42, "children": [45, 46], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 20}}, {"id": 45, "type": "identifier", "text": "create_stack", "parent": 44, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 18}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 20}}, {"id": 47, "type": "declaration", "text": "void dispose_stack(Stack s);", "parent": 9, "children": [48, 49], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 28}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 49, "type": "function_declarator", "text": "dispose_stack(Stack s)", "parent": 47, "children": [50, 51], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 27}}, {"id": 50, "type": "identifier", "text": "dispose_stack", "parent": 49, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 18}}, {"id": 51, "type": "parameter_list", "text": "(Stack s)", "parent": 49, "children": [52], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 52, "type": "parameter_declaration", "text": "Stack s", "parent": 51, "children": [53, 54], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 26}}, {"id": 53, "type": "type_identifier", "text": "Stack", "parent": 52, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 24}}, {"id": 54, "type": "identifier", "text": "s", "parent": 52, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 26}}, {"id": 55, "type": "declaration", "text": "void make_empty(Stack s);", "parent": 9, "children": [56, 57], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 25}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 57, "type": "function_declarator", "text": "make_empty(Stack s)", "parent": 55, "children": [58, 59], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 24}}, {"id": 58, "type": "identifier", "text": "make_empty", "parent": 57, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 15}}, {"id": 59, "type": "parameter_list", "text": "(Stack s)", "parent": 57, "children": [60], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 24}}, {"id": 60, "type": "parameter_declaration", "text": "Stack s", "parent": 59, "children": [61, 62], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 23}}, {"id": 61, "type": "type_identifier", "text": "Stack", "parent": 60, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 21}}, {"id": 62, "type": "identifier", "text": "s", "parent": 60, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 23}}, {"id": 63, "type": "declaration", "text": "void push(int x, Stack s);", "parent": 9, "children": [64, 65], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 26}}, {"id": 64, "type": "primitive_type", "text": "void", "parent": 63, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 4}}, {"id": 65, "type": "function_declarator", "text": "push(int x, Stack s)", "parent": 63, "children": [66, 67], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 25}}, {"id": 66, "type": "identifier", "text": "push", "parent": 65, "children": [], "start_point": {"row": 19, "column": 5}, "end_point": {"row": 19, "column": 9}}, {"id": 67, "type": "parameter_list", "text": "(int x, Stack s)", "parent": 65, "children": [68, 71], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 25}}, {"id": 68, "type": "parameter_declaration", "text": "int x", "parent": 67, "children": [69, 70], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 15}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 13}}, {"id": 70, "type": "identifier", "text": "x", "parent": 68, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 15}}, {"id": 71, "type": "parameter_declaration", "text": "Stack s", "parent": 67, "children": [72, 73], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 24}}, {"id": 72, "type": "type_identifier", "text": "Stack", "parent": 71, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 22}}, {"id": 73, "type": "identifier", "text": "s", "parent": 71, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 74, "type": "declaration", "text": "int top(Stack s);", "parent": 9, "children": [75, 76], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 17}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 3}}, {"id": 76, "type": "function_declarator", "text": "top(Stack s)", "parent": 74, "children": [77, 78], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 16}}, {"id": 77, "type": "identifier", "text": "top", "parent": 76, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 7}}, {"id": 78, "type": "parameter_list", "text": "(Stack s)", "parent": 76, "children": [79], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 16}}, {"id": 79, "type": "parameter_declaration", "text": "Stack s", "parent": 78, "children": [80, 81], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 80, "type": "type_identifier", "text": "Stack", "parent": 79, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 81, "type": "identifier", "text": "s", "parent": 79, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 82, "type": "declaration", "text": "int pop(Stack s);", "parent": 9, "children": [83, 84], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 17}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 84, "type": "function_declarator", "text": "pop(Stack s)", "parent": 82, "children": [85, 86], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 16}}, {"id": 85, "type": "identifier", "text": "pop", "parent": 84, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 86, "type": "parameter_list", "text": "(Stack s)", "parent": 84, "children": [87], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 16}}, {"id": 87, "type": "parameter_declaration", "text": "Stack s", "parent": 86, "children": [88, 89], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 15}}, {"id": 88, "type": "type_identifier", "text": "Stack", "parent": 87, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 13}}, {"id": 89, "type": "identifier", "text": "s", "parent": 87, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 15}}, {"id": 90, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 91, "type": "function_definition", "text": "int is_empty(Stack s) {\n return s->next == NULL;\n}", "parent": null, "children": [92, 93], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 3}}, {"id": 93, "type": "function_declarator", "text": "is_empty(Stack s)", "parent": 91, "children": [94, 95], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 21}}, {"id": 94, "type": "identifier", "text": "is_empty", "parent": 93, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 95, "type": "parameter_list", "text": "(Stack s)", "parent": 93, "children": [96], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 21}}, {"id": 96, "type": "parameter_declaration", "text": "Stack s", "parent": 95, "children": [97, 98], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 20}}, {"id": 97, "type": "type_identifier", "text": "Stack", "parent": 96, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 18}}, {"id": 98, "type": "identifier", "text": "s", "parent": 96, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 20}}, {"id": 99, "type": "return_statement", "text": "return s->next == NULL;", "parent": 91, "children": [100], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 27}}, {"id": 100, "type": "binary_expression", "text": "s->next == NULL", "parent": 99, "children": [101, 104, 105], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 26}}, {"id": 101, "type": "field_expression", "text": "s->next", "parent": 100, "children": [102, 103], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 18}}, {"id": 102, "type": "identifier", "text": "s", "parent": 101, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 12}}, {"id": 103, "type": "field_identifier", "text": "next", "parent": 101, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 18}}, {"id": 104, "type": "==", "text": "==", "parent": 100, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 21}}, {"id": 105, "type": "null", "text": "NULL", "parent": 100, "children": [106], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 26}}, {"id": 106, "type": "NULL", "text": "NULL", "parent": 105, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 26}}, {"id": 107, "type": "function_definition", "text": "Stack create_stack() {\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}", "parent": null, "children": [108, 109], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 108, "type": "type_identifier", "text": "Stack", "parent": 107, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 5}}, {"id": 109, "type": "function_declarator", "text": "create_stack()", "parent": 107, "children": [110, 111], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 20}}, {"id": 110, "type": "identifier", "text": "create_stack", "parent": 109, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 18}}, {"id": 111, "type": "parameter_list", "text": "()", "parent": 109, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 20}}, {"id": 112, "type": "declaration", "text": "Stack s = malloc(sizeof(Node));", "parent": 107, "children": [113, 114], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 35}}, {"id": 113, "type": "type_identifier", "text": "Stack", "parent": 112, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 9}}, {"id": 114, "type": "init_declarator", "text": "s = malloc(sizeof(Node))", "parent": 112, "children": [115, 116, 117], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 34}}, {"id": 115, "type": "identifier", "text": "s", "parent": 114, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 11}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 117, "type": "call_expression", "text": "malloc(sizeof(Node))", "parent": 114, "children": [118, 119], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 34}}, {"id": 118, "type": "identifier", "text": "malloc", "parent": 117, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 119, "type": "argument_list", "text": "(sizeof(Node))", "parent": 117, "children": [120], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 34}}, {"id": 120, "type": "sizeof_expression", "text": "sizeof(Node)", "parent": 119, "children": [121], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 33}}, {"id": 121, "type": "parenthesized_expression", "text": "(Node)", "parent": 120, "children": [122], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 33}}, {"id": 122, "type": "identifier", "text": "Node", "parent": 121, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 32}}, {"id": 123, "type": "assignment_expression", "text": "s->next = NULL", "parent": 107, "children": [124, 127, 128], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 18}}, {"id": 124, "type": "field_expression", "text": "s->next", "parent": 123, "children": [125, 126], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 125, "type": "identifier", "text": "s", "parent": 124, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 5}}, {"id": 126, "type": "field_identifier", "text": "next", "parent": 124, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 127, "type": "=", "text": "=", "parent": 123, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 13}}, {"id": 128, "type": "null", "text": "NULL", "parent": 123, "children": [129], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 18}}, {"id": 129, "type": "NULL", "text": "NULL", "parent": 128, "children": [], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 18}}, {"id": 130, "type": "return_statement", "text": "return s;", "parent": 107, "children": [131], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 13}}, {"id": 131, "type": "identifier", "text": "s", "parent": 130, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}, {"id": 132, "type": "function_definition", "text": "void push(int value, Stack s) {\n Node *node = malloc(sizeof(Node));\n node->value = value;\n node->next = s->next;\n s->next = node;\n}", "parent": null, "children": [133, 134], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 133, "type": "primitive_type", "text": "void", "parent": 132, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 134, "type": "function_declarator", "text": "push(int value, Stack s)", "parent": 132, "children": [135, 136], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 29}}, {"id": 135, "type": "identifier", "text": "push", "parent": 134, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 9}}, {"id": 136, "type": "parameter_list", "text": "(int value, Stack s)", "parent": 134, "children": [137, 140], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 29}}, {"id": 137, "type": "parameter_declaration", "text": "int value", "parent": 136, "children": [138, 139], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 19}}, {"id": 138, "type": "primitive_type", "text": "int", "parent": 137, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 13}}, {"id": 139, "type": "identifier", "text": "value", "parent": 137, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 19}}, {"id": 140, "type": "parameter_declaration", "text": "Stack s", "parent": 136, "children": [141, 142], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 28}}, {"id": 141, "type": "type_identifier", "text": "Stack", "parent": 140, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 26}}, {"id": 142, "type": "identifier", "text": "s", "parent": 140, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 143, "type": "declaration", "text": "Node *node = malloc(sizeof(Node));", "parent": 132, "children": [144, 145], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 38}}, {"id": 144, "type": "type_identifier", "text": "Node", "parent": 143, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 145, "type": "init_declarator", "text": "*node = malloc(sizeof(Node))", "parent": 143, "children": [146, 149, 150], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 37}}, {"id": 146, "type": "pointer_declarator", "text": "*node", "parent": 145, "children": [147, 148], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 14}}, {"id": 147, "type": "*", "text": "*", "parent": 146, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 10}}, {"id": 148, "type": "identifier", "text": "node", "parent": 146, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 14}}, {"id": 149, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 16}}, {"id": 150, "type": "call_expression", "text": "malloc(sizeof(Node))", "parent": 145, "children": [151, 152], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 37}}, {"id": 151, "type": "identifier", "text": "malloc", "parent": 150, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 152, "type": "argument_list", "text": "(sizeof(Node))", "parent": 150, "children": [153], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 37}}, {"id": 153, "type": "sizeof_expression", "text": "sizeof(Node)", "parent": 152, "children": [154], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 36}}, {"id": 154, "type": "parenthesized_expression", "text": "(Node)", "parent": 153, "children": [155], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 36}}, {"id": 155, "type": "identifier", "text": "Node", "parent": 154, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 35}}, {"id": 156, "type": "assignment_expression", "text": "node->value = value", "parent": 132, "children": [157, 160, 161], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 23}}, {"id": 157, "type": "field_expression", "text": "node->value", "parent": 156, "children": [158, 159], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 158, "type": "identifier", "text": "node", "parent": 157, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 159, "type": "field_identifier", "text": "value", "parent": 157, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 15}}, {"id": 160, "type": "=", "text": "=", "parent": 156, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 17}}, {"id": 161, "type": "identifier", "text": "value", "parent": 156, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 23}}, {"id": 162, "type": "assignment_expression", "text": "node->next = s->next", "parent": 132, "children": [163, 166, 167], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 24}}, {"id": 163, "type": "field_expression", "text": "node->next", "parent": 162, "children": [164, 165], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 14}}, {"id": 164, "type": "identifier", "text": "node", "parent": 163, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 165, "type": "field_identifier", "text": "next", "parent": 163, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 14}}, {"id": 166, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 167, "type": "field_expression", "text": "s->next", "parent": 162, "children": [168, 169], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 24}}, {"id": 168, "type": "identifier", "text": "s", "parent": 167, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 18}}, {"id": 169, "type": "field_identifier", "text": "next", "parent": 167, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 24}}, {"id": 170, "type": "assignment_expression", "text": "s->next = node", "parent": 132, "children": [171, 174, 175], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 18}}, {"id": 171, "type": "field_expression", "text": "s->next", "parent": 170, "children": [172, 173], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 11}}, {"id": 172, "type": "identifier", "text": "s", "parent": 171, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 173, "type": "field_identifier", "text": "next", "parent": 171, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 174, "type": "=", "text": "=", "parent": 170, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 175, "type": "identifier", "text": "node", "parent": 170, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 18}}, {"id": 176, "type": "function_definition", "text": "void print_stack(Stack s) {\n printf(\"inverse print stack: \\n\");\n while (s != NULL) {\n printf(\"{.value=%d .next=%x}\\n\", s->value, s->next);\n s = s->next;\n }\n}", "parent": null, "children": [177, 178], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 177, "type": "primitive_type", "text": "void", "parent": 176, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 178, "type": "function_declarator", "text": "print_stack(Stack s)", "parent": 176, "children": [179, 180], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 25}}, {"id": 179, "type": "identifier", "text": "print_stack", "parent": 178, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 16}}, {"id": 180, "type": "parameter_list", "text": "(Stack s)", "parent": 178, "children": [181], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 25}}, {"id": 181, "type": "parameter_declaration", "text": "Stack s", "parent": 180, "children": [182, 183], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 24}}, {"id": 182, "type": "type_identifier", "text": "Stack", "parent": 181, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 22}}, {"id": 183, "type": "identifier", "text": "s", "parent": 181, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 24}}, {"id": 184, "type": "call_expression", "text": "printf(\"inverse print stack: \\n\")", "parent": 176, "children": [185, 186], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 37}}, {"id": 185, "type": "identifier", "text": "printf", "parent": 184, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 10}}, {"id": 186, "type": "argument_list", "text": "(\"inverse print stack: \\n\")", "parent": 184, "children": [187], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 37}}, {"id": 187, "type": "string_literal", "text": "\"inverse print stack: \\n\"", "parent": 186, "children": [188], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 36}}, {"id": 188, "type": "escape_sequence", "text": "\\n", "parent": 187, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 35}}, {"id": 189, "type": "while_statement", "text": "while (s != NULL) {\n printf(\"{.value=%d .next=%x}\\n\", s->value, s->next);\n s = s->next;\n }", "parent": 176, "children": [190], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 47, "column": 5}}, {"id": 190, "type": "parenthesized_expression", "text": "(s != NULL)", "parent": 189, "children": [191], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 21}}, {"id": 191, "type": "binary_expression", "text": "s != NULL", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 20}}, {"id": 192, "type": "identifier", "text": "s", "parent": 191, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 193, "type": "!=", "text": "!=", "parent": 191, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 15}}, {"id": 194, "type": "null", "text": "NULL", "parent": 191, "children": [195], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 195, "type": "NULL", "text": "NULL", "parent": 194, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 20}}, {"id": 196, "type": "call_expression", "text": "printf(\"{.value=%d .next=%x}\\n\", s->value, s->next)", "parent": 189, "children": [197, 198], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 59}}, {"id": 197, "type": "identifier", "text": "printf", "parent": 196, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 14}}, {"id": 198, "type": "argument_list", "text": "(\"{.value=%d .next=%x}\\n\", s->value, s->next)", "parent": 196, "children": [199, 201, 204], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 59}}, {"id": 199, "type": "string_literal", "text": "\"{.value=%d .next=%x}\\n\"", "parent": 198, "children": [200], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 39}}, {"id": 200, "type": "escape_sequence", "text": "\\n", "parent": 199, "children": [], "start_point": {"row": 45, "column": 36}, "end_point": {"row": 45, "column": 38}}, {"id": 201, "type": "field_expression", "text": "s->value", "parent": 198, "children": [202, 203], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 49}}, {"id": 202, "type": "identifier", "text": "s", "parent": 201, "children": [], "start_point": {"row": 45, "column": 41}, "end_point": {"row": 45, "column": 42}}, {"id": 203, "type": "field_identifier", "text": "value", "parent": 201, "children": [], "start_point": {"row": 45, "column": 44}, "end_point": {"row": 45, "column": 49}}, {"id": 204, "type": "field_expression", "text": "s->next", "parent": 198, "children": [205, 206], "start_point": {"row": 45, "column": 51}, "end_point": {"row": 45, "column": 58}}, {"id": 205, "type": "identifier", "text": "s", "parent": 204, "children": [], "start_point": {"row": 45, "column": 51}, "end_point": {"row": 45, "column": 52}}, {"id": 206, "type": "field_identifier", "text": "next", "parent": 204, "children": [], "start_point": {"row": 45, "column": 54}, "end_point": {"row": 45, "column": 58}}, {"id": 207, "type": "assignment_expression", "text": "s = s->next", "parent": 189, "children": [208, 209, 210], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 19}}, {"id": 208, "type": "identifier", "text": "s", "parent": 207, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 210, "type": "field_expression", "text": "s->next", "parent": 207, "children": [211, 212], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 19}}, {"id": 211, "type": "identifier", "text": "s", "parent": 210, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 212, "type": "field_identifier", "text": "next", "parent": 210, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 19}}, {"id": 213, "type": "function_definition", "text": "int top(Stack s) {\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}", "parent": null, "children": [214, 215], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 214, "type": "primitive_type", "text": "int", "parent": 213, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 3}}, {"id": 215, "type": "function_declarator", "text": "top(Stack s)", "parent": 213, "children": [216, 217], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 16}}, {"id": 216, "type": "identifier", "text": "top", "parent": 215, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 7}}, {"id": 217, "type": "parameter_list", "text": "(Stack s)", "parent": 215, "children": [218], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 16}}, {"id": 218, "type": "parameter_declaration", "text": "Stack s", "parent": 217, "children": [219, 220], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 15}}, {"id": 219, "type": "type_identifier", "text": "Stack", "parent": 218, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 13}}, {"id": 220, "type": "identifier", "text": "s", "parent": 218, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 15}}, {"id": 221, "type": "if_statement", "text": "if (s->next == NULL)\n return 0;", "parent": 213, "children": [222, 230], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 52, "column": 17}}, {"id": 222, "type": "parenthesized_expression", "text": "(s->next == NULL)", "parent": 221, "children": [223], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 24}}, {"id": 223, "type": "binary_expression", "text": "s->next == NULL", "parent": 222, "children": [224, 227, 228], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 23}}, {"id": 224, "type": "field_expression", "text": "s->next", "parent": 223, "children": [225, 226], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 15}}, {"id": 225, "type": "identifier", "text": "s", "parent": 224, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 9}}, {"id": 226, "type": "field_identifier", "text": "next", "parent": 224, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 15}}, {"id": 227, "type": "==", "text": "==", "parent": 223, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 18}}, {"id": 228, "type": "null", "text": "NULL", "parent": 223, "children": [229], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 23}}, {"id": 229, "type": "NULL", "text": "NULL", "parent": 228, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 23}}, {"id": 230, "type": "return_statement", "text": "return 0;", "parent": 221, "children": [231], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 17}}, {"id": 231, "type": "number_literal", "text": "0", "parent": 230, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 16}}, {"id": 232, "type": "return_statement", "text": "return s->next->value;", "parent": 213, "children": [233], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 26}}, {"id": 233, "type": "field_expression", "text": "s->next->value", "parent": 232, "children": [234, 237], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 25}}, {"id": 234, "type": "field_expression", "text": "s->next", "parent": 233, "children": [235, 236], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 18}}, {"id": 235, "type": "identifier", "text": "s", "parent": 234, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 12}}, {"id": 236, "type": "field_identifier", "text": "next", "parent": 234, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 18}}, {"id": 237, "type": "field_identifier", "text": "value", "parent": 233, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 25}}, {"id": 238, "type": "function_definition", "text": "int pop(Stack s) {\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->next = target->next;\n int value = target->value;\n free(target);\n return value;\n}", "parent": null, "children": [239, 240], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 239, "type": "primitive_type", "text": "int", "parent": 238, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 3}}, {"id": 240, "type": "function_declarator", "text": "pop(Stack s)", "parent": 238, "children": [241, 242], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 16}}, {"id": 241, "type": "identifier", "text": "pop", "parent": 240, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 242, "type": "parameter_list", "text": "(Stack s)", "parent": 240, "children": [243], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 16}}, {"id": 243, "type": "parameter_declaration", "text": "Stack s", "parent": 242, "children": [244, 245], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 15}}, {"id": 244, "type": "type_identifier", "text": "Stack", "parent": 243, "children": [], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 56, "column": 13}}, {"id": 245, "type": "identifier", "text": "s", "parent": 243, "children": [], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 15}}, {"id": 246, "type": "if_statement", "text": "if (s->next == NULL)\n return 0;", "parent": 238, "children": [247, 255], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 58, "column": 17}}, {"id": 247, "type": "parenthesized_expression", "text": "(s->next == NULL)", "parent": 246, "children": [248], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 24}}, {"id": 248, "type": "binary_expression", "text": "s->next == NULL", "parent": 247, "children": [249, 252, 253], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 23}}, {"id": 249, "type": "field_expression", "text": "s->next", "parent": 248, "children": [250, 251], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 15}}, {"id": 250, "type": "identifier", "text": "s", "parent": 249, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 9}}, {"id": 251, "type": "field_identifier", "text": "next", "parent": 249, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 15}}, {"id": 252, "type": "==", "text": "==", "parent": 248, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 18}}, {"id": 253, "type": "null", "text": "NULL", "parent": 248, "children": [254], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 23}}, {"id": 254, "type": "NULL", "text": "NULL", "parent": 253, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 23}}, {"id": 255, "type": "return_statement", "text": "return 0;", "parent": 246, "children": [256], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 17}}, {"id": 256, "type": "number_literal", "text": "0", "parent": 255, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 257, "type": "declaration", "text": "Node *target = s->next;", "parent": 238, "children": [258, 259], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 27}}, {"id": 258, "type": "type_identifier", "text": "Node", "parent": 257, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 259, "type": "init_declarator", "text": "*target = s->next", "parent": 257, "children": [260, 263, 264], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 26}}, {"id": 260, "type": "pointer_declarator", "text": "*target", "parent": 259, "children": [261, 262], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 16}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 10}}, {"id": 262, "type": "identifier", "text": "target", "parent": 260, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 16}}, {"id": 263, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 264, "type": "field_expression", "text": "s->next", "parent": 259, "children": [265, 266], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 26}}, {"id": 265, "type": "identifier", "text": "s", "parent": 264, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 266, "type": "field_identifier", "text": "next", "parent": 264, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 26}}, {"id": 267, "type": "assignment_expression", "text": "s->next = target->next", "parent": 238, "children": [268, 271, 272], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 26}}, {"id": 268, "type": "field_expression", "text": "s->next", "parent": 267, "children": [269, 270], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 11}}, {"id": 269, "type": "identifier", "text": "s", "parent": 268, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 270, "type": "field_identifier", "text": "next", "parent": 268, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 11}}, {"id": 271, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 272, "type": "field_expression", "text": "target->next", "parent": 267, "children": [273, 274], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 26}}, {"id": 273, "type": "identifier", "text": "target", "parent": 272, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 20}}, {"id": 274, "type": "field_identifier", "text": "next", "parent": 272, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 26}}, {"id": 275, "type": "declaration", "text": "int value = target->value;", "parent": 238, "children": [276, 277], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 30}}, {"id": 276, "type": "primitive_type", "text": "int", "parent": 275, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 7}}, {"id": 277, "type": "init_declarator", "text": "value = target->value", "parent": 275, "children": [278, 279, 280], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 29}}, {"id": 278, "type": "identifier", "text": "value", "parent": 277, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 13}}, {"id": 279, "type": "=", "text": "=", "parent": 277, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 15}}, {"id": 280, "type": "field_expression", "text": "target->value", "parent": 277, "children": [281, 282], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 29}}, {"id": 281, "type": "identifier", "text": "target", "parent": 280, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 22}}, {"id": 282, "type": "field_identifier", "text": "value", "parent": 280, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 29}}, {"id": 283, "type": "call_expression", "text": "free(target)", "parent": 238, "children": [284, 285], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 16}}, {"id": 284, "type": "identifier", "text": "free", "parent": 283, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 285, "type": "argument_list", "text": "(target)", "parent": 283, "children": [286], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 16}}, {"id": 286, "type": "identifier", "text": "target", "parent": 285, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 15}}, {"id": 287, "type": "return_statement", "text": "return value;", "parent": 238, "children": [288], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 17}}, {"id": 288, "type": "identifier", "text": "value", "parent": 287, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 16}}, {"id": 289, "type": "function_definition", "text": "int main() {\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf(\"print empty stack\\n\");\n print_stack(s);\n printf(\"push 1 to stack\\n\");\n push(1, s);\n print_stack(s);\n printf(\"get top of stack\\n\");\n printf(\"%d\\n\", top(s));\n assert(top(s) == 1);\n printf(\"pop 1 from stack and push 2, 3, then pop 3 from stack\\n\");\n int pop_value = pop(s);\n assert(pop_value == 1);\n push(2, s);\n push(3, s);\n pop_value = pop(s);\n assert(pop_value == 3);\n print_stack(s);\n}", "parent": null, "children": [290, 291], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 290, "type": "primitive_type", "text": "int", "parent": 289, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 3}}, {"id": 291, "type": "function_declarator", "text": "main()", "parent": 289, "children": [292, 293], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 292, "type": "identifier", "text": "main", "parent": 291, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 8}}, {"id": 293, "type": "parameter_list", "text": "()", "parent": 291, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 10}}, {"id": 294, "type": "declaration", "text": "Stack s = create_stack();", "parent": 289, "children": [295, 296], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 29}}, {"id": 295, "type": "type_identifier", "text": "Stack", "parent": 294, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 9}}, {"id": 296, "type": "init_declarator", "text": "s = create_stack()", "parent": 294, "children": [297, 298, 299], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 28}}, {"id": 297, "type": "identifier", "text": "s", "parent": 296, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 11}}, {"id": 298, "type": "=", "text": "=", "parent": 296, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 13}}, {"id": 299, "type": "call_expression", "text": "create_stack()", "parent": 296, "children": [300, 301], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 28}}, {"id": 300, "type": "identifier", "text": "create_stack", "parent": 299, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 26}}, {"id": 301, "type": "argument_list", "text": "()", "parent": 299, "children": [], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 28}}, {"id": 302, "type": "call_expression", "text": "assert(is_empty(s) == 1)", "parent": 289, "children": [303, 304], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 28}}, {"id": 303, "type": "identifier", "text": "assert", "parent": 302, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 10}}, {"id": 304, "type": "argument_list", "text": "(is_empty(s) == 1)", "parent": 302, "children": [305], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 28}}, {"id": 305, "type": "binary_expression", "text": "is_empty(s) == 1", "parent": 304, "children": [306, 310, 311], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 27}}, {"id": 306, "type": "call_expression", "text": "is_empty(s)", "parent": 305, "children": [307, 308], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 22}}, {"id": 307, "type": "identifier", "text": "is_empty", "parent": 306, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 19}}, {"id": 308, "type": "argument_list", "text": "(s)", "parent": 306, "children": [309], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 22}}, {"id": 309, "type": "identifier", "text": "s", "parent": 308, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 310, "type": "==", "text": "==", "parent": 305, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 25}}, {"id": 311, "type": "number_literal", "text": "1", "parent": 305, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 27}}, {"id": 312, "type": "call_expression", "text": "printf(\"print empty stack\\n\")", "parent": 289, "children": [313, 314], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 33}}, {"id": 313, "type": "identifier", "text": "printf", "parent": 312, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 10}}, {"id": 314, "type": "argument_list", "text": "(\"print empty stack\\n\")", "parent": 312, "children": [315], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 33}}, {"id": 315, "type": "string_literal", "text": "\"print empty stack\\n\"", "parent": 314, "children": [316], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 32}}, {"id": 316, "type": "escape_sequence", "text": "\\n", "parent": 315, "children": [], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 31}}, {"id": 317, "type": "call_expression", "text": "print_stack(s)", "parent": 289, "children": [318, 319], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 18}}, {"id": 318, "type": "identifier", "text": "print_stack", "parent": 317, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 15}}, {"id": 319, "type": "argument_list", "text": "(s)", "parent": 317, "children": [320], "start_point": {"row": 70, "column": 15}, "end_point": {"row": 70, "column": 18}}, {"id": 320, "type": "identifier", "text": "s", "parent": 319, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 17}}, {"id": 321, "type": "call_expression", "text": "printf(\"push 1 to stack\\n\")", "parent": 289, "children": [322, 323], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 31}}, {"id": 322, "type": "identifier", "text": "printf", "parent": 321, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 10}}, {"id": 323, "type": "argument_list", "text": "(\"push 1 to stack\\n\")", "parent": 321, "children": [324], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 31}}, {"id": 324, "type": "string_literal", "text": "\"push 1 to stack\\n\"", "parent": 323, "children": [325], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 30}}, {"id": 325, "type": "escape_sequence", "text": "\\n", "parent": 324, "children": [], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 29}}, {"id": 326, "type": "call_expression", "text": "push(1, s)", "parent": 289, "children": [327, 328], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 14}}, {"id": 327, "type": "identifier", "text": "push", "parent": 326, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 8}}, {"id": 328, "type": "argument_list", "text": "(1, s)", "parent": 326, "children": [329, 330], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 14}}, {"id": 329, "type": "number_literal", "text": "1", "parent": 328, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 10}}, {"id": 330, "type": "identifier", "text": "s", "parent": 328, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 13}}, {"id": 331, "type": "call_expression", "text": "print_stack(s)", "parent": 289, "children": [332, 333], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 18}}, {"id": 332, "type": "identifier", "text": "print_stack", "parent": 331, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 15}}, {"id": 333, "type": "argument_list", "text": "(s)", "parent": 331, "children": [334], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 18}}, {"id": 334, "type": "identifier", "text": "s", "parent": 333, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 17}}, {"id": 335, "type": "call_expression", "text": "printf(\"get top of stack\\n\")", "parent": 289, "children": [336, 337], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 32}}, {"id": 336, "type": "identifier", "text": "printf", "parent": 335, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 10}}, {"id": 337, "type": "argument_list", "text": "(\"get top of stack\\n\")", "parent": 335, "children": [338], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 32}}, {"id": 338, "type": "string_literal", "text": "\"get top of stack\\n\"", "parent": 337, "children": [339], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 31}}, {"id": 339, "type": "escape_sequence", "text": "\\n", "parent": 338, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 30}}, {"id": 340, "type": "call_expression", "text": "printf(\"%d\\n\", top(s))", "parent": 289, "children": [341, 342], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 26}}, {"id": 341, "type": "identifier", "text": "printf", "parent": 340, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 10}}, {"id": 342, "type": "argument_list", "text": "(\"%d\\n\", top(s))", "parent": 340, "children": [343, 345], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 26}}, {"id": 343, "type": "string_literal", "text": "\"%d\\n\"", "parent": 342, "children": [344], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 17}}, {"id": 344, "type": "escape_sequence", "text": "\\n", "parent": 343, "children": [], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 16}}, {"id": 345, "type": "call_expression", "text": "top(s)", "parent": 342, "children": [346, 347], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 25}}, {"id": 346, "type": "identifier", "text": "top", "parent": 345, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 22}}, {"id": 347, "type": "argument_list", "text": "(s)", "parent": 345, "children": [348], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 25}}, {"id": 348, "type": "identifier", "text": "s", "parent": 347, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 24}}, {"id": 349, "type": "call_expression", "text": "assert(top(s) == 1)", "parent": 289, "children": [350, 351], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 23}}, {"id": 350, "type": "identifier", "text": "assert", "parent": 349, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 351, "type": "argument_list", "text": "(top(s) == 1)", "parent": 349, "children": [352], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 23}}, {"id": 352, "type": "binary_expression", "text": "top(s) == 1", "parent": 351, "children": [353, 357, 358], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 22}}, {"id": 353, "type": "call_expression", "text": "top(s)", "parent": 352, "children": [354, 355], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 17}}, {"id": 354, "type": "identifier", "text": "top", "parent": 353, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 14}}, {"id": 355, "type": "argument_list", "text": "(s)", "parent": 353, "children": [356], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 17}}, {"id": 356, "type": "identifier", "text": "s", "parent": 355, "children": [], "start_point": {"row": 76, "column": 15}, "end_point": {"row": 76, "column": 16}}, {"id": 357, "type": "==", "text": "==", "parent": 352, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 20}}, {"id": 358, "type": "number_literal", "text": "1", "parent": 352, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 359, "type": "call_expression", "text": "printf(\"pop 1 from stack and push 2, 3, then pop 3 from stack\\n\")", "parent": 289, "children": [360, 361], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 69}}, {"id": 360, "type": "identifier", "text": "printf", "parent": 359, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 10}}, {"id": 361, "type": "argument_list", "text": "(\"pop 1 from stack and push 2, 3, then pop 3 from stack\\n\")", "parent": 359, "children": [362], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 69}}, {"id": 362, "type": "string_literal", "text": "\"pop 1 from stack and push 2, 3, then pop 3 from stack\\n\"", "parent": 361, "children": [363], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 68}}, {"id": 363, "type": "escape_sequence", "text": "\\n", "parent": 362, "children": [], "start_point": {"row": 77, "column": 65}, "end_point": {"row": 77, "column": 67}}, {"id": 364, "type": "declaration", "text": "int pop_value = pop(s);", "parent": 289, "children": [365, 366], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 27}}, {"id": 365, "type": "primitive_type", "text": "int", "parent": 364, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 7}}, {"id": 366, "type": "init_declarator", "text": "pop_value = pop(s)", "parent": 364, "children": [367, 368, 369], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 26}}, {"id": 367, "type": "identifier", "text": "pop_value", "parent": 366, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 17}}, {"id": 368, "type": "=", "text": "=", "parent": 366, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 19}}, {"id": 369, "type": "call_expression", "text": "pop(s)", "parent": 366, "children": [370, 371], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 26}}, {"id": 370, "type": "identifier", "text": "pop", "parent": 369, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 23}}, {"id": 371, "type": "argument_list", "text": "(s)", "parent": 369, "children": [372], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 26}}, {"id": 372, "type": "identifier", "text": "s", "parent": 371, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 25}}, {"id": 373, "type": "call_expression", "text": "assert(pop_value == 1)", "parent": 289, "children": [374, 375], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 26}}, {"id": 374, "type": "identifier", "text": "assert", "parent": 373, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 10}}, {"id": 375, "type": "argument_list", "text": "(pop_value == 1)", "parent": 373, "children": [376], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 26}}, {"id": 376, "type": "binary_expression", "text": "pop_value == 1", "parent": 375, "children": [377, 378, 379], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 25}}, {"id": 377, "type": "identifier", "text": "pop_value", "parent": 376, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 20}}, {"id": 378, "type": "==", "text": "==", "parent": 376, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 23}}, {"id": 379, "type": "number_literal", "text": "1", "parent": 376, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 25}}, {"id": 380, "type": "call_expression", "text": "push(2, s)", "parent": 289, "children": [381, 382], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 14}}, {"id": 381, "type": "identifier", "text": "push", "parent": 380, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 8}}, {"id": 382, "type": "argument_list", "text": "(2, s)", "parent": 380, "children": [383, 384], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 14}}, {"id": 383, "type": "number_literal", "text": "2", "parent": 382, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 10}}, {"id": 384, "type": "identifier", "text": "s", "parent": 382, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 13}}, {"id": 385, "type": "call_expression", "text": "push(3, s)", "parent": 289, "children": [386, 387], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 14}}, {"id": 386, "type": "identifier", "text": "push", "parent": 385, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 8}}, {"id": 387, "type": "argument_list", "text": "(3, s)", "parent": 385, "children": [388, 389], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 14}}, {"id": 388, "type": "number_literal", "text": "3", "parent": 387, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 389, "type": "identifier", "text": "s", "parent": 387, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 13}}, {"id": 390, "type": "assignment_expression", "text": "pop_value = pop(s)", "parent": 289, "children": [391, 392, 393], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 22}}, {"id": 391, "type": "identifier", "text": "pop_value", "parent": 390, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 13}}, {"id": 392, "type": "=", "text": "=", "parent": 390, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 15}}, {"id": 393, "type": "call_expression", "text": "pop(s)", "parent": 390, "children": [394, 395], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 22}}, {"id": 394, "type": "identifier", "text": "pop", "parent": 393, "children": [], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 82, "column": 19}}, {"id": 395, "type": "argument_list", "text": "(s)", "parent": 393, "children": [396], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 22}}, {"id": 396, "type": "identifier", "text": "s", "parent": 395, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 21}}, {"id": 397, "type": "call_expression", "text": "assert(pop_value == 3)", "parent": 289, "children": [398, 399], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 26}}, {"id": 398, "type": "identifier", "text": "assert", "parent": 397, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 399, "type": "argument_list", "text": "(pop_value == 3)", "parent": 397, "children": [400], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 26}}, {"id": 400, "type": "binary_expression", "text": "pop_value == 3", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 25}}, {"id": 401, "type": "identifier", "text": "pop_value", "parent": 400, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 20}}, {"id": 402, "type": "==", "text": "==", "parent": 400, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 23}}, {"id": 403, "type": "number_literal", "text": "3", "parent": 400, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 404, "type": "call_expression", "text": "print_stack(s)", "parent": 289, "children": [405, 406], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 18}}, {"id": 405, "type": "identifier", "text": "print_stack", "parent": 404, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 15}}, {"id": 406, "type": "argument_list", "text": "(s)", "parent": 404, "children": [407], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 18}}, {"id": 407, "type": "identifier", "text": "s", "parent": 406, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 17}}]}, "node_categories": {"declarations": {"functions": [36, 44, 49, 57, 65, 76, 84, 91, 93, 107, 109, 132, 134, 176, 178, 213, 215, 238, 240, 289, 291], "variables": [15, 20, 23, 34, 39, 42, 47, 52, 55, 60, 63, 68, 71, 74, 79, 82, 87, 96, 112, 137, 140, 143, 181, 218, 243, 257, 275, 294, 364], "classes": [12, 13, 17, 18, 24, 25], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [100, 101, 117, 120, 121, 124, 150, 153, 154, 157, 163, 167, 171, 184, 190, 191, 196, 201, 204, 210, 222, 223, 224, 233, 234, 247, 248, 249, 264, 268, 272, 280, 283, 299, 302, 305, 306, 312, 317, 321, 326, 331, 335, 340, 345, 349, 352, 353, 359, 369, 373, 376, 380, 385, 393, 397, 400, 404], "assignments": [123, 156, 162, 170, 207, 267, 390], "loops": [189], "conditionals": [9, 10, 11, 14, 19, 22, 26, 29, 30, 33, 37, 40, 41, 43, 45, 50, 53, 54, 58, 61, 62, 66, 70, 72, 73, 77, 80, 81, 85, 88, 89, 90, 94, 97, 98, 102, 103, 108, 110, 113, 115, 118, 122, 125, 126, 131, 135, 139, 141, 142, 144, 148, 151, 155, 158, 159, 161, 164, 165, 168, 169, 172, 173, 175, 179, 182, 183, 185, 192, 197, 202, 203, 205, 206, 208, 211, 212, 216, 219, 220, 221, 225, 226, 235, 236, 237, 241, 244, 245, 246, 250, 251, 258, 262, 265, 266, 269, 270, 273, 274, 278, 281, 282, 284, 286, 288, 292, 295, 297, 300, 303, 307, 309, 313, 318, 320, 322, 327, 330, 332, 334, 336, 341, 346, 348, 350, 354, 356, 360, 367, 370, 372, 374, 377, 381, 384, 386, 389, 391, 394, 396, 398, 401, 405, 407], "returns": [99, 130, 230, 232, 255, 287], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 187, 199, 231, 256, 311, 315, 324, 329, 338, 343, 358, 362, 379, 383, 388, 403], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "is_empty(Stack s)"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "create_stack()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "dispose_stack(Stack s)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "make_empty(Stack s)"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "push(int x, Stack s)"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "top(Stack s)"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "pop(Stack s)"}, {"node_id": 91, "universal_type": "function", "name": "is_empty", "text_snippet": "int is_empty(Stack s) {\n return s->next == NULL;\n}"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "is_empty(Stack s)"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "Stack create_stack() {\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "create_stack()"}, {"node_id": 132, "universal_type": "function", "name": "push", "text_snippet": "void push(int value, Stack s) {\n Node *node = malloc(sizeof(Node));\n node->value = value;\n "}, {"node_id": 134, "universal_type": "function", "name": "unknown", "text_snippet": "push(int value, Stack s)"}, {"node_id": 176, "universal_type": "function", "name": "print_stack", "text_snippet": "void print_stack(Stack s) {\n printf(\"inverse print stack: \\n\");\n while (s != NULL) {\n p"}, {"node_id": 178, "universal_type": "function", "name": "unknown", "text_snippet": "print_stack(Stack s)"}, {"node_id": 213, "universal_type": "function", "name": "top", "text_snippet": "int top(Stack s) {\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "top(Stack s)"}, {"node_id": 238, "universal_type": "function", "name": "pop", "text_snippet": "int pop(Stack s) {\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->nex"}, {"node_id": 240, "universal_type": "function", "name": "unknown", "text_snippet": "pop(Stack s)"}, {"node_id": 289, "universal_type": "function", "name": "main", "text_snippet": "int main() {\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf(\"print empty sta"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "Node", "text_snippet": "struct Node"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 17, "universal_type": "class", "name": "Node", "text_snippet": "struct Node {\n int value;\n struct Node *next;\n}"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 24, "universal_type": "class", "name": "Node", "text_snippet": "struct Node"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdlib.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 <assert.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <stdlib.h>\n#include <stdio.h>\n#include <assert.h>\n\n#ifndef _Stack_h\n\nstruct Node;\n//typedef struct Node *ptr_to_node;\n//typedef ptr_to_node Stack;\n\ntypedef struct Node {\n int value;\n struct Node *next;\n} Node, *Stack;\n\nint is_empty(Stack s);\nStack create_stack();\nvoid dispose_stack(Stack s);\nvoid make_empty(Stack s);\nvoid push(int x, Stack s);\nint top(Stack s);\nint pop(Stack s);\n\n#endif\n\nint is_empty(Stack s) {\n return s->next == NULL;\n}\n\nStack create_stack() {\n Stack s = malloc(sizeof(Node));\n s->next = NULL;\n return s;\n}\n\nvoid push(int value, Stack s) {\n Node *node = malloc(sizeof(Node));\n node->value = value;\n node->next = s->next;\n s->next = node;\n}\n\nvoid print_stack(Stack s) {\n printf(\"inverse print stack: \\n\");\n while (s != NULL) {\n printf(\"{.value=%d .next=%x}\\n\", s->value, s->next);\n s = s->next;\n }\n}\n\nint top(Stack s) {\n if (s->next == NULL)\n return 0;\n return s->next->value;\n}\n\nint pop(Stack s) {\n if (s->next == NULL)\n return 0;\n Node *target = s->next;\n s->next = target->next;\n int value = target->value;\n free(target);\n return value;\n}\n\nint main() {\n Stack s = create_stack();\n assert(is_empty(s) == 1);\n printf(\"print empty stack\\n\");\n print_stack(s);\n printf(\"push 1 to stack\\n\");\n push(1, s);\n print_stack(s);\n printf(\"get top of stack\\n\");\n printf(\"%d\\n\", top(s));\n assert(top(s) == 1);\n printf(\"pop 1 from stack and push 2, 3, then pop 3 from stack\\n\");\n int pop_value = pop(s);\n assert(pop_value == 1);\n push(2, s);\n push(3, s);\n pop_value = pop(s);\n assert(pop_value == 3);\n print_stack(s);\n}\n"}
80,770
c
/* * Copyright (c) 2020 Demant * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER) #define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso #include "common/log.h" #include "hal/debug.h" uint8_t ll_cis_accept(uint16_t handle) { ARG_UNUSED(handle); return BT_HCI_ERR_CMD_DISALLOWED; } uint8_t ll_cis_reject(uint16_t handle, uint8_t reason) { ARG_UNUSED(handle); ARG_UNUSED(reason); return BT_HCI_ERR_CMD_DISALLOWED; } int ull_peripheral_iso_init(void) { return 0; } int ull_peripheral_iso_reset(void) { return 0; }
19.41
29
(translation_unit) "/*\n * Copyright (c) 2020 Demant\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <zephyr.h>\n\n#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)\n#define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso\n#include "common/log.h"\n#include "hal/debug.h"\n\nuint8_t ll_cis_accept(uint16_t handle)\n{\n ARG_UNUSED(handle);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}\n\nuint8_t ll_cis_reject(uint16_t handle, uint8_t reason)\n{\n ARG_UNUSED(handle);\n ARG_UNUSED(reason);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}\n\nint ull_peripheral_iso_init(void)\n{\n return 0;\n}\n\nint ull_peripheral_iso_reset(void)\n{\n return 0;\n}\n" (comment) "/*\n * Copyright (c) 2020 Demant\n *\n * SPDX-License-Identifier: Apache-2.0\n */" (preproc_include) "#include <zephyr.h>\n" (#include) "#include" (system_lib_string) "<zephyr.h>" (preproc_def) "#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)\n" (#define) "#define" (identifier) "BT_DBG_ENABLED" (preproc_arg) "IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)" (preproc_def) "#define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso\n" (#define) "#define" (identifier) "LOG_MODULE_NAME" (preproc_arg) "bt_ctlr_ull_peripheral_iso" (preproc_include) "#include "common/log.h"\n" (#include) "#include" (string_literal) ""common/log.h"" (") """ (string_content) "common/log.h" (") """ (preproc_include) "#include "hal/debug.h"\n" (#include) "#include" (string_literal) ""hal/debug.h"" (") """ (string_content) "hal/debug.h" (") """ (function_definition) "uint8_t ll_cis_accept(uint16_t handle)\n{\n ARG_UNUSED(handle);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}" (primitive_type) "uint8_t" (function_declarator) "ll_cis_accept(uint16_t handle)" (identifier) "ll_cis_accept" (parameter_list) "(uint16_t handle)" (() "(" (parameter_declaration) "uint16_t handle" (primitive_type) "uint16_t" (identifier) "handle" ()) ")" (compound_statement) "{\n ARG_UNUSED(handle);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}" ({) "{" (expression_statement) "ARG_UNUSED(handle);" (call_expression) "ARG_UNUSED(handle)" (identifier) "ARG_UNUSED" (argument_list) "(handle)" (() "(" (identifier) "handle" ()) ")" (;) ";" (return_statement) "return BT_HCI_ERR_CMD_DISALLOWED;" (return) "return" (identifier) "BT_HCI_ERR_CMD_DISALLOWED" (;) ";" (}) "}" (function_definition) "uint8_t ll_cis_reject(uint16_t handle, uint8_t reason)\n{\n ARG_UNUSED(handle);\n ARG_UNUSED(reason);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}" (primitive_type) "uint8_t" (function_declarator) "ll_cis_reject(uint16_t handle, uint8_t reason)" (identifier) "ll_cis_reject" (parameter_list) "(uint16_t handle, uint8_t reason)" (() "(" (parameter_declaration) "uint16_t handle" (primitive_type) "uint16_t" (identifier) "handle" (,) "," (parameter_declaration) "uint8_t reason" (primitive_type) "uint8_t" (identifier) "reason" ()) ")" (compound_statement) "{\n ARG_UNUSED(handle);\n ARG_UNUSED(reason);\n\n return BT_HCI_ERR_CMD_DISALLOWED;\n}" ({) "{" (expression_statement) "ARG_UNUSED(handle);" (call_expression) "ARG_UNUSED(handle)" (identifier) "ARG_UNUSED" (argument_list) "(handle)" (() "(" (identifier) "handle" ()) ")" (;) ";" (expression_statement) "ARG_UNUSED(reason);" (call_expression) "ARG_UNUSED(reason)" (identifier) "ARG_UNUSED" (argument_list) "(reason)" (() "(" (identifier) "reason" ()) ")" (;) ";" (return_statement) "return BT_HCI_ERR_CMD_DISALLOWED;" (return) "return" (identifier) "BT_HCI_ERR_CMD_DISALLOWED" (;) ";" (}) "}" (function_definition) "int ull_peripheral_iso_init(void)\n{\n return 0;\n}" (primitive_type) "int" (function_declarator) "ull_peripheral_iso_init(void)" (identifier) "ull_peripheral_iso_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int ull_peripheral_iso_reset(void)\n{\n return 0;\n}" (primitive_type) "int" (function_declarator) "ull_peripheral_iso_reset(void)" (identifier) "ull_peripheral_iso_reset" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
119
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 19.41, "nodes": 70, "errors": 0, "source_hash": "e1b6891bb6d90cfd95bb4755167a868fc346b65d76f350544c4a506748f80194", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <zephyr.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<zephyr.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)\n", "parent": null, "children": [4, 5, 6], "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": "BT_DBG_ENABLED", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 6, "type": "preproc_arg", "text": "IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)", "parent": 3, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 61}}, {"id": 7, "type": "preproc_def", "text": "#define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso\n", "parent": null, "children": [8, 9, 10], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 9, "type": "identifier", "text": "LOG_MODULE_NAME", "parent": 7, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 10, "type": "preproc_arg", "text": "bt_ctlr_ull_peripheral_iso", "parent": 7, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 50}}, {"id": 11, "type": "preproc_include", "text": "#include \"common/log.h\"\n", "parent": null, "children": [12, 13], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 12, "type": "#include", "text": "#include", "parent": 11, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 13, "type": "string_literal", "text": "\"common/log.h\"", "parent": 11, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 14, "type": "preproc_include", "text": "#include \"hal/debug.h\"\n", "parent": null, "children": [15, 16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 15, "type": "#include", "text": "#include", "parent": 14, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 16, "type": "string_literal", "text": "\"hal/debug.h\"", "parent": 14, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 17, "type": "function_definition", "text": "uint8_t ll_cis_accept(uint16_t handle)\n{\n\tARG_UNUSED(handle);\n\n\treturn BT_HCI_ERR_CMD_DISALLOWED;\n}", "parent": null, "children": [18, 19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 18, "type": "primitive_type", "text": "uint8_t", "parent": 17, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 19, "type": "function_declarator", "text": "ll_cis_accept(uint16_t handle)", "parent": 17, "children": [20, 21], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 38}}, {"id": 20, "type": "identifier", "text": "ll_cis_accept", "parent": 19, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 21}}, {"id": 21, "type": "parameter_list", "text": "(uint16_t handle)", "parent": 19, "children": [22], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 38}}, {"id": 22, "type": "parameter_declaration", "text": "uint16_t handle", "parent": 21, "children": [23, 24], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 37}}, {"id": 23, "type": "primitive_type", "text": "uint16_t", "parent": 22, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 30}}, {"id": 24, "type": "identifier", "text": "handle", "parent": 22, "children": [], "start_point": {"row": 13, "column": 31}, "end_point": {"row": 13, "column": 37}}, {"id": 25, "type": "call_expression", "text": "ARG_UNUSED(handle)", "parent": 17, "children": [26, 27], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 19}}, {"id": 26, "type": "identifier", "text": "ARG_UNUSED", "parent": 25, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 11}}, {"id": 27, "type": "argument_list", "text": "(handle)", "parent": 25, "children": [28], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 28, "type": "identifier", "text": "handle", "parent": 27, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 18}}, {"id": 29, "type": "return_statement", "text": "return BT_HCI_ERR_CMD_DISALLOWED;", "parent": 17, "children": [30], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 34}}, {"id": 30, "type": "identifier", "text": "BT_HCI_ERR_CMD_DISALLOWED", "parent": 29, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 33}}, {"id": 31, "type": "function_definition", "text": "uint8_t ll_cis_reject(uint16_t handle, uint8_t reason)\n{\n\tARG_UNUSED(handle);\n\tARG_UNUSED(reason);\n\n\treturn BT_HCI_ERR_CMD_DISALLOWED;\n}", "parent": null, "children": [32, 33], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 32, "type": "primitive_type", "text": "uint8_t", "parent": 31, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 33, "type": "function_declarator", "text": "ll_cis_reject(uint16_t handle, uint8_t reason)", "parent": 31, "children": [34, 35], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 54}}, {"id": 34, "type": "identifier", "text": "ll_cis_reject", "parent": 33, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 35, "type": "parameter_list", "text": "(uint16_t handle, uint8_t reason)", "parent": 33, "children": [36, 39], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 54}}, {"id": 36, "type": "parameter_declaration", "text": "uint16_t handle", "parent": 35, "children": [37, 38], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 37}}, {"id": 37, "type": "primitive_type", "text": "uint16_t", "parent": 36, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 30}}, {"id": 38, "type": "identifier", "text": "handle", "parent": 36, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 37}}, {"id": 39, "type": "parameter_declaration", "text": "uint8_t reason", "parent": 35, "children": [40, 41], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 53}}, {"id": 40, "type": "primitive_type", "text": "uint8_t", "parent": 39, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 46}}, {"id": 41, "type": "identifier", "text": "reason", "parent": 39, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 53}}, {"id": 42, "type": "call_expression", "text": "ARG_UNUSED(handle)", "parent": 31, "children": [43, 44], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 19}}, {"id": 43, "type": "identifier", "text": "ARG_UNUSED", "parent": 42, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 11}}, {"id": 44, "type": "argument_list", "text": "(handle)", "parent": 42, "children": [45], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 19}}, {"id": 45, "type": "identifier", "text": "handle", "parent": 44, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 18}}, {"id": 46, "type": "call_expression", "text": "ARG_UNUSED(reason)", "parent": 31, "children": [47, 48], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 19}}, {"id": 47, "type": "identifier", "text": "ARG_UNUSED", "parent": 46, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 11}}, {"id": 48, "type": "argument_list", "text": "(reason)", "parent": 46, "children": [49], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 19}}, {"id": 49, "type": "identifier", "text": "reason", "parent": 48, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 18}}, {"id": 50, "type": "return_statement", "text": "return BT_HCI_ERR_CMD_DISALLOWED;", "parent": 31, "children": [51], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 34}}, {"id": 51, "type": "identifier", "text": "BT_HCI_ERR_CMD_DISALLOWED", "parent": 50, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 33}}, {"id": 52, "type": "function_definition", "text": "int ull_peripheral_iso_init(void)\n{\n\treturn 0;\n}", "parent": null, "children": [53, 54], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 3}}, {"id": 54, "type": "function_declarator", "text": "ull_peripheral_iso_init(void)", "parent": 52, "children": [55, 56], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 33}}, {"id": 55, "type": "identifier", "text": "ull_peripheral_iso_init", "parent": 54, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 27}}, {"id": 56, "type": "parameter_list", "text": "(void)", "parent": 54, "children": [57], "start_point": {"row": 28, "column": 27}, "end_point": {"row": 28, "column": 33}}, {"id": 57, "type": "parameter_declaration", "text": "void", "parent": 56, "children": [58], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 32}}, {"id": 58, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 28, "column": 28}, "end_point": {"row": 28, "column": 32}}, {"id": 59, "type": "return_statement", "text": "return 0;", "parent": 52, "children": [60], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 10}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 59, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 9}}, {"id": 61, "type": "function_definition", "text": "int ull_peripheral_iso_reset(void)\n{\n\treturn 0;\n}", "parent": null, "children": [62, 63], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 3}}, {"id": 63, "type": "function_declarator", "text": "ull_peripheral_iso_reset(void)", "parent": 61, "children": [64, 65], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 34}}, {"id": 64, "type": "identifier", "text": "ull_peripheral_iso_reset", "parent": 63, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 28}}, {"id": 65, "type": "parameter_list", "text": "(void)", "parent": 63, "children": [66], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 34}}, {"id": 66, "type": "parameter_declaration", "text": "void", "parent": 65, "children": [67], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 33}}, {"id": 67, "type": "primitive_type", "text": "void", "parent": 66, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 33}}, {"id": 68, "type": "return_statement", "text": "return 0;", "parent": 61, "children": [69], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 69, "type": "number_literal", "text": "0", "parent": 68, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}]}, "node_categories": {"declarations": {"functions": [17, 19, 31, 33, 52, 54, 61, 63], "variables": [22, 36, 39, 57, 66], "classes": [], "imports": [0, 1, 11, 12, 14, 15], "modules": [], "enums": []}, "statements": {"expressions": [25, 42, 46], "assignments": [], "loops": [], "conditionals": [5, 9, 20, 24, 26, 28, 30, 34, 38, 41, 43, 45, 47, 49, 51, 55, 64], "returns": [29, 50, 59, 68], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 13, 16, 60, 69], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "uint8_t ll_cis_accept(uint16_t handle)\n{\n\tARG_UNUSED(handle);\n\n\treturn BT_HCI_ERR_CMD_DISALLOWED;\n}"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "ll_cis_accept(uint16_t handle)"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "uint8_t ll_cis_reject(uint16_t handle, uint8_t reason)\n{\n\tARG_UNUSED(handle);\n\tARG_UNUSED(reason);\n\n"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "ll_cis_reject(uint16_t handle, uint8_t reason)"}, {"node_id": 52, "universal_type": "function", "name": "ull_peripheral_iso_init", "text_snippet": "int ull_peripheral_iso_init(void)\n{\n\treturn 0;\n}"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "ull_peripheral_iso_init(void)"}, {"node_id": 61, "universal_type": "function", "name": "ull_peripheral_iso_reset", "text_snippet": "int ull_peripheral_iso_reset(void)\n{\n\treturn 0;\n}"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "ull_peripheral_iso_reset(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <zephyr.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 11, "text": "#include \"common/log.h\"\n"}, {"node_id": 12, "text": "#include"}, {"node_id": 14, "text": "#include \"hal/debug.h\"\n"}, {"node_id": 15, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2020 Demant\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n#include <zephyr.h>\n\n#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BT_DEBUG_HCI_DRIVER)\n#define LOG_MODULE_NAME bt_ctlr_ull_peripheral_iso\n#include \"common/log.h\"\n#include \"hal/debug.h\"\n\nuint8_t ll_cis_accept(uint16_t handle)\n{\n\tARG_UNUSED(handle);\n\n\treturn BT_HCI_ERR_CMD_DISALLOWED;\n}\n\nuint8_t ll_cis_reject(uint16_t handle, uint8_t reason)\n{\n\tARG_UNUSED(handle);\n\tARG_UNUSED(reason);\n\n\treturn BT_HCI_ERR_CMD_DISALLOWED;\n}\n\nint ull_peripheral_iso_init(void)\n{\n\treturn 0;\n}\n\nint ull_peripheral_iso_reset(void)\n{\n\treturn 0;\n}\n"}
80,771
c
#include "b.h" int main(void) { (void) do_b(50); return 0; }
10.5
6
(translation_unit) "#include "b.h"\n\nint main(void)\n{\n (void) do_b(50);\n return 0;\n}\n" (preproc_include) "#include "b.h"\n" (#include) "#include" (string_literal) ""b.h"" (") """ (string_content) "b.h" (") """ (function_definition) "int main(void)\n{\n (void) do_b(50);\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 (void) do_b(50);\n return 0;\n}" ({) "{" (expression_statement) "(void) do_b(50);" (cast_expression) "(void) do_b(50)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "do_b(50)" (identifier) "do_b" (argument_list) "(50)" (() "(" (number_literal) "50" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
36
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 10.5, "nodes": 19, "errors": 0, "source_hash": "d8088a9d7cbce7052090883d858feca7d53fc8872c435f254e76f1b64570c303", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"b.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": "\"b.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "function_definition", "text": "int main(void)\n{\n (void) do_b(50);\n return 0;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(void)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 14}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 13}}, {"id": 10, "type": "cast_expression", "text": "(void) do_b(50)", "parent": 3, "children": [11, 13], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 19}}, {"id": 11, "type": "type_descriptor", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 9}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 9}}, {"id": 13, "type": "call_expression", "text": "do_b(50)", "parent": 10, "children": [14, 15], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 19}}, {"id": 14, "type": "identifier", "text": "do_b", "parent": 13, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 15}}, {"id": 15, "type": "argument_list", "text": "(50)", "parent": 13, "children": [16], "start_point": {"row": 4, "column": 15}, "end_point": {"row": 4, "column": 19}}, {"id": 16, "type": "number_literal", "text": "50", "parent": 15, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 18}}, {"id": 17, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [18], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 13}}, {"id": 18, "type": "number_literal", "text": "0", "parent": 17, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [10, 13], "assignments": [], "loops": [], "conditionals": [6, 14], "returns": [17], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 16, 18], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(void)\n{\n (void) do_b(50);\n return 0;\n}"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"b.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"b.h\"\n\nint main(void)\n{\n (void) do_b(50);\n return 0;\n}\n"}
80,772
c
#ifndef DEFS_H #define DEFS_H #include <wx/wx.h> extern wxColourDatabase* wxTheColourDatabase; enum MainFrameMenuEvents { ID_NewCanvas = wxID_HIGHEST, ID_SaveCanvas, ID_ExportCanvas, ID_LoadCanvas, ID_ResetWorkspace, ID_LoadConfiguration, ID_ResetConfiguration, }; enum CanvasMenuEvents { ID_ToggleWireColors = wxID_HIGHEST, ID_ToggleBooleanAlgebra, ID_GridOptions, ID_ToggleGrid, ID_CheckLineGrid, ID_CheckDotGrid }; #define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find("CANVAS_BACKGROUND_COLOR") #define CANVAS_GRID_COLOR wxTheColourDatabase->Find("CANVAS_GRID_COLOR") #define WIRE_ON_COLOR wxTheColourDatabase->Find("WIRE_ON_COLOR") #define WIRE_OFF_COLOR wxTheColourDatabase->Find("WIRE_OFF_COLOR") #define WIRE_NORMAL_COLOR wxTheColourDatabase->Find("WIRE_NORMAL_COLOR") #define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find("WIRE_TEXT_ON_COLOR") #define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find("WIRE_TEXT_OFF_COLOR") #define SELECT_COLOR wxTheColourDatabase->Find("SELECT_COLOR") #define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find("ANCHOR_CONNECTED_COLOR") #define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find("ANCHOR_BROKEN_COLOR") #define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find("ANCHOR_HIGHLIGHT_COLOR") #endif // ! DEFS_H
35.69
35
(translation_unit) "#ifndef DEFS_H\n#define DEFS_H\n#include <wx/wx.h>\nextern wxColourDatabase* wxTheColourDatabase;\nenum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n};\n\nenum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n};\n\n#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find("CANVAS_BACKGROUND_COLOR")\n#define CANVAS_GRID_COLOR wxTheColourDatabase->Find("CANVAS_GRID_COLOR")\n#define WIRE_ON_COLOR wxTheColourDatabase->Find("WIRE_ON_COLOR")\n#define WIRE_OFF_COLOR wxTheColourDatabase->Find("WIRE_OFF_COLOR")\n#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find("WIRE_NORMAL_COLOR")\n#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find("WIRE_TEXT_ON_COLOR")\n#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find("WIRE_TEXT_OFF_COLOR")\n#define SELECT_COLOR wxTheColourDatabase->Find("SELECT_COLOR")\n#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find("ANCHOR_CONNECTED_COLOR")\n#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find("ANCHOR_BROKEN_COLOR")\n#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find("ANCHOR_HIGHLIGHT_COLOR")\n#endif // ! DEFS_H\n\n" (preproc_ifdef) "#ifndef DEFS_H\n#define DEFS_H\n#include <wx/wx.h>\nextern wxColourDatabase* wxTheColourDatabase;\nenum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n};\n\nenum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n};\n\n#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find("CANVAS_BACKGROUND_COLOR")\n#define CANVAS_GRID_COLOR wxTheColourDatabase->Find("CANVAS_GRID_COLOR")\n#define WIRE_ON_COLOR wxTheColourDatabase->Find("WIRE_ON_COLOR")\n#define WIRE_OFF_COLOR wxTheColourDatabase->Find("WIRE_OFF_COLOR")\n#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find("WIRE_NORMAL_COLOR")\n#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find("WIRE_TEXT_ON_COLOR")\n#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find("WIRE_TEXT_OFF_COLOR")\n#define SELECT_COLOR wxTheColourDatabase->Find("SELECT_COLOR")\n#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find("ANCHOR_CONNECTED_COLOR")\n#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find("ANCHOR_BROKEN_COLOR")\n#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find("ANCHOR_HIGHLIGHT_COLOR")\n#endif" (#ifndef) "#ifndef" (identifier) "DEFS_H" (preproc_def) "#define DEFS_H\n" (#define) "#define" (identifier) "DEFS_H" (preproc_include) "#include <wx/wx.h>\n" (#include) "#include" (system_lib_string) "<wx/wx.h>" (declaration) "extern wxColourDatabase* wxTheColourDatabase;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "wxColourDatabase" (pointer_declarator) "* wxTheColourDatabase" (*) "*" (identifier) "wxTheColourDatabase" (;) ";" (enum_specifier) "enum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n}" (enum) "enum" (type_identifier) "MainFrameMenuEvents" (enumerator_list) "{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n}" ({) "{" (enumerator) "ID_NewCanvas = wxID_HIGHEST" (identifier) "ID_NewCanvas" (=) "=" (identifier) "wxID_HIGHEST" (,) "," (enumerator) "ID_SaveCanvas" (identifier) "ID_SaveCanvas" (,) "," (enumerator) "ID_ExportCanvas" (identifier) "ID_ExportCanvas" (,) "," (enumerator) "ID_LoadCanvas" (identifier) "ID_LoadCanvas" (,) "," (enumerator) "ID_ResetWorkspace" (identifier) "ID_ResetWorkspace" (,) "," (enumerator) "ID_LoadConfiguration" (identifier) "ID_LoadConfiguration" (,) "," (enumerator) "ID_ResetConfiguration" (identifier) "ID_ResetConfiguration" (,) "," (}) "}" (;) ";" (enum_specifier) "enum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n}" (enum) "enum" (type_identifier) "CanvasMenuEvents" (enumerator_list) "{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n}" ({) "{" (enumerator) "ID_ToggleWireColors = wxID_HIGHEST" (identifier) "ID_ToggleWireColors" (=) "=" (identifier) "wxID_HIGHEST" (,) "," (enumerator) "ID_ToggleBooleanAlgebra" (identifier) "ID_ToggleBooleanAlgebra" (,) "," (enumerator) "ID_GridOptions" (identifier) "ID_GridOptions" (,) "," (enumerator) "ID_ToggleGrid" (identifier) "ID_ToggleGrid" (,) "," (enumerator) "ID_CheckLineGrid" (identifier) "ID_CheckLineGrid" (,) "," (enumerator) "ID_CheckDotGrid" (identifier) "ID_CheckDotGrid" (}) "}" (;) ";" (preproc_def) "#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find("CANVAS_BACKGROUND_COLOR")\n" (#define) "#define" (identifier) "CANVAS_BACKGROUND_COLOR" (preproc_arg) "wxTheColourDatabase->Find("CANVAS_BACKGROUND_COLOR")" (preproc_def) "#define CANVAS_GRID_COLOR wxTheColourDatabase->Find("CANVAS_GRID_COLOR")\n" (#define) "#define" (identifier) "CANVAS_GRID_COLOR" (preproc_arg) "wxTheColourDatabase->Find("CANVAS_GRID_COLOR")" (preproc_def) "#define WIRE_ON_COLOR wxTheColourDatabase->Find("WIRE_ON_COLOR")\n" (#define) "#define" (identifier) "WIRE_ON_COLOR" (preproc_arg) "wxTheColourDatabase->Find("WIRE_ON_COLOR")" (preproc_def) "#define WIRE_OFF_COLOR wxTheColourDatabase->Find("WIRE_OFF_COLOR")\n" (#define) "#define" (identifier) "WIRE_OFF_COLOR" (preproc_arg) "wxTheColourDatabase->Find("WIRE_OFF_COLOR")" (preproc_def) "#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find("WIRE_NORMAL_COLOR")\n" (#define) "#define" (identifier) "WIRE_NORMAL_COLOR" (preproc_arg) "wxTheColourDatabase->Find("WIRE_NORMAL_COLOR")" (preproc_def) "#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find("WIRE_TEXT_ON_COLOR")\n" (#define) "#define" (identifier) "WIRE_TEXT_ON_COLOR" (preproc_arg) "wxTheColourDatabase->Find("WIRE_TEXT_ON_COLOR")" (preproc_def) "#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find("WIRE_TEXT_OFF_COLOR")\n" (#define) "#define" (identifier) "WIRE_TEXT_OFF_COLOR" (preproc_arg) "wxTheColourDatabase->Find("WIRE_TEXT_OFF_COLOR")" (preproc_def) "#define SELECT_COLOR wxTheColourDatabase->Find("SELECT_COLOR")\n" (#define) "#define" (identifier) "SELECT_COLOR" (preproc_arg) "wxTheColourDatabase->Find("SELECT_COLOR")" (preproc_def) "#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find("ANCHOR_CONNECTED_COLOR")\n" (#define) "#define" (identifier) "ANCHOR_CONNECTED_COLOR" (preproc_arg) "wxTheColourDatabase->Find("ANCHOR_CONNECTED_COLOR")" (preproc_def) "#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find("ANCHOR_BROKEN_COLOR")\n" (#define) "#define" (identifier) "ANCHOR_BROKEN_COLOR" (preproc_arg) "wxTheColourDatabase->Find("ANCHOR_BROKEN_COLOR")" (preproc_def) "#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find("ANCHOR_HIGHLIGHT_COLOR")\n" (#define) "#define" (identifier) "ANCHOR_HIGHLIGHT_COLOR" (preproc_arg) "wxTheColourDatabase->Find("ANCHOR_HIGHLIGHT_COLOR")" (#endif) "#endif" (comment) "// ! DEFS_H"
120
0
{"language": "c", "success": true, "metadata": {"lines": 35, "avg_line_length": 35.69, "nodes": 99, "errors": 0, "source_hash": "88580b33d7b4e7996990a6bb3b92a9dcc459f836c7056a38128f0bc4e34435ea", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DEFS_H\n#define DEFS_H\n#include <wx/wx.h>\nextern wxColourDatabase* wxTheColourDatabase;\nenum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n};\n\nenum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n};\n\n#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find(\"CANVAS_BACKGROUND_COLOR\")\n#define CANVAS_GRID_COLOR wxTheColourDatabase->Find(\"CANVAS_GRID_COLOR\")\n#define WIRE_ON_COLOR wxTheColourDatabase->Find(\"WIRE_ON_COLOR\")\n#define WIRE_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_OFF_COLOR\")\n#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find(\"WIRE_NORMAL_COLOR\")\n#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_ON_COLOR\")\n#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_OFF_COLOR\")\n#define SELECT_COLOR wxTheColourDatabase->Find(\"SELECT_COLOR\")\n#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find(\"ANCHOR_CONNECTED_COLOR\")\n#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find(\"ANCHOR_BROKEN_COLOR\")\n#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find(\"ANCHOR_HIGHLIGHT_COLOR\")\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 16, 36, 54, 58, 62, 66, 70, 74, 78, 82, 86, 90, 94, 98], "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": "DEFS_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define DEFS_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": "DEFS_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include <wx/wx.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": "system_lib_string", "text": "<wx/wx.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "declaration", "text": "extern wxColourDatabase* wxTheColourDatabase;", "parent": 0, "children": [10, 12, 13], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 45}}, {"id": 10, "type": "storage_class_specifier", "text": "extern", "parent": 9, "children": [11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 11, "type": "extern", "text": "extern", "parent": 10, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 12, "type": "type_identifier", "text": "wxColourDatabase", "parent": 9, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 23}}, {"id": 13, "type": "pointer_declarator", "text": "* wxTheColourDatabase", "parent": 9, "children": [14, 15], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 44}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 24}}, {"id": 15, "type": "identifier", "text": "wxTheColourDatabase", "parent": 13, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 44}}, {"id": 16, "type": "enum_specifier", "text": "enum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n}", "parent": 0, "children": [17, 18, 19], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 17, "type": "enum", "text": "enum", "parent": 16, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 18, "type": "type_identifier", "text": "MainFrameMenuEvents", "parent": 16, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 24}}, {"id": 19, "type": "enumerator_list", "text": "{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n}", "parent": 16, "children": [20, 24, 26, 28, 30, 32, 34], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "enumerator", "text": "ID_NewCanvas = wxID_HIGHEST", "parent": 19, "children": [21, 22, 23], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 29}}, {"id": 21, "type": "identifier", "text": "ID_NewCanvas", "parent": 20, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 14}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 16}}, {"id": 23, "type": "identifier", "text": "wxID_HIGHEST", "parent": 20, "children": [], "start_point": {"row": 6, "column": 17}, "end_point": {"row": 6, "column": 29}}, {"id": 24, "type": "enumerator", "text": "ID_SaveCanvas", "parent": 19, "children": [25], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 15}}, {"id": 25, "type": "identifier", "text": "ID_SaveCanvas", "parent": 24, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 15}}, {"id": 26, "type": "enumerator", "text": "ID_ExportCanvas", "parent": 19, "children": [27], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 17}}, {"id": 27, "type": "identifier", "text": "ID_ExportCanvas", "parent": 26, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 17}}, {"id": 28, "type": "enumerator", "text": "ID_LoadCanvas", "parent": 19, "children": [29], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 15}}, {"id": 29, "type": "identifier", "text": "ID_LoadCanvas", "parent": 28, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 15}}, {"id": 30, "type": "enumerator", "text": "ID_ResetWorkspace", "parent": 19, "children": [31], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 19}}, {"id": 31, "type": "identifier", "text": "ID_ResetWorkspace", "parent": 30, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 19}}, {"id": 32, "type": "enumerator", "text": "ID_LoadConfiguration", "parent": 19, "children": [33], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 22}}, {"id": 33, "type": "identifier", "text": "ID_LoadConfiguration", "parent": 32, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 22}}, {"id": 34, "type": "enumerator", "text": "ID_ResetConfiguration", "parent": 19, "children": [35], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 23}}, {"id": 35, "type": "identifier", "text": "ID_ResetConfiguration", "parent": 34, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 23}}, {"id": 36, "type": "enum_specifier", "text": "enum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n}", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 37, "type": "enum", "text": "enum", "parent": 36, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 38, "type": "type_identifier", "text": "CanvasMenuEvents", "parent": 36, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 21}}, {"id": 39, "type": "enumerator_list", "text": "{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n}", "parent": 36, "children": [40, 44, 46, 48, 50, 52], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 40, "type": "enumerator", "text": "ID_ToggleWireColors = wxID_HIGHEST", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 36}}, {"id": 41, "type": "identifier", "text": "ID_ToggleWireColors", "parent": 40, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 21}}, {"id": 42, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 23}}, {"id": 43, "type": "identifier", "text": "wxID_HIGHEST", "parent": 40, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 36}}, {"id": 44, "type": "enumerator", "text": "ID_ToggleBooleanAlgebra", "parent": 39, "children": [45], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 25}}, {"id": 45, "type": "identifier", "text": "ID_ToggleBooleanAlgebra", "parent": 44, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 25}}, {"id": 46, "type": "enumerator", "text": "ID_GridOptions", "parent": 39, "children": [47], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 16}}, {"id": 47, "type": "identifier", "text": "ID_GridOptions", "parent": 46, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 16}}, {"id": 48, "type": "enumerator", "text": "ID_ToggleGrid", "parent": 39, "children": [49], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 15}}, {"id": 49, "type": "identifier", "text": "ID_ToggleGrid", "parent": 48, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 15}}, {"id": 50, "type": "enumerator", "text": "ID_CheckLineGrid", "parent": 39, "children": [51], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 18}}, {"id": 51, "type": "identifier", "text": "ID_CheckLineGrid", "parent": 50, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 18}}, {"id": 52, "type": "enumerator", "text": "ID_CheckDotGrid", "parent": 39, "children": [53], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 17}}, {"id": 53, "type": "identifier", "text": "ID_CheckDotGrid", "parent": 52, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 17}}, {"id": 54, "type": "preproc_def", "text": "#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find(\"CANVAS_BACKGROUND_COLOR\")\n", "parent": 0, "children": [55, 56, 57], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 56, "type": "identifier", "text": "CANVAS_BACKGROUND_COLOR", "parent": 54, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 31}}, {"id": 57, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"CANVAS_BACKGROUND_COLOR\")", "parent": 54, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 84}}, {"id": 58, "type": "preproc_def", "text": "#define CANVAS_GRID_COLOR wxTheColourDatabase->Find(\"CANVAS_GRID_COLOR\")\n", "parent": 0, "children": [59, 60, 61], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 60, "type": "identifier", "text": "CANVAS_GRID_COLOR", "parent": 58, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 25}}, {"id": 61, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"CANVAS_GRID_COLOR\")", "parent": 58, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 72}}, {"id": 62, "type": "preproc_def", "text": "#define WIRE_ON_COLOR wxTheColourDatabase->Find(\"WIRE_ON_COLOR\")\n", "parent": 0, "children": [63, 64, 65], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 64, "type": "identifier", "text": "WIRE_ON_COLOR", "parent": 62, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 65, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"WIRE_ON_COLOR\")", "parent": 62, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 64}}, {"id": 66, "type": "preproc_def", "text": "#define WIRE_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_OFF_COLOR\")\n", "parent": 0, "children": [67, 68, 69], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 68, "type": "identifier", "text": "WIRE_OFF_COLOR", "parent": 66, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 22}}, {"id": 69, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"WIRE_OFF_COLOR\")", "parent": 66, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 66}}, {"id": 70, "type": "preproc_def", "text": "#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find(\"WIRE_NORMAL_COLOR\")\n", "parent": 0, "children": [71, 72, 73], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 72, "type": "identifier", "text": "WIRE_NORMAL_COLOR", "parent": 70, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 25}}, {"id": 73, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"WIRE_NORMAL_COLOR\")", "parent": 70, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 72}}, {"id": 74, "type": "preproc_def", "text": "#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_ON_COLOR\")\n", "parent": 0, "children": [75, 76, 77], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 76, "type": "identifier", "text": "WIRE_TEXT_ON_COLOR", "parent": 74, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 26}}, {"id": 77, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"WIRE_TEXT_ON_COLOR\")", "parent": 74, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 74}}, {"id": 78, "type": "preproc_def", "text": "#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_OFF_COLOR\")\n", "parent": 0, "children": [79, 80, 81], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 80, "type": "identifier", "text": "WIRE_TEXT_OFF_COLOR", "parent": 78, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 27}}, {"id": 81, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"WIRE_TEXT_OFF_COLOR\")", "parent": 78, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 76}}, {"id": 82, "type": "preproc_def", "text": "#define SELECT_COLOR wxTheColourDatabase->Find(\"SELECT_COLOR\")\n", "parent": 0, "children": [83, 84, 85], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 84, "type": "identifier", "text": "SELECT_COLOR", "parent": 82, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 20}}, {"id": 85, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"SELECT_COLOR\")", "parent": 82, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 62}}, {"id": 86, "type": "preproc_def", "text": "#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find(\"ANCHOR_CONNECTED_COLOR\")\n", "parent": 0, "children": [87, 88, 89], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 88, "type": "identifier", "text": "ANCHOR_CONNECTED_COLOR", "parent": 86, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 30}}, {"id": 89, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"ANCHOR_CONNECTED_COLOR\")", "parent": 86, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 82}}, {"id": 90, "type": "preproc_def", "text": "#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find(\"ANCHOR_BROKEN_COLOR\")\n", "parent": 0, "children": [91, 92, 93], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 91, "type": "#define", "text": "#define", "parent": 90, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 92, "type": "identifier", "text": "ANCHOR_BROKEN_COLOR", "parent": 90, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 27}}, {"id": 93, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"ANCHOR_BROKEN_COLOR\")", "parent": 90, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 76}}, {"id": 94, "type": "preproc_def", "text": "#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find(\"ANCHOR_HIGHLIGHT_COLOR\")\n", "parent": 0, "children": [95, 96, 97], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 96, "type": "identifier", "text": "ANCHOR_HIGHLIGHT_COLOR", "parent": 94, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 30}}, {"id": 97, "type": "preproc_arg", "text": "wxTheColourDatabase->Find(\"ANCHOR_HIGHLIGHT_COLOR\")", "parent": 94, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 82}}, {"id": 98, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [9], "classes": [10], "imports": [6, 7], "modules": [], "enums": [16, 17, 19, 20, 24, 26, 28, 30, 32, 34, 36, 37, 39, 40, 44, 46, 48, 50, 52]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 15, 18, 21, 23, 25, 27, 29, 31, 33, 35, 38, 41, 43, 45, 47, 49, 51, 53, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 98], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include <wx/wx.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef DEFS_H\n#define DEFS_H\n#include <wx/wx.h>\nextern wxColourDatabase* wxTheColourDatabase;\nenum MainFrameMenuEvents\n{\n ID_NewCanvas = wxID_HIGHEST,\n ID_SaveCanvas,\n ID_ExportCanvas,\n ID_LoadCanvas,\n\n ID_ResetWorkspace,\n ID_LoadConfiguration,\n ID_ResetConfiguration,\n};\n\nenum CanvasMenuEvents\n{\n ID_ToggleWireColors = wxID_HIGHEST,\n ID_ToggleBooleanAlgebra,\n ID_GridOptions,\n ID_ToggleGrid,\n ID_CheckLineGrid,\n ID_CheckDotGrid\n};\n\n#define CANVAS_BACKGROUND_COLOR wxTheColourDatabase->Find(\"CANVAS_BACKGROUND_COLOR\")\n#define CANVAS_GRID_COLOR wxTheColourDatabase->Find(\"CANVAS_GRID_COLOR\")\n#define WIRE_ON_COLOR wxTheColourDatabase->Find(\"WIRE_ON_COLOR\")\n#define WIRE_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_OFF_COLOR\")\n#define WIRE_NORMAL_COLOR wxTheColourDatabase->Find(\"WIRE_NORMAL_COLOR\")\n#define WIRE_TEXT_ON_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_ON_COLOR\")\n#define WIRE_TEXT_OFF_COLOR wxTheColourDatabase->Find(\"WIRE_TEXT_OFF_COLOR\")\n#define SELECT_COLOR wxTheColourDatabase->Find(\"SELECT_COLOR\")\n#define ANCHOR_CONNECTED_COLOR wxTheColourDatabase->Find(\"ANCHOR_CONNECTED_COLOR\")\n#define ANCHOR_BROKEN_COLOR wxTheColourDatabase->Find(\"ANCHOR_BROKEN_COLOR\")\n#define ANCHOR_HIGHLIGHT_COLOR wxTheColourDatabase->Find(\"ANCHOR_HIGHLIGHT_COLOR\")\n#endif // ! DEFS_H\n\n"}
80,773
c
#ifndef _TIME_H #define _TIME_H #ifdef __cplusplus extern "C" { #endif #define CLOCK_MONOTONIC 1 typedef long int time_t; typedef int clockid_t; struct timespec { time_t tv_sec; long tv_nsec; }; int clock_gettime(clockid_t clock_id, struct timespec *tp); int printf(const char *format, ...); #ifdef __cplusplus } #endif #endif
16.63
19
(translation_unit) "#ifndef _TIME_H\n#define _TIME_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n" (preproc_ifdef) "#ifndef _TIME_H\n#define _TIME_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif" (#ifndef) "#ifndef" (identifier) "_TIME_H" (preproc_def) "#define _TIME_H\n" (#define) "#define" (identifier) "_TIME_H" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (preproc_def) "#define CLOCK_MONOTONIC 1\n" (#define) "#define" (identifier) "CLOCK_MONOTONIC" (preproc_arg) "1" (type_definition) "typedef long int time_t;" (typedef) "typedef" (sized_type_specifier) "long int" (long) "long" (primitive_type) "int" (type_identifier) "time_t" (;) ";" (type_definition) "typedef int clockid_t;" (typedef) "typedef" (primitive_type) "int" (type_identifier) "clockid_t" (;) ";" (struct_specifier) "struct timespec {\n time_t tv_sec;\n long tv_nsec;\n}" (struct) "struct" (type_identifier) "timespec" (field_declaration_list) "{\n time_t tv_sec;\n long tv_nsec;\n}" ({) "{" (field_declaration) "time_t tv_sec;" (type_identifier) "time_t" (field_identifier) "tv_sec" (;) ";" (field_declaration) "long tv_nsec;" (sized_type_specifier) "long" (long) "long" (field_identifier) "tv_nsec" (;) ";" (}) "}" (;) ";" (declaration) "int\nclock_gettime(clockid_t clock_id, struct timespec *tp);" (primitive_type) "int" (function_declarator) "clock_gettime(clockid_t clock_id, struct timespec *tp)" (identifier) "clock_gettime" (parameter_list) "(clockid_t clock_id, struct timespec *tp)" (() "(" (parameter_declaration) "clockid_t clock_id" (type_identifier) "clockid_t" (identifier) "clock_id" (,) "," (parameter_declaration) "struct timespec *tp" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (pointer_declarator) "*tp" (*) "*" (identifier) "tp" ()) ")" (;) ";" (declaration) "int printf(const char *format, ...);" (primitive_type) "int" (function_declarator) "printf(const char *format, ...)" (identifier) "printf" (parameter_list) "(const char *format, ...)" (() "(" (parameter_declaration) "const char *format" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*format" (*) "*" (identifier) "format" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (#endif) "#endif" (#endif) "#endif"
96
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 16.63, "nodes": 69, "errors": 0, "source_hash": "b4c369595122355e4ae6ca52e6fe654030708a48b91d278babbf89f73d3e3a51", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _TIME_H\n#define _TIME_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 68], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 27, "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": "_TIME_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define _TIME_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": "_TIME_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 15}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif", "parent": 0, "children": [7, 8, 9, 67], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 8, "type": "identifier", "text": "__cplusplus", "parent": 6, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 10, "type": "extern", "text": "extern", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 11, "type": "string_literal", "text": "\"C\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 7}, "end_point": {"row": 4, "column": 10}}, {"id": 12, "type": "preproc_call", "text": "#endif\n", "parent": 9, "children": [13], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "preproc_directive", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 14, "type": "preproc_def", "text": "#define CLOCK_MONOTONIC 1\n", "parent": 9, "children": [15, 16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 16, "type": "identifier", "text": "CLOCK_MONOTONIC", "parent": 14, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 23}}, {"id": 17, "type": "preproc_arg", "text": "1", "parent": 14, "children": [], "start_point": {"row": 7, "column": 24}, "end_point": {"row": 7, "column": 25}}, {"id": 18, "type": "type_definition", "text": "typedef long int time_t;", "parent": 9, "children": [19, 20, 23], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 24}}, {"id": 19, "type": "typedef", "text": "typedef", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 20, "type": "sized_type_specifier", "text": "long int", "parent": 18, "children": [21, 22], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 16}}, {"id": 21, "type": "long", "text": "long", "parent": 20, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 12}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 20, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 23, "type": "type_identifier", "text": "time_t", "parent": 18, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 23}}, {"id": 24, "type": "type_definition", "text": "typedef int clockid_t;", "parent": 9, "children": [25, 26, 27], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 22}}, {"id": 25, "type": "typedef", "text": "typedef", "parent": 24, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 26, "type": "primitive_type", "text": "int", "parent": 24, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 11}}, {"id": 27, "type": "type_identifier", "text": "clockid_t", "parent": 24, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 21}}, {"id": 28, "type": "struct_specifier", "text": "struct timespec {\n time_t tv_sec;\n long tv_nsec;\n}", "parent": 9, "children": [29, 30], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 29, "type": "struct", "text": "struct", "parent": 28, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 30, "type": "type_identifier", "text": "timespec", "parent": 28, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 15}}, {"id": 31, "type": "field_declaration", "text": "time_t tv_sec;", "parent": 28, "children": [32, 33], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 18}}, {"id": 32, "type": "type_identifier", "text": "time_t", "parent": 31, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 33, "type": "field_identifier", "text": "tv_sec", "parent": 31, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 17}}, {"id": 34, "type": "field_declaration", "text": "long tv_nsec;", "parent": 28, "children": [35, 37], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 17}}, {"id": 35, "type": "sized_type_specifier", "text": "long", "parent": 34, "children": [36], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 36, "type": "long", "text": "long", "parent": 35, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 37, "type": "field_identifier", "text": "tv_nsec", "parent": 34, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 16}}, {"id": 38, "type": "declaration", "text": "int\nclock_gettime(clockid_t clock_id, struct timespec *tp);", "parent": 9, "children": [39, 40], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 55}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 40, "type": "function_declarator", "text": "clock_gettime(clockid_t clock_id, struct timespec *tp)", "parent": 38, "children": [41, 42], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 54}}, {"id": 41, "type": "identifier", "text": "clock_gettime", "parent": 40, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 13}}, {"id": 42, "type": "parameter_list", "text": "(clockid_t clock_id, struct timespec *tp)", "parent": 40, "children": [43, 46], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 54}}, {"id": 43, "type": "parameter_declaration", "text": "clockid_t clock_id", "parent": 42, "children": [44, 45], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 32}}, {"id": 44, "type": "type_identifier", "text": "clockid_t", "parent": 43, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 23}}, {"id": 45, "type": "identifier", "text": "clock_id", "parent": 43, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 32}}, {"id": 46, "type": "parameter_declaration", "text": "struct timespec *tp", "parent": 42, "children": [47, 50], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 53}}, {"id": 47, "type": "struct_specifier", "text": "struct timespec", "parent": 46, "children": [48, 49], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 49}}, {"id": 48, "type": "struct", "text": "struct", "parent": 47, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 40}}, {"id": 49, "type": "type_identifier", "text": "timespec", "parent": 47, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 49}}, {"id": 50, "type": "pointer_declarator", "text": "*tp", "parent": 46, "children": [51, 52], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 53}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 51}}, {"id": 52, "type": "identifier", "text": "tp", "parent": 50, "children": [], "start_point": {"row": 19, "column": 51}, "end_point": {"row": 19, "column": 53}}, {"id": 53, "type": "declaration", "text": "int printf(const char *format, ...);", "parent": 9, "children": [54, 55], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 36}}, {"id": 54, "type": "primitive_type", "text": "int", "parent": 53, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 3}}, {"id": 55, "type": "function_declarator", "text": "printf(const char *format, ...)", "parent": 53, "children": [56, 57], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 35}}, {"id": 56, "type": "identifier", "text": "printf", "parent": 55, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 57, "type": "parameter_list", "text": "(const char *format, ...)", "parent": 55, "children": [58], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 35}}, {"id": 58, "type": "parameter_declaration", "text": "const char *format", "parent": 57, "children": [59, 60], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 29}}, {"id": 59, "type": "primitive_type", "text": "char", "parent": 58, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 21}}, {"id": 60, "type": "pointer_declarator", "text": "*format", "parent": 58, "children": [61, 62], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 29}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 23}}, {"id": 62, "type": "identifier", "text": "format", "parent": 60, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 29}}, {"id": 63, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 9, "children": [64, 65, 66], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 18}}, {"id": 64, "type": "#ifdef", "text": "#ifdef", "parent": 63, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 65, "type": "identifier", "text": "__cplusplus", "parent": 63, "children": [], "start_point": {"row": 23, "column": 7}, "end_point": {"row": 23, "column": 18}}, {"id": 66, "type": "#endif", "text": "", "parent": 63, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 18}}, {"id": 67, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 68, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}]}, "node_categories": {"declarations": {"functions": [40, 55], "variables": [18, 24, 31, 34, 38, 43, 46, 53, 58], "classes": [28, 29, 47, 48], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 6, 7, 8, 9, 16, 20, 23, 27, 30, 32, 33, 35, 37, 41, 44, 45, 49, 52, 56, 62, 63, 64, 65, 66, 67, 68], "returns": [], "exceptions": []}, "expressions": {"calls": [12], "literals": [11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 40, "universal_type": "function", "name": "timespec", "text_snippet": "clock_gettime(clockid_t clock_id, struct timespec *tp)"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "printf(const char *format, ...)"}], "class_declarations": [{"node_id": 28, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec {\n time_t tv_sec;\n long tv_nsec;\n}"}, {"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 47, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef _TIME_H\n#define _TIME_H\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#define CLOCK_MONOTONIC 1\n\ntypedef long int time_t;\n\ntypedef int clockid_t;\n\nstruct timespec {\n time_t tv_sec;\n long tv_nsec;\n};\n\nint\nclock_gettime(clockid_t clock_id, struct timespec *tp);\n\nint printf(const char *format, ...);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif\n"}
80,774
c
#pragma once #include "system/Settings.h" NAMESPACE_SPH_BEGIN enum class AttractorSettingsId { /// String identifier of the attractor LABEL = 0, /// If true, the attractor absorbs any particle that falls below the attractor's radius. BLACK_HOLE = 1, /// Texture VISUALIZATION_TEXTURE = 100, }; using AttractorSettings = Settings<AttractorSettingsId>; /// \brief Single point-mass particle. /// /// Extra properties of the attractor can be stored in the settings member variable. struct Attractor { Vector position; Vector velocity = Vector(0._f); Vector acceleration = Vector(0._f); Float radius; Float mass; AttractorSettings settings = EMPTY_SETTINGS; Attractor() = default; Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass) : position(position) , velocity(velocity) , radius(radius) , mass(mass) {} }; NAMESPACE_SPH_END
30.9
30
(translation_unit) "#pragma once\n\n#include "system/Settings.h"\n\nNAMESPACE_SPH_BEGIN\n\nenum class AttractorSettingsId {\n /// String identifier of the attractor\n LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100,\n};\n\nusing AttractorSettings = Settings<AttractorSettingsId>;\n\n/// \brief Single point-mass particle.\n///\n/// Extra properties of the attractor can be stored in the settings member variable.\nstruct Attractor {\n Vector position;\n Vector velocity = Vector(0._f);\n Vector acceleration = Vector(0._f);\n Float radius;\n Float mass;\n\n AttractorSettings settings = EMPTY_SETTINGS;\n\n Attractor() = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};\n\nNAMESPACE_SPH_END\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "system/Settings.h"\n" (#include) "#include" (string_literal) ""system/Settings.h"" (") """ (string_content) "system/Settings.h" (") """ (declaration) "NAMESPACE_SPH_BEGIN\n\nenum" (type_identifier) "NAMESPACE_SPH_BEGIN" (identifier) "enum" (;) "" (ERROR) "class AttractorSettingsId {\n /// String identifier of the attractor\n LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100,\n};\n\nusing AttractorSettings = Settings<AttractorSettingsId>;\n\n/// \brief Single point-mass particle.\n///\n/// Extra properties of the attractor can be stored in the settings member variable.\nstruct Attractor {\n Vector position;\n Vector velocity = Vector(0._f);\n Vector acceleration = Vector(0._f);\n Float radius;\n Float mass;\n\n AttractorSettings settings = EMPTY_SETTINGS;\n\n Attractor() = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};\n\nNAMESPACE_SPH_END" (type_identifier) "class" (identifier) "AttractorSettingsId" ({) "{" (comment) "/// String identifier of the attractor" (expression_statement) "LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100,\n};" (comma_expression) "LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100" (assignment_expression) "LABEL = 0" (identifier) "LABEL" (=) "=" (number_literal) "0" (,) "," (comment) "/// If true, the attractor absorbs any particle that falls below the attractor's radius." (comma_expression) "BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100" (assignment_expression) "BLACK_HOLE = 1" (identifier) "BLACK_HOLE" (=) "=" (number_literal) "1" (,) "," (comment) "/// Texture" (assignment_expression) "VISUALIZATION_TEXTURE = 100" (identifier) "VISUALIZATION_TEXTURE" (=) "=" (number_literal) "100" (ERROR) ",\n}" (,) "," (}) "}" (;) ";" (declaration) "using AttractorSettings = Settings<AttractorSettingsId>;" (type_identifier) "using" (init_declarator) "AttractorSettings = Settings<AttractorSettingsId" (identifier) "AttractorSettings" (=) "=" (binary_expression) "Settings<AttractorSettingsId" (identifier) "Settings" (<) "<" (identifier) "AttractorSettingsId" (ERROR) ">" (>) ">" (;) ";" (comment) "/// \brief Single point-mass particle." (comment) "///" (comment) "/// Extra properties of the attractor can be stored in the settings member variable." (struct) "struct" (identifier) "Attractor" ({) "{" (field_declaration) "Vector position;" (type_identifier) "Vector" (field_identifier) "position" (;) ";" (field_declaration) "Vector velocity = Vector(0._f);" (type_identifier) "Vector" (ERROR) "velocity =" (field_identifier) "velocity" (=) "=" (function_declarator) "Vector(0._f)" (field_identifier) "Vector" (parameter_list) "(0._f)" (() "(" (ERROR) "0." (number_literal) "0." (parameter_declaration) "_f" (type_identifier) "_f" ()) ")" (;) ";" (field_declaration) "Vector acceleration = Vector(0._f);" (type_identifier) "Vector" (ERROR) "acceleration =" (field_identifier) "acceleration" (=) "=" (function_declarator) "Vector(0._f)" (field_identifier) "Vector" (parameter_list) "(0._f)" (() "(" (ERROR) "0." (number_literal) "0." (parameter_declaration) "_f" (type_identifier) "_f" ()) ")" (;) ";" (field_declaration) "Float radius;" (type_identifier) "Float" (field_identifier) "radius" (;) ";" (field_declaration) "Float mass;" (type_identifier) "Float" (field_identifier) "mass" (;) ";" (field_declaration) "AttractorSettings settings = EMPTY_SETTINGS;" (type_identifier) "AttractorSettings" (ERROR) "settings =" (field_identifier) "settings" (=) "=" (field_identifier) "EMPTY_SETTINGS" (;) ";" (identifier) "Attractor" (() "(" (ERROR) ") = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};" ()) ")" (=) "=" (default) "default" (;) ";" (type_descriptor) "Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)" (type_identifier) "Attractor" (abstract_function_declarator) "(const Vector& position, const Vector& velocity, const Float radius, const Float mass)" (parameter_list) "(const Vector& position, const Vector& velocity, const Float radius, const Float mass)" (() "(" (parameter_declaration) "const Vector& position" (type_qualifier) "const" (const) "const" (type_identifier) "Vector" (ERROR) "&" (&) "&" (identifier) "position" (,) "," (parameter_declaration) "const Vector& velocity" (type_qualifier) "const" (const) "const" (type_identifier) "Vector" (ERROR) "&" (&) "&" (identifier) "velocity" (,) "," (parameter_declaration) "const Float radius" (type_qualifier) "const" (const) "const" (type_identifier) "Float" (identifier) "radius" (,) "," (parameter_declaration) "const Float mass" (type_qualifier) "const" (const) "const" (type_identifier) "Float" (identifier) "mass" ()) ")" (:) ":" (type_descriptor) "position(position)" (type_identifier) "position" (abstract_function_declarator) "(position)" (parameter_list) "(position)" (() "(" (parameter_declaration) "position" (type_identifier) "position" ()) ")" (,) "," (type_descriptor) "velocity(velocity)" (type_identifier) "velocity" (abstract_function_declarator) "(velocity)" (parameter_list) "(velocity)" (() "(" (parameter_declaration) "velocity" (type_identifier) "velocity" ()) ")" (,) "," (type_descriptor) "radius(radius)" (type_identifier) "radius" (abstract_function_declarator) "(radius)" (parameter_list) "(radius)" (() "(" (parameter_declaration) "radius" (type_identifier) "radius" ()) ")" (,) "," (macro_type_specifier) "mass(mass)" (identifier) "mass" (() "(" (type_descriptor) "mass" (type_identifier) "mass" ()) ")" ({) "{" (}) "}" (}) "}" (;) ";" (identifier) "NAMESPACE_SPH_END"
188
11
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 30.9, "nodes": 121, "errors": 0, "source_hash": "c41c3f4607ac24a1a6f1612ad37874f98d9941ee8e76e4d6edb20092c58fadf7", "categorized_nodes": 87}, "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 \"system/Settings.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": "\"system/Settings.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 28}}, {"id": 6, "type": "declaration", "text": "NAMESPACE_SPH_BEGIN\n\nenum", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 7, "type": "type_identifier", "text": "NAMESPACE_SPH_BEGIN", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 19}}, {"id": 8, "type": "identifier", "text": "enum", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 9, "type": "ERROR", "text": "class AttractorSettingsId {\n /// String identifier of the attractor\n LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100,\n};\n\nusing AttractorSettings = Settings<AttractorSettingsId>;\n\n/// \\brief Single point-mass particle.\n///\n/// Extra properties of the attractor can be stored in the settings member variable.\nstruct Attractor {\n Vector position;\n Vector velocity = Vector(0._f);\n Vector acceleration = Vector(0._f);\n Float radius;\n Float mass;\n\n AttractorSettings settings = EMPTY_SETTINGS;\n\n Attractor() = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};\n\nNAMESPACE_SPH_END", "parent": null, "children": [10, 26, 37, 38, 39, 42, 54, 66, 69, 72, 78, 79, 120], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 40, "column": 17}}, {"id": 10, "type": "identifier", "text": "AttractorSettingsId", "parent": 9, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 30}}, {"id": 11, "type": "comma_expression", "text": "LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100", "parent": 9, "children": [12, 16], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 14, "column": 31}}, {"id": 12, "type": "assignment_expression", "text": "LABEL = 0", "parent": 11, "children": [13, 14, 15], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 13}}, {"id": 13, "type": "identifier", "text": "LABEL", "parent": 12, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 9}}, {"id": 14, "type": "=", "text": "=", "parent": 12, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 15, "type": "number_literal", "text": "0", "parent": 12, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 16, "type": "comma_expression", "text": "BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100", "parent": 11, "children": [17, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 14, "column": 31}}, {"id": 17, "type": "assignment_expression", "text": "BLACK_HOLE = 1", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 18}}, {"id": 18, "type": "identifier", "text": "BLACK_HOLE", "parent": 17, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 20, "type": "number_literal", "text": "1", "parent": 17, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}, {"id": 21, "type": "assignment_expression", "text": "VISUALIZATION_TEXTURE = 100", "parent": 16, "children": [22, 23, 24], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 31}}, {"id": 22, "type": "identifier", "text": "VISUALIZATION_TEXTURE", "parent": 21, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 25}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 27}}, {"id": 24, "type": "number_literal", "text": "100", "parent": 21, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 31}}, {"id": 25, "type": "ERROR", "text": ",\n}", "parent": 9, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 15, "column": 1}}, {"id": 26, "type": "declaration", "text": "using AttractorSettings = Settings<AttractorSettingsId>;", "parent": 9, "children": [27, 28, 35], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 56}}, {"id": 27, "type": "type_identifier", "text": "using", "parent": 26, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 5}}, {"id": 28, "type": "init_declarator", "text": "AttractorSettings = Settings<AttractorSettingsId", "parent": 26, "children": [29, 30, 31], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 54}}, {"id": 29, "type": "identifier", "text": "AttractorSettings", "parent": 28, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 23}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 25}}, {"id": 31, "type": "binary_expression", "text": "Settings<AttractorSettingsId", "parent": 28, "children": [32, 33, 34], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 54}}, {"id": 32, "type": "identifier", "text": "Settings", "parent": 31, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 34}}, {"id": 33, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 35}}, {"id": 34, "type": "identifier", "text": "AttractorSettingsId", "parent": 31, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 54}}, {"id": 35, "type": "ERROR", "text": ">", "parent": 26, "children": [36], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 36, "type": ">", "text": ">", "parent": 35, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 55}}, {"id": 37, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 6}}, {"id": 38, "type": "identifier", "text": "Attractor", "parent": 9, "children": [], "start_point": {"row": 22, "column": 7}, "end_point": {"row": 22, "column": 16}}, {"id": 39, "type": "field_declaration", "text": "Vector position;", "parent": 9, "children": [40, 41], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 20}}, {"id": 40, "type": "type_identifier", "text": "Vector", "parent": 39, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 10}}, {"id": 41, "type": "field_identifier", "text": "position", "parent": 39, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 19}}, {"id": 42, "type": "field_declaration", "text": "Vector velocity = Vector(0._f);", "parent": 9, "children": [43, 44, 47], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 35}}, {"id": 43, "type": "type_identifier", "text": "Vector", "parent": 42, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 44, "type": "ERROR", "text": "velocity =", "parent": 42, "children": [45, 46], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 21}}, {"id": 45, "type": "field_identifier", "text": "velocity", "parent": 44, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 19}}, {"id": 46, "type": "=", "text": "=", "parent": 44, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 47, "type": "function_declarator", "text": "Vector(0._f)", "parent": 42, "children": [48, 49], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 34}}, {"id": 48, "type": "field_identifier", "text": "Vector", "parent": 47, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 28}}, {"id": 49, "type": "parameter_list", "text": "(0._f)", "parent": 47, "children": [50, 52], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 34}}, {"id": 50, "type": "ERROR", "text": "0.", "parent": 49, "children": [51], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 51, "type": "number_literal", "text": "0.", "parent": 50, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 52, "type": "parameter_declaration", "text": "_f", "parent": 49, "children": [53], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 53, "type": "type_identifier", "text": "_f", "parent": 52, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 54, "type": "field_declaration", "text": "Vector acceleration = Vector(0._f);", "parent": 9, "children": [55, 56, 59], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 39}}, {"id": 55, "type": "type_identifier", "text": "Vector", "parent": 54, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 10}}, {"id": 56, "type": "ERROR", "text": "acceleration =", "parent": 54, "children": [57, 58], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 25}}, {"id": 57, "type": "field_identifier", "text": "acceleration", "parent": 56, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 23}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 25}}, {"id": 59, "type": "function_declarator", "text": "Vector(0._f)", "parent": 54, "children": [60, 61], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 38}}, {"id": 60, "type": "field_identifier", "text": "Vector", "parent": 59, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 32}}, {"id": 61, "type": "parameter_list", "text": "(0._f)", "parent": 59, "children": [62, 64], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 38}}, {"id": 62, "type": "ERROR", "text": "0.", "parent": 61, "children": [63], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 35}}, {"id": 63, "type": "number_literal", "text": "0.", "parent": 62, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 35}}, {"id": 64, "type": "parameter_declaration", "text": "_f", "parent": 61, "children": [65], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 37}}, {"id": 65, "type": "type_identifier", "text": "_f", "parent": 64, "children": [], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 37}}, {"id": 66, "type": "field_declaration", "text": "Float radius;", "parent": 9, "children": [67, 68], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 17}}, {"id": 67, "type": "type_identifier", "text": "Float", "parent": 66, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 9}}, {"id": 68, "type": "field_identifier", "text": "radius", "parent": 66, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 16}}, {"id": 69, "type": "field_declaration", "text": "Float mass;", "parent": 9, "children": [70, 71], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 15}}, {"id": 70, "type": "type_identifier", "text": "Float", "parent": 69, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 9}}, {"id": 71, "type": "field_identifier", "text": "mass", "parent": 69, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 14}}, {"id": 72, "type": "field_declaration", "text": "AttractorSettings settings = EMPTY_SETTINGS;", "parent": 9, "children": [73, 74, 77], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 48}}, {"id": 73, "type": "type_identifier", "text": "AttractorSettings", "parent": 72, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 21}}, {"id": 74, "type": "ERROR", "text": "settings =", "parent": 72, "children": [75, 76], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 32}}, {"id": 75, "type": "field_identifier", "text": "settings", "parent": 74, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 30}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 29, "column": 31}, "end_point": {"row": 29, "column": 32}}, {"id": 77, "type": "field_identifier", "text": "EMPTY_SETTINGS", "parent": 72, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 47}}, {"id": 78, "type": "identifier", "text": "Attractor", "parent": 9, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 13}}, {"id": 79, "type": "ERROR", "text": ") = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};", "parent": 9, "children": [80, 81, 82, 98, 104, 110, 116], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 38, "column": 2}}, {"id": 80, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 17}}, {"id": 81, "type": "default", "text": "default", "parent": 79, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 25}}, {"id": 82, "type": "type_descriptor", "text": "Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)", "parent": 79, "children": [83, 84], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 99}}, {"id": 83, "type": "type_identifier", "text": "Attractor", "parent": 82, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 13}}, {"id": 84, "type": "abstract_function_declarator", "text": "(const Vector& position, const Vector& velocity, const Float radius, const Float mass)", "parent": 82, "children": [85], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 99}}, {"id": 85, "type": "parameter_list", "text": "(const Vector& position, const Vector& velocity, const Float radius, const Float mass)", "parent": 84, "children": [86, 89, 92, 95], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 99}}, {"id": 86, "type": "parameter_declaration", "text": "const Vector& position", "parent": 85, "children": [87, 88], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 36}}, {"id": 87, "type": "type_identifier", "text": "Vector", "parent": 86, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 26}}, {"id": 88, "type": "identifier", "text": "position", "parent": 86, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 36}}, {"id": 89, "type": "parameter_declaration", "text": "const Vector& velocity", "parent": 85, "children": [90, 91], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 60}}, {"id": 90, "type": "type_identifier", "text": "Vector", "parent": 89, "children": [], "start_point": {"row": 33, "column": 44}, "end_point": {"row": 33, "column": 50}}, {"id": 91, "type": "identifier", "text": "velocity", "parent": 89, "children": [], "start_point": {"row": 33, "column": 52}, "end_point": {"row": 33, "column": 60}}, {"id": 92, "type": "parameter_declaration", "text": "const Float radius", "parent": 85, "children": [93, 94], "start_point": {"row": 33, "column": 62}, "end_point": {"row": 33, "column": 80}}, {"id": 93, "type": "type_identifier", "text": "Float", "parent": 92, "children": [], "start_point": {"row": 33, "column": 68}, "end_point": {"row": 33, "column": 73}}, {"id": 94, "type": "identifier", "text": "radius", "parent": 92, "children": [], "start_point": {"row": 33, "column": 74}, "end_point": {"row": 33, "column": 80}}, {"id": 95, "type": "parameter_declaration", "text": "const Float mass", "parent": 85, "children": [96, 97], "start_point": {"row": 33, "column": 82}, "end_point": {"row": 33, "column": 98}}, {"id": 96, "type": "type_identifier", "text": "Float", "parent": 95, "children": [], "start_point": {"row": 33, "column": 88}, "end_point": {"row": 33, "column": 93}}, {"id": 97, "type": "identifier", "text": "mass", "parent": 95, "children": [], "start_point": {"row": 33, "column": 94}, "end_point": {"row": 33, "column": 98}}, {"id": 98, "type": "type_descriptor", "text": "position(position)", "parent": 79, "children": [99, 100], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 28}}, {"id": 99, "type": "type_identifier", "text": "position", "parent": 98, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 18}}, {"id": 100, "type": "abstract_function_declarator", "text": "(position)", "parent": 98, "children": [101], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 28}}, {"id": 101, "type": "parameter_list", "text": "(position)", "parent": 100, "children": [102], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 28}}, {"id": 102, "type": "parameter_declaration", "text": "position", "parent": 101, "children": [103], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 27}}, {"id": 103, "type": "type_identifier", "text": "position", "parent": 102, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 27}}, {"id": 104, "type": "type_descriptor", "text": "velocity(velocity)", "parent": 79, "children": [105, 106], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 28}}, {"id": 105, "type": "type_identifier", "text": "velocity", "parent": 104, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 106, "type": "abstract_function_declarator", "text": "(velocity)", "parent": 104, "children": [107], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 28}}, {"id": 107, "type": "parameter_list", "text": "(velocity)", "parent": 106, "children": [108], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 28}}, {"id": 108, "type": "parameter_declaration", "text": "velocity", "parent": 107, "children": [109], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 109, "type": "type_identifier", "text": "velocity", "parent": 108, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 110, "type": "type_descriptor", "text": "radius(radius)", "parent": 79, "children": [111, 112], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 24}}, {"id": 111, "type": "type_identifier", "text": "radius", "parent": 110, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 16}}, {"id": 112, "type": "abstract_function_declarator", "text": "(radius)", "parent": 110, "children": [113], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 24}}, {"id": 113, "type": "parameter_list", "text": "(radius)", "parent": 112, "children": [114], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 24}}, {"id": 114, "type": "parameter_declaration", "text": "radius", "parent": 113, "children": [115], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 115, "type": "type_identifier", "text": "radius", "parent": 114, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 23}}, {"id": 116, "type": "macro_type_specifier", "text": "mass(mass)", "parent": 79, "children": [117, 118], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 20}}, {"id": 117, "type": "identifier", "text": "mass", "parent": 116, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 14}}, {"id": 118, "type": "type_descriptor", "text": "mass", "parent": 116, "children": [119], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 119, "type": "type_identifier", "text": "mass", "parent": 118, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 19}}, {"id": 120, "type": "identifier", "text": "NAMESPACE_SPH_END", "parent": 9, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 17}}]}, "node_categories": {"declarations": {"functions": [47, 59, 84, 100, 106, 112], "variables": [6, 26, 39, 42, 52, 54, 64, 66, 69, 72, 86, 89, 92, 95, 102, 108, 114], "classes": [37], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [11, 16, 31], "assignments": [12, 17, 21], "loops": [], "conditionals": [7, 8, 10, 13, 18, 22, 27, 29, 32, 34, 38, 40, 41, 43, 45, 48, 53, 55, 57, 60, 65, 67, 68, 70, 71, 73, 75, 77, 78, 83, 87, 88, 90, 91, 93, 94, 96, 97, 99, 103, 105, 109, 111, 115, 116, 117, 119, 120], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 15, 20, 24, 51, 63], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "Vector(0._f)"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "Vector(0._f)"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "(const Vector& position, const Vector& velocity, const Float radius, const Float mass)"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "(position)"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "(velocity)"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "(radius)"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"system/Settings.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"system/Settings.h\"\n\nNAMESPACE_SPH_BEGIN\n\nenum class AttractorSettingsId {\n /// String identifier of the attractor\n LABEL = 0,\n\n /// If true, the attractor absorbs any particle that falls below the attractor's radius.\n BLACK_HOLE = 1,\n\n /// Texture\n VISUALIZATION_TEXTURE = 100,\n};\n\nusing AttractorSettings = Settings<AttractorSettingsId>;\n\n/// \\brief Single point-mass particle.\n///\n/// Extra properties of the attractor can be stored in the settings member variable.\nstruct Attractor {\n Vector position;\n Vector velocity = Vector(0._f);\n Vector acceleration = Vector(0._f);\n Float radius;\n Float mass;\n\n AttractorSettings settings = EMPTY_SETTINGS;\n\n Attractor() = default;\n\n Attractor(const Vector& position, const Vector& velocity, const Float radius, const Float mass)\n : position(position)\n , velocity(velocity)\n , radius(radius)\n , mass(mass) {}\n};\n\nNAMESPACE_SPH_END\n"}
80,775
c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* env_utils.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: nicolasessayan <<EMAIL>> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/03/30 18:18:16 by nicolases #+# #+# */ /* Updated: 2021/04/09 12:05:05 by adelille ### ########.fr */ /* */ /* ************************************************************************** */ #include "../includes/minishell.h" t_env *new_env(char *str) { int i; t_env *new; char **split; new = malloc(sizeof(t_env)); split = ft_split(str, '='); new->name = split[0]; new->data = split[1]; new->next = NULL; i = 2; while (split[i] != NULL) { free(split[i]); i++; } free(split); return (new); } t_env *get_last_env(t_env *env) { if (env == NULL) return (env); while (env->next != NULL) env = env->next; return (env); } void add_back_env(t_env **env, t_env *new) { t_env *l; l = get_last_env(*env); if (l != NULL) l->next = new; else *env = new; } t_env *init_env(char **env) { t_env *top; t_env *new; int i; if (env[0] != NULL) top = new_env(env[0]); i = 1; while (env[i] != NULL) { new = new_env(env[i]); add_back_env(&top, new); i++; } return (top); } void free_one_env(t_env *env) { free(env->name); env->name = NULL; free(env->data); env->data = NULL; env->next = NULL; free(env); env = NULL; }
24
74
(translation_unit) "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* env_utils.c :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: nicolasessayan <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2021/03/30 18:18:16 by nicolases #+# #+# */\n/* Updated: 2021/04/09 12:05:05 by adelille ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#include "../includes/minishell.h"\n\nt_env *new_env(char *str)\n{\n int i;\n t_env *new;\n char **split;\n\n new = malloc(sizeof(t_env));\n split = ft_split(str, '=');\n new->name = split[0];\n new->data = split[1];\n new->next = NULL;\n i = 2;\n while (split[i] != NULL)\n {\n free(split[i]);\n i++;\n }\n free(split);\n return (new);\n}\n\nt_env *get_last_env(t_env *env)\n{\n if (env == NULL)\n return (env);\n while (env->next != NULL)\n env = env->next;\n return (env);\n}\n\nvoid add_back_env(t_env **env, t_env *new)\n{\n t_env *l;\n\n l = get_last_env(*env);\n if (l != NULL)\n l->next = new;\n else\n *env = new;\n}\n\nt_env *init_env(char **env)\n{\n t_env *top;\n t_env *new;\n int i;\n\n if (env[0] != NULL)\n top = new_env(env[0]);\n i = 1;\n while (env[i] != NULL)\n {\n new = new_env(env[i]);\n add_back_env(&top, new);\n i++;\n }\n return (top);\n}\n\nvoid free_one_env(t_env *env)\n{\n free(env->name);\n env->name = NULL;\n free(env->data);\n env->data = NULL;\n env->next = NULL;\n free(env);\n env = NULL;\n}\n" (comment) "/* ************************************************************************** */" (comment) "/* */" (comment) "/* ::: :::::::: */" (comment) "/* env_utils.c :+: :+: :+: */" (comment) "/* +:+ +:+ +:+ */" (comment) "/* By: nicolasessayan <<EMAIL>> +#+ +:+ +#+ */" (comment) "/* +#+#+#+#+#+ +#+ */" (comment) "/* Created: 2021/03/30 18:18:16 by nicolases #+# #+# */" (comment) "/* Updated: 2021/04/09 12:05:05 by adelille ### ########.fr */" (comment) "/* */" (comment) "/* ************************************************************************** */" (preproc_include) "#include "../includes/minishell.h"\n" (#include) "#include" (string_literal) ""../includes/minishell.h"" (") """ (string_content) "../includes/minishell.h" (") """ (function_definition) "t_env *new_env(char *str)\n{\n int i;\n t_env *new;\n char **split;\n\n new = malloc(sizeof(t_env));\n split = ft_split(str, '=');\n new->name = split[0];\n new->data = split[1];\n new->next = NULL;\n i = 2;\n while (split[i] != NULL)\n {\n free(split[i]);\n i++;\n }\n free(split);\n return (new);\n}" (type_identifier) "t_env" (pointer_declarator) "*new_env(char *str)" (*) "*" (function_declarator) "new_env(char *str)" (identifier) "new_env" (parameter_list) "(char *str)" (() "(" (parameter_declaration) "char *str" (primitive_type) "char" (pointer_declarator) "*str" (*) "*" (identifier) "str" ()) ")" (compound_statement) "{\n int i;\n t_env *new;\n char **split;\n\n new = malloc(sizeof(t_env));\n split = ft_split(str, '=');\n new->name = split[0];\n new->data = split[1];\n new->next = NULL;\n i = 2;\n while (split[i] != NULL)\n {\n free(split[i]);\n i++;\n }\n free(split);\n return (new);\n}" ({) "{" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "t_env *new;" (type_identifier) "t_env" (pointer_declarator) "*new" (*) "*" (identifier) "new" (;) ";" (declaration) "char **split;" (primitive_type) "char" (pointer_declarator) "**split" (*) "*" (pointer_declarator) "*split" (*) "*" (identifier) "split" (;) ";" (expression_statement) "new = malloc(sizeof(t_env));" (assignment_expression) "new = malloc(sizeof(t_env))" (identifier) "new" (=) "=" (call_expression) "malloc(sizeof(t_env))" (identifier) "malloc" (argument_list) "(sizeof(t_env))" (() "(" (sizeof_expression) "sizeof(t_env)" (sizeof) "sizeof" (parenthesized_expression) "(t_env)" (() "(" (identifier) "t_env" ()) ")" ()) ")" (;) ";" (expression_statement) "split = ft_split(str, '=');" (assignment_expression) "split = ft_split(str, '=')" (identifier) "split" (=) "=" (call_expression) "ft_split(str, '=')" (identifier) "ft_split" (argument_list) "(str, '=')" (() "(" (identifier) "str" (,) "," (char_literal) "'='" (') "'" (character) "=" (') "'" ()) ")" (;) ";" (expression_statement) "new->name = split[0];" (assignment_expression) "new->name = split[0]" (field_expression) "new->name" (identifier) "new" (->) "->" (field_identifier) "name" (=) "=" (subscript_expression) "split[0]" (identifier) "split" ([) "[" (number_literal) "0" (]) "]" (;) ";" (expression_statement) "new->data = split[1];" (assignment_expression) "new->data = split[1]" (field_expression) "new->data" (identifier) "new" (->) "->" (field_identifier) "data" (=) "=" (subscript_expression) "split[1]" (identifier) "split" ([) "[" (number_literal) "1" (]) "]" (;) ";" (expression_statement) "new->next = NULL;" (assignment_expression) "new->next = NULL" (field_expression) "new->next" (identifier) "new" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "i = 2;" (assignment_expression) "i = 2" (identifier) "i" (=) "=" (number_literal) "2" (;) ";" (while_statement) "while (split[i] != NULL)\n {\n free(split[i]);\n i++;\n }" (while) "while" (parenthesized_expression) "(split[i] != NULL)" (() "(" (binary_expression) "split[i] != NULL" (subscript_expression) "split[i]" (identifier) "split" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n free(split[i]);\n i++;\n }" ({) "{" (expression_statement) "free(split[i]);" (call_expression) "free(split[i])" (identifier) "free" (argument_list) "(split[i])" (() "(" (subscript_expression) "split[i]" (identifier) "split" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (expression_statement) "free(split);" (call_expression) "free(split)" (identifier) "free" (argument_list) "(split)" (() "(" (identifier) "split" ()) ")" (;) ";" (return_statement) "return (new);" (return) "return" (parenthesized_expression) "(new)" (() "(" (identifier) "new" ()) ")" (;) ";" (}) "}" (function_definition) "t_env *get_last_env(t_env *env)\n{\n if (env == NULL)\n return (env);\n while (env->next != NULL)\n env = env->next;\n return (env);\n}" (type_identifier) "t_env" (pointer_declarator) "*get_last_env(t_env *env)" (*) "*" (function_declarator) "get_last_env(t_env *env)" (identifier) "get_last_env" (parameter_list) "(t_env *env)" (() "(" (parameter_declaration) "t_env *env" (type_identifier) "t_env" (pointer_declarator) "*env" (*) "*" (identifier) "env" ()) ")" (compound_statement) "{\n if (env == NULL)\n return (env);\n while (env->next != NULL)\n env = env->next;\n return (env);\n}" ({) "{" (if_statement) "if (env == NULL)\n return (env);" (if) "if" (parenthesized_expression) "(env == NULL)" (() "(" (binary_expression) "env == NULL" (identifier) "env" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return (env);" (return) "return" (parenthesized_expression) "(env)" (() "(" (identifier) "env" ()) ")" (;) ";" (while_statement) "while (env->next != NULL)\n env = env->next;" (while) "while" (parenthesized_expression) "(env->next != NULL)" (() "(" (binary_expression) "env->next != NULL" (field_expression) "env->next" (identifier) "env" (->) "->" (field_identifier) "next" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "env = env->next;" (assignment_expression) "env = env->next" (identifier) "env" (=) "=" (field_expression) "env->next" (identifier) "env" (->) "->" (field_identifier) "next" (;) ";" (return_statement) "return (env);" (return) "return" (parenthesized_expression) "(env)" (() "(" (identifier) "env" ()) ")" (;) ";" (}) "}" (function_definition) "void add_back_env(t_env **env, t_env *new)\n{\n t_env *l;\n\n l = get_last_env(*env);\n if (l != NULL)\n l->next = new;\n else\n *env = new;\n}" (primitive_type) "void" (function_declarator) "add_back_env(t_env **env, t_env *new)" (identifier) "add_back_env" (parameter_list) "(t_env **env, t_env *new)" (() "(" (parameter_declaration) "t_env **env" (type_identifier) "t_env" (pointer_declarator) "**env" (*) "*" (pointer_declarator) "*env" (*) "*" (identifier) "env" (,) "," (parameter_declaration) "t_env *new" (type_identifier) "t_env" (pointer_declarator) "*new" (*) "*" (identifier) "new" ()) ")" (compound_statement) "{\n t_env *l;\n\n l = get_last_env(*env);\n if (l != NULL)\n l->next = new;\n else\n *env = new;\n}" ({) "{" (declaration) "t_env *l;" (type_identifier) "t_env" (pointer_declarator) "*l" (*) "*" (identifier) "l" (;) ";" (expression_statement) "l = get_last_env(*env);" (assignment_expression) "l = get_last_env(*env)" (identifier) "l" (=) "=" (call_expression) "get_last_env(*env)" (identifier) "get_last_env" (argument_list) "(*env)" (() "(" (pointer_expression) "*env" (*) "*" (identifier) "env" ()) ")" (;) ";" (if_statement) "if (l != NULL)\n l->next = new;\n else\n *env = new;" (if) "if" (parenthesized_expression) "(l != NULL)" (() "(" (binary_expression) "l != NULL" (identifier) "l" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "l->next = new;" (assignment_expression) "l->next = new" (field_expression) "l->next" (identifier) "l" (->) "->" (field_identifier) "next" (=) "=" (identifier) "new" (;) ";" (else_clause) "else\n *env = new;" (else) "else" (expression_statement) "*env = new;" (assignment_expression) "*env = new" (pointer_expression) "*env" (*) "*" (identifier) "env" (=) "=" (identifier) "new" (;) ";" (}) "}" (function_definition) "t_env *init_env(char **env)\n{\n t_env *top;\n t_env *new;\n int i;\n\n if (env[0] != NULL)\n top = new_env(env[0]);\n i = 1;\n while (env[i] != NULL)\n {\n new = new_env(env[i]);\n add_back_env(&top, new);\n i++;\n }\n return (top);\n}" (type_identifier) "t_env" (pointer_declarator) "*init_env(char **env)" (*) "*" (function_declarator) "init_env(char **env)" (identifier) "init_env" (parameter_list) "(char **env)" (() "(" (parameter_declaration) "char **env" (primitive_type) "char" (pointer_declarator) "**env" (*) "*" (pointer_declarator) "*env" (*) "*" (identifier) "env" ()) ")" (compound_statement) "{\n t_env *top;\n t_env *new;\n int i;\n\n if (env[0] != NULL)\n top = new_env(env[0]);\n i = 1;\n while (env[i] != NULL)\n {\n new = new_env(env[i]);\n add_back_env(&top, new);\n i++;\n }\n return (top);\n}" ({) "{" (declaration) "t_env *top;" (type_identifier) "t_env" (pointer_declarator) "*top" (*) "*" (identifier) "top" (;) ";" (declaration) "t_env *new;" (type_identifier) "t_env" (pointer_declarator) "*new" (*) "*" (identifier) "new" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (if_statement) "if (env[0] != NULL)\n top = new_env(env[0]);" (if) "if" (parenthesized_expression) "(env[0] != NULL)" (() "(" (binary_expression) "env[0] != NULL" (subscript_expression) "env[0]" (identifier) "env" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "top = new_env(env[0]);" (assignment_expression) "top = new_env(env[0])" (identifier) "top" (=) "=" (call_expression) "new_env(env[0])" (identifier) "new_env" (argument_list) "(env[0])" (() "(" (subscript_expression) "env[0]" (identifier) "env" ([) "[" (number_literal) "0" (]) "]" ()) ")" (;) ";" (expression_statement) "i = 1;" (assignment_expression) "i = 1" (identifier) "i" (=) "=" (number_literal) "1" (;) ";" (while_statement) "while (env[i] != NULL)\n {\n new = new_env(env[i]);\n add_back_env(&top, new);\n i++;\n }" (while) "while" (parenthesized_expression) "(env[i] != NULL)" (() "(" (binary_expression) "env[i] != NULL" (subscript_expression) "env[i]" (identifier) "env" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n new = new_env(env[i]);\n add_back_env(&top, new);\n i++;\n }" ({) "{" (expression_statement) "new = new_env(env[i]);" (assignment_expression) "new = new_env(env[i])" (identifier) "new" (=) "=" (call_expression) "new_env(env[i])" (identifier) "new_env" (argument_list) "(env[i])" (() "(" (subscript_expression) "env[i]" (identifier) "env" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "add_back_env(&top, new);" (call_expression) "add_back_env(&top, new)" (identifier) "add_back_env" (argument_list) "(&top, new)" (() "(" (pointer_expression) "&top" (&) "&" (identifier) "top" (,) "," (identifier) "new" ()) ")" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (return_statement) "return (top);" (return) "return" (parenthesized_expression) "(top)" (() "(" (identifier) "top" ()) ")" (;) ";" (}) "}" (function_definition) "void free_one_env(t_env *env)\n{\n free(env->name);\n env->name = NULL;\n free(env->data);\n env->data = NULL;\n env->next = NULL;\n free(env);\n env = NULL;\n}" (primitive_type) "void" (function_declarator) "free_one_env(t_env *env)" (identifier) "free_one_env" (parameter_list) "(t_env *env)" (() "(" (parameter_declaration) "t_env *env" (type_identifier) "t_env" (pointer_declarator) "*env" (*) "*" (identifier) "env" ()) ")" (compound_statement) "{\n free(env->name);\n env->name = NULL;\n free(env->data);\n env->data = NULL;\n env->next = NULL;\n free(env);\n env = NULL;\n}" ({) "{" (expression_statement) "free(env->name);" (call_expression) "free(env->name)" (identifier) "free" (argument_list) "(env->name)" (() "(" (field_expression) "env->name" (identifier) "env" (->) "->" (field_identifier) "name" ()) ")" (;) ";" (expression_statement) "env->name = NULL;" (assignment_expression) "env->name = NULL" (field_expression) "env->name" (identifier) "env" (->) "->" (field_identifier) "name" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "free(env->data);" (call_expression) "free(env->data)" (identifier) "free" (argument_list) "(env->data)" (() "(" (field_expression) "env->data" (identifier) "env" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (expression_statement) "env->data = NULL;" (assignment_expression) "env->data = NULL" (field_expression) "env->data" (identifier) "env" (->) "->" (field_identifier) "data" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "env->next = NULL;" (assignment_expression) "env->next = NULL" (field_expression) "env->next" (identifier) "env" (->) "->" (field_identifier) "next" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "free(env);" (call_expression) "free(env)" (identifier) "free" (argument_list) "(env)" (() "(" (identifier) "env" ()) ")" (;) ";" (expression_statement) "env = NULL;" (assignment_expression) "env = NULL" (identifier) "env" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}"
518
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 24.0, "nodes": 312, "errors": 0, "source_hash": "6419078e769d6a66aa7e5b58428209ddb5ff2151546417256e65727d4e587e67", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"../includes/minishell.h\"\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": "string_literal", "text": "\"../includes/minishell.h\"", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 34}}, {"id": 3, "type": "function_definition", "text": "t_env\t*new_env(char *str)\n{\n\tint\t\ti;\n\tt_env\t*new;\n\tchar\t**split;\n\n\tnew = malloc(sizeof(t_env));\n\tsplit = ft_split(str, '=');\n\tnew->name = split[0];\n\tnew->data = split[1];\n\tnew->next = NULL;\n\ti = 2;\n\twhile (split[i] != NULL)\n\t{\n\t\tfree(split[i]);\n\t\ti++;\n\t}\n\tfree(split);\n\treturn (new);\n}", "parent": null, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "t_env", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 5}}, {"id": 5, "type": "pointer_declarator", "text": "*new_env(char *str)", "parent": 3, "children": [6, 7], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 25}}, {"id": 6, "type": "*", "text": "*", "parent": 5, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 7}}, {"id": 7, "type": "function_declarator", "text": "new_env(char *str)", "parent": 5, "children": [8, 9], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 25}}, {"id": 8, "type": "identifier", "text": "new_env", "parent": 7, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 14}}, {"id": 9, "type": "parameter_list", "text": "(char *str)", "parent": 7, "children": [10], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 25}}, {"id": 10, "type": "parameter_declaration", "text": "char *str", "parent": 9, "children": [11, 12], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 24}}, {"id": 11, "type": "primitive_type", "text": "char", "parent": 10, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 19}}, {"id": 12, "type": "pointer_declarator", "text": "*str", "parent": 10, "children": [13, 14], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 24}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 14, "type": "identifier", "text": "str", "parent": 12, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 24}}, {"id": 15, "type": "declaration", "text": "int\t\ti;", "parent": 3, "children": [16, 17], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 17, "type": "identifier", "text": "i", "parent": 15, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 7}}, {"id": 18, "type": "declaration", "text": "t_env\t*new;", "parent": 3, "children": [19, 20], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 12}}, {"id": 19, "type": "type_identifier", "text": "t_env", "parent": 18, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 6}}, {"id": 20, "type": "pointer_declarator", "text": "*new", "parent": 18, "children": [21], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 8}}, {"id": 22, "type": "declaration", "text": "char\t**split;", "parent": 3, "children": [23, 24], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 14}}, {"id": 23, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 24, "type": "pointer_declarator", "text": "**split", "parent": 22, "children": [25, 26], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 13}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 7}}, {"id": 26, "type": "pointer_declarator", "text": "*split", "parent": 24, "children": [27, 28], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 13}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 8}}, {"id": 28, "type": "identifier", "text": "split", "parent": 26, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 13}}, {"id": 29, "type": "assignment_expression", "text": "new = malloc(sizeof(t_env))", "parent": 3, "children": [30, 31], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 28}}, {"id": 30, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 6}}, {"id": 31, "type": "call_expression", "text": "malloc(sizeof(t_env))", "parent": 29, "children": [32, 33], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 28}}, {"id": 32, "type": "identifier", "text": "malloc", "parent": 31, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 13}}, {"id": 33, "type": "argument_list", "text": "(sizeof(t_env))", "parent": 31, "children": [34], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 28}}, {"id": 34, "type": "sizeof_expression", "text": "sizeof(t_env)", "parent": 33, "children": [35], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 27}}, {"id": 35, "type": "parenthesized_expression", "text": "(t_env)", "parent": 34, "children": [36], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 27}}, {"id": 36, "type": "identifier", "text": "t_env", "parent": 35, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 26}}, {"id": 37, "type": "assignment_expression", "text": "split = ft_split(str, '=')", "parent": 3, "children": [38, 39, 40], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 27}}, {"id": 38, "type": "identifier", "text": "split", "parent": 37, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 6}}, {"id": 39, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 8}}, {"id": 40, "type": "call_expression", "text": "ft_split(str, '=')", "parent": 37, "children": [41, 42], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 27}}, {"id": 41, "type": "identifier", "text": "ft_split", "parent": 40, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 42, "type": "argument_list", "text": "(str, '=')", "parent": 40, "children": [43, 44], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 27}}, {"id": 43, "type": "identifier", "text": "str", "parent": 42, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 21}}, {"id": 44, "type": "char_literal", "text": "'='", "parent": 42, "children": [45, 46, 47], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 26}}, {"id": 45, "type": "'", "text": "'", "parent": 44, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 24}}, {"id": 46, "type": "character", "text": "=", "parent": 44, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 25}}, {"id": 47, "type": "'", "text": "'", "parent": 44, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 48, "type": "assignment_expression", "text": "new->name = split[0]", "parent": 3, "children": [49, 51, 52], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 21}}, {"id": 49, "type": "field_expression", "text": "new->name", "parent": 48, "children": [50], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 10}}, {"id": 50, "type": "field_identifier", "text": "name", "parent": 49, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 10}}, {"id": 51, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 12}}, {"id": 52, "type": "subscript_expression", "text": "split[0]", "parent": 48, "children": [53, 54], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 21}}, {"id": 53, "type": "identifier", "text": "split", "parent": 52, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 18}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 52, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 20}}, {"id": 55, "type": "assignment_expression", "text": "new->data = split[1]", "parent": 3, "children": [56, 58, 59], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 21}}, {"id": 56, "type": "field_expression", "text": "new->data", "parent": 55, "children": [57], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 10}}, {"id": 57, "type": "field_identifier", "text": "data", "parent": 56, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 10}}, {"id": 58, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 59, "type": "subscript_expression", "text": "split[1]", "parent": 55, "children": [60, 61], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 21}}, {"id": 60, "type": "identifier", "text": "split", "parent": 59, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 18}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 59, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 62, "type": "assignment_expression", "text": "new->next = NULL", "parent": 3, "children": [63, 65, 66], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 17}}, {"id": 63, "type": "field_expression", "text": "new->next", "parent": 62, "children": [64], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 10}}, {"id": 64, "type": "field_identifier", "text": "next", "parent": 63, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 10}}, {"id": 65, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 12}}, {"id": 66, "type": "null", "text": "NULL", "parent": 62, "children": [67], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 17}}, {"id": 67, "type": "NULL", "text": "NULL", "parent": 66, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 17}}, {"id": 68, "type": "assignment_expression", "text": "i = 2", "parent": 3, "children": [69, 70, 71], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 6}}, {"id": 69, "type": "identifier", "text": "i", "parent": 68, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 2}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 4}}, {"id": 71, "type": "number_literal", "text": "2", "parent": 68, "children": [], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 6}}, {"id": 72, "type": "while_statement", "text": "while (split[i] != NULL)\n\t{\n\t\tfree(split[i]);\n\t\ti++;\n\t}", "parent": 3, "children": [73], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 73, "type": "parenthesized_expression", "text": "(split[i] != NULL)", "parent": 72, "children": [74], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 25}}, {"id": 74, "type": "binary_expression", "text": "split[i] != NULL", "parent": 73, "children": [75, 78, 79], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 24}}, {"id": 75, "type": "subscript_expression", "text": "split[i]", "parent": 74, "children": [76, 77], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 16}}, {"id": 76, "type": "identifier", "text": "split", "parent": 75, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 13}}, {"id": 77, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 15}}, {"id": 78, "type": "!=", "text": "!=", "parent": 74, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 19}}, {"id": 79, "type": "null", "text": "NULL", "parent": 74, "children": [80], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 24}}, {"id": 80, "type": "NULL", "text": "NULL", "parent": 79, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 24}}, {"id": 81, "type": "call_expression", "text": "free(split[i])", "parent": 72, "children": [82, 83], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 16}}, {"id": 82, "type": "identifier", "text": "free", "parent": 81, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 83, "type": "argument_list", "text": "(split[i])", "parent": 81, "children": [84], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 16}}, {"id": 84, "type": "subscript_expression", "text": "split[i]", "parent": 83, "children": [85, 86], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 15}}, {"id": 85, "type": "identifier", "text": "split", "parent": 84, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 12}}, {"id": 86, "type": "identifier", "text": "i", "parent": 84, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 14}}, {"id": 87, "type": "update_expression", "text": "i++", "parent": 72, "children": [88, 89], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 5}}, {"id": 88, "type": "identifier", "text": "i", "parent": 87, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 89, "type": "++", "text": "++", "parent": 87, "children": [], "start_point": {"row": 29, "column": 3}, "end_point": {"row": 29, "column": 5}}, {"id": 90, "type": "call_expression", "text": "free(split)", "parent": 3, "children": [91, 92], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 12}}, {"id": 91, "type": "identifier", "text": "free", "parent": 90, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 92, "type": "argument_list", "text": "(split)", "parent": 90, "children": [93], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 12}}, {"id": 93, "type": "identifier", "text": "split", "parent": 92, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 11}}, {"id": 94, "type": "return_statement", "text": "return (new);", "parent": 3, "children": [95], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 14}}, {"id": 95, "type": "parenthesized_expression", "text": "(new)", "parent": 94, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 13}}, {"id": 96, "type": "function_definition", "text": "t_env\t*get_last_env(t_env *env)\n{\n\tif (env == NULL)\n\t\treturn (env);\n\twhile (env->next != NULL)\n\t\tenv = env->next;\n\treturn (env);\n}", "parent": null, "children": [97, 98], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 97, "type": "type_identifier", "text": "t_env", "parent": 96, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 5}}, {"id": 98, "type": "pointer_declarator", "text": "*get_last_env(t_env *env)", "parent": 96, "children": [99, 100], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 31}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 7}}, {"id": 100, "type": "function_declarator", "text": "get_last_env(t_env *env)", "parent": 98, "children": [101, 102], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 31}}, {"id": 101, "type": "identifier", "text": "get_last_env", "parent": 100, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 19}}, {"id": 102, "type": "parameter_list", "text": "(t_env *env)", "parent": 100, "children": [103], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 31}}, {"id": 103, "type": "parameter_declaration", "text": "t_env *env", "parent": 102, "children": [104, 105], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 30}}, {"id": 104, "type": "type_identifier", "text": "t_env", "parent": 103, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 25}}, {"id": 105, "type": "pointer_declarator", "text": "*env", "parent": 103, "children": [106, 107], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 30}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 27}}, {"id": 107, "type": "identifier", "text": "env", "parent": 105, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 30}}, {"id": 108, "type": "if_statement", "text": "if (env == NULL)\n\t\treturn (env);", "parent": 96, "children": [109, 115], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 38, "column": 15}}, {"id": 109, "type": "parenthesized_expression", "text": "(env == NULL)", "parent": 108, "children": [110], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 17}}, {"id": 110, "type": "binary_expression", "text": "env == NULL", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 16}}, {"id": 111, "type": "identifier", "text": "env", "parent": 110, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 8}}, {"id": 112, "type": "==", "text": "==", "parent": 110, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 11}}, {"id": 113, "type": "null", "text": "NULL", "parent": 110, "children": [114], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 114, "type": "NULL", "text": "NULL", "parent": 113, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 115, "type": "return_statement", "text": "return (env);", "parent": 108, "children": [116], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 116, "type": "parenthesized_expression", "text": "(env)", "parent": 115, "children": [117], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 14}}, {"id": 117, "type": "identifier", "text": "env", "parent": 116, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 13}}, {"id": 118, "type": "while_statement", "text": "while (env->next != NULL)\n\t\tenv = env->next;", "parent": 96, "children": [119], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 40, "column": 18}}, {"id": 119, "type": "parenthesized_expression", "text": "(env->next != NULL)", "parent": 118, "children": [120], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 26}}, {"id": 120, "type": "binary_expression", "text": "env->next != NULL", "parent": 119, "children": [121, 124, 125], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 25}}, {"id": 121, "type": "field_expression", "text": "env->next", "parent": 120, "children": [122, 123], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 17}}, {"id": 122, "type": "identifier", "text": "env", "parent": 121, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 11}}, {"id": 123, "type": "field_identifier", "text": "next", "parent": 121, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 124, "type": "!=", "text": "!=", "parent": 120, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 20}}, {"id": 125, "type": "null", "text": "NULL", "parent": 120, "children": [126], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 25}}, {"id": 126, "type": "NULL", "text": "NULL", "parent": 125, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 25}}, {"id": 127, "type": "assignment_expression", "text": "env = env->next", "parent": 118, "children": [128, 129, 130], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 17}}, {"id": 128, "type": "identifier", "text": "env", "parent": 127, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 5}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 7}}, {"id": 130, "type": "field_expression", "text": "env->next", "parent": 127, "children": [131, 132], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 17}}, {"id": 131, "type": "identifier", "text": "env", "parent": 130, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 132, "type": "field_identifier", "text": "next", "parent": 130, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 17}}, {"id": 133, "type": "return_statement", "text": "return (env);", "parent": 96, "children": [134], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 14}}, {"id": 134, "type": "parenthesized_expression", "text": "(env)", "parent": 133, "children": [135], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 13}}, {"id": 135, "type": "identifier", "text": "env", "parent": 134, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 12}}, {"id": 136, "type": "function_definition", "text": "void\tadd_back_env(t_env **env, t_env *new)\n{\n\tt_env\t*l;\n\n\tl = get_last_env(*env);\n\tif (l != NULL)\n\t\tl->next = new;\n\telse\n\t\t*env = new;\n}", "parent": null, "children": [137, 138], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 137, "type": "primitive_type", "text": "void", "parent": 136, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 138, "type": "function_declarator", "text": "add_back_env(t_env **env, t_env *new)", "parent": 136, "children": [139, 140], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 42}}, {"id": 139, "type": "identifier", "text": "add_back_env", "parent": 138, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 17}}, {"id": 140, "type": "parameter_list", "text": "(t_env **env, t_env *new)", "parent": 138, "children": [141, 148], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 42}}, {"id": 141, "type": "parameter_declaration", "text": "t_env **env", "parent": 140, "children": [142, 143], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 29}}, {"id": 142, "type": "type_identifier", "text": "t_env", "parent": 141, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 23}}, {"id": 143, "type": "pointer_declarator", "text": "**env", "parent": 141, "children": [144, 145], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 29}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 25}}, {"id": 145, "type": "pointer_declarator", "text": "*env", "parent": 143, "children": [146, 147], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 29}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 26}}, {"id": 147, "type": "identifier", "text": "env", "parent": 145, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 29}}, {"id": 148, "type": "parameter_declaration", "text": "t_env *new", "parent": 140, "children": [149, 150], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 41}}, {"id": 149, "type": "type_identifier", "text": "t_env", "parent": 148, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 36}}, {"id": 150, "type": "pointer_declarator", "text": "*new", "parent": 148, "children": [151], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 41}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 38}}, {"id": 152, "type": "declaration", "text": "t_env\t*l;", "parent": 136, "children": [153, 154], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 10}}, {"id": 153, "type": "type_identifier", "text": "t_env", "parent": 152, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 6}}, {"id": 154, "type": "pointer_declarator", "text": "*l", "parent": 152, "children": [155, 156], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 9}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 8}}, {"id": 156, "type": "identifier", "text": "l", "parent": 154, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 157, "type": "assignment_expression", "text": "l = get_last_env(*env)", "parent": 136, "children": [158, 159, 160], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 23}}, {"id": 158, "type": "identifier", "text": "l", "parent": 157, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 2}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 4}}, {"id": 160, "type": "call_expression", "text": "get_last_env(*env)", "parent": 157, "children": [161, 162], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 23}}, {"id": 161, "type": "identifier", "text": "get_last_env", "parent": 160, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 17}}, {"id": 162, "type": "argument_list", "text": "(*env)", "parent": 160, "children": [163], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 23}}, {"id": 163, "type": "pointer_expression", "text": "*env", "parent": 162, "children": [164, 165], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 22}}, {"id": 164, "type": "*", "text": "*", "parent": 163, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 165, "type": "identifier", "text": "env", "parent": 163, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 22}}, {"id": 166, "type": "if_statement", "text": "if (l != NULL)\n\t\tl->next = new;\n\telse\n\t\t*env = new;", "parent": 136, "children": [167, 178], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 52, "column": 13}}, {"id": 167, "type": "parenthesized_expression", "text": "(l != NULL)", "parent": 166, "children": [168], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 15}}, {"id": 168, "type": "binary_expression", "text": "l != NULL", "parent": 167, "children": [169, 170, 171], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 14}}, {"id": 169, "type": "identifier", "text": "l", "parent": 168, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 6}}, {"id": 170, "type": "!=", "text": "!=", "parent": 168, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 9}}, {"id": 171, "type": "null", "text": "NULL", "parent": 168, "children": [172], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 172, "type": "NULL", "text": "NULL", "parent": 171, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 173, "type": "assignment_expression", "text": "l->next = new", "parent": 166, "children": [174, 177], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 15}}, {"id": 174, "type": "field_expression", "text": "l->next", "parent": 173, "children": [175, 176], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 175, "type": "identifier", "text": "l", "parent": 174, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 3}}, {"id": 176, "type": "field_identifier", "text": "next", "parent": 174, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 9}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 11}}, {"id": 178, "type": "else_clause", "text": "else\n\t\t*env = new;", "parent": 166, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 52, "column": 13}}, {"id": 179, "type": "assignment_expression", "text": "*env = new", "parent": 178, "children": [180, 183], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 12}}, {"id": 180, "type": "pointer_expression", "text": "*env", "parent": 179, "children": [181, 182], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 6}}, {"id": 181, "type": "*", "text": "*", "parent": 180, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 3}}, {"id": 182, "type": "identifier", "text": "env", "parent": 180, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 6}}, {"id": 183, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 8}}, {"id": 184, "type": "function_definition", "text": "t_env\t*init_env(char **env)\n{\n\tt_env\t*top;\n\tt_env\t*new;\n\tint\t\ti;\n\n\tif (env[0] != NULL)\n\t\ttop = new_env(env[0]);\n\ti = 1;\n\twhile (env[i] != NULL)\n\t{\n\t\tnew = new_env(env[i]);\n\t\tadd_back_env(&top, new);\n\t\ti++;\n\t}\n\treturn (top);\n}", "parent": null, "children": [185, 186], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 185, "type": "type_identifier", "text": "t_env", "parent": 184, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 5}}, {"id": 186, "type": "pointer_declarator", "text": "*init_env(char **env)", "parent": 184, "children": [187, 188], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 27}}, {"id": 187, "type": "*", "text": "*", "parent": 186, "children": [], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 7}}, {"id": 188, "type": "function_declarator", "text": "init_env(char **env)", "parent": 186, "children": [189, 190], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 27}}, {"id": 189, "type": "identifier", "text": "init_env", "parent": 188, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 15}}, {"id": 190, "type": "parameter_list", "text": "(char **env)", "parent": 188, "children": [191], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 27}}, {"id": 191, "type": "parameter_declaration", "text": "char **env", "parent": 190, "children": [192, 193], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 26}}, {"id": 192, "type": "primitive_type", "text": "char", "parent": 191, "children": [], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 20}}, {"id": 193, "type": "pointer_declarator", "text": "**env", "parent": 191, "children": [194, 195], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 26}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 22}}, {"id": 195, "type": "pointer_declarator", "text": "*env", "parent": 193, "children": [196, 197], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 26}}, {"id": 196, "type": "*", "text": "*", "parent": 195, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 23}}, {"id": 197, "type": "identifier", "text": "env", "parent": 195, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 26}}, {"id": 198, "type": "declaration", "text": "t_env\t*top;", "parent": 184, "children": [199, 200], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 12}}, {"id": 199, "type": "type_identifier", "text": "t_env", "parent": 198, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 6}}, {"id": 200, "type": "pointer_declarator", "text": "*top", "parent": 198, "children": [201, 202], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 11}}, {"id": 201, "type": "*", "text": "*", "parent": 200, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 8}}, {"id": 202, "type": "identifier", "text": "top", "parent": 200, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 11}}, {"id": 203, "type": "declaration", "text": "t_env\t*new;", "parent": 184, "children": [204, 205], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 12}}, {"id": 204, "type": "type_identifier", "text": "t_env", "parent": 203, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 6}}, {"id": 205, "type": "pointer_declarator", "text": "*new", "parent": 203, "children": [206], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 11}}, {"id": 206, "type": "*", "text": "*", "parent": 205, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 8}}, {"id": 207, "type": "declaration", "text": "int\t\ti;", "parent": 184, "children": [208, 209], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 208, "type": "primitive_type", "text": "int", "parent": 207, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 4}}, {"id": 209, "type": "identifier", "text": "i", "parent": 207, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 7}}, {"id": 210, "type": "if_statement", "text": "if (env[0] != NULL)\n\t\ttop = new_env(env[0]);", "parent": 184, "children": [211], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 62, "column": 24}}, {"id": 211, "type": "parenthesized_expression", "text": "(env[0] != NULL)", "parent": 210, "children": [212], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 20}}, {"id": 212, "type": "binary_expression", "text": "env[0] != NULL", "parent": 211, "children": [213, 216, 217], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 19}}, {"id": 213, "type": "subscript_expression", "text": "env[0]", "parent": 212, "children": [214, 215], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 11}}, {"id": 214, "type": "identifier", "text": "env", "parent": 213, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 8}}, {"id": 215, "type": "number_literal", "text": "0", "parent": 213, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 216, "type": "!=", "text": "!=", "parent": 212, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 14}}, {"id": 217, "type": "null", "text": "NULL", "parent": 212, "children": [218], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 218, "type": "NULL", "text": "NULL", "parent": 217, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 19}}, {"id": 219, "type": "assignment_expression", "text": "top = new_env(env[0])", "parent": 210, "children": [220, 221, 222], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 23}}, {"id": 220, "type": "identifier", "text": "top", "parent": 219, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 5}}, {"id": 221, "type": "=", "text": "=", "parent": 219, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 7}}, {"id": 222, "type": "call_expression", "text": "new_env(env[0])", "parent": 219, "children": [223, 224], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 23}}, {"id": 223, "type": "identifier", "text": "new_env", "parent": 222, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 15}}, {"id": 224, "type": "argument_list", "text": "(env[0])", "parent": 222, "children": [225], "start_point": {"row": 62, "column": 15}, "end_point": {"row": 62, "column": 23}}, {"id": 225, "type": "subscript_expression", "text": "env[0]", "parent": 224, "children": [226, 227], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 22}}, {"id": 226, "type": "identifier", "text": "env", "parent": 225, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 19}}, {"id": 227, "type": "number_literal", "text": "0", "parent": 225, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 228, "type": "assignment_expression", "text": "i = 1", "parent": 184, "children": [229, 230, 231], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 6}}, {"id": 229, "type": "identifier", "text": "i", "parent": 228, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 2}}, {"id": 230, "type": "=", "text": "=", "parent": 228, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 4}}, {"id": 231, "type": "number_literal", "text": "1", "parent": 228, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 6}}, {"id": 232, "type": "while_statement", "text": "while (env[i] != NULL)\n\t{\n\t\tnew = new_env(env[i]);\n\t\tadd_back_env(&top, new);\n\t\ti++;\n\t}", "parent": 184, "children": [233], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 69, "column": 2}}, {"id": 233, "type": "parenthesized_expression", "text": "(env[i] != NULL)", "parent": 232, "children": [234], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 23}}, {"id": 234, "type": "binary_expression", "text": "env[i] != NULL", "parent": 233, "children": [235, 238, 239], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 22}}, {"id": 235, "type": "subscript_expression", "text": "env[i]", "parent": 234, "children": [236, 237], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 14}}, {"id": 236, "type": "identifier", "text": "env", "parent": 235, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 11}}, {"id": 237, "type": "identifier", "text": "i", "parent": 235, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 238, "type": "!=", "text": "!=", "parent": 234, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 17}}, {"id": 239, "type": "null", "text": "NULL", "parent": 234, "children": [240], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 22}}, {"id": 240, "type": "NULL", "text": "NULL", "parent": 239, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 22}}, {"id": 241, "type": "assignment_expression", "text": "new = new_env(env[i])", "parent": 232, "children": [242, 243], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 23}}, {"id": 242, "type": "=", "text": "=", "parent": 241, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 243, "type": "call_expression", "text": "new_env(env[i])", "parent": 241, "children": [244, 245], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 23}}, {"id": 244, "type": "identifier", "text": "new_env", "parent": 243, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 15}}, {"id": 245, "type": "argument_list", "text": "(env[i])", "parent": 243, "children": [246], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 23}}, {"id": 246, "type": "subscript_expression", "text": "env[i]", "parent": 245, "children": [247, 248], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 22}}, {"id": 247, "type": "identifier", "text": "env", "parent": 246, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 19}}, {"id": 248, "type": "identifier", "text": "i", "parent": 246, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 21}}, {"id": 249, "type": "call_expression", "text": "add_back_env(&top, new)", "parent": 232, "children": [250, 251], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 25}}, {"id": 250, "type": "identifier", "text": "add_back_env", "parent": 249, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 14}}, {"id": 251, "type": "argument_list", "text": "(&top, new)", "parent": 249, "children": [252], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 25}}, {"id": 252, "type": "pointer_expression", "text": "&top", "parent": 251, "children": [253], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 19}}, {"id": 253, "type": "identifier", "text": "top", "parent": 252, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 19}}, {"id": 254, "type": "update_expression", "text": "i++", "parent": 232, "children": [255, 256], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 5}}, {"id": 255, "type": "identifier", "text": "i", "parent": 254, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 3}}, {"id": 256, "type": "++", "text": "++", "parent": 254, "children": [], "start_point": {"row": 68, "column": 3}, "end_point": {"row": 68, "column": 5}}, {"id": 257, "type": "return_statement", "text": "return (top);", "parent": 184, "children": [258], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 14}}, {"id": 258, "type": "parenthesized_expression", "text": "(top)", "parent": 257, "children": [259], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 13}}, {"id": 259, "type": "identifier", "text": "top", "parent": 258, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 12}}, {"id": 260, "type": "function_definition", "text": "void\tfree_one_env(t_env *env)\n{\n\tfree(env->name);\n\tenv->name = NULL;\n\tfree(env->data);\n\tenv->data = NULL;\n\tenv->next = NULL;\n\tfree(env);\n\tenv = NULL;\n}", "parent": null, "children": [261, 262], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 261, "type": "primitive_type", "text": "void", "parent": 260, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 4}}, {"id": 262, "type": "function_declarator", "text": "free_one_env(t_env *env)", "parent": 260, "children": [263, 264], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 29}}, {"id": 263, "type": "identifier", "text": "free_one_env", "parent": 262, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 17}}, {"id": 264, "type": "parameter_list", "text": "(t_env *env)", "parent": 262, "children": [265], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 29}}, {"id": 265, "type": "parameter_declaration", "text": "t_env *env", "parent": 264, "children": [266, 267], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 28}}, {"id": 266, "type": "type_identifier", "text": "t_env", "parent": 265, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 23}}, {"id": 267, "type": "pointer_declarator", "text": "*env", "parent": 265, "children": [268, 269], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 28}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 73, "column": 24}, "end_point": {"row": 73, "column": 25}}, {"id": 269, "type": "identifier", "text": "env", "parent": 267, "children": [], "start_point": {"row": 73, "column": 25}, "end_point": {"row": 73, "column": 28}}, {"id": 270, "type": "call_expression", "text": "free(env->name)", "parent": 260, "children": [271, 272], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 16}}, {"id": 271, "type": "identifier", "text": "free", "parent": 270, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 5}}, {"id": 272, "type": "argument_list", "text": "(env->name)", "parent": 270, "children": [273], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 16}}, {"id": 273, "type": "field_expression", "text": "env->name", "parent": 272, "children": [274, 275], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 15}}, {"id": 274, "type": "identifier", "text": "env", "parent": 273, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 9}}, {"id": 275, "type": "field_identifier", "text": "name", "parent": 273, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 15}}, {"id": 276, "type": "assignment_expression", "text": "env->name = NULL", "parent": 260, "children": [277, 280, 281], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 17}}, {"id": 277, "type": "field_expression", "text": "env->name", "parent": 276, "children": [278, 279], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 10}}, {"id": 278, "type": "identifier", "text": "env", "parent": 277, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 4}}, {"id": 279, "type": "field_identifier", "text": "name", "parent": 277, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 10}}, {"id": 280, "type": "=", "text": "=", "parent": 276, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 12}}, {"id": 281, "type": "null", "text": "NULL", "parent": 276, "children": [282], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 17}}, {"id": 282, "type": "NULL", "text": "NULL", "parent": 281, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 17}}, {"id": 283, "type": "call_expression", "text": "free(env->data)", "parent": 260, "children": [284, 285], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 16}}, {"id": 284, "type": "identifier", "text": "free", "parent": 283, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 285, "type": "argument_list", "text": "(env->data)", "parent": 283, "children": [286], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 16}}, {"id": 286, "type": "field_expression", "text": "env->data", "parent": 285, "children": [287, 288], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 15}}, {"id": 287, "type": "identifier", "text": "env", "parent": 286, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 9}}, {"id": 288, "type": "field_identifier", "text": "data", "parent": 286, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 15}}, {"id": 289, "type": "assignment_expression", "text": "env->data = NULL", "parent": 260, "children": [290, 293, 294], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 17}}, {"id": 290, "type": "field_expression", "text": "env->data", "parent": 289, "children": [291, 292], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 10}}, {"id": 291, "type": "identifier", "text": "env", "parent": 290, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 292, "type": "field_identifier", "text": "data", "parent": 290, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 10}}, {"id": 293, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 12}}, {"id": 294, "type": "null", "text": "NULL", "parent": 289, "children": [295], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 17}}, {"id": 295, "type": "NULL", "text": "NULL", "parent": 294, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 17}}, {"id": 296, "type": "assignment_expression", "text": "env->next = NULL", "parent": 260, "children": [297, 300, 301], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 17}}, {"id": 297, "type": "field_expression", "text": "env->next", "parent": 296, "children": [298, 299], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 10}}, {"id": 298, "type": "identifier", "text": "env", "parent": 297, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 4}}, {"id": 299, "type": "field_identifier", "text": "next", "parent": 297, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 10}}, {"id": 300, "type": "=", "text": "=", "parent": 296, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 12}}, {"id": 301, "type": "null", "text": "NULL", "parent": 296, "children": [302], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 17}}, {"id": 302, "type": "NULL", "text": "NULL", "parent": 301, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 17}}, {"id": 303, "type": "call_expression", "text": "free(env)", "parent": 260, "children": [304, 305], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 10}}, {"id": 304, "type": "identifier", "text": "free", "parent": 303, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 305, "type": "argument_list", "text": "(env)", "parent": 303, "children": [306], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 10}}, {"id": 306, "type": "identifier", "text": "env", "parent": 305, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 9}}, {"id": 307, "type": "assignment_expression", "text": "env = NULL", "parent": 260, "children": [308, 309, 310], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 11}}, {"id": 308, "type": "identifier", "text": "env", "parent": 307, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 4}}, {"id": 309, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 6}}, {"id": 310, "type": "null", "text": "NULL", "parent": 307, "children": [311], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}, {"id": 311, "type": "NULL", "text": "NULL", "parent": 310, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}]}, "node_categories": {"declarations": {"functions": [3, 7, 96, 100, 136, 138, 184, 188, 260, 262], "variables": [10, 15, 18, 22, 103, 141, 148, 152, 191, 198, 203, 207, 265], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [31, 34, 35, 40, 49, 52, 56, 59, 63, 73, 74, 75, 81, 84, 87, 90, 95, 109, 110, 116, 119, 120, 121, 130, 134, 160, 163, 167, 168, 174, 180, 211, 212, 213, 222, 225, 233, 234, 235, 243, 246, 249, 252, 254, 258, 270, 273, 277, 283, 286, 290, 297, 303], "assignments": [29, 37, 48, 55, 62, 68, 127, 157, 173, 179, 219, 228, 241, 276, 289, 296, 307], "loops": [72, 118, 232], "conditionals": [4, 8, 14, 17, 19, 28, 32, 36, 38, 41, 43, 50, 53, 57, 60, 64, 69, 76, 77, 82, 85, 86, 88, 91, 93, 97, 101, 104, 107, 108, 111, 117, 122, 123, 128, 131, 132, 135, 139, 142, 147, 149, 153, 156, 158, 161, 165, 166, 169, 175, 176, 182, 185, 189, 197, 199, 202, 204, 209, 210, 214, 220, 223, 226, 229, 236, 237, 244, 247, 248, 250, 253, 255, 259, 263, 266, 269, 271, 274, 275, 278, 279, 284, 287, 288, 291, 292, 298, 299, 304, 306, 308], "returns": [94, 115, 133, 257], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 44, 54, 61, 71, 215, 227, 231], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "i;", "text_snippet": "t_env\t*new_env(char *str)\n{\n\tint\t\ti;\n\tt_env\t*new;\n\tchar\t**split;\n\n\tnew = malloc(sizeof(t_env));\n\tspl"}, {"node_id": 7, "universal_type": "function", "name": "unknown", "text_snippet": "new_env(char *str)"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "t_env\t*get_last_env(t_env *env)\n{\n\tif (env == NULL)\n\t\treturn (env);\n\twhile (env->next != NULL)\n\t\tenv"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "get_last_env(t_env *env)"}, {"node_id": 136, "universal_type": "function", "name": "add_back_env", "text_snippet": "void\tadd_back_env(t_env **env, t_env *new)\n{\n\tt_env\t*l;\n\n\tl = get_last_env(*env);\n\tif (l != NULL)\n\t\t"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "add_back_env(t_env **env, t_env *new)"}, {"node_id": 184, "universal_type": "function", "name": "i;", "text_snippet": "t_env\t*init_env(char **env)\n{\n\tt_env\t*top;\n\tt_env\t*new;\n\tint\t\ti;\n\n\tif (env[0] != NULL)\n\t\ttop = new_e"}, {"node_id": 188, "universal_type": "function", "name": "unknown", "text_snippet": "init_env(char **env)"}, {"node_id": 260, "universal_type": "function", "name": "free_one_env", "text_snippet": "void\tfree_one_env(t_env *env)\n{\n\tfree(env->name);\n\tenv->name = NULL;\n\tfree(env->data);\n\tenv->data = "}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "free_one_env(t_env *env)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"../includes/minishell.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* env_utils.c :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: nicolasessayan <<EMAIL>> +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2021/03/30 18:18:16 by nicolases #+# #+# */\n/* Updated: 2021/04/09 12:05:05 by adelille ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#include \"../includes/minishell.h\"\n\nt_env\t*new_env(char *str)\n{\n\tint\t\ti;\n\tt_env\t*new;\n\tchar\t**split;\n\n\tnew = malloc(sizeof(t_env));\n\tsplit = ft_split(str, '=');\n\tnew->name = split[0];\n\tnew->data = split[1];\n\tnew->next = NULL;\n\ti = 2;\n\twhile (split[i] != NULL)\n\t{\n\t\tfree(split[i]);\n\t\ti++;\n\t}\n\tfree(split);\n\treturn (new);\n}\n\nt_env\t*get_last_env(t_env *env)\n{\n\tif (env == NULL)\n\t\treturn (env);\n\twhile (env->next != NULL)\n\t\tenv = env->next;\n\treturn (env);\n}\n\nvoid\tadd_back_env(t_env **env, t_env *new)\n{\n\tt_env\t*l;\n\n\tl = get_last_env(*env);\n\tif (l != NULL)\n\t\tl->next = new;\n\telse\n\t\t*env = new;\n}\n\nt_env\t*init_env(char **env)\n{\n\tt_env\t*top;\n\tt_env\t*new;\n\tint\t\ti;\n\n\tif (env[0] != NULL)\n\t\ttop = new_env(env[0]);\n\ti = 1;\n\twhile (env[i] != NULL)\n\t{\n\t\tnew = new_env(env[i]);\n\t\tadd_back_env(&top, new);\n\t\ti++;\n\t}\n\treturn (top);\n}\n\nvoid\tfree_one_env(t_env *env)\n{\n\tfree(env->name);\n\tenv->name = NULL;\n\tfree(env->data);\n\tenv->data = NULL;\n\tenv->next = NULL;\n\tfree(env);\n\tenv = NULL;\n}\n"}
80,776
c
#include "PX_LiveFramework.h" px_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive) { plive->mp=mp; if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE; if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE; return PX_TRUE; } px_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[]) { return PX_TRUE; } px_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased) { } px_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased) { } px_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[]) { return PX_TRUE; }
29.65
23
(translation_unit) "#include "PX_LiveFramework.h"\npx_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n plive->mp=mp;\n if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;\n return PX_TRUE;\n}\n\npx_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])\n{\n return PX_TRUE;\n}\n\npx_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)\n{\n \n}\n\npx_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)\n{\n\n}\n\npx_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])\n{\n return PX_TRUE;\n}\n\n" (preproc_include) "#include "PX_LiveFramework.h"\n" (#include) "#include" (string_literal) ""PX_LiveFramework.h"" (") """ (string_content) "PX_LiveFramework.h" (") """ (function_definition) "px_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n plive->mp=mp;\n if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;\n return PX_TRUE;\n}" (type_identifier) "px_bool" (function_declarator) "PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)" (identifier) "PX_LiveFrameworkInitialize" (parameter_list) "(px_memorypool *mp,PX_LiveFramework *plive)" (() "(" (parameter_declaration) "px_memorypool *mp" (type_identifier) "px_memorypool" (pointer_declarator) "*mp" (*) "*" (identifier) "mp" (,) "," (parameter_declaration) "PX_LiveFramework *plive" (type_identifier) "PX_LiveFramework" (pointer_declarator) "*plive" (*) "*" (identifier) "plive" ()) ")" (compound_statement) "{\n plive->mp=mp;\n if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;\n return PX_TRUE;\n}" ({) "{" (expression_statement) "plive->mp=mp;" (assignment_expression) "plive->mp=mp" (field_expression) "plive->mp" (identifier) "plive" (->) "->" (field_identifier) "mp" (=) "=" (identifier) "mp" (;) ";" (if_statement) "if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;" (if) "if" (parenthesized_expression) "(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))" (() "(" (unary_expression) "!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0)" (!) "!" (call_expression) "PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0)" (identifier) "PX_VectorInitialize" (argument_list) "(mp,&plive->animation,sizeof(PX_LiveAnimation),0)" (() "(" (identifier) "mp" (,) "," (pointer_expression) "&plive->animation" (&) "&" (field_expression) "plive->animation" (identifier) "plive" (->) "->" (field_identifier) "animation" (,) "," (sizeof_expression) "sizeof(PX_LiveAnimation)" (sizeof) "sizeof" (parenthesized_expression) "(PX_LiveAnimation)" (() "(" (identifier) "PX_LiveAnimation" ()) ")" (,) "," (number_literal) "0" ()) ")" ()) ")" (return_statement) "return PX_FALSE;" (return) "return" (identifier) "PX_FALSE" (;) ";" (if_statement) "if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;" (if) "if" (parenthesized_expression) "(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))" (() "(" (unary_expression) "!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1)" (!) "!" (call_expression) "PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1)" (identifier) "PX_VectorInitialize" (argument_list) "(mp,&plive->layers,sizeof(PX_LiveLayer),1)" (() "(" (identifier) "mp" (,) "," (pointer_expression) "&plive->layers" (&) "&" (field_expression) "plive->layers" (identifier) "plive" (->) "->" (field_identifier) "layers" (,) "," (sizeof_expression) "sizeof(PX_LiveLayer)" (sizeof) "sizeof" (parenthesized_expression) "(PX_LiveLayer)" (() "(" (identifier) "PX_LiveLayer" ()) ")" (,) "," (number_literal) "1" ()) ")" ()) ")" (return_statement) "return PX_FALSE;" (return) "return" (identifier) "PX_FALSE" (;) ";" (return_statement) "return PX_TRUE;" (return) "return" (identifier) "PX_TRUE" (;) ";" (}) "}" (function_definition) "px_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])\n{\n return PX_TRUE;\n}" (type_identifier) "px_bool" (function_declarator) "PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])" (identifier) "PX_LiveFrameworkLoad" (parameter_list) "(PX_LiveFramework *plive,const px_char json_content[])" (() "(" (parameter_declaration) "PX_LiveFramework *plive" (type_identifier) "PX_LiveFramework" (pointer_declarator) "*plive" (*) "*" (identifier) "plive" (,) "," (parameter_declaration) "const px_char json_content[]" (type_qualifier) "const" (const) "const" (type_identifier) "px_char" (array_declarator) "json_content[]" (identifier) "json_content" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n return PX_TRUE;\n}" ({) "{" (return_statement) "return PX_TRUE;" (return) "return" (identifier) "PX_TRUE" (;) ";" (}) "}" (function_definition) "px_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)\n{\n \n}" (type_identifier) "px_void" (function_declarator) "PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)" (identifier) "PX_LiveFrameworkUpdate" (parameter_list) "(PX_LiveFramework *plive,px_dword elpased)" (() "(" (parameter_declaration) "PX_LiveFramework *plive" (type_identifier) "PX_LiveFramework" (pointer_declarator) "*plive" (*) "*" (identifier) "plive" (,) "," (parameter_declaration) "px_dword elpased" (type_identifier) "px_dword" (identifier) "elpased" ()) ")" (compound_statement) "{\n \n}" ({) "{" (}) "}" (function_definition) "px_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)\n{\n\n}" (type_identifier) "px_void" (function_declarator) "PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)" (identifier) "PX_LiveFrameworkRender" (parameter_list) "(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)" (() "(" (parameter_declaration) "px_surface *psurface" (type_identifier) "px_surface" (pointer_declarator) "*psurface" (*) "*" (identifier) "psurface" (,) "," (parameter_declaration) "PX_LiveFramework *plive" (type_identifier) "PX_LiveFramework" (pointer_declarator) "*plive" (*) "*" (identifier) "plive" (,) "," (parameter_declaration) "px_dword elpased" (type_identifier) "px_dword" (identifier) "elpased" ()) ")" (compound_statement) "{\n\n}" ({) "{" (}) "}" (function_definition) "px_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])\n{\n return PX_TRUE;\n}" (type_identifier) "px_bool" (function_declarator) "PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])" (identifier) "PX_LiveFrameworkPlayAnimation" (parameter_list) "(PX_LiveFramework *plive,const px_char name[])" (() "(" (parameter_declaration) "PX_LiveFramework *plive" (type_identifier) "PX_LiveFramework" (pointer_declarator) "*plive" (*) "*" (identifier) "plive" (,) "," (parameter_declaration) "const px_char name[]" (type_qualifier) "const" (const) "const" (type_identifier) "px_char" (array_declarator) "name[]" (identifier) "name" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n return PX_TRUE;\n}" ({) "{" (return_statement) "return PX_TRUE;" (return) "return" (identifier) "PX_TRUE" (;) ";" (}) "}"
207
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 29.65, "nodes": 125, "errors": 0, "source_hash": "49b6f04fdef6683d605fc0d374d83abcb68cba68083009ce1c9cdddf596fb4d5", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"PX_LiveFramework.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": "\"PX_LiveFramework.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 29}}, {"id": 3, "type": "function_definition", "text": "px_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n\tplive->mp=mp;\n\tif(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n\tif(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;\n\treturn PX_TRUE;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "px_bool", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "function_declarator", "text": "PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)", "parent": 3, "children": [6, 7], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 77}}, {"id": 6, "type": "identifier", "text": "PX_LiveFrameworkInitialize", "parent": 5, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 34}}, {"id": 7, "type": "parameter_list", "text": "(px_memorypool *mp,PX_LiveFramework *plive)", "parent": 5, "children": [8, 13], "start_point": {"row": 1, "column": 34}, "end_point": {"row": 1, "column": 77}}, {"id": 8, "type": "parameter_declaration", "text": "px_memorypool *mp", "parent": 7, "children": [9, 10], "start_point": {"row": 1, "column": 35}, "end_point": {"row": 1, "column": 52}}, {"id": 9, "type": "type_identifier", "text": "px_memorypool", "parent": 8, "children": [], "start_point": {"row": 1, "column": 35}, "end_point": {"row": 1, "column": 48}}, {"id": 10, "type": "pointer_declarator", "text": "*mp", "parent": 8, "children": [11, 12], "start_point": {"row": 1, "column": 49}, "end_point": {"row": 1, "column": 52}}, {"id": 11, "type": "*", "text": "*", "parent": 10, "children": [], "start_point": {"row": 1, "column": 49}, "end_point": {"row": 1, "column": 50}}, {"id": 12, "type": "identifier", "text": "mp", "parent": 10, "children": [], "start_point": {"row": 1, "column": 50}, "end_point": {"row": 1, "column": 52}}, {"id": 13, "type": "parameter_declaration", "text": "PX_LiveFramework *plive", "parent": 7, "children": [14, 15], "start_point": {"row": 1, "column": 53}, "end_point": {"row": 1, "column": 76}}, {"id": 14, "type": "type_identifier", "text": "PX_LiveFramework", "parent": 13, "children": [], "start_point": {"row": 1, "column": 53}, "end_point": {"row": 1, "column": 69}}, {"id": 15, "type": "pointer_declarator", "text": "*plive", "parent": 13, "children": [16, 17], "start_point": {"row": 1, "column": 70}, "end_point": {"row": 1, "column": 76}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 1, "column": 70}, "end_point": {"row": 1, "column": 71}}, {"id": 17, "type": "identifier", "text": "plive", "parent": 15, "children": [], "start_point": {"row": 1, "column": 71}, "end_point": {"row": 1, "column": 76}}, {"id": 18, "type": "assignment_expression", "text": "plive->mp=mp", "parent": 3, "children": [19, 22, 23], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 13}}, {"id": 19, "type": "field_expression", "text": "plive->mp", "parent": 18, "children": [20, 21], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 10}}, {"id": 20, "type": "identifier", "text": "plive", "parent": 19, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 6}}, {"id": 21, "type": "field_identifier", "text": "mp", "parent": 19, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 10}}, {"id": 22, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 11}}, {"id": 23, "type": "identifier", "text": "mp", "parent": 18, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 13}}, {"id": 24, "type": "if_statement", "text": "if(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;", "parent": 3, "children": [25, 40], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 90}}, {"id": 25, "type": "parenthesized_expression", "text": "(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))", "parent": 24, "children": [26], "start_point": {"row": 4, "column": 3}, "end_point": {"row": 4, "column": 74}}, {"id": 26, "type": "unary_expression", "text": "!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0)", "parent": 25, "children": [27, 28], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 73}}, {"id": 27, "type": "!", "text": "!", "parent": 26, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 5}}, {"id": 28, "type": "call_expression", "text": "PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0)", "parent": 26, "children": [29, 30], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 73}}, {"id": 29, "type": "identifier", "text": "PX_VectorInitialize", "parent": 28, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 24}}, {"id": 30, "type": "argument_list", "text": "(mp,&plive->animation,sizeof(PX_LiveAnimation),0)", "parent": 28, "children": [31, 32, 36, 39], "start_point": {"row": 4, "column": 24}, "end_point": {"row": 4, "column": 73}}, {"id": 31, "type": "identifier", "text": "mp", "parent": 30, "children": [], "start_point": {"row": 4, "column": 25}, "end_point": {"row": 4, "column": 27}}, {"id": 32, "type": "pointer_expression", "text": "&plive->animation", "parent": 30, "children": [33], "start_point": {"row": 4, "column": 28}, "end_point": {"row": 4, "column": 45}}, {"id": 33, "type": "field_expression", "text": "plive->animation", "parent": 32, "children": [34, 35], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 45}}, {"id": 34, "type": "identifier", "text": "plive", "parent": 33, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 34}}, {"id": 35, "type": "field_identifier", "text": "animation", "parent": 33, "children": [], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 45}}, {"id": 36, "type": "sizeof_expression", "text": "sizeof(PX_LiveAnimation)", "parent": 30, "children": [37], "start_point": {"row": 4, "column": 46}, "end_point": {"row": 4, "column": 70}}, {"id": 37, "type": "parenthesized_expression", "text": "(PX_LiveAnimation)", "parent": 36, "children": [38], "start_point": {"row": 4, "column": 52}, "end_point": {"row": 4, "column": 70}}, {"id": 38, "type": "identifier", "text": "PX_LiveAnimation", "parent": 37, "children": [], "start_point": {"row": 4, "column": 53}, "end_point": {"row": 4, "column": 69}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 30, "children": [], "start_point": {"row": 4, "column": 71}, "end_point": {"row": 4, "column": 72}}, {"id": 40, "type": "return_statement", "text": "return PX_FALSE;", "parent": 24, "children": [41], "start_point": {"row": 4, "column": 74}, "end_point": {"row": 4, "column": 90}}, {"id": 41, "type": "identifier", "text": "PX_FALSE", "parent": 40, "children": [], "start_point": {"row": 4, "column": 81}, "end_point": {"row": 4, "column": 89}}, {"id": 42, "type": "if_statement", "text": "if(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;", "parent": 3, "children": [43, 58], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 83}}, {"id": 43, "type": "parenthesized_expression", "text": "(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))", "parent": 42, "children": [44], "start_point": {"row": 5, "column": 3}, "end_point": {"row": 5, "column": 67}}, {"id": 44, "type": "unary_expression", "text": "!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1)", "parent": 43, "children": [45, 46], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 66}}, {"id": 45, "type": "!", "text": "!", "parent": 44, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 5}}, {"id": 46, "type": "call_expression", "text": "PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1)", "parent": 44, "children": [47, 48], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 66}}, {"id": 47, "type": "identifier", "text": "PX_VectorInitialize", "parent": 46, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 24}}, {"id": 48, "type": "argument_list", "text": "(mp,&plive->layers,sizeof(PX_LiveLayer),1)", "parent": 46, "children": [49, 50, 54, 57], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 66}}, {"id": 49, "type": "identifier", "text": "mp", "parent": 48, "children": [], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 27}}, {"id": 50, "type": "pointer_expression", "text": "&plive->layers", "parent": 48, "children": [51], "start_point": {"row": 5, "column": 28}, "end_point": {"row": 5, "column": 42}}, {"id": 51, "type": "field_expression", "text": "plive->layers", "parent": 50, "children": [52, 53], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 42}}, {"id": 52, "type": "identifier", "text": "plive", "parent": 51, "children": [], "start_point": {"row": 5, "column": 29}, "end_point": {"row": 5, "column": 34}}, {"id": 53, "type": "field_identifier", "text": "layers", "parent": 51, "children": [], "start_point": {"row": 5, "column": 36}, "end_point": {"row": 5, "column": 42}}, {"id": 54, "type": "sizeof_expression", "text": "sizeof(PX_LiveLayer)", "parent": 48, "children": [55], "start_point": {"row": 5, "column": 43}, "end_point": {"row": 5, "column": 63}}, {"id": 55, "type": "parenthesized_expression", "text": "(PX_LiveLayer)", "parent": 54, "children": [56], "start_point": {"row": 5, "column": 49}, "end_point": {"row": 5, "column": 63}}, {"id": 56, "type": "identifier", "text": "PX_LiveLayer", "parent": 55, "children": [], "start_point": {"row": 5, "column": 50}, "end_point": {"row": 5, "column": 62}}, {"id": 57, "type": "number_literal", "text": "1", "parent": 48, "children": [], "start_point": {"row": 5, "column": 64}, "end_point": {"row": 5, "column": 65}}, {"id": 58, "type": "return_statement", "text": "return PX_FALSE;", "parent": 42, "children": [59], "start_point": {"row": 5, "column": 67}, "end_point": {"row": 5, "column": 83}}, {"id": 59, "type": "identifier", "text": "PX_FALSE", "parent": 58, "children": [], "start_point": {"row": 5, "column": 74}, "end_point": {"row": 5, "column": 82}}, {"id": 60, "type": "return_statement", "text": "return PX_TRUE;", "parent": 3, "children": [61], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 16}}, {"id": 61, "type": "identifier", "text": "PX_TRUE", "parent": 60, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 62, "type": "function_definition", "text": "px_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])\n{\n\treturn PX_TRUE;\n}", "parent": null, "children": [63, 64], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 63, "type": "type_identifier", "text": "px_bool", "parent": 62, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 64, "type": "function_declarator", "text": "PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])", "parent": 62, "children": [65, 66], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 82}}, {"id": 65, "type": "identifier", "text": "PX_LiveFrameworkLoad", "parent": 64, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 28}}, {"id": 66, "type": "parameter_list", "text": "(PX_LiveFramework *plive,const px_char json_content[])", "parent": 64, "children": [67, 72], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 82}}, {"id": 67, "type": "parameter_declaration", "text": "PX_LiveFramework *plive", "parent": 66, "children": [68, 69], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 52}}, {"id": 68, "type": "type_identifier", "text": "PX_LiveFramework", "parent": 67, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 45}}, {"id": 69, "type": "pointer_declarator", "text": "*plive", "parent": 67, "children": [70, 71], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 52}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 9, "column": 46}, "end_point": {"row": 9, "column": 47}}, {"id": 71, "type": "identifier", "text": "plive", "parent": 69, "children": [], "start_point": {"row": 9, "column": 47}, "end_point": {"row": 9, "column": 52}}, {"id": 72, "type": "parameter_declaration", "text": "const px_char json_content[]", "parent": 66, "children": [73, 74], "start_point": {"row": 9, "column": 53}, "end_point": {"row": 9, "column": 81}}, {"id": 73, "type": "type_identifier", "text": "px_char", "parent": 72, "children": [], "start_point": {"row": 9, "column": 59}, "end_point": {"row": 9, "column": 66}}, {"id": 74, "type": "array_declarator", "text": "json_content[]", "parent": 72, "children": [75], "start_point": {"row": 9, "column": 67}, "end_point": {"row": 9, "column": 81}}, {"id": 75, "type": "identifier", "text": "json_content", "parent": 74, "children": [], "start_point": {"row": 9, "column": 67}, "end_point": {"row": 9, "column": 79}}, {"id": 76, "type": "return_statement", "text": "return PX_TRUE;", "parent": 62, "children": [77], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 16}}, {"id": 77, "type": "identifier", "text": "PX_TRUE", "parent": 76, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 15}}, {"id": 78, "type": "function_definition", "text": "px_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)\n{\n\t\n}", "parent": null, "children": [79, 80], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 79, "type": "type_identifier", "text": "px_void", "parent": 78, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 80, "type": "function_declarator", "text": "PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)", "parent": 78, "children": [81, 82], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 72}}, {"id": 81, "type": "identifier", "text": "PX_LiveFrameworkUpdate", "parent": 80, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 30}}, {"id": 82, "type": "parameter_list", "text": "(PX_LiveFramework *plive,px_dword elpased)", "parent": 80, "children": [83, 88], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 72}}, {"id": 83, "type": "parameter_declaration", "text": "PX_LiveFramework *plive", "parent": 82, "children": [84, 85], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 54}}, {"id": 84, "type": "type_identifier", "text": "PX_LiveFramework", "parent": 83, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 47}}, {"id": 85, "type": "pointer_declarator", "text": "*plive", "parent": 83, "children": [86, 87], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 54}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 49}}, {"id": 87, "type": "identifier", "text": "plive", "parent": 85, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 54}}, {"id": 88, "type": "parameter_declaration", "text": "px_dword elpased", "parent": 82, "children": [89, 90], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 71}}, {"id": 89, "type": "type_identifier", "text": "px_dword", "parent": 88, "children": [], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 63}}, {"id": 90, "type": "identifier", "text": "elpased", "parent": 88, "children": [], "start_point": {"row": 14, "column": 64}, "end_point": {"row": 14, "column": 71}}, {"id": 91, "type": "function_definition", "text": "px_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)\n{\n\n}", "parent": null, "children": [92, 93], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 92, "type": "type_identifier", "text": "px_void", "parent": 91, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 93, "type": "function_declarator", "text": "PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)", "parent": 91, "children": [94, 95], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 93}}, {"id": 94, "type": "identifier", "text": "PX_LiveFrameworkRender", "parent": 93, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 30}}, {"id": 95, "type": "parameter_list", "text": "(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)", "parent": 93, "children": [96, 101, 106], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 93}}, {"id": 96, "type": "parameter_declaration", "text": "px_surface *psurface", "parent": 95, "children": [97, 98], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 51}}, {"id": 97, "type": "type_identifier", "text": "px_surface", "parent": 96, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 41}}, {"id": 98, "type": "pointer_declarator", "text": "*psurface", "parent": 96, "children": [99, 100], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 51}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 43}}, {"id": 100, "type": "identifier", "text": "psurface", "parent": 98, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 51}}, {"id": 101, "type": "parameter_declaration", "text": "PX_LiveFramework *plive", "parent": 95, "children": [102, 103], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 75}}, {"id": 102, "type": "type_identifier", "text": "PX_LiveFramework", "parent": 101, "children": [], "start_point": {"row": 19, "column": 52}, "end_point": {"row": 19, "column": 68}}, {"id": 103, "type": "pointer_declarator", "text": "*plive", "parent": 101, "children": [104, 105], "start_point": {"row": 19, "column": 69}, "end_point": {"row": 19, "column": 75}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 19, "column": 69}, "end_point": {"row": 19, "column": 70}}, {"id": 105, "type": "identifier", "text": "plive", "parent": 103, "children": [], "start_point": {"row": 19, "column": 70}, "end_point": {"row": 19, "column": 75}}, {"id": 106, "type": "parameter_declaration", "text": "px_dword elpased", "parent": 95, "children": [107, 108], "start_point": {"row": 19, "column": 76}, "end_point": {"row": 19, "column": 92}}, {"id": 107, "type": "type_identifier", "text": "px_dword", "parent": 106, "children": [], "start_point": {"row": 19, "column": 76}, "end_point": {"row": 19, "column": 84}}, {"id": 108, "type": "identifier", "text": "elpased", "parent": 106, "children": [], "start_point": {"row": 19, "column": 85}, "end_point": {"row": 19, "column": 92}}, {"id": 109, "type": "function_definition", "text": "px_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])\n{\n\treturn PX_TRUE;\n}", "parent": null, "children": [110, 111], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 110, "type": "type_identifier", "text": "px_bool", "parent": 109, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 111, "type": "function_declarator", "text": "PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])", "parent": 109, "children": [112, 113], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 83}}, {"id": 112, "type": "identifier", "text": "PX_LiveFrameworkPlayAnimation", "parent": 111, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 37}}, {"id": 113, "type": "parameter_list", "text": "(PX_LiveFramework *plive,const px_char name[])", "parent": 111, "children": [114, 119], "start_point": {"row": 24, "column": 37}, "end_point": {"row": 24, "column": 83}}, {"id": 114, "type": "parameter_declaration", "text": "PX_LiveFramework *plive", "parent": 113, "children": [115, 116], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 61}}, {"id": 115, "type": "type_identifier", "text": "PX_LiveFramework", "parent": 114, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 54}}, {"id": 116, "type": "pointer_declarator", "text": "*plive", "parent": 114, "children": [117, 118], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 61}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 24, "column": 55}, "end_point": {"row": 24, "column": 56}}, {"id": 118, "type": "identifier", "text": "plive", "parent": 116, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 61}}, {"id": 119, "type": "parameter_declaration", "text": "const px_char name[]", "parent": 113, "children": [120, 121], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 82}}, {"id": 120, "type": "type_identifier", "text": "px_char", "parent": 119, "children": [], "start_point": {"row": 24, "column": 68}, "end_point": {"row": 24, "column": 75}}, {"id": 121, "type": "array_declarator", "text": "name[]", "parent": 119, "children": [122], "start_point": {"row": 24, "column": 76}, "end_point": {"row": 24, "column": 82}}, {"id": 122, "type": "identifier", "text": "name", "parent": 121, "children": [], "start_point": {"row": 24, "column": 76}, "end_point": {"row": 24, "column": 80}}, {"id": 123, "type": "return_statement", "text": "return PX_TRUE;", "parent": 109, "children": [124], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 16}}, {"id": 124, "type": "identifier", "text": "PX_TRUE", "parent": 123, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 15}}]}, "node_categories": {"declarations": {"functions": [3, 5, 62, 64, 78, 80, 91, 93, 109, 111], "variables": [8, 13, 67, 72, 83, 88, 96, 101, 106, 114, 119], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [19, 25, 26, 28, 32, 33, 36, 37, 43, 44, 46, 50, 51, 54, 55], "assignments": [18], "loops": [], "conditionals": [4, 6, 9, 12, 14, 17, 20, 21, 23, 24, 29, 31, 34, 35, 38, 41, 42, 47, 49, 52, 53, 56, 59, 61, 63, 65, 68, 71, 73, 75, 77, 79, 81, 84, 87, 89, 90, 92, 94, 97, 100, 102, 105, 107, 108, 110, 112, 115, 118, 120, 122, 124], "returns": [40, 58, 60, 76, 123], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 39, 57], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": "px_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n\tplive->mp=mp;\n\tif(!"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "px_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])\n{\n\treturn PX_TRUE"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "px_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)\n{\n\t\n}"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "px_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)\n{\n\n}"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "px_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])\n{\n\treturn PX_TRU"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"PX_LiveFramework.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"PX_LiveFramework.h\"\npx_bool PX_LiveFrameworkInitialize(px_memorypool *mp,PX_LiveFramework *plive)\n{\n\tplive->mp=mp;\n\tif(!PX_VectorInitialize(mp,&plive->animation,sizeof(PX_LiveAnimation),0))return PX_FALSE;\n\tif(!PX_VectorInitialize(mp,&plive->layers,sizeof(PX_LiveLayer),1))return PX_FALSE;\n\treturn PX_TRUE;\n}\n\npx_bool PX_LiveFrameworkLoad(PX_LiveFramework *plive,const px_char json_content[])\n{\n\treturn PX_TRUE;\n}\n\npx_void PX_LiveFrameworkUpdate(PX_LiveFramework *plive,px_dword elpased)\n{\n\t\n}\n\npx_void PX_LiveFrameworkRender(px_surface *psurface,PX_LiveFramework *plive,px_dword elpased)\n{\n\n}\n\npx_bool PX_LiveFrameworkPlayAnimation(PX_LiveFramework *plive,const px_char name[])\n{\n\treturn PX_TRUE;\n}\n\n"}
80,777
c
@import UIKit; NS_ASSUME_NONNULL_BEGIN @interface NSString (WMFExtras) /// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter. - (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index; /// @return A substring of the receiver starting at @c index or an empty string if the recevier is too short. - (NSString *)wmf_safeSubstringFromIndex:(NSUInteger)index; - (NSString *)wmf_UTF8StringWithPercentEscapes; - (NSString *)wmf_schemelessURL; /** * Get the MIME type for a string obtained via another string or URL's `pathExtension` property. * * For example: <code>[[@"foo.png" pathExtension] wmf_asMIMEType]</code> * * @return The MIME type for the receiver. */ - (NSString *)wmf_asMIMEType; - (NSDate *)wmf_iso8601Date; - (NSString *)wmf_randomlyRepeatMaxTimes:(NSUInteger)maxTimes; - (NSString *)wmf_stringByReplacingUnderscoresWithSpaces; - (NSString *)wmf_stringByReplacingSpacesWithUnderscores; - (NSString *)wmf_stringBySanitizingForJavaScript; - (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage:(nullable NSString *)wikipediaLanguage; //Language is the string `en` in `en.wikipedia.org` or `de` in `de.wikipedia.org`. nil will use the current locale - (BOOL)wmf_containsString:(NSString *)string; - (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string; - (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options; - (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string; - (NSString *)wmf_trim; - (NSString *)wmf_substringBeforeString:(NSString *)string; - (NSString *)wmf_substringAfterString:(NSString *)string; @end NS_ASSUME_NONNULL_END
50.56
32
(translation_unit) "@import UIKit;\n\nNS_ASSUME_NONNULL_BEGIN\n@interface NSString (WMFExtras)\n\n/// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter.\n- (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index;\n\n/// @return A substring of the receiver starting at @c index or an empty string if the recevier is too short.\n- (NSString *)wmf_safeSubstringFromIndex:(NSUInteger)index;\n\n- (NSString *)wmf_UTF8StringWithPercentEscapes;\n\n- (NSString *)wmf_schemelessURL;\n\n/**\n * Get the MIME type for a string obtained via another string or URL's `pathExtension` property.\n *\n * For example: <code>[[@"foo.png" pathExtension] wmf_asMIMEType]</code>\n *\n * @return The MIME type for the receiver.\n */\n- (NSString *)wmf_asMIMEType;\n\n- (NSDate *)wmf_iso8601Date;\n\n- (NSString *)wmf_randomlyRepeatMaxTimes:(NSUInteger)maxTimes;\n\n- (NSString *)wmf_stringByReplacingUnderscoresWithSpaces;\n\n- (NSString *)wmf_stringByReplacingSpacesWithUnderscores;\n\n- (NSString *)wmf_stringBySanitizingForJavaScript;\n\n- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage:(nullable NSString *)wikipediaLanguage; //Language is the string `en` in `en.wikipedia.org` or `de` in `de.wikipedia.org`. nil will use the current locale\n\n- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string;\n\n- (NSString *)wmf_trim;\n\n- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string;\n\n@end\nNS_ASSUME_NONNULL_END\n" (ERROR) "@" (ERROR) "@" (declaration) "import UIKit;" (type_identifier) "import" (identifier) "UIKit" (;) ";" (ERROR) "NS_ASSUME_NONNULL_BEGIN\n@interface NSString (WMFExtras)" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (ERROR) "@interface" (ERROR) "@" (identifier) "interface" (function_declarator) "NSString (WMFExtras)" (identifier) "NSString" (parameter_list) "(WMFExtras)" (() "(" (identifier) "WMFExtras" ()) ")" (comment) "/// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter." (expression_statement) "- (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index;" (unary_expression) "- (NSString *)wmf_safeSubstringToIndex" (-) "-" (cast_expression) "(NSString *)wmf_safeSubstringToIndex" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_safeSubstringToIndex" (ERROR) ":(NSUInteger)index" (:) ":" (() "(" (identifier) "NSUInteger" ()) ")" (identifier) "index" (;) ";" (comment) "/// @return A substring of the receiver starting at @c index or an empty string if the recevier is too short." (expression_statement) "- (NSString *)wmf_safeSubstringFromIndex:(NSUInteger)index;" (unary_expression) "- (NSString *)wmf_safeSubstringFromIndex" (-) "-" (cast_expression) "(NSString *)wmf_safeSubstringFromIndex" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_safeSubstringFromIndex" (ERROR) ":(NSUInteger)index" (:) ":" (() "(" (identifier) "NSUInteger" ()) ")" (identifier) "index" (;) ";" (expression_statement) "- (NSString *)wmf_UTF8StringWithPercentEscapes;" (unary_expression) "- (NSString *)wmf_UTF8StringWithPercentEscapes" (-) "-" (cast_expression) "(NSString *)wmf_UTF8StringWithPercentEscapes" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_UTF8StringWithPercentEscapes" (;) ";" (expression_statement) "- (NSString *)wmf_schemelessURL;" (unary_expression) "- (NSString *)wmf_schemelessURL" (-) "-" (cast_expression) "(NSString *)wmf_schemelessURL" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_schemelessURL" (;) ";" (comment) "/**\n * Get the MIME type for a string obtained via another string or URL's `pathExtension` property.\n *\n * For example: <code>[[@"foo.png" pathExtension] wmf_asMIMEType]</code>\n *\n * @return The MIME type for the receiver.\n */" (expression_statement) "- (NSString *)wmf_asMIMEType;" (unary_expression) "- (NSString *)wmf_asMIMEType" (-) "-" (cast_expression) "(NSString *)wmf_asMIMEType" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_asMIMEType" (;) ";" (expression_statement) "- (NSDate *)wmf_iso8601Date;" (unary_expression) "- (NSDate *)wmf_iso8601Date" (-) "-" (cast_expression) "(NSDate *)wmf_iso8601Date" (() "(" (type_descriptor) "NSDate *" (type_identifier) "NSDate" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_iso8601Date" (;) ";" (expression_statement) "- (NSString *)wmf_randomlyRepeatMaxTimes:(NSUInteger)maxTimes;" (unary_expression) "- (NSString *)wmf_randomlyRepeatMaxTimes" (-) "-" (cast_expression) "(NSString *)wmf_randomlyRepeatMaxTimes" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_randomlyRepeatMaxTimes" (ERROR) ":(NSUInteger)maxTimes" (:) ":" (() "(" (identifier) "NSUInteger" ()) ")" (identifier) "maxTimes" (;) ";" (expression_statement) "- (NSString *)wmf_stringByReplacingUnderscoresWithSpaces;" (unary_expression) "- (NSString *)wmf_stringByReplacingUnderscoresWithSpaces" (-) "-" (cast_expression) "(NSString *)wmf_stringByReplacingUnderscoresWithSpaces" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_stringByReplacingUnderscoresWithSpaces" (;) ";" (expression_statement) "- (NSString *)wmf_stringByReplacingSpacesWithUnderscores;" (unary_expression) "- (NSString *)wmf_stringByReplacingSpacesWithUnderscores" (-) "-" (cast_expression) "(NSString *)wmf_stringByReplacingSpacesWithUnderscores" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_stringByReplacingSpacesWithUnderscores" (;) ";" (expression_statement) "- (NSString *)wmf_stringBySanitizingForJavaScript;" (unary_expression) "- (NSString *)wmf_stringBySanitizingForJavaScript" (-) "-" (cast_expression) "(NSString *)wmf_stringBySanitizingForJavaScript" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_stringBySanitizingForJavaScript" (;) ";" (ERROR) "- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage:(" (unary_expression) "- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage" (-) "-" (cast_expression) "(NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage" (:) ":" (() "(" (declaration) "nullable NSString *)wikipediaLanguage;" (type_identifier) "nullable" (ERROR) "NSString *)" (identifier) "NSString" (*) "*" ()) ")" (identifier) "wikipediaLanguage" (;) ";" (comment) "//Language is the string `en` in `en.wikipedia.org` or `de` in `de.wikipedia.org`. nil will use the current locale" (expression_statement) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string;" (update_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString" (binary_expression) "- (BOOL)wmf_containsString:(NSString *)string" (unary_expression) "- (BOOL)wmf_containsString" (-) "-" (cast_expression) "(BOOL)wmf_containsString" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "wmf_containsString" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(BOOL)wmf_caseInsensitiveContainsString" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "wmf_caseInsensitiveContainsString" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(BOOL)wmf_containsString" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "wmf_containsString" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")string" ()) ")" (identifier) "string" (identifier) "options" (ERROR) ":(NSStringCompareOptions)options;" (:) ":" (() "(" (identifier) "NSStringCompareOptions" ()) ")" (identifier) "options" (;) ";" (-) "-" (cast_expression) "(BOOL)wmf_isEqualToStringIgnoringCase" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "wmf_isEqualToStringIgnoringCase" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (--) "" (;) ";" (expression_statement) "- (NSString *)wmf_trim;" (unary_expression) "- (NSString *)wmf_trim" (-) "-" (cast_expression) "(NSString *)wmf_trim" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_trim" (;) ";" (ERROR) "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string;\n\n@" (binary_expression) "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string" (binary_expression) "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString" (binary_expression) "- (NSString *)wmf_substringBeforeString:(NSString *)string" (unary_expression) "- (NSString *)wmf_substringBeforeString" (-) "-" (cast_expression) "(NSString *)wmf_substringBeforeString" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_substringBeforeString" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (ERROR) ";" (;) ";" (-) "-" (cast_expression) "(NSString *)wmf_substringAfterString" (() "(" (type_descriptor) "NSString *" (type_identifier) "NSString" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "wmf_substringAfterString" (ERROR) ":(NSString" (:) ":" (() "(" (identifier) "NSString" (*) "*" (ERROR) ")" ()) ")" (identifier) "string" (;) ";" (ERROR) "@" (declaration) "end\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) ""
324
28
{"language": "c", "success": true, "metadata": {"lines": 32, "avg_line_length": 50.56, "nodes": 206, "errors": 0, "source_hash": "95370035a82596a95c42b6f72c397e00ca50dda48146f958e253f936e7b2d5e7", "categorized_nodes": 113}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 2, "type": "declaration", "text": "import UIKit;", "parent": null, "children": [3], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 14}}, {"id": 3, "type": "identifier", "text": "UIKit", "parent": 2, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 13}}, {"id": 4, "type": "ERROR", "text": "NS_ASSUME_NONNULL_BEGIN\n@interface NSString (WMFExtras)", "parent": null, "children": [5, 6, 9], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 31}}, {"id": 5, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 4, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 23}}, {"id": 6, "type": "ERROR", "text": "@interface", "parent": 4, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 10}}, {"id": 7, "type": "ERROR", "text": "@", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 1}}, {"id": 8, "type": "identifier", "text": "interface", "parent": 6, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 10}}, {"id": 9, "type": "function_declarator", "text": "NSString (WMFExtras)", "parent": 4, "children": [10, 11], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 31}}, {"id": 10, "type": "identifier", "text": "NSString", "parent": 9, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 19}}, {"id": 11, "type": "parameter_list", "text": "(WMFExtras)", "parent": 9, "children": [12], "start_point": {"row": 3, "column": 20}, "end_point": {"row": 3, "column": 31}}, {"id": 12, "type": "identifier", "text": "WMFExtras", "parent": 11, "children": [], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 30}}, {"id": 13, "type": "unary_expression", "text": "- (NSString *)wmf_safeSubstringToIndex", "parent": null, "children": [14, 15], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 38}}, {"id": 14, "type": "-", "text": "-", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 15, "type": "cast_expression", "text": "(NSString *)wmf_safeSubstringToIndex", "parent": 13, "children": [16, 20], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 38}}, {"id": 16, "type": "type_descriptor", "text": "NSString *", "parent": 15, "children": [17, 18], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 13}}, {"id": 17, "type": "type_identifier", "text": "NSString", "parent": 16, "children": [], "start_point": {"row": 6, "column": 3}, "end_point": {"row": 6, "column": 11}}, {"id": 18, "type": "abstract_pointer_declarator", "text": "*", "parent": 16, "children": [19], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 20, "type": "identifier", "text": "wmf_safeSubstringToIndex", "parent": 15, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 38}}, {"id": 21, "type": "ERROR", "text": ":(NSUInteger)index", "parent": null, "children": [22, 23], "start_point": {"row": 6, "column": 38}, "end_point": {"row": 6, "column": 56}}, {"id": 22, "type": "identifier", "text": "NSUInteger", "parent": 21, "children": [], "start_point": {"row": 6, "column": 40}, "end_point": {"row": 6, "column": 50}}, {"id": 23, "type": "identifier", "text": "index", "parent": 21, "children": [], "start_point": {"row": 6, "column": 51}, "end_point": {"row": 6, "column": 56}}, {"id": 24, "type": "unary_expression", "text": "- (NSString *)wmf_safeSubstringFromIndex", "parent": null, "children": [25, 26], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 40}}, {"id": 25, "type": "-", "text": "-", "parent": 24, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 26, "type": "cast_expression", "text": "(NSString *)wmf_safeSubstringFromIndex", "parent": 24, "children": [27, 31], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 40}}, {"id": 27, "type": "type_descriptor", "text": "NSString *", "parent": 26, "children": [28, 29], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 13}}, {"id": 28, "type": "type_identifier", "text": "NSString", "parent": 27, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 11}}, {"id": 29, "type": "abstract_pointer_declarator", "text": "*", "parent": 27, "children": [30], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 13}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 13}}, {"id": 31, "type": "identifier", "text": "wmf_safeSubstringFromIndex", "parent": 26, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 40}}, {"id": 32, "type": "ERROR", "text": ":(NSUInteger)index", "parent": null, "children": [33, 34], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 58}}, {"id": 33, "type": "identifier", "text": "NSUInteger", "parent": 32, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 9, "column": 52}}, {"id": 34, "type": "identifier", "text": "index", "parent": 32, "children": [], "start_point": {"row": 9, "column": 53}, "end_point": {"row": 9, "column": 58}}, {"id": 35, "type": "unary_expression", "text": "- (NSString *)wmf_UTF8StringWithPercentEscapes", "parent": null, "children": [36, 37], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 46}}, {"id": 36, "type": "-", "text": "-", "parent": 35, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 37, "type": "cast_expression", "text": "(NSString *)wmf_UTF8StringWithPercentEscapes", "parent": 35, "children": [38, 42], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 46}}, {"id": 38, "type": "type_descriptor", "text": "NSString *", "parent": 37, "children": [39, 40], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 13}}, {"id": 39, "type": "type_identifier", "text": "NSString", "parent": 38, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 11}}, {"id": 40, "type": "abstract_pointer_declarator", "text": "*", "parent": 38, "children": [41], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 13}}, {"id": 42, "type": "identifier", "text": "wmf_UTF8StringWithPercentEscapes", "parent": 37, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 46}}, {"id": 43, "type": "unary_expression", "text": "- (NSString *)wmf_schemelessURL", "parent": null, "children": [44, 45], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 31}}, {"id": 44, "type": "-", "text": "-", "parent": 43, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 45, "type": "cast_expression", "text": "(NSString *)wmf_schemelessURL", "parent": 43, "children": [46, 50], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 31}}, {"id": 46, "type": "type_descriptor", "text": "NSString *", "parent": 45, "children": [47, 48], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 13}}, {"id": 47, "type": "type_identifier", "text": "NSString", "parent": 46, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 11}}, {"id": 48, "type": "abstract_pointer_declarator", "text": "*", "parent": 46, "children": [49], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}, {"id": 50, "type": "identifier", "text": "wmf_schemelessURL", "parent": 45, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 31}}, {"id": 51, "type": "unary_expression", "text": "- (NSString *)wmf_asMIMEType", "parent": null, "children": [52, 53], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 28}}, {"id": 52, "type": "-", "text": "-", "parent": 51, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 53, "type": "cast_expression", "text": "(NSString *)wmf_asMIMEType", "parent": 51, "children": [54, 58], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 28}}, {"id": 54, "type": "type_descriptor", "text": "NSString *", "parent": 53, "children": [55, 56], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 13}}, {"id": 55, "type": "type_identifier", "text": "NSString", "parent": 54, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 11}}, {"id": 56, "type": "abstract_pointer_declarator", "text": "*", "parent": 54, "children": [57], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 58, "type": "identifier", "text": "wmf_asMIMEType", "parent": 53, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 28}}, {"id": 59, "type": "unary_expression", "text": "- (NSDate *)wmf_iso8601Date", "parent": null, "children": [60, 61], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 27}}, {"id": 60, "type": "-", "text": "-", "parent": 59, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 61, "type": "cast_expression", "text": "(NSDate *)wmf_iso8601Date", "parent": 59, "children": [62, 66], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 27}}, {"id": 62, "type": "type_descriptor", "text": "NSDate *", "parent": 61, "children": [63, 64], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 11}}, {"id": 63, "type": "type_identifier", "text": "NSDate", "parent": 62, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 9}}, {"id": 64, "type": "abstract_pointer_declarator", "text": "*", "parent": 62, "children": [65], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 11}}, {"id": 66, "type": "identifier", "text": "wmf_iso8601Date", "parent": 61, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 27}}, {"id": 67, "type": "unary_expression", "text": "- (NSString *)wmf_randomlyRepeatMaxTimes", "parent": null, "children": [68, 69], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 40}}, {"id": 68, "type": "-", "text": "-", "parent": 67, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 69, "type": "cast_expression", "text": "(NSString *)wmf_randomlyRepeatMaxTimes", "parent": 67, "children": [70, 74], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 40}}, {"id": 70, "type": "type_descriptor", "text": "NSString *", "parent": 69, "children": [71, 72], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 13}}, {"id": 71, "type": "type_identifier", "text": "NSString", "parent": 70, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 11}}, {"id": 72, "type": "abstract_pointer_declarator", "text": "*", "parent": 70, "children": [73], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 74, "type": "identifier", "text": "wmf_randomlyRepeatMaxTimes", "parent": 69, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 40}}, {"id": 75, "type": "ERROR", "text": ":(NSUInteger)maxTimes", "parent": null, "children": [76, 77], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 61}}, {"id": 76, "type": "identifier", "text": "NSUInteger", "parent": 75, "children": [], "start_point": {"row": 26, "column": 42}, "end_point": {"row": 26, "column": 52}}, {"id": 77, "type": "identifier", "text": "maxTimes", "parent": 75, "children": [], "start_point": {"row": 26, "column": 53}, "end_point": {"row": 26, "column": 61}}, {"id": 78, "type": "unary_expression", "text": "- (NSString *)wmf_stringByReplacingUnderscoresWithSpaces", "parent": null, "children": [79, 80], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 56}}, {"id": 79, "type": "-", "text": "-", "parent": 78, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 80, "type": "cast_expression", "text": "(NSString *)wmf_stringByReplacingUnderscoresWithSpaces", "parent": 78, "children": [81, 85], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 56}}, {"id": 81, "type": "type_descriptor", "text": "NSString *", "parent": 80, "children": [82, 83], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 13}}, {"id": 82, "type": "type_identifier", "text": "NSString", "parent": 81, "children": [], "start_point": {"row": 28, "column": 3}, "end_point": {"row": 28, "column": 11}}, {"id": 83, "type": "abstract_pointer_declarator", "text": "*", "parent": 81, "children": [84], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 13}}, {"id": 85, "type": "identifier", "text": "wmf_stringByReplacingUnderscoresWithSpaces", "parent": 80, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 56}}, {"id": 86, "type": "unary_expression", "text": "- (NSString *)wmf_stringByReplacingSpacesWithUnderscores", "parent": null, "children": [87, 88], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 56}}, {"id": 87, "type": "-", "text": "-", "parent": 86, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 88, "type": "cast_expression", "text": "(NSString *)wmf_stringByReplacingSpacesWithUnderscores", "parent": 86, "children": [89, 93], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 56}}, {"id": 89, "type": "type_descriptor", "text": "NSString *", "parent": 88, "children": [90, 91], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 13}}, {"id": 90, "type": "type_identifier", "text": "NSString", "parent": 89, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 11}}, {"id": 91, "type": "abstract_pointer_declarator", "text": "*", "parent": 89, "children": [92], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 93, "type": "identifier", "text": "wmf_stringByReplacingSpacesWithUnderscores", "parent": 88, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 56}}, {"id": 94, "type": "unary_expression", "text": "- (NSString *)wmf_stringBySanitizingForJavaScript", "parent": null, "children": [95, 96], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 49}}, {"id": 95, "type": "-", "text": "-", "parent": 94, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 96, "type": "cast_expression", "text": "(NSString *)wmf_stringBySanitizingForJavaScript", "parent": 94, "children": [97, 101], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 49}}, {"id": 97, "type": "type_descriptor", "text": "NSString *", "parent": 96, "children": [98, 99], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 13}}, {"id": 98, "type": "type_identifier", "text": "NSString", "parent": 97, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 11}}, {"id": 99, "type": "abstract_pointer_declarator", "text": "*", "parent": 97, "children": [100], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 101, "type": "identifier", "text": "wmf_stringBySanitizingForJavaScript", "parent": 96, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 49}}, {"id": 102, "type": "ERROR", "text": "- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage:(", "parent": null, "children": [103], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 76}}, {"id": 103, "type": "unary_expression", "text": "- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage", "parent": 102, "children": [104, 105], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 74}}, {"id": 104, "type": "-", "text": "-", "parent": 103, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 105, "type": "cast_expression", "text": "(NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage", "parent": 103, "children": [106, 110], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 74}}, {"id": 106, "type": "type_descriptor", "text": "NSString *", "parent": 105, "children": [107, 108], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 13}}, {"id": 107, "type": "type_identifier", "text": "NSString", "parent": 106, "children": [], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 11}}, {"id": 108, "type": "abstract_pointer_declarator", "text": "*", "parent": 106, "children": [109], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 110, "type": "identifier", "text": "wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage", "parent": 105, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 74}}, {"id": 111, "type": "declaration", "text": "nullable NSString *)wikipediaLanguage;", "parent": null, "children": [112, 113, 116], "start_point": {"row": 34, "column": 76}, "end_point": {"row": 34, "column": 114}}, {"id": 112, "type": "type_identifier", "text": "nullable", "parent": 111, "children": [], "start_point": {"row": 34, "column": 76}, "end_point": {"row": 34, "column": 84}}, {"id": 113, "type": "ERROR", "text": "NSString *)", "parent": 111, "children": [114, 115], "start_point": {"row": 34, "column": 85}, "end_point": {"row": 34, "column": 96}}, {"id": 114, "type": "identifier", "text": "NSString", "parent": 113, "children": [], "start_point": {"row": 34, "column": 85}, "end_point": {"row": 34, "column": 93}}, {"id": 115, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 34, "column": 94}, "end_point": {"row": 34, "column": 95}}, {"id": 116, "type": "identifier", "text": "wikipediaLanguage", "parent": 111, "children": [], "start_point": {"row": 34, "column": 96}, "end_point": {"row": 34, "column": 113}}, {"id": 117, "type": "update_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string", "parent": null, "children": [118, 167], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 42, "column": 58}}, {"id": 118, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string", "parent": 117, "children": [119, 163, 165, 166], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 42, "column": 58}}, {"id": 119, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase", "parent": 118, "children": [120, 155, 158, 159], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 42, "column": 39}}, {"id": 120, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options", "parent": 119, "children": [121, 149, 151, 152, 154], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 40, "column": 53}}, {"id": 121, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString", "parent": 120, "children": [122, 144, 145], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 40, "column": 26}}, {"id": 122, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string", "parent": 121, "children": [123, 140, 142, 143], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 60}}, {"id": 123, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString", "parent": 122, "children": [124, 135, 136], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 41}}, {"id": 124, "type": "binary_expression", "text": "- (BOOL)wmf_containsString:(NSString *)string", "parent": 123, "children": [125, 131, 133, 134], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 45}}, {"id": 125, "type": "unary_expression", "text": "- (BOOL)wmf_containsString", "parent": 124, "children": [126, 127], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 26}}, {"id": 126, "type": "-", "text": "-", "parent": 125, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 1}}, {"id": 127, "type": "cast_expression", "text": "(BOOL)wmf_containsString", "parent": 125, "children": [128, 130], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 26}}, {"id": 128, "type": "type_descriptor", "text": "BOOL", "parent": 127, "children": [129], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 129, "type": "type_identifier", "text": "BOOL", "parent": 128, "children": [], "start_point": {"row": 36, "column": 3}, "end_point": {"row": 36, "column": 7}}, {"id": 130, "type": "identifier", "text": "wmf_containsString", "parent": 127, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 26}}, {"id": 131, "type": "ERROR", "text": ":(NSString", "parent": 124, "children": [132], "start_point": {"row": 36, "column": 26}, "end_point": {"row": 36, "column": 36}}, {"id": 132, "type": "identifier", "text": "NSString", "parent": 131, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 36}}, {"id": 133, "type": "*", "text": "*", "parent": 124, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 38}}, {"id": 134, "type": "identifier", "text": "string", "parent": 124, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 45}}, {"id": 135, "type": "-", "text": "-", "parent": 123, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 136, "type": "cast_expression", "text": "(BOOL)wmf_caseInsensitiveContainsString", "parent": 123, "children": [137, 139], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 41}}, {"id": 137, "type": "type_descriptor", "text": "BOOL", "parent": 136, "children": [138], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 138, "type": "type_identifier", "text": "BOOL", "parent": 137, "children": [], "start_point": {"row": 38, "column": 3}, "end_point": {"row": 38, "column": 7}}, {"id": 139, "type": "identifier", "text": "wmf_caseInsensitiveContainsString", "parent": 136, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 41}}, {"id": 140, "type": "ERROR", "text": ":(NSString", "parent": 122, "children": [141], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 51}}, {"id": 141, "type": "identifier", "text": "NSString", "parent": 140, "children": [], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 51}}, {"id": 142, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 53}}, {"id": 143, "type": "identifier", "text": "string", "parent": 122, "children": [], "start_point": {"row": 38, "column": 54}, "end_point": {"row": 38, "column": 60}}, {"id": 144, "type": "-", "text": "-", "parent": 121, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 145, "type": "cast_expression", "text": "(BOOL)wmf_containsString", "parent": 121, "children": [146, 148], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 26}}, {"id": 146, "type": "type_descriptor", "text": "BOOL", "parent": 145, "children": [147], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 147, "type": "type_identifier", "text": "BOOL", "parent": 146, "children": [], "start_point": {"row": 40, "column": 3}, "end_point": {"row": 40, "column": 7}}, {"id": 148, "type": "identifier", "text": "wmf_containsString", "parent": 145, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 26}}, {"id": 149, "type": "ERROR", "text": ":(NSString", "parent": 120, "children": [150], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 36}}, {"id": 150, "type": "identifier", "text": "NSString", "parent": 149, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 36}}, {"id": 151, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 40, "column": 37}, "end_point": {"row": 40, "column": 38}}, {"id": 152, "type": "ERROR", "text": ")string", "parent": 120, "children": [153], "start_point": {"row": 40, "column": 38}, "end_point": {"row": 40, "column": 45}}, {"id": 153, "type": "identifier", "text": "string", "parent": 152, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 45}}, {"id": 154, "type": "identifier", "text": "options", "parent": 120, "children": [], "start_point": {"row": 40, "column": 46}, "end_point": {"row": 40, "column": 53}}, {"id": 155, "type": "ERROR", "text": ":(NSStringCompareOptions)options;", "parent": 119, "children": [156, 157], "start_point": {"row": 40, "column": 53}, "end_point": {"row": 40, "column": 86}}, {"id": 156, "type": "identifier", "text": "NSStringCompareOptions", "parent": 155, "children": [], "start_point": {"row": 40, "column": 55}, "end_point": {"row": 40, "column": 77}}, {"id": 157, "type": "identifier", "text": "options", "parent": 155, "children": [], "start_point": {"row": 40, "column": 78}, "end_point": {"row": 40, "column": 85}}, {"id": 158, "type": "-", "text": "-", "parent": 119, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 159, "type": "cast_expression", "text": "(BOOL)wmf_isEqualToStringIgnoringCase", "parent": 119, "children": [160, 162], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 39}}, {"id": 160, "type": "type_descriptor", "text": "BOOL", "parent": 159, "children": [161], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 7}}, {"id": 161, "type": "type_identifier", "text": "BOOL", "parent": 160, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 7}}, {"id": 162, "type": "identifier", "text": "wmf_isEqualToStringIgnoringCase", "parent": 159, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 39}}, {"id": 163, "type": "ERROR", "text": ":(NSString", "parent": 118, "children": [164], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 49}}, {"id": 164, "type": "identifier", "text": "NSString", "parent": 163, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 49}}, {"id": 165, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 51}}, {"id": 166, "type": "identifier", "text": "string", "parent": 118, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 58}}, {"id": 167, "type": "--", "text": "", "parent": 117, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 58}}, {"id": 168, "type": "unary_expression", "text": "- (NSString *)wmf_trim", "parent": null, "children": [169, 170], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 22}}, {"id": 169, "type": "-", "text": "-", "parent": 168, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 170, "type": "cast_expression", "text": "(NSString *)wmf_trim", "parent": 168, "children": [171, 175], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 22}}, {"id": 171, "type": "type_descriptor", "text": "NSString *", "parent": 170, "children": [172, 173], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 13}}, {"id": 172, "type": "type_identifier", "text": "NSString", "parent": 171, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 11}}, {"id": 173, "type": "abstract_pointer_declarator", "text": "*", "parent": 171, "children": [174], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 174, "type": "*", "text": "*", "parent": 173, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 175, "type": "identifier", "text": "wmf_trim", "parent": 170, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 22}}, {"id": 176, "type": "ERROR", "text": "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string;\n\n@", "parent": null, "children": [177, 203], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 177, "type": "binary_expression", "text": "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string", "parent": 176, "children": [178, 199, 201, 202], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 57}}, {"id": 178, "type": "binary_expression", "text": "- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString", "parent": 177, "children": [179, 192, 193], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 38}}, {"id": 179, "type": "binary_expression", "text": "- (NSString *)wmf_substringBeforeString:(NSString *)string", "parent": 178, "children": [180, 188, 190, 191], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 58}}, {"id": 180, "type": "unary_expression", "text": "- (NSString *)wmf_substringBeforeString", "parent": 179, "children": [181, 182], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 39}}, {"id": 181, "type": "-", "text": "-", "parent": 180, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 182, "type": "cast_expression", "text": "(NSString *)wmf_substringBeforeString", "parent": 180, "children": [183, 187], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 39}}, {"id": 183, "type": "type_descriptor", "text": "NSString *", "parent": 182, "children": [184, 185], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 13}}, {"id": 184, "type": "type_identifier", "text": "NSString", "parent": 183, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 11}}, {"id": 185, "type": "abstract_pointer_declarator", "text": "*", "parent": 183, "children": [186], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 186, "type": "*", "text": "*", "parent": 185, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 13}}, {"id": 187, "type": "identifier", "text": "wmf_substringBeforeString", "parent": 182, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 39}}, {"id": 188, "type": "ERROR", "text": ":(NSString", "parent": 179, "children": [189], "start_point": {"row": 46, "column": 39}, "end_point": {"row": 46, "column": 49}}, {"id": 189, "type": "identifier", "text": "NSString", "parent": 188, "children": [], "start_point": {"row": 46, "column": 41}, "end_point": {"row": 46, "column": 49}}, {"id": 190, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 46, "column": 50}, "end_point": {"row": 46, "column": 51}}, {"id": 191, "type": "identifier", "text": "string", "parent": 179, "children": [], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 58}}, {"id": 192, "type": "-", "text": "-", "parent": 178, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 193, "type": "cast_expression", "text": "(NSString *)wmf_substringAfterString", "parent": 178, "children": [194, 198], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 38}}, {"id": 194, "type": "type_descriptor", "text": "NSString *", "parent": 193, "children": [195, 196], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 13}}, {"id": 195, "type": "type_identifier", "text": "NSString", "parent": 194, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 11}}, {"id": 196, "type": "abstract_pointer_declarator", "text": "*", "parent": 194, "children": [197], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 197, "type": "*", "text": "*", "parent": 196, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 198, "type": "identifier", "text": "wmf_substringAfterString", "parent": 193, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 38}}, {"id": 199, "type": "ERROR", "text": ":(NSString", "parent": 177, "children": [200], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 48}}, {"id": 200, "type": "identifier", "text": "NSString", "parent": 199, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 48}}, {"id": 201, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 47, "column": 49}, "end_point": {"row": 47, "column": 50}}, {"id": 202, "type": "identifier", "text": "string", "parent": 177, "children": [], "start_point": {"row": 47, "column": 51}, "end_point": {"row": 47, "column": 57}}, {"id": 203, "type": "ERROR", "text": "@", "parent": 176, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 1}}, {"id": 204, "type": "declaration", "text": "end\nNS_ASSUME_NONNULL_END", "parent": null, "children": [205], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 50, "column": 21}}, {"id": 205, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 204, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 21}}]}, "node_categories": {"declarations": {"functions": [9], "variables": [2, 111, 204], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [13, 15, 24, 26, 35, 37, 43, 45, 51, 53, 59, 61, 67, 69, 78, 80, 86, 88, 94, 96, 103, 105, 117, 118, 119, 120, 121, 122, 123, 124, 125, 127, 136, 145, 159, 168, 170, 177, 178, 179, 180, 182, 193], "assignments": [], "loops": [], "conditionals": [3, 5, 8, 10, 12, 17, 20, 22, 23, 28, 31, 33, 34, 39, 42, 47, 50, 55, 58, 63, 66, 71, 74, 76, 77, 82, 85, 90, 93, 98, 101, 107, 110, 112, 114, 116, 129, 130, 132, 134, 138, 139, 141, 143, 147, 148, 150, 153, 154, 156, 157, 161, 162, 164, 166, 172, 175, 184, 187, 189, 191, 195, 198, 200, 202, 205], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "unknown", "text_snippet": "NSString (WMFExtras)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "@import UIKit;\n\nNS_ASSUME_NONNULL_BEGIN\n@interface NSString (WMFExtras)\n\n/// @return A substring of the receiver going up to @c index, or @c length, whichever is shorter.\n- (NSString *)wmf_safeSubstringToIndex:(NSUInteger)index;\n\n/// @return A substring of the receiver starting at @c index or an empty string if the recevier is too short.\n- (NSString *)wmf_safeSubstringFromIndex:(NSUInteger)index;\n\n- (NSString *)wmf_UTF8StringWithPercentEscapes;\n\n- (NSString *)wmf_schemelessURL;\n\n/**\n * Get the MIME type for a string obtained via another string or URL's `pathExtension` property.\n *\n * For example: <code>[[@\"foo.png\" pathExtension] wmf_asMIMEType]</code>\n *\n * @return The MIME type for the receiver.\n */\n- (NSString *)wmf_asMIMEType;\n\n- (NSDate *)wmf_iso8601Date;\n\n- (NSString *)wmf_randomlyRepeatMaxTimes:(NSUInteger)maxTimes;\n\n- (NSString *)wmf_stringByReplacingUnderscoresWithSpaces;\n\n- (NSString *)wmf_stringByReplacingSpacesWithUnderscores;\n\n- (NSString *)wmf_stringBySanitizingForJavaScript;\n\n- (NSString *)wmf_stringByCapitalizingFirstCharacterUsingWikipediaLanguage:(nullable NSString *)wikipediaLanguage; //Language is the string `en` in `en.wikipedia.org` or `de` in `de.wikipedia.org`. nil will use the current locale\n\n- (BOOL)wmf_containsString:(NSString *)string;\n\n- (BOOL)wmf_caseInsensitiveContainsString:(NSString *)string;\n\n- (BOOL)wmf_containsString:(NSString *)string options:(NSStringCompareOptions)options;\n\n- (BOOL)wmf_isEqualToStringIgnoringCase:(NSString *)string;\n\n- (NSString *)wmf_trim;\n\n- (NSString *)wmf_substringBeforeString:(NSString *)string;\n- (NSString *)wmf_substringAfterString:(NSString *)string;\n\n@end\nNS_ASSUME_NONNULL_END\n"}
80,778
c
#include <brutal/mem.h> #if defined(__x86_64__) || defined(__x86_32__) void __stosb_set(void *d, uint8_t s, size_t c) { asm volatile( "rep stosb" : "=D"(d), "=c"(c) : "0"(d), "a"(s), "1"(c) : "memory"); } #endif void *mem_set(void *s, uint8_t c, size_t n) { #if defined(__x86_64__) || defined(__x86_32__) __stosb_set(s, c, n); #else uint8_t *dest = (uint8_t *)s; for (size_t i = 0; i < n; i++) { dest[i] = c; } #endif return s; }
19.75
24
(translation_unit) "#include <brutal/mem.h>\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\nvoid __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");\n}\n\n#endif\n\nvoid *mem_set(void *s, uint8_t c, size_t n)\n{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif\n return s;\n}\n" (preproc_include) "#include <brutal/mem.h>\n" (#include) "#include" (system_lib_string) "<brutal/mem.h>" (preproc_if) "#if defined(__x86_64__) || defined(__x86_32__)\n\nvoid __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");\n}\n\n#endif" (#if) "#if" (binary_expression) "defined(__x86_64__) || defined(__x86_32__)" (preproc_defined) "defined(__x86_64__)" (defined) "defined" (() "(" (identifier) "__x86_64__" ()) ")" (||) "||" (preproc_defined) "defined(__x86_32__)" (defined) "defined" (() "(" (identifier) "__x86_32__" ()) ")" ( ) "\n\n" (function_definition) "void __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");\n}" (primitive_type) "void" (function_declarator) "__stosb_set(void *d, uint8_t s, size_t c)" (identifier) "__stosb_set" (parameter_list) "(void *d, uint8_t s, size_t c)" (() "(" (parameter_declaration) "void *d" (primitive_type) "void" (pointer_declarator) "*d" (*) "*" (identifier) "d" (,) "," (parameter_declaration) "uint8_t s" (primitive_type) "uint8_t" (identifier) "s" (,) "," (parameter_declaration) "size_t c" (primitive_type) "size_t" (identifier) "c" ()) ")" (compound_statement) "{\n asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");\n}" ({) "{" (expression_statement) "asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory");" (gnu_asm_expression) "asm volatile(\n "rep stosb"\n : "=D"(d), "=c"(c)\n : "0"(d), "a"(s), "1"(c)\n : "memory")" (asm) "asm" (gnu_asm_qualifier) "volatile" (volatile) "volatile" (() "(" (string_literal) ""rep stosb"" (") """ (string_content) "rep stosb" (") """ (gnu_asm_output_operand_list) ": "=D"(d), "=c"(c)" (:) ":" (gnu_asm_output_operand) ""=D"(d)" (string_literal) ""=D"" (") """ (string_content) "=D" (") """ (() "(" (identifier) "d" ()) ")" (,) "," (gnu_asm_output_operand) ""=c"(c)" (string_literal) ""=c"" (") """ (string_content) "=c" (") """ (() "(" (identifier) "c" ()) ")" (gnu_asm_input_operand_list) ": "0"(d), "a"(s), "1"(c)" (:) ":" (gnu_asm_input_operand) ""0"(d)" (string_literal) ""0"" (") """ (string_content) "0" (") """ (() "(" (identifier) "d" ()) ")" (,) "," (gnu_asm_input_operand) ""a"(s)" (string_literal) ""a"" (") """ (string_content) "a" (") """ (() "(" (identifier) "s" ()) ")" (,) "," (gnu_asm_input_operand) ""1"(c)" (string_literal) ""1"" (") """ (string_content) "1" (") """ (() "(" (identifier) "c" ()) ")" (gnu_asm_clobber_list) ": "memory"" (:) ":" (string_literal) ""memory"" (") """ (string_content) "memory" (") """ ()) ")" (;) ";" (}) "}" (#endif) "#endif" (function_definition) "void *mem_set(void *s, uint8_t c, size_t n)\n{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif\n return s;\n}" (primitive_type) "void" (pointer_declarator) "*mem_set(void *s, uint8_t c, size_t n)" (*) "*" (function_declarator) "mem_set(void *s, uint8_t c, size_t n)" (identifier) "mem_set" (parameter_list) "(void *s, uint8_t c, size_t n)" (() "(" (parameter_declaration) "void *s" (primitive_type) "void" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "uint8_t c" (primitive_type) "uint8_t" (identifier) "c" (,) "," (parameter_declaration) "size_t n" (primitive_type) "size_t" (identifier) "n" ()) ")" (compound_statement) "{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif\n return s;\n}" ({) "{" (preproc_if) "#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif" (#if) "#if" (binary_expression) "defined(__x86_64__) || defined(__x86_32__)" (preproc_defined) "defined(__x86_64__)" (defined) "defined" (() "(" (identifier) "__x86_64__" ()) ")" (||) "||" (preproc_defined) "defined(__x86_32__)" (defined) "defined" (() "(" (identifier) "__x86_32__" ()) ")" ( ) "\n\n" (expression_statement) "__stosb_set(s, c, n);" (call_expression) "__stosb_set(s, c, n)" (identifier) "__stosb_set" (argument_list) "(s, c, n)" (() "(" (identifier) "s" (,) "," (identifier) "c" (,) "," (identifier) "n" ()) ")" (;) ";" (preproc_else) "#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }" (#else) "#else" (declaration) "uint8_t *dest = (uint8_t *)s;" (primitive_type) "uint8_t" (init_declarator) "*dest = (uint8_t *)s" (pointer_declarator) "*dest" (*) "*" (identifier) "dest" (=) "=" (cast_expression) "(uint8_t *)s" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "s" (;) ";" (for_statement) "for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n dest[i] = c;\n }" ({) "{" (expression_statement) "dest[i] = c;" (assignment_expression) "dest[i] = c" (subscript_expression) "dest[i]" (identifier) "dest" ([) "[" (identifier) "i" (]) "]" (=) "=" (identifier) "c" (;) ";" (}) "}" (#endif) "#endif" (return_statement) "return s;" (return) "return" (identifier) "s" (;) ";" (}) "}"
215
0
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 19.75, "nodes": 128, "errors": 0, "source_hash": "5ca8d1847f186f8f35439c59f41d9a6fa72a67bafd71acd64e0725d378515603", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <brutal/mem.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": "<brutal/mem.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 23}}, {"id": 3, "type": "preproc_if", "text": "#if defined(__x86_64__) || defined(__x86_32__)\n\nvoid __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n \"rep stosb\"\n : \"=D\"(d), \"=c\"(c)\n : \"0\"(d), \"a\"(s), \"1\"(c)\n : \"memory\");\n}\n\n#endif", "parent": null, "children": [4, 5, 13, 14, 54], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "binary_expression", "text": "defined(__x86_64__) || defined(__x86_32__)", "parent": 3, "children": [6, 9, 10], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 46}}, {"id": 6, "type": "preproc_defined", "text": "defined(__x86_64__)", "parent": 5, "children": [7, 8], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 23}}, {"id": 7, "type": "defined", "text": "defined", "parent": 6, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 11}}, {"id": 8, "type": "identifier", "text": "__x86_64__", "parent": 6, "children": [], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 22}}, {"id": 9, "type": "||", "text": "||", "parent": 5, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 26}}, {"id": 10, "type": "preproc_defined", "text": "defined(__x86_32__)", "parent": 5, "children": [11, 12], "start_point": {"row": 2, "column": 27}, "end_point": {"row": 2, "column": 46}}, {"id": 11, "type": "defined", "text": "defined", "parent": 10, "children": [], "start_point": {"row": 2, "column": 27}, "end_point": {"row": 2, "column": 34}}, {"id": 12, "type": "identifier", "text": "__x86_32__", "parent": 10, "children": [], "start_point": {"row": 2, "column": 35}, "end_point": {"row": 2, "column": 45}}, {"id": 13, "type": "\n", "text": "\n\n", "parent": 3, "children": [], "start_point": {"row": 2, "column": 46}, "end_point": {"row": 4, "column": 0}}, {"id": 14, "type": "function_definition", "text": "void __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n \"rep stosb\"\n : \"=D\"(d), \"=c\"(c)\n : \"0\"(d), \"a\"(s), \"1\"(c)\n : \"memory\");\n}", "parent": 3, "children": [15, 16], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 4}}, {"id": 16, "type": "function_declarator", "text": "__stosb_set(void *d, uint8_t s, size_t c)", "parent": 14, "children": [17, 18], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 46}}, {"id": 17, "type": "identifier", "text": "__stosb_set", "parent": 16, "children": [], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 16}}, {"id": 18, "type": "parameter_list", "text": "(void *d, uint8_t s, size_t c)", "parent": 16, "children": [19, 24, 27], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 46}}, {"id": 19, "type": "parameter_declaration", "text": "void *d", "parent": 18, "children": [20, 21], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 24}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 21}}, {"id": 21, "type": "pointer_declarator", "text": "*d", "parent": 19, "children": [22, 23], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 24}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 4, "column": 22}, "end_point": {"row": 4, "column": 23}}, {"id": 23, "type": "identifier", "text": "d", "parent": 21, "children": [], "start_point": {"row": 4, "column": 23}, "end_point": {"row": 4, "column": 24}}, {"id": 24, "type": "parameter_declaration", "text": "uint8_t s", "parent": 18, "children": [25, 26], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 35}}, {"id": 25, "type": "primitive_type", "text": "uint8_t", "parent": 24, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 33}}, {"id": 26, "type": "identifier", "text": "s", "parent": 24, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 35}}, {"id": 27, "type": "parameter_declaration", "text": "size_t c", "parent": 18, "children": [28, 29], "start_point": {"row": 4, "column": 37}, "end_point": {"row": 4, "column": 45}}, {"id": 28, "type": "primitive_type", "text": "size_t", "parent": 27, "children": [], "start_point": {"row": 4, "column": 37}, "end_point": {"row": 4, "column": 43}}, {"id": 29, "type": "identifier", "text": "c", "parent": 27, "children": [], "start_point": {"row": 4, "column": 44}, "end_point": {"row": 4, "column": 45}}, {"id": 30, "type": "gnu_asm_expression", "text": "asm volatile(\n \"rep stosb\"\n : \"=D\"(d), \"=c\"(c)\n : \"0\"(d), \"a\"(s), \"1\"(c)\n : \"memory\")", "parent": 14, "children": [31, 32, 34, 35, 42, 52], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 10, "column": 19}}, {"id": 31, "type": "asm", "text": "asm", "parent": 30, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 7}}, {"id": 32, "type": "gnu_asm_qualifier", "text": "volatile", "parent": 30, "children": [33], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 16}}, {"id": 33, "type": "volatile", "text": "volatile", "parent": 32, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 16}}, {"id": 34, "type": "string_literal", "text": "\"rep stosb\"", "parent": 30, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 19}}, {"id": 35, "type": "gnu_asm_output_operand_list", "text": ": \"=D\"(d), \"=c\"(c)", "parent": 30, "children": [36, 39], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 26}}, {"id": 36, "type": "gnu_asm_output_operand", "text": "\"=D\"(d)", "parent": 35, "children": [37, 38], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 17}}, {"id": 37, "type": "string_literal", "text": "\"=D\"", "parent": 36, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 14}}, {"id": 38, "type": "identifier", "text": "d", "parent": 36, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 16}}, {"id": 39, "type": "gnu_asm_output_operand", "text": "\"=c\"(c)", "parent": 35, "children": [40, 41], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 26}}, {"id": 40, "type": "string_literal", "text": "\"=c\"", "parent": 39, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 23}}, {"id": 41, "type": "identifier", "text": "c", "parent": 39, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 42, "type": "gnu_asm_input_operand_list", "text": ": \"0\"(d), \"a\"(s), \"1\"(c)", "parent": 30, "children": [43, 46, 49], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 32}}, {"id": 43, "type": "gnu_asm_input_operand", "text": "\"0\"(d)", "parent": 42, "children": [44, 45], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 16}}, {"id": 44, "type": "string_literal", "text": "\"0\"", "parent": 43, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 13}}, {"id": 45, "type": "identifier", "text": "d", "parent": 43, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 15}}, {"id": 46, "type": "gnu_asm_input_operand", "text": "\"a\"(s)", "parent": 42, "children": [47, 48], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 24}}, {"id": 47, "type": "string_literal", "text": "\"a\"", "parent": 46, "children": [], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 21}}, {"id": 48, "type": "identifier", "text": "s", "parent": 46, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 23}}, {"id": 49, "type": "gnu_asm_input_operand", "text": "\"1\"(c)", "parent": 42, "children": [50, 51], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 32}}, {"id": 50, "type": "string_literal", "text": "\"1\"", "parent": 49, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 29}}, {"id": 51, "type": "identifier", "text": "c", "parent": 49, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 31}}, {"id": 52, "type": "gnu_asm_clobber_list", "text": ": \"memory\"", "parent": 30, "children": [53], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 53, "type": "string_literal", "text": "\"memory\"", "parent": 52, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 18}}, {"id": 54, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 55, "type": "function_definition", "text": "void *mem_set(void *s, uint8_t c, size_t n)\n{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif\n return s;\n}", "parent": null, "children": [56, 57], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 56, "type": "primitive_type", "text": "void", "parent": 55, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 4}}, {"id": 57, "type": "pointer_declarator", "text": "*mem_set(void *s, uint8_t c, size_t n)", "parent": 55, "children": [58, 59], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 43}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 6}}, {"id": 59, "type": "function_declarator", "text": "mem_set(void *s, uint8_t c, size_t n)", "parent": 57, "children": [60, 61], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 43}}, {"id": 60, "type": "identifier", "text": "mem_set", "parent": 59, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 13}}, {"id": 61, "type": "parameter_list", "text": "(void *s, uint8_t c, size_t n)", "parent": 59, "children": [62, 67, 70], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 43}}, {"id": 62, "type": "parameter_declaration", "text": "void *s", "parent": 61, "children": [63, 64], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 21}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 18}}, {"id": 64, "type": "pointer_declarator", "text": "*s", "parent": 62, "children": [65, 66], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 21}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 66, "type": "identifier", "text": "s", "parent": 64, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 21}}, {"id": 67, "type": "parameter_declaration", "text": "uint8_t c", "parent": 61, "children": [68, 69], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 32}}, {"id": 68, "type": "primitive_type", "text": "uint8_t", "parent": 67, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 30}}, {"id": 69, "type": "identifier", "text": "c", "parent": 67, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 32}}, {"id": 70, "type": "parameter_declaration", "text": "size_t n", "parent": 61, "children": [71, 72], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 42}}, {"id": 71, "type": "primitive_type", "text": "size_t", "parent": 70, "children": [], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 40}}, {"id": 72, "type": "identifier", "text": "n", "parent": 70, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 42}}, {"id": 73, "type": "preproc_if", "text": "#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif", "parent": 55, "children": [74, 75, 83, 90, 125], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 74, "type": "#if", "text": "#if", "parent": 73, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 3}}, {"id": 75, "type": "binary_expression", "text": "defined(__x86_64__) || defined(__x86_32__)", "parent": 73, "children": [76, 79, 80], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 46}}, {"id": 76, "type": "preproc_defined", "text": "defined(__x86_64__)", "parent": 75, "children": [77, 78], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 23}}, {"id": 77, "type": "defined", "text": "defined", "parent": 76, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 78, "type": "identifier", "text": "__x86_64__", "parent": 76, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 22}}, {"id": 79, "type": "||", "text": "||", "parent": 75, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 26}}, {"id": 80, "type": "preproc_defined", "text": "defined(__x86_32__)", "parent": 75, "children": [81, 82], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 46}}, {"id": 81, "type": "defined", "text": "defined", "parent": 80, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 34}}, {"id": 82, "type": "identifier", "text": "__x86_32__", "parent": 80, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 45}}, {"id": 83, "type": "\n", "text": "\n\n", "parent": 73, "children": [], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 20, "column": 0}}, {"id": 84, "type": "call_expression", "text": "__stosb_set(s, c, n)", "parent": 73, "children": [85, 86], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 24}}, {"id": 85, "type": "identifier", "text": "__stosb_set", "parent": 84, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 15}}, {"id": 86, "type": "argument_list", "text": "(s, c, n)", "parent": 84, "children": [87, 88, 89], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 24}}, {"id": 87, "type": "identifier", "text": "s", "parent": 86, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 88, "type": "identifier", "text": "c", "parent": 86, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 89, "type": "identifier", "text": "n", "parent": 86, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 90, "type": "preproc_else", "text": "#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }", "parent": 73, "children": [91, 92, 105], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 27, "column": 5}}, {"id": 91, "type": "#else", "text": "#else", "parent": 90, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 5}}, {"id": 92, "type": "declaration", "text": "uint8_t *dest = (uint8_t *)s;", "parent": 90, "children": [93, 94], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 33}}, {"id": 93, "type": "primitive_type", "text": "uint8_t", "parent": 92, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 94, "type": "init_declarator", "text": "*dest = (uint8_t *)s", "parent": 92, "children": [95, 98, 99], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 32}}, {"id": 95, "type": "pointer_declarator", "text": "*dest", "parent": 94, "children": [96, 97], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 17}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 13}}, {"id": 97, "type": "identifier", "text": "dest", "parent": 95, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 17}}, {"id": 98, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 19}}, {"id": 99, "type": "cast_expression", "text": "(uint8_t *)s", "parent": 94, "children": [100, 104], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 32}}, {"id": 100, "type": "type_descriptor", "text": "uint8_t *", "parent": 99, "children": [101, 102], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 30}}, {"id": 101, "type": "primitive_type", "text": "uint8_t", "parent": 100, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 28}}, {"id": 102, "type": "abstract_pointer_declarator", "text": "*", "parent": 100, "children": [103], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 104, "type": "identifier", "text": "s", "parent": 99, "children": [], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 32}}, {"id": 105, "type": "for_statement", "text": "for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }", "parent": 90, "children": [106, 112, 116], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 27, "column": 5}}, {"id": 106, "type": "declaration", "text": "size_t i = 0;", "parent": 105, "children": [107, 108], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 22}}, {"id": 107, "type": "primitive_type", "text": "size_t", "parent": 106, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 15}}, {"id": 108, "type": "init_declarator", "text": "i = 0", "parent": 106, "children": [109, 110, 111], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 21}}, {"id": 109, "type": "identifier", "text": "i", "parent": 108, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 17}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 19}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 108, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 21}}, {"id": 112, "type": "binary_expression", "text": "i < n", "parent": 105, "children": [113, 114, 115], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 28}}, {"id": 113, "type": "identifier", "text": "i", "parent": 112, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 24}}, {"id": 114, "type": "<", "text": "<", "parent": 112, "children": [], "start_point": {"row": 24, "column": 25}, "end_point": {"row": 24, "column": 26}}, {"id": 115, "type": "identifier", "text": "n", "parent": 112, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 28}}, {"id": 116, "type": "update_expression", "text": "i++", "parent": 105, "children": [117, 118], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 33}}, {"id": 117, "type": "identifier", "text": "i", "parent": 116, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 31}}, {"id": 118, "type": "++", "text": "++", "parent": 116, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 33}}, {"id": 119, "type": "assignment_expression", "text": "dest[i] = c", "parent": 105, "children": [120, 123, 124], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 120, "type": "subscript_expression", "text": "dest[i]", "parent": 119, "children": [121, 122], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 15}}, {"id": 121, "type": "identifier", "text": "dest", "parent": 120, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 122, "type": "identifier", "text": "i", "parent": 120, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 17}}, {"id": 124, "type": "identifier", "text": "c", "parent": 119, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 125, "type": "#endif", "text": "#endif", "parent": 73, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 6}}, {"id": 126, "type": "return_statement", "text": "return s;", "parent": 55, "children": [127], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 13}}, {"id": 127, "type": "identifier", "text": "s", "parent": 126, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}]}, "node_categories": {"declarations": {"functions": [14, 16, 55, 59], "variables": [19, 24, 27, 62, 67, 70, 92, 106], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [5, 30, 75, 84, 99, 112, 116, 120], "assignments": [119], "loops": [105], "conditionals": [3, 4, 8, 12, 17, 23, 26, 29, 32, 38, 41, 45, 48, 51, 54, 60, 66, 69, 72, 73, 74, 78, 82, 85, 87, 88, 89, 97, 104, 109, 113, 115, 117, 121, 122, 124, 125, 127], "returns": [126], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 34, 37, 40, 44, 47, 50, 53, 111], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "__stosb_set", "text_snippet": "void __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n \"rep stosb\"\n : \"=D"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "__stosb_set(void *d, uint8_t s, size_t c)"}, {"node_id": 55, "universal_type": "function", "name": "*mem_set", "text_snippet": "void *mem_set(void *s, uint8_t c, size_t n)\n{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n _"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "mem_set(void *s, uint8_t c, size_t n)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <brutal/mem.h>\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <brutal/mem.h>\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\nvoid __stosb_set(void *d, uint8_t s, size_t c)\n{\n asm volatile(\n \"rep stosb\"\n : \"=D\"(d), \"=c\"(c)\n : \"0\"(d), \"a\"(s), \"1\"(c)\n : \"memory\");\n}\n\n#endif\n\nvoid *mem_set(void *s, uint8_t c, size_t n)\n{\n\n#if defined(__x86_64__) || defined(__x86_32__)\n\n __stosb_set(s, c, n);\n#else\n uint8_t *dest = (uint8_t *)s;\n\n for (size_t i = 0; i < n; i++)\n {\n dest[i] = c;\n }\n#endif\n return s;\n}\n"}
80,779
c
/* B W C R O P . C * BRL-CAD * * Copyright (c) 1986-2019 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation. * * 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this file; see the file named COPYING for more * information. */ /** @file util/bwcrop.c * * Crop Black and White files. * * Given four "corner points" in the input file, we produce an output * file of the requested size consisting of the nearest pixels. No * filtering/interpolating is done. * * This can handle arbitrarily large files. We keep a buffer of scan * lines centered around the last point that fell outside of the * buffer. Note: this buffer code is shared with bwscale.c * */ #include "common.h" #include <stdlib.h> #include <stdio.h> #include <limits.h> /* for INT_MAX */ #include "vmath.h" #include "bu/file.h" #include "bu/malloc.h" #include "bu/exit.h" #define round(x) ((int)(x+0.5)) #define MAXBUFBYTES BU_PAGE_SIZE*BU_PAGE_SIZE /* max bytes to malloc in buffer space */ unsigned char *buffer; ssize_t scanlen; /* length of infile scanlines */ ssize_t buflines; /* Number of lines held in buffer */ off_t buf_start = -1000; /* First line in buffer */ unsigned long xnum, ynum; /* Number of pixels in new file */ float ulx, uly, urx, ury, lrx, lry, llx, lly; /* Corners of original file */ FILE *ifp, *ofp; static const char usage[] = "\ Usage: bwcrop in.bw out.bw (I prompt!)\n\ or bwcrop in.bw out.bw inwidth outwidth outheight\n\ ulx uly urx ury lrx lry llx lly\n"; /* * Determine max number of lines to buffer. * and malloc space for it. * XXX - CHECK FILE SIZE */ void init_buffer() { ssize_t max; /* See how many we could buffer */ max = MAXBUFBYTES / scanlen; /* * Do a max of page size. We really should see how big the input * file is to decide if we should buffer less than our max. */ if (max > BU_PAGE_SIZE) max = BU_PAGE_SIZE; if (max < scanlen) buflines = max; else buflines = scanlen; buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer"); } /* * Load the buffer with scan lines centered around * the given y coordinate. */ void fill_buffer(int y) { size_t ret; buf_start = y - buflines/2; if (buf_start < 0) buf_start = 0; bu_fseek(ifp, buf_start * scanlen, 0); ret = fread(buffer, scanlen, buflines, ifp); if (ret == 0) perror("fread"); } int main(int argc, char **argv) { float bx1, by1, bx2, by2, bx, by; size_t row, col; ssize_t yindex; char value; size_t ret; int atoival; if (argc < 3) { bu_exit(1, "%s", usage); } if ((ifp = fopen(argv[1], "r")) == NULL) { bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]); } if ((ofp = fopen(argv[2], "w")) == NULL) { bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]); } if (argc == 14) { if (! argv[3]) return 1; scanlen = atoi(argv[3]); if (! argv[4]) return 1; atoival = atoi(argv[4]); if (atoival < 0) atoival = 0; else if (atoival > INT_MAX-1) atoival = INT_MAX-1; xnum = atoival; if (! argv[5]) return 1; atoival = atoi(argv[5]); if (atoival < 0) atoival = 0; else if (atoival > INT_MAX-1) atoival = INT_MAX-1; ynum = atoival; if (! argv[6]) return 1; ulx = atoi(argv[6]); if (! argv[7]) return 1; uly = atoi(argv[7]); if (! argv[8]) return 1; urx = atoi(argv[8]); if (! argv[9]) return 1; ury = atoi(argv[9]); if (! argv[10]) return 1; lrx = atoi(argv[10]); if (! argv[11]) return 1; lry = atoi(argv[11]); if (! argv[12]) return 1; llx = atoi(argv[12]); if (! argv[13]) return 1; lly = atoi(argv[13]); } else { double xval, yval; unsigned long len; /* Get info */ printf("Scanline length in input file?: "); ret = scanf("%lu", &len); if (ret != 1) perror("scanf"); scanlen = len; if (scanlen <= 0) { bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen); } printf("Line Length and Number of scan lines in new file?: "); ret = scanf("%lf%lf", &xval, &yval); if (ret != 2) { perror("scanf"); } /* sanitize xval,yval*/ if (xval < 1) xval = 1; else if (xval > INT_MAX-1) xval = INT_MAX-1; xnum = xval; if (yval < 1) yval = 1; else if (yval > INT_MAX-1) yval = INT_MAX-1; ynum = yval; printf("Upper left corner (in input file) (x, y)?: "); ret = scanf("%f%f", &ulx, &uly); if (ret != 2) perror("scanf"); printf("Upper right corner (x, y)?: "); ret = scanf("%f%f", &urx, &ury); if (ret != 2) perror("scanf"); printf("Lower right corner (x, y)?: "); ret = scanf("%f%f", &lrx, &lry); if (ret != 2) perror("scanf"); printf("Lower left corner (x, y)?: "); ret = scanf("%f%f", &llx, &lly); if (ret != 2) perror("scanf"); } /* See how many lines we can buffer */ init_buffer(); /* Check for silly buffer syndrome */ if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) { fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n"); fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n"); fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n"); fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n"); } /* Move all points */ for (row = 0; row < ynum; row++) { /* calculate left point of row */ bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx; by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly; /* calculate right point of row */ bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx; by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry; for (col = 0; col < xnum; col++) { /* calculate point along row */ bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1; by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1; /* Make sure we are in the buffer */ yindex = round(by) - buf_start; if (yindex >= buflines) { fill_buffer(round(by)); yindex = round(by) - buf_start; } yindex = yindex + buf_start; value = buffer[ yindex * scanlen + round(bx) ]; ret = fwrite(&value, sizeof(value), 1, ofp); if (ret == 0) perror("fwrite"); } } bu_free(buffer, "buffer"); return 0; } /* * Local Variables: * mode: C * tab-width: 8 * indent-tabs-mode: t * c-file-style: "stroustrup" * End: * ex: shiftwidth=4 tabstop=8 */
27.2
248
(translation_unit) "/* B W C R O P . C\n * BRL-CAD\n *\n * Copyright (c) 1986-2019 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public License\n * version 2.1 as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * 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 file; see the file named COPYING for more\n * information.\n */\n/** @file util/bwcrop.c\n *\n * Crop Black and White files.\n *\n * Given four "corner points" in the input file, we produce an output\n * file of the requested size consisting of the nearest pixels. No\n * filtering/interpolating is done.\n *\n * This can handle arbitrarily large files. We keep a buffer of scan\n * lines centered around the last point that fell outside of the\n * buffer. Note: this buffer code is shared with bwscale.c\n *\n */\n\n#include "common.h"\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <limits.h> /* for INT_MAX */\n#include "vmath.h"\n\n#include "bu/file.h"\n#include "bu/malloc.h"\n#include "bu/exit.h"\n\n\n#define round(x) ((int)(x+0.5))\n#define MAXBUFBYTES BU_PAGE_SIZE*BU_PAGE_SIZE /* max bytes to malloc in buffer space */\n\nunsigned char *buffer;\nssize_t scanlen; /* length of infile scanlines */\nssize_t buflines; /* Number of lines held in buffer */\noff_t buf_start = -1000; /* First line in buffer */\n\nunsigned long xnum, ynum; /* Number of pixels in new file */\nfloat ulx, uly, urx, ury, lrx, lry, llx, lly; /* Corners of original file */\n\nFILE *ifp, *ofp;\n\nstatic const char usage[] = "\\nUsage: bwcrop in.bw out.bw (I prompt!)\n\\n or bwcrop in.bw out.bw inwidth outwidth outheight\n\\n ulx uly urx ury lrx lry llx lly\n";\n\n/*\n * Determine max number of lines to buffer.\n * and malloc space for it.\n * XXX - CHECK FILE SIZE\n */\nvoid\ninit_buffer()\n{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES / scanlen;\n\n /*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */\n if (max > BU_PAGE_SIZE)\n max = BU_PAGE_SIZE;\n\n if (max < scanlen)\n buflines = max;\n else\n buflines = scanlen;\n\n buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer");\n}\n\n\n/*\n * Load the buffer with scan lines centered around\n * the given y coordinate.\n */\nvoid\nfill_buffer(int y)\n{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n buf_start = 0;\n\n bu_fseek(ifp, buf_start * scanlen, 0);\n ret = fread(buffer, scanlen, buflines, ifp);\n if (ret == 0)\n perror("fread");\n}\n\n\nint\nmain(int argc, char **argv)\n{\n float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssize_t yindex;\n char value;\n size_t ret;\n\n int atoival;\n\n if (argc < 3) {\n bu_exit(1, "%s", usage);\n }\n if ((ifp = fopen(argv[1], "r")) == NULL) {\n bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);\n }\n if ((ofp = fopen(argv[2], "w")) == NULL) {\n bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);\n }\n\n if (argc == 14) {\n if (! argv[3])\n return 1;\n scanlen = atoi(argv[3]);\n\n if (! argv[4])\n return 1;\n atoival = atoi(argv[4]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n xnum = atoival;\n\n if (! argv[5])\n return 1;\n atoival = atoi(argv[5]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n ynum = atoival;\n\n if (! argv[6])\n return 1;\n ulx = atoi(argv[6]);\n\n if (! argv[7])\n return 1;\n uly = atoi(argv[7]);\n\n if (! argv[8])\n return 1;\n urx = atoi(argv[8]);\n\n if (! argv[9])\n return 1;\n ury = atoi(argv[9]);\n\n if (! argv[10])\n return 1;\n lrx = atoi(argv[10]);\n\n if (! argv[11])\n return 1;\n lry = atoi(argv[11]);\n\n if (! argv[12])\n return 1;\n llx = atoi(argv[12]);\n\n if (! argv[13])\n return 1;\n lly = atoi(argv[13]);\n } else {\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }\n\n /* See how many lines we can buffer */\n init_buffer();\n\n /* Check for silly buffer syndrome */\n if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");\n fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");\n fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");\n fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");\n }\n\n /* Move all points */\n for (row = 0; row < ynum; row++) {\n /* calculate left point of row */\n bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n /* calculate right point of row */\n bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }\n }\n\n bu_free(buffer, "buffer");\n return 0;\n}\n\n\n/*\n * Local Variables:\n * mode: C\n * tab-width: 8\n * indent-tabs-mode: t\n * c-file-style: "stroustrup"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */\n" (comment) "/* B W C R O P . C\n * BRL-CAD\n *\n * Copyright (c) 1986-2019 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public License\n * version 2.1 as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * 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 file; see the file named COPYING for more\n * information.\n */" (comment) "/** @file util/bwcrop.c\n *\n * Crop Black and White files.\n *\n * Given four "corner points" in the input file, we produce an output\n * file of the requested size consisting of the nearest pixels. No\n * filtering/interpolating is done.\n *\n * This can handle arbitrarily large files. We keep a buffer of scan\n * lines centered around the last point that fell outside of the\n * buffer. Note: this buffer code is shared with bwscale.c\n *\n */" (preproc_include) "#include "common.h"\n" (#include) "#include" (string_literal) ""common.h"" (") """ (string_content) "common.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 <limits.h> /* for INT_MAX */\n" (#include) "#include" (system_lib_string) "<limits.h>" (comment) "/* for INT_MAX */" (preproc_include) "#include "vmath.h"\n" (#include) "#include" (string_literal) ""vmath.h"" (") """ (string_content) "vmath.h" (") """ (preproc_include) "#include "bu/file.h"\n" (#include) "#include" (string_literal) ""bu/file.h"" (") """ (string_content) "bu/file.h" (") """ (preproc_include) "#include "bu/malloc.h"\n" (#include) "#include" (string_literal) ""bu/malloc.h"" (") """ (string_content) "bu/malloc.h" (") """ (preproc_include) "#include "bu/exit.h"\n" (#include) "#include" (string_literal) ""bu/exit.h"" (") """ (string_content) "bu/exit.h" (") """ (preproc_function_def) "#define round(x) ((int)(x+0.5))\n" (#define) "#define" (identifier) "round" (preproc_params) "(x)" (() "(" (identifier) "x" ()) ")" (preproc_arg) "((int)(x+0.5))" (preproc_def) "#define MAXBUFBYTES BU_PAGE_SIZE*BU_PAGE_SIZE /* max bytes to malloc in buffer space */\n" (#define) "#define" (identifier) "MAXBUFBYTES" (preproc_arg) "BU_PAGE_SIZE*BU_PAGE_SIZE " (comment) "/* max bytes to malloc in buffer space */" (declaration) "unsigned char *buffer;" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (;) ";" (declaration) "ssize_t scanlen;" (primitive_type) "ssize_t" (identifier) "scanlen" (;) ";" (comment) "/* length of infile scanlines */" (declaration) "ssize_t buflines;" (primitive_type) "ssize_t" (identifier) "buflines" (;) ";" (comment) "/* Number of lines held in buffer */" (declaration) "off_t buf_start = -1000;" (type_identifier) "off_t" (init_declarator) "buf_start = -1000" (identifier) "buf_start" (=) "=" (number_literal) "-1000" (;) ";" (comment) "/* First line in buffer */" (declaration) "unsigned long xnum, ynum;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "xnum" (,) "," (identifier) "ynum" (;) ";" (comment) "/* Number of pixels in new file */" (declaration) "float ulx, uly, urx, ury, lrx, lry, llx, lly;" (primitive_type) "float" (identifier) "ulx" (,) "," (identifier) "uly" (,) "," (identifier) "urx" (,) "," (identifier) "ury" (,) "," (identifier) "lrx" (,) "," (identifier) "lry" (,) "," (identifier) "llx" (,) "," (identifier) "lly" (;) ";" (comment) "/* Corners of original file */" (declaration) "FILE *ifp, *ofp;" (type_identifier) "FILE" (pointer_declarator) "*ifp" (*) "*" (identifier) "ifp" (,) "," (pointer_declarator) "*ofp" (*) "*" (identifier) "ofp" (;) ";" (declaration) "static const char usage[] = "\\nUsage: bwcrop in.bw out.bw (I prompt!)\n\\n or bwcrop in.bw out.bw inwidth outwidth outheight\n\\n ulx uly urx ury lrx lry llx lly\n";" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "usage[] = "\\nUsage: bwcrop in.bw out.bw (I prompt!)\n\\n or bwcrop in.bw out.bw inwidth outwidth outheight\n\\n ulx uly urx ury lrx lry llx lly\n"" (array_declarator) "usage[]" (identifier) "usage" ([) "[" (]) "]" (=) "=" (string_literal) ""\\nUsage: bwcrop in.bw out.bw (I prompt!)\n\\n or bwcrop in.bw out.bw inwidth outwidth outheight\n\\n ulx uly urx ury lrx lry llx lly\n"" (") """ (escape_sequence) "\\n" (string_content) "Usage: bwcrop in.bw out.bw (I prompt!)" (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) " or bwcrop in.bw out.bw inwidth outwidth outheight" (escape_sequence) "\n" (escape_sequence) "\\n" (string_content) " ulx uly urx ury lrx lry llx lly" (escape_sequence) "\n" (") """ (;) ";" (comment) "/*\n * Determine max number of lines to buffer.\n * and malloc space for it.\n * XXX - CHECK FILE SIZE\n */" (function_definition) "void\ninit_buffer()\n{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES / scanlen;\n\n /*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */\n if (max > BU_PAGE_SIZE)\n max = BU_PAGE_SIZE;\n\n if (max < scanlen)\n buflines = max;\n else\n buflines = scanlen;\n\n buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer");\n}" (primitive_type) "void" (function_declarator) "init_buffer()" (identifier) "init_buffer" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES / scanlen;\n\n /*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */\n if (max > BU_PAGE_SIZE)\n max = BU_PAGE_SIZE;\n\n if (max < scanlen)\n buflines = max;\n else\n buflines = scanlen;\n\n buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer");\n}" ({) "{" (declaration) "ssize_t max;" (primitive_type) "ssize_t" (identifier) "max" (;) ";" (comment) "/* See how many we could buffer */" (expression_statement) "max = MAXBUFBYTES / scanlen;" (assignment_expression) "max = MAXBUFBYTES / scanlen" (identifier) "max" (=) "=" (binary_expression) "MAXBUFBYTES / scanlen" (identifier) "MAXBUFBYTES" (/) "/" (identifier) "scanlen" (;) ";" (comment) "/*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */" (if_statement) "if (max > BU_PAGE_SIZE)\n max = BU_PAGE_SIZE;" (if) "if" (parenthesized_expression) "(max > BU_PAGE_SIZE)" (() "(" (binary_expression) "max > BU_PAGE_SIZE" (identifier) "max" (>) ">" (identifier) "BU_PAGE_SIZE" ()) ")" (expression_statement) "max = BU_PAGE_SIZE;" (assignment_expression) "max = BU_PAGE_SIZE" (identifier) "max" (=) "=" (identifier) "BU_PAGE_SIZE" (;) ";" (if_statement) "if (max < scanlen)\n buflines = max;\n else\n buflines = scanlen;" (if) "if" (parenthesized_expression) "(max < scanlen)" (() "(" (binary_expression) "max < scanlen" (identifier) "max" (<) "<" (identifier) "scanlen" ()) ")" (expression_statement) "buflines = max;" (assignment_expression) "buflines = max" (identifier) "buflines" (=) "=" (identifier) "max" (;) ";" (else_clause) "else\n buflines = scanlen;" (else) "else" (expression_statement) "buflines = scanlen;" (assignment_expression) "buflines = scanlen" (identifier) "buflines" (=) "=" (identifier) "scanlen" (;) ";" (expression_statement) "buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer");" (assignment_expression) "buffer = (unsigned char *)bu_malloc(buflines * scanlen, "buffer")" (identifier) "buffer" (=) "=" (cast_expression) "(unsigned char *)bu_malloc(buflines * scanlen, "buffer")" (() "(" (type_descriptor) "unsigned char *" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "bu_malloc(buflines * scanlen, "buffer")" (identifier) "bu_malloc" (argument_list) "(buflines * scanlen, "buffer")" (() "(" (binary_expression) "buflines * scanlen" (identifier) "buflines" (*) "*" (identifier) "scanlen" (,) "," (string_literal) ""buffer"" (") """ (string_content) "buffer" (") """ ()) ")" (;) ";" (}) "}" (comment) "/*\n * Load the buffer with scan lines centered around\n * the given y coordinate.\n */" (function_definition) "void\nfill_buffer(int y)\n{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n buf_start = 0;\n\n bu_fseek(ifp, buf_start * scanlen, 0);\n ret = fread(buffer, scanlen, buflines, ifp);\n if (ret == 0)\n perror("fread");\n}" (primitive_type) "void" (function_declarator) "fill_buffer(int y)" (identifier) "fill_buffer" (parameter_list) "(int y)" (() "(" (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (compound_statement) "{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n buf_start = 0;\n\n bu_fseek(ifp, buf_start * scanlen, 0);\n ret = fread(buffer, scanlen, buflines, ifp);\n if (ret == 0)\n perror("fread");\n}" ({) "{" (declaration) "size_t ret;" (primitive_type) "size_t" (identifier) "ret" (;) ";" (expression_statement) "buf_start = y - buflines/2;" (assignment_expression) "buf_start = y - buflines/2" (identifier) "buf_start" (=) "=" (binary_expression) "y - buflines/2" (identifier) "y" (-) "-" (binary_expression) "buflines/2" (identifier) "buflines" (/) "/" (number_literal) "2" (;) ";" (if_statement) "if (buf_start < 0)\n buf_start = 0;" (if) "if" (parenthesized_expression) "(buf_start < 0)" (() "(" (binary_expression) "buf_start < 0" (identifier) "buf_start" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "buf_start = 0;" (assignment_expression) "buf_start = 0" (identifier) "buf_start" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "bu_fseek(ifp, buf_start * scanlen, 0);" (call_expression) "bu_fseek(ifp, buf_start * scanlen, 0)" (identifier) "bu_fseek" (argument_list) "(ifp, buf_start * scanlen, 0)" (() "(" (identifier) "ifp" (,) "," (binary_expression) "buf_start * scanlen" (identifier) "buf_start" (*) "*" (identifier) "scanlen" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "ret = fread(buffer, scanlen, buflines, ifp);" (assignment_expression) "ret = fread(buffer, scanlen, buflines, ifp)" (identifier) "ret" (=) "=" (call_expression) "fread(buffer, scanlen, buflines, ifp)" (identifier) "fread" (argument_list) "(buffer, scanlen, buflines, ifp)" (() "(" (identifier) "buffer" (,) "," (identifier) "scanlen" (,) "," (identifier) "buflines" (,) "," (identifier) "ifp" ()) ")" (;) ";" (if_statement) "if (ret == 0)\n perror("fread");" (if) "if" (parenthesized_expression) "(ret == 0)" (() "(" (binary_expression) "ret == 0" (identifier) "ret" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "perror("fread");" (call_expression) "perror("fread")" (identifier) "perror" (argument_list) "("fread")" (() "(" (string_literal) ""fread"" (") """ (string_content) "fread" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "int\nmain(int argc, char **argv)\n{\n float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssize_t yindex;\n char value;\n size_t ret;\n\n int atoival;\n\n if (argc < 3) {\n bu_exit(1, "%s", usage);\n }\n if ((ifp = fopen(argv[1], "r")) == NULL) {\n bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);\n }\n if ((ofp = fopen(argv[2], "w")) == NULL) {\n bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);\n }\n\n if (argc == 14) {\n if (! argv[3])\n return 1;\n scanlen = atoi(argv[3]);\n\n if (! argv[4])\n return 1;\n atoival = atoi(argv[4]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n xnum = atoival;\n\n if (! argv[5])\n return 1;\n atoival = atoi(argv[5]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n ynum = atoival;\n\n if (! argv[6])\n return 1;\n ulx = atoi(argv[6]);\n\n if (! argv[7])\n return 1;\n uly = atoi(argv[7]);\n\n if (! argv[8])\n return 1;\n urx = atoi(argv[8]);\n\n if (! argv[9])\n return 1;\n ury = atoi(argv[9]);\n\n if (! argv[10])\n return 1;\n lrx = atoi(argv[10]);\n\n if (! argv[11])\n return 1;\n lry = atoi(argv[11]);\n\n if (! argv[12])\n return 1;\n llx = atoi(argv[12]);\n\n if (! argv[13])\n return 1;\n lly = atoi(argv[13]);\n } else {\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }\n\n /* See how many lines we can buffer */\n init_buffer();\n\n /* Check for silly buffer syndrome */\n if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");\n fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");\n fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");\n fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");\n }\n\n /* Move all points */\n for (row = 0; row < ynum; row++) {\n /* calculate left point of row */\n bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n /* calculate right point of row */\n bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }\n }\n\n bu_free(buffer, "buffer");\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 float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssize_t yindex;\n char value;\n size_t ret;\n\n int atoival;\n\n if (argc < 3) {\n bu_exit(1, "%s", usage);\n }\n if ((ifp = fopen(argv[1], "r")) == NULL) {\n bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);\n }\n if ((ofp = fopen(argv[2], "w")) == NULL) {\n bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);\n }\n\n if (argc == 14) {\n if (! argv[3])\n return 1;\n scanlen = atoi(argv[3]);\n\n if (! argv[4])\n return 1;\n atoival = atoi(argv[4]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n xnum = atoival;\n\n if (! argv[5])\n return 1;\n atoival = atoi(argv[5]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n ynum = atoival;\n\n if (! argv[6])\n return 1;\n ulx = atoi(argv[6]);\n\n if (! argv[7])\n return 1;\n uly = atoi(argv[7]);\n\n if (! argv[8])\n return 1;\n urx = atoi(argv[8]);\n\n if (! argv[9])\n return 1;\n ury = atoi(argv[9]);\n\n if (! argv[10])\n return 1;\n lrx = atoi(argv[10]);\n\n if (! argv[11])\n return 1;\n lry = atoi(argv[11]);\n\n if (! argv[12])\n return 1;\n llx = atoi(argv[12]);\n\n if (! argv[13])\n return 1;\n lly = atoi(argv[13]);\n } else {\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }\n\n /* See how many lines we can buffer */\n init_buffer();\n\n /* Check for silly buffer syndrome */\n if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");\n fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");\n fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");\n fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");\n }\n\n /* Move all points */\n for (row = 0; row < ynum; row++) {\n /* calculate left point of row */\n bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n /* calculate right point of row */\n bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }\n }\n\n bu_free(buffer, "buffer");\n return 0;\n}" ({) "{" (declaration) "float bx1, by1, bx2, by2, bx, by;" (primitive_type) "float" (identifier) "bx1" (,) "," (identifier) "by1" (,) "," (identifier) "bx2" (,) "," (identifier) "by2" (,) "," (identifier) "bx" (,) "," (identifier) "by" (;) ";" (declaration) "size_t row, col;" (primitive_type) "size_t" (identifier) "row" (,) "," (identifier) "col" (;) ";" (declaration) "ssize_t yindex;" (primitive_type) "ssize_t" (identifier) "yindex" (;) ";" (declaration) "char value;" (primitive_type) "char" (identifier) "value" (;) ";" (declaration) "size_t ret;" (primitive_type) "size_t" (identifier) "ret" (;) ";" (declaration) "int atoival;" (primitive_type) "int" (identifier) "atoival" (;) ";" (if_statement) "if (argc < 3) {\n bu_exit(1, "%s", usage);\n }" (if) "if" (parenthesized_expression) "(argc < 3)" (() "(" (binary_expression) "argc < 3" (identifier) "argc" (<) "<" (number_literal) "3" ()) ")" (compound_statement) "{\n bu_exit(1, "%s", usage);\n }" ({) "{" (expression_statement) "bu_exit(1, "%s", usage);" (call_expression) "bu_exit(1, "%s", usage)" (identifier) "bu_exit" (argument_list) "(1, "%s", usage)" (() "(" (number_literal) "1" (,) "," (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (identifier) "usage" ()) ")" (;) ";" (}) "}" (if_statement) "if ((ifp = fopen(argv[1], "r")) == NULL) {\n bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);\n }" (if) "if" (parenthesized_expression) "((ifp = fopen(argv[1], "r")) == NULL)" (() "(" (binary_expression) "(ifp = fopen(argv[1], "r")) == NULL" (parenthesized_expression) "(ifp = fopen(argv[1], "r"))" (() "(" (assignment_expression) "ifp = fopen(argv[1], "r")" (identifier) "ifp" (=) "=" (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 bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);\n }" ({) "{" (expression_statement) "bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1]);" (call_expression) "bu_exit(2, "bwcrop: can't open %s for reading\n", argv[1])" (identifier) "bu_exit" (argument_list) "(2, "bwcrop: can't open %s for reading\n", argv[1])" (() "(" (number_literal) "2" (,) "," (string_literal) ""bwcrop: can't open %s for reading\n"" (") """ (string_content) "bwcrop: can't open %s for reading" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" ()) ")" (;) ";" (}) "}" (if_statement) "if ((ofp = fopen(argv[2], "w")) == NULL) {\n bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);\n }" (if) "if" (parenthesized_expression) "((ofp = fopen(argv[2], "w")) == NULL)" (() "(" (binary_expression) "(ofp = fopen(argv[2], "w")) == NULL" (parenthesized_expression) "(ofp = fopen(argv[2], "w"))" (() "(" (assignment_expression) "ofp = fopen(argv[2], "w")" (identifier) "ofp" (=) "=" (call_expression) "fopen(argv[2], "w")" (identifier) "fopen" (argument_list) "(argv[2], "w")" (() "(" (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" (,) "," (string_literal) ""w"" (") """ (string_content) "w" (") """ ()) ")" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);\n }" ({) "{" (expression_statement) "bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2]);" (call_expression) "bu_exit(3, "bwcrop: can't open %s for writing\n", argv[2])" (identifier) "bu_exit" (argument_list) "(3, "bwcrop: can't open %s for writing\n", argv[2])" (() "(" (number_literal) "3" (,) "," (string_literal) ""bwcrop: can't open %s for writing\n"" (") """ (string_content) "bwcrop: can't open %s for writing" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "argv[2]" (identifier) "argv" ([) "[" (number_literal) "2" (]) "]" ()) ")" (;) ";" (}) "}" (if_statement) "if (argc == 14) {\n if (! argv[3])\n return 1;\n scanlen = atoi(argv[3]);\n\n if (! argv[4])\n return 1;\n atoival = atoi(argv[4]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n xnum = atoival;\n\n if (! argv[5])\n return 1;\n atoival = atoi(argv[5]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n ynum = atoival;\n\n if (! argv[6])\n return 1;\n ulx = atoi(argv[6]);\n\n if (! argv[7])\n return 1;\n uly = atoi(argv[7]);\n\n if (! argv[8])\n return 1;\n urx = atoi(argv[8]);\n\n if (! argv[9])\n return 1;\n ury = atoi(argv[9]);\n\n if (! argv[10])\n return 1;\n lrx = atoi(argv[10]);\n\n if (! argv[11])\n return 1;\n lry = atoi(argv[11]);\n\n if (! argv[12])\n return 1;\n llx = atoi(argv[12]);\n\n if (! argv[13])\n return 1;\n lly = atoi(argv[13]);\n } else {\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }" (if) "if" (parenthesized_expression) "(argc == 14)" (() "(" (binary_expression) "argc == 14" (identifier) "argc" (==) "==" (number_literal) "14" ()) ")" (compound_statement) "{\n if (! argv[3])\n return 1;\n scanlen = atoi(argv[3]);\n\n if (! argv[4])\n return 1;\n atoival = atoi(argv[4]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n xnum = atoival;\n\n if (! argv[5])\n return 1;\n atoival = atoi(argv[5]);\n if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;\n ynum = atoival;\n\n if (! argv[6])\n return 1;\n ulx = atoi(argv[6]);\n\n if (! argv[7])\n return 1;\n uly = atoi(argv[7]);\n\n if (! argv[8])\n return 1;\n urx = atoi(argv[8]);\n\n if (! argv[9])\n return 1;\n ury = atoi(argv[9]);\n\n if (! argv[10])\n return 1;\n lrx = atoi(argv[10]);\n\n if (! argv[11])\n return 1;\n lry = atoi(argv[11]);\n\n if (! argv[12])\n return 1;\n llx = atoi(argv[12]);\n\n if (! argv[13])\n return 1;\n lly = atoi(argv[13]);\n }" ({) "{" (if_statement) "if (! argv[3])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[3])" (() "(" (unary_expression) "! argv[3]" (!) "!" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "scanlen = atoi(argv[3]);" (assignment_expression) "scanlen = atoi(argv[3])" (identifier) "scanlen" (=) "=" (call_expression) "atoi(argv[3])" (identifier) "atoi" (argument_list) "(argv[3])" (() "(" (subscript_expression) "argv[3]" (identifier) "argv" ([) "[" (number_literal) "3" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[4])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[4])" (() "(" (unary_expression) "! argv[4]" (!) "!" (subscript_expression) "argv[4]" (identifier) "argv" ([) "[" (number_literal) "4" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "atoival = atoi(argv[4]);" (assignment_expression) "atoival = atoi(argv[4])" (identifier) "atoival" (=) "=" (call_expression) "atoi(argv[4])" (identifier) "atoi" (argument_list) "(argv[4])" (() "(" (subscript_expression) "argv[4]" (identifier) "argv" ([) "[" (number_literal) "4" (]) "]" ()) ")" (;) ";" (if_statement) "if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (if) "if" (parenthesized_expression) "(atoival < 0)" (() "(" (binary_expression) "atoival < 0" (identifier) "atoival" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "atoival = 0;" (assignment_expression) "atoival = 0" (identifier) "atoival" (=) "=" (number_literal) "0" (;) ";" (else_clause) "else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (else) "else" (if_statement) "if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (if) "if" (parenthesized_expression) "(atoival > INT_MAX-1)" (() "(" (binary_expression) "atoival > INT_MAX-1" (identifier) "atoival" (>) ">" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" ()) ")" (expression_statement) "atoival = INT_MAX-1;" (assignment_expression) "atoival = INT_MAX-1" (identifier) "atoival" (=) "=" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "xnum = atoival;" (assignment_expression) "xnum = atoival" (identifier) "xnum" (=) "=" (identifier) "atoival" (;) ";" (if_statement) "if (! argv[5])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[5])" (() "(" (unary_expression) "! argv[5]" (!) "!" (subscript_expression) "argv[5]" (identifier) "argv" ([) "[" (number_literal) "5" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "atoival = atoi(argv[5]);" (assignment_expression) "atoival = atoi(argv[5])" (identifier) "atoival" (=) "=" (call_expression) "atoi(argv[5])" (identifier) "atoi" (argument_list) "(argv[5])" (() "(" (subscript_expression) "argv[5]" (identifier) "argv" ([) "[" (number_literal) "5" (]) "]" ()) ")" (;) ";" (if_statement) "if (atoival < 0)\n atoival = 0;\n else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (if) "if" (parenthesized_expression) "(atoival < 0)" (() "(" (binary_expression) "atoival < 0" (identifier) "atoival" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "atoival = 0;" (assignment_expression) "atoival = 0" (identifier) "atoival" (=) "=" (number_literal) "0" (;) ";" (else_clause) "else if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (else) "else" (if_statement) "if (atoival > INT_MAX-1)\n atoival = INT_MAX-1;" (if) "if" (parenthesized_expression) "(atoival > INT_MAX-1)" (() "(" (binary_expression) "atoival > INT_MAX-1" (identifier) "atoival" (>) ">" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" ()) ")" (expression_statement) "atoival = INT_MAX-1;" (assignment_expression) "atoival = INT_MAX-1" (identifier) "atoival" (=) "=" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "ynum = atoival;" (assignment_expression) "ynum = atoival" (identifier) "ynum" (=) "=" (identifier) "atoival" (;) ";" (if_statement) "if (! argv[6])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[6])" (() "(" (unary_expression) "! argv[6]" (!) "!" (subscript_expression) "argv[6]" (identifier) "argv" ([) "[" (number_literal) "6" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "ulx = atoi(argv[6]);" (assignment_expression) "ulx = atoi(argv[6])" (identifier) "ulx" (=) "=" (call_expression) "atoi(argv[6])" (identifier) "atoi" (argument_list) "(argv[6])" (() "(" (subscript_expression) "argv[6]" (identifier) "argv" ([) "[" (number_literal) "6" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[7])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[7])" (() "(" (unary_expression) "! argv[7]" (!) "!" (subscript_expression) "argv[7]" (identifier) "argv" ([) "[" (number_literal) "7" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "uly = atoi(argv[7]);" (assignment_expression) "uly = atoi(argv[7])" (identifier) "uly" (=) "=" (call_expression) "atoi(argv[7])" (identifier) "atoi" (argument_list) "(argv[7])" (() "(" (subscript_expression) "argv[7]" (identifier) "argv" ([) "[" (number_literal) "7" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[8])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[8])" (() "(" (unary_expression) "! argv[8]" (!) "!" (subscript_expression) "argv[8]" (identifier) "argv" ([) "[" (number_literal) "8" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "urx = atoi(argv[8]);" (assignment_expression) "urx = atoi(argv[8])" (identifier) "urx" (=) "=" (call_expression) "atoi(argv[8])" (identifier) "atoi" (argument_list) "(argv[8])" (() "(" (subscript_expression) "argv[8]" (identifier) "argv" ([) "[" (number_literal) "8" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[9])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[9])" (() "(" (unary_expression) "! argv[9]" (!) "!" (subscript_expression) "argv[9]" (identifier) "argv" ([) "[" (number_literal) "9" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "ury = atoi(argv[9]);" (assignment_expression) "ury = atoi(argv[9])" (identifier) "ury" (=) "=" (call_expression) "atoi(argv[9])" (identifier) "atoi" (argument_list) "(argv[9])" (() "(" (subscript_expression) "argv[9]" (identifier) "argv" ([) "[" (number_literal) "9" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[10])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[10])" (() "(" (unary_expression) "! argv[10]" (!) "!" (subscript_expression) "argv[10]" (identifier) "argv" ([) "[" (number_literal) "10" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "lrx = atoi(argv[10]);" (assignment_expression) "lrx = atoi(argv[10])" (identifier) "lrx" (=) "=" (call_expression) "atoi(argv[10])" (identifier) "atoi" (argument_list) "(argv[10])" (() "(" (subscript_expression) "argv[10]" (identifier) "argv" ([) "[" (number_literal) "10" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[11])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[11])" (() "(" (unary_expression) "! argv[11]" (!) "!" (subscript_expression) "argv[11]" (identifier) "argv" ([) "[" (number_literal) "11" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "lry = atoi(argv[11]);" (assignment_expression) "lry = atoi(argv[11])" (identifier) "lry" (=) "=" (call_expression) "atoi(argv[11])" (identifier) "atoi" (argument_list) "(argv[11])" (() "(" (subscript_expression) "argv[11]" (identifier) "argv" ([) "[" (number_literal) "11" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[12])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[12])" (() "(" (unary_expression) "! argv[12]" (!) "!" (subscript_expression) "argv[12]" (identifier) "argv" ([) "[" (number_literal) "12" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "llx = atoi(argv[12]);" (assignment_expression) "llx = atoi(argv[12])" (identifier) "llx" (=) "=" (call_expression) "atoi(argv[12])" (identifier) "atoi" (argument_list) "(argv[12])" (() "(" (subscript_expression) "argv[12]" (identifier) "argv" ([) "[" (number_literal) "12" (]) "]" ()) ")" (;) ";" (if_statement) "if (! argv[13])\n return 1;" (if) "if" (parenthesized_expression) "(! argv[13])" (() "(" (unary_expression) "! argv[13]" (!) "!" (subscript_expression) "argv[13]" (identifier) "argv" ([) "[" (number_literal) "13" (]) "]" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "lly = atoi(argv[13]);" (assignment_expression) "lly = atoi(argv[13])" (identifier) "lly" (=) "=" (call_expression) "atoi(argv[13])" (identifier) "atoi" (argument_list) "(argv[13])" (() "(" (subscript_expression) "argv[13]" (identifier) "argv" ([) "[" (number_literal) "13" (]) "]" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }" (else) "else" (compound_statement) "{\n double xval, yval;\n unsigned long len;\n /* Get info */\n\n printf("Scanline length in input file?: ");\n ret = scanf("%lu", &len);\n if (ret != 1)\n perror("scanf");\n scanlen = len;\n if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }\n\n printf("Line Length and Number of scan lines in new file?: ");\n ret = scanf("%lf%lf", &xval, &yval);\n if (ret != 2) {\n perror("scanf");\n }\n\n /* sanitize xval,yval*/\n if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;\n xnum = xval;\n if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;\n ynum = yval;\n\n printf("Upper left corner (in input file) (x, y)?: ");\n ret = scanf("%f%f", &ulx, &uly);\n if (ret != 2)\n perror("scanf");\n\n printf("Upper right corner (x, y)?: ");\n ret = scanf("%f%f", &urx, &ury);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower right corner (x, y)?: ");\n ret = scanf("%f%f", &lrx, &lry);\n if (ret != 2)\n perror("scanf");\n\n printf("Lower left corner (x, y)?: ");\n ret = scanf("%f%f", &llx, &lly);\n if (ret != 2)\n perror("scanf");\n }" ({) "{" (declaration) "double xval, yval;" (primitive_type) "double" (identifier) "xval" (,) "," (identifier) "yval" (;) ";" (declaration) "unsigned long len;" (sized_type_specifier) "unsigned long" (unsigned) "unsigned" (long) "long" (identifier) "len" (;) ";" (comment) "/* Get info */" (expression_statement) "printf("Scanline length in input file?: ");" (call_expression) "printf("Scanline length in input file?: ")" (identifier) "printf" (argument_list) "("Scanline length in input file?: ")" (() "(" (string_literal) ""Scanline length in input file?: "" (") """ (string_content) "Scanline length in input file?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%lu", &len);" (assignment_expression) "ret = scanf("%lu", &len)" (identifier) "ret" (=) "=" (call_expression) "scanf("%lu", &len)" (identifier) "scanf" (argument_list) "("%lu", &len)" (() "(" (string_literal) ""%lu"" (") """ (string_content) "%lu" (") """ (,) "," (pointer_expression) "&len" (&) "&" (identifier) "len" ()) ")" (;) ";" (if_statement) "if (ret != 1)\n perror("scanf");" (if) "if" (parenthesized_expression) "(ret != 1)" (() "(" (binary_expression) "ret != 1" (identifier) "ret" (!=) "!=" (number_literal) "1" ()) ")" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (expression_statement) "scanlen = len;" (assignment_expression) "scanlen = len" (identifier) "scanlen" (=) "=" (identifier) "len" (;) ";" (if_statement) "if (scanlen <= 0) {\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }" (if) "if" (parenthesized_expression) "(scanlen <= 0)" (() "(" (binary_expression) "scanlen <= 0" (identifier) "scanlen" (<=) "<=" (number_literal) "0" ()) ")" (compound_statement) "{\n bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);\n }" ({) "{" (expression_statement) "bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen);" (call_expression) "bu_exit(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen)" (identifier) "bu_exit" (argument_list) "(4, "bwcrop: scanlen = %zu, don't be ridiculous\n", scanlen)" (() "(" (number_literal) "4" (,) "," (string_literal) ""bwcrop: scanlen = %zu, don't be ridiculous\n"" (") """ (string_content) "bwcrop: scanlen = %zu, don't be ridiculous" (escape_sequence) "\n" (") """ (,) "," (identifier) "scanlen" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("Line Length and Number of scan lines in new file?: ");" (call_expression) "printf("Line Length and Number of scan lines in new file?: ")" (identifier) "printf" (argument_list) "("Line Length and Number of scan lines in new file?: ")" (() "(" (string_literal) ""Line Length and Number of scan lines in new file?: "" (") """ (string_content) "Line Length and Number of scan lines in new file?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%lf%lf", &xval, &yval);" (assignment_expression) "ret = scanf("%lf%lf", &xval, &yval)" (identifier) "ret" (=) "=" (call_expression) "scanf("%lf%lf", &xval, &yval)" (identifier) "scanf" (argument_list) "("%lf%lf", &xval, &yval)" (() "(" (string_literal) ""%lf%lf"" (") """ (string_content) "%lf%lf" (") """ (,) "," (pointer_expression) "&xval" (&) "&" (identifier) "xval" (,) "," (pointer_expression) "&yval" (&) "&" (identifier) "yval" ()) ")" (;) ";" (if_statement) "if (ret != 2) {\n perror("scanf");\n }" (if) "if" (parenthesized_expression) "(ret != 2)" (() "(" (binary_expression) "ret != 2" (identifier) "ret" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n perror("scanf");\n }" ({) "{" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* sanitize xval,yval*/" (if_statement) "if (xval < 1)\n xval = 1;\n else if (xval > INT_MAX-1)\n xval = INT_MAX-1;" (if) "if" (parenthesized_expression) "(xval < 1)" (() "(" (binary_expression) "xval < 1" (identifier) "xval" (<) "<" (number_literal) "1" ()) ")" (expression_statement) "xval = 1;" (assignment_expression) "xval = 1" (identifier) "xval" (=) "=" (number_literal) "1" (;) ";" (else_clause) "else if (xval > INT_MAX-1)\n xval = INT_MAX-1;" (else) "else" (if_statement) "if (xval > INT_MAX-1)\n xval = INT_MAX-1;" (if) "if" (parenthesized_expression) "(xval > INT_MAX-1)" (() "(" (binary_expression) "xval > INT_MAX-1" (identifier) "xval" (>) ">" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" ()) ")" (expression_statement) "xval = INT_MAX-1;" (assignment_expression) "xval = INT_MAX-1" (identifier) "xval" (=) "=" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "xnum = xval;" (assignment_expression) "xnum = xval" (identifier) "xnum" (=) "=" (identifier) "xval" (;) ";" (if_statement) "if (yval < 1)\n yval = 1;\n else if (yval > INT_MAX-1)\n yval = INT_MAX-1;" (if) "if" (parenthesized_expression) "(yval < 1)" (() "(" (binary_expression) "yval < 1" (identifier) "yval" (<) "<" (number_literal) "1" ()) ")" (expression_statement) "yval = 1;" (assignment_expression) "yval = 1" (identifier) "yval" (=) "=" (number_literal) "1" (;) ";" (else_clause) "else if (yval > INT_MAX-1)\n yval = INT_MAX-1;" (else) "else" (if_statement) "if (yval > INT_MAX-1)\n yval = INT_MAX-1;" (if) "if" (parenthesized_expression) "(yval > INT_MAX-1)" (() "(" (binary_expression) "yval > INT_MAX-1" (identifier) "yval" (>) ">" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" ()) ")" (expression_statement) "yval = INT_MAX-1;" (assignment_expression) "yval = INT_MAX-1" (identifier) "yval" (=) "=" (binary_expression) "INT_MAX-1" (identifier) "INT_MAX" (-) "-" (number_literal) "1" (;) ";" (expression_statement) "ynum = yval;" (assignment_expression) "ynum = yval" (identifier) "ynum" (=) "=" (identifier) "yval" (;) ";" (expression_statement) "printf("Upper left corner (in input file) (x, y)?: ");" (call_expression) "printf("Upper left corner (in input file) (x, y)?: ")" (identifier) "printf" (argument_list) "("Upper left corner (in input file) (x, y)?: ")" (() "(" (string_literal) ""Upper left corner (in input file) (x, y)?: "" (") """ (string_content) "Upper left corner (in input file) (x, y)?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%f%f", &ulx, &uly);" (assignment_expression) "ret = scanf("%f%f", &ulx, &uly)" (identifier) "ret" (=) "=" (call_expression) "scanf("%f%f", &ulx, &uly)" (identifier) "scanf" (argument_list) "("%f%f", &ulx, &uly)" (() "(" (string_literal) ""%f%f"" (") """ (string_content) "%f%f" (") """ (,) "," (pointer_expression) "&ulx" (&) "&" (identifier) "ulx" (,) "," (pointer_expression) "&uly" (&) "&" (identifier) "uly" ()) ")" (;) ";" (if_statement) "if (ret != 2)\n perror("scanf");" (if) "if" (parenthesized_expression) "(ret != 2)" (() "(" (binary_expression) "ret != 2" (identifier) "ret" (!=) "!=" (number_literal) "2" ()) ")" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (expression_statement) "printf("Upper right corner (x, y)?: ");" (call_expression) "printf("Upper right corner (x, y)?: ")" (identifier) "printf" (argument_list) "("Upper right corner (x, y)?: ")" (() "(" (string_literal) ""Upper right corner (x, y)?: "" (") """ (string_content) "Upper right corner (x, y)?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%f%f", &urx, &ury);" (assignment_expression) "ret = scanf("%f%f", &urx, &ury)" (identifier) "ret" (=) "=" (call_expression) "scanf("%f%f", &urx, &ury)" (identifier) "scanf" (argument_list) "("%f%f", &urx, &ury)" (() "(" (string_literal) ""%f%f"" (") """ (string_content) "%f%f" (") """ (,) "," (pointer_expression) "&urx" (&) "&" (identifier) "urx" (,) "," (pointer_expression) "&ury" (&) "&" (identifier) "ury" ()) ")" (;) ";" (if_statement) "if (ret != 2)\n perror("scanf");" (if) "if" (parenthesized_expression) "(ret != 2)" (() "(" (binary_expression) "ret != 2" (identifier) "ret" (!=) "!=" (number_literal) "2" ()) ")" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (expression_statement) "printf("Lower right corner (x, y)?: ");" (call_expression) "printf("Lower right corner (x, y)?: ")" (identifier) "printf" (argument_list) "("Lower right corner (x, y)?: ")" (() "(" (string_literal) ""Lower right corner (x, y)?: "" (") """ (string_content) "Lower right corner (x, y)?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%f%f", &lrx, &lry);" (assignment_expression) "ret = scanf("%f%f", &lrx, &lry)" (identifier) "ret" (=) "=" (call_expression) "scanf("%f%f", &lrx, &lry)" (identifier) "scanf" (argument_list) "("%f%f", &lrx, &lry)" (() "(" (string_literal) ""%f%f"" (") """ (string_content) "%f%f" (") """ (,) "," (pointer_expression) "&lrx" (&) "&" (identifier) "lrx" (,) "," (pointer_expression) "&lry" (&) "&" (identifier) "lry" ()) ")" (;) ";" (if_statement) "if (ret != 2)\n perror("scanf");" (if) "if" (parenthesized_expression) "(ret != 2)" (() "(" (binary_expression) "ret != 2" (identifier) "ret" (!=) "!=" (number_literal) "2" ()) ")" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (expression_statement) "printf("Lower left corner (x, y)?: ");" (call_expression) "printf("Lower left corner (x, y)?: ")" (identifier) "printf" (argument_list) "("Lower left corner (x, y)?: ")" (() "(" (string_literal) ""Lower left corner (x, y)?: "" (") """ (string_content) "Lower left corner (x, y)?: " (") """ ()) ")" (;) ";" (expression_statement) "ret = scanf("%f%f", &llx, &lly);" (assignment_expression) "ret = scanf("%f%f", &llx, &lly)" (identifier) "ret" (=) "=" (call_expression) "scanf("%f%f", &llx, &lly)" (identifier) "scanf" (argument_list) "("%f%f", &llx, &lly)" (() "(" (string_literal) ""%f%f"" (") """ (string_content) "%f%f" (") """ (,) "," (pointer_expression) "&llx" (&) "&" (identifier) "llx" (,) "," (pointer_expression) "&lly" (&) "&" (identifier) "lly" ()) ")" (;) ";" (if_statement) "if (ret != 2)\n perror("scanf");" (if) "if" (parenthesized_expression) "(ret != 2)" (() "(" (binary_expression) "ret != 2" (identifier) "ret" (!=) "!=" (number_literal) "2" ()) ")" (expression_statement) "perror("scanf");" (call_expression) "perror("scanf")" (identifier) "perror" (argument_list) "("scanf")" (() "(" (string_literal) ""scanf"" (") """ (string_content) "scanf" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* See how many lines we can buffer */" (expression_statement) "init_buffer();" (call_expression) "init_buffer()" (identifier) "init_buffer" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "/* Check for silly buffer syndrome */" (if_statement) "if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");\n fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");\n fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");\n fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");\n }" (if) "if" (parenthesized_expression) "((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2)" (() "(" (binary_expression) "(ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2" (binary_expression) "(ssize_t)abs((int)(ury - uly)) > buflines/2" (cast_expression) "(ssize_t)abs((int)(ury - uly))" (() "(" (type_descriptor) "ssize_t" (primitive_type) "ssize_t" ()) ")" (call_expression) "abs((int)(ury - uly))" (identifier) "abs" (argument_list) "((int)(ury - uly))" (() "(" (cast_expression) "(int)(ury - uly)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(ury - uly)" (() "(" (binary_expression) "ury - uly" (identifier) "ury" (-) "-" (identifier) "uly" ()) ")" ()) ")" (>) ">" (binary_expression) "buflines/2" (identifier) "buflines" (/) "/" (number_literal) "2" (||) "||" (binary_expression) "(ssize_t)abs((int)(lry - lly)) > buflines/2" (cast_expression) "(ssize_t)abs((int)(lry - lly))" (() "(" (type_descriptor) "ssize_t" (primitive_type) "ssize_t" ()) ")" (call_expression) "abs((int)(lry - lly))" (identifier) "abs" (argument_list) "((int)(lry - lly))" (() "(" (cast_expression) "(int)(lry - lly)" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (parenthesized_expression) "(lry - lly)" (() "(" (binary_expression) "lry - lly" (identifier) "lry" (-) "-" (identifier) "lly" ()) ")" ()) ")" (>) ">" (binary_expression) "buflines/2" (identifier) "buflines" (/) "/" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");\n fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");\n fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");\n fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");\n }" ({) "{" (expression_statement) "fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n");" (call_expression) "fprintf(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n")" (identifier) "fprintf" (argument_list) "(stderr, "bwcrop: Warning: You are skewing enough in the y direction\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""bwcrop: Warning: You are skewing enough in the y direction\n"" (") """ (string_content) "bwcrop: Warning: You are skewing enough in the y direction" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n");" (call_expression) "fprintf(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n")" (identifier) "fprintf" (argument_list) "(stderr, "bwcrop: relative to my buffer size that I will exhibit silly\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""bwcrop: relative to my buffer size that I will exhibit silly\n"" (") """ (string_content) "bwcrop: relative to my buffer size that I will exhibit silly" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n");" (call_expression) "fprintf(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n")" (identifier) "fprintf" (argument_list) "(stderr, "bwcrop: buffer syndrome (two replacements per scanline).\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""bwcrop: buffer syndrome (two replacements per scanline).\n"" (") """ (string_content) "bwcrop: buffer syndrome (two replacements per scanline)." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n");" (call_expression) "fprintf(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n")" (identifier) "fprintf" (argument_list) "(stderr, "bwcrop: Recompile me or use a smarter algorithm.\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""bwcrop: Recompile me or use a smarter algorithm.\n"" (") """ (string_content) "bwcrop: Recompile me or use a smarter algorithm." (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (comment) "/* Move all points */" (for_statement) "for (row = 0; row < ynum; row++) {\n /* calculate left point of row */\n bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n /* calculate right point of row */\n bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }\n }" (for) "for" (() "(" (assignment_expression) "row = 0" (identifier) "row" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "row < ynum" (identifier) "row" (<) "<" (identifier) "ynum" (;) ";" (update_expression) "row++" (identifier) "row" (++) "++" ()) ")" (compound_statement) "{\n /* calculate left point of row */\n bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n /* calculate right point of row */\n bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }\n }" ({) "{" (comment) "/* calculate left point of row */" (expression_statement) "bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;" (assignment_expression) "bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx" (identifier) "bx1" (=) "=" (binary_expression) "((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx" (binary_expression) "((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row" (parenthesized_expression) "((ulx-llx)/(fastf_t)(ynum-1))" (() "(" (binary_expression) "(ulx-llx)/(fastf_t)(ynum-1)" (parenthesized_expression) "(ulx-llx)" (() "(" (binary_expression) "ulx-llx" (identifier) "ulx" (-) "-" (identifier) "llx" ()) ")" (/) "/" (call_expression) "(fastf_t)(ynum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(ynum-1)" (() "(" (binary_expression) "ynum-1" (identifier) "ynum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)row" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "row" (+) "+" (identifier) "llx" (;) ";" (expression_statement) "by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;" (assignment_expression) "by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly" (identifier) "by1" (=) "=" (binary_expression) "((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly" (binary_expression) "((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row" (parenthesized_expression) "((uly-lly)/(fastf_t)(ynum-1))" (() "(" (binary_expression) "(uly-lly)/(fastf_t)(ynum-1)" (parenthesized_expression) "(uly-lly)" (() "(" (binary_expression) "uly-lly" (identifier) "uly" (-) "-" (identifier) "lly" ()) ")" (/) "/" (call_expression) "(fastf_t)(ynum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(ynum-1)" (() "(" (binary_expression) "ynum-1" (identifier) "ynum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)row" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "row" (+) "+" (identifier) "lly" (;) ";" (comment) "/* calculate right point of row */" (expression_statement) "bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;" (assignment_expression) "bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx" (identifier) "bx2" (=) "=" (binary_expression) "((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx" (binary_expression) "((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row" (parenthesized_expression) "((urx-lrx)/(fastf_t)(ynum-1))" (() "(" (binary_expression) "(urx-lrx)/(fastf_t)(ynum-1)" (parenthesized_expression) "(urx-lrx)" (() "(" (binary_expression) "urx-lrx" (identifier) "urx" (-) "-" (identifier) "lrx" ()) ")" (/) "/" (call_expression) "(fastf_t)(ynum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(ynum-1)" (() "(" (binary_expression) "ynum-1" (identifier) "ynum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)row" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "row" (+) "+" (identifier) "lrx" (;) ";" (expression_statement) "by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;" (assignment_expression) "by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry" (identifier) "by2" (=) "=" (binary_expression) "((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry" (binary_expression) "((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row" (parenthesized_expression) "((ury-lry)/(fastf_t)(ynum-1))" (() "(" (binary_expression) "(ury-lry)/(fastf_t)(ynum-1)" (parenthesized_expression) "(ury-lry)" (() "(" (binary_expression) "ury-lry" (identifier) "ury" (-) "-" (identifier) "lry" ()) ")" (/) "/" (call_expression) "(fastf_t)(ynum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(ynum-1)" (() "(" (binary_expression) "ynum-1" (identifier) "ynum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)row" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "row" (+) "+" (identifier) "lry" (;) ";" (for_statement) "for (col = 0; col < xnum; col++) {\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }" (for) "for" (() "(" (assignment_expression) "col = 0" (identifier) "col" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "col < xnum" (identifier) "col" (<) "<" (identifier) "xnum" (;) ";" (update_expression) "col++" (identifier) "col" (++) "++" ()) ")" (compound_statement) "{\n /* calculate point along row */\n bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n /* Make sure we are in the buffer */\n yindex = round(by) - buf_start;\n if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }\n yindex = yindex + buf_start;\n\n value = buffer[ yindex * scanlen + round(bx) ];\n ret = fwrite(&value, sizeof(value), 1, ofp);\n if (ret == 0)\n perror("fwrite");\n }" ({) "{" (comment) "/* calculate point along row */" (expression_statement) "bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;" (assignment_expression) "bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1" (identifier) "bx" (=) "=" (binary_expression) "((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1" (binary_expression) "((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col" (parenthesized_expression) "((bx2-bx1)/(fastf_t)(xnum-1))" (() "(" (binary_expression) "(bx2-bx1)/(fastf_t)(xnum-1)" (parenthesized_expression) "(bx2-bx1)" (() "(" (binary_expression) "bx2-bx1" (identifier) "bx2" (-) "-" (identifier) "bx1" ()) ")" (/) "/" (call_expression) "(fastf_t)(xnum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(xnum-1)" (() "(" (binary_expression) "xnum-1" (identifier) "xnum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)col" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "col" (+) "+" (identifier) "bx1" (;) ";" (expression_statement) "by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;" (assignment_expression) "by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1" (identifier) "by" (=) "=" (binary_expression) "((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1" (binary_expression) "((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col" (parenthesized_expression) "((by2-by1)/(fastf_t)(xnum-1))" (() "(" (binary_expression) "(by2-by1)/(fastf_t)(xnum-1)" (parenthesized_expression) "(by2-by1)" (() "(" (binary_expression) "by2-by1" (identifier) "by2" (-) "-" (identifier) "by1" ()) ")" (/) "/" (call_expression) "(fastf_t)(xnum-1)" (parenthesized_expression) "(fastf_t)" (() "(" (identifier) "fastf_t" ()) ")" (argument_list) "(xnum-1)" (() "(" (binary_expression) "xnum-1" (identifier) "xnum" (-) "-" (number_literal) "1" ()) ")" ()) ")" (*) "*" (cast_expression) "(fastf_t)col" (() "(" (type_descriptor) "fastf_t" (type_identifier) "fastf_t" ()) ")" (identifier) "col" (+) "+" (identifier) "by1" (;) ";" (comment) "/* Make sure we are in the buffer */" (expression_statement) "yindex = round(by) - buf_start;" (assignment_expression) "yindex = round(by) - buf_start" (identifier) "yindex" (=) "=" (binary_expression) "round(by) - buf_start" (call_expression) "round(by)" (identifier) "round" (argument_list) "(by)" (() "(" (identifier) "by" ()) ")" (-) "-" (identifier) "buf_start" (;) ";" (if_statement) "if (yindex >= buflines) {\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }" (if) "if" (parenthesized_expression) "(yindex >= buflines)" (() "(" (binary_expression) "yindex >= buflines" (identifier) "yindex" (>=) ">=" (identifier) "buflines" ()) ")" (compound_statement) "{\n fill_buffer(round(by));\n yindex = round(by) - buf_start;\n }" ({) "{" (expression_statement) "fill_buffer(round(by));" (call_expression) "fill_buffer(round(by))" (identifier) "fill_buffer" (argument_list) "(round(by))" (() "(" (call_expression) "round(by)" (identifier) "round" (argument_list) "(by)" (() "(" (identifier) "by" ()) ")" ()) ")" (;) ";" (expression_statement) "yindex = round(by) - buf_start;" (assignment_expression) "yindex = round(by) - buf_start" (identifier) "yindex" (=) "=" (binary_expression) "round(by) - buf_start" (call_expression) "round(by)" (identifier) "round" (argument_list) "(by)" (() "(" (identifier) "by" ()) ")" (-) "-" (identifier) "buf_start" (;) ";" (}) "}" (expression_statement) "yindex = yindex + buf_start;" (assignment_expression) "yindex = yindex + buf_start" (identifier) "yindex" (=) "=" (binary_expression) "yindex + buf_start" (identifier) "yindex" (+) "+" (identifier) "buf_start" (;) ";" (expression_statement) "value = buffer[ yindex * scanlen + round(bx) ];" (assignment_expression) "value = buffer[ yindex * scanlen + round(bx) ]" (identifier) "value" (=) "=" (subscript_expression) "buffer[ yindex * scanlen + round(bx) ]" (identifier) "buffer" ([) "[" (binary_expression) "yindex * scanlen + round(bx)" (binary_expression) "yindex * scanlen" (identifier) "yindex" (*) "*" (identifier) "scanlen" (+) "+" (call_expression) "round(bx)" (identifier) "round" (argument_list) "(bx)" (() "(" (identifier) "bx" ()) ")" (]) "]" (;) ";" (expression_statement) "ret = fwrite(&value, sizeof(value), 1, ofp);" (assignment_expression) "ret = fwrite(&value, sizeof(value), 1, ofp)" (identifier) "ret" (=) "=" (call_expression) "fwrite(&value, sizeof(value), 1, ofp)" (identifier) "fwrite" (argument_list) "(&value, sizeof(value), 1, ofp)" (() "(" (pointer_expression) "&value" (&) "&" (identifier) "value" (,) "," (sizeof_expression) "sizeof(value)" (sizeof) "sizeof" (parenthesized_expression) "(value)" (() "(" (identifier) "value" ()) ")" (,) "," (number_literal) "1" (,) "," (identifier) "ofp" ()) ")" (;) ";" (if_statement) "if (ret == 0)\n perror("fwrite");" (if) "if" (parenthesized_expression) "(ret == 0)" (() "(" (binary_expression) "ret == 0" (identifier) "ret" (==) "==" (number_literal) "0" ()) ")" (expression_statement) "perror("fwrite");" (call_expression) "perror("fwrite")" (identifier) "perror" (argument_list) "("fwrite")" (() "(" (string_literal) ""fwrite"" (") """ (string_content) "fwrite" (") """ ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "bu_free(buffer, "buffer");" (call_expression) "bu_free(buffer, "buffer")" (identifier) "bu_free" (argument_list) "(buffer, "buffer")" (() "(" (identifier) "buffer" (,) "," (string_literal) ""buffer"" (") """ (string_content) "buffer" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/*\n * Local Variables:\n * mode: C\n * tab-width: 8\n * indent-tabs-mode: t\n * c-file-style: "stroustrup"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */"
1,984
0
{"language": "c", "success": true, "metadata": {"lines": 248, "avg_line_length": 27.2, "nodes": 1162, "errors": 0, "source_hash": "d37fbd3ab9a5cf9ca08ffe3ff2bc355df212b27e32aab82f12f6279ba9594f9e", "categorized_nodes": 863}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"common.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"common.h\"", "parent": 0, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <limits.h> /* for INT_MAX */\n", "parent": null, "children": [10, 11], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<limits.h>", "parent": 9, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"vmath.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"vmath.h\"", "parent": 12, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include \"bu/file.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"bu/file.h\"", "parent": 15, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include \"bu/malloc.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"bu/malloc.h\"", "parent": 18, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 22}}, {"id": 21, "type": "preproc_include", "text": "#include \"bu/exit.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"bu/exit.h\"", "parent": 21, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 20}}, {"id": 24, "type": "preproc_function_def", "text": "#define round(x) ((int)(x+0.5))\n", "parent": null, "children": [25, 26, 27, 29], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 26, "type": "identifier", "text": "round", "parent": 24, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 13}}, {"id": 27, "type": "preproc_params", "text": "(x)", "parent": 24, "children": [28], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 16}}, {"id": 28, "type": "identifier", "text": "x", "parent": 27, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 15}}, {"id": 29, "type": "preproc_arg", "text": "((int)(x+0.5))", "parent": 24, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 31}}, {"id": 30, "type": "preproc_def", "text": "#define MAXBUFBYTES BU_PAGE_SIZE*BU_PAGE_SIZE\t/* max bytes to malloc in buffer space */\n", "parent": null, "children": [31, 32, 33], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 32, "type": "identifier", "text": "MAXBUFBYTES", "parent": 30, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 19}}, {"id": 33, "type": "preproc_arg", "text": "BU_PAGE_SIZE*BU_PAGE_SIZE\t", "parent": 30, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 46}}, {"id": 34, "type": "declaration", "text": "unsigned char *buffer;", "parent": null, "children": [35, 38], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 22}}, {"id": 35, "type": "sized_type_specifier", "text": "unsigned char", "parent": 34, "children": [36, 37], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 13}}, {"id": 36, "type": "unsigned", "text": "unsigned", "parent": 35, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 8}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 35, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 38, "type": "pointer_declarator", "text": "*buffer", "parent": 34, "children": [39, 40], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 21}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 15}}, {"id": 40, "type": "identifier", "text": "buffer", "parent": 38, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 21}}, {"id": 41, "type": "declaration", "text": "ssize_t scanlen;", "parent": null, "children": [42, 43], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 16}}, {"id": 42, "type": "primitive_type", "text": "ssize_t", "parent": 41, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 43, "type": "identifier", "text": "scanlen", "parent": 41, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 15}}, {"id": 44, "type": "declaration", "text": "ssize_t buflines;", "parent": null, "children": [45, 46], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 17}}, {"id": 45, "type": "primitive_type", "text": "ssize_t", "parent": 44, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 46, "type": "identifier", "text": "buflines", "parent": 44, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 16}}, {"id": 47, "type": "declaration", "text": "off_t buf_start = -1000;", "parent": null, "children": [48, 49], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 24}}, {"id": 48, "type": "type_identifier", "text": "off_t", "parent": 47, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 5}}, {"id": 49, "type": "init_declarator", "text": "buf_start = -1000", "parent": 47, "children": [50, 51, 52], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 23}}, {"id": 50, "type": "identifier", "text": "buf_start", "parent": 49, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 15}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 52, "type": "number_literal", "text": "-1000", "parent": 49, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 23}}, {"id": 53, "type": "declaration", "text": "unsigned long xnum, ynum;", "parent": null, "children": [54, 57, 58], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 25}}, {"id": 54, "type": "sized_type_specifier", "text": "unsigned long", "parent": 53, "children": [55, 56], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 13}}, {"id": 55, "type": "unsigned", "text": "unsigned", "parent": 54, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 8}}, {"id": 56, "type": "long", "text": "long", "parent": 54, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 13}}, {"id": 57, "type": "identifier", "text": "xnum", "parent": 53, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 18}}, {"id": 58, "type": "identifier", "text": "ynum", "parent": 53, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 24}}, {"id": 59, "type": "declaration", "text": "float ulx, uly, urx, ury, lrx, lry, llx, lly;", "parent": null, "children": [60, 61, 62, 63, 64, 65, 66, 67, 68], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 45}}, {"id": 60, "type": "primitive_type", "text": "float", "parent": 59, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 5}}, {"id": 61, "type": "identifier", "text": "ulx", "parent": 59, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 9}}, {"id": 62, "type": "identifier", "text": "uly", "parent": 59, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 14}}, {"id": 63, "type": "identifier", "text": "urx", "parent": 59, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 19}}, {"id": 64, "type": "identifier", "text": "ury", "parent": 59, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 24}}, {"id": 65, "type": "identifier", "text": "lrx", "parent": 59, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 66, "type": "identifier", "text": "lry", "parent": 59, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 34}}, {"id": 67, "type": "identifier", "text": "llx", "parent": 59, "children": [], "start_point": {"row": 54, "column": 36}, "end_point": {"row": 54, "column": 39}}, {"id": 68, "type": "identifier", "text": "lly", "parent": 59, "children": [], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 44}}, {"id": 69, "type": "declaration", "text": "FILE *ifp, *ofp;", "parent": null, "children": [70, 71, 74], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 16}}, {"id": 70, "type": "type_identifier", "text": "FILE", "parent": 69, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 4}}, {"id": 71, "type": "pointer_declarator", "text": "*ifp", "parent": 69, "children": [72, 73], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 9}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 6}}, {"id": 73, "type": "identifier", "text": "ifp", "parent": 71, "children": [], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 56, "column": 9}}, {"id": 74, "type": "pointer_declarator", "text": "*ofp", "parent": 69, "children": [75, 76], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 15}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 76, "type": "identifier", "text": "ofp", "parent": 74, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 15}}, {"id": 77, "type": "declaration", "text": "static const char usage[] = \"\\\nUsage: bwcrop in.bw out.bw (I prompt!)\\n\\\n or bwcrop in.bw out.bw inwidth outwidth outheight\\n\\\n\tulx uly urx ury lrx lry llx lly\\n\";", "parent": null, "children": [78, 79], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 61, "column": 36}}, {"id": 78, "type": "primitive_type", "text": "char", "parent": 77, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 17}}, {"id": 79, "type": "init_declarator", "text": "usage[] = \"\\\nUsage: bwcrop in.bw out.bw (I prompt!)\\n\\\n or bwcrop in.bw out.bw inwidth outwidth outheight\\n\\\n\tulx uly urx ury lrx lry llx lly\\n\"", "parent": 77, "children": [80, 82, 83], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 61, "column": 35}}, {"id": 80, "type": "array_declarator", "text": "usage[]", "parent": 79, "children": [81], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 25}}, {"id": 81, "type": "identifier", "text": "usage", "parent": 80, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 23}}, {"id": 82, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 58, "column": 26}, "end_point": {"row": 58, "column": 27}}, {"id": 83, "type": "string_literal", "text": "\"\\\nUsage: bwcrop in.bw out.bw (I prompt!)\\n\\\n or bwcrop in.bw out.bw inwidth outwidth outheight\\n\\\n\tulx uly urx ury lrx lry llx lly\\n\"", "parent": 79, "children": [84, 85, 86, 87, 88, 89], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 61, "column": 35}}, {"id": 84, "type": "escape_sequence", "text": "\\\n", "parent": 83, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 59, "column": 0}}, {"id": 85, "type": "escape_sequence", "text": "\\n", "parent": 83, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 40}}, {"id": 86, "type": "escape_sequence", "text": "\\\n", "parent": 83, "children": [], "start_point": {"row": 59, "column": 40}, "end_point": {"row": 60, "column": 0}}, {"id": 87, "type": "escape_sequence", "text": "\\n", "parent": 83, "children": [], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 55}}, {"id": 88, "type": "escape_sequence", "text": "\\\n", "parent": 83, "children": [], "start_point": {"row": 60, "column": 55}, "end_point": {"row": 61, "column": 0}}, {"id": 89, "type": "escape_sequence", "text": "\\n", "parent": 83, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 34}}, {"id": 90, "type": "function_definition", "text": "void\ninit_buffer()\n{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES / scanlen;\n\n /*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */\n if (max > BU_PAGE_SIZE)\n\tmax = BU_PAGE_SIZE;\n\n if (max < scanlen)\n\tbuflines = max;\n else\n\tbuflines = scanlen;\n\n buffer = (unsigned char *)bu_malloc(buflines * scanlen, \"buffer\");\n}", "parent": null, "children": [91, 92], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 91, "type": "primitive_type", "text": "void", "parent": 90, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 4}}, {"id": 92, "type": "function_declarator", "text": "init_buffer()", "parent": 90, "children": [93, 94], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 13}}, {"id": 93, "type": "identifier", "text": "init_buffer", "parent": 92, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 11}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 13}}, {"id": 95, "type": "declaration", "text": "ssize_t max;", "parent": 90, "children": [96, 97], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 16}}, {"id": 96, "type": "primitive_type", "text": "ssize_t", "parent": 95, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 11}}, {"id": 97, "type": "identifier", "text": "max", "parent": 95, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 15}}, {"id": 98, "type": "assignment_expression", "text": "max = MAXBUFBYTES / scanlen", "parent": 90, "children": [99, 100, 101], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 31}}, {"id": 99, "type": "identifier", "text": "max", "parent": 98, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 7}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 9}}, {"id": 101, "type": "binary_expression", "text": "MAXBUFBYTES / scanlen", "parent": 98, "children": [102, 103, 104], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 31}}, {"id": 102, "type": "identifier", "text": "MAXBUFBYTES", "parent": 101, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 21}}, {"id": 103, "type": "/", "text": "/", "parent": 101, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 23}}, {"id": 104, "type": "identifier", "text": "scanlen", "parent": 101, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 31}}, {"id": 105, "type": "if_statement", "text": "if (max > BU_PAGE_SIZE)\n\tmax = BU_PAGE_SIZE;", "parent": 90, "children": [106], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 81, "column": 20}}, {"id": 106, "type": "parenthesized_expression", "text": "(max > BU_PAGE_SIZE)", "parent": 105, "children": [107], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 27}}, {"id": 107, "type": "binary_expression", "text": "max > BU_PAGE_SIZE", "parent": 106, "children": [108, 109, 110], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 26}}, {"id": 108, "type": "identifier", "text": "max", "parent": 107, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 11}}, {"id": 109, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 13}}, {"id": 110, "type": "identifier", "text": "BU_PAGE_SIZE", "parent": 107, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 26}}, {"id": 111, "type": "assignment_expression", "text": "max = BU_PAGE_SIZE", "parent": 105, "children": [112, 113, 114], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 19}}, {"id": 112, "type": "identifier", "text": "max", "parent": 111, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 4}}, {"id": 113, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 6}}, {"id": 114, "type": "identifier", "text": "BU_PAGE_SIZE", "parent": 111, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 115, "type": "if_statement", "text": "if (max < scanlen)\n\tbuflines = max;\n else\n\tbuflines = scanlen;", "parent": 90, "children": [116, 125], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 86, "column": 20}}, {"id": 116, "type": "parenthesized_expression", "text": "(max < scanlen)", "parent": 115, "children": [117], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 22}}, {"id": 117, "type": "binary_expression", "text": "max < scanlen", "parent": 116, "children": [118, 119, 120], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 21}}, {"id": 118, "type": "identifier", "text": "max", "parent": 117, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 11}}, {"id": 119, "type": "<", "text": "<", "parent": 117, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 13}}, {"id": 120, "type": "identifier", "text": "scanlen", "parent": 117, "children": [], "start_point": {"row": 83, "column": 14}, "end_point": {"row": 83, "column": 21}}, {"id": 121, "type": "assignment_expression", "text": "buflines = max", "parent": 115, "children": [122, 123, 124], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 15}}, {"id": 122, "type": "identifier", "text": "buflines", "parent": 121, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 9}}, {"id": 123, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 84, "column": 10}, "end_point": {"row": 84, "column": 11}}, {"id": 124, "type": "identifier", "text": "max", "parent": 121, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 15}}, {"id": 125, "type": "else_clause", "text": "else\n\tbuflines = scanlen;", "parent": 115, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 86, "column": 20}}, {"id": 126, "type": "assignment_expression", "text": "buflines = scanlen", "parent": 125, "children": [127, 128, 129], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 19}}, {"id": 127, "type": "identifier", "text": "buflines", "parent": 126, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 9}}, {"id": 128, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 11}}, {"id": 129, "type": "identifier", "text": "scanlen", "parent": 126, "children": [], "start_point": {"row": 86, "column": 12}, "end_point": {"row": 86, "column": 19}}, {"id": 130, "type": "assignment_expression", "text": "buffer = (unsigned char *)bu_malloc(buflines * scanlen, \"buffer\")", "parent": 90, "children": [131, 132, 133], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 69}}, {"id": 131, "type": "identifier", "text": "buffer", "parent": 130, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 10}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 12}}, {"id": 133, "type": "cast_expression", "text": "(unsigned char *)bu_malloc(buflines * scanlen, \"buffer\")", "parent": 130, "children": [134, 140], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 69}}, {"id": 134, "type": "type_descriptor", "text": "unsigned char *", "parent": 133, "children": [135, 138], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 29}}, {"id": 135, "type": "sized_type_specifier", "text": "unsigned char", "parent": 134, "children": [136, 137], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 27}}, {"id": 136, "type": "unsigned", "text": "unsigned", "parent": 135, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 22}}, {"id": 137, "type": "primitive_type", "text": "char", "parent": 135, "children": [], "start_point": {"row": 88, "column": 23}, "end_point": {"row": 88, "column": 27}}, {"id": 138, "type": "abstract_pointer_declarator", "text": "*", "parent": 134, "children": [139], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 88, "column": 28}, "end_point": {"row": 88, "column": 29}}, {"id": 140, "type": "call_expression", "text": "bu_malloc(buflines * scanlen, \"buffer\")", "parent": 133, "children": [141, 142], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 69}}, {"id": 141, "type": "identifier", "text": "bu_malloc", "parent": 140, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 39}}, {"id": 142, "type": "argument_list", "text": "(buflines * scanlen, \"buffer\")", "parent": 140, "children": [143, 147], "start_point": {"row": 88, "column": 39}, "end_point": {"row": 88, "column": 69}}, {"id": 143, "type": "binary_expression", "text": "buflines * scanlen", "parent": 142, "children": [144, 145, 146], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 58}}, {"id": 144, "type": "identifier", "text": "buflines", "parent": 143, "children": [], "start_point": {"row": 88, "column": 40}, "end_point": {"row": 88, "column": 48}}, {"id": 145, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 88, "column": 49}, "end_point": {"row": 88, "column": 50}}, {"id": 146, "type": "identifier", "text": "scanlen", "parent": 143, "children": [], "start_point": {"row": 88, "column": 51}, "end_point": {"row": 88, "column": 58}}, {"id": 147, "type": "string_literal", "text": "\"buffer\"", "parent": 142, "children": [], "start_point": {"row": 88, "column": 60}, "end_point": {"row": 88, "column": 68}}, {"id": 148, "type": "function_definition", "text": "void\nfill_buffer(int y)\n{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n\tbuf_start = 0;\n\n bu_fseek(ifp, buf_start * scanlen, 0);\n ret = fread(buffer, scanlen, buflines, ifp);\n if (ret == 0)\n\tperror(\"fread\");\n}", "parent": null, "children": [149, 150], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 149, "type": "primitive_type", "text": "void", "parent": 148, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 4}}, {"id": 150, "type": "function_declarator", "text": "fill_buffer(int y)", "parent": 148, "children": [151, 152], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 18}}, {"id": 151, "type": "identifier", "text": "fill_buffer", "parent": 150, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 11}}, {"id": 152, "type": "parameter_list", "text": "(int y)", "parent": 150, "children": [153], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 18}}, {"id": 153, "type": "parameter_declaration", "text": "int y", "parent": 152, "children": [154, 155], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 17}}, {"id": 154, "type": "primitive_type", "text": "int", "parent": 153, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 15}}, {"id": 155, "type": "identifier", "text": "y", "parent": 153, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 17}}, {"id": 156, "type": "declaration", "text": "size_t ret;", "parent": 148, "children": [157, 158], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 15}}, {"id": 157, "type": "primitive_type", "text": "size_t", "parent": 156, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 10}}, {"id": 158, "type": "identifier", "text": "ret", "parent": 156, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 14}}, {"id": 159, "type": "assignment_expression", "text": "buf_start = y - buflines/2", "parent": 148, "children": [160, 161, 162], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 30}}, {"id": 160, "type": "identifier", "text": "buf_start", "parent": 159, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 13}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 15}}, {"id": 162, "type": "binary_expression", "text": "y - buflines/2", "parent": 159, "children": [163, 164, 165], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 30}}, {"id": 163, "type": "identifier", "text": "y", "parent": 162, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 17}}, {"id": 164, "type": "-", "text": "-", "parent": 162, "children": [], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 19}}, {"id": 165, "type": "binary_expression", "text": "buflines/2", "parent": 162, "children": [166, 167, 168], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 30}}, {"id": 166, "type": "identifier", "text": "buflines", "parent": 165, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 28}}, {"id": 167, "type": "/", "text": "/", "parent": 165, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 29}}, {"id": 168, "type": "number_literal", "text": "2", "parent": 165, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 30}}, {"id": 169, "type": "if_statement", "text": "if (buf_start < 0)\n\tbuf_start = 0;", "parent": 148, "children": [170], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 103, "column": 15}}, {"id": 170, "type": "parenthesized_expression", "text": "(buf_start < 0)", "parent": 169, "children": [171], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 22}}, {"id": 171, "type": "binary_expression", "text": "buf_start < 0", "parent": 170, "children": [172, 173, 174], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 21}}, {"id": 172, "type": "identifier", "text": "buf_start", "parent": 171, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 17}}, {"id": 173, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 19}}, {"id": 174, "type": "number_literal", "text": "0", "parent": 171, "children": [], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 21}}, {"id": 175, "type": "assignment_expression", "text": "buf_start = 0", "parent": 169, "children": [176, 177, 178], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 14}}, {"id": 176, "type": "identifier", "text": "buf_start", "parent": 175, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 10}}, {"id": 177, "type": "=", "text": "=", "parent": 175, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 12}}, {"id": 178, "type": "number_literal", "text": "0", "parent": 175, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 14}}, {"id": 179, "type": "call_expression", "text": "bu_fseek(ifp, buf_start * scanlen, 0)", "parent": 148, "children": [180, 181], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 41}}, {"id": 180, "type": "identifier", "text": "bu_fseek", "parent": 179, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 12}}, {"id": 181, "type": "argument_list", "text": "(ifp, buf_start * scanlen, 0)", "parent": 179, "children": [182, 183, 187], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 41}}, {"id": 182, "type": "identifier", "text": "ifp", "parent": 181, "children": [], "start_point": {"row": 105, "column": 13}, "end_point": {"row": 105, "column": 16}}, {"id": 183, "type": "binary_expression", "text": "buf_start * scanlen", "parent": 181, "children": [184, 185, 186], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 37}}, {"id": 184, "type": "identifier", "text": "buf_start", "parent": 183, "children": [], "start_point": {"row": 105, "column": 18}, "end_point": {"row": 105, "column": 27}}, {"id": 185, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 29}}, {"id": 186, "type": "identifier", "text": "scanlen", "parent": 183, "children": [], "start_point": {"row": 105, "column": 30}, "end_point": {"row": 105, "column": 37}}, {"id": 187, "type": "number_literal", "text": "0", "parent": 181, "children": [], "start_point": {"row": 105, "column": 39}, "end_point": {"row": 105, "column": 40}}, {"id": 188, "type": "assignment_expression", "text": "ret = fread(buffer, scanlen, buflines, ifp)", "parent": 148, "children": [189, 190, 191], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 47}}, {"id": 189, "type": "identifier", "text": "ret", "parent": 188, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 7}}, {"id": 190, "type": "=", "text": "=", "parent": 188, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 9}}, {"id": 191, "type": "call_expression", "text": "fread(buffer, scanlen, buflines, ifp)", "parent": 188, "children": [192, 193], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 47}}, {"id": 192, "type": "identifier", "text": "fread", "parent": 191, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 15}}, {"id": 193, "type": "argument_list", "text": "(buffer, scanlen, buflines, ifp)", "parent": 191, "children": [194, 195, 196, 197], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 47}}, {"id": 194, "type": "identifier", "text": "buffer", "parent": 193, "children": [], "start_point": {"row": 106, "column": 16}, "end_point": {"row": 106, "column": 22}}, {"id": 195, "type": "identifier", "text": "scanlen", "parent": 193, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 31}}, {"id": 196, "type": "identifier", "text": "buflines", "parent": 193, "children": [], "start_point": {"row": 106, "column": 33}, "end_point": {"row": 106, "column": 41}}, {"id": 197, "type": "identifier", "text": "ifp", "parent": 193, "children": [], "start_point": {"row": 106, "column": 43}, "end_point": {"row": 106, "column": 46}}, {"id": 198, "type": "if_statement", "text": "if (ret == 0)\n\tperror(\"fread\");", "parent": 148, "children": [199], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 108, "column": 17}}, {"id": 199, "type": "parenthesized_expression", "text": "(ret == 0)", "parent": 198, "children": [200], "start_point": {"row": 107, "column": 7}, "end_point": {"row": 107, "column": 17}}, {"id": 200, "type": "binary_expression", "text": "ret == 0", "parent": 199, "children": [201, 202, 203], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 16}}, {"id": 201, "type": "identifier", "text": "ret", "parent": 200, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 11}}, {"id": 202, "type": "==", "text": "==", "parent": 200, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 14}}, {"id": 203, "type": "number_literal", "text": "0", "parent": 200, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 16}}, {"id": 204, "type": "call_expression", "text": "perror(\"fread\")", "parent": 198, "children": [205, 206], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 16}}, {"id": 205, "type": "identifier", "text": "perror", "parent": 204, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 7}}, {"id": 206, "type": "argument_list", "text": "(\"fread\")", "parent": 204, "children": [207], "start_point": {"row": 108, "column": 7}, "end_point": {"row": 108, "column": 16}}, {"id": 207, "type": "string_literal", "text": "\"fread\"", "parent": 206, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 15}}, {"id": 208, "type": "function_definition", "text": "int\nmain(int argc, char **argv)\n{\n float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssize_t yindex;\n char value;\n size_t ret;\n\n int atoival;\n\n if (argc < 3) {\n\tbu_exit(1, \"%s\", usage);\n }\n if ((ifp = fopen(argv[1], \"r\")) == NULL) {\n\tbu_exit(2, \"bwcrop: can't open %s for reading\\n\", argv[1]);\n }\n if ((ofp = fopen(argv[2], \"w\")) == NULL) {\n\tbu_exit(3, \"bwcrop: can't open %s for writing\\n\", argv[2]);\n }\n\n if (argc == 14) {\n\tif (! argv[3])\n\t return 1;\n scanlen = atoi(argv[3]);\n\n\tif (! argv[4])\n\t return 1;\n\tatoival = atoi(argv[4]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n xnum = atoival;\n\n\tif (! argv[5])\n\t return 1;\n\tatoival = atoi(argv[5]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n\tynum = atoival;\n\n\tif (! argv[6])\n\t return 1;\n\tulx = atoi(argv[6]);\n\n\tif (! argv[7])\n\t return 1;\n\tuly = atoi(argv[7]);\n\n\tif (! argv[8])\n\t return 1;\n\turx = atoi(argv[8]);\n\n\tif (! argv[9])\n\t return 1;\n\tury = atoi(argv[9]);\n\n\tif (! argv[10])\n\t return 1;\n\tlrx = atoi(argv[10]);\n\n\tif (! argv[11])\n\t return 1;\n\tlry = atoi(argv[11]);\n\n\tif (! argv[12])\n\t return 1;\n\tllx = atoi(argv[12]);\n\n\tif (! argv[13])\n\t return 1;\n\tlly = atoi(argv[13]);\n } else {\n\tdouble xval, yval;\n\tunsigned long len;\n\t/* Get info */\n\n\tprintf(\"Scanline length in input file?: \");\n\tret = scanf(\"%lu\", &len);\n\tif (ret != 1)\n\t perror(\"scanf\");\n\tscanlen = len;\n\tif (scanlen <= 0) {\n\t bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen);\n\t}\n\n\tprintf(\"Line Length and Number of scan lines in new file?: \");\n\tret = scanf(\"%lf%lf\", &xval, &yval);\n\tif (ret != 2) {\n\t perror(\"scanf\");\n\t}\n\n\t/* sanitize xval,yval*/\n\tif (xval < 1)\n\t xval = 1;\n\telse if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;\n\txnum = xval;\n\tif (yval < 1)\n\t yval = 1;\n\telse if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;\n\tynum = yval;\n\n\tprintf(\"Upper left corner (in input file) (x, y)?: \");\n\tret = scanf(\"%f%f\", &ulx, &uly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Upper right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &urx, &ury);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &lrx, &lry);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower left corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &llx, &lly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n }\n\n /* See how many lines we can buffer */\n init_buffer();\n\n /* Check for silly buffer syndrome */\n if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n\tfprintf(stderr, \"bwcrop: Warning: You are skewing enough in the y direction\\n\");\n\tfprintf(stderr, \"bwcrop: relative to my buffer size that I will exhibit silly\\n\");\n\tfprintf(stderr, \"bwcrop: buffer syndrome (two replacements per scanline).\\n\");\n\tfprintf(stderr, \"bwcrop: Recompile me or use a smarter algorithm.\\n\");\n }\n\n /* Move all points */\n for (row = 0; row < ynum; row++) {\n\t/* calculate left point of row */\n\tbx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n\tby1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n\t/* calculate right point of row */\n\tbx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n\tby2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n\tfor (col = 0; col < xnum; col++) {\n\t /* calculate point along row */\n\t bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n\t by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n\t /* Make sure we are in the buffer */\n\t yindex = round(by) - buf_start;\n\t if (yindex >= buflines) {\n\t\tfill_buffer(round(by));\n\t\tyindex = round(by) - buf_start;\n\t }\n\t yindex = yindex + buf_start;\n\n\t value = buffer[ yindex * scanlen + round(bx) ];\n\t ret = fwrite(&value, sizeof(value), 1, ofp);\n\t if (ret == 0)\n\t\tperror(\"fwrite\");\n\t}\n }\n\n bu_free(buffer, \"buffer\");\n return 0;\n}", "parent": null, "children": [209, 210], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 282, "column": 1}}, {"id": 209, "type": "primitive_type", "text": "int", "parent": 208, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 3}}, {"id": 210, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 208, "children": [211, 212], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 27}}, {"id": 211, "type": "identifier", "text": "main", "parent": 210, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 4}}, {"id": 212, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 210, "children": [213, 216], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 27}}, {"id": 213, "type": "parameter_declaration", "text": "int argc", "parent": 212, "children": [214, 215], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 13}}, {"id": 214, "type": "primitive_type", "text": "int", "parent": 213, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 8}}, {"id": 215, "type": "identifier", "text": "argc", "parent": 213, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 13}}, {"id": 216, "type": "parameter_declaration", "text": "char **argv", "parent": 212, "children": [217, 218], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 26}}, {"id": 217, "type": "primitive_type", "text": "char", "parent": 216, "children": [], "start_point": {"row": 113, "column": 15}, "end_point": {"row": 113, "column": 19}}, {"id": 218, "type": "pointer_declarator", "text": "**argv", "parent": 216, "children": [219, 220], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 26}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 21}}, {"id": 220, "type": "pointer_declarator", "text": "*argv", "parent": 218, "children": [221, 222], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 26}}, {"id": 221, "type": "*", "text": "*", "parent": 220, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 22}}, {"id": 222, "type": "identifier", "text": "argv", "parent": 220, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 26}}, {"id": 223, "type": "declaration", "text": "float bx1, by1, bx2, by2, bx, by;", "parent": 208, "children": [224, 225, 226, 227, 228, 229, 230], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 37}}, {"id": 224, "type": "primitive_type", "text": "float", "parent": 223, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 9}}, {"id": 225, "type": "identifier", "text": "bx1", "parent": 223, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 13}}, {"id": 226, "type": "identifier", "text": "by1", "parent": 223, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 18}}, {"id": 227, "type": "identifier", "text": "bx2", "parent": 223, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 23}}, {"id": 228, "type": "identifier", "text": "by2", "parent": 223, "children": [], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 28}}, {"id": 229, "type": "identifier", "text": "bx", "parent": 223, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 32}}, {"id": 230, "type": "identifier", "text": "by", "parent": 223, "children": [], "start_point": {"row": 115, "column": 34}, "end_point": {"row": 115, "column": 36}}, {"id": 231, "type": "declaration", "text": "size_t row, col;", "parent": 208, "children": [232, 233, 234], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 20}}, {"id": 232, "type": "primitive_type", "text": "size_t", "parent": 231, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 10}}, {"id": 233, "type": "identifier", "text": "row", "parent": 231, "children": [], "start_point": {"row": 116, "column": 11}, "end_point": {"row": 116, "column": 14}}, {"id": 234, "type": "identifier", "text": "col", "parent": 231, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 19}}, {"id": 235, "type": "declaration", "text": "ssize_t yindex;", "parent": 208, "children": [236, 237], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 19}}, {"id": 236, "type": "primitive_type", "text": "ssize_t", "parent": 235, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}, {"id": 237, "type": "identifier", "text": "yindex", "parent": 235, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 18}}, {"id": 238, "type": "declaration", "text": "char value;", "parent": 208, "children": [239, 240], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 15}}, {"id": 239, "type": "primitive_type", "text": "char", "parent": 238, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 8}}, {"id": 240, "type": "identifier", "text": "value", "parent": 238, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 14}}, {"id": 241, "type": "declaration", "text": "size_t ret;", "parent": 208, "children": [242, 243], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 15}}, {"id": 242, "type": "primitive_type", "text": "size_t", "parent": 241, "children": [], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 10}}, {"id": 243, "type": "identifier", "text": "ret", "parent": 241, "children": [], "start_point": {"row": 119, "column": 11}, "end_point": {"row": 119, "column": 14}}, {"id": 244, "type": "declaration", "text": "int atoival;", "parent": 208, "children": [245, 246], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 16}}, {"id": 245, "type": "primitive_type", "text": "int", "parent": 244, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 7}}, {"id": 246, "type": "identifier", "text": "atoival", "parent": 244, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 15}}, {"id": 247, "type": "if_statement", "text": "if (argc < 3) {\n\tbu_exit(1, \"%s\", usage);\n }", "parent": 208, "children": [248], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 248, "type": "parenthesized_expression", "text": "(argc < 3)", "parent": 247, "children": [249], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 17}}, {"id": 249, "type": "binary_expression", "text": "argc < 3", "parent": 248, "children": [250, 251, 252], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 16}}, {"id": 250, "type": "identifier", "text": "argc", "parent": 249, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 12}}, {"id": 251, "type": "<", "text": "<", "parent": 249, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 252, "type": "number_literal", "text": "3", "parent": 249, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 16}}, {"id": 253, "type": "call_expression", "text": "bu_exit(1, \"%s\", usage)", "parent": 247, "children": [254, 255], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 24}}, {"id": 254, "type": "identifier", "text": "bu_exit", "parent": 253, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 8}}, {"id": 255, "type": "argument_list", "text": "(1, \"%s\", usage)", "parent": 253, "children": [256, 257, 258], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 24}}, {"id": 256, "type": "number_literal", "text": "1", "parent": 255, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 10}}, {"id": 257, "type": "string_literal", "text": "\"%s\"", "parent": 255, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 16}}, {"id": 258, "type": "identifier", "text": "usage", "parent": 255, "children": [], "start_point": {"row": 124, "column": 18}, "end_point": {"row": 124, "column": 23}}, {"id": 259, "type": "if_statement", "text": "if ((ifp = fopen(argv[1], \"r\")) == NULL) {\n\tbu_exit(2, \"bwcrop: can't open %s for reading\\n\", argv[1]);\n }", "parent": 208, "children": [260], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 260, "type": "parenthesized_expression", "text": "((ifp = fopen(argv[1], \"r\")) == NULL)", "parent": 259, "children": [261], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 44}}, {"id": 261, "type": "binary_expression", "text": "(ifp = fopen(argv[1], \"r\")) == NULL", "parent": 260, "children": [262, 273, 274], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 43}}, {"id": 262, "type": "parenthesized_expression", "text": "(ifp = fopen(argv[1], \"r\"))", "parent": 261, "children": [263], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 35}}, {"id": 263, "type": "assignment_expression", "text": "ifp = fopen(argv[1], \"r\")", "parent": 262, "children": [264, 265, 266], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 34}}, {"id": 264, "type": "identifier", "text": "ifp", "parent": 263, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 12}}, {"id": 265, "type": "=", "text": "=", "parent": 263, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 14}}, {"id": 266, "type": "call_expression", "text": "fopen(argv[1], \"r\")", "parent": 263, "children": [267, 268], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 34}}, {"id": 267, "type": "identifier", "text": "fopen", "parent": 266, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 20}}, {"id": 268, "type": "argument_list", "text": "(argv[1], \"r\")", "parent": 266, "children": [269, 272], "start_point": {"row": 126, "column": 20}, "end_point": {"row": 126, "column": 34}}, {"id": 269, "type": "subscript_expression", "text": "argv[1]", "parent": 268, "children": [270, 271], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 28}}, {"id": 270, "type": "identifier", "text": "argv", "parent": 269, "children": [], "start_point": {"row": 126, "column": 21}, "end_point": {"row": 126, "column": 25}}, {"id": 271, "type": "number_literal", "text": "1", "parent": 269, "children": [], "start_point": {"row": 126, "column": 26}, "end_point": {"row": 126, "column": 27}}, {"id": 272, "type": "string_literal", "text": "\"r\"", "parent": 268, "children": [], "start_point": {"row": 126, "column": 30}, "end_point": {"row": 126, "column": 33}}, {"id": 273, "type": "==", "text": "==", "parent": 261, "children": [], "start_point": {"row": 126, "column": 36}, "end_point": {"row": 126, "column": 38}}, {"id": 274, "type": "null", "text": "NULL", "parent": 261, "children": [275], "start_point": {"row": 126, "column": 39}, "end_point": {"row": 126, "column": 43}}, {"id": 275, "type": "NULL", "text": "NULL", "parent": 274, "children": [], "start_point": {"row": 126, "column": 39}, "end_point": {"row": 126, "column": 43}}, {"id": 276, "type": "call_expression", "text": "bu_exit(2, \"bwcrop: can't open %s for reading\\n\", argv[1])", "parent": 259, "children": [277, 278], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 59}}, {"id": 277, "type": "identifier", "text": "bu_exit", "parent": 276, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 8}}, {"id": 278, "type": "argument_list", "text": "(2, \"bwcrop: can't open %s for reading\\n\", argv[1])", "parent": 276, "children": [279, 280, 282], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 59}}, {"id": 279, "type": "number_literal", "text": "2", "parent": 278, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 10}}, {"id": 280, "type": "string_literal", "text": "\"bwcrop: can't open %s for reading\\n\"", "parent": 278, "children": [281], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 49}}, {"id": 281, "type": "escape_sequence", "text": "\\n", "parent": 280, "children": [], "start_point": {"row": 127, "column": 46}, "end_point": {"row": 127, "column": 48}}, {"id": 282, "type": "subscript_expression", "text": "argv[1]", "parent": 278, "children": [283, 284], "start_point": {"row": 127, "column": 51}, "end_point": {"row": 127, "column": 58}}, {"id": 283, "type": "identifier", "text": "argv", "parent": 282, "children": [], "start_point": {"row": 127, "column": 51}, "end_point": {"row": 127, "column": 55}}, {"id": 284, "type": "number_literal", "text": "1", "parent": 282, "children": [], "start_point": {"row": 127, "column": 56}, "end_point": {"row": 127, "column": 57}}, {"id": 285, "type": "if_statement", "text": "if ((ofp = fopen(argv[2], \"w\")) == NULL) {\n\tbu_exit(3, \"bwcrop: can't open %s for writing\\n\", argv[2]);\n }", "parent": 208, "children": [286], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 131, "column": 5}}, {"id": 286, "type": "parenthesized_expression", "text": "((ofp = fopen(argv[2], \"w\")) == NULL)", "parent": 285, "children": [287], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 44}}, {"id": 287, "type": "binary_expression", "text": "(ofp = fopen(argv[2], \"w\")) == NULL", "parent": 286, "children": [288, 299, 300], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 43}}, {"id": 288, "type": "parenthesized_expression", "text": "(ofp = fopen(argv[2], \"w\"))", "parent": 287, "children": [289], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 35}}, {"id": 289, "type": "assignment_expression", "text": "ofp = fopen(argv[2], \"w\")", "parent": 288, "children": [290, 291, 292], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 34}}, {"id": 290, "type": "identifier", "text": "ofp", "parent": 289, "children": [], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 12}}, {"id": 291, "type": "=", "text": "=", "parent": 289, "children": [], "start_point": {"row": 129, "column": 13}, "end_point": {"row": 129, "column": 14}}, {"id": 292, "type": "call_expression", "text": "fopen(argv[2], \"w\")", "parent": 289, "children": [293, 294], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 34}}, {"id": 293, "type": "identifier", "text": "fopen", "parent": 292, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 20}}, {"id": 294, "type": "argument_list", "text": "(argv[2], \"w\")", "parent": 292, "children": [295, 298], "start_point": {"row": 129, "column": 20}, "end_point": {"row": 129, "column": 34}}, {"id": 295, "type": "subscript_expression", "text": "argv[2]", "parent": 294, "children": [296, 297], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 28}}, {"id": 296, "type": "identifier", "text": "argv", "parent": 295, "children": [], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 25}}, {"id": 297, "type": "number_literal", "text": "2", "parent": 295, "children": [], "start_point": {"row": 129, "column": 26}, "end_point": {"row": 129, "column": 27}}, {"id": 298, "type": "string_literal", "text": "\"w\"", "parent": 294, "children": [], "start_point": {"row": 129, "column": 30}, "end_point": {"row": 129, "column": 33}}, {"id": 299, "type": "==", "text": "==", "parent": 287, "children": [], "start_point": {"row": 129, "column": 36}, "end_point": {"row": 129, "column": 38}}, {"id": 300, "type": "null", "text": "NULL", "parent": 287, "children": [301], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 43}}, {"id": 301, "type": "NULL", "text": "NULL", "parent": 300, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 43}}, {"id": 302, "type": "call_expression", "text": "bu_exit(3, \"bwcrop: can't open %s for writing\\n\", argv[2])", "parent": 285, "children": [303, 304], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 59}}, {"id": 303, "type": "identifier", "text": "bu_exit", "parent": 302, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 8}}, {"id": 304, "type": "argument_list", "text": "(3, \"bwcrop: can't open %s for writing\\n\", argv[2])", "parent": 302, "children": [305, 306, 308], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 59}}, {"id": 305, "type": "number_literal", "text": "3", "parent": 304, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 10}}, {"id": 306, "type": "string_literal", "text": "\"bwcrop: can't open %s for writing\\n\"", "parent": 304, "children": [307], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 49}}, {"id": 307, "type": "escape_sequence", "text": "\\n", "parent": 306, "children": [], "start_point": {"row": 130, "column": 46}, "end_point": {"row": 130, "column": 48}}, {"id": 308, "type": "subscript_expression", "text": "argv[2]", "parent": 304, "children": [309, 310], "start_point": {"row": 130, "column": 51}, "end_point": {"row": 130, "column": 58}}, {"id": 309, "type": "identifier", "text": "argv", "parent": 308, "children": [], "start_point": {"row": 130, "column": 51}, "end_point": {"row": 130, "column": 55}}, {"id": 310, "type": "number_literal", "text": "2", "parent": 308, "children": [], "start_point": {"row": 130, "column": 56}, "end_point": {"row": 130, "column": 57}}, {"id": 311, "type": "if_statement", "text": "if (argc == 14) {\n\tif (! argv[3])\n\t return 1;\n scanlen = atoi(argv[3]);\n\n\tif (! argv[4])\n\t return 1;\n\tatoival = atoi(argv[4]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n xnum = atoival;\n\n\tif (! argv[5])\n\t return 1;\n\tatoival = atoi(argv[5]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n\tynum = atoival;\n\n\tif (! argv[6])\n\t return 1;\n\tulx = atoi(argv[6]);\n\n\tif (! argv[7])\n\t return 1;\n\tuly = atoi(argv[7]);\n\n\tif (! argv[8])\n\t return 1;\n\turx = atoi(argv[8]);\n\n\tif (! argv[9])\n\t return 1;\n\tury = atoi(argv[9]);\n\n\tif (! argv[10])\n\t return 1;\n\tlrx = atoi(argv[10]);\n\n\tif (! argv[11])\n\t return 1;\n\tlry = atoi(argv[11]);\n\n\tif (! argv[12])\n\t return 1;\n\tllx = atoi(argv[12]);\n\n\tif (! argv[13])\n\t return 1;\n\tlly = atoi(argv[13]);\n } else {\n\tdouble xval, yval;\n\tunsigned long len;\n\t/* Get info */\n\n\tprintf(\"Scanline length in input file?: \");\n\tret = scanf(\"%lu\", &len);\n\tif (ret != 1)\n\t perror(\"scanf\");\n\tscanlen = len;\n\tif (scanlen <= 0) {\n\t bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen);\n\t}\n\n\tprintf(\"Line Length and Number of scan lines in new file?: \");\n\tret = scanf(\"%lf%lf\", &xval, &yval);\n\tif (ret != 2) {\n\t perror(\"scanf\");\n\t}\n\n\t/* sanitize xval,yval*/\n\tif (xval < 1)\n\t xval = 1;\n\telse if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;\n\txnum = xval;\n\tif (yval < 1)\n\t yval = 1;\n\telse if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;\n\tynum = yval;\n\n\tprintf(\"Upper left corner (in input file) (x, y)?: \");\n\tret = scanf(\"%f%f\", &ulx, &uly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Upper right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &urx, &ury);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &lrx, &lry);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower left corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &llx, &lly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n }", "parent": 208, "children": [312, 577], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 238, "column": 5}}, {"id": 312, "type": "parenthesized_expression", "text": "(argc == 14)", "parent": 311, "children": [313], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 19}}, {"id": 313, "type": "binary_expression", "text": "argc == 14", "parent": 312, "children": [314, 315, 316], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 18}}, {"id": 314, "type": "identifier", "text": "argc", "parent": 313, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 12}}, {"id": 315, "type": "==", "text": "==", "parent": 313, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 15}}, {"id": 316, "type": "number_literal", "text": "14", "parent": 313, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 18}}, {"id": 317, "type": "if_statement", "text": "if (! argv[3])\n\t return 1;", "parent": 311, "children": [318, 324], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 135, "column": 14}}, {"id": 318, "type": "parenthesized_expression", "text": "(! argv[3])", "parent": 317, "children": [319], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 15}}, {"id": 319, "type": "unary_expression", "text": "! argv[3]", "parent": 318, "children": [320, 321], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 14}}, {"id": 320, "type": "!", "text": "!", "parent": 319, "children": [], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 6}}, {"id": 321, "type": "subscript_expression", "text": "argv[3]", "parent": 319, "children": [322, 323], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 14}}, {"id": 322, "type": "identifier", "text": "argv", "parent": 321, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 11}}, {"id": 323, "type": "number_literal", "text": "3", "parent": 321, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 13}}, {"id": 324, "type": "return_statement", "text": "return 1;", "parent": 317, "children": [325], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 135, "column": 14}}, {"id": 325, "type": "number_literal", "text": "1", "parent": 324, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 13}}, {"id": 326, "type": "assignment_expression", "text": "scanlen = atoi(argv[3])", "parent": 311, "children": [327, 328, 329], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 31}}, {"id": 327, "type": "identifier", "text": "scanlen", "parent": 326, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 15}}, {"id": 328, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 17}}, {"id": 329, "type": "call_expression", "text": "atoi(argv[3])", "parent": 326, "children": [330, 331], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 31}}, {"id": 330, "type": "identifier", "text": "atoi", "parent": 329, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 22}}, {"id": 331, "type": "argument_list", "text": "(argv[3])", "parent": 329, "children": [332], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 31}}, {"id": 332, "type": "subscript_expression", "text": "argv[3]", "parent": 331, "children": [333, 334], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 30}}, {"id": 333, "type": "identifier", "text": "argv", "parent": 332, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 27}}, {"id": 334, "type": "number_literal", "text": "3", "parent": 332, "children": [], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 29}}, {"id": 335, "type": "if_statement", "text": "if (! argv[4])\n\t return 1;", "parent": 311, "children": [336, 342], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 139, "column": 14}}, {"id": 336, "type": "parenthesized_expression", "text": "(! argv[4])", "parent": 335, "children": [337], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 15}}, {"id": 337, "type": "unary_expression", "text": "! argv[4]", "parent": 336, "children": [338, 339], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 14}}, {"id": 338, "type": "!", "text": "!", "parent": 337, "children": [], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 6}}, {"id": 339, "type": "subscript_expression", "text": "argv[4]", "parent": 337, "children": [340, 341], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 14}}, {"id": 340, "type": "identifier", "text": "argv", "parent": 339, "children": [], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 11}}, {"id": 341, "type": "number_literal", "text": "4", "parent": 339, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 13}}, {"id": 342, "type": "return_statement", "text": "return 1;", "parent": 335, "children": [343], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 14}}, {"id": 343, "type": "number_literal", "text": "1", "parent": 342, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 13}}, {"id": 344, "type": "assignment_expression", "text": "atoival = atoi(argv[4])", "parent": 311, "children": [345, 346, 347], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 24}}, {"id": 345, "type": "identifier", "text": "atoival", "parent": 344, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 8}}, {"id": 346, "type": "=", "text": "=", "parent": 344, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 10}}, {"id": 347, "type": "call_expression", "text": "atoi(argv[4])", "parent": 344, "children": [348, 349], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 24}}, {"id": 348, "type": "identifier", "text": "atoi", "parent": 347, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 15}}, {"id": 349, "type": "argument_list", "text": "(argv[4])", "parent": 347, "children": [350], "start_point": {"row": 140, "column": 15}, "end_point": {"row": 140, "column": 24}}, {"id": 350, "type": "subscript_expression", "text": "argv[4]", "parent": 349, "children": [351, 352], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 23}}, {"id": 351, "type": "identifier", "text": "argv", "parent": 350, "children": [], "start_point": {"row": 140, "column": 16}, "end_point": {"row": 140, "column": 20}}, {"id": 352, "type": "number_literal", "text": "4", "parent": 350, "children": [], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 22}}, {"id": 353, "type": "if_statement", "text": "if (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 311, "children": [354, 363], "start_point": {"row": 141, "column": 1}, "end_point": {"row": 144, "column": 25}}, {"id": 354, "type": "parenthesized_expression", "text": "(atoival < 0)", "parent": 353, "children": [355], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 17}}, {"id": 355, "type": "binary_expression", "text": "atoival < 0", "parent": 354, "children": [356, 357, 358], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 16}}, {"id": 356, "type": "identifier", "text": "atoival", "parent": 355, "children": [], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 12}}, {"id": 357, "type": "<", "text": "<", "parent": 355, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 14}}, {"id": 358, "type": "number_literal", "text": "0", "parent": 355, "children": [], "start_point": {"row": 141, "column": 15}, "end_point": {"row": 141, "column": 16}}, {"id": 359, "type": "assignment_expression", "text": "atoival = 0", "parent": 353, "children": [360, 361, 362], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 16}}, {"id": 360, "type": "identifier", "text": "atoival", "parent": 359, "children": [], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 12}}, {"id": 361, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 14}}, {"id": 362, "type": "number_literal", "text": "0", "parent": 359, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 363, "type": "else_clause", "text": "else if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 353, "children": [364], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 144, "column": 25}}, {"id": 364, "type": "if_statement", "text": "if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 363, "children": [365], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 144, "column": 25}}, {"id": 365, "type": "parenthesized_expression", "text": "(atoival > INT_MAX-1)", "parent": 364, "children": [366], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 30}}, {"id": 366, "type": "binary_expression", "text": "atoival > INT_MAX-1", "parent": 365, "children": [367, 368, 369], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 29}}, {"id": 367, "type": "identifier", "text": "atoival", "parent": 366, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 17}}, {"id": 368, "type": ">", "text": ">", "parent": 366, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 19}}, {"id": 369, "type": "binary_expression", "text": "INT_MAX-1", "parent": 366, "children": [370, 371, 372], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 29}}, {"id": 370, "type": "identifier", "text": "INT_MAX", "parent": 369, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 27}}, {"id": 371, "type": "-", "text": "-", "parent": 369, "children": [], "start_point": {"row": 143, "column": 27}, "end_point": {"row": 143, "column": 28}}, {"id": 372, "type": "number_literal", "text": "1", "parent": 369, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 29}}, {"id": 373, "type": "assignment_expression", "text": "atoival = INT_MAX-1", "parent": 364, "children": [374, 375, 376], "start_point": {"row": 144, "column": 5}, "end_point": {"row": 144, "column": 24}}, {"id": 374, "type": "identifier", "text": "atoival", "parent": 373, "children": [], "start_point": {"row": 144, "column": 5}, "end_point": {"row": 144, "column": 12}}, {"id": 375, "type": "=", "text": "=", "parent": 373, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 14}}, {"id": 376, "type": "binary_expression", "text": "INT_MAX-1", "parent": 373, "children": [377, 378, 379], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 24}}, {"id": 377, "type": "identifier", "text": "INT_MAX", "parent": 376, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 22}}, {"id": 378, "type": "-", "text": "-", "parent": 376, "children": [], "start_point": {"row": 144, "column": 22}, "end_point": {"row": 144, "column": 23}}, {"id": 379, "type": "number_literal", "text": "1", "parent": 376, "children": [], "start_point": {"row": 144, "column": 23}, "end_point": {"row": 144, "column": 24}}, {"id": 380, "type": "assignment_expression", "text": "xnum = atoival", "parent": 311, "children": [381, 382, 383], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 22}}, {"id": 381, "type": "identifier", "text": "xnum", "parent": 380, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 12}}, {"id": 382, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 14}}, {"id": 383, "type": "identifier", "text": "atoival", "parent": 380, "children": [], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 22}}, {"id": 384, "type": "if_statement", "text": "if (! argv[5])\n\t return 1;", "parent": 311, "children": [385, 391], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 148, "column": 14}}, {"id": 385, "type": "parenthesized_expression", "text": "(! argv[5])", "parent": 384, "children": [386], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 147, "column": 15}}, {"id": 386, "type": "unary_expression", "text": "! argv[5]", "parent": 385, "children": [387, 388], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 147, "column": 14}}, {"id": 387, "type": "!", "text": "!", "parent": 386, "children": [], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 147, "column": 6}}, {"id": 388, "type": "subscript_expression", "text": "argv[5]", "parent": 386, "children": [389, 390], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 14}}, {"id": 389, "type": "identifier", "text": "argv", "parent": 388, "children": [], "start_point": {"row": 147, "column": 7}, "end_point": {"row": 147, "column": 11}}, {"id": 390, "type": "number_literal", "text": "5", "parent": 388, "children": [], "start_point": {"row": 147, "column": 12}, "end_point": {"row": 147, "column": 13}}, {"id": 391, "type": "return_statement", "text": "return 1;", "parent": 384, "children": [392], "start_point": {"row": 148, "column": 5}, "end_point": {"row": 148, "column": 14}}, {"id": 392, "type": "number_literal", "text": "1", "parent": 391, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 13}}, {"id": 393, "type": "assignment_expression", "text": "atoival = atoi(argv[5])", "parent": 311, "children": [394, 395, 396], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 24}}, {"id": 394, "type": "identifier", "text": "atoival", "parent": 393, "children": [], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 8}}, {"id": 395, "type": "=", "text": "=", "parent": 393, "children": [], "start_point": {"row": 149, "column": 9}, "end_point": {"row": 149, "column": 10}}, {"id": 396, "type": "call_expression", "text": "atoi(argv[5])", "parent": 393, "children": [397, 398], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 24}}, {"id": 397, "type": "identifier", "text": "atoi", "parent": 396, "children": [], "start_point": {"row": 149, "column": 11}, "end_point": {"row": 149, "column": 15}}, {"id": 398, "type": "argument_list", "text": "(argv[5])", "parent": 396, "children": [399], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 24}}, {"id": 399, "type": "subscript_expression", "text": "argv[5]", "parent": 398, "children": [400, 401], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 23}}, {"id": 400, "type": "identifier", "text": "argv", "parent": 399, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 20}}, {"id": 401, "type": "number_literal", "text": "5", "parent": 399, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 22}}, {"id": 402, "type": "if_statement", "text": "if (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 311, "children": [403, 412], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 153, "column": 25}}, {"id": 403, "type": "parenthesized_expression", "text": "(atoival < 0)", "parent": 402, "children": [404], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 150, "column": 17}}, {"id": 404, "type": "binary_expression", "text": "atoival < 0", "parent": 403, "children": [405, 406, 407], "start_point": {"row": 150, "column": 5}, "end_point": {"row": 150, "column": 16}}, {"id": 405, "type": "identifier", "text": "atoival", "parent": 404, "children": [], "start_point": {"row": 150, "column": 5}, "end_point": {"row": 150, "column": 12}}, {"id": 406, "type": "<", "text": "<", "parent": 404, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 14}}, {"id": 407, "type": "number_literal", "text": "0", "parent": 404, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 16}}, {"id": 408, "type": "assignment_expression", "text": "atoival = 0", "parent": 402, "children": [409, 410, 411], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 16}}, {"id": 409, "type": "identifier", "text": "atoival", "parent": 408, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 12}}, {"id": 410, "type": "=", "text": "=", "parent": 408, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 14}}, {"id": 411, "type": "number_literal", "text": "0", "parent": 408, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 16}}, {"id": 412, "type": "else_clause", "text": "else if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 402, "children": [413], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 153, "column": 25}}, {"id": 413, "type": "if_statement", "text": "if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;", "parent": 412, "children": [414], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 153, "column": 25}}, {"id": 414, "type": "parenthesized_expression", "text": "(atoival > INT_MAX-1)", "parent": 413, "children": [415], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 30}}, {"id": 415, "type": "binary_expression", "text": "atoival > INT_MAX-1", "parent": 414, "children": [416, 417, 418], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 29}}, {"id": 416, "type": "identifier", "text": "atoival", "parent": 415, "children": [], "start_point": {"row": 152, "column": 10}, "end_point": {"row": 152, "column": 17}}, {"id": 417, "type": ">", "text": ">", "parent": 415, "children": [], "start_point": {"row": 152, "column": 18}, "end_point": {"row": 152, "column": 19}}, {"id": 418, "type": "binary_expression", "text": "INT_MAX-1", "parent": 415, "children": [419, 420, 421], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 29}}, {"id": 419, "type": "identifier", "text": "INT_MAX", "parent": 418, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 27}}, {"id": 420, "type": "-", "text": "-", "parent": 418, "children": [], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 28}}, {"id": 421, "type": "number_literal", "text": "1", "parent": 418, "children": [], "start_point": {"row": 152, "column": 28}, "end_point": {"row": 152, "column": 29}}, {"id": 422, "type": "assignment_expression", "text": "atoival = INT_MAX-1", "parent": 413, "children": [423, 424, 425], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 24}}, {"id": 423, "type": "identifier", "text": "atoival", "parent": 422, "children": [], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 12}}, {"id": 424, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 153, "column": 13}, "end_point": {"row": 153, "column": 14}}, {"id": 425, "type": "binary_expression", "text": "INT_MAX-1", "parent": 422, "children": [426, 427, 428], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 24}}, {"id": 426, "type": "identifier", "text": "INT_MAX", "parent": 425, "children": [], "start_point": {"row": 153, "column": 15}, "end_point": {"row": 153, "column": 22}}, {"id": 427, "type": "-", "text": "-", "parent": 425, "children": [], "start_point": {"row": 153, "column": 22}, "end_point": {"row": 153, "column": 23}}, {"id": 428, "type": "number_literal", "text": "1", "parent": 425, "children": [], "start_point": {"row": 153, "column": 23}, "end_point": {"row": 153, "column": 24}}, {"id": 429, "type": "assignment_expression", "text": "ynum = atoival", "parent": 311, "children": [430, 431, 432], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 15}}, {"id": 430, "type": "identifier", "text": "ynum", "parent": 429, "children": [], "start_point": {"row": 154, "column": 1}, "end_point": {"row": 154, "column": 5}}, {"id": 431, "type": "=", "text": "=", "parent": 429, "children": [], "start_point": {"row": 154, "column": 6}, "end_point": {"row": 154, "column": 7}}, {"id": 432, "type": "identifier", "text": "atoival", "parent": 429, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 15}}, {"id": 433, "type": "if_statement", "text": "if (! argv[6])\n\t return 1;", "parent": 311, "children": [434, 440], "start_point": {"row": 156, "column": 1}, "end_point": {"row": 157, "column": 14}}, {"id": 434, "type": "parenthesized_expression", "text": "(! argv[6])", "parent": 433, "children": [435], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 15}}, {"id": 435, "type": "unary_expression", "text": "! argv[6]", "parent": 434, "children": [436, 437], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 14}}, {"id": 436, "type": "!", "text": "!", "parent": 435, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 6}}, {"id": 437, "type": "subscript_expression", "text": "argv[6]", "parent": 435, "children": [438, 439], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 14}}, {"id": 438, "type": "identifier", "text": "argv", "parent": 437, "children": [], "start_point": {"row": 156, "column": 7}, "end_point": {"row": 156, "column": 11}}, {"id": 439, "type": "number_literal", "text": "6", "parent": 437, "children": [], "start_point": {"row": 156, "column": 12}, "end_point": {"row": 156, "column": 13}}, {"id": 440, "type": "return_statement", "text": "return 1;", "parent": 433, "children": [441], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 14}}, {"id": 441, "type": "number_literal", "text": "1", "parent": 440, "children": [], "start_point": {"row": 157, "column": 12}, "end_point": {"row": 157, "column": 13}}, {"id": 442, "type": "assignment_expression", "text": "ulx = atoi(argv[6])", "parent": 311, "children": [443, 444, 445], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 20}}, {"id": 443, "type": "identifier", "text": "ulx", "parent": 442, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 4}}, {"id": 444, "type": "=", "text": "=", "parent": 442, "children": [], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 6}}, {"id": 445, "type": "call_expression", "text": "atoi(argv[6])", "parent": 442, "children": [446, 447], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 20}}, {"id": 446, "type": "identifier", "text": "atoi", "parent": 445, "children": [], "start_point": {"row": 158, "column": 7}, "end_point": {"row": 158, "column": 11}}, {"id": 447, "type": "argument_list", "text": "(argv[6])", "parent": 445, "children": [448], "start_point": {"row": 158, "column": 11}, "end_point": {"row": 158, "column": 20}}, {"id": 448, "type": "subscript_expression", "text": "argv[6]", "parent": 447, "children": [449, 450], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 19}}, {"id": 449, "type": "identifier", "text": "argv", "parent": 448, "children": [], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 16}}, {"id": 450, "type": "number_literal", "text": "6", "parent": 448, "children": [], "start_point": {"row": 158, "column": 17}, "end_point": {"row": 158, "column": 18}}, {"id": 451, "type": "if_statement", "text": "if (! argv[7])\n\t return 1;", "parent": 311, "children": [452, 458], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 161, "column": 14}}, {"id": 452, "type": "parenthesized_expression", "text": "(! argv[7])", "parent": 451, "children": [453], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 15}}, {"id": 453, "type": "unary_expression", "text": "! argv[7]", "parent": 452, "children": [454, 455], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 14}}, {"id": 454, "type": "!", "text": "!", "parent": 453, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 6}}, {"id": 455, "type": "subscript_expression", "text": "argv[7]", "parent": 453, "children": [456, 457], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 14}}, {"id": 456, "type": "identifier", "text": "argv", "parent": 455, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 11}}, {"id": 457, "type": "number_literal", "text": "7", "parent": 455, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 13}}, {"id": 458, "type": "return_statement", "text": "return 1;", "parent": 451, "children": [459], "start_point": {"row": 161, "column": 5}, "end_point": {"row": 161, "column": 14}}, {"id": 459, "type": "number_literal", "text": "1", "parent": 458, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 13}}, {"id": 460, "type": "assignment_expression", "text": "uly = atoi(argv[7])", "parent": 311, "children": [461, 462, 463], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 20}}, {"id": 461, "type": "identifier", "text": "uly", "parent": 460, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 4}}, {"id": 462, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 162, "column": 5}, "end_point": {"row": 162, "column": 6}}, {"id": 463, "type": "call_expression", "text": "atoi(argv[7])", "parent": 460, "children": [464, 465], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 20}}, {"id": 464, "type": "identifier", "text": "atoi", "parent": 463, "children": [], "start_point": {"row": 162, "column": 7}, "end_point": {"row": 162, "column": 11}}, {"id": 465, "type": "argument_list", "text": "(argv[7])", "parent": 463, "children": [466], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 20}}, {"id": 466, "type": "subscript_expression", "text": "argv[7]", "parent": 465, "children": [467, 468], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 19}}, {"id": 467, "type": "identifier", "text": "argv", "parent": 466, "children": [], "start_point": {"row": 162, "column": 12}, "end_point": {"row": 162, "column": 16}}, {"id": 468, "type": "number_literal", "text": "7", "parent": 466, "children": [], "start_point": {"row": 162, "column": 17}, "end_point": {"row": 162, "column": 18}}, {"id": 469, "type": "if_statement", "text": "if (! argv[8])\n\t return 1;", "parent": 311, "children": [470, 476], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 165, "column": 14}}, {"id": 470, "type": "parenthesized_expression", "text": "(! argv[8])", "parent": 469, "children": [471], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 15}}, {"id": 471, "type": "unary_expression", "text": "! argv[8]", "parent": 470, "children": [472, 473], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 14}}, {"id": 472, "type": "!", "text": "!", "parent": 471, "children": [], "start_point": {"row": 164, "column": 5}, "end_point": {"row": 164, "column": 6}}, {"id": 473, "type": "subscript_expression", "text": "argv[8]", "parent": 471, "children": [474, 475], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 14}}, {"id": 474, "type": "identifier", "text": "argv", "parent": 473, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 11}}, {"id": 475, "type": "number_literal", "text": "8", "parent": 473, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 13}}, {"id": 476, "type": "return_statement", "text": "return 1;", "parent": 469, "children": [477], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 14}}, {"id": 477, "type": "number_literal", "text": "1", "parent": 476, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 13}}, {"id": 478, "type": "assignment_expression", "text": "urx = atoi(argv[8])", "parent": 311, "children": [479, 480, 481], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 20}}, {"id": 479, "type": "identifier", "text": "urx", "parent": 478, "children": [], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 166, "column": 4}}, {"id": 480, "type": "=", "text": "=", "parent": 478, "children": [], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 6}}, {"id": 481, "type": "call_expression", "text": "atoi(argv[8])", "parent": 478, "children": [482, 483], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 20}}, {"id": 482, "type": "identifier", "text": "atoi", "parent": 481, "children": [], "start_point": {"row": 166, "column": 7}, "end_point": {"row": 166, "column": 11}}, {"id": 483, "type": "argument_list", "text": "(argv[8])", "parent": 481, "children": [484], "start_point": {"row": 166, "column": 11}, "end_point": {"row": 166, "column": 20}}, {"id": 484, "type": "subscript_expression", "text": "argv[8]", "parent": 483, "children": [485, 486], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 19}}, {"id": 485, "type": "identifier", "text": "argv", "parent": 484, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 16}}, {"id": 486, "type": "number_literal", "text": "8", "parent": 484, "children": [], "start_point": {"row": 166, "column": 17}, "end_point": {"row": 166, "column": 18}}, {"id": 487, "type": "if_statement", "text": "if (! argv[9])\n\t return 1;", "parent": 311, "children": [488, 494], "start_point": {"row": 168, "column": 1}, "end_point": {"row": 169, "column": 14}}, {"id": 488, "type": "parenthesized_expression", "text": "(! argv[9])", "parent": 487, "children": [489], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 15}}, {"id": 489, "type": "unary_expression", "text": "! argv[9]", "parent": 488, "children": [490, 491], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 14}}, {"id": 490, "type": "!", "text": "!", "parent": 489, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 6}}, {"id": 491, "type": "subscript_expression", "text": "argv[9]", "parent": 489, "children": [492, 493], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 14}}, {"id": 492, "type": "identifier", "text": "argv", "parent": 491, "children": [], "start_point": {"row": 168, "column": 7}, "end_point": {"row": 168, "column": 11}}, {"id": 493, "type": "number_literal", "text": "9", "parent": 491, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 13}}, {"id": 494, "type": "return_statement", "text": "return 1;", "parent": 487, "children": [495], "start_point": {"row": 169, "column": 5}, "end_point": {"row": 169, "column": 14}}, {"id": 495, "type": "number_literal", "text": "1", "parent": 494, "children": [], "start_point": {"row": 169, "column": 12}, "end_point": {"row": 169, "column": 13}}, {"id": 496, "type": "assignment_expression", "text": "ury = atoi(argv[9])", "parent": 311, "children": [497, 498, 499], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 20}}, {"id": 497, "type": "identifier", "text": "ury", "parent": 496, "children": [], "start_point": {"row": 170, "column": 1}, "end_point": {"row": 170, "column": 4}}, {"id": 498, "type": "=", "text": "=", "parent": 496, "children": [], "start_point": {"row": 170, "column": 5}, "end_point": {"row": 170, "column": 6}}, {"id": 499, "type": "call_expression", "text": "atoi(argv[9])", "parent": 496, "children": [500, 501], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 20}}, {"id": 500, "type": "identifier", "text": "atoi", "parent": 499, "children": [], "start_point": {"row": 170, "column": 7}, "end_point": {"row": 170, "column": 11}}, {"id": 501, "type": "argument_list", "text": "(argv[9])", "parent": 499, "children": [502], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 20}}, {"id": 502, "type": "subscript_expression", "text": "argv[9]", "parent": 501, "children": [503, 504], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 19}}, {"id": 503, "type": "identifier", "text": "argv", "parent": 502, "children": [], "start_point": {"row": 170, "column": 12}, "end_point": {"row": 170, "column": 16}}, {"id": 504, "type": "number_literal", "text": "9", "parent": 502, "children": [], "start_point": {"row": 170, "column": 17}, "end_point": {"row": 170, "column": 18}}, {"id": 505, "type": "if_statement", "text": "if (! argv[10])\n\t return 1;", "parent": 311, "children": [506, 512], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 173, "column": 14}}, {"id": 506, "type": "parenthesized_expression", "text": "(! argv[10])", "parent": 505, "children": [507], "start_point": {"row": 172, "column": 4}, "end_point": {"row": 172, "column": 16}}, {"id": 507, "type": "unary_expression", "text": "! argv[10]", "parent": 506, "children": [508, 509], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 15}}, {"id": 508, "type": "!", "text": "!", "parent": 507, "children": [], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 6}}, {"id": 509, "type": "subscript_expression", "text": "argv[10]", "parent": 507, "children": [510, 511], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 15}}, {"id": 510, "type": "identifier", "text": "argv", "parent": 509, "children": [], "start_point": {"row": 172, "column": 7}, "end_point": {"row": 172, "column": 11}}, {"id": 511, "type": "number_literal", "text": "10", "parent": 509, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 14}}, {"id": 512, "type": "return_statement", "text": "return 1;", "parent": 505, "children": [513], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 14}}, {"id": 513, "type": "number_literal", "text": "1", "parent": 512, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 13}}, {"id": 514, "type": "assignment_expression", "text": "lrx = atoi(argv[10])", "parent": 311, "children": [515, 516, 517], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 21}}, {"id": 515, "type": "identifier", "text": "lrx", "parent": 514, "children": [], "start_point": {"row": 174, "column": 1}, "end_point": {"row": 174, "column": 4}}, {"id": 516, "type": "=", "text": "=", "parent": 514, "children": [], "start_point": {"row": 174, "column": 5}, "end_point": {"row": 174, "column": 6}}, {"id": 517, "type": "call_expression", "text": "atoi(argv[10])", "parent": 514, "children": [518, 519], "start_point": {"row": 174, "column": 7}, "end_point": {"row": 174, "column": 21}}, {"id": 518, "type": "identifier", "text": "atoi", "parent": 517, "children": [], "start_point": {"row": 174, "column": 7}, "end_point": {"row": 174, "column": 11}}, {"id": 519, "type": "argument_list", "text": "(argv[10])", "parent": 517, "children": [520], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 21}}, {"id": 520, "type": "subscript_expression", "text": "argv[10]", "parent": 519, "children": [521, 522], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 20}}, {"id": 521, "type": "identifier", "text": "argv", "parent": 520, "children": [], "start_point": {"row": 174, "column": 12}, "end_point": {"row": 174, "column": 16}}, {"id": 522, "type": "number_literal", "text": "10", "parent": 520, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 19}}, {"id": 523, "type": "if_statement", "text": "if (! argv[11])\n\t return 1;", "parent": 311, "children": [524, 530], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 177, "column": 14}}, {"id": 524, "type": "parenthesized_expression", "text": "(! argv[11])", "parent": 523, "children": [525], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 16}}, {"id": 525, "type": "unary_expression", "text": "! argv[11]", "parent": 524, "children": [526, 527], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 15}}, {"id": 526, "type": "!", "text": "!", "parent": 525, "children": [], "start_point": {"row": 176, "column": 5}, "end_point": {"row": 176, "column": 6}}, {"id": 527, "type": "subscript_expression", "text": "argv[11]", "parent": 525, "children": [528, 529], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 15}}, {"id": 528, "type": "identifier", "text": "argv", "parent": 527, "children": [], "start_point": {"row": 176, "column": 7}, "end_point": {"row": 176, "column": 11}}, {"id": 529, "type": "number_literal", "text": "11", "parent": 527, "children": [], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 14}}, {"id": 530, "type": "return_statement", "text": "return 1;", "parent": 523, "children": [531], "start_point": {"row": 177, "column": 5}, "end_point": {"row": 177, "column": 14}}, {"id": 531, "type": "number_literal", "text": "1", "parent": 530, "children": [], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 13}}, {"id": 532, "type": "assignment_expression", "text": "lry = atoi(argv[11])", "parent": 311, "children": [533, 534, 535], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 21}}, {"id": 533, "type": "identifier", "text": "lry", "parent": 532, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 4}}, {"id": 534, "type": "=", "text": "=", "parent": 532, "children": [], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 6}}, {"id": 535, "type": "call_expression", "text": "atoi(argv[11])", "parent": 532, "children": [536, 537], "start_point": {"row": 178, "column": 7}, "end_point": {"row": 178, "column": 21}}, {"id": 536, "type": "identifier", "text": "atoi", "parent": 535, "children": [], "start_point": {"row": 178, "column": 7}, "end_point": {"row": 178, "column": 11}}, {"id": 537, "type": "argument_list", "text": "(argv[11])", "parent": 535, "children": [538], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 21}}, {"id": 538, "type": "subscript_expression", "text": "argv[11]", "parent": 537, "children": [539, 540], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 20}}, {"id": 539, "type": "identifier", "text": "argv", "parent": 538, "children": [], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 16}}, {"id": 540, "type": "number_literal", "text": "11", "parent": 538, "children": [], "start_point": {"row": 178, "column": 17}, "end_point": {"row": 178, "column": 19}}, {"id": 541, "type": "if_statement", "text": "if (! argv[12])\n\t return 1;", "parent": 311, "children": [542, 548], "start_point": {"row": 180, "column": 1}, "end_point": {"row": 181, "column": 14}}, {"id": 542, "type": "parenthesized_expression", "text": "(! argv[12])", "parent": 541, "children": [543], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 16}}, {"id": 543, "type": "unary_expression", "text": "! argv[12]", "parent": 542, "children": [544, 545], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 15}}, {"id": 544, "type": "!", "text": "!", "parent": 543, "children": [], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 6}}, {"id": 545, "type": "subscript_expression", "text": "argv[12]", "parent": 543, "children": [546, 547], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 15}}, {"id": 546, "type": "identifier", "text": "argv", "parent": 545, "children": [], "start_point": {"row": 180, "column": 7}, "end_point": {"row": 180, "column": 11}}, {"id": 547, "type": "number_literal", "text": "12", "parent": 545, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 14}}, {"id": 548, "type": "return_statement", "text": "return 1;", "parent": 541, "children": [549], "start_point": {"row": 181, "column": 5}, "end_point": {"row": 181, "column": 14}}, {"id": 549, "type": "number_literal", "text": "1", "parent": 548, "children": [], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 13}}, {"id": 550, "type": "assignment_expression", "text": "llx = atoi(argv[12])", "parent": 311, "children": [551, 552, 553], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 21}}, {"id": 551, "type": "identifier", "text": "llx", "parent": 550, "children": [], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 4}}, {"id": 552, "type": "=", "text": "=", "parent": 550, "children": [], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 182, "column": 6}}, {"id": 553, "type": "call_expression", "text": "atoi(argv[12])", "parent": 550, "children": [554, 555], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 21}}, {"id": 554, "type": "identifier", "text": "atoi", "parent": 553, "children": [], "start_point": {"row": 182, "column": 7}, "end_point": {"row": 182, "column": 11}}, {"id": 555, "type": "argument_list", "text": "(argv[12])", "parent": 553, "children": [556], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 182, "column": 21}}, {"id": 556, "type": "subscript_expression", "text": "argv[12]", "parent": 555, "children": [557, 558], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 20}}, {"id": 557, "type": "identifier", "text": "argv", "parent": 556, "children": [], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 16}}, {"id": 558, "type": "number_literal", "text": "12", "parent": 556, "children": [], "start_point": {"row": 182, "column": 17}, "end_point": {"row": 182, "column": 19}}, {"id": 559, "type": "if_statement", "text": "if (! argv[13])\n\t return 1;", "parent": 311, "children": [560, 566], "start_point": {"row": 184, "column": 1}, "end_point": {"row": 185, "column": 14}}, {"id": 560, "type": "parenthesized_expression", "text": "(! argv[13])", "parent": 559, "children": [561], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 16}}, {"id": 561, "type": "unary_expression", "text": "! argv[13]", "parent": 560, "children": [562, 563], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 15}}, {"id": 562, "type": "!", "text": "!", "parent": 561, "children": [], "start_point": {"row": 184, "column": 5}, "end_point": {"row": 184, "column": 6}}, {"id": 563, "type": "subscript_expression", "text": "argv[13]", "parent": 561, "children": [564, 565], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 15}}, {"id": 564, "type": "identifier", "text": "argv", "parent": 563, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 11}}, {"id": 565, "type": "number_literal", "text": "13", "parent": 563, "children": [], "start_point": {"row": 184, "column": 12}, "end_point": {"row": 184, "column": 14}}, {"id": 566, "type": "return_statement", "text": "return 1;", "parent": 559, "children": [567], "start_point": {"row": 185, "column": 5}, "end_point": {"row": 185, "column": 14}}, {"id": 567, "type": "number_literal", "text": "1", "parent": 566, "children": [], "start_point": {"row": 185, "column": 12}, "end_point": {"row": 185, "column": 13}}, {"id": 568, "type": "assignment_expression", "text": "lly = atoi(argv[13])", "parent": 311, "children": [569, 570, 571], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 21}}, {"id": 569, "type": "identifier", "text": "lly", "parent": 568, "children": [], "start_point": {"row": 186, "column": 1}, "end_point": {"row": 186, "column": 4}}, {"id": 570, "type": "=", "text": "=", "parent": 568, "children": [], "start_point": {"row": 186, "column": 5}, "end_point": {"row": 186, "column": 6}}, {"id": 571, "type": "call_expression", "text": "atoi(argv[13])", "parent": 568, "children": [572, 573], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 21}}, {"id": 572, "type": "identifier", "text": "atoi", "parent": 571, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 11}}, {"id": 573, "type": "argument_list", "text": "(argv[13])", "parent": 571, "children": [574], "start_point": {"row": 186, "column": 11}, "end_point": {"row": 186, "column": 21}}, {"id": 574, "type": "subscript_expression", "text": "argv[13]", "parent": 573, "children": [575, 576], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 20}}, {"id": 575, "type": "identifier", "text": "argv", "parent": 574, "children": [], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 16}}, {"id": 576, "type": "number_literal", "text": "13", "parent": 574, "children": [], "start_point": {"row": 186, "column": 17}, "end_point": {"row": 186, "column": 19}}, {"id": 577, "type": "else_clause", "text": "else {\n\tdouble xval, yval;\n\tunsigned long len;\n\t/* Get info */\n\n\tprintf(\"Scanline length in input file?: \");\n\tret = scanf(\"%lu\", &len);\n\tif (ret != 1)\n\t perror(\"scanf\");\n\tscanlen = len;\n\tif (scanlen <= 0) {\n\t bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen);\n\t}\n\n\tprintf(\"Line Length and Number of scan lines in new file?: \");\n\tret = scanf(\"%lf%lf\", &xval, &yval);\n\tif (ret != 2) {\n\t perror(\"scanf\");\n\t}\n\n\t/* sanitize xval,yval*/\n\tif (xval < 1)\n\t xval = 1;\n\telse if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;\n\txnum = xval;\n\tif (yval < 1)\n\t yval = 1;\n\telse if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;\n\tynum = yval;\n\n\tprintf(\"Upper left corner (in input file) (x, y)?: \");\n\tret = scanf(\"%f%f\", &ulx, &uly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Upper right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &urx, &ury);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &lrx, &lry);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower left corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &llx, &lly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n }", "parent": 311, "children": [], "start_point": {"row": 187, "column": 6}, "end_point": {"row": 238, "column": 5}}, {"id": 578, "type": "declaration", "text": "double xval, yval;", "parent": 577, "children": [579, 580, 581], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 19}}, {"id": 579, "type": "primitive_type", "text": "double", "parent": 578, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 7}}, {"id": 580, "type": "identifier", "text": "xval", "parent": 578, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 12}}, {"id": 581, "type": "identifier", "text": "yval", "parent": 578, "children": [], "start_point": {"row": 188, "column": 14}, "end_point": {"row": 188, "column": 18}}, {"id": 582, "type": "declaration", "text": "unsigned long len;", "parent": 577, "children": [583, 586], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 19}}, {"id": 583, "type": "sized_type_specifier", "text": "unsigned long", "parent": 582, "children": [584, 585], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 14}}, {"id": 584, "type": "unsigned", "text": "unsigned", "parent": 583, "children": [], "start_point": {"row": 189, "column": 1}, "end_point": {"row": 189, "column": 9}}, {"id": 585, "type": "long", "text": "long", "parent": 583, "children": [], "start_point": {"row": 189, "column": 10}, "end_point": {"row": 189, "column": 14}}, {"id": 586, "type": "identifier", "text": "len", "parent": 582, "children": [], "start_point": {"row": 189, "column": 15}, "end_point": {"row": 189, "column": 18}}, {"id": 587, "type": "call_expression", "text": "printf(\"Scanline length in input file?: \")", "parent": 577, "children": [588, 589], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 43}}, {"id": 588, "type": "identifier", "text": "printf", "parent": 587, "children": [], "start_point": {"row": 192, "column": 1}, "end_point": {"row": 192, "column": 7}}, {"id": 589, "type": "argument_list", "text": "(\"Scanline length in input file?: \")", "parent": 587, "children": [590], "start_point": {"row": 192, "column": 7}, "end_point": {"row": 192, "column": 43}}, {"id": 590, "type": "string_literal", "text": "\"Scanline length in input file?: \"", "parent": 589, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 42}}, {"id": 591, "type": "assignment_expression", "text": "ret = scanf(\"%lu\", &len)", "parent": 577, "children": [592, 593, 594], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 25}}, {"id": 592, "type": "identifier", "text": "ret", "parent": 591, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 4}}, {"id": 593, "type": "=", "text": "=", "parent": 591, "children": [], "start_point": {"row": 193, "column": 5}, "end_point": {"row": 193, "column": 6}}, {"id": 594, "type": "call_expression", "text": "scanf(\"%lu\", &len)", "parent": 591, "children": [595, 596], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 193, "column": 25}}, {"id": 595, "type": "identifier", "text": "scanf", "parent": 594, "children": [], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 193, "column": 12}}, {"id": 596, "type": "argument_list", "text": "(\"%lu\", &len)", "parent": 594, "children": [597, 598], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 25}}, {"id": 597, "type": "string_literal", "text": "\"%lu\"", "parent": 596, "children": [], "start_point": {"row": 193, "column": 13}, "end_point": {"row": 193, "column": 18}}, {"id": 598, "type": "pointer_expression", "text": "&len", "parent": 596, "children": [599], "start_point": {"row": 193, "column": 20}, "end_point": {"row": 193, "column": 24}}, {"id": 599, "type": "identifier", "text": "len", "parent": 598, "children": [], "start_point": {"row": 193, "column": 21}, "end_point": {"row": 193, "column": 24}}, {"id": 600, "type": "if_statement", "text": "if (ret != 1)\n\t perror(\"scanf\");", "parent": 577, "children": [601], "start_point": {"row": 194, "column": 1}, "end_point": {"row": 195, "column": 21}}, {"id": 601, "type": "parenthesized_expression", "text": "(ret != 1)", "parent": 600, "children": [602], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 14}}, {"id": 602, "type": "binary_expression", "text": "ret != 1", "parent": 601, "children": [603, 604, 605], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 13}}, {"id": 603, "type": "identifier", "text": "ret", "parent": 602, "children": [], "start_point": {"row": 194, "column": 5}, "end_point": {"row": 194, "column": 8}}, {"id": 604, "type": "!=", "text": "!=", "parent": 602, "children": [], "start_point": {"row": 194, "column": 9}, "end_point": {"row": 194, "column": 11}}, {"id": 605, "type": "number_literal", "text": "1", "parent": 602, "children": [], "start_point": {"row": 194, "column": 12}, "end_point": {"row": 194, "column": 13}}, {"id": 606, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 600, "children": [607, 608], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 20}}, {"id": 607, "type": "identifier", "text": "perror", "parent": 606, "children": [], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 11}}, {"id": 608, "type": "argument_list", "text": "(\"scanf\")", "parent": 606, "children": [609], "start_point": {"row": 195, "column": 11}, "end_point": {"row": 195, "column": 20}}, {"id": 609, "type": "string_literal", "text": "\"scanf\"", "parent": 608, "children": [], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 19}}, {"id": 610, "type": "assignment_expression", "text": "scanlen = len", "parent": 577, "children": [611, 612, 613], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 14}}, {"id": 611, "type": "identifier", "text": "scanlen", "parent": 610, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 8}}, {"id": 612, "type": "=", "text": "=", "parent": 610, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 10}}, {"id": 613, "type": "identifier", "text": "len", "parent": 610, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 14}}, {"id": 614, "type": "if_statement", "text": "if (scanlen <= 0) {\n\t bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen);\n\t}", "parent": 577, "children": [615], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 199, "column": 2}}, {"id": 615, "type": "parenthesized_expression", "text": "(scanlen <= 0)", "parent": 614, "children": [616], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 18}}, {"id": 616, "type": "binary_expression", "text": "scanlen <= 0", "parent": 615, "children": [617, 618, 619], "start_point": {"row": 197, "column": 5}, "end_point": {"row": 197, "column": 17}}, {"id": 617, "type": "identifier", "text": "scanlen", "parent": 616, "children": [], "start_point": {"row": 197, "column": 5}, "end_point": {"row": 197, "column": 12}}, {"id": 618, "type": "<=", "text": "<=", "parent": 616, "children": [], "start_point": {"row": 197, "column": 13}, "end_point": {"row": 197, "column": 15}}, {"id": 619, "type": "number_literal", "text": "0", "parent": 616, "children": [], "start_point": {"row": 197, "column": 16}, "end_point": {"row": 197, "column": 17}}, {"id": 620, "type": "call_expression", "text": "bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen)", "parent": 614, "children": [621, 622], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 72}}, {"id": 621, "type": "identifier", "text": "bu_exit", "parent": 620, "children": [], "start_point": {"row": 198, "column": 5}, "end_point": {"row": 198, "column": 12}}, {"id": 622, "type": "argument_list", "text": "(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen)", "parent": 620, "children": [623, 624, 626], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 72}}, {"id": 623, "type": "number_literal", "text": "4", "parent": 622, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 624, "type": "string_literal", "text": "\"bwcrop: scanlen = %zu, don't be ridiculous\\n\"", "parent": 622, "children": [625], "start_point": {"row": 198, "column": 16}, "end_point": {"row": 198, "column": 62}}, {"id": 625, "type": "escape_sequence", "text": "\\n", "parent": 624, "children": [], "start_point": {"row": 198, "column": 59}, "end_point": {"row": 198, "column": 61}}, {"id": 626, "type": "identifier", "text": "scanlen", "parent": 622, "children": [], "start_point": {"row": 198, "column": 64}, "end_point": {"row": 198, "column": 71}}, {"id": 627, "type": "call_expression", "text": "printf(\"Line Length and Number of scan lines in new file?: \")", "parent": 577, "children": [628, 629], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 62}}, {"id": 628, "type": "identifier", "text": "printf", "parent": 627, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 7}}, {"id": 629, "type": "argument_list", "text": "(\"Line Length and Number of scan lines in new file?: \")", "parent": 627, "children": [630], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 62}}, {"id": 630, "type": "string_literal", "text": "\"Line Length and Number of scan lines in new file?: \"", "parent": 629, "children": [], "start_point": {"row": 201, "column": 8}, "end_point": {"row": 201, "column": 61}}, {"id": 631, "type": "assignment_expression", "text": "ret = scanf(\"%lf%lf\", &xval, &yval)", "parent": 577, "children": [632, 633, 634], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 36}}, {"id": 632, "type": "identifier", "text": "ret", "parent": 631, "children": [], "start_point": {"row": 202, "column": 1}, "end_point": {"row": 202, "column": 4}}, {"id": 633, "type": "=", "text": "=", "parent": 631, "children": [], "start_point": {"row": 202, "column": 5}, "end_point": {"row": 202, "column": 6}}, {"id": 634, "type": "call_expression", "text": "scanf(\"%lf%lf\", &xval, &yval)", "parent": 631, "children": [635, 636], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 36}}, {"id": 635, "type": "identifier", "text": "scanf", "parent": 634, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 12}}, {"id": 636, "type": "argument_list", "text": "(\"%lf%lf\", &xval, &yval)", "parent": 634, "children": [637, 638, 640], "start_point": {"row": 202, "column": 12}, "end_point": {"row": 202, "column": 36}}, {"id": 637, "type": "string_literal", "text": "\"%lf%lf\"", "parent": 636, "children": [], "start_point": {"row": 202, "column": 13}, "end_point": {"row": 202, "column": 21}}, {"id": 638, "type": "pointer_expression", "text": "&xval", "parent": 636, "children": [639], "start_point": {"row": 202, "column": 23}, "end_point": {"row": 202, "column": 28}}, {"id": 639, "type": "identifier", "text": "xval", "parent": 638, "children": [], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 28}}, {"id": 640, "type": "pointer_expression", "text": "&yval", "parent": 636, "children": [641], "start_point": {"row": 202, "column": 30}, "end_point": {"row": 202, "column": 35}}, {"id": 641, "type": "identifier", "text": "yval", "parent": 640, "children": [], "start_point": {"row": 202, "column": 31}, "end_point": {"row": 202, "column": 35}}, {"id": 642, "type": "if_statement", "text": "if (ret != 2) {\n\t perror(\"scanf\");\n\t}", "parent": 577, "children": [643], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 205, "column": 2}}, {"id": 643, "type": "parenthesized_expression", "text": "(ret != 2)", "parent": 642, "children": [644], "start_point": {"row": 203, "column": 4}, "end_point": {"row": 203, "column": 14}}, {"id": 644, "type": "binary_expression", "text": "ret != 2", "parent": 643, "children": [645, 646, 647], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 13}}, {"id": 645, "type": "identifier", "text": "ret", "parent": 644, "children": [], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 8}}, {"id": 646, "type": "!=", "text": "!=", "parent": 644, "children": [], "start_point": {"row": 203, "column": 9}, "end_point": {"row": 203, "column": 11}}, {"id": 647, "type": "number_literal", "text": "2", "parent": 644, "children": [], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 13}}, {"id": 648, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 642, "children": [649, 650], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 20}}, {"id": 649, "type": "identifier", "text": "perror", "parent": 648, "children": [], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 11}}, {"id": 650, "type": "argument_list", "text": "(\"scanf\")", "parent": 648, "children": [651], "start_point": {"row": 204, "column": 11}, "end_point": {"row": 204, "column": 20}}, {"id": 651, "type": "string_literal", "text": "\"scanf\"", "parent": 650, "children": [], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 19}}, {"id": 652, "type": "if_statement", "text": "if (xval < 1)\n\t xval = 1;\n\telse if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;", "parent": 577, "children": [653, 662], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 211, "column": 22}}, {"id": 653, "type": "parenthesized_expression", "text": "(xval < 1)", "parent": 652, "children": [654], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 14}}, {"id": 654, "type": "binary_expression", "text": "xval < 1", "parent": 653, "children": [655, 656, 657], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 13}}, {"id": 655, "type": "identifier", "text": "xval", "parent": 654, "children": [], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 9}}, {"id": 656, "type": "<", "text": "<", "parent": 654, "children": [], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 11}}, {"id": 657, "type": "number_literal", "text": "1", "parent": 654, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 13}}, {"id": 658, "type": "assignment_expression", "text": "xval = 1", "parent": 652, "children": [659, 660, 661], "start_point": {"row": 209, "column": 5}, "end_point": {"row": 209, "column": 13}}, {"id": 659, "type": "identifier", "text": "xval", "parent": 658, "children": [], "start_point": {"row": 209, "column": 5}, "end_point": {"row": 209, "column": 9}}, {"id": 660, "type": "=", "text": "=", "parent": 658, "children": [], "start_point": {"row": 209, "column": 10}, "end_point": {"row": 209, "column": 11}}, {"id": 661, "type": "number_literal", "text": "1", "parent": 658, "children": [], "start_point": {"row": 209, "column": 12}, "end_point": {"row": 209, "column": 13}}, {"id": 662, "type": "else_clause", "text": "else if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;", "parent": 652, "children": [663], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 211, "column": 22}}, {"id": 663, "type": "if_statement", "text": "if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;", "parent": 662, "children": [664], "start_point": {"row": 210, "column": 6}, "end_point": {"row": 211, "column": 22}}, {"id": 664, "type": "parenthesized_expression", "text": "(xval > INT_MAX-1)", "parent": 663, "children": [665], "start_point": {"row": 210, "column": 9}, "end_point": {"row": 210, "column": 27}}, {"id": 665, "type": "binary_expression", "text": "xval > INT_MAX-1", "parent": 664, "children": [666, 667, 668], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 26}}, {"id": 666, "type": "identifier", "text": "xval", "parent": 665, "children": [], "start_point": {"row": 210, "column": 10}, "end_point": {"row": 210, "column": 14}}, {"id": 667, "type": ">", "text": ">", "parent": 665, "children": [], "start_point": {"row": 210, "column": 15}, "end_point": {"row": 210, "column": 16}}, {"id": 668, "type": "binary_expression", "text": "INT_MAX-1", "parent": 665, "children": [669, 670, 671], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 26}}, {"id": 669, "type": "identifier", "text": "INT_MAX", "parent": 668, "children": [], "start_point": {"row": 210, "column": 17}, "end_point": {"row": 210, "column": 24}}, {"id": 670, "type": "-", "text": "-", "parent": 668, "children": [], "start_point": {"row": 210, "column": 24}, "end_point": {"row": 210, "column": 25}}, {"id": 671, "type": "number_literal", "text": "1", "parent": 668, "children": [], "start_point": {"row": 210, "column": 25}, "end_point": {"row": 210, "column": 26}}, {"id": 672, "type": "assignment_expression", "text": "xval = INT_MAX-1", "parent": 663, "children": [673, 674, 675], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 21}}, {"id": 673, "type": "identifier", "text": "xval", "parent": 672, "children": [], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 9}}, {"id": 674, "type": "=", "text": "=", "parent": 672, "children": [], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 11}}, {"id": 675, "type": "binary_expression", "text": "INT_MAX-1", "parent": 672, "children": [676, 677, 678], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 21}}, {"id": 676, "type": "identifier", "text": "INT_MAX", "parent": 675, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 19}}, {"id": 677, "type": "-", "text": "-", "parent": 675, "children": [], "start_point": {"row": 211, "column": 19}, "end_point": {"row": 211, "column": 20}}, {"id": 678, "type": "number_literal", "text": "1", "parent": 675, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 21}}, {"id": 679, "type": "assignment_expression", "text": "xnum = xval", "parent": 577, "children": [680, 681, 682], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 12}}, {"id": 680, "type": "identifier", "text": "xnum", "parent": 679, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 5}}, {"id": 681, "type": "=", "text": "=", "parent": 679, "children": [], "start_point": {"row": 212, "column": 6}, "end_point": {"row": 212, "column": 7}}, {"id": 682, "type": "identifier", "text": "xval", "parent": 679, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 12}}, {"id": 683, "type": "if_statement", "text": "if (yval < 1)\n\t yval = 1;\n\telse if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;", "parent": 577, "children": [684, 693], "start_point": {"row": 213, "column": 1}, "end_point": {"row": 216, "column": 22}}, {"id": 684, "type": "parenthesized_expression", "text": "(yval < 1)", "parent": 683, "children": [685], "start_point": {"row": 213, "column": 4}, "end_point": {"row": 213, "column": 14}}, {"id": 685, "type": "binary_expression", "text": "yval < 1", "parent": 684, "children": [686, 687, 688], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 13}}, {"id": 686, "type": "identifier", "text": "yval", "parent": 685, "children": [], "start_point": {"row": 213, "column": 5}, "end_point": {"row": 213, "column": 9}}, {"id": 687, "type": "<", "text": "<", "parent": 685, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 11}}, {"id": 688, "type": "number_literal", "text": "1", "parent": 685, "children": [], "start_point": {"row": 213, "column": 12}, "end_point": {"row": 213, "column": 13}}, {"id": 689, "type": "assignment_expression", "text": "yval = 1", "parent": 683, "children": [690, 691, 692], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 13}}, {"id": 690, "type": "identifier", "text": "yval", "parent": 689, "children": [], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 9}}, {"id": 691, "type": "=", "text": "=", "parent": 689, "children": [], "start_point": {"row": 214, "column": 10}, "end_point": {"row": 214, "column": 11}}, {"id": 692, "type": "number_literal", "text": "1", "parent": 689, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 13}}, {"id": 693, "type": "else_clause", "text": "else if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;", "parent": 683, "children": [694], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 216, "column": 22}}, {"id": 694, "type": "if_statement", "text": "if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;", "parent": 693, "children": [695], "start_point": {"row": 215, "column": 6}, "end_point": {"row": 216, "column": 22}}, {"id": 695, "type": "parenthesized_expression", "text": "(yval > INT_MAX-1)", "parent": 694, "children": [696], "start_point": {"row": 215, "column": 9}, "end_point": {"row": 215, "column": 27}}, {"id": 696, "type": "binary_expression", "text": "yval > INT_MAX-1", "parent": 695, "children": [697, 698, 699], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 26}}, {"id": 697, "type": "identifier", "text": "yval", "parent": 696, "children": [], "start_point": {"row": 215, "column": 10}, "end_point": {"row": 215, "column": 14}}, {"id": 698, "type": ">", "text": ">", "parent": 696, "children": [], "start_point": {"row": 215, "column": 15}, "end_point": {"row": 215, "column": 16}}, {"id": 699, "type": "binary_expression", "text": "INT_MAX-1", "parent": 696, "children": [700, 701, 702], "start_point": {"row": 215, "column": 17}, "end_point": {"row": 215, "column": 26}}, {"id": 700, "type": "identifier", "text": "INT_MAX", "parent": 699, "children": [], "start_point": {"row": 215, "column": 17}, "end_point": {"row": 215, "column": 24}}, {"id": 701, "type": "-", "text": "-", "parent": 699, "children": [], "start_point": {"row": 215, "column": 24}, "end_point": {"row": 215, "column": 25}}, {"id": 702, "type": "number_literal", "text": "1", "parent": 699, "children": [], "start_point": {"row": 215, "column": 25}, "end_point": {"row": 215, "column": 26}}, {"id": 703, "type": "assignment_expression", "text": "yval = INT_MAX-1", "parent": 694, "children": [704, 705, 706], "start_point": {"row": 216, "column": 5}, "end_point": {"row": 216, "column": 21}}, {"id": 704, "type": "identifier", "text": "yval", "parent": 703, "children": [], "start_point": {"row": 216, "column": 5}, "end_point": {"row": 216, "column": 9}}, {"id": 705, "type": "=", "text": "=", "parent": 703, "children": [], "start_point": {"row": 216, "column": 10}, "end_point": {"row": 216, "column": 11}}, {"id": 706, "type": "binary_expression", "text": "INT_MAX-1", "parent": 703, "children": [707, 708, 709], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 21}}, {"id": 707, "type": "identifier", "text": "INT_MAX", "parent": 706, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 19}}, {"id": 708, "type": "-", "text": "-", "parent": 706, "children": [], "start_point": {"row": 216, "column": 19}, "end_point": {"row": 216, "column": 20}}, {"id": 709, "type": "number_literal", "text": "1", "parent": 706, "children": [], "start_point": {"row": 216, "column": 20}, "end_point": {"row": 216, "column": 21}}, {"id": 710, "type": "assignment_expression", "text": "ynum = yval", "parent": 577, "children": [711, 712, 713], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 12}}, {"id": 711, "type": "identifier", "text": "ynum", "parent": 710, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 5}}, {"id": 712, "type": "=", "text": "=", "parent": 710, "children": [], "start_point": {"row": 217, "column": 6}, "end_point": {"row": 217, "column": 7}}, {"id": 713, "type": "identifier", "text": "yval", "parent": 710, "children": [], "start_point": {"row": 217, "column": 8}, "end_point": {"row": 217, "column": 12}}, {"id": 714, "type": "call_expression", "text": "printf(\"Upper left corner (in input file) (x, y)?: \")", "parent": 577, "children": [715, 716], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 54}}, {"id": 715, "type": "identifier", "text": "printf", "parent": 714, "children": [], "start_point": {"row": 219, "column": 1}, "end_point": {"row": 219, "column": 7}}, {"id": 716, "type": "argument_list", "text": "(\"Upper left corner (in input file) (x, y)?: \")", "parent": 714, "children": [717], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 219, "column": 54}}, {"id": 717, "type": "string_literal", "text": "\"Upper left corner (in input file) (x, y)?: \"", "parent": 716, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 53}}, {"id": 718, "type": "assignment_expression", "text": "ret = scanf(\"%f%f\", &ulx, &uly)", "parent": 577, "children": [719, 720, 721], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 32}}, {"id": 719, "type": "identifier", "text": "ret", "parent": 718, "children": [], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 4}}, {"id": 720, "type": "=", "text": "=", "parent": 718, "children": [], "start_point": {"row": 220, "column": 5}, "end_point": {"row": 220, "column": 6}}, {"id": 721, "type": "call_expression", "text": "scanf(\"%f%f\", &ulx, &uly)", "parent": 718, "children": [722, 723], "start_point": {"row": 220, "column": 7}, "end_point": {"row": 220, "column": 32}}, {"id": 722, "type": "identifier", "text": "scanf", "parent": 721, "children": [], "start_point": {"row": 220, "column": 7}, "end_point": {"row": 220, "column": 12}}, {"id": 723, "type": "argument_list", "text": "(\"%f%f\", &ulx, &uly)", "parent": 721, "children": [724, 725, 727], "start_point": {"row": 220, "column": 12}, "end_point": {"row": 220, "column": 32}}, {"id": 724, "type": "string_literal", "text": "\"%f%f\"", "parent": 723, "children": [], "start_point": {"row": 220, "column": 13}, "end_point": {"row": 220, "column": 19}}, {"id": 725, "type": "pointer_expression", "text": "&ulx", "parent": 723, "children": [726], "start_point": {"row": 220, "column": 21}, "end_point": {"row": 220, "column": 25}}, {"id": 726, "type": "identifier", "text": "ulx", "parent": 725, "children": [], "start_point": {"row": 220, "column": 22}, "end_point": {"row": 220, "column": 25}}, {"id": 727, "type": "pointer_expression", "text": "&uly", "parent": 723, "children": [728], "start_point": {"row": 220, "column": 27}, "end_point": {"row": 220, "column": 31}}, {"id": 728, "type": "identifier", "text": "uly", "parent": 727, "children": [], "start_point": {"row": 220, "column": 28}, "end_point": {"row": 220, "column": 31}}, {"id": 729, "type": "if_statement", "text": "if (ret != 2)\n\t perror(\"scanf\");", "parent": 577, "children": [730], "start_point": {"row": 221, "column": 1}, "end_point": {"row": 222, "column": 21}}, {"id": 730, "type": "parenthesized_expression", "text": "(ret != 2)", "parent": 729, "children": [731], "start_point": {"row": 221, "column": 4}, "end_point": {"row": 221, "column": 14}}, {"id": 731, "type": "binary_expression", "text": "ret != 2", "parent": 730, "children": [732, 733, 734], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 13}}, {"id": 732, "type": "identifier", "text": "ret", "parent": 731, "children": [], "start_point": {"row": 221, "column": 5}, "end_point": {"row": 221, "column": 8}}, {"id": 733, "type": "!=", "text": "!=", "parent": 731, "children": [], "start_point": {"row": 221, "column": 9}, "end_point": {"row": 221, "column": 11}}, {"id": 734, "type": "number_literal", "text": "2", "parent": 731, "children": [], "start_point": {"row": 221, "column": 12}, "end_point": {"row": 221, "column": 13}}, {"id": 735, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 729, "children": [736, 737], "start_point": {"row": 222, "column": 5}, "end_point": {"row": 222, "column": 20}}, {"id": 736, "type": "identifier", "text": "perror", "parent": 735, "children": [], "start_point": {"row": 222, "column": 5}, "end_point": {"row": 222, "column": 11}}, {"id": 737, "type": "argument_list", "text": "(\"scanf\")", "parent": 735, "children": [738], "start_point": {"row": 222, "column": 11}, "end_point": {"row": 222, "column": 20}}, {"id": 738, "type": "string_literal", "text": "\"scanf\"", "parent": 737, "children": [], "start_point": {"row": 222, "column": 12}, "end_point": {"row": 222, "column": 19}}, {"id": 739, "type": "call_expression", "text": "printf(\"Upper right corner (x, y)?: \")", "parent": 577, "children": [740, 741], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 39}}, {"id": 740, "type": "identifier", "text": "printf", "parent": 739, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 7}}, {"id": 741, "type": "argument_list", "text": "(\"Upper right corner (x, y)?: \")", "parent": 739, "children": [742], "start_point": {"row": 224, "column": 7}, "end_point": {"row": 224, "column": 39}}, {"id": 742, "type": "string_literal", "text": "\"Upper right corner (x, y)?: \"", "parent": 741, "children": [], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 38}}, {"id": 743, "type": "assignment_expression", "text": "ret = scanf(\"%f%f\", &urx, &ury)", "parent": 577, "children": [744, 745, 746], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 32}}, {"id": 744, "type": "identifier", "text": "ret", "parent": 743, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 4}}, {"id": 745, "type": "=", "text": "=", "parent": 743, "children": [], "start_point": {"row": 225, "column": 5}, "end_point": {"row": 225, "column": 6}}, {"id": 746, "type": "call_expression", "text": "scanf(\"%f%f\", &urx, &ury)", "parent": 743, "children": [747, 748], "start_point": {"row": 225, "column": 7}, "end_point": {"row": 225, "column": 32}}, {"id": 747, "type": "identifier", "text": "scanf", "parent": 746, "children": [], "start_point": {"row": 225, "column": 7}, "end_point": {"row": 225, "column": 12}}, {"id": 748, "type": "argument_list", "text": "(\"%f%f\", &urx, &ury)", "parent": 746, "children": [749, 750, 752], "start_point": {"row": 225, "column": 12}, "end_point": {"row": 225, "column": 32}}, {"id": 749, "type": "string_literal", "text": "\"%f%f\"", "parent": 748, "children": [], "start_point": {"row": 225, "column": 13}, "end_point": {"row": 225, "column": 19}}, {"id": 750, "type": "pointer_expression", "text": "&urx", "parent": 748, "children": [751], "start_point": {"row": 225, "column": 21}, "end_point": {"row": 225, "column": 25}}, {"id": 751, "type": "identifier", "text": "urx", "parent": 750, "children": [], "start_point": {"row": 225, "column": 22}, "end_point": {"row": 225, "column": 25}}, {"id": 752, "type": "pointer_expression", "text": "&ury", "parent": 748, "children": [753], "start_point": {"row": 225, "column": 27}, "end_point": {"row": 225, "column": 31}}, {"id": 753, "type": "identifier", "text": "ury", "parent": 752, "children": [], "start_point": {"row": 225, "column": 28}, "end_point": {"row": 225, "column": 31}}, {"id": 754, "type": "if_statement", "text": "if (ret != 2)\n\t perror(\"scanf\");", "parent": 577, "children": [755], "start_point": {"row": 226, "column": 1}, "end_point": {"row": 227, "column": 21}}, {"id": 755, "type": "parenthesized_expression", "text": "(ret != 2)", "parent": 754, "children": [756], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 14}}, {"id": 756, "type": "binary_expression", "text": "ret != 2", "parent": 755, "children": [757, 758, 759], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 13}}, {"id": 757, "type": "identifier", "text": "ret", "parent": 756, "children": [], "start_point": {"row": 226, "column": 5}, "end_point": {"row": 226, "column": 8}}, {"id": 758, "type": "!=", "text": "!=", "parent": 756, "children": [], "start_point": {"row": 226, "column": 9}, "end_point": {"row": 226, "column": 11}}, {"id": 759, "type": "number_literal", "text": "2", "parent": 756, "children": [], "start_point": {"row": 226, "column": 12}, "end_point": {"row": 226, "column": 13}}, {"id": 760, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 754, "children": [761, 762], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 20}}, {"id": 761, "type": "identifier", "text": "perror", "parent": 760, "children": [], "start_point": {"row": 227, "column": 5}, "end_point": {"row": 227, "column": 11}}, {"id": 762, "type": "argument_list", "text": "(\"scanf\")", "parent": 760, "children": [763], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 20}}, {"id": 763, "type": "string_literal", "text": "\"scanf\"", "parent": 762, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 19}}, {"id": 764, "type": "call_expression", "text": "printf(\"Lower right corner (x, y)?: \")", "parent": 577, "children": [765, 766], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 39}}, {"id": 765, "type": "identifier", "text": "printf", "parent": 764, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 7}}, {"id": 766, "type": "argument_list", "text": "(\"Lower right corner (x, y)?: \")", "parent": 764, "children": [767], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 39}}, {"id": 767, "type": "string_literal", "text": "\"Lower right corner (x, y)?: \"", "parent": 766, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 38}}, {"id": 768, "type": "assignment_expression", "text": "ret = scanf(\"%f%f\", &lrx, &lry)", "parent": 577, "children": [769, 770, 771], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 32}}, {"id": 769, "type": "identifier", "text": "ret", "parent": 768, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 4}}, {"id": 770, "type": "=", "text": "=", "parent": 768, "children": [], "start_point": {"row": 230, "column": 5}, "end_point": {"row": 230, "column": 6}}, {"id": 771, "type": "call_expression", "text": "scanf(\"%f%f\", &lrx, &lry)", "parent": 768, "children": [772, 773], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 32}}, {"id": 772, "type": "identifier", "text": "scanf", "parent": 771, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 12}}, {"id": 773, "type": "argument_list", "text": "(\"%f%f\", &lrx, &lry)", "parent": 771, "children": [774, 775, 777], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 32}}, {"id": 774, "type": "string_literal", "text": "\"%f%f\"", "parent": 773, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 19}}, {"id": 775, "type": "pointer_expression", "text": "&lrx", "parent": 773, "children": [776], "start_point": {"row": 230, "column": 21}, "end_point": {"row": 230, "column": 25}}, {"id": 776, "type": "identifier", "text": "lrx", "parent": 775, "children": [], "start_point": {"row": 230, "column": 22}, "end_point": {"row": 230, "column": 25}}, {"id": 777, "type": "pointer_expression", "text": "&lry", "parent": 773, "children": [778], "start_point": {"row": 230, "column": 27}, "end_point": {"row": 230, "column": 31}}, {"id": 778, "type": "identifier", "text": "lry", "parent": 777, "children": [], "start_point": {"row": 230, "column": 28}, "end_point": {"row": 230, "column": 31}}, {"id": 779, "type": "if_statement", "text": "if (ret != 2)\n\t perror(\"scanf\");", "parent": 577, "children": [780], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 232, "column": 21}}, {"id": 780, "type": "parenthesized_expression", "text": "(ret != 2)", "parent": 779, "children": [781], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 14}}, {"id": 781, "type": "binary_expression", "text": "ret != 2", "parent": 780, "children": [782, 783, 784], "start_point": {"row": 231, "column": 5}, "end_point": {"row": 231, "column": 13}}, {"id": 782, "type": "identifier", "text": "ret", "parent": 781, "children": [], "start_point": {"row": 231, "column": 5}, "end_point": {"row": 231, "column": 8}}, {"id": 783, "type": "!=", "text": "!=", "parent": 781, "children": [], "start_point": {"row": 231, "column": 9}, "end_point": {"row": 231, "column": 11}}, {"id": 784, "type": "number_literal", "text": "2", "parent": 781, "children": [], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 13}}, {"id": 785, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 779, "children": [786, 787], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 232, "column": 20}}, {"id": 786, "type": "identifier", "text": "perror", "parent": 785, "children": [], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 232, "column": 11}}, {"id": 787, "type": "argument_list", "text": "(\"scanf\")", "parent": 785, "children": [788], "start_point": {"row": 232, "column": 11}, "end_point": {"row": 232, "column": 20}}, {"id": 788, "type": "string_literal", "text": "\"scanf\"", "parent": 787, "children": [], "start_point": {"row": 232, "column": 12}, "end_point": {"row": 232, "column": 19}}, {"id": 789, "type": "call_expression", "text": "printf(\"Lower left corner (x, y)?: \")", "parent": 577, "children": [790, 791], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 38}}, {"id": 790, "type": "identifier", "text": "printf", "parent": 789, "children": [], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 7}}, {"id": 791, "type": "argument_list", "text": "(\"Lower left corner (x, y)?: \")", "parent": 789, "children": [792], "start_point": {"row": 234, "column": 7}, "end_point": {"row": 234, "column": 38}}, {"id": 792, "type": "string_literal", "text": "\"Lower left corner (x, y)?: \"", "parent": 791, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 37}}, {"id": 793, "type": "assignment_expression", "text": "ret = scanf(\"%f%f\", &llx, &lly)", "parent": 577, "children": [794, 795, 796], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 32}}, {"id": 794, "type": "identifier", "text": "ret", "parent": 793, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 4}}, {"id": 795, "type": "=", "text": "=", "parent": 793, "children": [], "start_point": {"row": 235, "column": 5}, "end_point": {"row": 235, "column": 6}}, {"id": 796, "type": "call_expression", "text": "scanf(\"%f%f\", &llx, &lly)", "parent": 793, "children": [797, 798], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 32}}, {"id": 797, "type": "identifier", "text": "scanf", "parent": 796, "children": [], "start_point": {"row": 235, "column": 7}, "end_point": {"row": 235, "column": 12}}, {"id": 798, "type": "argument_list", "text": "(\"%f%f\", &llx, &lly)", "parent": 796, "children": [799, 800, 802], "start_point": {"row": 235, "column": 12}, "end_point": {"row": 235, "column": 32}}, {"id": 799, "type": "string_literal", "text": "\"%f%f\"", "parent": 798, "children": [], "start_point": {"row": 235, "column": 13}, "end_point": {"row": 235, "column": 19}}, {"id": 800, "type": "pointer_expression", "text": "&llx", "parent": 798, "children": [801], "start_point": {"row": 235, "column": 21}, "end_point": {"row": 235, "column": 25}}, {"id": 801, "type": "identifier", "text": "llx", "parent": 800, "children": [], "start_point": {"row": 235, "column": 22}, "end_point": {"row": 235, "column": 25}}, {"id": 802, "type": "pointer_expression", "text": "&lly", "parent": 798, "children": [803], "start_point": {"row": 235, "column": 27}, "end_point": {"row": 235, "column": 31}}, {"id": 803, "type": "identifier", "text": "lly", "parent": 802, "children": [], "start_point": {"row": 235, "column": 28}, "end_point": {"row": 235, "column": 31}}, {"id": 804, "type": "if_statement", "text": "if (ret != 2)\n\t perror(\"scanf\");", "parent": 577, "children": [805], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 237, "column": 21}}, {"id": 805, "type": "parenthesized_expression", "text": "(ret != 2)", "parent": 804, "children": [806], "start_point": {"row": 236, "column": 4}, "end_point": {"row": 236, "column": 14}}, {"id": 806, "type": "binary_expression", "text": "ret != 2", "parent": 805, "children": [807, 808, 809], "start_point": {"row": 236, "column": 5}, "end_point": {"row": 236, "column": 13}}, {"id": 807, "type": "identifier", "text": "ret", "parent": 806, "children": [], "start_point": {"row": 236, "column": 5}, "end_point": {"row": 236, "column": 8}}, {"id": 808, "type": "!=", "text": "!=", "parent": 806, "children": [], "start_point": {"row": 236, "column": 9}, "end_point": {"row": 236, "column": 11}}, {"id": 809, "type": "number_literal", "text": "2", "parent": 806, "children": [], "start_point": {"row": 236, "column": 12}, "end_point": {"row": 236, "column": 13}}, {"id": 810, "type": "call_expression", "text": "perror(\"scanf\")", "parent": 804, "children": [811, 812], "start_point": {"row": 237, "column": 5}, "end_point": {"row": 237, "column": 20}}, {"id": 811, "type": "identifier", "text": "perror", "parent": 810, "children": [], "start_point": {"row": 237, "column": 5}, "end_point": {"row": 237, "column": 11}}, {"id": 812, "type": "argument_list", "text": "(\"scanf\")", "parent": 810, "children": [813], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 20}}, {"id": 813, "type": "string_literal", "text": "\"scanf\"", "parent": 812, "children": [], "start_point": {"row": 237, "column": 12}, "end_point": {"row": 237, "column": 19}}, {"id": 814, "type": "call_expression", "text": "init_buffer()", "parent": 208, "children": [815, 816], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 17}}, {"id": 815, "type": "identifier", "text": "init_buffer", "parent": 814, "children": [], "start_point": {"row": 241, "column": 4}, "end_point": {"row": 241, "column": 15}}, {"id": 816, "type": "argument_list", "text": "()", "parent": 814, "children": [], "start_point": {"row": 241, "column": 15}, "end_point": {"row": 241, "column": 17}}, {"id": 817, "type": "if_statement", "text": "if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n\tfprintf(stderr, \"bwcrop: Warning: You are skewing enough in the y direction\\n\");\n\tfprintf(stderr, \"bwcrop: relative to my buffer size that I will exhibit silly\\n\");\n\tfprintf(stderr, \"bwcrop: buffer syndrome (two replacements per scanline).\\n\");\n\tfprintf(stderr, \"bwcrop: Recompile me or use a smarter algorithm.\\n\");\n }", "parent": 208, "children": [818], "start_point": {"row": 244, "column": 4}, "end_point": {"row": 249, "column": 5}}, {"id": 818, "type": "parenthesized_expression", "text": "((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2)", "parent": 817, "children": [819], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 99}}, {"id": 819, "type": "binary_expression", "text": "(ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2", "parent": 818, "children": [820, 840, 841], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 98}}, {"id": 820, "type": "binary_expression", "text": "(ssize_t)abs((int)(ury - uly)) > buflines/2", "parent": 819, "children": [821, 835, 836], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 51}}, {"id": 821, "type": "cast_expression", "text": "(ssize_t)abs((int)(ury - uly))", "parent": 820, "children": [822, 824], "start_point": {"row": 244, "column": 8}, "end_point": {"row": 244, "column": 38}}, {"id": 822, "type": "type_descriptor", "text": "ssize_t", "parent": 821, "children": [823], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 16}}, {"id": 823, "type": "primitive_type", "text": "ssize_t", "parent": 822, "children": [], "start_point": {"row": 244, "column": 9}, "end_point": {"row": 244, "column": 16}}, {"id": 824, "type": "call_expression", "text": "abs((int)(ury - uly))", "parent": 821, "children": [825, 826], "start_point": {"row": 244, "column": 17}, "end_point": {"row": 244, "column": 38}}, {"id": 825, "type": "identifier", "text": "abs", "parent": 824, "children": [], "start_point": {"row": 244, "column": 17}, "end_point": {"row": 244, "column": 20}}, {"id": 826, "type": "argument_list", "text": "((int)(ury - uly))", "parent": 824, "children": [827], "start_point": {"row": 244, "column": 20}, "end_point": {"row": 244, "column": 38}}, {"id": 827, "type": "cast_expression", "text": "(int)(ury - uly)", "parent": 826, "children": [828, 830], "start_point": {"row": 244, "column": 21}, "end_point": {"row": 244, "column": 37}}, {"id": 828, "type": "type_descriptor", "text": "int", "parent": 827, "children": [829], "start_point": {"row": 244, "column": 22}, "end_point": {"row": 244, "column": 25}}, {"id": 829, "type": "primitive_type", "text": "int", "parent": 828, "children": [], "start_point": {"row": 244, "column": 22}, "end_point": {"row": 244, "column": 25}}, {"id": 830, "type": "parenthesized_expression", "text": "(ury - uly)", "parent": 827, "children": [831], "start_point": {"row": 244, "column": 26}, "end_point": {"row": 244, "column": 37}}, {"id": 831, "type": "binary_expression", "text": "ury - uly", "parent": 830, "children": [832, 833, 834], "start_point": {"row": 244, "column": 27}, "end_point": {"row": 244, "column": 36}}, {"id": 832, "type": "identifier", "text": "ury", "parent": 831, "children": [], "start_point": {"row": 244, "column": 27}, "end_point": {"row": 244, "column": 30}}, {"id": 833, "type": "-", "text": "-", "parent": 831, "children": [], "start_point": {"row": 244, "column": 31}, "end_point": {"row": 244, "column": 32}}, {"id": 834, "type": "identifier", "text": "uly", "parent": 831, "children": [], "start_point": {"row": 244, "column": 33}, "end_point": {"row": 244, "column": 36}}, {"id": 835, "type": ">", "text": ">", "parent": 820, "children": [], "start_point": {"row": 244, "column": 39}, "end_point": {"row": 244, "column": 40}}, {"id": 836, "type": "binary_expression", "text": "buflines/2", "parent": 820, "children": [837, 838, 839], "start_point": {"row": 244, "column": 41}, "end_point": {"row": 244, "column": 51}}, {"id": 837, "type": "identifier", "text": "buflines", "parent": 836, "children": [], "start_point": {"row": 244, "column": 41}, "end_point": {"row": 244, "column": 49}}, {"id": 838, "type": "/", "text": "/", "parent": 836, "children": [], "start_point": {"row": 244, "column": 49}, "end_point": {"row": 244, "column": 50}}, {"id": 839, "type": "number_literal", "text": "2", "parent": 836, "children": [], "start_point": {"row": 244, "column": 50}, "end_point": {"row": 244, "column": 51}}, {"id": 840, "type": "||", "text": "||", "parent": 819, "children": [], "start_point": {"row": 244, "column": 52}, "end_point": {"row": 244, "column": 54}}, {"id": 841, "type": "binary_expression", "text": "(ssize_t)abs((int)(lry - lly)) > buflines/2", "parent": 819, "children": [842, 856, 857], "start_point": {"row": 244, "column": 55}, "end_point": {"row": 244, "column": 98}}, {"id": 842, "type": "cast_expression", "text": "(ssize_t)abs((int)(lry - lly))", "parent": 841, "children": [843, 845], "start_point": {"row": 244, "column": 55}, "end_point": {"row": 244, "column": 85}}, {"id": 843, "type": "type_descriptor", "text": "ssize_t", "parent": 842, "children": [844], "start_point": {"row": 244, "column": 56}, "end_point": {"row": 244, "column": 63}}, {"id": 844, "type": "primitive_type", "text": "ssize_t", "parent": 843, "children": [], "start_point": {"row": 244, "column": 56}, "end_point": {"row": 244, "column": 63}}, {"id": 845, "type": "call_expression", "text": "abs((int)(lry - lly))", "parent": 842, "children": [846, 847], "start_point": {"row": 244, "column": 64}, "end_point": {"row": 244, "column": 85}}, {"id": 846, "type": "identifier", "text": "abs", "parent": 845, "children": [], "start_point": {"row": 244, "column": 64}, "end_point": {"row": 244, "column": 67}}, {"id": 847, "type": "argument_list", "text": "((int)(lry - lly))", "parent": 845, "children": [848], "start_point": {"row": 244, "column": 67}, "end_point": {"row": 244, "column": 85}}, {"id": 848, "type": "cast_expression", "text": "(int)(lry - lly)", "parent": 847, "children": [849, 851], "start_point": {"row": 244, "column": 68}, "end_point": {"row": 244, "column": 84}}, {"id": 849, "type": "type_descriptor", "text": "int", "parent": 848, "children": [850], "start_point": {"row": 244, "column": 69}, "end_point": {"row": 244, "column": 72}}, {"id": 850, "type": "primitive_type", "text": "int", "parent": 849, "children": [], "start_point": {"row": 244, "column": 69}, "end_point": {"row": 244, "column": 72}}, {"id": 851, "type": "parenthesized_expression", "text": "(lry - lly)", "parent": 848, "children": [852], "start_point": {"row": 244, "column": 73}, "end_point": {"row": 244, "column": 84}}, {"id": 852, "type": "binary_expression", "text": "lry - lly", "parent": 851, "children": [853, 854, 855], "start_point": {"row": 244, "column": 74}, "end_point": {"row": 244, "column": 83}}, {"id": 853, "type": "identifier", "text": "lry", "parent": 852, "children": [], "start_point": {"row": 244, "column": 74}, "end_point": {"row": 244, "column": 77}}, {"id": 854, "type": "-", "text": "-", "parent": 852, "children": [], "start_point": {"row": 244, "column": 78}, "end_point": {"row": 244, "column": 79}}, {"id": 855, "type": "identifier", "text": "lly", "parent": 852, "children": [], "start_point": {"row": 244, "column": 80}, "end_point": {"row": 244, "column": 83}}, {"id": 856, "type": ">", "text": ">", "parent": 841, "children": [], "start_point": {"row": 244, "column": 86}, "end_point": {"row": 244, "column": 87}}, {"id": 857, "type": "binary_expression", "text": "buflines/2", "parent": 841, "children": [858, 859, 860], "start_point": {"row": 244, "column": 88}, "end_point": {"row": 244, "column": 98}}, {"id": 858, "type": "identifier", "text": "buflines", "parent": 857, "children": [], "start_point": {"row": 244, "column": 88}, "end_point": {"row": 244, "column": 96}}, {"id": 859, "type": "/", "text": "/", "parent": 857, "children": [], "start_point": {"row": 244, "column": 96}, "end_point": {"row": 244, "column": 97}}, {"id": 860, "type": "number_literal", "text": "2", "parent": 857, "children": [], "start_point": {"row": 244, "column": 97}, "end_point": {"row": 244, "column": 98}}, {"id": 861, "type": "call_expression", "text": "fprintf(stderr, \"bwcrop: Warning: You are skewing enough in the y direction\\n\")", "parent": 817, "children": [862, 863], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 80}}, {"id": 862, "type": "identifier", "text": "fprintf", "parent": 861, "children": [], "start_point": {"row": 245, "column": 1}, "end_point": {"row": 245, "column": 8}}, {"id": 863, "type": "argument_list", "text": "(stderr, \"bwcrop: Warning: You are skewing enough in the y direction\\n\")", "parent": 861, "children": [864, 865], "start_point": {"row": 245, "column": 8}, "end_point": {"row": 245, "column": 80}}, {"id": 864, "type": "identifier", "text": "stderr", "parent": 863, "children": [], "start_point": {"row": 245, "column": 9}, "end_point": {"row": 245, "column": 15}}, {"id": 865, "type": "string_literal", "text": "\"bwcrop: Warning: You are skewing enough in the y direction\\n\"", "parent": 863, "children": [866], "start_point": {"row": 245, "column": 17}, "end_point": {"row": 245, "column": 79}}, {"id": 866, "type": "escape_sequence", "text": "\\n", "parent": 865, "children": [], "start_point": {"row": 245, "column": 76}, "end_point": {"row": 245, "column": 78}}, {"id": 867, "type": "call_expression", "text": "fprintf(stderr, \"bwcrop: relative to my buffer size that I will exhibit silly\\n\")", "parent": 817, "children": [868, 869], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 82}}, {"id": 868, "type": "identifier", "text": "fprintf", "parent": 867, "children": [], "start_point": {"row": 246, "column": 1}, "end_point": {"row": 246, "column": 8}}, {"id": 869, "type": "argument_list", "text": "(stderr, \"bwcrop: relative to my buffer size that I will exhibit silly\\n\")", "parent": 867, "children": [870, 871], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 82}}, {"id": 870, "type": "identifier", "text": "stderr", "parent": 869, "children": [], "start_point": {"row": 246, "column": 9}, "end_point": {"row": 246, "column": 15}}, {"id": 871, "type": "string_literal", "text": "\"bwcrop: relative to my buffer size that I will exhibit silly\\n\"", "parent": 869, "children": [872], "start_point": {"row": 246, "column": 17}, "end_point": {"row": 246, "column": 81}}, {"id": 872, "type": "escape_sequence", "text": "\\n", "parent": 871, "children": [], "start_point": {"row": 246, "column": 78}, "end_point": {"row": 246, "column": 80}}, {"id": 873, "type": "call_expression", "text": "fprintf(stderr, \"bwcrop: buffer syndrome (two replacements per scanline).\\n\")", "parent": 817, "children": [874, 875], "start_point": {"row": 247, "column": 1}, "end_point": {"row": 247, "column": 78}}, {"id": 874, "type": "identifier", "text": "fprintf", "parent": 873, "children": [], "start_point": {"row": 247, "column": 1}, "end_point": {"row": 247, "column": 8}}, {"id": 875, "type": "argument_list", "text": "(stderr, \"bwcrop: buffer syndrome (two replacements per scanline).\\n\")", "parent": 873, "children": [876, 877], "start_point": {"row": 247, "column": 8}, "end_point": {"row": 247, "column": 78}}, {"id": 876, "type": "identifier", "text": "stderr", "parent": 875, "children": [], "start_point": {"row": 247, "column": 9}, "end_point": {"row": 247, "column": 15}}, {"id": 877, "type": "string_literal", "text": "\"bwcrop: buffer syndrome (two replacements per scanline).\\n\"", "parent": 875, "children": [878], "start_point": {"row": 247, "column": 17}, "end_point": {"row": 247, "column": 77}}, {"id": 878, "type": "escape_sequence", "text": "\\n", "parent": 877, "children": [], "start_point": {"row": 247, "column": 74}, "end_point": {"row": 247, "column": 76}}, {"id": 879, "type": "call_expression", "text": "fprintf(stderr, \"bwcrop: Recompile me or use a smarter algorithm.\\n\")", "parent": 817, "children": [880, 881], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 70}}, {"id": 880, "type": "identifier", "text": "fprintf", "parent": 879, "children": [], "start_point": {"row": 248, "column": 1}, "end_point": {"row": 248, "column": 8}}, {"id": 881, "type": "argument_list", "text": "(stderr, \"bwcrop: Recompile me or use a smarter algorithm.\\n\")", "parent": 879, "children": [882, 883], "start_point": {"row": 248, "column": 8}, "end_point": {"row": 248, "column": 70}}, {"id": 882, "type": "identifier", "text": "stderr", "parent": 881, "children": [], "start_point": {"row": 248, "column": 9}, "end_point": {"row": 248, "column": 15}}, {"id": 883, "type": "string_literal", "text": "\"bwcrop: Recompile me or use a smarter algorithm.\\n\"", "parent": 881, "children": [884], "start_point": {"row": 248, "column": 17}, "end_point": {"row": 248, "column": 69}}, {"id": 884, "type": "escape_sequence", "text": "\\n", "parent": 883, "children": [], "start_point": {"row": 248, "column": 66}, "end_point": {"row": 248, "column": 68}}, {"id": 885, "type": "for_statement", "text": "for (row = 0; row < ynum; row++) {\n\t/* calculate left point of row */\n\tbx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n\tby1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n\t/* calculate right point of row */\n\tbx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n\tby2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n\tfor (col = 0; col < xnum; col++) {\n\t /* calculate point along row */\n\t bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n\t by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n\t /* Make sure we are in the buffer */\n\t yindex = round(by) - buf_start;\n\t if (yindex >= buflines) {\n\t\tfill_buffer(round(by));\n\t\tyindex = round(by) - buf_start;\n\t }\n\t yindex = yindex + buf_start;\n\n\t value = buffer[ yindex * scanlen + round(bx) ];\n\t ret = fwrite(&value, sizeof(value), 1, ofp);\n\t if (ret == 0)\n\t\tperror(\"fwrite\");\n\t}\n }", "parent": 208, "children": [886, 890, 894], "start_point": {"row": 252, "column": 4}, "end_point": {"row": 278, "column": 5}}, {"id": 886, "type": "assignment_expression", "text": "row = 0", "parent": 885, "children": [887, 888, 889], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 16}}, {"id": 887, "type": "identifier", "text": "row", "parent": 886, "children": [], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 12}}, {"id": 888, "type": "=", "text": "=", "parent": 886, "children": [], "start_point": {"row": 252, "column": 13}, "end_point": {"row": 252, "column": 14}}, {"id": 889, "type": "number_literal", "text": "0", "parent": 886, "children": [], "start_point": {"row": 252, "column": 15}, "end_point": {"row": 252, "column": 16}}, {"id": 890, "type": "binary_expression", "text": "row < ynum", "parent": 885, "children": [891, 892, 893], "start_point": {"row": 252, "column": 18}, "end_point": {"row": 252, "column": 28}}, {"id": 891, "type": "identifier", "text": "row", "parent": 890, "children": [], "start_point": {"row": 252, "column": 18}, "end_point": {"row": 252, "column": 21}}, {"id": 892, "type": "<", "text": "<", "parent": 890, "children": [], "start_point": {"row": 252, "column": 22}, "end_point": {"row": 252, "column": 23}}, {"id": 893, "type": "identifier", "text": "ynum", "parent": 890, "children": [], "start_point": {"row": 252, "column": 24}, "end_point": {"row": 252, "column": 28}}, {"id": 894, "type": "update_expression", "text": "row++", "parent": 885, "children": [895, 896], "start_point": {"row": 252, "column": 30}, "end_point": {"row": 252, "column": 35}}, {"id": 895, "type": "identifier", "text": "row", "parent": 894, "children": [], "start_point": {"row": 252, "column": 30}, "end_point": {"row": 252, "column": 33}}, {"id": 896, "type": "++", "text": "++", "parent": 894, "children": [], "start_point": {"row": 252, "column": 33}, "end_point": {"row": 252, "column": 35}}, {"id": 897, "type": "assignment_expression", "text": "bx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx", "parent": 885, "children": [898, 899, 900], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 57}}, {"id": 898, "type": "identifier", "text": "bx1", "parent": 897, "children": [], "start_point": {"row": 254, "column": 1}, "end_point": {"row": 254, "column": 4}}, {"id": 899, "type": "=", "text": "=", "parent": 897, "children": [], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 6}}, {"id": 900, "type": "binary_expression", "text": "((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx", "parent": 897, "children": [901, 923, 924], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 57}}, {"id": 901, "type": "binary_expression", "text": "((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row", "parent": 900, "children": [902, 918, 919], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 51}}, {"id": 902, "type": "parenthesized_expression", "text": "((ulx-llx)/(fastf_t)(ynum-1))", "parent": 901, "children": [903], "start_point": {"row": 254, "column": 7}, "end_point": {"row": 254, "column": 36}}, {"id": 903, "type": "binary_expression", "text": "(ulx-llx)/(fastf_t)(ynum-1)", "parent": 902, "children": [904, 909, 910], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 35}}, {"id": 904, "type": "parenthesized_expression", "text": "(ulx-llx)", "parent": 903, "children": [905], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 17}}, {"id": 905, "type": "binary_expression", "text": "ulx-llx", "parent": 904, "children": [906, 907, 908], "start_point": {"row": 254, "column": 9}, "end_point": {"row": 254, "column": 16}}, {"id": 906, "type": "identifier", "text": "ulx", "parent": 905, "children": [], "start_point": {"row": 254, "column": 9}, "end_point": {"row": 254, "column": 12}}, {"id": 907, "type": "-", "text": "-", "parent": 905, "children": [], "start_point": {"row": 254, "column": 12}, "end_point": {"row": 254, "column": 13}}, {"id": 908, "type": "identifier", "text": "llx", "parent": 905, "children": [], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 16}}, {"id": 909, "type": "/", "text": "/", "parent": 903, "children": [], "start_point": {"row": 254, "column": 17}, "end_point": {"row": 254, "column": 18}}, {"id": 910, "type": "call_expression", "text": "(fastf_t)(ynum-1)", "parent": 903, "children": [911, 913], "start_point": {"row": 254, "column": 18}, "end_point": {"row": 254, "column": 35}}, {"id": 911, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 910, "children": [912], "start_point": {"row": 254, "column": 18}, "end_point": {"row": 254, "column": 27}}, {"id": 912, "type": "identifier", "text": "fastf_t", "parent": 911, "children": [], "start_point": {"row": 254, "column": 19}, "end_point": {"row": 254, "column": 26}}, {"id": 913, "type": "argument_list", "text": "(ynum-1)", "parent": 910, "children": [914], "start_point": {"row": 254, "column": 27}, "end_point": {"row": 254, "column": 35}}, {"id": 914, "type": "binary_expression", "text": "ynum-1", "parent": 913, "children": [915, 916, 917], "start_point": {"row": 254, "column": 28}, "end_point": {"row": 254, "column": 34}}, {"id": 915, "type": "identifier", "text": "ynum", "parent": 914, "children": [], "start_point": {"row": 254, "column": 28}, "end_point": {"row": 254, "column": 32}}, {"id": 916, "type": "-", "text": "-", "parent": 914, "children": [], "start_point": {"row": 254, "column": 32}, "end_point": {"row": 254, "column": 33}}, {"id": 917, "type": "number_literal", "text": "1", "parent": 914, "children": [], "start_point": {"row": 254, "column": 33}, "end_point": {"row": 254, "column": 34}}, {"id": 918, "type": "*", "text": "*", "parent": 901, "children": [], "start_point": {"row": 254, "column": 37}, "end_point": {"row": 254, "column": 38}}, {"id": 919, "type": "cast_expression", "text": "(fastf_t)row", "parent": 901, "children": [920, 922], "start_point": {"row": 254, "column": 39}, "end_point": {"row": 254, "column": 51}}, {"id": 920, "type": "type_descriptor", "text": "fastf_t", "parent": 919, "children": [921], "start_point": {"row": 254, "column": 40}, "end_point": {"row": 254, "column": 47}}, {"id": 921, "type": "type_identifier", "text": "fastf_t", "parent": 920, "children": [], "start_point": {"row": 254, "column": 40}, "end_point": {"row": 254, "column": 47}}, {"id": 922, "type": "identifier", "text": "row", "parent": 919, "children": [], "start_point": {"row": 254, "column": 48}, "end_point": {"row": 254, "column": 51}}, {"id": 923, "type": "+", "text": "+", "parent": 900, "children": [], "start_point": {"row": 254, "column": 52}, "end_point": {"row": 254, "column": 53}}, {"id": 924, "type": "identifier", "text": "llx", "parent": 900, "children": [], "start_point": {"row": 254, "column": 54}, "end_point": {"row": 254, "column": 57}}, {"id": 925, "type": "assignment_expression", "text": "by1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly", "parent": 885, "children": [926, 927, 928], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 57}}, {"id": 926, "type": "identifier", "text": "by1", "parent": 925, "children": [], "start_point": {"row": 255, "column": 1}, "end_point": {"row": 255, "column": 4}}, {"id": 927, "type": "=", "text": "=", "parent": 925, "children": [], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 6}}, {"id": 928, "type": "binary_expression", "text": "((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly", "parent": 925, "children": [929, 951, 952], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 57}}, {"id": 929, "type": "binary_expression", "text": "((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row", "parent": 928, "children": [930, 946, 947], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 51}}, {"id": 930, "type": "parenthesized_expression", "text": "((uly-lly)/(fastf_t)(ynum-1))", "parent": 929, "children": [931], "start_point": {"row": 255, "column": 7}, "end_point": {"row": 255, "column": 36}}, {"id": 931, "type": "binary_expression", "text": "(uly-lly)/(fastf_t)(ynum-1)", "parent": 930, "children": [932, 937, 938], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 255, "column": 35}}, {"id": 932, "type": "parenthesized_expression", "text": "(uly-lly)", "parent": 931, "children": [933], "start_point": {"row": 255, "column": 8}, "end_point": {"row": 255, "column": 17}}, {"id": 933, "type": "binary_expression", "text": "uly-lly", "parent": 932, "children": [934, 935, 936], "start_point": {"row": 255, "column": 9}, "end_point": {"row": 255, "column": 16}}, {"id": 934, "type": "identifier", "text": "uly", "parent": 933, "children": [], "start_point": {"row": 255, "column": 9}, "end_point": {"row": 255, "column": 12}}, {"id": 935, "type": "-", "text": "-", "parent": 933, "children": [], "start_point": {"row": 255, "column": 12}, "end_point": {"row": 255, "column": 13}}, {"id": 936, "type": "identifier", "text": "lly", "parent": 933, "children": [], "start_point": {"row": 255, "column": 13}, "end_point": {"row": 255, "column": 16}}, {"id": 937, "type": "/", "text": "/", "parent": 931, "children": [], "start_point": {"row": 255, "column": 17}, "end_point": {"row": 255, "column": 18}}, {"id": 938, "type": "call_expression", "text": "(fastf_t)(ynum-1)", "parent": 931, "children": [939, 941], "start_point": {"row": 255, "column": 18}, "end_point": {"row": 255, "column": 35}}, {"id": 939, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 938, "children": [940], "start_point": {"row": 255, "column": 18}, "end_point": {"row": 255, "column": 27}}, {"id": 940, "type": "identifier", "text": "fastf_t", "parent": 939, "children": [], "start_point": {"row": 255, "column": 19}, "end_point": {"row": 255, "column": 26}}, {"id": 941, "type": "argument_list", "text": "(ynum-1)", "parent": 938, "children": [942], "start_point": {"row": 255, "column": 27}, "end_point": {"row": 255, "column": 35}}, {"id": 942, "type": "binary_expression", "text": "ynum-1", "parent": 941, "children": [943, 944, 945], "start_point": {"row": 255, "column": 28}, "end_point": {"row": 255, "column": 34}}, {"id": 943, "type": "identifier", "text": "ynum", "parent": 942, "children": [], "start_point": {"row": 255, "column": 28}, "end_point": {"row": 255, "column": 32}}, {"id": 944, "type": "-", "text": "-", "parent": 942, "children": [], "start_point": {"row": 255, "column": 32}, "end_point": {"row": 255, "column": 33}}, {"id": 945, "type": "number_literal", "text": "1", "parent": 942, "children": [], "start_point": {"row": 255, "column": 33}, "end_point": {"row": 255, "column": 34}}, {"id": 946, "type": "*", "text": "*", "parent": 929, "children": [], "start_point": {"row": 255, "column": 37}, "end_point": {"row": 255, "column": 38}}, {"id": 947, "type": "cast_expression", "text": "(fastf_t)row", "parent": 929, "children": [948, 950], "start_point": {"row": 255, "column": 39}, "end_point": {"row": 255, "column": 51}}, {"id": 948, "type": "type_descriptor", "text": "fastf_t", "parent": 947, "children": [949], "start_point": {"row": 255, "column": 40}, "end_point": {"row": 255, "column": 47}}, {"id": 949, "type": "type_identifier", "text": "fastf_t", "parent": 948, "children": [], "start_point": {"row": 255, "column": 40}, "end_point": {"row": 255, "column": 47}}, {"id": 950, "type": "identifier", "text": "row", "parent": 947, "children": [], "start_point": {"row": 255, "column": 48}, "end_point": {"row": 255, "column": 51}}, {"id": 951, "type": "+", "text": "+", "parent": 928, "children": [], "start_point": {"row": 255, "column": 52}, "end_point": {"row": 255, "column": 53}}, {"id": 952, "type": "identifier", "text": "lly", "parent": 928, "children": [], "start_point": {"row": 255, "column": 54}, "end_point": {"row": 255, "column": 57}}, {"id": 953, "type": "assignment_expression", "text": "bx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx", "parent": 885, "children": [954, 955, 956], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 57}}, {"id": 954, "type": "identifier", "text": "bx2", "parent": 953, "children": [], "start_point": {"row": 257, "column": 1}, "end_point": {"row": 257, "column": 4}}, {"id": 955, "type": "=", "text": "=", "parent": 953, "children": [], "start_point": {"row": 257, "column": 5}, "end_point": {"row": 257, "column": 6}}, {"id": 956, "type": "binary_expression", "text": "((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx", "parent": 953, "children": [957, 979, 980], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 57}}, {"id": 957, "type": "binary_expression", "text": "((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row", "parent": 956, "children": [958, 974, 975], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 51}}, {"id": 958, "type": "parenthesized_expression", "text": "((urx-lrx)/(fastf_t)(ynum-1))", "parent": 957, "children": [959], "start_point": {"row": 257, "column": 7}, "end_point": {"row": 257, "column": 36}}, {"id": 959, "type": "binary_expression", "text": "(urx-lrx)/(fastf_t)(ynum-1)", "parent": 958, "children": [960, 965, 966], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 257, "column": 35}}, {"id": 960, "type": "parenthesized_expression", "text": "(urx-lrx)", "parent": 959, "children": [961], "start_point": {"row": 257, "column": 8}, "end_point": {"row": 257, "column": 17}}, {"id": 961, "type": "binary_expression", "text": "urx-lrx", "parent": 960, "children": [962, 963, 964], "start_point": {"row": 257, "column": 9}, "end_point": {"row": 257, "column": 16}}, {"id": 962, "type": "identifier", "text": "urx", "parent": 961, "children": [], "start_point": {"row": 257, "column": 9}, "end_point": {"row": 257, "column": 12}}, {"id": 963, "type": "-", "text": "-", "parent": 961, "children": [], "start_point": {"row": 257, "column": 12}, "end_point": {"row": 257, "column": 13}}, {"id": 964, "type": "identifier", "text": "lrx", "parent": 961, "children": [], "start_point": {"row": 257, "column": 13}, "end_point": {"row": 257, "column": 16}}, {"id": 965, "type": "/", "text": "/", "parent": 959, "children": [], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 18}}, {"id": 966, "type": "call_expression", "text": "(fastf_t)(ynum-1)", "parent": 959, "children": [967, 969], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 35}}, {"id": 967, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 966, "children": [968], "start_point": {"row": 257, "column": 18}, "end_point": {"row": 257, "column": 27}}, {"id": 968, "type": "identifier", "text": "fastf_t", "parent": 967, "children": [], "start_point": {"row": 257, "column": 19}, "end_point": {"row": 257, "column": 26}}, {"id": 969, "type": "argument_list", "text": "(ynum-1)", "parent": 966, "children": [970], "start_point": {"row": 257, "column": 27}, "end_point": {"row": 257, "column": 35}}, {"id": 970, "type": "binary_expression", "text": "ynum-1", "parent": 969, "children": [971, 972, 973], "start_point": {"row": 257, "column": 28}, "end_point": {"row": 257, "column": 34}}, {"id": 971, "type": "identifier", "text": "ynum", "parent": 970, "children": [], "start_point": {"row": 257, "column": 28}, "end_point": {"row": 257, "column": 32}}, {"id": 972, "type": "-", "text": "-", "parent": 970, "children": [], "start_point": {"row": 257, "column": 32}, "end_point": {"row": 257, "column": 33}}, {"id": 973, "type": "number_literal", "text": "1", "parent": 970, "children": [], "start_point": {"row": 257, "column": 33}, "end_point": {"row": 257, "column": 34}}, {"id": 974, "type": "*", "text": "*", "parent": 957, "children": [], "start_point": {"row": 257, "column": 37}, "end_point": {"row": 257, "column": 38}}, {"id": 975, "type": "cast_expression", "text": "(fastf_t)row", "parent": 957, "children": [976, 978], "start_point": {"row": 257, "column": 39}, "end_point": {"row": 257, "column": 51}}, {"id": 976, "type": "type_descriptor", "text": "fastf_t", "parent": 975, "children": [977], "start_point": {"row": 257, "column": 40}, "end_point": {"row": 257, "column": 47}}, {"id": 977, "type": "type_identifier", "text": "fastf_t", "parent": 976, "children": [], "start_point": {"row": 257, "column": 40}, "end_point": {"row": 257, "column": 47}}, {"id": 978, "type": "identifier", "text": "row", "parent": 975, "children": [], "start_point": {"row": 257, "column": 48}, "end_point": {"row": 257, "column": 51}}, {"id": 979, "type": "+", "text": "+", "parent": 956, "children": [], "start_point": {"row": 257, "column": 52}, "end_point": {"row": 257, "column": 53}}, {"id": 980, "type": "identifier", "text": "lrx", "parent": 956, "children": [], "start_point": {"row": 257, "column": 54}, "end_point": {"row": 257, "column": 57}}, {"id": 981, "type": "assignment_expression", "text": "by2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry", "parent": 885, "children": [982, 983, 984], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 57}}, {"id": 982, "type": "identifier", "text": "by2", "parent": 981, "children": [], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 4}}, {"id": 983, "type": "=", "text": "=", "parent": 981, "children": [], "start_point": {"row": 258, "column": 5}, "end_point": {"row": 258, "column": 6}}, {"id": 984, "type": "binary_expression", "text": "((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry", "parent": 981, "children": [985, 1007, 1008], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 258, "column": 57}}, {"id": 985, "type": "binary_expression", "text": "((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row", "parent": 984, "children": [986, 1002, 1003], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 258, "column": 51}}, {"id": 986, "type": "parenthesized_expression", "text": "((ury-lry)/(fastf_t)(ynum-1))", "parent": 985, "children": [987], "start_point": {"row": 258, "column": 7}, "end_point": {"row": 258, "column": 36}}, {"id": 987, "type": "binary_expression", "text": "(ury-lry)/(fastf_t)(ynum-1)", "parent": 986, "children": [988, 993, 994], "start_point": {"row": 258, "column": 8}, "end_point": {"row": 258, "column": 35}}, {"id": 988, "type": "parenthesized_expression", "text": "(ury-lry)", "parent": 987, "children": [989], "start_point": {"row": 258, "column": 8}, "end_point": {"row": 258, "column": 17}}, {"id": 989, "type": "binary_expression", "text": "ury-lry", "parent": 988, "children": [990, 991, 992], "start_point": {"row": 258, "column": 9}, "end_point": {"row": 258, "column": 16}}, {"id": 990, "type": "identifier", "text": "ury", "parent": 989, "children": [], "start_point": {"row": 258, "column": 9}, "end_point": {"row": 258, "column": 12}}, {"id": 991, "type": "-", "text": "-", "parent": 989, "children": [], "start_point": {"row": 258, "column": 12}, "end_point": {"row": 258, "column": 13}}, {"id": 992, "type": "identifier", "text": "lry", "parent": 989, "children": [], "start_point": {"row": 258, "column": 13}, "end_point": {"row": 258, "column": 16}}, {"id": 993, "type": "/", "text": "/", "parent": 987, "children": [], "start_point": {"row": 258, "column": 17}, "end_point": {"row": 258, "column": 18}}, {"id": 994, "type": "call_expression", "text": "(fastf_t)(ynum-1)", "parent": 987, "children": [995, 997], "start_point": {"row": 258, "column": 18}, "end_point": {"row": 258, "column": 35}}, {"id": 995, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 994, "children": [996], "start_point": {"row": 258, "column": 18}, "end_point": {"row": 258, "column": 27}}, {"id": 996, "type": "identifier", "text": "fastf_t", "parent": 995, "children": [], "start_point": {"row": 258, "column": 19}, "end_point": {"row": 258, "column": 26}}, {"id": 997, "type": "argument_list", "text": "(ynum-1)", "parent": 994, "children": [998], "start_point": {"row": 258, "column": 27}, "end_point": {"row": 258, "column": 35}}, {"id": 998, "type": "binary_expression", "text": "ynum-1", "parent": 997, "children": [999, 1000, 1001], "start_point": {"row": 258, "column": 28}, "end_point": {"row": 258, "column": 34}}, {"id": 999, "type": "identifier", "text": "ynum", "parent": 998, "children": [], "start_point": {"row": 258, "column": 28}, "end_point": {"row": 258, "column": 32}}, {"id": 1000, "type": "-", "text": "-", "parent": 998, "children": [], "start_point": {"row": 258, "column": 32}, "end_point": {"row": 258, "column": 33}}, {"id": 1001, "type": "number_literal", "text": "1", "parent": 998, "children": [], "start_point": {"row": 258, "column": 33}, "end_point": {"row": 258, "column": 34}}, {"id": 1002, "type": "*", "text": "*", "parent": 985, "children": [], "start_point": {"row": 258, "column": 37}, "end_point": {"row": 258, "column": 38}}, {"id": 1003, "type": "cast_expression", "text": "(fastf_t)row", "parent": 985, "children": [1004, 1006], "start_point": {"row": 258, "column": 39}, "end_point": {"row": 258, "column": 51}}, {"id": 1004, "type": "type_descriptor", "text": "fastf_t", "parent": 1003, "children": [1005], "start_point": {"row": 258, "column": 40}, "end_point": {"row": 258, "column": 47}}, {"id": 1005, "type": "type_identifier", "text": "fastf_t", "parent": 1004, "children": [], "start_point": {"row": 258, "column": 40}, "end_point": {"row": 258, "column": 47}}, {"id": 1006, "type": "identifier", "text": "row", "parent": 1003, "children": [], "start_point": {"row": 258, "column": 48}, "end_point": {"row": 258, "column": 51}}, {"id": 1007, "type": "+", "text": "+", "parent": 984, "children": [], "start_point": {"row": 258, "column": 52}, "end_point": {"row": 258, "column": 53}}, {"id": 1008, "type": "identifier", "text": "lry", "parent": 984, "children": [], "start_point": {"row": 258, "column": 54}, "end_point": {"row": 258, "column": 57}}, {"id": 1009, "type": "for_statement", "text": "for (col = 0; col < xnum; col++) {\n\t /* calculate point along row */\n\t bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n\t by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n\t /* Make sure we are in the buffer */\n\t yindex = round(by) - buf_start;\n\t if (yindex >= buflines) {\n\t\tfill_buffer(round(by));\n\t\tyindex = round(by) - buf_start;\n\t }\n\t yindex = yindex + buf_start;\n\n\t value = buffer[ yindex * scanlen + round(bx) ];\n\t ret = fwrite(&value, sizeof(value), 1, ofp);\n\t if (ret == 0)\n\t\tperror(\"fwrite\");\n\t}", "parent": 885, "children": [1010, 1014, 1018], "start_point": {"row": 260, "column": 1}, "end_point": {"row": 277, "column": 2}}, {"id": 1010, "type": "assignment_expression", "text": "col = 0", "parent": 1009, "children": [1011, 1012, 1013], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 13}}, {"id": 1011, "type": "identifier", "text": "col", "parent": 1010, "children": [], "start_point": {"row": 260, "column": 6}, "end_point": {"row": 260, "column": 9}}, {"id": 1012, "type": "=", "text": "=", "parent": 1010, "children": [], "start_point": {"row": 260, "column": 10}, "end_point": {"row": 260, "column": 11}}, {"id": 1013, "type": "number_literal", "text": "0", "parent": 1010, "children": [], "start_point": {"row": 260, "column": 12}, "end_point": {"row": 260, "column": 13}}, {"id": 1014, "type": "binary_expression", "text": "col < xnum", "parent": 1009, "children": [1015, 1016, 1017], "start_point": {"row": 260, "column": 15}, "end_point": {"row": 260, "column": 25}}, {"id": 1015, "type": "identifier", "text": "col", "parent": 1014, "children": [], "start_point": {"row": 260, "column": 15}, "end_point": {"row": 260, "column": 18}}, {"id": 1016, "type": "<", "text": "<", "parent": 1014, "children": [], "start_point": {"row": 260, "column": 19}, "end_point": {"row": 260, "column": 20}}, {"id": 1017, "type": "identifier", "text": "xnum", "parent": 1014, "children": [], "start_point": {"row": 260, "column": 21}, "end_point": {"row": 260, "column": 25}}, {"id": 1018, "type": "update_expression", "text": "col++", "parent": 1009, "children": [1019, 1020], "start_point": {"row": 260, "column": 27}, "end_point": {"row": 260, "column": 32}}, {"id": 1019, "type": "identifier", "text": "col", "parent": 1018, "children": [], "start_point": {"row": 260, "column": 27}, "end_point": {"row": 260, "column": 30}}, {"id": 1020, "type": "++", "text": "++", "parent": 1018, "children": [], "start_point": {"row": 260, "column": 30}, "end_point": {"row": 260, "column": 32}}, {"id": 1021, "type": "assignment_expression", "text": "bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1", "parent": 1009, "children": [1022, 1023, 1024], "start_point": {"row": 262, "column": 5}, "end_point": {"row": 262, "column": 60}}, {"id": 1022, "type": "identifier", "text": "bx", "parent": 1021, "children": [], "start_point": {"row": 262, "column": 5}, "end_point": {"row": 262, "column": 7}}, {"id": 1023, "type": "=", "text": "=", "parent": 1021, "children": [], "start_point": {"row": 262, "column": 8}, "end_point": {"row": 262, "column": 9}}, {"id": 1024, "type": "binary_expression", "text": "((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1", "parent": 1021, "children": [1025, 1047, 1048], "start_point": {"row": 262, "column": 10}, "end_point": {"row": 262, "column": 60}}, {"id": 1025, "type": "binary_expression", "text": "((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col", "parent": 1024, "children": [1026, 1042, 1043], "start_point": {"row": 262, "column": 10}, "end_point": {"row": 262, "column": 54}}, {"id": 1026, "type": "parenthesized_expression", "text": "((bx2-bx1)/(fastf_t)(xnum-1))", "parent": 1025, "children": [1027], "start_point": {"row": 262, "column": 10}, "end_point": {"row": 262, "column": 39}}, {"id": 1027, "type": "binary_expression", "text": "(bx2-bx1)/(fastf_t)(xnum-1)", "parent": 1026, "children": [1028, 1033, 1034], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 38}}, {"id": 1028, "type": "parenthesized_expression", "text": "(bx2-bx1)", "parent": 1027, "children": [1029], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 20}}, {"id": 1029, "type": "binary_expression", "text": "bx2-bx1", "parent": 1028, "children": [1030, 1031, 1032], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 19}}, {"id": 1030, "type": "identifier", "text": "bx2", "parent": 1029, "children": [], "start_point": {"row": 262, "column": 12}, "end_point": {"row": 262, "column": 15}}, {"id": 1031, "type": "-", "text": "-", "parent": 1029, "children": [], "start_point": {"row": 262, "column": 15}, "end_point": {"row": 262, "column": 16}}, {"id": 1032, "type": "identifier", "text": "bx1", "parent": 1029, "children": [], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 19}}, {"id": 1033, "type": "/", "text": "/", "parent": 1027, "children": [], "start_point": {"row": 262, "column": 20}, "end_point": {"row": 262, "column": 21}}, {"id": 1034, "type": "call_expression", "text": "(fastf_t)(xnum-1)", "parent": 1027, "children": [1035, 1037], "start_point": {"row": 262, "column": 21}, "end_point": {"row": 262, "column": 38}}, {"id": 1035, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 1034, "children": [1036], "start_point": {"row": 262, "column": 21}, "end_point": {"row": 262, "column": 30}}, {"id": 1036, "type": "identifier", "text": "fastf_t", "parent": 1035, "children": [], "start_point": {"row": 262, "column": 22}, "end_point": {"row": 262, "column": 29}}, {"id": 1037, "type": "argument_list", "text": "(xnum-1)", "parent": 1034, "children": [1038], "start_point": {"row": 262, "column": 30}, "end_point": {"row": 262, "column": 38}}, {"id": 1038, "type": "binary_expression", "text": "xnum-1", "parent": 1037, "children": [1039, 1040, 1041], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 37}}, {"id": 1039, "type": "identifier", "text": "xnum", "parent": 1038, "children": [], "start_point": {"row": 262, "column": 31}, "end_point": {"row": 262, "column": 35}}, {"id": 1040, "type": "-", "text": "-", "parent": 1038, "children": [], "start_point": {"row": 262, "column": 35}, "end_point": {"row": 262, "column": 36}}, {"id": 1041, "type": "number_literal", "text": "1", "parent": 1038, "children": [], "start_point": {"row": 262, "column": 36}, "end_point": {"row": 262, "column": 37}}, {"id": 1042, "type": "*", "text": "*", "parent": 1025, "children": [], "start_point": {"row": 262, "column": 40}, "end_point": {"row": 262, "column": 41}}, {"id": 1043, "type": "cast_expression", "text": "(fastf_t)col", "parent": 1025, "children": [1044, 1046], "start_point": {"row": 262, "column": 42}, "end_point": {"row": 262, "column": 54}}, {"id": 1044, "type": "type_descriptor", "text": "fastf_t", "parent": 1043, "children": [1045], "start_point": {"row": 262, "column": 43}, "end_point": {"row": 262, "column": 50}}, {"id": 1045, "type": "type_identifier", "text": "fastf_t", "parent": 1044, "children": [], "start_point": {"row": 262, "column": 43}, "end_point": {"row": 262, "column": 50}}, {"id": 1046, "type": "identifier", "text": "col", "parent": 1043, "children": [], "start_point": {"row": 262, "column": 51}, "end_point": {"row": 262, "column": 54}}, {"id": 1047, "type": "+", "text": "+", "parent": 1024, "children": [], "start_point": {"row": 262, "column": 55}, "end_point": {"row": 262, "column": 56}}, {"id": 1048, "type": "identifier", "text": "bx1", "parent": 1024, "children": [], "start_point": {"row": 262, "column": 57}, "end_point": {"row": 262, "column": 60}}, {"id": 1049, "type": "assignment_expression", "text": "by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1", "parent": 1009, "children": [1050, 1051, 1052], "start_point": {"row": 263, "column": 5}, "end_point": {"row": 263, "column": 60}}, {"id": 1050, "type": "identifier", "text": "by", "parent": 1049, "children": [], "start_point": {"row": 263, "column": 5}, "end_point": {"row": 263, "column": 7}}, {"id": 1051, "type": "=", "text": "=", "parent": 1049, "children": [], "start_point": {"row": 263, "column": 8}, "end_point": {"row": 263, "column": 9}}, {"id": 1052, "type": "binary_expression", "text": "((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1", "parent": 1049, "children": [1053, 1075, 1076], "start_point": {"row": 263, "column": 10}, "end_point": {"row": 263, "column": 60}}, {"id": 1053, "type": "binary_expression", "text": "((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col", "parent": 1052, "children": [1054, 1070, 1071], "start_point": {"row": 263, "column": 10}, "end_point": {"row": 263, "column": 54}}, {"id": 1054, "type": "parenthesized_expression", "text": "((by2-by1)/(fastf_t)(xnum-1))", "parent": 1053, "children": [1055], "start_point": {"row": 263, "column": 10}, "end_point": {"row": 263, "column": 39}}, {"id": 1055, "type": "binary_expression", "text": "(by2-by1)/(fastf_t)(xnum-1)", "parent": 1054, "children": [1056, 1061, 1062], "start_point": {"row": 263, "column": 11}, "end_point": {"row": 263, "column": 38}}, {"id": 1056, "type": "parenthesized_expression", "text": "(by2-by1)", "parent": 1055, "children": [1057], "start_point": {"row": 263, "column": 11}, "end_point": {"row": 263, "column": 20}}, {"id": 1057, "type": "binary_expression", "text": "by2-by1", "parent": 1056, "children": [1058, 1059, 1060], "start_point": {"row": 263, "column": 12}, "end_point": {"row": 263, "column": 19}}, {"id": 1058, "type": "identifier", "text": "by2", "parent": 1057, "children": [], "start_point": {"row": 263, "column": 12}, "end_point": {"row": 263, "column": 15}}, {"id": 1059, "type": "-", "text": "-", "parent": 1057, "children": [], "start_point": {"row": 263, "column": 15}, "end_point": {"row": 263, "column": 16}}, {"id": 1060, "type": "identifier", "text": "by1", "parent": 1057, "children": [], "start_point": {"row": 263, "column": 16}, "end_point": {"row": 263, "column": 19}}, {"id": 1061, "type": "/", "text": "/", "parent": 1055, "children": [], "start_point": {"row": 263, "column": 20}, "end_point": {"row": 263, "column": 21}}, {"id": 1062, "type": "call_expression", "text": "(fastf_t)(xnum-1)", "parent": 1055, "children": [1063, 1065], "start_point": {"row": 263, "column": 21}, "end_point": {"row": 263, "column": 38}}, {"id": 1063, "type": "parenthesized_expression", "text": "(fastf_t)", "parent": 1062, "children": [1064], "start_point": {"row": 263, "column": 21}, "end_point": {"row": 263, "column": 30}}, {"id": 1064, "type": "identifier", "text": "fastf_t", "parent": 1063, "children": [], "start_point": {"row": 263, "column": 22}, "end_point": {"row": 263, "column": 29}}, {"id": 1065, "type": "argument_list", "text": "(xnum-1)", "parent": 1062, "children": [1066], "start_point": {"row": 263, "column": 30}, "end_point": {"row": 263, "column": 38}}, {"id": 1066, "type": "binary_expression", "text": "xnum-1", "parent": 1065, "children": [1067, 1068, 1069], "start_point": {"row": 263, "column": 31}, "end_point": {"row": 263, "column": 37}}, {"id": 1067, "type": "identifier", "text": "xnum", "parent": 1066, "children": [], "start_point": {"row": 263, "column": 31}, "end_point": {"row": 263, "column": 35}}, {"id": 1068, "type": "-", "text": "-", "parent": 1066, "children": [], "start_point": {"row": 263, "column": 35}, "end_point": {"row": 263, "column": 36}}, {"id": 1069, "type": "number_literal", "text": "1", "parent": 1066, "children": [], "start_point": {"row": 263, "column": 36}, "end_point": {"row": 263, "column": 37}}, {"id": 1070, "type": "*", "text": "*", "parent": 1053, "children": [], "start_point": {"row": 263, "column": 40}, "end_point": {"row": 263, "column": 41}}, {"id": 1071, "type": "cast_expression", "text": "(fastf_t)col", "parent": 1053, "children": [1072, 1074], "start_point": {"row": 263, "column": 42}, "end_point": {"row": 263, "column": 54}}, {"id": 1072, "type": "type_descriptor", "text": "fastf_t", "parent": 1071, "children": [1073], "start_point": {"row": 263, "column": 43}, "end_point": {"row": 263, "column": 50}}, {"id": 1073, "type": "type_identifier", "text": "fastf_t", "parent": 1072, "children": [], "start_point": {"row": 263, "column": 43}, "end_point": {"row": 263, "column": 50}}, {"id": 1074, "type": "identifier", "text": "col", "parent": 1071, "children": [], "start_point": {"row": 263, "column": 51}, "end_point": {"row": 263, "column": 54}}, {"id": 1075, "type": "+", "text": "+", "parent": 1052, "children": [], "start_point": {"row": 263, "column": 55}, "end_point": {"row": 263, "column": 56}}, {"id": 1076, "type": "identifier", "text": "by1", "parent": 1052, "children": [], "start_point": {"row": 263, "column": 57}, "end_point": {"row": 263, "column": 60}}, {"id": 1077, "type": "assignment_expression", "text": "yindex = round(by) - buf_start", "parent": 1009, "children": [1078, 1079, 1080], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 35}}, {"id": 1078, "type": "identifier", "text": "yindex", "parent": 1077, "children": [], "start_point": {"row": 266, "column": 5}, "end_point": {"row": 266, "column": 11}}, {"id": 1079, "type": "=", "text": "=", "parent": 1077, "children": [], "start_point": {"row": 266, "column": 12}, "end_point": {"row": 266, "column": 13}}, {"id": 1080, "type": "binary_expression", "text": "round(by) - buf_start", "parent": 1077, "children": [1081, 1085, 1086], "start_point": {"row": 266, "column": 14}, "end_point": {"row": 266, "column": 35}}, {"id": 1081, "type": "call_expression", "text": "round(by)", "parent": 1080, "children": [1082, 1083], "start_point": {"row": 266, "column": 14}, "end_point": {"row": 266, "column": 23}}, {"id": 1082, "type": "identifier", "text": "round", "parent": 1081, "children": [], "start_point": {"row": 266, "column": 14}, "end_point": {"row": 266, "column": 19}}, {"id": 1083, "type": "argument_list", "text": "(by)", "parent": 1081, "children": [1084], "start_point": {"row": 266, "column": 19}, "end_point": {"row": 266, "column": 23}}, {"id": 1084, "type": "identifier", "text": "by", "parent": 1083, "children": [], "start_point": {"row": 266, "column": 20}, "end_point": {"row": 266, "column": 22}}, {"id": 1085, "type": "-", "text": "-", "parent": 1080, "children": [], "start_point": {"row": 266, "column": 24}, "end_point": {"row": 266, "column": 25}}, {"id": 1086, "type": "identifier", "text": "buf_start", "parent": 1080, "children": [], "start_point": {"row": 266, "column": 26}, "end_point": {"row": 266, "column": 35}}, {"id": 1087, "type": "if_statement", "text": "if (yindex >= buflines) {\n\t\tfill_buffer(round(by));\n\t\tyindex = round(by) - buf_start;\n\t }", "parent": 1009, "children": [1088], "start_point": {"row": 267, "column": 5}, "end_point": {"row": 270, "column": 6}}, {"id": 1088, "type": "parenthesized_expression", "text": "(yindex >= buflines)", "parent": 1087, "children": [1089], "start_point": {"row": 267, "column": 8}, "end_point": {"row": 267, "column": 28}}, {"id": 1089, "type": "binary_expression", "text": "yindex >= buflines", "parent": 1088, "children": [1090, 1091, 1092], "start_point": {"row": 267, "column": 9}, "end_point": {"row": 267, "column": 27}}, {"id": 1090, "type": "identifier", "text": "yindex", "parent": 1089, "children": [], "start_point": {"row": 267, "column": 9}, "end_point": {"row": 267, "column": 15}}, {"id": 1091, "type": ">=", "text": ">=", "parent": 1089, "children": [], "start_point": {"row": 267, "column": 16}, "end_point": {"row": 267, "column": 18}}, {"id": 1092, "type": "identifier", "text": "buflines", "parent": 1089, "children": [], "start_point": {"row": 267, "column": 19}, "end_point": {"row": 267, "column": 27}}, {"id": 1093, "type": "call_expression", "text": "fill_buffer(round(by))", "parent": 1087, "children": [1094, 1095], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 24}}, {"id": 1094, "type": "identifier", "text": "fill_buffer", "parent": 1093, "children": [], "start_point": {"row": 268, "column": 2}, "end_point": {"row": 268, "column": 13}}, {"id": 1095, "type": "argument_list", "text": "(round(by))", "parent": 1093, "children": [1096], "start_point": {"row": 268, "column": 13}, "end_point": {"row": 268, "column": 24}}, {"id": 1096, "type": "call_expression", "text": "round(by)", "parent": 1095, "children": [1097, 1098], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 23}}, {"id": 1097, "type": "identifier", "text": "round", "parent": 1096, "children": [], "start_point": {"row": 268, "column": 14}, "end_point": {"row": 268, "column": 19}}, {"id": 1098, "type": "argument_list", "text": "(by)", "parent": 1096, "children": [1099], "start_point": {"row": 268, "column": 19}, "end_point": {"row": 268, "column": 23}}, {"id": 1099, "type": "identifier", "text": "by", "parent": 1098, "children": [], "start_point": {"row": 268, "column": 20}, "end_point": {"row": 268, "column": 22}}, {"id": 1100, "type": "assignment_expression", "text": "yindex = round(by) - buf_start", "parent": 1087, "children": [1101, 1102, 1103], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 32}}, {"id": 1101, "type": "identifier", "text": "yindex", "parent": 1100, "children": [], "start_point": {"row": 269, "column": 2}, "end_point": {"row": 269, "column": 8}}, {"id": 1102, "type": "=", "text": "=", "parent": 1100, "children": [], "start_point": {"row": 269, "column": 9}, "end_point": {"row": 269, "column": 10}}, {"id": 1103, "type": "binary_expression", "text": "round(by) - buf_start", "parent": 1100, "children": [1104, 1108, 1109], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 32}}, {"id": 1104, "type": "call_expression", "text": "round(by)", "parent": 1103, "children": [1105, 1106], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 20}}, {"id": 1105, "type": "identifier", "text": "round", "parent": 1104, "children": [], "start_point": {"row": 269, "column": 11}, "end_point": {"row": 269, "column": 16}}, {"id": 1106, "type": "argument_list", "text": "(by)", "parent": 1104, "children": [1107], "start_point": {"row": 269, "column": 16}, "end_point": {"row": 269, "column": 20}}, {"id": 1107, "type": "identifier", "text": "by", "parent": 1106, "children": [], "start_point": {"row": 269, "column": 17}, "end_point": {"row": 269, "column": 19}}, {"id": 1108, "type": "-", "text": "-", "parent": 1103, "children": [], "start_point": {"row": 269, "column": 21}, "end_point": {"row": 269, "column": 22}}, {"id": 1109, "type": "identifier", "text": "buf_start", "parent": 1103, "children": [], "start_point": {"row": 269, "column": 23}, "end_point": {"row": 269, "column": 32}}, {"id": 1110, "type": "assignment_expression", "text": "yindex = yindex + buf_start", "parent": 1009, "children": [1111, 1112, 1113], "start_point": {"row": 271, "column": 5}, "end_point": {"row": 271, "column": 32}}, {"id": 1111, "type": "identifier", "text": "yindex", "parent": 1110, "children": [], "start_point": {"row": 271, "column": 5}, "end_point": {"row": 271, "column": 11}}, {"id": 1112, "type": "=", "text": "=", "parent": 1110, "children": [], "start_point": {"row": 271, "column": 12}, "end_point": {"row": 271, "column": 13}}, {"id": 1113, "type": "binary_expression", "text": "yindex + buf_start", "parent": 1110, "children": [1114, 1115, 1116], "start_point": {"row": 271, "column": 14}, "end_point": {"row": 271, "column": 32}}, {"id": 1114, "type": "identifier", "text": "yindex", "parent": 1113, "children": [], "start_point": {"row": 271, "column": 14}, "end_point": {"row": 271, "column": 20}}, {"id": 1115, "type": "+", "text": "+", "parent": 1113, "children": [], "start_point": {"row": 271, "column": 21}, "end_point": {"row": 271, "column": 22}}, {"id": 1116, "type": "identifier", "text": "buf_start", "parent": 1113, "children": [], "start_point": {"row": 271, "column": 23}, "end_point": {"row": 271, "column": 32}}, {"id": 1117, "type": "assignment_expression", "text": "value = buffer[ yindex * scanlen + round(bx) ]", "parent": 1009, "children": [1118, 1119, 1120], "start_point": {"row": 273, "column": 5}, "end_point": {"row": 273, "column": 51}}, {"id": 1118, "type": "identifier", "text": "value", "parent": 1117, "children": [], "start_point": {"row": 273, "column": 5}, "end_point": {"row": 273, "column": 10}}, {"id": 1119, "type": "=", "text": "=", "parent": 1117, "children": [], "start_point": {"row": 273, "column": 11}, "end_point": {"row": 273, "column": 12}}, {"id": 1120, "type": "subscript_expression", "text": "buffer[ yindex * scanlen + round(bx) ]", "parent": 1117, "children": [1121, 1122], "start_point": {"row": 273, "column": 13}, "end_point": {"row": 273, "column": 51}}, {"id": 1121, "type": "identifier", "text": "buffer", "parent": 1120, "children": [], "start_point": {"row": 273, "column": 13}, "end_point": {"row": 273, "column": 19}}, {"id": 1122, "type": "binary_expression", "text": "yindex * scanlen + round(bx)", "parent": 1120, "children": [1123, 1127, 1128], "start_point": {"row": 273, "column": 21}, "end_point": {"row": 273, "column": 49}}, {"id": 1123, "type": "binary_expression", "text": "yindex * scanlen", "parent": 1122, "children": [1124, 1125, 1126], "start_point": {"row": 273, "column": 21}, "end_point": {"row": 273, "column": 37}}, {"id": 1124, "type": "identifier", "text": "yindex", "parent": 1123, "children": [], "start_point": {"row": 273, "column": 21}, "end_point": {"row": 273, "column": 27}}, {"id": 1125, "type": "*", "text": "*", "parent": 1123, "children": [], "start_point": {"row": 273, "column": 28}, "end_point": {"row": 273, "column": 29}}, {"id": 1126, "type": "identifier", "text": "scanlen", "parent": 1123, "children": [], "start_point": {"row": 273, "column": 30}, "end_point": {"row": 273, "column": 37}}, {"id": 1127, "type": "+", "text": "+", "parent": 1122, "children": [], "start_point": {"row": 273, "column": 38}, "end_point": {"row": 273, "column": 39}}, {"id": 1128, "type": "call_expression", "text": "round(bx)", "parent": 1122, "children": [1129, 1130], "start_point": {"row": 273, "column": 40}, "end_point": {"row": 273, "column": 49}}, {"id": 1129, "type": "identifier", "text": "round", "parent": 1128, "children": [], "start_point": {"row": 273, "column": 40}, "end_point": {"row": 273, "column": 45}}, {"id": 1130, "type": "argument_list", "text": "(bx)", "parent": 1128, "children": [1131], "start_point": {"row": 273, "column": 45}, "end_point": {"row": 273, "column": 49}}, {"id": 1131, "type": "identifier", "text": "bx", "parent": 1130, "children": [], "start_point": {"row": 273, "column": 46}, "end_point": {"row": 273, "column": 48}}, {"id": 1132, "type": "assignment_expression", "text": "ret = fwrite(&value, sizeof(value), 1, ofp)", "parent": 1009, "children": [1133, 1134, 1135], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 48}}, {"id": 1133, "type": "identifier", "text": "ret", "parent": 1132, "children": [], "start_point": {"row": 274, "column": 5}, "end_point": {"row": 274, "column": 8}}, {"id": 1134, "type": "=", "text": "=", "parent": 1132, "children": [], "start_point": {"row": 274, "column": 9}, "end_point": {"row": 274, "column": 10}}, {"id": 1135, "type": "call_expression", "text": "fwrite(&value, sizeof(value), 1, ofp)", "parent": 1132, "children": [1136, 1137], "start_point": {"row": 274, "column": 11}, "end_point": {"row": 274, "column": 48}}, {"id": 1136, "type": "identifier", "text": "fwrite", "parent": 1135, "children": [], "start_point": {"row": 274, "column": 11}, "end_point": {"row": 274, "column": 17}}, {"id": 1137, "type": "argument_list", "text": "(&value, sizeof(value), 1, ofp)", "parent": 1135, "children": [1138, 1140, 1143, 1144], "start_point": {"row": 274, "column": 17}, "end_point": {"row": 274, "column": 48}}, {"id": 1138, "type": "pointer_expression", "text": "&value", "parent": 1137, "children": [1139], "start_point": {"row": 274, "column": 18}, "end_point": {"row": 274, "column": 24}}, {"id": 1139, "type": "identifier", "text": "value", "parent": 1138, "children": [], "start_point": {"row": 274, "column": 19}, "end_point": {"row": 274, "column": 24}}, {"id": 1140, "type": "sizeof_expression", "text": "sizeof(value)", "parent": 1137, "children": [1141], "start_point": {"row": 274, "column": 26}, "end_point": {"row": 274, "column": 39}}, {"id": 1141, "type": "parenthesized_expression", "text": "(value)", "parent": 1140, "children": [1142], "start_point": {"row": 274, "column": 32}, "end_point": {"row": 274, "column": 39}}, {"id": 1142, "type": "identifier", "text": "value", "parent": 1141, "children": [], "start_point": {"row": 274, "column": 33}, "end_point": {"row": 274, "column": 38}}, {"id": 1143, "type": "number_literal", "text": "1", "parent": 1137, "children": [], "start_point": {"row": 274, "column": 41}, "end_point": {"row": 274, "column": 42}}, {"id": 1144, "type": "identifier", "text": "ofp", "parent": 1137, "children": [], "start_point": {"row": 274, "column": 44}, "end_point": {"row": 274, "column": 47}}, {"id": 1145, "type": "if_statement", "text": "if (ret == 0)\n\t\tperror(\"fwrite\");", "parent": 1009, "children": [1146], "start_point": {"row": 275, "column": 5}, "end_point": {"row": 276, "column": 19}}, {"id": 1146, "type": "parenthesized_expression", "text": "(ret == 0)", "parent": 1145, "children": [1147], "start_point": {"row": 275, "column": 8}, "end_point": {"row": 275, "column": 18}}, {"id": 1147, "type": "binary_expression", "text": "ret == 0", "parent": 1146, "children": [1148, 1149, 1150], "start_point": {"row": 275, "column": 9}, "end_point": {"row": 275, "column": 17}}, {"id": 1148, "type": "identifier", "text": "ret", "parent": 1147, "children": [], "start_point": {"row": 275, "column": 9}, "end_point": {"row": 275, "column": 12}}, {"id": 1149, "type": "==", "text": "==", "parent": 1147, "children": [], "start_point": {"row": 275, "column": 13}, "end_point": {"row": 275, "column": 15}}, {"id": 1150, "type": "number_literal", "text": "0", "parent": 1147, "children": [], "start_point": {"row": 275, "column": 16}, "end_point": {"row": 275, "column": 17}}, {"id": 1151, "type": "call_expression", "text": "perror(\"fwrite\")", "parent": 1145, "children": [1152, 1153], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 18}}, {"id": 1152, "type": "identifier", "text": "perror", "parent": 1151, "children": [], "start_point": {"row": 276, "column": 2}, "end_point": {"row": 276, "column": 8}}, {"id": 1153, "type": "argument_list", "text": "(\"fwrite\")", "parent": 1151, "children": [1154], "start_point": {"row": 276, "column": 8}, "end_point": {"row": 276, "column": 18}}, {"id": 1154, "type": "string_literal", "text": "\"fwrite\"", "parent": 1153, "children": [], "start_point": {"row": 276, "column": 9}, "end_point": {"row": 276, "column": 17}}, {"id": 1155, "type": "call_expression", "text": "bu_free(buffer, \"buffer\")", "parent": 208, "children": [1156, 1157], "start_point": {"row": 280, "column": 4}, "end_point": {"row": 280, "column": 29}}, {"id": 1156, "type": "identifier", "text": "bu_free", "parent": 1155, "children": [], "start_point": {"row": 280, "column": 4}, "end_point": {"row": 280, "column": 11}}, {"id": 1157, "type": "argument_list", "text": "(buffer, \"buffer\")", "parent": 1155, "children": [1158, 1159], "start_point": {"row": 280, "column": 11}, "end_point": {"row": 280, "column": 29}}, {"id": 1158, "type": "identifier", "text": "buffer", "parent": 1157, "children": [], "start_point": {"row": 280, "column": 12}, "end_point": {"row": 280, "column": 18}}, {"id": 1159, "type": "string_literal", "text": "\"buffer\"", "parent": 1157, "children": [], "start_point": {"row": 280, "column": 20}, "end_point": {"row": 280, "column": 28}}, {"id": 1160, "type": "return_statement", "text": "return 0;", "parent": 208, "children": [1161], "start_point": {"row": 281, "column": 4}, "end_point": {"row": 281, "column": 13}}, {"id": 1161, "type": "number_literal", "text": "0", "parent": 1160, "children": [], "start_point": {"row": 281, "column": 11}, "end_point": {"row": 281, "column": 12}}]}, "node_categories": {"declarations": {"functions": [24, 90, 92, 148, 150, 208, 210], "variables": [34, 41, 44, 47, 53, 59, 69, 77, 95, 153, 156, 213, 216, 223, 231, 235, 238, 241, 244, 578, 582], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [101, 106, 107, 116, 117, 133, 140, 143, 162, 165, 170, 171, 179, 183, 191, 199, 200, 204, 248, 249, 253, 260, 261, 262, 266, 269, 276, 282, 286, 287, 288, 292, 295, 302, 308, 312, 313, 318, 319, 321, 329, 332, 336, 337, 339, 347, 350, 354, 355, 365, 366, 369, 376, 385, 386, 388, 396, 399, 403, 404, 414, 415, 418, 425, 434, 435, 437, 445, 448, 452, 453, 455, 463, 466, 470, 471, 473, 481, 484, 488, 489, 491, 499, 502, 506, 507, 509, 517, 520, 524, 525, 527, 535, 538, 542, 543, 545, 553, 556, 560, 561, 563, 571, 574, 587, 594, 598, 601, 602, 606, 615, 616, 620, 627, 634, 638, 640, 643, 644, 648, 653, 654, 664, 665, 668, 675, 684, 685, 695, 696, 699, 706, 714, 721, 725, 727, 730, 731, 735, 739, 746, 750, 752, 755, 756, 760, 764, 771, 775, 777, 780, 781, 785, 789, 796, 800, 802, 805, 806, 810, 814, 818, 819, 820, 821, 824, 827, 830, 831, 836, 841, 842, 845, 848, 851, 852, 857, 861, 867, 873, 879, 890, 894, 900, 901, 902, 903, 904, 905, 910, 911, 914, 919, 928, 929, 930, 931, 932, 933, 938, 939, 942, 947, 956, 957, 958, 959, 960, 961, 966, 967, 970, 975, 984, 985, 986, 987, 988, 989, 994, 995, 998, 1003, 1014, 1018, 1024, 1025, 1026, 1027, 1028, 1029, 1034, 1035, 1038, 1043, 1052, 1053, 1054, 1055, 1056, 1057, 1062, 1063, 1066, 1071, 1080, 1081, 1088, 1089, 1093, 1096, 1103, 1104, 1113, 1120, 1122, 1123, 1128, 1135, 1138, 1140, 1141, 1146, 1147, 1151, 1155], "assignments": [98, 111, 121, 126, 130, 159, 175, 188, 263, 289, 326, 344, 359, 373, 380, 393, 408, 422, 429, 442, 460, 478, 496, 514, 532, 550, 568, 591, 610, 631, 658, 672, 679, 689, 703, 710, 718, 743, 768, 793, 886, 897, 925, 953, 981, 1010, 1021, 1049, 1077, 1100, 1110, 1117, 1132], "loops": [885, 1009], "conditionals": [26, 28, 32, 35, 40, 43, 46, 48, 50, 54, 57, 58, 61, 62, 63, 64, 65, 66, 67, 68, 70, 73, 76, 81, 93, 97, 99, 102, 104, 105, 108, 110, 112, 114, 115, 118, 120, 122, 124, 127, 129, 131, 135, 141, 144, 146, 151, 155, 158, 160, 163, 166, 169, 172, 176, 180, 182, 184, 186, 189, 192, 194, 195, 196, 197, 198, 201, 205, 211, 215, 222, 225, 226, 227, 228, 229, 230, 233, 234, 237, 240, 243, 246, 247, 250, 254, 258, 259, 264, 267, 270, 277, 283, 285, 290, 293, 296, 303, 309, 311, 314, 317, 322, 327, 330, 333, 335, 340, 345, 348, 351, 353, 356, 360, 364, 367, 370, 374, 377, 381, 383, 384, 389, 394, 397, 400, 402, 405, 409, 413, 416, 419, 423, 426, 430, 432, 433, 438, 443, 446, 449, 451, 456, 461, 464, 467, 469, 474, 479, 482, 485, 487, 492, 497, 500, 503, 505, 510, 515, 518, 521, 523, 528, 533, 536, 539, 541, 546, 551, 554, 557, 559, 564, 569, 572, 575, 580, 581, 583, 586, 588, 592, 595, 599, 600, 603, 607, 611, 613, 614, 617, 621, 626, 628, 632, 635, 639, 641, 642, 645, 649, 652, 655, 659, 663, 666, 669, 673, 676, 680, 682, 683, 686, 690, 694, 697, 700, 704, 707, 711, 713, 715, 719, 722, 726, 728, 729, 732, 736, 740, 744, 747, 751, 753, 754, 757, 761, 765, 769, 772, 776, 778, 779, 782, 786, 790, 794, 797, 801, 803, 804, 807, 811, 815, 817, 825, 832, 834, 837, 846, 853, 855, 858, 862, 864, 868, 870, 874, 876, 880, 882, 887, 891, 893, 895, 898, 906, 908, 912, 915, 921, 922, 924, 926, 934, 936, 940, 943, 949, 950, 952, 954, 962, 964, 968, 971, 977, 978, 980, 982, 990, 992, 996, 999, 1005, 1006, 1008, 1011, 1015, 1017, 1019, 1022, 1030, 1032, 1036, 1039, 1045, 1046, 1048, 1050, 1058, 1060, 1064, 1067, 1073, 1074, 1076, 1078, 1082, 1084, 1086, 1087, 1090, 1092, 1094, 1097, 1099, 1101, 1105, 1107, 1109, 1111, 1114, 1116, 1118, 1121, 1124, 1126, 1129, 1131, 1133, 1136, 1139, 1142, 1144, 1145, 1148, 1152, 1156, 1158], "returns": [324, 342, 391, 440, 458, 476, 494, 512, 530, 548, 566, 1160], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 52, 83, 147, 168, 174, 178, 187, 203, 207, 252, 256, 257, 271, 272, 279, 280, 284, 297, 298, 305, 306, 310, 316, 323, 325, 334, 341, 343, 352, 358, 362, 372, 379, 390, 392, 401, 407, 411, 421, 428, 439, 441, 450, 457, 459, 468, 475, 477, 486, 493, 495, 504, 511, 513, 522, 529, 531, 540, 547, 549, 558, 565, 567, 576, 590, 597, 605, 609, 619, 623, 624, 630, 637, 647, 651, 657, 661, 671, 678, 688, 692, 702, 709, 717, 724, 734, 738, 742, 749, 759, 763, 767, 774, 784, 788, 792, 799, 809, 813, 839, 860, 865, 871, 877, 883, 889, 917, 945, 973, 1001, 1013, 1041, 1069, 1143, 1150, 1154, 1159, 1161], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "#define round(x) ((int)(x+0.5))\n"}, {"node_id": 90, "universal_type": "function", "name": "init_buffer", "text_snippet": "void\ninit_buffer()\n{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES "}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "init_buffer()"}, {"node_id": 148, "universal_type": "function", "name": "fill_buffer", "text_snippet": "void\nfill_buffer(int y)\n{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n\tb"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "fill_buffer(int y)"}, {"node_id": 208, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(int argc, char **argv)\n{\n float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssi"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"common.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 <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <limits.h> /* for INT_MAX */\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"vmath.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"bu/file.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"bu/malloc.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"bu/exit.h\"\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/* B W C R O P . C\n * BRL-CAD\n *\n * Copyright (c) 1986-2019 United States Government as represented by\n * the U.S. Army Research Laboratory.\n *\n * This program is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public License\n * version 2.1 as published by the Free Software Foundation.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * 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 file; see the file named COPYING for more\n * information.\n */\n/** @file util/bwcrop.c\n *\n * Crop Black and White files.\n *\n * Given four \"corner points\" in the input file, we produce an output\n * file of the requested size consisting of the nearest pixels. No\n * filtering/interpolating is done.\n *\n * This can handle arbitrarily large files. We keep a buffer of scan\n * lines centered around the last point that fell outside of the\n * buffer. Note: this buffer code is shared with bwscale.c\n *\n */\n\n#include \"common.h\"\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <limits.h> /* for INT_MAX */\n#include \"vmath.h\"\n\n#include \"bu/file.h\"\n#include \"bu/malloc.h\"\n#include \"bu/exit.h\"\n\n\n#define round(x) ((int)(x+0.5))\n#define MAXBUFBYTES BU_PAGE_SIZE*BU_PAGE_SIZE\t/* max bytes to malloc in buffer space */\n\nunsigned char *buffer;\nssize_t scanlen;\t\t\t/* length of infile scanlines */\nssize_t buflines;\t\t/* Number of lines held in buffer */\noff_t buf_start = -1000;\t/* First line in buffer */\n\nunsigned long xnum, ynum;\t/* Number of pixels in new file */\nfloat ulx, uly, urx, ury, lrx, lry, llx, lly;\t/* Corners of original file */\n\nFILE *ifp, *ofp;\n\nstatic const char usage[] = \"\\\nUsage: bwcrop in.bw out.bw (I prompt!)\\n\\\n or bwcrop in.bw out.bw inwidth outwidth outheight\\n\\\n\tulx uly urx ury lrx lry llx lly\\n\";\n\n/*\n * Determine max number of lines to buffer.\n * and malloc space for it.\n * XXX - CHECK FILE SIZE\n */\nvoid\ninit_buffer()\n{\n ssize_t max;\n\n /* See how many we could buffer */\n max = MAXBUFBYTES / scanlen;\n\n /*\n * Do a max of page size. We really should see how big the input\n * file is to decide if we should buffer less than our max.\n */\n if (max > BU_PAGE_SIZE)\n\tmax = BU_PAGE_SIZE;\n\n if (max < scanlen)\n\tbuflines = max;\n else\n\tbuflines = scanlen;\n\n buffer = (unsigned char *)bu_malloc(buflines * scanlen, \"buffer\");\n}\n\n\n/*\n * Load the buffer with scan lines centered around\n * the given y coordinate.\n */\nvoid\nfill_buffer(int y)\n{\n size_t ret;\n\n buf_start = y - buflines/2;\n if (buf_start < 0)\n\tbuf_start = 0;\n\n bu_fseek(ifp, buf_start * scanlen, 0);\n ret = fread(buffer, scanlen, buflines, ifp);\n if (ret == 0)\n\tperror(\"fread\");\n}\n\n\nint\nmain(int argc, char **argv)\n{\n float bx1, by1, bx2, by2, bx, by;\n size_t row, col;\n ssize_t yindex;\n char value;\n size_t ret;\n\n int atoival;\n\n if (argc < 3) {\n\tbu_exit(1, \"%s\", usage);\n }\n if ((ifp = fopen(argv[1], \"r\")) == NULL) {\n\tbu_exit(2, \"bwcrop: can't open %s for reading\\n\", argv[1]);\n }\n if ((ofp = fopen(argv[2], \"w\")) == NULL) {\n\tbu_exit(3, \"bwcrop: can't open %s for writing\\n\", argv[2]);\n }\n\n if (argc == 14) {\n\tif (! argv[3])\n\t return 1;\n scanlen = atoi(argv[3]);\n\n\tif (! argv[4])\n\t return 1;\n\tatoival = atoi(argv[4]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n xnum = atoival;\n\n\tif (! argv[5])\n\t return 1;\n\tatoival = atoi(argv[5]);\n\tif (atoival < 0)\n\t atoival = 0;\n\telse if (atoival > INT_MAX-1)\n\t atoival = INT_MAX-1;\n\tynum = atoival;\n\n\tif (! argv[6])\n\t return 1;\n\tulx = atoi(argv[6]);\n\n\tif (! argv[7])\n\t return 1;\n\tuly = atoi(argv[7]);\n\n\tif (! argv[8])\n\t return 1;\n\turx = atoi(argv[8]);\n\n\tif (! argv[9])\n\t return 1;\n\tury = atoi(argv[9]);\n\n\tif (! argv[10])\n\t return 1;\n\tlrx = atoi(argv[10]);\n\n\tif (! argv[11])\n\t return 1;\n\tlry = atoi(argv[11]);\n\n\tif (! argv[12])\n\t return 1;\n\tllx = atoi(argv[12]);\n\n\tif (! argv[13])\n\t return 1;\n\tlly = atoi(argv[13]);\n } else {\n\tdouble xval, yval;\n\tunsigned long len;\n\t/* Get info */\n\n\tprintf(\"Scanline length in input file?: \");\n\tret = scanf(\"%lu\", &len);\n\tif (ret != 1)\n\t perror(\"scanf\");\n\tscanlen = len;\n\tif (scanlen <= 0) {\n\t bu_exit(4, \"bwcrop: scanlen = %zu, don't be ridiculous\\n\", scanlen);\n\t}\n\n\tprintf(\"Line Length and Number of scan lines in new file?: \");\n\tret = scanf(\"%lf%lf\", &xval, &yval);\n\tif (ret != 2) {\n\t perror(\"scanf\");\n\t}\n\n\t/* sanitize xval,yval*/\n\tif (xval < 1)\n\t xval = 1;\n\telse if (xval > INT_MAX-1)\n\t xval = INT_MAX-1;\n\txnum = xval;\n\tif (yval < 1)\n\t yval = 1;\n\telse if (yval > INT_MAX-1)\n\t yval = INT_MAX-1;\n\tynum = yval;\n\n\tprintf(\"Upper left corner (in input file) (x, y)?: \");\n\tret = scanf(\"%f%f\", &ulx, &uly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Upper right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &urx, &ury);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower right corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &lrx, &lry);\n\tif (ret != 2)\n\t perror(\"scanf\");\n\n\tprintf(\"Lower left corner (x, y)?: \");\n\tret = scanf(\"%f%f\", &llx, &lly);\n\tif (ret != 2)\n\t perror(\"scanf\");\n }\n\n /* See how many lines we can buffer */\n init_buffer();\n\n /* Check for silly buffer syndrome */\n if ((ssize_t)abs((int)(ury - uly)) > buflines/2 || (ssize_t)abs((int)(lry - lly)) > buflines/2) {\n\tfprintf(stderr, \"bwcrop: Warning: You are skewing enough in the y direction\\n\");\n\tfprintf(stderr, \"bwcrop: relative to my buffer size that I will exhibit silly\\n\");\n\tfprintf(stderr, \"bwcrop: buffer syndrome (two replacements per scanline).\\n\");\n\tfprintf(stderr, \"bwcrop: Recompile me or use a smarter algorithm.\\n\");\n }\n\n /* Move all points */\n for (row = 0; row < ynum; row++) {\n\t/* calculate left point of row */\n\tbx1 = ((ulx-llx)/(fastf_t)(ynum-1)) * (fastf_t)row + llx;\n\tby1 = ((uly-lly)/(fastf_t)(ynum-1)) * (fastf_t)row + lly;\n\t/* calculate right point of row */\n\tbx2 = ((urx-lrx)/(fastf_t)(ynum-1)) * (fastf_t)row + lrx;\n\tby2 = ((ury-lry)/(fastf_t)(ynum-1)) * (fastf_t)row + lry;\n\n\tfor (col = 0; col < xnum; col++) {\n\t /* calculate point along row */\n\t bx = ((bx2-bx1)/(fastf_t)(xnum-1)) * (fastf_t)col + bx1;\n\t by = ((by2-by1)/(fastf_t)(xnum-1)) * (fastf_t)col + by1;\n\n\t /* Make sure we are in the buffer */\n\t yindex = round(by) - buf_start;\n\t if (yindex >= buflines) {\n\t\tfill_buffer(round(by));\n\t\tyindex = round(by) - buf_start;\n\t }\n\t yindex = yindex + buf_start;\n\n\t value = buffer[ yindex * scanlen + round(bx) ];\n\t ret = fwrite(&value, sizeof(value), 1, ofp);\n\t if (ret == 0)\n\t\tperror(\"fwrite\");\n\t}\n }\n\n bu_free(buffer, \"buffer\");\n return 0;\n}\n\n\n/*\n * Local Variables:\n * mode: C\n * tab-width: 8\n * indent-tabs-mode: t\n * c-file-style: \"stroustrup\"\n * End:\n * ex: shiftwidth=4 tabstop=8\n */\n"}
80,780
c
#pragma once #ifdef _MSC_VER #ifdef _CStringManagerAPI #define CStringManagerAPI _declspec(dllimport) #else #define CStringManagerAPI _declspec(dllexport) #endif #else #if defined(__GNUC__) && __GNUC__ >= 4 #define CStringManagerAPI __attribute__ ((visibility("default"))) #else #define CStringManagerAPI #endif #endif
25.79
14
(translation_unit) "#pragma once\n\n#ifdef _MSC_VER\n #ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif\n#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility("default")))\n #else\n #define CStringManagerAPI\n #endif\n#endif" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifdef _MSC_VER\n #ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif\n#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility("default")))\n #else\n #define CStringManagerAPI\n #endif\n#endif" (#ifdef) "#ifdef" (identifier) "_MSC_VER" (preproc_ifdef) "#ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif" (#ifdef) "#ifdef" (identifier) "_CStringManagerAPI" (preproc_def) "#define CStringManagerAPI _declspec(dllimport)\n" (#define) "#define" (identifier) "CStringManagerAPI" (preproc_arg) "_declspec(dllimport)" (preproc_else) "#else\n #define CStringManagerAPI _declspec(dllexport)\n" (#else) "#else" (preproc_def) "#define CStringManagerAPI _declspec(dllexport)\n" (#define) "#define" (identifier) "CStringManagerAPI" (preproc_arg) "_declspec(dllexport)" (#endif) "#endif" (preproc_else) "#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility("default")))\n #else\n #define CStringManagerAPI\n #endif" (#else) "#else" (preproc_if) "#if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility("default")))\n #else\n #define CStringManagerAPI\n #endif" (#if) "#if" (binary_expression) "defined(__GNUC__) && __GNUC__ >= 4" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (binary_expression) "__GNUC__ >= 4" (identifier) "__GNUC__" (>=) ">=" (number_literal) "4" ( ) "\n" (preproc_def) "#define CStringManagerAPI __attribute__ ((visibility("default")))\n" (#define) "#define" (identifier) "CStringManagerAPI" (preproc_arg) "__attribute__ ((visibility("default")))" (preproc_else) "#else\n #define CStringManagerAPI\n" (#else) "#else" (preproc_def) "#define CStringManagerAPI\n" (#define) "#define" (identifier) "CStringManagerAPI" (#endif) "#endif" (#endif) "#endif"
48
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 25.79, "nodes": 45, "errors": 0, "source_hash": "b7ed8fc9cd143b33524601d26af5d21409ba86eee6d9244ae59ecdbb6c23bc28", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifdef _MSC_VER\n #ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif\n#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility(\"default\")))\n #else\n #define CStringManagerAPI\n #endif\n#endif", "parent": null, "children": [4, 5, 6, 20, 44], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 4, "type": "#ifdef", "text": "#ifdef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 5, "type": "identifier", "text": "_MSC_VER", "parent": 3, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 15}}, {"id": 6, "type": "preproc_ifdef", "text": "#ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif", "parent": 3, "children": [7, 8, 9, 13, 19], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 7, "type": "#ifdef", "text": "#ifdef", "parent": 6, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 10}}, {"id": 8, "type": "identifier", "text": "_CStringManagerAPI", "parent": 6, "children": [], "start_point": {"row": 3, "column": 11}, "end_point": {"row": 3, "column": 29}}, {"id": 9, "type": "preproc_def", "text": "#define CStringManagerAPI _declspec(dllimport)\n", "parent": 6, "children": [10, 11, 12], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 15}}, {"id": 11, "type": "identifier", "text": "CStringManagerAPI", "parent": 9, "children": [], "start_point": {"row": 4, "column": 16}, "end_point": {"row": 4, "column": 33}}, {"id": 12, "type": "preproc_arg", "text": "_declspec(dllimport)", "parent": 9, "children": [], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 54}}, {"id": 13, "type": "preproc_else", "text": "#else\n #define CStringManagerAPI _declspec(dllexport)\n", "parent": 6, "children": [14, 15], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 7, "column": 0}}, {"id": 14, "type": "#else", "text": "#else", "parent": 13, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 9}}, {"id": 15, "type": "preproc_def", "text": "#define CStringManagerAPI _declspec(dllexport)\n", "parent": 13, "children": [16, 17, 18], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 17, "type": "identifier", "text": "CStringManagerAPI", "parent": 15, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 33}}, {"id": 18, "type": "preproc_arg", "text": "_declspec(dllexport)", "parent": 15, "children": [], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 54}}, {"id": 19, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 20, "type": "preproc_else", "text": "#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility(\"default\")))\n #else\n #define CStringManagerAPI\n #endif", "parent": 3, "children": [21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 13, "column": 10}}, {"id": 21, "type": "#else", "text": "#else", "parent": 20, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 5}}, {"id": 22, "type": "preproc_if", "text": "#if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility(\"default\")))\n #else\n #define CStringManagerAPI\n #endif", "parent": 20, "children": [23, 24, 33, 34, 38, 43], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 23, "type": "#if", "text": "#if", "parent": 22, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 7}}, {"id": 24, "type": "binary_expression", "text": "defined(__GNUC__) && __GNUC__ >= 4", "parent": 22, "children": [25, 28, 29], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 42}}, {"id": 25, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 24, "children": [26, 27], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 25}}, {"id": 26, "type": "defined", "text": "defined", "parent": 25, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 15}}, {"id": 27, "type": "identifier", "text": "__GNUC__", "parent": 25, "children": [], "start_point": {"row": 9, "column": 16}, "end_point": {"row": 9, "column": 24}}, {"id": 28, "type": "&&", "text": "&&", "parent": 24, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 28}}, {"id": 29, "type": "binary_expression", "text": "__GNUC__ >= 4", "parent": 24, "children": [30, 31, 32], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 42}}, {"id": 30, "type": "identifier", "text": "__GNUC__", "parent": 29, "children": [], "start_point": {"row": 9, "column": 29}, "end_point": {"row": 9, "column": 37}}, {"id": 31, "type": ">=", "text": ">=", "parent": 29, "children": [], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 40}}, {"id": 32, "type": "number_literal", "text": "4", "parent": 29, "children": [], "start_point": {"row": 9, "column": 41}, "end_point": {"row": 9, "column": 42}}, {"id": 33, "type": "\n", "text": "\n", "parent": 22, "children": [], "start_point": {"row": 9, "column": 42}, "end_point": {"row": 10, "column": 0}}, {"id": 34, "type": "preproc_def", "text": "#define CStringManagerAPI __attribute__ ((visibility(\"default\")))\n", "parent": 22, "children": [35, 36, 37], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 11, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 15}}, {"id": 36, "type": "identifier", "text": "CStringManagerAPI", "parent": 34, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 33}}, {"id": 37, "type": "preproc_arg", "text": "__attribute__ ((visibility(\"default\")))", "parent": 34, "children": [], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 73}}, {"id": 38, "type": "preproc_else", "text": "#else\n #define CStringManagerAPI\n", "parent": 22, "children": [39, 40], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 13, "column": 0}}, {"id": 39, "type": "#else", "text": "#else", "parent": 38, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 9}}, {"id": 40, "type": "preproc_def", "text": "#define CStringManagerAPI\n", "parent": 38, "children": [41, 42], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 13, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 42, "type": "identifier", "text": "CStringManagerAPI", "parent": 40, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 33}}, {"id": 43, "type": "#endif", "text": "#endif", "parent": 22, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 44, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [24, 29], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 6, 7, 8, 11, 17, 19, 22, 23, 27, 30, 36, 42, 43, 44], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [32], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#pragma once\n\n#ifdef _MSC_VER\n #ifdef _CStringManagerAPI\n #define CStringManagerAPI _declspec(dllimport)\n #else\n #define CStringManagerAPI _declspec(dllexport)\n #endif\n#else\n #if defined(__GNUC__) && __GNUC__ >= 4\n #define CStringManagerAPI __attribute__ ((visibility(\"default\")))\n #else\n #define CStringManagerAPI\n #endif\n#endif"}
80,781
c
/* * DataLayoutHelper.h * * Created on: 2017年6月22日 * Author: kame */ #ifndef HEADERS_DATALAYOUTHELPER_H_ #define HEADERS_DATALAYOUTHELPER_H_ #include <llvm/IR/DataLayout.h> #include "AnalysisStructHeaders.h" class DataLayoutHelper{ const DataLayout* DL; GlobalContext * globalContext; std::mutex ssrLock; std::mutex lock; // uint64_t lockcount = 0; std::map<Type*, uint64_t> storeSizeRecord; std::map<Value*, uint64_t> gepOffsetRecord; std::mutex gorLock; std::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord; std::mutex eorLock; public: DataLayoutHelper(const DataLayout* dl, std::mutex *); DataLayoutHelper(const DataLayout* dl, GlobalContext *); ~DataLayoutHelper(); uint64_t GetTypeStoreSize(Type *Ty); uint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index); int64_t GetGEPOffset(Value* value); // int64_t GetGEPOffset(GEPOperator* gep); // void GetFieldTypes(StructType*, std::set<Type*>* type); }; #endif /* HEADERS_DATALAYOUTHELPER_H_ */
29.27
33
(translation_unit) "/*\n * DataLayoutHelper.h\n *\n * Created on: 2017年6月22日\n * Author: kame\n */\n\n#ifndef HEADERS_DATALAYOUTHELPER_H_\n#define HEADERS_DATALAYOUTHELPER_H_\n\n#include <llvm/IR/DataLayout.h>\n#include "AnalysisStructHeaders.h"\n\nclass DataLayoutHelper{\n const DataLayout* DL;\n GlobalContext * globalContext;\n std::mutex ssrLock;\n std::mutex lock;\n// uint64_t lockcount = 0;\n\n std::map<Type*, uint64_t> storeSizeRecord;\n std::map<Value*, uint64_t> gepOffsetRecord;\n std::mutex gorLock;\n std::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n std::mutex eorLock;\npublic:\n DataLayoutHelper(const DataLayout* dl, std::mutex *);\n DataLayoutHelper(const DataLayout* dl, GlobalContext *);\n ~DataLayoutHelper();\n uint64_t GetTypeStoreSize(Type *Ty);\n uint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n int64_t GetGEPOffset(Value* value);\n// int64_t GetGEPOffset(GEPOperator* gep);\n// void GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#endif /* HEADERS_DATALAYOUTHELPER_H_ */\n" (comment) "/*\n * DataLayoutHelper.h\n *\n * Created on: 2017年6月22日\n * Author: kame\n */\n\n#ifn" (preproc_ifdef) "f HEADERS_DATALAYOUTHELPER_H_\n#define HEADERS_DATALAYOUTHELPER_H_\n\n#include <llvm/IR/DataLayout.h>\n#include "AnalysisStructHeaders.h"\n\nclass DataLayoutHelper{\n const DataLayout* DL;\n GlobalContext * globalContext;\n std::mutex ssrLock;\n std::mutex lock;\n// uint64_t lockcount = 0;\n\n std::map<Type*, uint64_t> storeSizeRecord;\n std::map<Value*, uint64_t> gepOffsetRecord;\n std::mutex gorLock;\n std::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n std::mutex eorLock;\npublic:\n DataLayoutHelper(const DataLayout* dl, std::mutex *);\n DataLayoutHelper(const DataLayout* dl, GlobalContext *);\n ~DataLayoutHelper();\n uint64_t GetTypeStoreSize(Type *Ty);\n uint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n int64_t GetGEPOffset(Value* value);\n// int64_t GetGEPOffset(GEPOperator* gep);\n// void GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#endif /* HE" (#ifndef) "f HEADE" (identifier) "S_DATALAYOUTHELPER_H_\n#defi" (preproc_def) "e HEADERS_DATALAYOUTHELPER_H_\n\n#incl" (#define) "e HEADE" (identifier) "S_DATALAYOUTHELPER_H_\n\n#inc" (preproc_include) "de <llvm/IR/DataLayout.h>\n#inclu" (#include) "de <llvm" (system_lib_string) "IR/DataLayout.h>\n#incl" (preproc_include) "de "AnalysisStructHeaders.h"\n\nclass" (#include) "de "Anal" (string_literal) "sisStructHeaders.h"\n\nclas" (") "s" (string_content) "isStructHeaders.h"\n\ncla" (") "s" (function_definition) "DataLayoutHelper{\n const DataLayout* DL;\n GlobalContext * globalContext;\n std::mutex ssrLock;\n std::mutex lock;\n// uint64_t lockcount = 0;\n\n std::map<Type*, uint64_t> storeSizeRecord;\n std::map<Value*, uint64_t> gepOffsetRecord;\n std::mutex gorLock;\n std::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n std::mutex eorLock;\npublic:\n DataLayoutHelper(const DataLayout* dl, std::mutex *);\n DataLayoutHelper(const DataLayout* dl, GlobalContext *);\n ~DataLayoutHelper();\n uint64_t GetTypeStoreSize(Type *Ty);\n uint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n int64_t GetGEPOffset(Value* value);\n// int64_t GetGEPOffset(GEPOperator* gep);\n// void GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#" (type_identifier) "DataL" (identifier) "youtHelper{\n con" (compound_statement) "st DataLayout* DL;\n GlobalContext * globalContext;\n std::mutex ssrLock;\n std::mutex lock;\n// uint64_t lockcount = 0;\n\n std::map<Type*, uint64_t> storeSizeRecord;\n std::map<Value*, uint64_t> gepOffsetRecord;\n std::mutex gorLock;\n std::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n std::mutex eorLock;\npublic:\n DataLayoutHelper(const DataLayout* dl, std::mutex *);\n DataLayoutHelper(const DataLayout* dl, GlobalContext *);\n ~DataLayoutHelper();\n uint64_t GetTypeStoreSize(Type *Ty);\n uint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n int64_t GetGEPOffset(Value* value);\n// int64_t GetGEPOffset(GEPOperator* gep);\n// void GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#" ({) "s" (declaration) "DataLayout* DL;\n Glob" (type_qualifier) "DataL" (const) "DataL" (type_identifier) "yout* DL;\n" (pointer_declarator) " Glo" (*) " " (identifier) "lo" (;) "b" (declaration) "Context * globalContext;\n std:" (type_identifier) "Context * glo" (pointer_declarator) "alContext;\n std" (*) "a" (identifier) "Context;\n std" (;) ":" (labeled_statement) "utex ssrLock;\n std:" (statement_identifier) "ute" (:) "x" (ERROR) " " (:) " " (declaration) "ssrLock;\n std:" (type_identifier) "ssrLo" (identifier) "k;\n std" (;) ":" (labeled_statement) "utex lock;\n// ui" (statement_identifier) "ute" (:) "x" (ERROR) " " (:) " " (declaration) "lock;\n// ui" (type_identifier) "lock;" (identifier) "// u" (;) "i" (comment) "t64_t lockcount = 0;\n\n std" (labeled_statement) "ap<Type*, uint64_t> storeSizeRecord;\n std:" (statement_identifier) "ap<" (:) "T" (ERROR) "y" (:) "y" (expression_statement) "pe*, uint64_t> storeSizeRecord;\n std:" (comma_expression) "pe*, uint64_t> storeSizeRecord;\n std" (binary_expression) "pe*, uin" (identifier) "pe*" (<) "," (identifier) " uin" (ERROR) "t" (*) "t" (,) "6" (binary_expression) "_t> storeSizeRecord;\n std" (identifier) "_t> stor" (>) "e" (identifier) "izeRecord;\n std" (;) ":" (labeled_statement) "ap<Value*, uint64_t> gepOffsetRecord;\n std:" (statement_identifier) "ap<" (:) "V" (ERROR) "a" (:) "a" (expression_statement) "lue*, uint64_t> gepOffsetRecord;\n std:" (comma_expression) "lue*, uint64_t> gepOffsetRecord;\n std" (binary_expression) "lue*, uin" (identifier) "lue" (<) "*" (identifier) ", uin" (ERROR) "t" (*) "t" (,) "6" (binary_expression) "_t> gepOffsetRecord;\n std" (identifier) "_t> gepO" (>) "f" (identifier) "setRecord;\n std" (;) ":" (labeled_statement) "utex gorLock;\n std:" (statement_identifier) "ute" (:) "x" (ERROR) " " (:) " " (declaration) "gorLock;\n std:" (type_identifier) "gorLo" (identifier) "k;\n std" (;) ":" (labeled_statement) "ap<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n std:" (statement_identifier) "ap<" (ERROR) "std::pair<" (:) "s" (:) "t" (binary_expression) "d::pair" (identifier) "d::" (<) "p" (identifier) "air" (:) "<" (:) "S" (expression_statement) "tructType *, int>, uint64_t> elementOffsetRecord;\n std:" (comma_expression) "tructType *, int>, uint64_t> elementOffsetRecord;\n std" (binary_expression) "tructType *, in" (identifier) "truc" (<) "t" (identifier) "Type *, in" (ERROR) ">, uint" (*) ">" (,) "," (identifier) "uin" (>) "t" (,) "6" (binary_expression) "_t> elementOffsetRecord;\n std" (identifier) "_t> elem" (>) "e" (identifier) "tOffsetRecord;\n std" (;) ":" (labeled_statement) "utex eorLock;\npubli" (statement_identifier) "ute" (:) "x" (ERROR) " " (:) " " (declaration) "eorLock;\npubli" (type_identifier) "eorLo" (identifier) "k;\npubl" (;) "i" (labeled_statement) ":\n DataLayoutHelper(const DataLayout* dl, std::mutex *);\n Data" (statement_identifier) ":\n Dat" (:) "a" (declaration) "youtHelper(const DataLayout* dl, std::mutex *);\n Data" (macro_type_specifier) "youtHelper(const DataLayout* dl, s" (identifier) "youtHelper(const" (() " " (type_descriptor) "DataLayout* dl, s" (type_qualifier) "DataL" (const) "DataL" (type_identifier) "yout* dl, " (abstract_pointer_declarator) "s" (*) "s" ()) "" (identifier) "d:" (,) ":" (ERROR) "utex " (identifier) "ute" (:) "x" (:) " " (identifier) "*);\n " (ERROR) "at" (*) "a" ()) "t" (;) "a" (declaration) "youtHelper(const DataLayout* dl, GlobalContext *);\n ~Dat" (macro_type_specifier) "youtHelper(const DataLayout* dl, G" (identifier) "youtHelper(const" (() " " (type_descriptor) "DataLayout* dl, G" (type_qualifier) "DataL" (const) "DataL" (type_identifier) "yout* dl, " (abstract_pointer_declarator) "G" (*) "G" ()) "" (identifier) "ob" (,) "a" (identifier) "Context *);\n " (ERROR) "Da" (*) "D" ()) "a" (;) "t" (expression_statement) "ayoutHelper();\n uint" (unary_expression) "ayoutHelper();\n uin" (~) "a" (call_expression) "youtHelper();\n uin" (identifier) "youtHelper();\n u" (argument_list) "in" (() "i" ()) "n" (;) "t" (declaration) "_t GetTypeStoreSize(Type *Ty);\n uint" (primitive_type) "_t GetTy" (function_declarator) "eStoreSize(Type *Ty);\n uin" (identifier) "eStoreSize(Type " (parameter_list) "*Ty);\n uin" (() "*" (parameter_declaration) "Ty);\n ui" (type_identifier) "Ty);" (pointer_declarator) " ui" (*) " " (identifier) "ui" ()) "n" (;) "t" (declaration) "_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n int6" (primitive_type) "_t GetEl" (function_declarator) "mentOffsetInStruct(StructType *Ty, unsigned index);\n int" (identifier) "mentOffsetInStruct(Struc" (parameter_list) "tType *Ty, unsigned index);\n int" (() "t" (parameter_declaration) "Type *Ty, unsi" (type_identifier) "Type *Ty, " (pointer_declarator) "nsi" (*) "n" (identifier) "si" (,) "g" (parameter_declaration) "ed index);\n in" (sized_type_specifier) "ed index" (unsigned) "ed index" (identifier) ";\n in" ()) "t" (;) "6" (declaration) "t GetGEPOffset(Value* value);\n// in" (primitive_type) "t GetGE" (function_declarator) "Offset(Value* value);\n// i" (identifier) "Offset(Value" (parameter_list) "* value);\n// i" (() "*" (parameter_declaration) " value);\n// " (type_identifier) " valu" (pointer_declarator) "e);\n// " (*) "e" (identifier) ";\n// " ()) "i" (;) "n" (comment) "64_t GetGEPOffset(GEPOperator* gep);\n// vo" (comment) "d GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n" (}) "#" (expression_statement) "e" (;) "e" (#endif) " /* HE" (comment) "DERS_DATALAYOUTHELPER_H_ */\n"
242
13
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 29.27, "nodes": 165, "errors": 0, "source_hash": "f14a9973aa3d6edc57f0b8da4df95f905011da6cea93db4de1a1012ab65c755e", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "f HEADERS_DATALAYOUTHELPER_H_\n#define HEADERS_DATALAYOUTHELPER_H_\n\n#include <llvm/IR/DataLayout.h>\n#include \"AnalysisStructHeaders.h\"\n\nclass DataLayoutHelper{\n\tconst DataLayout* DL;\n\tGlobalContext * globalContext;\n\tstd::mutex ssrLock;\n\tstd::mutex lock;\n//\tuint64_t lockcount = 0;\n\n\tstd::map<Type*, uint64_t> storeSizeRecord;\n\tstd::map<Value*, uint64_t> gepOffsetRecord;\n\tstd::mutex gorLock;\n\tstd::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n\tstd::mutex eorLock;\npublic:\n\tDataLayoutHelper(const DataLayout* dl, std::mutex *);\n\tDataLayoutHelper(const DataLayout* dl, GlobalContext *);\n\t~DataLayoutHelper();\n\tuint64_t GetTypeStoreSize(Type *Ty);\n\tuint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n\tint64_t GetGEPOffset(Value* value);\n//\tint64_t GetGEPOffset(GEPOperator* gep);\n//\tvoid GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#endif /* HE", "parent": null, "children": [1, 2, 3, 6, 9, 12, 164], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 38, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "f HEADE", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 2, "type": "identifier", "text": "S_DATALAYOUTHELPER_H_\n#defi", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "e HEADERS_DATALAYOUTHELPER_H_\n\n#incl", "parent": 0, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#define", "text": "e HEADE", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "identifier", "text": "S_DATALAYOUTHELPER_H_\n\n#inc", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 35}}, {"id": 6, "type": "preproc_include", "text": "de <llvm/IR/DataLayout.h>\n#inclu", "parent": 0, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "de <llvm", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "IR/DataLayout.h>\n#incl", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "de \"AnalysisStructHeaders.h\"\n\nclass", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "de \"Anal", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "string_literal", "text": "sisStructHeaders.h\"\n\nclas", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 34}}, {"id": 12, "type": "function_definition", "text": "DataLayoutHelper{\n\tconst DataLayout* DL;\n\tGlobalContext * globalContext;\n\tstd::mutex ssrLock;\n\tstd::mutex lock;\n//\tuint64_t lockcount = 0;\n\n\tstd::map<Type*, uint64_t> storeSizeRecord;\n\tstd::map<Value*, uint64_t> gepOffsetRecord;\n\tstd::mutex gorLock;\n\tstd::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n\tstd::mutex eorLock;\npublic:\n\tDataLayoutHelper(const DataLayout* dl, std::mutex *);\n\tDataLayoutHelper(const DataLayout* dl, GlobalContext *);\n\t~DataLayoutHelper();\n\tuint64_t GetTypeStoreSize(Type *Ty);\n\tuint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n\tint64_t GetGEPOffset(Value* value);\n//\tint64_t GetGEPOffset(GEPOperator* gep);\n//\tvoid GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#", "parent": 0, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "DataL", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 5}}, {"id": 14, "type": "identifier", "text": "youtHelper{\n\tcon", "parent": 12, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 22}}, {"id": 15, "type": "declaration", "text": "DataLayout* DL;\n\tGlob", "parent": 12, "children": [16, 17, 18], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 22}}, {"id": 16, "type": "type_qualifier", "text": "DataL", "parent": 15, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "yout* DL;\n", "parent": 15, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 17}}, {"id": 18, "type": "pointer_declarator", "text": "\tGlo", "parent": 15, "children": [19, 20], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 21}}, {"id": 19, "type": "*", "text": "\t", "parent": 18, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 20, "type": "identifier", "text": "lo", "parent": 18, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 21}}, {"id": 21, "type": "declaration", "text": "Context * globalContext;\n\tstd:", "parent": 12, "children": [22, 23], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 31}}, {"id": 22, "type": "type_identifier", "text": "Context * glo", "parent": 21, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 14}}, {"id": 23, "type": "pointer_declarator", "text": "alContext;\n\tstd", "parent": 21, "children": [24, 25], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 30}}, {"id": 24, "type": "*", "text": "a", "parent": 23, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 16}}, {"id": 25, "type": "identifier", "text": "Context;\n\tstd", "parent": 23, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 30}}, {"id": 26, "type": "labeled_statement", "text": "utex ssrLock;\n\tstd:", "parent": 12, "children": [27, 28, 29], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 20}}, {"id": 27, "type": "statement_identifier", "text": "ute", "parent": 26, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 28, "type": "ERROR", "text": " ", "parent": 26, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 6}}, {"id": 29, "type": "declaration", "text": "ssrLock;\n\tstd:", "parent": 26, "children": [30, 31], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 20}}, {"id": 30, "type": "type_identifier", "text": "ssrLo", "parent": 29, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 11}}, {"id": 31, "type": "identifier", "text": "k;\n\tstd", "parent": 29, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 19}}, {"id": 32, "type": "labeled_statement", "text": "utex lock;\n//\tui", "parent": 12, "children": [33, 34, 35], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 17}}, {"id": 33, "type": "statement_identifier", "text": "ute", "parent": 32, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 34, "type": "ERROR", "text": " ", "parent": 32, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 6}}, {"id": 35, "type": "declaration", "text": "lock;\n//\tui", "parent": 32, "children": [36, 37], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 17}}, {"id": 36, "type": "type_identifier", "text": "lock;", "parent": 35, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 11}}, {"id": 37, "type": "identifier", "text": "//\tu", "parent": 35, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 16}}, {"id": 38, "type": "labeled_statement", "text": "ap<Type*, uint64_t> storeSizeRecord;\n\tstd:", "parent": 12, "children": [39, 40], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 43}}, {"id": 39, "type": "statement_identifier", "text": "ap<", "parent": 38, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 4}}, {"id": 40, "type": "ERROR", "text": "y", "parent": 38, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 6}}, {"id": 41, "type": "comma_expression", "text": "pe*, uint64_t> storeSizeRecord;\n\tstd", "parent": 38, "children": [42, 45, 47], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 42}}, {"id": 42, "type": "binary_expression", "text": "pe*, uin", "parent": 41, "children": [43, 44], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 14}}, {"id": 43, "type": "identifier", "text": "pe*", "parent": 42, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 9}}, {"id": 44, "type": "identifier", "text": " uin", "parent": 42, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 14}}, {"id": 45, "type": "ERROR", "text": "t", "parent": 41, "children": [46], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 46, "type": "*", "text": "t", "parent": 45, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 47, "type": "binary_expression", "text": "_t> storeSizeRecord;\n\tstd", "parent": 41, "children": [48, 49, 50], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 42}}, {"id": 48, "type": "identifier", "text": "_t> stor", "parent": 47, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 25}}, {"id": 49, "type": ">", "text": "e", "parent": 47, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 50, "type": "identifier", "text": "izeRecord;\n\tstd", "parent": 47, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 42}}, {"id": 51, "type": "labeled_statement", "text": "ap<Value*, uint64_t> gepOffsetRecord;\n\tstd:", "parent": 12, "children": [52, 53], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 44}}, {"id": 52, "type": "statement_identifier", "text": "ap<", "parent": 51, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 4}}, {"id": 53, "type": "ERROR", "text": "a", "parent": 51, "children": [], "start_point": {"row": 21, "column": 5}, "end_point": {"row": 21, "column": 6}}, {"id": 54, "type": "comma_expression", "text": "lue*, uint64_t> gepOffsetRecord;\n\tstd", "parent": 51, "children": [55, 59, 61], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 43}}, {"id": 55, "type": "binary_expression", "text": "lue*, uin", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 15}}, {"id": 56, "type": "identifier", "text": "lue", "parent": 55, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 9}}, {"id": 57, "type": "<", "text": "*", "parent": 55, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 10}}, {"id": 58, "type": "identifier", "text": ", uin", "parent": 55, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 15}}, {"id": 59, "type": "ERROR", "text": "t", "parent": 54, "children": [60], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 60, "type": "*", "text": "t", "parent": 59, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 61, "type": "binary_expression", "text": "_t> gepOffsetRecord;\n\tstd", "parent": 54, "children": [62, 63, 64], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 43}}, {"id": 62, "type": "identifier", "text": "_t> gepO", "parent": 61, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 26}}, {"id": 63, "type": ">", "text": "f", "parent": 61, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 27}}, {"id": 64, "type": "identifier", "text": "setRecord;\n\tstd", "parent": 61, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 43}}, {"id": 65, "type": "labeled_statement", "text": "utex gorLock;\n\tstd:", "parent": 12, "children": [66, 67, 68], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 20}}, {"id": 66, "type": "statement_identifier", "text": "ute", "parent": 65, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 4}}, {"id": 67, "type": "ERROR", "text": " ", "parent": 65, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 6}}, {"id": 68, "type": "declaration", "text": "gorLock;\n\tstd:", "parent": 65, "children": [69, 70], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 20}}, {"id": 69, "type": "type_identifier", "text": "gorLo", "parent": 68, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 11}}, {"id": 70, "type": "identifier", "text": "k;\n\tstd", "parent": 68, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 19}}, {"id": 71, "type": "labeled_statement", "text": "ap<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n\tstd:", "parent": 12, "children": [72, 73], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 70}}, {"id": 72, "type": "statement_identifier", "text": "ap<", "parent": 71, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 4}}, {"id": 73, "type": "ERROR", "text": "std::pair<", "parent": 71, "children": [74], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 74, "type": "binary_expression", "text": "d::pair", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 13}}, {"id": 75, "type": "identifier", "text": "d::", "parent": 74, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 9}}, {"id": 76, "type": "<", "text": "p", "parent": 74, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 77, "type": "identifier", "text": "air", "parent": 74, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 13}}, {"id": 78, "type": "comma_expression", "text": "tructType *, int>, uint64_t> elementOffsetRecord;\n\tstd", "parent": 71, "children": [79, 83, 87], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 69}}, {"id": 79, "type": "binary_expression", "text": "tructType *, in", "parent": 78, "children": [80, 81, 82], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 30}}, {"id": 80, "type": "identifier", "text": "truc", "parent": 79, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 19}}, {"id": 81, "type": "<", "text": "t", "parent": 79, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 82, "type": "identifier", "text": "Type *, in", "parent": 79, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 30}}, {"id": 83, "type": "ERROR", "text": ">, uint", "parent": 78, "children": [84, 85, 86], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 38}}, {"id": 84, "type": "*", "text": ">", "parent": 83, "children": [], "start_point": {"row": 23, "column": 31}, "end_point": {"row": 23, "column": 32}}, {"id": 85, "type": "identifier", "text": "uin", "parent": 83, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 37}}, {"id": 86, "type": ">", "text": "t", "parent": 83, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 38}}, {"id": 87, "type": "binary_expression", "text": "_t> elementOffsetRecord;\n\tstd", "parent": 78, "children": [88, 89, 90], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 69}}, {"id": 88, "type": "identifier", "text": "_t> elem", "parent": 87, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 48}}, {"id": 89, "type": ">", "text": "e", "parent": 87, "children": [], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 49}}, {"id": 90, "type": "identifier", "text": "tOffsetRecord;\n\tstd", "parent": 87, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 69}}, {"id": 91, "type": "labeled_statement", "text": "utex eorLock;\npubli", "parent": 12, "children": [92, 93, 94], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 20}}, {"id": 92, "type": "statement_identifier", "text": "ute", "parent": 91, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 4}}, {"id": 93, "type": "ERROR", "text": " ", "parent": 91, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 6}}, {"id": 94, "type": "declaration", "text": "eorLock;\npubli", "parent": 91, "children": [95, 96], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 20}}, {"id": 95, "type": "type_identifier", "text": "eorLo", "parent": 94, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 11}}, {"id": 96, "type": "identifier", "text": "k;\npubl", "parent": 94, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 19}}, {"id": 97, "type": "labeled_statement", "text": ":\n\tDataLayoutHelper(const DataLayout* dl, std::mutex *);\n\tData", "parent": 12, "children": [98, 99], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 54}}, {"id": 98, "type": "statement_identifier", "text": ":\n\tDat", "parent": 97, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 99, "type": "declaration", "text": "youtHelper(const DataLayout* dl, std::mutex *);\n\tData", "parent": 97, "children": [100, 107, 108, 110, 111], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 54}}, {"id": 100, "type": "macro_type_specifier", "text": "youtHelper(const DataLayout* dl, s", "parent": 99, "children": [101, 102], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 35}}, {"id": 101, "type": "identifier", "text": "youtHelper(const", "parent": 100, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 17}}, {"id": 102, "type": "type_descriptor", "text": "DataLayout* dl, s", "parent": 100, "children": [103, 104, 105], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 35}}, {"id": 103, "type": "type_qualifier", "text": "DataL", "parent": 102, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 23}}, {"id": 104, "type": "type_identifier", "text": "yout* dl, ", "parent": 102, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 34}}, {"id": 105, "type": "abstract_pointer_declarator", "text": "s", "parent": 102, "children": [106], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 106, "type": "*", "text": "s", "parent": 105, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 107, "type": "identifier", "text": "d:", "parent": 99, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 38}}, {"id": 108, "type": "ERROR", "text": "utex ", "parent": 99, "children": [109], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 45}}, {"id": 109, "type": "identifier", "text": "ute", "parent": 108, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 43}}, {"id": 110, "type": "identifier", "text": "*);\n\t", "parent": 99, "children": [], "start_point": {"row": 26, "column": 45}, "end_point": {"row": 26, "column": 50}}, {"id": 111, "type": "ERROR", "text": "at", "parent": 99, "children": [112], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 53}}, {"id": 112, "type": "*", "text": "a", "parent": 111, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 52}}, {"id": 113, "type": "declaration", "text": "youtHelper(const DataLayout* dl, GlobalContext *);\n\t~Dat", "parent": 12, "children": [114, 121, 122, 123], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 57}}, {"id": 114, "type": "macro_type_specifier", "text": "youtHelper(const DataLayout* dl, G", "parent": 113, "children": [115, 116], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 35}}, {"id": 115, "type": "identifier", "text": "youtHelper(const", "parent": 114, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 17}}, {"id": 116, "type": "type_descriptor", "text": "DataLayout* dl, G", "parent": 114, "children": [117, 118, 119], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 35}}, {"id": 117, "type": "type_qualifier", "text": "DataL", "parent": 116, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 23}}, {"id": 118, "type": "type_identifier", "text": "yout* dl, ", "parent": 116, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 34}}, {"id": 119, "type": "abstract_pointer_declarator", "text": "G", "parent": 116, "children": [120], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 35}}, {"id": 120, "type": "*", "text": "G", "parent": 119, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 35}}, {"id": 121, "type": "identifier", "text": "ob", "parent": 113, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 38}}, {"id": 122, "type": "identifier", "text": "Context *);\n\t", "parent": 113, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 53}}, {"id": 123, "type": "ERROR", "text": "Da", "parent": 113, "children": [124], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 56}}, {"id": 124, "type": "*", "text": "D", "parent": 123, "children": [], "start_point": {"row": 27, "column": 54}, "end_point": {"row": 27, "column": 55}}, {"id": 125, "type": "unary_expression", "text": "ayoutHelper();\n\tuin", "parent": 12, "children": [126, 127], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 20}}, {"id": 126, "type": "~", "text": "a", "parent": 125, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 2}}, {"id": 127, "type": "call_expression", "text": "youtHelper();\n\tuin", "parent": 125, "children": [128, 129], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 20}}, {"id": 128, "type": "identifier", "text": "youtHelper();\n\tu", "parent": 127, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 129, "type": "argument_list", "text": "in", "parent": 127, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 20}}, {"id": 130, "type": "declaration", "text": "_t GetTypeStoreSize(Type *Ty);\n\tuint", "parent": 12, "children": [131, 132], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 37}}, {"id": 131, "type": "primitive_type", "text": "_t GetTy", "parent": 130, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 9}}, {"id": 132, "type": "function_declarator", "text": "eStoreSize(Type *Ty);\n\tuin", "parent": 130, "children": [133, 134], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 36}}, {"id": 133, "type": "identifier", "text": "eStoreSize(Type ", "parent": 132, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 26}}, {"id": 134, "type": "parameter_list", "text": "*Ty);\n\tuin", "parent": 132, "children": [135], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 36}}, {"id": 135, "type": "parameter_declaration", "text": "Ty);\n\tui", "parent": 134, "children": [136, 137], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 35}}, {"id": 136, "type": "type_identifier", "text": "Ty);", "parent": 135, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 31}}, {"id": 137, "type": "pointer_declarator", "text": "\tui", "parent": 135, "children": [138, 139], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 35}}, {"id": 138, "type": "*", "text": "\t", "parent": 137, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 33}}, {"id": 139, "type": "identifier", "text": "ui", "parent": 137, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 35}}, {"id": 140, "type": "declaration", "text": "_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n\tint6", "parent": 12, "children": [141, 142], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 67}}, {"id": 141, "type": "primitive_type", "text": "_t GetEl", "parent": 140, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 142, "type": "function_declarator", "text": "mentOffsetInStruct(StructType *Ty, unsigned index);\n\tint", "parent": 140, "children": [143, 144], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 66}}, {"id": 143, "type": "identifier", "text": "mentOffsetInStruct(Struc", "parent": 142, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 34}}, {"id": 144, "type": "parameter_list", "text": "tType *Ty, unsigned index);\n\tint", "parent": 142, "children": [145, 150], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 66}}, {"id": 145, "type": "parameter_declaration", "text": "Type *Ty, unsi", "parent": 144, "children": [146, 147], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 49}}, {"id": 146, "type": "type_identifier", "text": "Type *Ty, ", "parent": 145, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 45}}, {"id": 147, "type": "pointer_declarator", "text": "nsi", "parent": 145, "children": [148, 149], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 49}}, {"id": 148, "type": "*", "text": "n", "parent": 147, "children": [], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 47}}, {"id": 149, "type": "identifier", "text": "si", "parent": 147, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 49}}, {"id": 150, "type": "parameter_declaration", "text": "ed index);\n\tin", "parent": 144, "children": [151, 153], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 65}}, {"id": 151, "type": "sized_type_specifier", "text": "ed index", "parent": 150, "children": [152], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 59}}, {"id": 152, "type": "unsigned", "text": "ed index", "parent": 151, "children": [], "start_point": {"row": 30, "column": 51}, "end_point": {"row": 30, "column": 59}}, {"id": 153, "type": "identifier", "text": ";\n\tin", "parent": 150, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 65}}, {"id": 154, "type": "declaration", "text": "t GetGEPOffset(Value* value);\n//\tin", "parent": 12, "children": [155, 156], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 36}}, {"id": 155, "type": "primitive_type", "text": "t GetGE", "parent": 154, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 8}}, {"id": 156, "type": "function_declarator", "text": "Offset(Value* value);\n//\ti", "parent": 154, "children": [157, 158], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 35}}, {"id": 157, "type": "identifier", "text": "Offset(Value", "parent": 156, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 21}}, {"id": 158, "type": "parameter_list", "text": "* value);\n//\ti", "parent": 156, "children": [159], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 35}}, {"id": 159, "type": "parameter_declaration", "text": " value);\n//\t", "parent": 158, "children": [160, 161], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 34}}, {"id": 160, "type": "type_identifier", "text": " valu", "parent": 159, "children": [], "start_point": {"row": 31, "column": 22}, "end_point": {"row": 31, "column": 27}}, {"id": 161, "type": "pointer_declarator", "text": "e);\n//\t", "parent": 159, "children": [162, 163], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 34}}, {"id": 162, "type": "*", "text": "e", "parent": 161, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 28}}, {"id": 163, "type": "identifier", "text": ";\n//\t", "parent": 161, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 34}}, {"id": 164, "type": "#endif", "text": " /* HE", "parent": 0, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 132, 142, 156], "variables": [15, 21, 29, 35, 68, 94, 99, 113, 130, 135, 140, 145, 150, 154, 159], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [41, 42, 47, 54, 55, 61, 74, 78, 79, 87, 125, 127], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 17, 20, 22, 25, 27, 30, 31, 33, 36, 37, 39, 43, 44, 48, 50, 52, 56, 58, 62, 64, 66, 69, 70, 72, 75, 77, 80, 82, 85, 88, 90, 92, 95, 96, 98, 100, 101, 103, 104, 107, 109, 110, 114, 115, 117, 118, 121, 122, 128, 133, 136, 139, 143, 146, 149, 151, 153, 157, 160, 163, 164], "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": "GetFieldTypes", "text_snippet": "DataLayoutHelper{\n\tconst DataLayout* DL;\n\tGlobalContext * globalContext;\n\tstd::mutex ssrLock;\n\tstd::"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "eStoreSize(Type *Ty);\n\tuin"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "mentOffsetInStruct(StructType *Ty, unsigned index);\n\tint"}, {"node_id": 156, "universal_type": "function", "name": "unknown", "text_snippet": "Offset(Value* value);\n//\ti"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "de <llvm/IR/DataLayout.h>\n#inclu"}, {"node_id": 7, "text": "de <llvm"}, {"node_id": 9, "text": "de \"AnalysisStructHeaders.h\"\n\nclass"}, {"node_id": 10, "text": "de \"Anal"}]}, "original_source_code": "/*\n * DataLayoutHelper.h\n *\n * Created on: 2017\u5e746\u670822\u65e5\n * Author: kame\n */\n\n#ifndef HEADERS_DATALAYOUTHELPER_H_\n#define HEADERS_DATALAYOUTHELPER_H_\n\n#include <llvm/IR/DataLayout.h>\n#include \"AnalysisStructHeaders.h\"\n\nclass DataLayoutHelper{\n\tconst DataLayout* DL;\n\tGlobalContext * globalContext;\n\tstd::mutex ssrLock;\n\tstd::mutex lock;\n//\tuint64_t lockcount = 0;\n\n\tstd::map<Type*, uint64_t> storeSizeRecord;\n\tstd::map<Value*, uint64_t> gepOffsetRecord;\n\tstd::mutex gorLock;\n\tstd::map<std::pair<StructType *, int>, uint64_t> elementOffsetRecord;\n\tstd::mutex eorLock;\npublic:\n\tDataLayoutHelper(const DataLayout* dl, std::mutex *);\n\tDataLayoutHelper(const DataLayout* dl, GlobalContext *);\n\t~DataLayoutHelper();\n\tuint64_t GetTypeStoreSize(Type *Ty);\n\tuint64_t GetElementOffsetInStruct(StructType *Ty, unsigned index);\n\tint64_t GetGEPOffset(Value* value);\n//\tint64_t GetGEPOffset(GEPOperator* gep);\n//\tvoid GetFieldTypes(StructType*, std::set<Type*>* type);\n};\n\n\n\n#endif /* HEADERS_DATALAYOUTHELPER_H_ */\n"}
80,782
c
// C program to Reverse a Linked List #include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct node{ int data; struct node* next; }Node; void push(Node** head_ref,int newdata) { Node* newnode = (Node*)malloc(sizeof(Node)); newnode->data = newdata; newnode->next = (*head_ref); (*head_ref) = newnode; } void printList(Node* node) { while(node) { printf("%d ",node->data); node = node->next; } } void ReverseList(Node** head_ref) { Node* cur,*prev,*next; cur = *head_ref; prev = NULL; while(cur) { next = cur->next; cur->next = prev; prev = cur; cur = next; } *head_ref = prev; } //Driver Program int main() { //create a Linked List Node* a = NULL; push(&a,1); push(&a,2); push(&a,3); push(&a,4); push(&a,5); push(&a,6); printf("Without Reversing Linked List is \n "); printList(a); printf("\nReverse a Linked List is \n"); ReverseList(&a); printList(a); return 0; getchar(); }
15.84
56
(translation_unit) "// C program to Reverse a Linked List\n#include<stdio.h>\n#include<stdlib.h>\n#include<malloc.h>\n\ntypedef struct node{\n int data;\n struct node* next;\n}Node;\n\nvoid push(Node** head_ref,int newdata)\n{\n Node* newnode = (Node*)malloc(sizeof(Node));\n newnode->data = newdata;\n newnode->next = (*head_ref);\n (*head_ref) = newnode;\n}\n\nvoid printList(Node* node)\n{\n while(node)\n {\n printf("%d ",node->data);\n node = node->next;\n }\n}\n\nvoid ReverseList(Node** head_ref)\n{\n Node* cur,*prev,*next;\n cur = *head_ref;\n prev = NULL;\n while(cur)\n {\n next = cur->next;\n cur->next = prev;\n prev = cur;\n cur = next;\n }\n *head_ref = prev;\n}\n\n//Driver Program\n\nint main()\n{\n //create a Linked List\n Node* a = NULL;\n push(&a,1);\n push(&a,2);\n push(&a,3);\n push(&a,4);\n push(&a,5);\n push(&a,6);\n\n printf("Without Reversing Linked List is \n ");\n printList(a);\n\n printf("\nReverse a Linked List is \n");\n ReverseList(&a);\n\n printList(a);\n\n return 0;\n getchar();\n\n}\n" (comment) "// C program to Reverse a Linked List" (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<malloc.h>\n" (#include) "#include" (system_lib_string) "<malloc.h>" (type_definition) "typedef struct node{\n int data;\n struct node* next;\n}Node;" (typedef) "typedef" (struct_specifier) "struct node{\n int data;\n struct node* next;\n}" (struct) "struct" (type_identifier) "node" (field_declaration_list) "{\n int data;\n struct node* next;\n}" ({) "{" (field_declaration) "int data;" (primitive_type) "int" (field_identifier) "data" (;) ";" (field_declaration) "struct node* next;" (struct_specifier) "struct node" (struct) "struct" (type_identifier) "node" (pointer_declarator) "* next" (*) "*" (field_identifier) "next" (;) ";" (}) "}" (type_identifier) "Node" (;) ";" (function_definition) "void push(Node** head_ref,int newdata)\n{\n Node* newnode = (Node*)malloc(sizeof(Node));\n newnode->data = newdata;\n newnode->next = (*head_ref);\n (*head_ref) = newnode;\n}" (primitive_type) "void" (function_declarator) "push(Node** head_ref,int newdata)" (identifier) "push" (parameter_list) "(Node** head_ref,int newdata)" (() "(" (parameter_declaration) "Node** head_ref" (type_identifier) "Node" (pointer_declarator) "** head_ref" (*) "*" (pointer_declarator) "* head_ref" (*) "*" (identifier) "head_ref" (,) "," (parameter_declaration) "int newdata" (primitive_type) "int" (identifier) "newdata" ()) ")" (compound_statement) "{\n Node* newnode = (Node*)malloc(sizeof(Node));\n newnode->data = newdata;\n newnode->next = (*head_ref);\n (*head_ref) = newnode;\n}" ({) "{" (declaration) "Node* newnode = (Node*)malloc(sizeof(Node));" (type_identifier) "Node" (init_declarator) "* newnode = (Node*)malloc(sizeof(Node))" (pointer_declarator) "* newnode" (*) "*" (identifier) "newnode" (=) "=" (cast_expression) "(Node*)malloc(sizeof(Node))" (() "(" (type_descriptor) "Node*" (type_identifier) "Node" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(Node))" (identifier) "malloc" (argument_list) "(sizeof(Node))" (() "(" (sizeof_expression) "sizeof(Node)" (sizeof) "sizeof" (parenthesized_expression) "(Node)" (() "(" (identifier) "Node" ()) ")" ()) ")" (;) ";" (expression_statement) "newnode->data = newdata;" (assignment_expression) "newnode->data = newdata" (field_expression) "newnode->data" (identifier) "newnode" (->) "->" (field_identifier) "data" (=) "=" (identifier) "newdata" (;) ";" (expression_statement) "newnode->next = (*head_ref);" (assignment_expression) "newnode->next = (*head_ref)" (field_expression) "newnode->next" (identifier) "newnode" (->) "->" (field_identifier) "next" (=) "=" (parenthesized_expression) "(*head_ref)" (() "(" (pointer_expression) "*head_ref" (*) "*" (identifier) "head_ref" ()) ")" (;) ";" (expression_statement) "(*head_ref) = newnode;" (assignment_expression) "(*head_ref) = newnode" (parenthesized_expression) "(*head_ref)" (() "(" (pointer_expression) "*head_ref" (*) "*" (identifier) "head_ref" ()) ")" (=) "=" (identifier) "newnode" (;) ";" (}) "}" (function_definition) "void printList(Node* node)\n{\n while(node)\n {\n printf("%d ",node->data);\n node = node->next;\n }\n}" (primitive_type) "void" (function_declarator) "printList(Node* node)" (identifier) "printList" (parameter_list) "(Node* node)" (() "(" (parameter_declaration) "Node* node" (type_identifier) "Node" (pointer_declarator) "* node" (*) "*" (identifier) "node" ()) ")" (compound_statement) "{\n while(node)\n {\n printf("%d ",node->data);\n node = node->next;\n }\n}" ({) "{" (while_statement) "while(node)\n {\n printf("%d ",node->data);\n node = node->next;\n }" (while) "while" (parenthesized_expression) "(node)" (() "(" (identifier) "node" ()) ")" (compound_statement) "{\n printf("%d ",node->data);\n node = node->next;\n }" ({) "{" (expression_statement) "printf("%d ",node->data);" (call_expression) "printf("%d ",node->data)" (identifier) "printf" (argument_list) "("%d ",node->data)" (() "(" (string_literal) ""%d "" (") """ (string_content) "%d " (") """ (,) "," (field_expression) "node->data" (identifier) "node" (->) "->" (field_identifier) "data" ()) ")" (;) ";" (expression_statement) "node = node->next;" (assignment_expression) "node = node->next" (identifier) "node" (=) "=" (field_expression) "node->next" (identifier) "node" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (}) "}" (function_definition) "void ReverseList(Node** head_ref)\n{\n Node* cur,*prev,*next;\n cur = *head_ref;\n prev = NULL;\n while(cur)\n {\n next = cur->next;\n cur->next = prev;\n prev = cur;\n cur = next;\n }\n *head_ref = prev;\n}" (primitive_type) "void" (function_declarator) "ReverseList(Node** head_ref)" (identifier) "ReverseList" (parameter_list) "(Node** head_ref)" (() "(" (parameter_declaration) "Node** head_ref" (type_identifier) "Node" (pointer_declarator) "** head_ref" (*) "*" (pointer_declarator) "* head_ref" (*) "*" (identifier) "head_ref" ()) ")" (compound_statement) "{\n Node* cur,*prev,*next;\n cur = *head_ref;\n prev = NULL;\n while(cur)\n {\n next = cur->next;\n cur->next = prev;\n prev = cur;\n cur = next;\n }\n *head_ref = prev;\n}" ({) "{" (declaration) "Node* cur,*prev,*next;" (type_identifier) "Node" (pointer_declarator) "* cur" (*) "*" (identifier) "cur" (,) "," (pointer_declarator) "*prev" (*) "*" (identifier) "prev" (,) "," (pointer_declarator) "*next" (*) "*" (identifier) "next" (;) ";" (expression_statement) "cur = *head_ref;" (assignment_expression) "cur = *head_ref" (identifier) "cur" (=) "=" (pointer_expression) "*head_ref" (*) "*" (identifier) "head_ref" (;) ";" (expression_statement) "prev = NULL;" (assignment_expression) "prev = NULL" (identifier) "prev" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (while_statement) "while(cur)\n {\n next = cur->next;\n cur->next = prev;\n prev = cur;\n cur = next;\n }" (while) "while" (parenthesized_expression) "(cur)" (() "(" (identifier) "cur" ()) ")" (compound_statement) "{\n next = cur->next;\n cur->next = prev;\n prev = cur;\n cur = next;\n }" ({) "{" (expression_statement) "next = cur->next;" (assignment_expression) "next = cur->next" (identifier) "next" (=) "=" (field_expression) "cur->next" (identifier) "cur" (->) "->" (field_identifier) "next" (;) ";" (expression_statement) "cur->next = prev;" (assignment_expression) "cur->next = prev" (field_expression) "cur->next" (identifier) "cur" (->) "->" (field_identifier) "next" (=) "=" (identifier) "prev" (;) ";" (expression_statement) "prev = cur;" (assignment_expression) "prev = cur" (identifier) "prev" (=) "=" (identifier) "cur" (;) ";" (expression_statement) "cur = next;" (assignment_expression) "cur = next" (identifier) "cur" (=) "=" (identifier) "next" (;) ";" (}) "}" (expression_statement) "*head_ref = prev;" (assignment_expression) "*head_ref = prev" (pointer_expression) "*head_ref" (*) "*" (identifier) "head_ref" (=) "=" (identifier) "prev" (;) ";" (}) "}" (comment) "//Driver Program" (function_definition) "int main()\n{\n //create a Linked List\n Node* a = NULL;\n push(&a,1);\n push(&a,2);\n push(&a,3);\n push(&a,4);\n push(&a,5);\n push(&a,6);\n\n printf("Without Reversing Linked List is \n ");\n printList(a);\n\n printf("\nReverse a Linked List is \n");\n ReverseList(&a);\n\n printList(a);\n\n return 0;\n getchar();\n\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n //create a Linked List\n Node* a = NULL;\n push(&a,1);\n push(&a,2);\n push(&a,3);\n push(&a,4);\n push(&a,5);\n push(&a,6);\n\n printf("Without Reversing Linked List is \n ");\n printList(a);\n\n printf("\nReverse a Linked List is \n");\n ReverseList(&a);\n\n printList(a);\n\n return 0;\n getchar();\n\n}" ({) "{" (comment) "//create a Linked List" (declaration) "Node* a = NULL;" (type_identifier) "Node" (init_declarator) "* a = NULL" (pointer_declarator) "* a" (*) "*" (identifier) "a" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "push(&a,1);" (call_expression) "push(&a,1)" (identifier) "push" (argument_list) "(&a,1)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "1" ()) ")" (;) ";" (expression_statement) "push(&a,2);" (call_expression) "push(&a,2)" (identifier) "push" (argument_list) "(&a,2)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "2" ()) ")" (;) ";" (expression_statement) "push(&a,3);" (call_expression) "push(&a,3)" (identifier) "push" (argument_list) "(&a,3)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "3" ()) ")" (;) ";" (expression_statement) "push(&a,4);" (call_expression) "push(&a,4)" (identifier) "push" (argument_list) "(&a,4)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "4" ()) ")" (;) ";" (expression_statement) "push(&a,5);" (call_expression) "push(&a,5)" (identifier) "push" (argument_list) "(&a,5)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "5" ()) ")" (;) ";" (expression_statement) "push(&a,6);" (call_expression) "push(&a,6)" (identifier) "push" (argument_list) "(&a,6)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" (,) "," (number_literal) "6" ()) ")" (;) ";" (expression_statement) "printf("Without Reversing Linked List is \n ");" (call_expression) "printf("Without Reversing Linked List is \n ")" (identifier) "printf" (argument_list) "("Without Reversing Linked List is \n ")" (() "(" (string_literal) ""Without Reversing Linked List is \n "" (") """ (string_content) "Without Reversing Linked List is " (escape_sequence) "\n" (string_content) " " (") """ ()) ")" (;) ";" (expression_statement) "printList(a);" (call_expression) "printList(a)" (identifier) "printList" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (expression_statement) "printf("\nReverse a Linked List is \n");" (call_expression) "printf("\nReverse a Linked List is \n")" (identifier) "printf" (argument_list) "("\nReverse a Linked List is \n")" (() "(" (string_literal) ""\nReverse a Linked List is \n"" (") """ (escape_sequence) "\n" (string_content) "Reverse a Linked List is " (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "ReverseList(&a);" (call_expression) "ReverseList(&a)" (identifier) "ReverseList" (argument_list) "(&a)" (() "(" (pointer_expression) "&a" (&) "&" (identifier) "a" ()) ")" (;) ";" (expression_statement) "printList(a);" (call_expression) "printList(a)" (identifier) "printList" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (expression_statement) "getchar();" (call_expression) "getchar()" (identifier) "getchar" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}"
413
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 15.84, "nodes": 248, "errors": 0, "source_hash": "4358d6f71a2668bfb34e41dae66645a29e836f0e5445cf384140e9b0aafcdbd3", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include<stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 17}}, {"id": 3, "type": "preproc_include", "text": "#include<stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include<malloc.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<malloc.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 18}}, {"id": 9, "type": "type_definition", "text": "typedef struct node{\n\tint data;\n\tstruct node* next;\n}Node;", "parent": null, "children": [10, 11, 24], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 10, "type": "typedef", "text": "typedef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 11, "type": "struct_specifier", "text": "struct node{\n\tint data;\n\tstruct node* next;\n}", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 8, "column": 1}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 14}}, {"id": 13, "type": "type_identifier", "text": "node", "parent": 11, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 19}}, {"id": 14, "type": "field_declaration", "text": "int data;", "parent": 11, "children": [15, 16], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 10}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 4}}, {"id": 16, "type": "field_identifier", "text": "data", "parent": 14, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 9}}, {"id": 17, "type": "field_declaration", "text": "struct node* next;", "parent": 11, "children": [18, 21], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 19}}, {"id": 18, "type": "struct_specifier", "text": "struct node", "parent": 17, "children": [19, 20], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 12}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 7, "column": 7}}, {"id": 20, "type": "type_identifier", "text": "node", "parent": 18, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 12}}, {"id": 21, "type": "pointer_declarator", "text": "* next", "parent": 17, "children": [22, 23], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 18}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 13}}, {"id": 23, "type": "field_identifier", "text": "next", "parent": 21, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 18}}, {"id": 24, "type": "type_identifier", "text": "Node", "parent": 9, "children": [], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 5}}, {"id": 25, "type": "function_definition", "text": "void push(Node** head_ref,int newdata)\n{\n\tNode* newnode = (Node*)malloc(sizeof(Node));\n\tnewnode->data = newdata;\n\tnewnode->next = (*head_ref);\n\t(*head_ref) = newnode;\n}", "parent": null, "children": [26, 27], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 26, "type": "primitive_type", "text": "void", "parent": 25, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 27, "type": "function_declarator", "text": "push(Node** head_ref,int newdata)", "parent": 25, "children": [28, 29], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 38}}, {"id": 28, "type": "identifier", "text": "push", "parent": 27, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 9}}, {"id": 29, "type": "parameter_list", "text": "(Node** head_ref,int newdata)", "parent": 27, "children": [30, 37], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 38}}, {"id": 30, "type": "parameter_declaration", "text": "Node** head_ref", "parent": 29, "children": [31, 32], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 25}}, {"id": 31, "type": "type_identifier", "text": "Node", "parent": 30, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 14}}, {"id": 32, "type": "pointer_declarator", "text": "** head_ref", "parent": 30, "children": [33, 34], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 25}}, {"id": 33, "type": "*", "text": "*", "parent": 32, "children": [], "start_point": {"row": 10, "column": 14}, "end_point": {"row": 10, "column": 15}}, {"id": 34, "type": "pointer_declarator", "text": "* head_ref", "parent": 32, "children": [35, 36], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 25}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 36, "type": "identifier", "text": "head_ref", "parent": 34, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 25}}, {"id": 37, "type": "parameter_declaration", "text": "int newdata", "parent": 29, "children": [38, 39], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 37}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 37, "children": [], "start_point": {"row": 10, "column": 26}, "end_point": {"row": 10, "column": 29}}, {"id": 39, "type": "identifier", "text": "newdata", "parent": 37, "children": [], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 37}}, {"id": 40, "type": "declaration", "text": "Node* newnode = (Node*)malloc(sizeof(Node));", "parent": 25, "children": [41, 42], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 45}}, {"id": 41, "type": "type_identifier", "text": "Node", "parent": 40, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 5}}, {"id": 42, "type": "init_declarator", "text": "* newnode = (Node*)malloc(sizeof(Node))", "parent": 40, "children": [43, 46, 47], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 44}}, {"id": 43, "type": "pointer_declarator", "text": "* newnode", "parent": 42, "children": [44, 45], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 14}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 6}}, {"id": 45, "type": "identifier", "text": "newnode", "parent": 43, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 14}}, {"id": 46, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 47, "type": "cast_expression", "text": "(Node*)malloc(sizeof(Node))", "parent": 42, "children": [48, 52], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 44}}, {"id": 48, "type": "type_descriptor", "text": "Node*", "parent": 47, "children": [49, 50], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 23}}, {"id": 49, "type": "type_identifier", "text": "Node", "parent": 48, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 22}}, {"id": 50, "type": "abstract_pointer_declarator", "text": "*", "parent": 48, "children": [51], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 51, "type": "*", "text": "*", "parent": 50, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 23}}, {"id": 52, "type": "call_expression", "text": "malloc(sizeof(Node))", "parent": 47, "children": [53, 54], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 44}}, {"id": 53, "type": "identifier", "text": "malloc", "parent": 52, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 30}}, {"id": 54, "type": "argument_list", "text": "(sizeof(Node))", "parent": 52, "children": [55], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 44}}, {"id": 55, "type": "sizeof_expression", "text": "sizeof(Node)", "parent": 54, "children": [56], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 43}}, {"id": 56, "type": "parenthesized_expression", "text": "(Node)", "parent": 55, "children": [57], "start_point": {"row": 12, "column": 37}, "end_point": {"row": 12, "column": 43}}, {"id": 57, "type": "identifier", "text": "Node", "parent": 56, "children": [], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 42}}, {"id": 58, "type": "assignment_expression", "text": "newnode->data = newdata", "parent": 25, "children": [59, 62, 63], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 24}}, {"id": 59, "type": "field_expression", "text": "newnode->data", "parent": 58, "children": [60, 61], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 14}}, {"id": 60, "type": "identifier", "text": "newnode", "parent": 59, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 8}}, {"id": 61, "type": "field_identifier", "text": "data", "parent": 59, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 14}}, {"id": 62, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 63, "type": "identifier", "text": "newdata", "parent": 58, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 24}}, {"id": 64, "type": "assignment_expression", "text": "newnode->next = (*head_ref)", "parent": 25, "children": [65, 68, 69], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 28}}, {"id": 65, "type": "field_expression", "text": "newnode->next", "parent": 64, "children": [66, 67], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 14}}, {"id": 66, "type": "identifier", "text": "newnode", "parent": 65, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 67, "type": "field_identifier", "text": "next", "parent": 65, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 68, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 69, "type": "parenthesized_expression", "text": "(*head_ref)", "parent": 64, "children": [70], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 28}}, {"id": 70, "type": "pointer_expression", "text": "*head_ref", "parent": 69, "children": [71, 72], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 27}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 19}}, {"id": 72, "type": "identifier", "text": "head_ref", "parent": 70, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 27}}, {"id": 73, "type": "assignment_expression", "text": "(*head_ref) = newnode", "parent": 25, "children": [74, 78, 79], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 22}}, {"id": 74, "type": "parenthesized_expression", "text": "(*head_ref)", "parent": 73, "children": [75], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 12}}, {"id": 75, "type": "pointer_expression", "text": "*head_ref", "parent": 74, "children": [76, 77], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 11}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 3}}, {"id": 77, "type": "identifier", "text": "head_ref", "parent": 75, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 78, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 79, "type": "identifier", "text": "newnode", "parent": 73, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 22}}, {"id": 80, "type": "function_definition", "text": "void printList(Node* node)\n{\n while(node)\n {\n \tprintf(\"%d \",node->data);\n \tnode = node->next;\n }\n}", "parent": null, "children": [81, 82], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 82, "type": "function_declarator", "text": "printList(Node* node)", "parent": 80, "children": [83, 84], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 26}}, {"id": 83, "type": "identifier", "text": "printList", "parent": 82, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 14}}, {"id": 84, "type": "parameter_list", "text": "(Node* node)", "parent": 82, "children": [85], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 26}}, {"id": 85, "type": "parameter_declaration", "text": "Node* node", "parent": 84, "children": [86, 87], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 25}}, {"id": 86, "type": "type_identifier", "text": "Node", "parent": 85, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 19}}, {"id": 87, "type": "pointer_declarator", "text": "* node", "parent": 85, "children": [88, 89], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 25}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 20}}, {"id": 89, "type": "identifier", "text": "node", "parent": 87, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 25}}, {"id": 90, "type": "while_statement", "text": "while(node)\n {\n \tprintf(\"%d \",node->data);\n \tnode = node->next;\n }", "parent": 80, "children": [91], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 24, "column": 4}}, {"id": 91, "type": "parenthesized_expression", "text": "(node)", "parent": 90, "children": [92], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 14}}, {"id": 92, "type": "identifier", "text": "node", "parent": 91, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 93, "type": "call_expression", "text": "printf(\"%d \",node->data)", "parent": 90, "children": [94, 95], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 28}}, {"id": 94, "type": "identifier", "text": "printf", "parent": 93, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 95, "type": "argument_list", "text": "(\"%d \",node->data)", "parent": 93, "children": [96, 97], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 28}}, {"id": 96, "type": "string_literal", "text": "\"%d \"", "parent": 95, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 16}}, {"id": 97, "type": "field_expression", "text": "node->data", "parent": 95, "children": [98, 99], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 27}}, {"id": 98, "type": "identifier", "text": "node", "parent": 97, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 21}}, {"id": 99, "type": "field_identifier", "text": "data", "parent": 97, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 27}}, {"id": 100, "type": "assignment_expression", "text": "node = node->next", "parent": 90, "children": [101, 102, 103], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 21}}, {"id": 101, "type": "identifier", "text": "node", "parent": 100, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 102, "type": "=", "text": "=", "parent": 100, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 10}}, {"id": 103, "type": "field_expression", "text": "node->next", "parent": 100, "children": [104, 105], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 21}}, {"id": 104, "type": "identifier", "text": "node", "parent": 103, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 15}}, {"id": 105, "type": "field_identifier", "text": "next", "parent": 103, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 106, "type": "function_definition", "text": "void ReverseList(Node** head_ref)\n{\n\tNode* cur,*prev,*next;\n\tcur = *head_ref;\n\tprev = NULL;\n\twhile(cur)\n\t{\n\t\tnext = cur->next;\n\t\tcur->next = prev;\n\t\tprev = cur;\n\t\tcur = next;\n\t}\n\t*head_ref = prev;\n}", "parent": null, "children": [107, 108], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 107, "type": "primitive_type", "text": "void", "parent": 106, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 108, "type": "function_declarator", "text": "ReverseList(Node** head_ref)", "parent": 106, "children": [109, 110], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 33}}, {"id": 109, "type": "identifier", "text": "ReverseList", "parent": 108, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 16}}, {"id": 110, "type": "parameter_list", "text": "(Node** head_ref)", "parent": 108, "children": [111], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 33}}, {"id": 111, "type": "parameter_declaration", "text": "Node** head_ref", "parent": 110, "children": [112, 113], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 32}}, {"id": 112, "type": "type_identifier", "text": "Node", "parent": 111, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 21}}, {"id": 113, "type": "pointer_declarator", "text": "** head_ref", "parent": 111, "children": [114, 115], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 32}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 115, "type": "pointer_declarator", "text": "* head_ref", "parent": 113, "children": [116, 117], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 32}}, {"id": 116, "type": "*", "text": "*", "parent": 115, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 117, "type": "identifier", "text": "head_ref", "parent": 115, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 32}}, {"id": 118, "type": "declaration", "text": "Node* cur,*prev,*next;", "parent": 106, "children": [119, 120, 123, 126], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 23}}, {"id": 119, "type": "type_identifier", "text": "Node", "parent": 118, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 5}}, {"id": 120, "type": "pointer_declarator", "text": "* cur", "parent": 118, "children": [121, 122], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 10}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 6}}, {"id": 122, "type": "identifier", "text": "cur", "parent": 120, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 10}}, {"id": 123, "type": "pointer_declarator", "text": "*prev", "parent": 118, "children": [124, 125], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 16}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 12}}, {"id": 125, "type": "identifier", "text": "prev", "parent": 123, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 16}}, {"id": 126, "type": "pointer_declarator", "text": "*next", "parent": 118, "children": [127, 128], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 22}}, {"id": 127, "type": "*", "text": "*", "parent": 126, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 128, "type": "identifier", "text": "next", "parent": 126, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 22}}, {"id": 129, "type": "assignment_expression", "text": "cur = *head_ref", "parent": 106, "children": [130, 131, 132], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 16}}, {"id": 130, "type": "identifier", "text": "cur", "parent": 129, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 4}}, {"id": 131, "type": "=", "text": "=", "parent": 129, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 6}}, {"id": 132, "type": "pointer_expression", "text": "*head_ref", "parent": 129, "children": [133, 134], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 16}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 8}}, {"id": 134, "type": "identifier", "text": "head_ref", "parent": 132, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 16}}, {"id": 135, "type": "assignment_expression", "text": "prev = NULL", "parent": 106, "children": [136, 137, 138], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 12}}, {"id": 136, "type": "identifier", "text": "prev", "parent": 135, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 137, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 7}}, {"id": 138, "type": "null", "text": "NULL", "parent": 135, "children": [139], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 139, "type": "NULL", "text": "NULL", "parent": 138, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 12}}, {"id": 140, "type": "while_statement", "text": "while(cur)\n\t{\n\t\tnext = cur->next;\n\t\tcur->next = prev;\n\t\tprev = cur;\n\t\tcur = next;\n\t}", "parent": 106, "children": [141], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 38, "column": 2}}, {"id": 141, "type": "parenthesized_expression", "text": "(cur)", "parent": 140, "children": [142], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 11}}, {"id": 142, "type": "identifier", "text": "cur", "parent": 141, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 143, "type": "assignment_expression", "text": "next = cur->next", "parent": 140, "children": [144, 145, 146], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 18}}, {"id": 144, "type": "identifier", "text": "next", "parent": 143, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 6}}, {"id": 145, "type": "=", "text": "=", "parent": 143, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 8}}, {"id": 146, "type": "field_expression", "text": "cur->next", "parent": 143, "children": [147, 148], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 18}}, {"id": 147, "type": "identifier", "text": "cur", "parent": 146, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 12}}, {"id": 148, "type": "field_identifier", "text": "next", "parent": 146, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 18}}, {"id": 149, "type": "assignment_expression", "text": "cur->next = prev", "parent": 140, "children": [150, 153, 154], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 18}}, {"id": 150, "type": "field_expression", "text": "cur->next", "parent": 149, "children": [151, 152], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 11}}, {"id": 151, "type": "identifier", "text": "cur", "parent": 150, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 5}}, {"id": 152, "type": "field_identifier", "text": "next", "parent": 150, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 153, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 154, "type": "identifier", "text": "prev", "parent": 149, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 18}}, {"id": 155, "type": "assignment_expression", "text": "prev = cur", "parent": 140, "children": [156, 157, 158], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 12}}, {"id": 156, "type": "identifier", "text": "prev", "parent": 155, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 6}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 8}}, {"id": 158, "type": "identifier", "text": "cur", "parent": 155, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 12}}, {"id": 159, "type": "assignment_expression", "text": "cur = next", "parent": 140, "children": [160, 161, 162], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 12}}, {"id": 160, "type": "identifier", "text": "cur", "parent": 159, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 5}}, {"id": 161, "type": "=", "text": "=", "parent": 159, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 7}}, {"id": 162, "type": "identifier", "text": "next", "parent": 159, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 12}}, {"id": 163, "type": "assignment_expression", "text": "*head_ref = prev", "parent": 106, "children": [164, 167, 168], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 17}}, {"id": 164, "type": "pointer_expression", "text": "*head_ref", "parent": 163, "children": [165, 166], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 10}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 2}}, {"id": 166, "type": "identifier", "text": "head_ref", "parent": 164, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 10}}, {"id": 167, "type": "=", "text": "=", "parent": 163, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}, {"id": 168, "type": "identifier", "text": "prev", "parent": 163, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 17}}, {"id": 169, "type": "function_definition", "text": "int main()\n{\n\t//create a Linked List\n\tNode* a = NULL;\n\tpush(&a,1);\n\tpush(&a,2);\n\tpush(&a,3);\n\tpush(&a,4);\n\tpush(&a,5);\n\tpush(&a,6);\n\n\tprintf(\"Without Reversing Linked List is \\n \");\n\tprintList(a);\n\n\tprintf(\"\\nReverse a Linked List is \\n\");\n\tReverseList(&a);\n\n\tprintList(a);\n\n\treturn 0;\n\tgetchar();\n\n}", "parent": null, "children": [170, 171], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 66, "column": 1}}, {"id": 170, "type": "primitive_type", "text": "int", "parent": 169, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 3}}, {"id": 171, "type": "function_declarator", "text": "main()", "parent": 169, "children": [172, 173], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 172, "type": "identifier", "text": "main", "parent": 171, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 173, "type": "parameter_list", "text": "()", "parent": 171, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 10}}, {"id": 174, "type": "declaration", "text": "Node* a = NULL;", "parent": 169, "children": [175, 176], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 16}}, {"id": 175, "type": "type_identifier", "text": "Node", "parent": 174, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 5}}, {"id": 176, "type": "init_declarator", "text": "* a = NULL", "parent": 174, "children": [177, 180, 181], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 15}}, {"id": 177, "type": "pointer_declarator", "text": "* a", "parent": 176, "children": [178, 179], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 8}}, {"id": 178, "type": "*", "text": "*", "parent": 177, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 6}}, {"id": 179, "type": "identifier", "text": "a", "parent": 177, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 8}}, {"id": 180, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 10}}, {"id": 181, "type": "null", "text": "NULL", "parent": 176, "children": [182], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 15}}, {"id": 182, "type": "NULL", "text": "NULL", "parent": 181, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 15}}, {"id": 183, "type": "call_expression", "text": "push(&a,1)", "parent": 169, "children": [184, 185], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 11}}, {"id": 184, "type": "identifier", "text": "push", "parent": 183, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 5}}, {"id": 185, "type": "argument_list", "text": "(&a,1)", "parent": 183, "children": [186, 188], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 11}}, {"id": 186, "type": "pointer_expression", "text": "&a", "parent": 185, "children": [187], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 8}}, {"id": 187, "type": "identifier", "text": "a", "parent": 186, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 188, "type": "number_literal", "text": "1", "parent": 185, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 189, "type": "call_expression", "text": "push(&a,2)", "parent": 169, "children": [190, 191], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 11}}, {"id": 190, "type": "identifier", "text": "push", "parent": 189, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 5}}, {"id": 191, "type": "argument_list", "text": "(&a,2)", "parent": 189, "children": [192, 194], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 11}}, {"id": 192, "type": "pointer_expression", "text": "&a", "parent": 191, "children": [193], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 8}}, {"id": 193, "type": "identifier", "text": "a", "parent": 192, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 8}}, {"id": 194, "type": "number_literal", "text": "2", "parent": 191, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 195, "type": "call_expression", "text": "push(&a,3)", "parent": 169, "children": [196, 197], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 11}}, {"id": 196, "type": "identifier", "text": "push", "parent": 195, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 5}}, {"id": 197, "type": "argument_list", "text": "(&a,3)", "parent": 195, "children": [198, 200], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 11}}, {"id": 198, "type": "pointer_expression", "text": "&a", "parent": 197, "children": [199], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 8}}, {"id": 199, "type": "identifier", "text": "a", "parent": 198, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 8}}, {"id": 200, "type": "number_literal", "text": "3", "parent": 197, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 201, "type": "call_expression", "text": "push(&a,4)", "parent": 169, "children": [202, 203], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 11}}, {"id": 202, "type": "identifier", "text": "push", "parent": 201, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 5}}, {"id": 203, "type": "argument_list", "text": "(&a,4)", "parent": 201, "children": [204, 206], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 11}}, {"id": 204, "type": "pointer_expression", "text": "&a", "parent": 203, "children": [205], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 8}}, {"id": 205, "type": "identifier", "text": "a", "parent": 204, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 8}}, {"id": 206, "type": "number_literal", "text": "4", "parent": 203, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 207, "type": "call_expression", "text": "push(&a,5)", "parent": 169, "children": [208, 209], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 11}}, {"id": 208, "type": "identifier", "text": "push", "parent": 207, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 209, "type": "argument_list", "text": "(&a,5)", "parent": 207, "children": [210, 212], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 11}}, {"id": 210, "type": "pointer_expression", "text": "&a", "parent": 209, "children": [211], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 8}}, {"id": 211, "type": "identifier", "text": "a", "parent": 210, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 8}}, {"id": 212, "type": "number_literal", "text": "5", "parent": 209, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 213, "type": "call_expression", "text": "push(&a,6)", "parent": 169, "children": [214, 215], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 11}}, {"id": 214, "type": "identifier", "text": "push", "parent": 213, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 5}}, {"id": 215, "type": "argument_list", "text": "(&a,6)", "parent": 213, "children": [216, 218], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 11}}, {"id": 216, "type": "pointer_expression", "text": "&a", "parent": 215, "children": [217], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 8}}, {"id": 217, "type": "identifier", "text": "a", "parent": 216, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 8}}, {"id": 218, "type": "number_literal", "text": "6", "parent": 215, "children": [], "start_point": {"row": 53, "column": 9}, "end_point": {"row": 53, "column": 10}}, {"id": 219, "type": "call_expression", "text": "printf(\"Without Reversing Linked List is \\n \")", "parent": 169, "children": [220, 221], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 47}}, {"id": 220, "type": "identifier", "text": "printf", "parent": 219, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 7}}, {"id": 221, "type": "argument_list", "text": "(\"Without Reversing Linked List is \\n \")", "parent": 219, "children": [222], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 47}}, {"id": 222, "type": "string_literal", "text": "\"Without Reversing Linked List is \\n \"", "parent": 221, "children": [223], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 46}}, {"id": 223, "type": "escape_sequence", "text": "\\n", "parent": 222, "children": [], "start_point": {"row": 55, "column": 42}, "end_point": {"row": 55, "column": 44}}, {"id": 224, "type": "call_expression", "text": "printList(a)", "parent": 169, "children": [225, 226], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 13}}, {"id": 225, "type": "identifier", "text": "printList", "parent": 224, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 10}}, {"id": 226, "type": "argument_list", "text": "(a)", "parent": 224, "children": [227], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 13}}, {"id": 227, "type": "identifier", "text": "a", "parent": 226, "children": [], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 12}}, {"id": 228, "type": "call_expression", "text": "printf(\"\\nReverse a Linked List is \\n\")", "parent": 169, "children": [229, 230], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 40}}, {"id": 229, "type": "identifier", "text": "printf", "parent": 228, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 7}}, {"id": 230, "type": "argument_list", "text": "(\"\\nReverse a Linked List is \\n\")", "parent": 228, "children": [231], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 40}}, {"id": 231, "type": "string_literal", "text": "\"\\nReverse a Linked List is \\n\"", "parent": 230, "children": [232, 233], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 39}}, {"id": 232, "type": "escape_sequence", "text": "\\n", "parent": 231, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 11}}, {"id": 233, "type": "escape_sequence", "text": "\\n", "parent": 231, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 38}}, {"id": 234, "type": "call_expression", "text": "ReverseList(&a)", "parent": 169, "children": [235, 236], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 16}}, {"id": 235, "type": "identifier", "text": "ReverseList", "parent": 234, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 12}}, {"id": 236, "type": "argument_list", "text": "(&a)", "parent": 234, "children": [237], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 16}}, {"id": 237, "type": "pointer_expression", "text": "&a", "parent": 236, "children": [238], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 15}}, {"id": 238, "type": "identifier", "text": "a", "parent": 237, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 239, "type": "call_expression", "text": "printList(a)", "parent": 169, "children": [240, 241], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 13}}, {"id": 240, "type": "identifier", "text": "printList", "parent": 239, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 10}}, {"id": 241, "type": "argument_list", "text": "(a)", "parent": 239, "children": [242], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 13}}, {"id": 242, "type": "identifier", "text": "a", "parent": 241, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}, {"id": 243, "type": "return_statement", "text": "return 0;", "parent": 169, "children": [244], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 10}}, {"id": 244, "type": "number_literal", "text": "0", "parent": 243, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 245, "type": "call_expression", "text": "getchar()", "parent": 169, "children": [246, 247], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 10}}, {"id": 246, "type": "identifier", "text": "getchar", "parent": 245, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 8}}, {"id": 247, "type": "argument_list", "text": "()", "parent": 245, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 10}}]}, "node_categories": {"declarations": {"functions": [25, 27, 80, 82, 106, 108, 169, 171], "variables": [9, 14, 17, 30, 37, 40, 85, 111, 118, 174], "classes": [11, 12, 18, 19], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [47, 52, 55, 56, 59, 65, 69, 70, 74, 75, 91, 93, 97, 103, 132, 141, 146, 150, 164, 183, 186, 189, 192, 195, 198, 201, 204, 207, 210, 213, 216, 219, 224, 228, 234, 237, 239, 245], "assignments": [58, 64, 73, 100, 129, 135, 143, 149, 155, 159, 163], "loops": [90, 140], "conditionals": [13, 16, 20, 23, 24, 28, 31, 36, 39, 41, 45, 49, 53, 57, 60, 61, 63, 66, 67, 72, 77, 79, 83, 86, 89, 92, 94, 98, 99, 101, 104, 105, 109, 112, 117, 119, 122, 125, 128, 130, 134, 136, 142, 144, 147, 148, 151, 152, 154, 156, 158, 160, 162, 166, 168, 172, 175, 179, 184, 187, 190, 193, 196, 199, 202, 205, 208, 211, 214, 217, 220, 225, 227, 229, 235, 238, 240, 242, 246], "returns": [243], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 96, 188, 194, 200, 206, 212, 218, 222, 231, 244], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "push", "text_snippet": "void push(Node** head_ref,int newdata)\n{\n\tNode* newnode = (Node*)malloc(sizeof(Node));\n\tnewnode->dat"}, {"node_id": 27, "universal_type": "function", "name": "unknown", "text_snippet": "push(Node** head_ref,int newdata)"}, {"node_id": 80, "universal_type": "function", "name": "printList", "text_snippet": "void printList(Node* node)\n{\n while(node)\n {\n \tprintf(\"%d \",node->data);\n \tnode = node->next"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "printList(Node* node)"}, {"node_id": 106, "universal_type": "function", "name": "ReverseList", "text_snippet": "void ReverseList(Node** head_ref)\n{\n\tNode* cur,*prev,*next;\n\tcur = *head_ref;\n\tprev = NULL;\n\twhile(c"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "ReverseList(Node** head_ref)"}, {"node_id": 169, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n\t//create a Linked List\n\tNode* a = NULL;\n\tpush(&a,1);\n\tpush(&a,2);\n\tpush(&a,3);\n\tpush(&"}, {"node_id": 171, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "node{", "text_snippet": "struct node{\n\tint data;\n\tstruct node* next;\n}"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 18, "universal_type": "class", "name": "node", "text_snippet": "struct node"}, {"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<malloc.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// C program to Reverse a Linked List\n#include<stdio.h>\n#include<stdlib.h>\n#include<malloc.h>\n\ntypedef struct node{\n\tint data;\n\tstruct node* next;\n}Node;\n\nvoid push(Node** head_ref,int newdata)\n{\n\tNode* newnode = (Node*)malloc(sizeof(Node));\n\tnewnode->data = newdata;\n\tnewnode->next = (*head_ref);\n\t(*head_ref) = newnode;\n}\n\nvoid printList(Node* node)\n{\n while(node)\n {\n \tprintf(\"%d \",node->data);\n \tnode = node->next;\n }\n}\n\nvoid ReverseList(Node** head_ref)\n{\n\tNode* cur,*prev,*next;\n\tcur = *head_ref;\n\tprev = NULL;\n\twhile(cur)\n\t{\n\t\tnext = cur->next;\n\t\tcur->next = prev;\n\t\tprev = cur;\n\t\tcur = next;\n\t}\n\t*head_ref = prev;\n}\n\n//Driver Program\n\nint main()\n{\n\t//create a Linked List\n\tNode* a = NULL;\n\tpush(&a,1);\n\tpush(&a,2);\n\tpush(&a,3);\n\tpush(&a,4);\n\tpush(&a,5);\n\tpush(&a,6);\n\n\tprintf(\"Without Reversing Linked List is \\n \");\n\tprintList(a);\n\n\tprintf(\"\\nReverse a Linked List is \\n\");\n\tReverseList(&a);\n\n\tprintList(a);\n\n\treturn 0;\n\tgetchar();\n\n}\n"}
80,783
c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "tests/sys_mman.h" static void *f(void) { return mmap(NULL, 80 * 1000 * 1024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); } int main() { void *m = f(); munmap(m, 80 * 1000 * 1024); return 0; }
19.06
17
(translation_unit) "#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include "tests/sys_mman.h"\n\nstatic void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}\n\nint main()\n{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}\n" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include "tests/sys_mman.h"\n" (#include) "#include" (string_literal) ""tests/sys_mman.h"" (") """ (string_content) "tests/sys_mman.h" (") """ (function_definition) "static void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (pointer_declarator) "*f(void)" (*) "*" (function_declarator) "f(void)" (identifier) "f" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}" ({) "{" (return_statement) "return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);" (return) "return" (call_expression) "mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0)" (identifier) "mmap" (argument_list) "(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0)" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (binary_expression) "80 * 1000 * 1024" (binary_expression) "80 * 1000" (number_literal) "80" (*) "*" (number_literal) "1000" (*) "*" (number_literal) "1024" (,) "," (binary_expression) "PROT_READ|PROT_WRITE" (identifier) "PROT_READ" (|) "|" (identifier) "PROT_WRITE" (,) "," (binary_expression) "MAP_PRIVATE|MAP_ANONYMOUS" (identifier) "MAP_PRIVATE" (|) "|" (identifier) "MAP_ANONYMOUS" (,) "," (number_literal) "-1" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "int main()\n{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}" ({) "{" (declaration) "void *m = f();" (primitive_type) "void" (init_declarator) "*m = f()" (pointer_declarator) "*m" (*) "*" (identifier) "m" (=) "=" (call_expression) "f()" (identifier) "f" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "munmap(m, 80 * 1000 * 1024);" (call_expression) "munmap(m, 80 * 1000 * 1024)" (identifier) "munmap" (argument_list) "(m, 80 * 1000 * 1024)" (() "(" (identifier) "m" (,) "," (binary_expression) "80 * 1000 * 1024" (binary_expression) "80 * 1000" (number_literal) "80" (*) "*" (number_literal) "1000" (*) "*" (number_literal) "1024" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
110
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 19.06, "nodes": 73, "errors": 0, "source_hash": "bdf3f5419f17cb812792f3267a2f8c0c094bc63028a12433644fefdc091014c3", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <sys/types.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": "<sys/types.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_include", "text": "#include <sys/stat.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": "<sys/stat.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <fcntl.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": "<fcntl.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <unistd.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": "<unistd.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include \"tests/sys_mman.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": "string_literal", "text": "\"tests/sys_mman.h\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 15, "type": "function_definition", "text": "static void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}", "parent": null, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 17, "type": "pointer_declarator", "text": "*f(void)", "parent": 15, "children": [18, 19], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 20}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 13}}, {"id": 19, "type": "function_declarator", "text": "f(void)", "parent": 17, "children": [20, 21], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 20}}, {"id": 20, "type": "identifier", "text": "f", "parent": 19, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 14}}, {"id": 21, "type": "parameter_list", "text": "(void)", "parent": 19, "children": [22], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 20}}, {"id": 22, "type": "parameter_declaration", "text": "void", "parent": 21, "children": [23], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 19}}, {"id": 23, "type": "primitive_type", "text": "void", "parent": 22, "children": [], "start_point": {"row": 6, "column": 15}, "end_point": {"row": 6, "column": 19}}, {"id": 24, "type": "return_statement", "text": "return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);", "parent": 15, "children": [25], "start_point": {"row": 8, "column": 3}, "end_point": {"row": 10, "column": 22}}, {"id": 25, "type": "call_expression", "text": "mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0)", "parent": 24, "children": [26, 27], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 10, "column": 21}}, {"id": 26, "type": "identifier", "text": "mmap", "parent": 25, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 14}}, {"id": 27, "type": "argument_list", "text": "(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0)", "parent": 25, "children": [28, 30, 37, 40, 43, 44], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 10, "column": 21}}, {"id": 28, "type": "null", "text": "NULL", "parent": 27, "children": [29], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 19}}, {"id": 29, "type": "NULL", "text": "NULL", "parent": 28, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 19}}, {"id": 30, "type": "binary_expression", "text": "80 * 1000 * 1024", "parent": 27, "children": [31, 35, 36], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 37}}, {"id": 31, "type": "binary_expression", "text": "80 * 1000", "parent": 30, "children": [32, 33, 34], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 30}}, {"id": 32, "type": "number_literal", "text": "80", "parent": 31, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 23}}, {"id": 33, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 25}}, {"id": 34, "type": "number_literal", "text": "1000", "parent": 31, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 30}}, {"id": 35, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 32}}, {"id": 36, "type": "number_literal", "text": "1024", "parent": 30, "children": [], "start_point": {"row": 8, "column": 33}, "end_point": {"row": 8, "column": 37}}, {"id": 37, "type": "binary_expression", "text": "PROT_READ|PROT_WRITE", "parent": 27, "children": [38, 39], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 35}}, {"id": 38, "type": "identifier", "text": "PROT_READ", "parent": 37, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 24}}, {"id": 39, "type": "identifier", "text": "PROT_WRITE", "parent": 37, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 35}}, {"id": 40, "type": "binary_expression", "text": "MAP_PRIVATE|MAP_ANONYMOUS", "parent": 27, "children": [41, 42], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 62}}, {"id": 41, "type": "identifier", "text": "MAP_PRIVATE", "parent": 40, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 48}}, {"id": 42, "type": "identifier", "text": "MAP_ANONYMOUS", "parent": 40, "children": [], "start_point": {"row": 9, "column": 49}, "end_point": {"row": 9, "column": 62}}, {"id": 43, "type": "number_literal", "text": "-1", "parent": 27, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 17}}, {"id": 44, "type": "number_literal", "text": "0", "parent": 27, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 45, "type": "function_definition", "text": "int main()\n{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}", "parent": null, "children": [46, 47], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 3}}, {"id": 47, "type": "function_declarator", "text": "main()", "parent": 45, "children": [48, 49], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 48, "type": "identifier", "text": "main", "parent": 47, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 8}}, {"id": 49, "type": "parameter_list", "text": "()", "parent": 47, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 10}}, {"id": 50, "type": "declaration", "text": "void *m = f();", "parent": 45, "children": [51, 52], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 17}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 7}}, {"id": 52, "type": "init_declarator", "text": "*m = f()", "parent": 50, "children": [53, 56, 57], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 53, "type": "pointer_declarator", "text": "*m", "parent": 52, "children": [54, 55], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 10}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 55, "type": "identifier", "text": "m", "parent": 53, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 10}}, {"id": 56, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 57, "type": "call_expression", "text": "f()", "parent": 52, "children": [58, 59], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 16}}, {"id": 58, "type": "identifier", "text": "f", "parent": 57, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 14}}, {"id": 59, "type": "argument_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 16}}, {"id": 60, "type": "call_expression", "text": "munmap(m, 80 * 1000 * 1024)", "parent": 45, "children": [61, 62], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 30}}, {"id": 61, "type": "identifier", "text": "munmap", "parent": 60, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 9}}, {"id": 62, "type": "argument_list", "text": "(m, 80 * 1000 * 1024)", "parent": 60, "children": [63, 64], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 30}}, {"id": 63, "type": "identifier", "text": "m", "parent": 62, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 11}}, {"id": 64, "type": "binary_expression", "text": "80 * 1000 * 1024", "parent": 62, "children": [65, 69, 70], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 29}}, {"id": 65, "type": "binary_expression", "text": "80 * 1000", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 22}}, {"id": 66, "type": "number_literal", "text": "80", "parent": 65, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 15}}, {"id": 67, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 68, "type": "number_literal", "text": "1000", "parent": 65, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 22}}, {"id": 69, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 24}}, {"id": 70, "type": "number_literal", "text": "1024", "parent": 64, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 29}}, {"id": 71, "type": "return_statement", "text": "return 0;", "parent": 45, "children": [72], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 12}}, {"id": 72, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}]}, "node_categories": {"declarations": {"functions": [15, 19, 45, 47], "variables": [22, 50], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [25, 30, 31, 37, 40, 57, 60, 64, 65], "assignments": [], "loops": [], "conditionals": [20, 26, 38, 39, 41, 42, 48, 55, 58, 61, 63], "returns": [24, 71], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 32, 34, 36, 43, 44, 66, 68, 70, 72], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "*f", "text_snippet": "static void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, M"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "f(void)"}, {"node_id": 45, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <sys/types.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <sys/stat.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <fcntl.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <unistd.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"tests/sys_mman.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#include <sys/types.h>\n#include <sys/stat.h>\n#include <fcntl.h>\n#include <unistd.h>\n#include \"tests/sys_mman.h\"\n\nstatic void *f(void)\n{\n return mmap(NULL, 80 * 1000 * 1024,\n PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,\n -1, 0);\n}\n\nint main()\n{\n void *m = f();\n munmap(m, 80 * 1000 * 1024);\n return 0;\n}\n"}
80,784
c
#include <Windows.h> int main(int argc, char** argv) { for (int i = 0; i < 0xFFFF; ++i) { Beep(100, 1000); Sleep(10000); } return 0; }
12
12
(translation_unit) "#include <Windows.h> \n \nint main(int argc, char** argv) \n{ \n for (int i = 0; i < 0xFFFF; ++i) \n { \n Beep(100, 1000); \n Sleep(10000); \n } \n \n return 0; \n}" (preproc_include) "#include <Windows.h> \n" (#include) "#include" (system_lib_string) "<Windows.h>" (function_definition) "int main(int argc, char** argv) \n{ \n for (int i = 0; i < 0xFFFF; ++i) \n { \n Beep(100, 1000); \n Sleep(10000); \n } \n \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 for (int i = 0; i < 0xFFFF; ++i) \n { \n Beep(100, 1000); \n Sleep(10000); \n } \n \n return 0; \n}" ({) "{" (for_statement) "for (int i = 0; i < 0xFFFF; ++i) \n { \n Beep(100, 1000); \n Sleep(10000); \n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 0xFFFF" (identifier) "i" (<) "<" (number_literal) "0xFFFF" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (compound_statement) "{ \n Beep(100, 1000); \n Sleep(10000); \n }" ({) "{" (expression_statement) "Beep(100, 1000);" (call_expression) "Beep(100, 1000)" (identifier) "Beep" (argument_list) "(100, 1000)" (() "(" (number_literal) "100" (,) "," (number_literal) "1000" ()) ")" (;) ";" (expression_statement) "Sleep(10000);" (call_expression) "Sleep(10000)" (identifier) "Sleep" (argument_list) "(10000)" (() "(" (number_literal) "10000" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
69
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 12.0, "nodes": 43, "errors": 0, "source_hash": "74e459b28ec887b67d2645a1884d179b2f67be3f44fd3f49a275cf9913d61822", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <Windows.h>\r\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": "<Windows.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "function_definition", "text": "int main(int argc, char** argv)\r\n{\r\n\tfor (int i = 0; i < 0xFFFF; ++i)\r\n\t{\r\n\t\tBeep(100, 1000);\r\n\t\tSleep(10000);\r\n\t}\r\n\r\n\treturn 0;\r\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 11, "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(int argc, char** argv)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 31}}, {"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": "(int argc, char** argv)", "parent": 5, "children": [8, 11], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 31}}, {"id": 8, "type": "parameter_declaration", "text": "int argc", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 17}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 12}}, {"id": 10, "type": "identifier", "text": "argc", "parent": 8, "children": [], "start_point": {"row": 2, "column": 13}, "end_point": {"row": 2, "column": 17}}, {"id": 11, "type": "parameter_declaration", "text": "char** argv", "parent": 7, "children": [12, 13], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 30}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 2, "column": 19}, "end_point": {"row": 2, "column": 23}}, {"id": 13, "type": "pointer_declarator", "text": "** argv", "parent": 11, "children": [14, 15], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 30}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 24}}, {"id": 15, "type": "pointer_declarator", "text": "* argv", "parent": 13, "children": [16, 17], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 30}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 25}}, {"id": 17, "type": "identifier", "text": "argv", "parent": 15, "children": [], "start_point": {"row": 2, "column": 26}, "end_point": {"row": 2, "column": 30}}, {"id": 18, "type": "for_statement", "text": "for (int i = 0; i < 0xFFFF; ++i)\r\n\t{\r\n\t\tBeep(100, 1000);\r\n\t\tSleep(10000);\r\n\t}", "parent": 3, "children": [19, 25, 29], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 8, "column": 2}}, {"id": 19, "type": "declaration", "text": "int i = 0;", "parent": 18, "children": [20, 21], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 16}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 9}}, {"id": 21, "type": "init_declarator", "text": "i = 0", "parent": 19, "children": [22, 23, 24], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 15}}, {"id": 22, "type": "identifier", "text": "i", "parent": 21, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 11}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 13}}, {"id": 24, "type": "number_literal", "text": "0", "parent": 21, "children": [], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 15}}, {"id": 25, "type": "binary_expression", "text": "i < 0xFFFF", "parent": 18, "children": [26, 27, 28], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 27}}, {"id": 26, "type": "identifier", "text": "i", "parent": 25, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 18}}, {"id": 27, "type": "<", "text": "<", "parent": 25, "children": [], "start_point": {"row": 4, "column": 19}, "end_point": {"row": 4, "column": 20}}, {"id": 28, "type": "number_literal", "text": "0xFFFF", "parent": 25, "children": [], "start_point": {"row": 4, "column": 21}, "end_point": {"row": 4, "column": 27}}, {"id": 29, "type": "update_expression", "text": "++i", "parent": 18, "children": [30, 31], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 32}}, {"id": 30, "type": "++", "text": "++", "parent": 29, "children": [], "start_point": {"row": 4, "column": 29}, "end_point": {"row": 4, "column": 31}}, {"id": 31, "type": "identifier", "text": "i", "parent": 29, "children": [], "start_point": {"row": 4, "column": 31}, "end_point": {"row": 4, "column": 32}}, {"id": 32, "type": "call_expression", "text": "Beep(100, 1000)", "parent": 18, "children": [33, 34], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 17}}, {"id": 33, "type": "identifier", "text": "Beep", "parent": 32, "children": [], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 6}}, {"id": 34, "type": "argument_list", "text": "(100, 1000)", "parent": 32, "children": [35, 36], "start_point": {"row": 6, "column": 6}, "end_point": {"row": 6, "column": 17}}, {"id": 35, "type": "number_literal", "text": "100", "parent": 34, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 10}}, {"id": 36, "type": "number_literal", "text": "1000", "parent": 34, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 16}}, {"id": 37, "type": "call_expression", "text": "Sleep(10000)", "parent": 18, "children": [38, 39], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 14}}, {"id": 38, "type": "identifier", "text": "Sleep", "parent": 37, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 7}}, {"id": 39, "type": "argument_list", "text": "(10000)", "parent": 37, "children": [40], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 14}}, {"id": 40, "type": "number_literal", "text": "10000", "parent": 39, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 13}}, {"id": 41, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [42], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 41, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 9}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11, 19], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [25, 29, 32, 37], "assignments": [], "loops": [18], "conditionals": [6, 10, 17, 22, 26, 31, 33, 38], "returns": [41], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 24, 28, 35, 36, 40, 42], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char** argv)\r\n{\r\n\tfor (int i = 0; i < 0xFFFF; ++i)\r\n\t{\r\n\t\tBeep(100, 1000);\r\n\t\tSle"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char** argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <Windows.h>\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include <Windows.h>\r\n\r\nint main(int argc, char** argv)\r\n{\r\n\tfor (int i = 0; i < 0xFFFF; ++i)\r\n\t{\r\n\t\tBeep(100, 1000);\r\n\t\tSleep(10000);\r\n\t}\r\n\r\n\treturn 0;\r\n}"}
80,785
c
#ifndef _SCSI_SCSI_TCQ_H #define _SCSI_SCSI_TCQ_H #include <linux/blkdev.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_device.h> #include <scsi/scsi_host.h> #define MSG_SIMPLE_TAG 0x20 #define MSG_HEAD_TAG 0x21 #define MSG_ORDERED_TAG 0x22 #define MSG_ACA_TAG 0x24 /* unsupported */ #define SCSI_NO_TAG (-1) /* identify no tag in use */ #ifdef CONFIG_BLOCK /** * scsi_get_tag_type - get the type of tag the device supports * @sdev: the scsi device * * Notes: * If the drive only supports simple tags, returns MSG_SIMPLE_TAG * if it supports all tag types, returns MSG_ORDERED_TAG. */ static inline int scsi_get_tag_type(struct scsi_device *sdev) { if (!sdev->tagged_supported) return 0; if (sdev->ordered_tags) return MSG_ORDERED_TAG; if (sdev->simple_tags) return MSG_SIMPLE_TAG; return 0; } static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag) { switch (tag) { case MSG_ORDERED_TAG: sdev->ordered_tags = 1; /* fall through */ case MSG_SIMPLE_TAG: sdev->simple_tags = 1; break; case 0: /* fall through */ default: sdev->ordered_tags = 0; sdev->simple_tags = 0; break; } } /** * scsi_activate_tcq - turn on tag command queueing * @SDpnt: device to turn on TCQ for * @depth: queue depth * * Notes: * Eventually, I hope depth would be the maximum depth * the device could cope with and the real queue depth * would be adjustable from 0 to depth. **/ static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth) { if (!sdev->tagged_supported) return; if (!blk_queue_tagged(sdev->request_queue)) blk_queue_init_tags(sdev->request_queue, depth, sdev->host->bqt); scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth); } /** * scsi_deactivate_tcq - turn off tag command queueing * @SDpnt: device to turn off TCQ for **/ static inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth) { if (blk_queue_tagged(sdev->request_queue)) blk_queue_free_tags(sdev->request_queue); scsi_adjust_queue_depth(sdev, 0, depth); } /** * scsi_populate_tag_msg - place a tag message in a buffer * @SCpnt: pointer to the Scsi_Cmnd for the tag * @msg: pointer to the area to place the tag * * Notes: * designed to create the correct type of tag message for the * particular request. Returns the size of the tag message. * May return 0 if TCQ is disabled for this device. **/ static inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg) { struct request *req = cmd->request; if (blk_rq_tagged(req)) { *msg++ = MSG_SIMPLE_TAG; *msg++ = req->tag; return 2; } return 0; } /** * scsi_find_tag - find a tagged command by device * @SDpnt: pointer to the ScSI device * @tag: the tag number * * Notes: * Only works with tags allocated by the generic blk layer. **/ static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag) { struct request *req; if (tag != SCSI_NO_TAG) { req = blk_queue_find_tag(sdev->request_queue, tag); return req ? (struct scsi_cmnd *)req->special : NULL; } /* single command, look in space */ return sdev->current_cmnd; } /** * scsi_init_shared_tag_map - create a shared tag map * @shost: the host to share the tag map among all devices * @depth: the total depth of the map */ static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth) { /* * If the shared tag map isn't already initialized, do it now. * This saves callers from having to check ->bqt when setting up * devices on the shared host (for libata) */ if (!shost->bqt) { shost->bqt = blk_init_tags(depth); if (!shost->bqt) return -ENOMEM; } return 0; } /** * scsi_host_find_tag - find the tagged command by host * @shost: pointer to scsi_host * @tag: tag of the scsi_cmnd * * Notes: * Only works with tags allocated by the generic blk layer. **/ static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost, int tag) { struct request *req; if (tag != SCSI_NO_TAG) { req = blk_map_queue_find_tag(shost->bqt, tag); return req ? (struct scsi_cmnd *)req->special : NULL; } return NULL; } #endif /* CONFIG_BLOCK */ #endif /* _SCSI_SCSI_TCQ_H */
26.6
153
(translation_unit) "#ifndef _SCSI_SCSI_TCQ_H\n#define _SCSI_SCSI_TCQ_H\n\n#include <linux/blkdev.h>\n#include <scsi/scsi_cmnd.h>\n#include <scsi/scsi_device.h>\n#include <scsi/scsi_host.h>\n\n#define MSG_SIMPLE_TAG 0x20\n#define MSG_HEAD_TAG 0x21\n#define MSG_ORDERED_TAG 0x22\n#define MSG_ACA_TAG 0x24 /* unsupported */\n\n#define SCSI_NO_TAG (-1) /* identify no tag in use */\n\n#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev: the scsi device\n *\n * Notes:\n * If the drive only supports simple tags, returns MSG_SIMPLE_TAG\n * if it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n if (!sdev->tagged_supported)\n return 0;\n if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;\n if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;\n return 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt: device to turn on TCQ for\n * @depth: queue depth\n *\n * Notes:\n * Eventually, I hope depth would be the maximum depth\n * the device could cope with and the real queue depth\n * would be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n if (!sdev->tagged_supported)\n return;\n\n if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);\n\n scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt: device to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);\n scsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt: pointer to the Scsi_Cmnd for the tag\n * @msg: pointer to the area to place the tag\n *\n * Notes:\n * designed to create the correct type of tag message for the\n * particular request. Returns the size of the tag message.\n * May return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }\n\n return 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt: pointer to the ScSI device\n * @tag: the tag number\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n\n /* single command, look in space */\n return sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost: the host to share the tag map among all devices\n * @depth: the total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n /*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */\n if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }\n\n return 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost: pointer to scsi_host\n * @tag: tag of the scsi_cmnd\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)\n{\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n return NULL;\n}\n\n#endif /* CONFIG_BLOCK */\n#endif /* _SCSI_SCSI_TCQ_H */\n" (preproc_ifdef) "#ifndef _SCSI_SCSI_TCQ_H\n#define _SCSI_SCSI_TCQ_H\n\n#include <linux/blkdev.h>\n#include <scsi/scsi_cmnd.h>\n#include <scsi/scsi_device.h>\n#include <scsi/scsi_host.h>\n\n#define MSG_SIMPLE_TAG 0x20\n#define MSG_HEAD_TAG 0x21\n#define MSG_ORDERED_TAG 0x22\n#define MSG_ACA_TAG 0x24 /* unsupported */\n\n#define SCSI_NO_TAG (-1) /* identify no tag in use */\n\n#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev: the scsi device\n *\n * Notes:\n * If the drive only supports simple tags, returns MSG_SIMPLE_TAG\n * if it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n if (!sdev->tagged_supported)\n return 0;\n if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;\n if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;\n return 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt: device to turn on TCQ for\n * @depth: queue depth\n *\n * Notes:\n * Eventually, I hope depth would be the maximum depth\n * the device could cope with and the real queue depth\n * would be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n if (!sdev->tagged_supported)\n return;\n\n if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);\n\n scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt: device to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);\n scsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt: pointer to the Scsi_Cmnd for the tag\n * @msg: pointer to the area to place the tag\n *\n * Notes:\n * designed to create the correct type of tag message for the\n * particular request. Returns the size of the tag message.\n * May return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }\n\n return 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt: pointer to the ScSI device\n * @tag: the tag number\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n\n /* single command, look in space */\n return sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost: the host to share the tag map among all devices\n * @depth: the total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n /*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */\n if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }\n\n return 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost: pointer to scsi_host\n * @tag: tag of the scsi_cmnd\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)\n{\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n return NULL;\n}\n\n#endif /* CONFIG_BLOCK */\n#endif" (#ifndef) "#ifndef" (identifier) "_SCSI_SCSI_TCQ_H" (preproc_def) "#define _SCSI_SCSI_TCQ_H\n" (#define) "#define" (identifier) "_SCSI_SCSI_TCQ_H" (preproc_include) "#include <linux/blkdev.h>\n" (#include) "#include" (system_lib_string) "<linux/blkdev.h>" (preproc_include) "#include <scsi/scsi_cmnd.h>\n" (#include) "#include" (system_lib_string) "<scsi/scsi_cmnd.h>" (preproc_include) "#include <scsi/scsi_device.h>\n" (#include) "#include" (system_lib_string) "<scsi/scsi_device.h>" (preproc_include) "#include <scsi/scsi_host.h>\n" (#include) "#include" (system_lib_string) "<scsi/scsi_host.h>" (preproc_def) "#define MSG_SIMPLE_TAG 0x20\n" (#define) "#define" (identifier) "MSG_SIMPLE_TAG" (preproc_arg) "0x20" (preproc_def) "#define MSG_HEAD_TAG 0x21\n" (#define) "#define" (identifier) "MSG_HEAD_TAG" (preproc_arg) "0x21" (preproc_def) "#define MSG_ORDERED_TAG 0x22\n" (#define) "#define" (identifier) "MSG_ORDERED_TAG" (preproc_arg) "0x22" (preproc_def) "#define MSG_ACA_TAG 0x24 /* unsupported */\n" (#define) "#define" (identifier) "MSG_ACA_TAG" (preproc_arg) "0x24 " (comment) "/* unsupported */" (preproc_def) "#define SCSI_NO_TAG (-1) /* identify no tag in use */\n" (#define) "#define" (identifier) "SCSI_NO_TAG" (preproc_arg) "(-1) " (comment) "/* identify no tag in use */" (preproc_ifdef) "#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev: the scsi device\n *\n * Notes:\n * If the drive only supports simple tags, returns MSG_SIMPLE_TAG\n * if it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n if (!sdev->tagged_supported)\n return 0;\n if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;\n if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;\n return 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt: device to turn on TCQ for\n * @depth: queue depth\n *\n * Notes:\n * Eventually, I hope depth would be the maximum depth\n * the device could cope with and the real queue depth\n * would be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n if (!sdev->tagged_supported)\n return;\n\n if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);\n\n scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt: device to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);\n scsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt: pointer to the Scsi_Cmnd for the tag\n * @msg: pointer to the area to place the tag\n *\n * Notes:\n * designed to create the correct type of tag message for the\n * particular request. Returns the size of the tag message.\n * May return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }\n\n return 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt: pointer to the ScSI device\n * @tag: the tag number\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n\n /* single command, look in space */\n return sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost: the host to share the tag map among all devices\n * @depth: the total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n /*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */\n if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }\n\n return 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost: pointer to scsi_host\n * @tag: tag of the scsi_cmnd\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)\n{\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n return NULL;\n}\n\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_BLOCK" (comment) "/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev: the scsi device\n *\n * Notes:\n * If the drive only supports simple tags, returns MSG_SIMPLE_TAG\n * if it supports all tag types, returns MSG_ORDERED_TAG.\n */" (function_definition) "static inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n if (!sdev->tagged_supported)\n return 0;\n if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;\n if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "scsi_get_tag_type(struct scsi_device *sdev)" (identifier) "scsi_get_tag_type" (parameter_list) "(struct scsi_device *sdev)" (() "(" (parameter_declaration) "struct scsi_device *sdev" (struct_specifier) "struct scsi_device" (struct) "struct" (type_identifier) "scsi_device" (pointer_declarator) "*sdev" (*) "*" (identifier) "sdev" ()) ")" (compound_statement) "{\n if (!sdev->tagged_supported)\n return 0;\n if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;\n if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;\n return 0;\n}" ({) "{" (if_statement) "if (!sdev->tagged_supported)\n return 0;" (if) "if" (parenthesized_expression) "(!sdev->tagged_supported)" (() "(" (unary_expression) "!sdev->tagged_supported" (!) "!" (field_expression) "sdev->tagged_supported" (identifier) "sdev" (->) "->" (field_identifier) "tagged_supported" ()) ")" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (if_statement) "if (sdev->ordered_tags)\n return MSG_ORDERED_TAG;" (if) "if" (parenthesized_expression) "(sdev->ordered_tags)" (() "(" (field_expression) "sdev->ordered_tags" (identifier) "sdev" (->) "->" (field_identifier) "ordered_tags" ()) ")" (return_statement) "return MSG_ORDERED_TAG;" (return) "return" (identifier) "MSG_ORDERED_TAG" (;) ";" (if_statement) "if (sdev->simple_tags)\n return MSG_SIMPLE_TAG;" (if) "if" (parenthesized_expression) "(sdev->simple_tags)" (() "(" (field_expression) "sdev->simple_tags" (identifier) "sdev" (->) "->" (field_identifier) "simple_tags" ()) ")" (return_statement) "return MSG_SIMPLE_TAG;" (return) "return" (identifier) "MSG_SIMPLE_TAG" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "scsi_set_tag_type(struct scsi_device *sdev, int tag)" (identifier) "scsi_set_tag_type" (parameter_list) "(struct scsi_device *sdev, int tag)" (() "(" (parameter_declaration) "struct scsi_device *sdev" (struct_specifier) "struct scsi_device" (struct) "struct" (type_identifier) "scsi_device" (pointer_declarator) "*sdev" (*) "*" (identifier) "sdev" (,) "," (parameter_declaration) "int tag" (primitive_type) "int" (identifier) "tag" ()) ")" (compound_statement) "{\n switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }\n}" ({) "{" (switch_statement) "switch (tag) {\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }" (switch) "switch" (parenthesized_expression) "(tag)" (() "(" (identifier) "tag" ()) ")" (compound_statement) "{\n case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;\n /* fall through */\n case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;\n case 0:\n /* fall through */\n default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;\n }" ({) "{" (case_statement) "case MSG_ORDERED_TAG:\n sdev->ordered_tags = 1;" (case) "case" (identifier) "MSG_ORDERED_TAG" (:) ":" (expression_statement) "sdev->ordered_tags = 1;" (assignment_expression) "sdev->ordered_tags = 1" (field_expression) "sdev->ordered_tags" (identifier) "sdev" (->) "->" (field_identifier) "ordered_tags" (=) "=" (number_literal) "1" (;) ";" (comment) "/* fall through */" (case_statement) "case MSG_SIMPLE_TAG:\n sdev->simple_tags = 1;\n break;" (case) "case" (identifier) "MSG_SIMPLE_TAG" (:) ":" (expression_statement) "sdev->simple_tags = 1;" (assignment_expression) "sdev->simple_tags = 1" (field_expression) "sdev->simple_tags" (identifier) "sdev" (->) "->" (field_identifier) "simple_tags" (=) "=" (number_literal) "1" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 0:" (case) "case" (number_literal) "0" (:) ":" (comment) "/* fall through */" (case_statement) "default:\n sdev->ordered_tags = 0;\n sdev->simple_tags = 0;\n break;" (default) "default" (:) ":" (expression_statement) "sdev->ordered_tags = 0;" (assignment_expression) "sdev->ordered_tags = 0" (field_expression) "sdev->ordered_tags" (identifier) "sdev" (->) "->" (field_identifier) "ordered_tags" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "sdev->simple_tags = 0;" (assignment_expression) "sdev->simple_tags = 0" (field_expression) "sdev->simple_tags" (identifier) "sdev" (->) "->" (field_identifier) "simple_tags" (=) "=" (number_literal) "0" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (}) "}" (comment) "/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt: device to turn on TCQ for\n * @depth: queue depth\n *\n * Notes:\n * Eventually, I hope depth would be the maximum depth\n * the device could cope with and the real queue depth\n * would be adjustable from 0 to depth.\n **/" (function_definition) "static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n if (!sdev->tagged_supported)\n return;\n\n if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);\n\n scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "scsi_activate_tcq(struct scsi_device *sdev, int depth)" (identifier) "scsi_activate_tcq" (parameter_list) "(struct scsi_device *sdev, int depth)" (() "(" (parameter_declaration) "struct scsi_device *sdev" (struct_specifier) "struct scsi_device" (struct) "struct" (type_identifier) "scsi_device" (pointer_declarator) "*sdev" (*) "*" (identifier) "sdev" (,) "," (parameter_declaration) "int depth" (primitive_type) "int" (identifier) "depth" ()) ")" (compound_statement) "{\n if (!sdev->tagged_supported)\n return;\n\n if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);\n\n scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}" ({) "{" (if_statement) "if (!sdev->tagged_supported)\n return;" (if) "if" (parenthesized_expression) "(!sdev->tagged_supported)" (() "(" (unary_expression) "!sdev->tagged_supported" (!) "!" (field_expression) "sdev->tagged_supported" (identifier) "sdev" (->) "->" (field_identifier) "tagged_supported" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (if_statement) "if (!blk_queue_tagged(sdev->request_queue))\n blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);" (if) "if" (parenthesized_expression) "(!blk_queue_tagged(sdev->request_queue))" (() "(" (unary_expression) "!blk_queue_tagged(sdev->request_queue)" (!) "!" (call_expression) "blk_queue_tagged(sdev->request_queue)" (identifier) "blk_queue_tagged" (argument_list) "(sdev->request_queue)" (() "(" (field_expression) "sdev->request_queue" (identifier) "sdev" (->) "->" (field_identifier) "request_queue" ()) ")" ()) ")" (expression_statement) "blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt);" (call_expression) "blk_queue_init_tags(sdev->request_queue, depth,\n sdev->host->bqt)" (identifier) "blk_queue_init_tags" (argument_list) "(sdev->request_queue, depth,\n sdev->host->bqt)" (() "(" (field_expression) "sdev->request_queue" (identifier) "sdev" (->) "->" (field_identifier) "request_queue" (,) "," (identifier) "depth" (,) "," (field_expression) "sdev->host->bqt" (field_expression) "sdev->host" (identifier) "sdev" (->) "->" (field_identifier) "host" (->) "->" (field_identifier) "bqt" ()) ")" (;) ";" (expression_statement) "scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);" (call_expression) "scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth)" (identifier) "scsi_adjust_queue_depth" (argument_list) "(sdev, scsi_get_tag_type(sdev), depth)" (() "(" (identifier) "sdev" (,) "," (call_expression) "scsi_get_tag_type(sdev)" (identifier) "scsi_get_tag_type" (argument_list) "(sdev)" (() "(" (identifier) "sdev" ()) ")" (,) "," (identifier) "depth" ()) ")" (;) ";" (}) "}" (comment) "/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt: device to turn off TCQ for\n **/" (function_definition) "static inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);\n scsi_adjust_queue_depth(sdev, 0, depth);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "scsi_deactivate_tcq(struct scsi_device *sdev, int depth)" (identifier) "scsi_deactivate_tcq" (parameter_list) "(struct scsi_device *sdev, int depth)" (() "(" (parameter_declaration) "struct scsi_device *sdev" (struct_specifier) "struct scsi_device" (struct) "struct" (type_identifier) "scsi_device" (pointer_declarator) "*sdev" (*) "*" (identifier) "sdev" (,) "," (parameter_declaration) "int depth" (primitive_type) "int" (identifier) "depth" ()) ")" (compound_statement) "{\n if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);\n scsi_adjust_queue_depth(sdev, 0, depth);\n}" ({) "{" (if_statement) "if (blk_queue_tagged(sdev->request_queue))\n blk_queue_free_tags(sdev->request_queue);" (if) "if" (parenthesized_expression) "(blk_queue_tagged(sdev->request_queue))" (() "(" (call_expression) "blk_queue_tagged(sdev->request_queue)" (identifier) "blk_queue_tagged" (argument_list) "(sdev->request_queue)" (() "(" (field_expression) "sdev->request_queue" (identifier) "sdev" (->) "->" (field_identifier) "request_queue" ()) ")" ()) ")" (expression_statement) "blk_queue_free_tags(sdev->request_queue);" (call_expression) "blk_queue_free_tags(sdev->request_queue)" (identifier) "blk_queue_free_tags" (argument_list) "(sdev->request_queue)" (() "(" (field_expression) "sdev->request_queue" (identifier) "sdev" (->) "->" (field_identifier) "request_queue" ()) ")" (;) ";" (expression_statement) "scsi_adjust_queue_depth(sdev, 0, depth);" (call_expression) "scsi_adjust_queue_depth(sdev, 0, depth)" (identifier) "scsi_adjust_queue_depth" (argument_list) "(sdev, 0, depth)" (() "(" (identifier) "sdev" (,) "," (number_literal) "0" (,) "," (identifier) "depth" ()) ")" (;) ";" (}) "}" (comment) "/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt: pointer to the Scsi_Cmnd for the tag\n * @msg: pointer to the area to place the tag\n *\n * Notes:\n * designed to create the correct type of tag message for the\n * particular request. Returns the size of the tag message.\n * May return 0 if TCQ is disabled for this device.\n **/" (function_definition) "static inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)" (identifier) "scsi_populate_tag_msg" (parameter_list) "(struct scsi_cmnd *cmd, char *msg)" (() "(" (parameter_declaration) "struct scsi_cmnd *cmd" (struct_specifier) "struct scsi_cmnd" (struct) "struct" (type_identifier) "scsi_cmnd" (pointer_declarator) "*cmd" (*) "*" (identifier) "cmd" (,) "," (parameter_declaration) "char *msg" (primitive_type) "char" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" ()) ")" (compound_statement) "{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }\n\n return 0;\n}" ({) "{" (declaration) "struct request *req = cmd->request;" (struct_specifier) "struct request" (struct) "struct" (type_identifier) "request" (init_declarator) "*req = cmd->request" (pointer_declarator) "*req" (*) "*" (identifier) "req" (=) "=" (field_expression) "cmd->request" (identifier) "cmd" (->) "->" (field_identifier) "request" (;) ";" (if_statement) "if (blk_rq_tagged(req)) {\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }" (if) "if" (parenthesized_expression) "(blk_rq_tagged(req))" (() "(" (call_expression) "blk_rq_tagged(req)" (identifier) "blk_rq_tagged" (argument_list) "(req)" (() "(" (identifier) "req" ()) ")" ()) ")" (compound_statement) "{\n *msg++ = MSG_SIMPLE_TAG;\n *msg++ = req->tag;\n return 2;\n }" ({) "{" (expression_statement) "*msg++ = MSG_SIMPLE_TAG;" (assignment_expression) "*msg++ = MSG_SIMPLE_TAG" (pointer_expression) "*msg++" (*) "*" (update_expression) "msg++" (identifier) "msg" (++) "++" (=) "=" (identifier) "MSG_SIMPLE_TAG" (;) ";" (expression_statement) "*msg++ = req->tag;" (assignment_expression) "*msg++ = req->tag" (pointer_expression) "*msg++" (*) "*" (update_expression) "msg++" (identifier) "msg" (++) "++" (=) "=" (field_expression) "req->tag" (identifier) "req" (->) "->" (field_identifier) "tag" (;) ";" (return_statement) "return 2;" (return) "return" (number_literal) "2" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt: pointer to the ScSI device\n * @tag: the tag number\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/" (function_definition) "static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n\n /* single command, look in space */\n return sdev->current_cmnd;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (struct_specifier) "struct scsi_cmnd" (struct) "struct" (type_identifier) "scsi_cmnd" (pointer_declarator) "*scsi_find_tag(struct scsi_device *sdev, int tag)" (*) "*" (function_declarator) "scsi_find_tag(struct scsi_device *sdev, int tag)" (identifier) "scsi_find_tag" (parameter_list) "(struct scsi_device *sdev, int tag)" (() "(" (parameter_declaration) "struct scsi_device *sdev" (struct_specifier) "struct scsi_device" (struct) "struct" (type_identifier) "scsi_device" (pointer_declarator) "*sdev" (*) "*" (identifier) "sdev" (,) "," (parameter_declaration) "int tag" (primitive_type) "int" (identifier) "tag" ()) ")" (compound_statement) "{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n\n /* single command, look in space */\n return sdev->current_cmnd;\n}" ({) "{" (declaration) "struct request *req;" (struct_specifier) "struct request" (struct) "struct" (type_identifier) "request" (pointer_declarator) "*req" (*) "*" (identifier) "req" (;) ";" (if_statement) "if (tag != SCSI_NO_TAG) {\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }" (if) "if" (parenthesized_expression) "(tag != SCSI_NO_TAG)" (() "(" (binary_expression) "tag != SCSI_NO_TAG" (identifier) "tag" (!=) "!=" (identifier) "SCSI_NO_TAG" ()) ")" (compound_statement) "{\n req = blk_queue_find_tag(sdev->request_queue, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }" ({) "{" (expression_statement) "req = blk_queue_find_tag(sdev->request_queue, tag);" (assignment_expression) "req = blk_queue_find_tag(sdev->request_queue, tag)" (identifier) "req" (=) "=" (call_expression) "blk_queue_find_tag(sdev->request_queue, tag)" (identifier) "blk_queue_find_tag" (argument_list) "(sdev->request_queue, tag)" (() "(" (field_expression) "sdev->request_queue" (identifier) "sdev" (->) "->" (field_identifier) "request_queue" (,) "," (identifier) "tag" ()) ")" (;) ";" (return_statement) "return req ? (struct scsi_cmnd *)req->special : NULL;" (return) "return" (conditional_expression) "req ? (struct scsi_cmnd *)req->special : NULL" (identifier) "req" (?) "?" (cast_expression) "(struct scsi_cmnd *)req->special" (() "(" (type_descriptor) "struct scsi_cmnd *" (struct_specifier) "struct scsi_cmnd" (struct) "struct" (type_identifier) "scsi_cmnd" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "req->special" (identifier) "req" (->) "->" (field_identifier) "special" (:) ":" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (comment) "/* single command, look in space */" (return_statement) "return sdev->current_cmnd;" (return) "return" (field_expression) "sdev->current_cmnd" (identifier) "sdev" (->) "->" (field_identifier) "current_cmnd" (;) ";" (}) "}" (comment) "/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost: the host to share the tag map among all devices\n * @depth: the total depth of the map\n */" (function_definition) "static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n /*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */\n if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)" (identifier) "scsi_init_shared_tag_map" (parameter_list) "(struct Scsi_Host *shost, int depth)" (() "(" (parameter_declaration) "struct Scsi_Host *shost" (struct_specifier) "struct Scsi_Host" (struct) "struct" (type_identifier) "Scsi_Host" (pointer_declarator) "*shost" (*) "*" (identifier) "shost" (,) "," (parameter_declaration) "int depth" (primitive_type) "int" (identifier) "depth" ()) ")" (compound_statement) "{\n /*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */\n if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }\n\n return 0;\n}" ({) "{" (comment) "/*\n * If the shared tag map isn't already initialized, do it now.\n * This saves callers from having to check ->bqt when setting up\n * devices on the shared host (for libata)\n */" (if_statement) "if (!shost->bqt) {\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }" (if) "if" (parenthesized_expression) "(!shost->bqt)" (() "(" (unary_expression) "!shost->bqt" (!) "!" (field_expression) "shost->bqt" (identifier) "shost" (->) "->" (field_identifier) "bqt" ()) ")" (compound_statement) "{\n shost->bqt = blk_init_tags(depth);\n if (!shost->bqt)\n return -ENOMEM;\n }" ({) "{" (expression_statement) "shost->bqt = blk_init_tags(depth);" (assignment_expression) "shost->bqt = blk_init_tags(depth)" (field_expression) "shost->bqt" (identifier) "shost" (->) "->" (field_identifier) "bqt" (=) "=" (call_expression) "blk_init_tags(depth)" (identifier) "blk_init_tags" (argument_list) "(depth)" (() "(" (identifier) "depth" ()) ")" (;) ";" (if_statement) "if (!shost->bqt)\n return -ENOMEM;" (if) "if" (parenthesized_expression) "(!shost->bqt)" (() "(" (unary_expression) "!shost->bqt" (!) "!" (field_expression) "shost->bqt" (identifier) "shost" (->) "->" (field_identifier) "bqt" ()) ")" (return_statement) "return -ENOMEM;" (return) "return" (unary_expression) "-ENOMEM" (-) "-" (identifier) "ENOMEM" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (comment) "/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost: pointer to scsi_host\n * @tag: tag of the scsi_cmnd\n *\n * Notes:\n * Only works with tags allocated by the generic blk layer.\n **/" (function_definition) "static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)\n{\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n return NULL;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (struct_specifier) "struct scsi_cmnd" (struct) "struct" (type_identifier) "scsi_cmnd" (pointer_declarator) "*scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)" (*) "*" (function_declarator) "scsi_host_find_tag(struct Scsi_Host *shost,\n int tag)" (identifier) "scsi_host_find_tag" (parameter_list) "(struct Scsi_Host *shost,\n int tag)" (() "(" (parameter_declaration) "struct Scsi_Host *shost" (struct_specifier) "struct Scsi_Host" (struct) "struct" (type_identifier) "Scsi_Host" (pointer_declarator) "*shost" (*) "*" (identifier) "shost" (,) "," (parameter_declaration) "int tag" (primitive_type) "int" (identifier) "tag" ()) ")" (compound_statement) "{\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }\n return NULL;\n}" ({) "{" (declaration) "struct request *req;" (struct_specifier) "struct request" (struct) "struct" (type_identifier) "request" (pointer_declarator) "*req" (*) "*" (identifier) "req" (;) ";" (if_statement) "if (tag != SCSI_NO_TAG) {\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }" (if) "if" (parenthesized_expression) "(tag != SCSI_NO_TAG)" (() "(" (binary_expression) "tag != SCSI_NO_TAG" (identifier) "tag" (!=) "!=" (identifier) "SCSI_NO_TAG" ()) ")" (compound_statement) "{\n req = blk_map_queue_find_tag(shost->bqt, tag);\n return req ? (struct scsi_cmnd *)req->special : NULL;\n }" ({) "{" (expression_statement) "req = blk_map_queue_find_tag(shost->bqt, tag);" (assignment_expression) "req = blk_map_queue_find_tag(shost->bqt, tag)" (identifier) "req" (=) "=" (call_expression) "blk_map_queue_find_tag(shost->bqt, tag)" (identifier) "blk_map_queue_find_tag" (argument_list) "(shost->bqt, tag)" (() "(" (field_expression) "shost->bqt" (identifier) "shost" (->) "->" (field_identifier) "bqt" (,) "," (identifier) "tag" ()) ")" (;) ";" (return_statement) "return req ? (struct scsi_cmnd *)req->special : NULL;" (return) "return" (conditional_expression) "req ? (struct scsi_cmnd *)req->special : NULL" (identifier) "req" (?) "?" (cast_expression) "(struct scsi_cmnd *)req->special" (() "(" (type_descriptor) "struct scsi_cmnd *" (struct_specifier) "struct scsi_cmnd" (struct) "struct" (type_identifier) "scsi_cmnd" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "req->special" (identifier) "req" (->) "->" (field_identifier) "special" (:) ":" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* CONFIG_BLOCK */" (#endif) "#endif" (comment) "/* _SCSI_SCSI_TCQ_H */"
717
0
{"language": "c", "success": true, "metadata": {"lines": 153, "avg_line_length": 26.6, "nodes": 467, "errors": 0, "source_hash": "9e6e209fa19c28ba4e4af3d0e7080bda6108e627c5eb73758600452490fd4911", "categorized_nodes": 340}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _SCSI_SCSI_TCQ_H\n#define _SCSI_SCSI_TCQ_H\n\n#include <linux/blkdev.h>\n#include <scsi/scsi_cmnd.h>\n#include <scsi/scsi_device.h>\n#include <scsi/scsi_host.h>\n\n#define MSG_SIMPLE_TAG\t0x20\n#define MSG_HEAD_TAG\t0x21\n#define MSG_ORDERED_TAG\t0x22\n#define MSG_ACA_TAG\t0x24\t/* unsupported */\n\n#define SCSI_NO_TAG\t(-1) /* identify no tag in use */\n\n#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev:\tthe scsi device\n *\n * Notes:\n *\tIf the drive only supports simple tags, returns MSG_SIMPLE_TAG\n *\tif it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn 0;\n\tif (sdev->ordered_tags)\n\t\treturn MSG_ORDERED_TAG;\n\tif (sdev->simple_tags)\n\t\treturn MSG_SIMPLE_TAG;\n\treturn 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n\tswitch (tag) {\n\tcase MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;\n\t\t/* fall through */\n\tcase MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;\n\tcase 0:\n\t\t/* fall through */\n\tdefault:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;\n\t}\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt:\tdevice to turn on TCQ for\n * @depth:\tqueue depth\n *\n * Notes:\n *\tEventually, I hope depth would be the maximum depth\n *\tthe device could cope with and the real queue depth\n *\twould be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn;\n\n\tif (!blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt);\n\n\tscsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt:\tdevice to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_free_tags(sdev->request_queue);\n\tscsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt:\tpointer to the Scsi_Cmnd for the tag\n * @msg:\tpointer to the area to place the tag\n *\n * Notes:\n *\tdesigned to create the correct type of tag message for the\n *\tparticular request. Returns the size of the tag message.\n *\tMay return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n\t\t*msg++ = MSG_SIMPLE_TAG;\n \t*msg++ = req->tag;\n \treturn 2;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt:\tpointer to the ScSI device\n * @tag:\tthe tag number\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n \treq = blk_queue_find_tag(sdev->request_queue, tag);\n\t return req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\n\t/* single command, look in space */\n\treturn sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost:\tthe host to share the tag map among all devices\n * @depth:\tthe total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n\t/*\n\t * If the shared tag map isn't already initialized, do it now.\n\t * This saves callers from having to check ->bqt when setting up\n\t * devices on the shared host (for libata)\n\t */\n\tif (!shost->bqt) {\n\t\tshost->bqt = blk_init_tags(depth);\n\t\tif (!shost->bqt)\n\t\t\treturn -ENOMEM;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost:\tpointer to scsi_host\n * @tag:\ttag of the scsi_cmnd\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)\n{\n\tstruct request *req;\n\n\tif (tag != SCSI_NO_TAG) {\n\t\treq = blk_map_queue_find_tag(shost->bqt, tag);\n\t\treturn req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\treturn NULL;\n}\n\n#endif /* CONFIG_BLOCK */\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 22, 26, 30, 34, 38, 466], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 173, "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": "_SCSI_SCSI_TCQ_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define _SCSI_SCSI_TCQ_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": "_SCSI_SCSI_TCQ_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/blkdev.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": "<linux/blkdev.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 25}}, {"id": 9, "type": "preproc_include", "text": "#include <scsi/scsi_cmnd.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": "<scsi/scsi_cmnd.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <scsi/scsi_device.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": "<scsi/scsi_device.h>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 29}}, {"id": 15, "type": "preproc_include", "text": "#include <scsi/scsi_host.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<scsi/scsi_host.h>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 27}}, {"id": 18, "type": "preproc_def", "text": "#define MSG_SIMPLE_TAG\t0x20\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 20, "type": "identifier", "text": "MSG_SIMPLE_TAG", "parent": 18, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 21, "type": "preproc_arg", "text": "0x20", "parent": 18, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 27}}, {"id": 22, "type": "preproc_def", "text": "#define MSG_HEAD_TAG\t0x21\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 24, "type": "identifier", "text": "MSG_HEAD_TAG", "parent": 22, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 20}}, {"id": 25, "type": "preproc_arg", "text": "0x21", "parent": 22, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 25}}, {"id": 26, "type": "preproc_def", "text": "#define MSG_ORDERED_TAG\t0x22\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 28, "type": "identifier", "text": "MSG_ORDERED_TAG", "parent": 26, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 23}}, {"id": 29, "type": "preproc_arg", "text": "0x22", "parent": 26, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 28}}, {"id": 30, "type": "preproc_def", "text": "#define MSG_ACA_TAG\t0x24\t/* unsupported */\n", "parent": 0, "children": [31, 32, 33], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 32, "type": "identifier", "text": "MSG_ACA_TAG", "parent": 30, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 19}}, {"id": 33, "type": "preproc_arg", "text": "0x24\t", "parent": 30, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 25}}, {"id": 34, "type": "preproc_def", "text": "#define SCSI_NO_TAG\t(-1) /* identify no tag in use */\n", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 36, "type": "identifier", "text": "SCSI_NO_TAG", "parent": 34, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 19}}, {"id": 37, "type": "preproc_arg", "text": "(-1) ", "parent": 34, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 28}}, {"id": 38, "type": "preproc_ifdef", "text": "#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev:\tthe scsi device\n *\n * Notes:\n *\tIf the drive only supports simple tags, returns MSG_SIMPLE_TAG\n *\tif it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn 0;\n\tif (sdev->ordered_tags)\n\t\treturn MSG_ORDERED_TAG;\n\tif (sdev->simple_tags)\n\t\treturn MSG_SIMPLE_TAG;\n\treturn 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n\tswitch (tag) {\n\tcase MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;\n\t\t/* fall through */\n\tcase MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;\n\tcase 0:\n\t\t/* fall through */\n\tdefault:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;\n\t}\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt:\tdevice to turn on TCQ for\n * @depth:\tqueue depth\n *\n * Notes:\n *\tEventually, I hope depth would be the maximum depth\n *\tthe device could cope with and the real queue depth\n *\twould be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn;\n\n\tif (!blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt);\n\n\tscsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt:\tdevice to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_free_tags(sdev->request_queue);\n\tscsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt:\tpointer to the Scsi_Cmnd for the tag\n * @msg:\tpointer to the area to place the tag\n *\n * Notes:\n *\tdesigned to create the correct type of tag message for the\n *\tparticular request. Returns the size of the tag message.\n *\tMay return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n\t\t*msg++ = MSG_SIMPLE_TAG;\n \t*msg++ = req->tag;\n \treturn 2;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt:\tpointer to the ScSI device\n * @tag:\tthe tag number\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n \treq = blk_queue_find_tag(sdev->request_queue, tag);\n\t return req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\n\t/* single command, look in space */\n\treturn sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost:\tthe host to share the tag map among all devices\n * @depth:\tthe total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n\t/*\n\t * If the shared tag map isn't already initialized, do it now.\n\t * This saves callers from having to check ->bqt when setting up\n\t * devices on the shared host (for libata)\n\t */\n\tif (!shost->bqt) {\n\t\tshost->bqt = blk_init_tags(depth);\n\t\tif (!shost->bqt)\n\t\t\treturn -ENOMEM;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost:\tpointer to scsi_host\n * @tag:\ttag of the scsi_cmnd\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)\n{\n\tstruct request *req;\n\n\tif (tag != SCSI_NO_TAG) {\n\t\treq = blk_map_queue_find_tag(shost->bqt, tag);\n\t\treturn req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\treturn NULL;\n}\n\n#endif", "parent": 0, "children": [39, 40, 41, 80, 140, 196, 233, 292, 356, 402, 465], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 172, "column": 6}}, {"id": 39, "type": "#ifdef", "text": "#ifdef", "parent": 38, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}, {"id": 40, "type": "identifier", "text": "CONFIG_BLOCK", "parent": 38, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 19}}, {"id": 41, "type": "function_definition", "text": "static inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn 0;\n\tif (sdev->ordered_tags)\n\t\treturn MSG_ORDERED_TAG;\n\tif (sdev->simple_tags)\n\t\treturn MSG_SIMPLE_TAG;\n\treturn 0;\n}", "parent": 38, "children": [42, 44, 45], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 42, "type": "storage_class_specifier", "text": "inline", "parent": 41, "children": [43], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 13}}, {"id": 43, "type": "inline", "text": "inline", "parent": 42, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 13}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 17}}, {"id": 45, "type": "function_declarator", "text": "scsi_get_tag_type(struct scsi_device *sdev)", "parent": 41, "children": [46, 47], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 61}}, {"id": 46, "type": "identifier", "text": "scsi_get_tag_type", "parent": 45, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 35}}, {"id": 47, "type": "parameter_list", "text": "(struct scsi_device *sdev)", "parent": 45, "children": [48], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 61}}, {"id": 48, "type": "parameter_declaration", "text": "struct scsi_device *sdev", "parent": 47, "children": [49, 52], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 60}}, {"id": 49, "type": "struct_specifier", "text": "struct scsi_device", "parent": 48, "children": [50, 51], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 54}}, {"id": 50, "type": "struct", "text": "struct", "parent": 49, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 42}}, {"id": 51, "type": "type_identifier", "text": "scsi_device", "parent": 49, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 54}}, {"id": 52, "type": "pointer_declarator", "text": "*sdev", "parent": 48, "children": [53, 54], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 60}}, {"id": 53, "type": "*", "text": "*", "parent": 52, "children": [], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 56}}, {"id": 54, "type": "identifier", "text": "sdev", "parent": 52, "children": [], "start_point": {"row": 25, "column": 56}, "end_point": {"row": 25, "column": 60}}, {"id": 55, "type": "if_statement", "text": "if (!sdev->tagged_supported)\n\t\treturn 0;", "parent": 41, "children": [56, 62], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 28, "column": 11}}, {"id": 56, "type": "parenthesized_expression", "text": "(!sdev->tagged_supported)", "parent": 55, "children": [57], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 29}}, {"id": 57, "type": "unary_expression", "text": "!sdev->tagged_supported", "parent": 56, "children": [58, 59], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 28}}, {"id": 58, "type": "!", "text": "!", "parent": 57, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 6}}, {"id": 59, "type": "field_expression", "text": "sdev->tagged_supported", "parent": 57, "children": [60, 61], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 28}}, {"id": 60, "type": "identifier", "text": "sdev", "parent": 59, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 10}}, {"id": 61, "type": "field_identifier", "text": "tagged_supported", "parent": 59, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 28}}, {"id": 62, "type": "return_statement", "text": "return 0;", "parent": 55, "children": [63], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 11}}, {"id": 63, "type": "number_literal", "text": "0", "parent": 62, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 64, "type": "if_statement", "text": "if (sdev->ordered_tags)\n\t\treturn MSG_ORDERED_TAG;", "parent": 41, "children": [65, 69], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 30, "column": 25}}, {"id": 65, "type": "parenthesized_expression", "text": "(sdev->ordered_tags)", "parent": 64, "children": [66], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 24}}, {"id": 66, "type": "field_expression", "text": "sdev->ordered_tags", "parent": 65, "children": [67, 68], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 23}}, {"id": 67, "type": "identifier", "text": "sdev", "parent": 66, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 9}}, {"id": 68, "type": "field_identifier", "text": "ordered_tags", "parent": 66, "children": [], "start_point": {"row": 29, "column": 11}, "end_point": {"row": 29, "column": 23}}, {"id": 69, "type": "return_statement", "text": "return MSG_ORDERED_TAG;", "parent": 64, "children": [70], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 25}}, {"id": 70, "type": "identifier", "text": "MSG_ORDERED_TAG", "parent": 69, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 24}}, {"id": 71, "type": "if_statement", "text": "if (sdev->simple_tags)\n\t\treturn MSG_SIMPLE_TAG;", "parent": 41, "children": [72, 76], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 32, "column": 24}}, {"id": 72, "type": "parenthesized_expression", "text": "(sdev->simple_tags)", "parent": 71, "children": [73], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 23}}, {"id": 73, "type": "field_expression", "text": "sdev->simple_tags", "parent": 72, "children": [74, 75], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 22}}, {"id": 74, "type": "identifier", "text": "sdev", "parent": 73, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 9}}, {"id": 75, "type": "field_identifier", "text": "simple_tags", "parent": 73, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 22}}, {"id": 76, "type": "return_statement", "text": "return MSG_SIMPLE_TAG;", "parent": 71, "children": [77], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 24}}, {"id": 77, "type": "identifier", "text": "MSG_SIMPLE_TAG", "parent": 76, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 23}}, {"id": 78, "type": "return_statement", "text": "return 0;", "parent": 41, "children": [79], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 10}}, {"id": 79, "type": "number_literal", "text": "0", "parent": 78, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 80, "type": "function_definition", "text": "static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n\tswitch (tag) {\n\tcase MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;\n\t\t/* fall through */\n\tcase MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;\n\tcase 0:\n\t\t/* fall through */\n\tdefault:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;\n\t}\n}", "parent": 38, "children": [81, 83, 84], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 52, "column": 1}}, {"id": 81, "type": "storage_class_specifier", "text": "inline", "parent": 80, "children": [82], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 13}}, {"id": 82, "type": "inline", "text": "inline", "parent": 81, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 13}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 36, "column": 14}, "end_point": {"row": 36, "column": 18}}, {"id": 84, "type": "function_declarator", "text": "scsi_set_tag_type(struct scsi_device *sdev, int tag)", "parent": 80, "children": [85, 86], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 71}}, {"id": 85, "type": "identifier", "text": "scsi_set_tag_type", "parent": 84, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 36}}, {"id": 86, "type": "parameter_list", "text": "(struct scsi_device *sdev, int tag)", "parent": 84, "children": [87, 94], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 71}}, {"id": 87, "type": "parameter_declaration", "text": "struct scsi_device *sdev", "parent": 86, "children": [88, 91], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 61}}, {"id": 88, "type": "struct_specifier", "text": "struct scsi_device", "parent": 87, "children": [89, 90], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 55}}, {"id": 89, "type": "struct", "text": "struct", "parent": 88, "children": [], "start_point": {"row": 36, "column": 37}, "end_point": {"row": 36, "column": 43}}, {"id": 90, "type": "type_identifier", "text": "scsi_device", "parent": 88, "children": [], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 55}}, {"id": 91, "type": "pointer_declarator", "text": "*sdev", "parent": 87, "children": [92, 93], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 61}}, {"id": 92, "type": "*", "text": "*", "parent": 91, "children": [], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 57}}, {"id": 93, "type": "identifier", "text": "sdev", "parent": 91, "children": [], "start_point": {"row": 36, "column": 57}, "end_point": {"row": 36, "column": 61}}, {"id": 94, "type": "parameter_declaration", "text": "int tag", "parent": 86, "children": [95, 96], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 70}}, {"id": 95, "type": "primitive_type", "text": "int", "parent": 94, "children": [], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 66}}, {"id": 96, "type": "identifier", "text": "tag", "parent": 94, "children": [], "start_point": {"row": 36, "column": 67}, "end_point": {"row": 36, "column": 70}}, {"id": 97, "type": "switch_statement", "text": "switch (tag) {\n\tcase MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;\n\t\t/* fall through */\n\tcase MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;\n\tcase 0:\n\t\t/* fall through */\n\tdefault:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;\n\t}", "parent": 80, "children": [98, 99], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 51, "column": 2}}, {"id": 98, "type": "switch", "text": "switch", "parent": 97, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 7}}, {"id": 99, "type": "parenthesized_expression", "text": "(tag)", "parent": 97, "children": [100], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 13}}, {"id": 100, "type": "identifier", "text": "tag", "parent": 99, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 12}}, {"id": 101, "type": "case_statement", "text": "case MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;", "parent": 97, "children": [102, 103], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 40, "column": 25}}, {"id": 102, "type": "case", "text": "case", "parent": 101, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 103, "type": "identifier", "text": "MSG_ORDERED_TAG", "parent": 101, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 21}}, {"id": 104, "type": "assignment_expression", "text": "sdev->ordered_tags = 1", "parent": 101, "children": [105, 108, 109], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 24}}, {"id": 105, "type": "field_expression", "text": "sdev->ordered_tags", "parent": 104, "children": [106, 107], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 20}}, {"id": 106, "type": "identifier", "text": "sdev", "parent": 105, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 6}}, {"id": 107, "type": "field_identifier", "text": "ordered_tags", "parent": 105, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 20}}, {"id": 108, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 22}}, {"id": 109, "type": "number_literal", "text": "1", "parent": 104, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 24}}, {"id": 110, "type": "case_statement", "text": "case MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;", "parent": 97, "children": [111, 112, 119], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 111, "type": "case", "text": "case", "parent": 110, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 5}}, {"id": 112, "type": "identifier", "text": "MSG_SIMPLE_TAG", "parent": 110, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 20}}, {"id": 113, "type": "assignment_expression", "text": "sdev->simple_tags = 1", "parent": 110, "children": [114, 117, 118], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 23}}, {"id": 114, "type": "field_expression", "text": "sdev->simple_tags", "parent": 113, "children": [115, 116], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 19}}, {"id": 115, "type": "identifier", "text": "sdev", "parent": 114, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 116, "type": "field_identifier", "text": "simple_tags", "parent": 114, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 19}}, {"id": 117, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 118, "type": "number_literal", "text": "1", "parent": 113, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 23}}, {"id": 119, "type": "break_statement", "text": "break;", "parent": 110, "children": [120], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 8}}, {"id": 120, "type": "break", "text": "break", "parent": 119, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 7}}, {"id": 121, "type": "case_statement", "text": "case 0:", "parent": 97, "children": [122, 123], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 8}}, {"id": 122, "type": "case", "text": "case", "parent": 121, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 5}}, {"id": 123, "type": "number_literal", "text": "0", "parent": 121, "children": [], "start_point": {"row": 45, "column": 6}, "end_point": {"row": 45, "column": 7}}, {"id": 124, "type": "case_statement", "text": "default:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;", "parent": 97, "children": [125, 138], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 125, "type": "default", "text": "default", "parent": 124, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 126, "type": "assignment_expression", "text": "sdev->ordered_tags = 0", "parent": 124, "children": [127, 130, 131], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 24}}, {"id": 127, "type": "field_expression", "text": "sdev->ordered_tags", "parent": 126, "children": [128, 129], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 20}}, {"id": 128, "type": "identifier", "text": "sdev", "parent": 127, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 129, "type": "field_identifier", "text": "ordered_tags", "parent": 127, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 20}}, {"id": 130, "type": "=", "text": "=", "parent": 126, "children": [], "start_point": {"row": 48, "column": 21}, "end_point": {"row": 48, "column": 22}}, {"id": 131, "type": "number_literal", "text": "0", "parent": 126, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 24}}, {"id": 132, "type": "assignment_expression", "text": "sdev->simple_tags = 0", "parent": 124, "children": [133, 136, 137], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 23}}, {"id": 133, "type": "field_expression", "text": "sdev->simple_tags", "parent": 132, "children": [134, 135], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 19}}, {"id": 134, "type": "identifier", "text": "sdev", "parent": 133, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 6}}, {"id": 135, "type": "field_identifier", "text": "simple_tags", "parent": 133, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 19}}, {"id": 136, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 137, "type": "number_literal", "text": "0", "parent": 132, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 23}}, {"id": 138, "type": "break_statement", "text": "break;", "parent": 124, "children": [139], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 8}}, {"id": 139, "type": "break", "text": "break", "parent": 138, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 7}}, {"id": 140, "type": "function_definition", "text": "static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn;\n\n\tif (!blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt);\n\n\tscsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}", "parent": 38, "children": [141, 143, 144], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 141, "type": "storage_class_specifier", "text": "inline", "parent": 140, "children": [142], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 13}}, {"id": 142, "type": "inline", "text": "inline", "parent": 141, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 13}}, {"id": 143, "type": "primitive_type", "text": "void", "parent": 140, "children": [], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 18}}, {"id": 144, "type": "function_declarator", "text": "scsi_activate_tcq(struct scsi_device *sdev, int depth)", "parent": 140, "children": [145, 146], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 73}}, {"id": 145, "type": "identifier", "text": "scsi_activate_tcq", "parent": 144, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 36}}, {"id": 146, "type": "parameter_list", "text": "(struct scsi_device *sdev, int depth)", "parent": 144, "children": [147, 154], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 73}}, {"id": 147, "type": "parameter_declaration", "text": "struct scsi_device *sdev", "parent": 146, "children": [148, 151], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 61}}, {"id": 148, "type": "struct_specifier", "text": "struct scsi_device", "parent": 147, "children": [149, 150], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 55}}, {"id": 149, "type": "struct", "text": "struct", "parent": 148, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 43}}, {"id": 150, "type": "type_identifier", "text": "scsi_device", "parent": 148, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 55}}, {"id": 151, "type": "pointer_declarator", "text": "*sdev", "parent": 147, "children": [152, 153], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 61}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 63, "column": 56}, "end_point": {"row": 63, "column": 57}}, {"id": 153, "type": "identifier", "text": "sdev", "parent": 151, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 61}}, {"id": 154, "type": "parameter_declaration", "text": "int depth", "parent": 146, "children": [155, 156], "start_point": {"row": 63, "column": 63}, "end_point": {"row": 63, "column": 72}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 63, "column": 63}, "end_point": {"row": 63, "column": 66}}, {"id": 156, "type": "identifier", "text": "depth", "parent": 154, "children": [], "start_point": {"row": 63, "column": 67}, "end_point": {"row": 63, "column": 72}}, {"id": 157, "type": "if_statement", "text": "if (!sdev->tagged_supported)\n\t\treturn;", "parent": 140, "children": [158, 164], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 66, "column": 9}}, {"id": 158, "type": "parenthesized_expression", "text": "(!sdev->tagged_supported)", "parent": 157, "children": [159], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 29}}, {"id": 159, "type": "unary_expression", "text": "!sdev->tagged_supported", "parent": 158, "children": [160, 161], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 28}}, {"id": 160, "type": "!", "text": "!", "parent": 159, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 6}}, {"id": 161, "type": "field_expression", "text": "sdev->tagged_supported", "parent": 159, "children": [162, 163], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 28}}, {"id": 162, "type": "identifier", "text": "sdev", "parent": 161, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 10}}, {"id": 163, "type": "field_identifier", "text": "tagged_supported", "parent": 161, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 28}}, {"id": 164, "type": "return_statement", "text": "return;", "parent": 157, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 9}}, {"id": 165, "type": "if_statement", "text": "if (!blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt);", "parent": 140, "children": [166], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 70, "column": 25}}, {"id": 166, "type": "parenthesized_expression", "text": "(!blk_queue_tagged(sdev->request_queue))", "parent": 165, "children": [167], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 44}}, {"id": 167, "type": "unary_expression", "text": "!blk_queue_tagged(sdev->request_queue)", "parent": 166, "children": [168, 169], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 43}}, {"id": 168, "type": "!", "text": "!", "parent": 167, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 6}}, {"id": 169, "type": "call_expression", "text": "blk_queue_tagged(sdev->request_queue)", "parent": 167, "children": [170, 171], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 43}}, {"id": 170, "type": "identifier", "text": "blk_queue_tagged", "parent": 169, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 22}}, {"id": 171, "type": "argument_list", "text": "(sdev->request_queue)", "parent": 169, "children": [172], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 43}}, {"id": 172, "type": "field_expression", "text": "sdev->request_queue", "parent": 171, "children": [173, 174], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 42}}, {"id": 173, "type": "identifier", "text": "sdev", "parent": 172, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 27}}, {"id": 174, "type": "field_identifier", "text": "request_queue", "parent": 172, "children": [], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 42}}, {"id": 175, "type": "call_expression", "text": "blk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt)", "parent": 165, "children": [176, 177], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 70, "column": 24}}, {"id": 176, "type": "identifier", "text": "blk_queue_init_tags", "parent": 175, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 21}}, {"id": 177, "type": "argument_list", "text": "(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt)", "parent": 175, "children": [178, 181, 182], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 70, "column": 24}}, {"id": 178, "type": "field_expression", "text": "sdev->request_queue", "parent": 177, "children": [179, 180], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 41}}, {"id": 179, "type": "identifier", "text": "sdev", "parent": 178, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 26}}, {"id": 180, "type": "field_identifier", "text": "request_queue", "parent": 178, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 41}}, {"id": 181, "type": "identifier", "text": "depth", "parent": 177, "children": [], "start_point": {"row": 69, "column": 43}, "end_point": {"row": 69, "column": 48}}, {"id": 182, "type": "field_expression", "text": "sdev->host->bqt", "parent": 177, "children": [183, 186], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 23}}, {"id": 183, "type": "field_expression", "text": "sdev->host", "parent": 182, "children": [184, 185], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 18}}, {"id": 184, "type": "identifier", "text": "sdev", "parent": 183, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 12}}, {"id": 185, "type": "field_identifier", "text": "host", "parent": 183, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 18}}, {"id": 186, "type": "field_identifier", "text": "bqt", "parent": 182, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 23}}, {"id": 187, "type": "call_expression", "text": "scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth)", "parent": 140, "children": [188, 189], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 62}}, {"id": 188, "type": "identifier", "text": "scsi_adjust_queue_depth", "parent": 187, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 24}}, {"id": 189, "type": "argument_list", "text": "(sdev, scsi_get_tag_type(sdev), depth)", "parent": 187, "children": [190, 191, 195], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 62}}, {"id": 190, "type": "identifier", "text": "sdev", "parent": 189, "children": [], "start_point": {"row": 72, "column": 25}, "end_point": {"row": 72, "column": 29}}, {"id": 191, "type": "call_expression", "text": "scsi_get_tag_type(sdev)", "parent": 189, "children": [192, 193], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 54}}, {"id": 192, "type": "identifier", "text": "scsi_get_tag_type", "parent": 191, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 48}}, {"id": 193, "type": "argument_list", "text": "(sdev)", "parent": 191, "children": [194], "start_point": {"row": 72, "column": 48}, "end_point": {"row": 72, "column": 54}}, {"id": 194, "type": "identifier", "text": "sdev", "parent": 193, "children": [], "start_point": {"row": 72, "column": 49}, "end_point": {"row": 72, "column": 53}}, {"id": 195, "type": "identifier", "text": "depth", "parent": 189, "children": [], "start_point": {"row": 72, "column": 56}, "end_point": {"row": 72, "column": 61}}, {"id": 196, "type": "function_definition", "text": "static inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_free_tags(sdev->request_queue);\n\tscsi_adjust_queue_depth(sdev, 0, depth);\n}", "parent": 38, "children": [197, 199, 200], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 84, "column": 1}}, {"id": 197, "type": "storage_class_specifier", "text": "inline", "parent": 196, "children": [198], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 198, "type": "inline", "text": "inline", "parent": 197, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 13}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 196, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 18}}, {"id": 200, "type": "function_declarator", "text": "scsi_deactivate_tcq(struct scsi_device *sdev, int depth)", "parent": 196, "children": [201, 202], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 75}}, {"id": 201, "type": "identifier", "text": "scsi_deactivate_tcq", "parent": 200, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 38}}, {"id": 202, "type": "parameter_list", "text": "(struct scsi_device *sdev, int depth)", "parent": 200, "children": [203, 210], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 75}}, {"id": 203, "type": "parameter_declaration", "text": "struct scsi_device *sdev", "parent": 202, "children": [204, 207], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 63}}, {"id": 204, "type": "struct_specifier", "text": "struct scsi_device", "parent": 203, "children": [205, 206], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 57}}, {"id": 205, "type": "struct", "text": "struct", "parent": 204, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 45}}, {"id": 206, "type": "type_identifier", "text": "scsi_device", "parent": 204, "children": [], "start_point": {"row": 79, "column": 46}, "end_point": {"row": 79, "column": 57}}, {"id": 207, "type": "pointer_declarator", "text": "*sdev", "parent": 203, "children": [208, 209], "start_point": {"row": 79, "column": 58}, "end_point": {"row": 79, "column": 63}}, {"id": 208, "type": "*", "text": "*", "parent": 207, "children": [], "start_point": {"row": 79, "column": 58}, "end_point": {"row": 79, "column": 59}}, {"id": 209, "type": "identifier", "text": "sdev", "parent": 207, "children": [], "start_point": {"row": 79, "column": 59}, "end_point": {"row": 79, "column": 63}}, {"id": 210, "type": "parameter_declaration", "text": "int depth", "parent": 202, "children": [211, 212], "start_point": {"row": 79, "column": 65}, "end_point": {"row": 79, "column": 74}}, {"id": 211, "type": "primitive_type", "text": "int", "parent": 210, "children": [], "start_point": {"row": 79, "column": 65}, "end_point": {"row": 79, "column": 68}}, {"id": 212, "type": "identifier", "text": "depth", "parent": 210, "children": [], "start_point": {"row": 79, "column": 69}, "end_point": {"row": 79, "column": 74}}, {"id": 213, "type": "if_statement", "text": "if (blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_free_tags(sdev->request_queue);", "parent": 196, "children": [214], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 82, "column": 43}}, {"id": 214, "type": "parenthesized_expression", "text": "(blk_queue_tagged(sdev->request_queue))", "parent": 213, "children": [215], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 43}}, {"id": 215, "type": "call_expression", "text": "blk_queue_tagged(sdev->request_queue)", "parent": 214, "children": [216, 217], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 42}}, {"id": 216, "type": "identifier", "text": "blk_queue_tagged", "parent": 215, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 21}}, {"id": 217, "type": "argument_list", "text": "(sdev->request_queue)", "parent": 215, "children": [218], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 42}}, {"id": 218, "type": "field_expression", "text": "sdev->request_queue", "parent": 217, "children": [219, 220], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 41}}, {"id": 219, "type": "identifier", "text": "sdev", "parent": 218, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 26}}, {"id": 220, "type": "field_identifier", "text": "request_queue", "parent": 218, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 41}}, {"id": 221, "type": "call_expression", "text": "blk_queue_free_tags(sdev->request_queue)", "parent": 213, "children": [222, 223], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 42}}, {"id": 222, "type": "identifier", "text": "blk_queue_free_tags", "parent": 221, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 21}}, {"id": 223, "type": "argument_list", "text": "(sdev->request_queue)", "parent": 221, "children": [224], "start_point": {"row": 82, "column": 21}, "end_point": {"row": 82, "column": 42}}, {"id": 224, "type": "field_expression", "text": "sdev->request_queue", "parent": 223, "children": [225, 226], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 41}}, {"id": 225, "type": "identifier", "text": "sdev", "parent": 224, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 26}}, {"id": 226, "type": "field_identifier", "text": "request_queue", "parent": 224, "children": [], "start_point": {"row": 82, "column": 28}, "end_point": {"row": 82, "column": 41}}, {"id": 227, "type": "call_expression", "text": "scsi_adjust_queue_depth(sdev, 0, depth)", "parent": 196, "children": [228, 229], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 40}}, {"id": 228, "type": "identifier", "text": "scsi_adjust_queue_depth", "parent": 227, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 24}}, {"id": 229, "type": "argument_list", "text": "(sdev, 0, depth)", "parent": 227, "children": [230, 231, 232], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 40}}, {"id": 230, "type": "identifier", "text": "sdev", "parent": 229, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 29}}, {"id": 231, "type": "number_literal", "text": "0", "parent": 229, "children": [], "start_point": {"row": 83, "column": 31}, "end_point": {"row": 83, "column": 32}}, {"id": 232, "type": "identifier", "text": "depth", "parent": 229, "children": [], "start_point": {"row": 83, "column": 34}, "end_point": {"row": 83, "column": 39}}, {"id": 233, "type": "function_definition", "text": "static inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n\t\t*msg++ = MSG_SIMPLE_TAG;\n \t*msg++ = req->tag;\n \treturn 2;\n\t}\n\n\treturn 0;\n}", "parent": 38, "children": [234, 236, 237], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 107, "column": 1}}, {"id": 234, "type": "storage_class_specifier", "text": "inline", "parent": 233, "children": [235], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 13}}, {"id": 235, "type": "inline", "text": "inline", "parent": 234, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 13}}, {"id": 236, "type": "primitive_type", "text": "int", "parent": 233, "children": [], "start_point": {"row": 96, "column": 14}, "end_point": {"row": 96, "column": 17}}, {"id": 237, "type": "function_declarator", "text": "scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)", "parent": 233, "children": [238, 239], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 73}}, {"id": 238, "type": "identifier", "text": "scsi_populate_tag_msg", "parent": 237, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 39}}, {"id": 239, "type": "parameter_list", "text": "(struct scsi_cmnd *cmd, char *msg)", "parent": 237, "children": [240, 247], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 73}}, {"id": 240, "type": "parameter_declaration", "text": "struct scsi_cmnd *cmd", "parent": 239, "children": [241, 244], "start_point": {"row": 96, "column": 40}, "end_point": {"row": 96, "column": 61}}, {"id": 241, "type": "struct_specifier", "text": "struct scsi_cmnd", "parent": 240, "children": [242, 243], "start_point": {"row": 96, "column": 40}, "end_point": {"row": 96, "column": 56}}, {"id": 242, "type": "struct", "text": "struct", "parent": 241, "children": [], "start_point": {"row": 96, "column": 40}, "end_point": {"row": 96, "column": 46}}, {"id": 243, "type": "type_identifier", "text": "scsi_cmnd", "parent": 241, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 56}}, {"id": 244, "type": "pointer_declarator", "text": "*cmd", "parent": 240, "children": [245, 246], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 61}}, {"id": 245, "type": "*", "text": "*", "parent": 244, "children": [], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 58}}, {"id": 246, "type": "identifier", "text": "cmd", "parent": 244, "children": [], "start_point": {"row": 96, "column": 58}, "end_point": {"row": 96, "column": 61}}, {"id": 247, "type": "parameter_declaration", "text": "char *msg", "parent": 239, "children": [248, 249], "start_point": {"row": 96, "column": 63}, "end_point": {"row": 96, "column": 72}}, {"id": 248, "type": "primitive_type", "text": "char", "parent": 247, "children": [], "start_point": {"row": 96, "column": 63}, "end_point": {"row": 96, "column": 67}}, {"id": 249, "type": "pointer_declarator", "text": "*msg", "parent": 247, "children": [250, 251], "start_point": {"row": 96, "column": 68}, "end_point": {"row": 96, "column": 72}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 96, "column": 68}, "end_point": {"row": 96, "column": 69}}, {"id": 251, "type": "identifier", "text": "msg", "parent": 249, "children": [], "start_point": {"row": 96, "column": 69}, "end_point": {"row": 96, "column": 72}}, {"id": 252, "type": "declaration", "text": "struct request *req = cmd->request;", "parent": 233, "children": [253, 256], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 43}}, {"id": 253, "type": "struct_specifier", "text": "struct request", "parent": 252, "children": [254, 255], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 22}}, {"id": 254, "type": "struct", "text": "struct", "parent": 253, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 255, "type": "type_identifier", "text": "request", "parent": 253, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 22}}, {"id": 256, "type": "init_declarator", "text": "*req = cmd->request", "parent": 252, "children": [257, 260, 261], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 42}}, {"id": 257, "type": "pointer_declarator", "text": "*req", "parent": 256, "children": [258, 259], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 27}}, {"id": 258, "type": "*", "text": "*", "parent": 257, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 24}}, {"id": 259, "type": "identifier", "text": "req", "parent": 257, "children": [], "start_point": {"row": 98, "column": 24}, "end_point": {"row": 98, "column": 27}}, {"id": 260, "type": "=", "text": "=", "parent": 256, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 29}}, {"id": 261, "type": "field_expression", "text": "cmd->request", "parent": 256, "children": [262, 263], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 42}}, {"id": 262, "type": "identifier", "text": "cmd", "parent": 261, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 33}}, {"id": 263, "type": "field_identifier", "text": "request", "parent": 261, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 42}}, {"id": 264, "type": "if_statement", "text": "if (blk_rq_tagged(req)) {\n\t\t*msg++ = MSG_SIMPLE_TAG;\n \t*msg++ = req->tag;\n \treturn 2;\n\t}", "parent": 233, "children": [265], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 104, "column": 2}}, {"id": 265, "type": "parenthesized_expression", "text": "(blk_rq_tagged(req))", "parent": 264, "children": [266], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 31}}, {"id": 266, "type": "call_expression", "text": "blk_rq_tagged(req)", "parent": 265, "children": [267, 268], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 30}}, {"id": 267, "type": "identifier", "text": "blk_rq_tagged", "parent": 266, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 25}}, {"id": 268, "type": "argument_list", "text": "(req)", "parent": 266, "children": [269], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 30}}, {"id": 269, "type": "identifier", "text": "req", "parent": 268, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 29}}, {"id": 270, "type": "assignment_expression", "text": "*msg++ = MSG_SIMPLE_TAG", "parent": 264, "children": [271, 276, 277], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 25}}, {"id": 271, "type": "pointer_expression", "text": "*msg++", "parent": 270, "children": [272, 273], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 8}}, {"id": 272, "type": "*", "text": "*", "parent": 271, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 3}}, {"id": 273, "type": "update_expression", "text": "msg++", "parent": 271, "children": [274, 275], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 8}}, {"id": 274, "type": "identifier", "text": "msg", "parent": 273, "children": [], "start_point": {"row": 101, "column": 3}, "end_point": {"row": 101, "column": 6}}, {"id": 275, "type": "++", "text": "++", "parent": 273, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 8}}, {"id": 276, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 10}}, {"id": 277, "type": "identifier", "text": "MSG_SIMPLE_TAG", "parent": 270, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 25}}, {"id": 278, "type": "assignment_expression", "text": "*msg++ = req->tag", "parent": 264, "children": [279, 284, 285], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 26}}, {"id": 279, "type": "pointer_expression", "text": "*msg++", "parent": 278, "children": [280, 281], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 15}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 10}}, {"id": 281, "type": "update_expression", "text": "msg++", "parent": 279, "children": [282, 283], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 15}}, {"id": 282, "type": "identifier", "text": "msg", "parent": 281, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 13}}, {"id": 283, "type": "++", "text": "++", "parent": 281, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 15}}, {"id": 284, "type": "=", "text": "=", "parent": 278, "children": [], "start_point": {"row": 102, "column": 16}, "end_point": {"row": 102, "column": 17}}, {"id": 285, "type": "field_expression", "text": "req->tag", "parent": 278, "children": [286, 287], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 26}}, {"id": 286, "type": "identifier", "text": "req", "parent": 285, "children": [], "start_point": {"row": 102, "column": 18}, "end_point": {"row": 102, "column": 21}}, {"id": 287, "type": "field_identifier", "text": "tag", "parent": 285, "children": [], "start_point": {"row": 102, "column": 23}, "end_point": {"row": 102, "column": 26}}, {"id": 288, "type": "return_statement", "text": "return 2;", "parent": 264, "children": [289], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 18}}, {"id": 289, "type": "number_literal", "text": "2", "parent": 288, "children": [], "start_point": {"row": 103, "column": 16}, "end_point": {"row": 103, "column": 17}}, {"id": 290, "type": "return_statement", "text": "return 0;", "parent": 233, "children": [291], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 10}}, {"id": 291, "type": "number_literal", "text": "0", "parent": 290, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 9}}, {"id": 292, "type": "function_definition", "text": "static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n \treq = blk_queue_find_tag(sdev->request_queue, tag);\n\t return req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\n\t/* single command, look in space */\n\treturn sdev->current_cmnd;\n}", "parent": 38, "children": [293, 295, 298], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 293, "type": "storage_class_specifier", "text": "inline", "parent": 292, "children": [294], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 13}}, {"id": 294, "type": "inline", "text": "inline", "parent": 293, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 13}}, {"id": 295, "type": "struct_specifier", "text": "struct scsi_cmnd", "parent": 292, "children": [296, 297], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 30}}, {"id": 296, "type": "struct", "text": "struct", "parent": 295, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 20}}, {"id": 297, "type": "type_identifier", "text": "scsi_cmnd", "parent": 295, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 30}}, {"id": 298, "type": "pointer_declarator", "text": "*scsi_find_tag(struct scsi_device *sdev, int tag)", "parent": 292, "children": [299, 300], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 80}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 117, "column": 31}, "end_point": {"row": 117, "column": 32}}, {"id": 300, "type": "function_declarator", "text": "scsi_find_tag(struct scsi_device *sdev, int tag)", "parent": 298, "children": [301, 302], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 80}}, {"id": 301, "type": "identifier", "text": "scsi_find_tag", "parent": 300, "children": [], "start_point": {"row": 117, "column": 32}, "end_point": {"row": 117, "column": 45}}, {"id": 302, "type": "parameter_list", "text": "(struct scsi_device *sdev, int tag)", "parent": 300, "children": [303, 310], "start_point": {"row": 117, "column": 45}, "end_point": {"row": 117, "column": 80}}, {"id": 303, "type": "parameter_declaration", "text": "struct scsi_device *sdev", "parent": 302, "children": [304, 307], "start_point": {"row": 117, "column": 46}, "end_point": {"row": 117, "column": 70}}, {"id": 304, "type": "struct_specifier", "text": "struct scsi_device", "parent": 303, "children": [305, 306], "start_point": {"row": 117, "column": 46}, "end_point": {"row": 117, "column": 64}}, {"id": 305, "type": "struct", "text": "struct", "parent": 304, "children": [], "start_point": {"row": 117, "column": 46}, "end_point": {"row": 117, "column": 52}}, {"id": 306, "type": "type_identifier", "text": "scsi_device", "parent": 304, "children": [], "start_point": {"row": 117, "column": 53}, "end_point": {"row": 117, "column": 64}}, {"id": 307, "type": "pointer_declarator", "text": "*sdev", "parent": 303, "children": [308, 309], "start_point": {"row": 117, "column": 65}, "end_point": {"row": 117, "column": 70}}, {"id": 308, "type": "*", "text": "*", "parent": 307, "children": [], "start_point": {"row": 117, "column": 65}, "end_point": {"row": 117, "column": 66}}, {"id": 309, "type": "identifier", "text": "sdev", "parent": 307, "children": [], "start_point": {"row": 117, "column": 66}, "end_point": {"row": 117, "column": 70}}, {"id": 310, "type": "parameter_declaration", "text": "int tag", "parent": 302, "children": [311, 312], "start_point": {"row": 117, "column": 72}, "end_point": {"row": 117, "column": 79}}, {"id": 311, "type": "primitive_type", "text": "int", "parent": 310, "children": [], "start_point": {"row": 117, "column": 72}, "end_point": {"row": 117, "column": 75}}, {"id": 312, "type": "identifier", "text": "tag", "parent": 310, "children": [], "start_point": {"row": 117, "column": 76}, "end_point": {"row": 117, "column": 79}}, {"id": 313, "type": "declaration", "text": "struct request *req;", "parent": 292, "children": [314, 317], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 28}}, {"id": 314, "type": "struct_specifier", "text": "struct request", "parent": 313, "children": [315, 316], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 22}}, {"id": 315, "type": "struct", "text": "struct", "parent": 314, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 14}}, {"id": 316, "type": "type_identifier", "text": "request", "parent": 314, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 22}}, {"id": 317, "type": "pointer_declarator", "text": "*req", "parent": 313, "children": [318, 319], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 27}}, {"id": 318, "type": "*", "text": "*", "parent": 317, "children": [], "start_point": {"row": 120, "column": 23}, "end_point": {"row": 120, "column": 24}}, {"id": 319, "type": "identifier", "text": "req", "parent": 317, "children": [], "start_point": {"row": 120, "column": 24}, "end_point": {"row": 120, "column": 27}}, {"id": 320, "type": "if_statement", "text": "if (tag != SCSI_NO_TAG) {\n \treq = blk_queue_find_tag(sdev->request_queue, tag);\n\t return req ? (struct scsi_cmnd *)req->special : NULL;\n\t}", "parent": 292, "children": [321], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 125, "column": 2}}, {"id": 321, "type": "parenthesized_expression", "text": "(tag != SCSI_NO_TAG)", "parent": 320, "children": [322], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 31}}, {"id": 322, "type": "binary_expression", "text": "tag != SCSI_NO_TAG", "parent": 321, "children": [323, 324, 325], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 30}}, {"id": 323, "type": "identifier", "text": "tag", "parent": 322, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 15}}, {"id": 324, "type": "!=", "text": "!=", "parent": 322, "children": [], "start_point": {"row": 122, "column": 16}, "end_point": {"row": 122, "column": 18}}, {"id": 325, "type": "identifier", "text": "SCSI_NO_TAG", "parent": 322, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 30}}, {"id": 326, "type": "assignment_expression", "text": "req = blk_queue_find_tag(sdev->request_queue, tag)", "parent": 320, "children": [327, 328, 329], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 59}}, {"id": 327, "type": "identifier", "text": "req", "parent": 326, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 12}}, {"id": 328, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 329, "type": "call_expression", "text": "blk_queue_find_tag(sdev->request_queue, tag)", "parent": 326, "children": [330, 331], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 59}}, {"id": 330, "type": "identifier", "text": "blk_queue_find_tag", "parent": 329, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 33}}, {"id": 331, "type": "argument_list", "text": "(sdev->request_queue, tag)", "parent": 329, "children": [332, 335], "start_point": {"row": 123, "column": 33}, "end_point": {"row": 123, "column": 59}}, {"id": 332, "type": "field_expression", "text": "sdev->request_queue", "parent": 331, "children": [333, 334], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 53}}, {"id": 333, "type": "identifier", "text": "sdev", "parent": 332, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 38}}, {"id": 334, "type": "field_identifier", "text": "request_queue", "parent": 332, "children": [], "start_point": {"row": 123, "column": 40}, "end_point": {"row": 123, "column": 53}}, {"id": 335, "type": "identifier", "text": "tag", "parent": 331, "children": [], "start_point": {"row": 123, "column": 55}, "end_point": {"row": 123, "column": 58}}, {"id": 336, "type": "return_statement", "text": "return req ? (struct scsi_cmnd *)req->special : NULL;", "parent": 320, "children": [337], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 62}}, {"id": 337, "type": "conditional_expression", "text": "req ? (struct scsi_cmnd *)req->special : NULL", "parent": 336, "children": [338, 339, 340, 350], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 61}}, {"id": 338, "type": "identifier", "text": "req", "parent": 337, "children": [], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 19}}, {"id": 339, "type": "?", "text": "?", "parent": 337, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 21}}, {"id": 340, "type": "cast_expression", "text": "(struct scsi_cmnd *)req->special", "parent": 337, "children": [341, 347], "start_point": {"row": 124, "column": 22}, "end_point": {"row": 124, "column": 54}}, {"id": 341, "type": "type_descriptor", "text": "struct scsi_cmnd *", "parent": 340, "children": [342, 345], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 41}}, {"id": 342, "type": "struct_specifier", "text": "struct scsi_cmnd", "parent": 341, "children": [343, 344], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 39}}, {"id": 343, "type": "struct", "text": "struct", "parent": 342, "children": [], "start_point": {"row": 124, "column": 23}, "end_point": {"row": 124, "column": 29}}, {"id": 344, "type": "type_identifier", "text": "scsi_cmnd", "parent": 342, "children": [], "start_point": {"row": 124, "column": 30}, "end_point": {"row": 124, "column": 39}}, {"id": 345, "type": "abstract_pointer_declarator", "text": "*", "parent": 341, "children": [346], "start_point": {"row": 124, "column": 40}, "end_point": {"row": 124, "column": 41}}, {"id": 346, "type": "*", "text": "*", "parent": 345, "children": [], "start_point": {"row": 124, "column": 40}, "end_point": {"row": 124, "column": 41}}, {"id": 347, "type": "field_expression", "text": "req->special", "parent": 340, "children": [348, 349], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 54}}, {"id": 348, "type": "identifier", "text": "req", "parent": 347, "children": [], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 45}}, {"id": 349, "type": "field_identifier", "text": "special", "parent": 347, "children": [], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 54}}, {"id": 350, "type": "null", "text": "NULL", "parent": 337, "children": [351], "start_point": {"row": 124, "column": 57}, "end_point": {"row": 124, "column": 61}}, {"id": 351, "type": "NULL", "text": "NULL", "parent": 350, "children": [], "start_point": {"row": 124, "column": 57}, "end_point": {"row": 124, "column": 61}}, {"id": 352, "type": "return_statement", "text": "return sdev->current_cmnd;", "parent": 292, "children": [353], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 27}}, {"id": 353, "type": "field_expression", "text": "sdev->current_cmnd", "parent": 352, "children": [354, 355], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 26}}, {"id": 354, "type": "identifier", "text": "sdev", "parent": 353, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 12}}, {"id": 355, "type": "field_identifier", "text": "current_cmnd", "parent": 353, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 26}}, {"id": 356, "type": "function_definition", "text": "static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n\t/*\n\t * If the shared tag map isn't already initialized, do it now.\n\t * This saves callers from having to check ->bqt when setting up\n\t * devices on the shared host (for libata)\n\t */\n\tif (!shost->bqt) {\n\t\tshost->bqt = blk_init_tags(depth);\n\t\tif (!shost->bqt)\n\t\t\treturn -ENOMEM;\n\t}\n\n\treturn 0;\n}", "parent": 38, "children": [357, 359, 360], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 150, "column": 1}}, {"id": 357, "type": "storage_class_specifier", "text": "inline", "parent": 356, "children": [358], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 13}}, {"id": 358, "type": "inline", "text": "inline", "parent": 357, "children": [], "start_point": {"row": 136, "column": 7}, "end_point": {"row": 136, "column": 13}}, {"id": 359, "type": "primitive_type", "text": "int", "parent": 356, "children": [], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 17}}, {"id": 360, "type": "function_declarator", "text": "scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)", "parent": 356, "children": [361, 362], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 78}}, {"id": 361, "type": "identifier", "text": "scsi_init_shared_tag_map", "parent": 360, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 42}}, {"id": 362, "type": "parameter_list", "text": "(struct Scsi_Host *shost, int depth)", "parent": 360, "children": [363, 370], "start_point": {"row": 136, "column": 42}, "end_point": {"row": 136, "column": 78}}, {"id": 363, "type": "parameter_declaration", "text": "struct Scsi_Host *shost", "parent": 362, "children": [364, 367], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 66}}, {"id": 364, "type": "struct_specifier", "text": "struct Scsi_Host", "parent": 363, "children": [365, 366], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 59}}, {"id": 365, "type": "struct", "text": "struct", "parent": 364, "children": [], "start_point": {"row": 136, "column": 43}, "end_point": {"row": 136, "column": 49}}, {"id": 366, "type": "type_identifier", "text": "Scsi_Host", "parent": 364, "children": [], "start_point": {"row": 136, "column": 50}, "end_point": {"row": 136, "column": 59}}, {"id": 367, "type": "pointer_declarator", "text": "*shost", "parent": 363, "children": [368, 369], "start_point": {"row": 136, "column": 60}, "end_point": {"row": 136, "column": 66}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 136, "column": 60}, "end_point": {"row": 136, "column": 61}}, {"id": 369, "type": "identifier", "text": "shost", "parent": 367, "children": [], "start_point": {"row": 136, "column": 61}, "end_point": {"row": 136, "column": 66}}, {"id": 370, "type": "parameter_declaration", "text": "int depth", "parent": 362, "children": [371, 372], "start_point": {"row": 136, "column": 68}, "end_point": {"row": 136, "column": 77}}, {"id": 371, "type": "primitive_type", "text": "int", "parent": 370, "children": [], "start_point": {"row": 136, "column": 68}, "end_point": {"row": 136, "column": 71}}, {"id": 372, "type": "identifier", "text": "depth", "parent": 370, "children": [], "start_point": {"row": 136, "column": 72}, "end_point": {"row": 136, "column": 77}}, {"id": 373, "type": "if_statement", "text": "if (!shost->bqt) {\n\t\tshost->bqt = blk_init_tags(depth);\n\t\tif (!shost->bqt)\n\t\t\treturn -ENOMEM;\n\t}", "parent": 356, "children": [374], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 147, "column": 2}}, {"id": 374, "type": "parenthesized_expression", "text": "(!shost->bqt)", "parent": 373, "children": [375], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 17}}, {"id": 375, "type": "unary_expression", "text": "!shost->bqt", "parent": 374, "children": [376, 377], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 16}}, {"id": 376, "type": "!", "text": "!", "parent": 375, "children": [], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 6}}, {"id": 377, "type": "field_expression", "text": "shost->bqt", "parent": 375, "children": [378, 379], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 16}}, {"id": 378, "type": "identifier", "text": "shost", "parent": 377, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 11}}, {"id": 379, "type": "field_identifier", "text": "bqt", "parent": 377, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 16}}, {"id": 380, "type": "assignment_expression", "text": "shost->bqt = blk_init_tags(depth)", "parent": 373, "children": [381, 384, 385], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 35}}, {"id": 381, "type": "field_expression", "text": "shost->bqt", "parent": 380, "children": [382, 383], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 12}}, {"id": 382, "type": "identifier", "text": "shost", "parent": 381, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 7}}, {"id": 383, "type": "field_identifier", "text": "bqt", "parent": 381, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 12}}, {"id": 384, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 144, "column": 13}, "end_point": {"row": 144, "column": 14}}, {"id": 385, "type": "call_expression", "text": "blk_init_tags(depth)", "parent": 380, "children": [386, 387], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 35}}, {"id": 386, "type": "identifier", "text": "blk_init_tags", "parent": 385, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 28}}, {"id": 387, "type": "argument_list", "text": "(depth)", "parent": 385, "children": [388], "start_point": {"row": 144, "column": 28}, "end_point": {"row": 144, "column": 35}}, {"id": 388, "type": "identifier", "text": "depth", "parent": 387, "children": [], "start_point": {"row": 144, "column": 29}, "end_point": {"row": 144, "column": 34}}, {"id": 389, "type": "if_statement", "text": "if (!shost->bqt)\n\t\t\treturn -ENOMEM;", "parent": 373, "children": [390, 396], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 146, "column": 18}}, {"id": 390, "type": "parenthesized_expression", "text": "(!shost->bqt)", "parent": 389, "children": [391], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 18}}, {"id": 391, "type": "unary_expression", "text": "!shost->bqt", "parent": 390, "children": [392, 393], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 17}}, {"id": 392, "type": "!", "text": "!", "parent": 391, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 7}}, {"id": 393, "type": "field_expression", "text": "shost->bqt", "parent": 391, "children": [394, 395], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 17}}, {"id": 394, "type": "identifier", "text": "shost", "parent": 393, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 12}}, {"id": 395, "type": "field_identifier", "text": "bqt", "parent": 393, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 17}}, {"id": 396, "type": "return_statement", "text": "return -ENOMEM;", "parent": 389, "children": [397], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 18}}, {"id": 397, "type": "unary_expression", "text": "-ENOMEM", "parent": 396, "children": [398, 399], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 17}}, {"id": 398, "type": "-", "text": "-", "parent": 397, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 11}}, {"id": 399, "type": "identifier", "text": "ENOMEM", "parent": 397, "children": [], "start_point": {"row": 146, "column": 11}, "end_point": {"row": 146, "column": 17}}, {"id": 400, "type": "return_statement", "text": "return 0;", "parent": 356, "children": [401], "start_point": {"row": 149, "column": 1}, "end_point": {"row": 149, "column": 10}}, {"id": 401, "type": "number_literal", "text": "0", "parent": 400, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 9}}, {"id": 402, "type": "function_definition", "text": "static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)\n{\n\tstruct request *req;\n\n\tif (tag != SCSI_NO_TAG) {\n\t\treq = blk_map_queue_find_tag(shost->bqt, tag);\n\t\treturn req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\treturn NULL;\n}", "parent": 38, "children": [403, 405, 408], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 170, "column": 1}}, {"id": 403, "type": "storage_class_specifier", "text": "inline", "parent": 402, "children": [404], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 13}}, {"id": 404, "type": "inline", "text": "inline", "parent": 403, "children": [], "start_point": {"row": 160, "column": 7}, "end_point": {"row": 160, "column": 13}}, {"id": 405, "type": "struct_specifier", "text": "struct scsi_cmnd", "parent": 402, "children": [406, 407], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 30}}, {"id": 406, "type": "struct", "text": "struct", "parent": 405, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 20}}, {"id": 407, "type": "type_identifier", "text": "scsi_cmnd", "parent": 405, "children": [], "start_point": {"row": 160, "column": 21}, "end_point": {"row": 160, "column": 30}}, {"id": 408, "type": "pointer_declarator", "text": "*scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)", "parent": 402, "children": [409, 410], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 161, "column": 14}}, {"id": 409, "type": "*", "text": "*", "parent": 408, "children": [], "start_point": {"row": 160, "column": 31}, "end_point": {"row": 160, "column": 32}}, {"id": 410, "type": "function_declarator", "text": "scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)", "parent": 408, "children": [411, 412], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 161, "column": 14}}, {"id": 411, "type": "identifier", "text": "scsi_host_find_tag", "parent": 410, "children": [], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 160, "column": 50}}, {"id": 412, "type": "parameter_list", "text": "(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)", "parent": 410, "children": [413, 420], "start_point": {"row": 160, "column": 50}, "end_point": {"row": 161, "column": 14}}, {"id": 413, "type": "parameter_declaration", "text": "struct Scsi_Host *shost", "parent": 412, "children": [414, 417], "start_point": {"row": 160, "column": 51}, "end_point": {"row": 160, "column": 74}}, {"id": 414, "type": "struct_specifier", "text": "struct Scsi_Host", "parent": 413, "children": [415, 416], "start_point": {"row": 160, "column": 51}, "end_point": {"row": 160, "column": 67}}, {"id": 415, "type": "struct", "text": "struct", "parent": 414, "children": [], "start_point": {"row": 160, "column": 51}, "end_point": {"row": 160, "column": 57}}, {"id": 416, "type": "type_identifier", "text": "Scsi_Host", "parent": 414, "children": [], "start_point": {"row": 160, "column": 58}, "end_point": {"row": 160, "column": 67}}, {"id": 417, "type": "pointer_declarator", "text": "*shost", "parent": 413, "children": [418, 419], "start_point": {"row": 160, "column": 68}, "end_point": {"row": 160, "column": 74}}, {"id": 418, "type": "*", "text": "*", "parent": 417, "children": [], "start_point": {"row": 160, "column": 68}, "end_point": {"row": 160, "column": 69}}, {"id": 419, "type": "identifier", "text": "shost", "parent": 417, "children": [], "start_point": {"row": 160, "column": 69}, "end_point": {"row": 160, "column": 74}}, {"id": 420, "type": "parameter_declaration", "text": "int tag", "parent": 412, "children": [421, 422], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 13}}, {"id": 421, "type": "primitive_type", "text": "int", "parent": 420, "children": [], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 9}}, {"id": 422, "type": "identifier", "text": "tag", "parent": 420, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 13}}, {"id": 423, "type": "declaration", "text": "struct request *req;", "parent": 402, "children": [424, 427], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 21}}, {"id": 424, "type": "struct_specifier", "text": "struct request", "parent": 423, "children": [425, 426], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 15}}, {"id": 425, "type": "struct", "text": "struct", "parent": 424, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 7}}, {"id": 426, "type": "type_identifier", "text": "request", "parent": 424, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 15}}, {"id": 427, "type": "pointer_declarator", "text": "*req", "parent": 423, "children": [428, 429], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 20}}, {"id": 428, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 163, "column": 16}, "end_point": {"row": 163, "column": 17}}, {"id": 429, "type": "identifier", "text": "req", "parent": 427, "children": [], "start_point": {"row": 163, "column": 17}, "end_point": {"row": 163, "column": 20}}, {"id": 430, "type": "if_statement", "text": "if (tag != SCSI_NO_TAG) {\n\t\treq = blk_map_queue_find_tag(shost->bqt, tag);\n\t\treturn req ? (struct scsi_cmnd *)req->special : NULL;\n\t}", "parent": 402, "children": [431], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 168, "column": 2}}, {"id": 431, "type": "parenthesized_expression", "text": "(tag != SCSI_NO_TAG)", "parent": 430, "children": [432], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 24}}, {"id": 432, "type": "binary_expression", "text": "tag != SCSI_NO_TAG", "parent": 431, "children": [433, 434, 435], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 23}}, {"id": 433, "type": "identifier", "text": "tag", "parent": 432, "children": [], "start_point": {"row": 165, "column": 5}, "end_point": {"row": 165, "column": 8}}, {"id": 434, "type": "!=", "text": "!=", "parent": 432, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 11}}, {"id": 435, "type": "identifier", "text": "SCSI_NO_TAG", "parent": 432, "children": [], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 23}}, {"id": 436, "type": "assignment_expression", "text": "req = blk_map_queue_find_tag(shost->bqt, tag)", "parent": 430, "children": [437, 438, 439], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 47}}, {"id": 437, "type": "identifier", "text": "req", "parent": 436, "children": [], "start_point": {"row": 166, "column": 2}, "end_point": {"row": 166, "column": 5}}, {"id": 438, "type": "=", "text": "=", "parent": 436, "children": [], "start_point": {"row": 166, "column": 6}, "end_point": {"row": 166, "column": 7}}, {"id": 439, "type": "call_expression", "text": "blk_map_queue_find_tag(shost->bqt, tag)", "parent": 436, "children": [440, 441], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 47}}, {"id": 440, "type": "identifier", "text": "blk_map_queue_find_tag", "parent": 439, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 30}}, {"id": 441, "type": "argument_list", "text": "(shost->bqt, tag)", "parent": 439, "children": [442, 445], "start_point": {"row": 166, "column": 30}, "end_point": {"row": 166, "column": 47}}, {"id": 442, "type": "field_expression", "text": "shost->bqt", "parent": 441, "children": [443, 444], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 41}}, {"id": 443, "type": "identifier", "text": "shost", "parent": 442, "children": [], "start_point": {"row": 166, "column": 31}, "end_point": {"row": 166, "column": 36}}, {"id": 444, "type": "field_identifier", "text": "bqt", "parent": 442, "children": [], "start_point": {"row": 166, "column": 38}, "end_point": {"row": 166, "column": 41}}, {"id": 445, "type": "identifier", "text": "tag", "parent": 441, "children": [], "start_point": {"row": 166, "column": 43}, "end_point": {"row": 166, "column": 46}}, {"id": 446, "type": "return_statement", "text": "return req ? (struct scsi_cmnd *)req->special : NULL;", "parent": 430, "children": [447], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 55}}, {"id": 447, "type": "conditional_expression", "text": "req ? (struct scsi_cmnd *)req->special : NULL", "parent": 446, "children": [448, 449, 450, 460], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 54}}, {"id": 448, "type": "identifier", "text": "req", "parent": 447, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 12}}, {"id": 449, "type": "?", "text": "?", "parent": 447, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 14}}, {"id": 450, "type": "cast_expression", "text": "(struct scsi_cmnd *)req->special", "parent": 447, "children": [451, 457], "start_point": {"row": 167, "column": 15}, "end_point": {"row": 167, "column": 47}}, {"id": 451, "type": "type_descriptor", "text": "struct scsi_cmnd *", "parent": 450, "children": [452, 455], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 34}}, {"id": 452, "type": "struct_specifier", "text": "struct scsi_cmnd", "parent": 451, "children": [453, 454], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 32}}, {"id": 453, "type": "struct", "text": "struct", "parent": 452, "children": [], "start_point": {"row": 167, "column": 16}, "end_point": {"row": 167, "column": 22}}, {"id": 454, "type": "type_identifier", "text": "scsi_cmnd", "parent": 452, "children": [], "start_point": {"row": 167, "column": 23}, "end_point": {"row": 167, "column": 32}}, {"id": 455, "type": "abstract_pointer_declarator", "text": "*", "parent": 451, "children": [456], "start_point": {"row": 167, "column": 33}, "end_point": {"row": 167, "column": 34}}, {"id": 456, "type": "*", "text": "*", "parent": 455, "children": [], "start_point": {"row": 167, "column": 33}, "end_point": {"row": 167, "column": 34}}, {"id": 457, "type": "field_expression", "text": "req->special", "parent": 450, "children": [458, 459], "start_point": {"row": 167, "column": 35}, "end_point": {"row": 167, "column": 47}}, {"id": 458, "type": "identifier", "text": "req", "parent": 457, "children": [], "start_point": {"row": 167, "column": 35}, "end_point": {"row": 167, "column": 38}}, {"id": 459, "type": "field_identifier", "text": "special", "parent": 457, "children": [], "start_point": {"row": 167, "column": 40}, "end_point": {"row": 167, "column": 47}}, {"id": 460, "type": "null", "text": "NULL", "parent": 447, "children": [461], "start_point": {"row": 167, "column": 50}, "end_point": {"row": 167, "column": 54}}, {"id": 461, "type": "NULL", "text": "NULL", "parent": 460, "children": [], "start_point": {"row": 167, "column": 50}, "end_point": {"row": 167, "column": 54}}, {"id": 462, "type": "return_statement", "text": "return NULL;", "parent": 402, "children": [463], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 13}}, {"id": 463, "type": "null", "text": "NULL", "parent": 462, "children": [464], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 12}}, {"id": 464, "type": "NULL", "text": "NULL", "parent": 463, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 12}}, {"id": 465, "type": "#endif", "text": "#endif", "parent": 38, "children": [], "start_point": {"row": 172, "column": 0}, "end_point": {"row": 172, "column": 6}}, {"id": 466, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 6}}]}, "node_categories": {"declarations": {"functions": [41, 45, 80, 84, 140, 144, 196, 200, 233, 237, 292, 300, 356, 360, 402, 410], "variables": [48, 87, 94, 147, 154, 203, 210, 240, 247, 252, 303, 310, 313, 363, 370, 413, 420, 423], "classes": [42, 49, 50, 81, 88, 89, 141, 148, 149, 197, 204, 205, 234, 241, 242, 253, 254, 293, 295, 296, 304, 305, 314, 315, 342, 343, 357, 364, 365, 403, 405, 406, 414, 415, 424, 425, 452, 453], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [56, 57, 59, 65, 66, 72, 73, 99, 105, 114, 127, 133, 158, 159, 161, 166, 167, 169, 172, 175, 178, 182, 183, 187, 191, 214, 215, 218, 221, 224, 227, 261, 265, 266, 271, 273, 279, 281, 285, 321, 322, 329, 332, 340, 347, 353, 374, 375, 377, 381, 385, 390, 391, 393, 397, 431, 432, 439, 442, 450, 457], "assignments": [104, 113, 126, 132, 270, 278, 326, 380, 436], "loops": [], "conditionals": [0, 1, 2, 5, 20, 24, 28, 32, 36, 38, 39, 40, 46, 51, 54, 55, 60, 61, 64, 67, 68, 70, 71, 74, 75, 77, 85, 90, 93, 96, 97, 98, 100, 101, 102, 103, 106, 107, 110, 111, 112, 115, 116, 121, 122, 124, 128, 129, 134, 135, 145, 150, 153, 156, 157, 162, 163, 165, 170, 173, 174, 176, 179, 180, 181, 184, 185, 186, 188, 190, 192, 194, 195, 201, 206, 209, 212, 213, 216, 219, 220, 222, 225, 226, 228, 230, 232, 238, 243, 246, 251, 255, 259, 262, 263, 264, 267, 269, 274, 277, 282, 286, 287, 297, 301, 306, 309, 312, 316, 319, 320, 323, 325, 327, 330, 333, 334, 335, 337, 338, 344, 348, 349, 354, 355, 361, 366, 369, 372, 373, 378, 379, 382, 383, 386, 388, 389, 394, 395, 399, 407, 411, 416, 419, 422, 426, 429, 430, 433, 435, 437, 440, 443, 444, 445, 447, 448, 454, 458, 459, 465, 466], "returns": [62, 69, 76, 78, 164, 288, 290, 336, 352, 396, 400, 446, 462], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 63, 79, 109, 118, 123, 131, 137, 231, 289, 291, 401], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 41, "universal_type": "function", "name": "scsi_get_tag_type", "text_snippet": "static inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n\tif (!sdev->tagged_supported)\n\t\tretu"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "scsi_get_tag_type(struct scsi_device *sdev)"}, {"node_id": 80, "universal_type": "function", "name": "scsi_set_tag_type", "text_snippet": "static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n\tswitch (tag) {\n\tcase MSG_"}, {"node_id": 84, "universal_type": "function", "name": "tag)", "text_snippet": "scsi_set_tag_type(struct scsi_device *sdev, int tag)"}, {"node_id": 140, "universal_type": "function", "name": "scsi_activate_tcq", "text_snippet": "static inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (!sdev->tagged_suppo"}, {"node_id": 144, "universal_type": "function", "name": "depth)", "text_snippet": "scsi_activate_tcq(struct scsi_device *sdev, int depth)"}, {"node_id": 196, "universal_type": "function", "name": "scsi_deactivate_tcq", "text_snippet": "static inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (blk_queue_tagged("}, {"node_id": 200, "universal_type": "function", "name": "depth)", "text_snippet": "scsi_deactivate_tcq(struct scsi_device *sdev, int depth)"}, {"node_id": 233, "universal_type": "function", "name": "scsi_populate_tag_msg", "text_snippet": "static inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *"}, {"node_id": 237, "universal_type": "function", "name": "unknown", "text_snippet": "scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)"}, {"node_id": 292, "universal_type": "function", "name": "scsi_cmnd", "text_snippet": "static inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct r"}, {"node_id": 300, "universal_type": "function", "name": "tag)", "text_snippet": "scsi_find_tag(struct scsi_device *sdev, int tag)"}, {"node_id": 356, "universal_type": "function", "name": "scsi_init_shared_tag_map", "text_snippet": "static inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n\t/*\n\t * If the shar"}, {"node_id": 360, "universal_type": "function", "name": "depth)", "text_snippet": "scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)"}, {"node_id": 402, "universal_type": "function", "name": "scsi_cmnd", "text_snippet": "static inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)\n{\n\tstruct"}, {"node_id": 410, "universal_type": "function", "name": "tag)", "text_snippet": "scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)"}], "class_declarations": [{"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 49, "universal_type": "class", "name": "scsi_device", "text_snippet": "struct scsi_device"}, {"node_id": 50, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 81, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 88, "universal_type": "class", "name": "scsi_device", "text_snippet": "struct scsi_device"}, {"node_id": 89, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 141, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 148, "universal_type": "class", "name": "scsi_device", "text_snippet": "struct scsi_device"}, {"node_id": 149, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 197, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 204, "universal_type": "class", "name": "scsi_device", "text_snippet": "struct scsi_device"}, {"node_id": 205, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 234, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 241, "universal_type": "class", "name": "scsi_cmnd", "text_snippet": "struct scsi_cmnd"}, {"node_id": 242, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 253, "universal_type": "class", "name": "request", "text_snippet": "struct request"}, {"node_id": 254, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 293, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 295, "universal_type": "class", "name": "scsi_cmnd", "text_snippet": "struct scsi_cmnd"}, {"node_id": 296, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 304, "universal_type": "class", "name": "scsi_device", "text_snippet": "struct scsi_device"}, {"node_id": 305, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 314, "universal_type": "class", "name": "request", "text_snippet": "struct request"}, {"node_id": 315, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 342, "universal_type": "class", "name": "scsi_cmnd", "text_snippet": "struct scsi_cmnd"}, {"node_id": 343, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 357, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 364, "universal_type": "class", "name": "Scsi_Host", "text_snippet": "struct Scsi_Host"}, {"node_id": 365, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 403, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 405, "universal_type": "class", "name": "scsi_cmnd", "text_snippet": "struct scsi_cmnd"}, {"node_id": 406, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 414, "universal_type": "class", "name": "Scsi_Host", "text_snippet": "struct Scsi_Host"}, {"node_id": 415, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 424, "universal_type": "class", "name": "request", "text_snippet": "struct request"}, {"node_id": 425, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 452, "universal_type": "class", "name": "scsi_cmnd", "text_snippet": "struct scsi_cmnd"}, {"node_id": 453, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <linux/blkdev.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <scsi/scsi_cmnd.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <scsi/scsi_device.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <scsi/scsi_host.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef _SCSI_SCSI_TCQ_H\n#define _SCSI_SCSI_TCQ_H\n\n#include <linux/blkdev.h>\n#include <scsi/scsi_cmnd.h>\n#include <scsi/scsi_device.h>\n#include <scsi/scsi_host.h>\n\n#define MSG_SIMPLE_TAG\t0x20\n#define MSG_HEAD_TAG\t0x21\n#define MSG_ORDERED_TAG\t0x22\n#define MSG_ACA_TAG\t0x24\t/* unsupported */\n\n#define SCSI_NO_TAG\t(-1) /* identify no tag in use */\n\n#ifdef CONFIG_BLOCK\n\n/**\n * scsi_get_tag_type - get the type of tag the device supports\n * @sdev:\tthe scsi device\n *\n * Notes:\n *\tIf the drive only supports simple tags, returns MSG_SIMPLE_TAG\n *\tif it supports all tag types, returns MSG_ORDERED_TAG.\n */\nstatic inline int scsi_get_tag_type(struct scsi_device *sdev)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn 0;\n\tif (sdev->ordered_tags)\n\t\treturn MSG_ORDERED_TAG;\n\tif (sdev->simple_tags)\n\t\treturn MSG_SIMPLE_TAG;\n\treturn 0;\n}\n\nstatic inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)\n{\n\tswitch (tag) {\n\tcase MSG_ORDERED_TAG:\n\t\tsdev->ordered_tags = 1;\n\t\t/* fall through */\n\tcase MSG_SIMPLE_TAG:\n\t\tsdev->simple_tags = 1;\n\t\tbreak;\n\tcase 0:\n\t\t/* fall through */\n\tdefault:\n\t\tsdev->ordered_tags = 0;\n\t\tsdev->simple_tags = 0;\n\t\tbreak;\n\t}\n}\n/**\n * scsi_activate_tcq - turn on tag command queueing\n * @SDpnt:\tdevice to turn on TCQ for\n * @depth:\tqueue depth\n *\n * Notes:\n *\tEventually, I hope depth would be the maximum depth\n *\tthe device could cope with and the real queue depth\n *\twould be adjustable from 0 to depth.\n **/\nstatic inline void scsi_activate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (!sdev->tagged_supported)\n\t\treturn;\n\n\tif (!blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_init_tags(sdev->request_queue, depth,\n\t\t\t\t sdev->host->bqt);\n\n\tscsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);\n}\n\n/**\n * scsi_deactivate_tcq - turn off tag command queueing\n * @SDpnt:\tdevice to turn off TCQ for\n **/\nstatic inline void scsi_deactivate_tcq(struct scsi_device *sdev, int depth)\n{\n\tif (blk_queue_tagged(sdev->request_queue))\n\t\tblk_queue_free_tags(sdev->request_queue);\n\tscsi_adjust_queue_depth(sdev, 0, depth);\n}\n\n/**\n * scsi_populate_tag_msg - place a tag message in a buffer\n * @SCpnt:\tpointer to the Scsi_Cmnd for the tag\n * @msg:\tpointer to the area to place the tag\n *\n * Notes:\n *\tdesigned to create the correct type of tag message for the\n *\tparticular request. Returns the size of the tag message.\n *\tMay return 0 if TCQ is disabled for this device.\n **/\nstatic inline int scsi_populate_tag_msg(struct scsi_cmnd *cmd, char *msg)\n{\n struct request *req = cmd->request;\n\n if (blk_rq_tagged(req)) {\n\t\t*msg++ = MSG_SIMPLE_TAG;\n \t*msg++ = req->tag;\n \treturn 2;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_find_tag - find a tagged command by device\n * @SDpnt:\tpointer to the ScSI device\n * @tag:\tthe tag number\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_find_tag(struct scsi_device *sdev, int tag)\n{\n\n struct request *req;\n\n if (tag != SCSI_NO_TAG) {\n \treq = blk_queue_find_tag(sdev->request_queue, tag);\n\t return req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\n\t/* single command, look in space */\n\treturn sdev->current_cmnd;\n}\n\n/**\n * scsi_init_shared_tag_map - create a shared tag map\n * @shost:\tthe host to share the tag map among all devices\n * @depth:\tthe total depth of the map\n */\nstatic inline int scsi_init_shared_tag_map(struct Scsi_Host *shost, int depth)\n{\n\t/*\n\t * If the shared tag map isn't already initialized, do it now.\n\t * This saves callers from having to check ->bqt when setting up\n\t * devices on the shared host (for libata)\n\t */\n\tif (!shost->bqt) {\n\t\tshost->bqt = blk_init_tags(depth);\n\t\tif (!shost->bqt)\n\t\t\treturn -ENOMEM;\n\t}\n\n\treturn 0;\n}\n\n/**\n * scsi_host_find_tag - find the tagged command by host\n * @shost:\tpointer to scsi_host\n * @tag:\ttag of the scsi_cmnd\n *\n * Notes:\n *\tOnly works with tags allocated by the generic blk layer.\n **/\nstatic inline struct scsi_cmnd *scsi_host_find_tag(struct Scsi_Host *shost,\n\t\t\t\t\t\tint tag)\n{\n\tstruct request *req;\n\n\tif (tag != SCSI_NO_TAG) {\n\t\treq = blk_map_queue_find_tag(shost->bqt, tag);\n\t\treturn req ? (struct scsi_cmnd *)req->special : NULL;\n\t}\n\treturn NULL;\n}\n\n#endif /* CONFIG_BLOCK */\n#endif /* _SCSI_SCSI_TCQ_H */\n"}
80,786
c
#pragma once #ifndef _BUILDPACH_H_ #define _BUILDPACH_H_ #include <vector> #include "Angel.h" #include "Recast\Recast.h" using namespace std; struct AStarNode { int iIndex; int iF_score; }; // 估算多边形的面积 void CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea); //计算重心 void CalculateCentre(rcPolyMesh *PolyMesh, int *PolyCentre); // 获取点所在的多边形 int GetPloyIndex(vec3 vPoint); // 计算邻接 void CalculateContiguous(rcPolyMesh *PolyMesh, int ** con); // 计算邻接和重心 void CalculateContiguousAndCentre(rcPolyMesh *PolyMesh, bool ** con, vec3* centre); // 迪克斯特拉算法 void Dijkstra(int **con, int nploys, int v0, int *distance, int *path); // 寻找拐点 bool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartIndex, int *EndPoint, int EndIndex, int *Path, int *NextPoint, int &NextIndex); // 获取最短路 bool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); // A*算法 void AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from); // A*寻路 bool FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); #endif
23.69
48
(translation_unit) "ragma once \n#ifndef _BUILDPACH_H_ \n#define _BUILDPACH_H_ \n \n#include <vector> \n#include "Angel.h" \n#include "Recast\Recast.h" \n \nusing namespace std; \n \nstruct AStarNode \n{ \n int iIndex; \n int iF_score; \n}; \n \n// 估算多边形的面积 \nvoid CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea); \n \n//计算重心 \nvoid CalculateCentre(rcPolyMesh *PolyMesh, int *PolyCentre); \n \n// 获取点所在的多边形 \nint GetPloyIndex(vec3 vPoint); \n \n// 计算邻接 \nvoid CalculateContiguous(rcPolyMesh *PolyMesh, int ** con); \n \n// 计算邻接和重心 \nvoid CalculateContiguousAndCentre(rcPolyMesh *PolyMesh, bool ** con, vec3* centre); \n \n// 迪克斯特拉算法 \nvoid Dijkstra(int **con, int nploys, int v0, int *distance, int *path); \n \n// 寻找拐点 \nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartIndex, int *EndPoint, int EndIndex, \n int *Path, int *NextPoint, int &NextIndex); \n \n// 获取最短路 \nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); \n \n// A*算法 \nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from); \n \n// A*寻路 \nbool FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); \n \n#endif" (preproc_call) "ragma once \n#i" (preproc_directive) "ragma o" (preproc_arg) "ce \n#" (preproc_ifdef) "fndef _BUILDPACH_H_ \n#define _BUILDPACH_H_ \n \n#include <vector> \n#include "Angel.h" \n#include "Recast\Recast.h" \n \nusing namespace std; \n \nstruct AStarNode \n{ \n int iIndex; \n int iF_score; \n}; \n \n// 估算多边形的面积 \nvoid CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea); \n \n//计算重心 \nvoid CalculateCentre(rcPolyMesh *PolyMesh, int *PolyCentre); \n \n// 获取点所在的多边形 \nint GetPloyIndex(vec3 vPoint); \n \n// 计算邻接 \nvoid CalculateContiguous(rcPolyMesh *PolyMesh, int ** con); \n \n// 计算邻接和重心 \nvoid CalculateContiguousAndCentre(rcPolyMesh *PolyMesh, bool ** con, vec3* centre); \n \n// 迪克斯特拉算法 \nvoid Dijkstra(int **con, int nploys, int v0, int *distance, int *path); \n \n// 寻找拐点 \nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartIndex, int *EndPoint, int EndIndex, \n int *Path, int *NextPoint, int &NextIndex); \n \n// 获取最短路 \nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); \n \n// A*算法 \nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from); \n \n// A*寻路 \nbool FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect); \n \n#endif" (#ifndef) "fndef _" (identifier) "UILDPACH_H_ \n" (preproc_def) "efine _BUILDPACH_H_ \n \n" (#define) "efine _" (identifier) "UILDPACH_H_ \n" (preproc_include) "nclude <vector> \n#i" (#include) "nclude <" (system_lib_string) "ector> \n" (preproc_include) "nclude "Angel.h" \n#i" (#include) "nclude "" (string_literal) "ngel.h" \n" (") "n" (string_content) "gel.h" " (") "\n" (preproc_include) "nclude "Recast\Recast.h" \n \n" (#include) "nclude "" (string_literal) "ecast\Recast.h" \n" (") "e" (string_content) "cast\R" (escape_sequence) "ec" (string_content) "ast.h" " (") "\n" (declaration) "ing namespace std; \n" (type_identifier) "ing n" (identifier) "mespace s" (ERROR) "d; " (identifier) "d; " (;) "\n" (struct_specifier) "ruct AStarNode \n{ \n int iIndex; \n int iF_score; \n}; " (struct) "ruct A" (type_identifier) "tarNode \n" (field_declaration_list) "\n int iIndex; \n int iF_score; \n}; " ({) "\n" (field_declaration) "t iIndex; \n" (primitive_type) "t i" (field_identifier) "ndex; " (;) "\n" (field_declaration) "t iF_score; \n" (primitive_type) "t i" (field_identifier) "_score; " (;) "\n" (}) " " (;) "\n" (comment) " 估算多边形的面积 \nvoid CalculateAre" (declaration) "(rcPolyMesh *PolyMesh, int *PolyArea); \n \n//计算重心 \nvoid C" (primitive_type) "(rcP" (function_declarator) "lyMesh *PolyMesh, int *PolyArea); \n \n//计算重心 \nvoid " (identifier) "lyMesh *PolyM" (parameter_list) "esh, int *PolyArea); \n \n//计算重心 \nvoid " (() "e" (parameter_declaration) "sh, int *PolyArea); " (type_identifier) "sh, int *P" (pointer_declarator) "lyArea); " (*) "l" (identifier) "yArea); " (,) "\n" (parameter_declaration) "\n//计算重心 \nvoid" (primitive_type) "\n//" (pointer_declarator) "算重心 \nvoid" (*) "算" (identifier) "重心 \nvoid" ()) " " (;) "C" (comment) "lateCentre(rcPo" (declaration) "yMesh *PolyMesh, int *PolyCentre); \n \n// 获取点所在的多边形 \nint GetP" (primitive_type) "yMes" (function_declarator) " *PolyMesh, int *PolyCentre); \n \n// 获取点所在的多边形 \nint Get" (identifier) " *PolyMesh, int" (parameter_list) " *PolyCentre); \n \n// 获取点所在的多边形 \nint Get" (() " " (parameter_declaration) "*PolyCentre); \n \n// " (type_identifier) "*PolyCentr" (pointer_declarator) "); \n \n// " (*) ")" (identifier) "; \n \n// " (,) "获" (parameter_declaration) "点所在的多边形 \nint Ge" (primitive_type) "点所在" (pointer_declarator) "多边形 \nint Ge" (*) "多" (identifier) "边形 \nint Ge" ()) "t" (;) "P" (comment) "ndex(vec3 vPoint); \n \n// 计算邻接 \n" (declaration) "oid CalculateContiguous(rcPoly" (primitive_type) "oid" (function_declarator) "CalculateContiguous(rcPol" (identifier) "CalculateCon" (parameter_list) "tiguous(rcPol" (() "t" (parameter_declaration) "iguous(rcPo" (type_identifier) "iguo" (identifier) "s(rcPo" ()) "l" (;) "y" (comment) " *PolyMesh, int " (declaration) "* con); \n \n// 计算邻接和重心 \nvoid CalculateContiguousAndCentre(rc" (primitive_type) "* co" (function_declarator) "); \n \n// 计算邻接和重心 \nvoid CalculateContiguousAndCentre(r" (identifier) "); \n \n// 计算邻接和重心 \nv" (parameter_list) "oid CalculateContiguousAndCentre(r" (() "o" (parameter_declaration) "id CalculateContiguo" (type_identifier) "id Calcula" (pointer_declarator) "eContiguo" (*) "e" (identifier) "Contiguo" (,) "u" (parameter_declaration) "AndCentre(" (primitive_type) "And" (pointer_declarator) "entre(" (*) "e" (pointer_declarator) "ntre(" (*) "n" (identifier) "re(" ()) "r" (;) "c" (comment) "Mesh *PolyMesh, bool ** c" (declaration) "n, vec3* centre); \n \n// 迪克斯特拉算法 \nvoid Dijkstra(int **con, int nploys, int v0, int *" (primitive_type) "n, v" (function_declarator) "c3* centre); \n \n// 迪克斯特拉算法 \nvoid Dijkstra(int **con, int nploys, int v0, int " (identifier) "c3* centre); \n \n// 迪克斯特拉算法 \n" (parameter_list) "void Dijkstra(int **con, int nploys, int v0, int " (() "v" (parameter_declaration) "oid Dijkstra(int **c" (type_identifier) "oid Dijkst" (pointer_declarator) "a(int **c" (*) "a" (identifier) "(int **c" (,) "o" (parameter_declaration) ", int nploy" (primitive_type) ", in" (pointer_declarator) " nploy" (*) " " (pointer_declarator) "nploy" (*) "n" (identifier) "loy" (,) "s" (parameter_declaration) " int v0, int" (type_identifier) " int" (pointer_declarator) " v0, int" (*) " " (identifier) "0, int" ()) " " (;) "*" (comment) "ance, int *path); \n \n// 寻" (declaration) "拐点 \nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartI" (primitive_type) "拐点 \n" (function_declarator) "ool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int Start" (identifier) "ool Find" (parameter_list) "NextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int Start" (() "N" (parameter_declaration) "extPoint(" (primitive_type) "ext" (pointer_declarator) "oint(" (*) "o" (pointer_declarator) "int(" (*) "i" (identifier) "nt(" (,) "r" (parameter_declaration) "PolyMesh *" (primitive_type) "Pol" (identifier) "Mesh *" (,) "P" (parameter_declaration) "lyMesh" (primitive_type) "lyM" (identifier) "sh" (,) "," (parameter_declaration) "nt *StartPoin" (primitive_type) "nt " (pointer_declarator) "StartPoin" (*) "S" (identifier) "tartPoin" (,) "t" (parameter_declaration) " int Star" (primitive_type) " in" (pointer_declarator) " Star" (*) " " (identifier) "Star" ()) "t" (;) "I" (comment) ", int *EndPoint," (declaration) "int EndIndex, \n int *Path, int *NextPoint, int &NextIndex); \n \n// 获取最短路 \nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPo" (primitive_type) "int " (function_declarator) "ndIndex, \n int *Path, int *NextPoint, int &NextIndex); \n \n// 获取最短路 \nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndP" (identifier) "ndIndex, \n " (parameter_list) " int *Path, int *NextPoint, int &NextIndex); \n \n// 获取最短路 \nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndP" (() " " (parameter_declaration) " int *Path, int *" (type_identifier) " int *P" (pointer_declarator) "th, int *" (*) "t" (identifier) "h, int *" (,) "N" (parameter_declaration) "extPoint, int &" (primitive_type) "ext" (pointer_declarator) "oint, int &" (*) "o" (identifier) "int, int &" (,) "N" (parameter_declaration) "xtIndex); \n \n/" (primitive_type) "xtI" (identifier) "dex); \n \n/" (,) "/" (parameter_declaration) "获取最短路 \nbool F" (primitive_type) "获取最" (pointer_declarator) "路 \nbool F" (*) "路" (identifier) " \nbool F" (,) "i" (parameter_declaration) "dPath(rcPoly" (primitive_type) "dPa" (identifier) "h(rcPoly" (,) "M" (parameter_declaration) "esh, int " (primitive_type) "esh" (pointer_declarator) " int " (*) " " (identifier) "int " (,) "*" (parameter_declaration) "con, vec3 Star" (primitive_type) "con" (pointer_declarator) " vec3 Star" (*) " " (identifier) "vec3 Star" (,) "t" (parameter_declaration) "oint, vec3 End" (primitive_type) "oin" (ERROR) "," (&) "," (identifier) " vec3 End" ()) "P" (;) "o" (comment) " vector<vec3> &Vect" (declaration) "; \n \n// A*算法 \nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from" (primitive_type) "; \n " (function_declarator) "// A*算法 \nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_fro" (identifier) "// A*算法 " (parameter_list) "\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_fro" (() "\n" (parameter_declaration) "void AStar(bool **co" (type_identifier) "void AStar" (pointer_declarator) "bool **co" (*) "b" (identifier) "ool **co" (,) "n" (parameter_declaration) " int npol" (primitive_type) " in" (pointer_declarator) " npol" (*) " " (pointer_declarator) "npol" (*) "n" (identifier) "pol" (,) "y" (parameter_declaration) ", int iStart, i" (type_identifier) ", in" (identifier) " iStart, i" (,) "n" (parameter_declaration) " iEnd, vec3 *" (type_identifier) " iEn" (identifier) ", vec3 *" (,) "c" (parameter_declaration) "ntre, int *came_fr" (type_identifier) "ntre, " (ERROR) "int *cam" (<) "i" (identifier) "nt *" (>) "c" (&) "m" (identifier) "e_fr" ()) "o" (;) "m" (comment) " \n// A*寻路 \nb" (declaration) "ol FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec" (primitive_type) "ol F" (function_declarator) "ndPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, ve" (identifier) "ndPac" (parameter_list) "hOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, ve" (() "h" (parameter_declaration) "OfAStar(rc" (primitive_type) "OfAS" (pointer_declarator) "ar(rc" (*) "a" (pointer_declarator) "r(rc" (*) "r" (identifier) "(rc" (,) "P" (parameter_declaration) "lyMesh *Po" (primitive_type) "lyM" (identifier) "sh *Po" (,) "l" (parameter_declaration) "Mesh, bool" (primitive_type) "Mes" (identifier) ", bool" (,) " " (parameter_declaration) "*con, ve" (primitive_type) "*co" (identifier) ", ve" (,) "c" (parameter_declaration) " *centre, ve" (type_identifier) " *ce" (pointer_declarator) "tre, ve" (*) "t" (identifier) "re, ve" (,) "c" (parameter_declaration) " StartPoint, v" (primitive_type) " St" (pointer_declarator) "rtPoint, v" (*) "r" (identifier) "tPoint, v" ()) "e" (;) "c" (comment) "dPoint, vect" (declaration) "r<vec3> &Vect); \n \n#endif" (primitive_type) "r<ve" (function_declarator) "3> &Vect); \n \n#endif" (identifier) "3> &Vect); \n \n#" (parameter_list) "endif" (() "e" (parameter_declaration) "ndif" (type_identifier) "ndif" (pointer_declarator) "" (*) "" (identifier) "" (,) "" (parameter_declaration) "" (primitive_type) "" (pointer_declarator) "" (*) "" (pointer_declarator) "" (*) "" (identifier) "" (,) "" (parameter_declaration) "" (type_identifier) "" (pointer_declarator) "" (*) "" (identifier) "" (,) "" (parameter_declaration) "" (type_identifier) "" (identifier) "" (,) "" (parameter_declaration) "" (type_identifier) "" (identifier) "" (,) "" (parameter_declaration) "" (type_identifier) "" (ERROR) "" (<) "" (identifier) "" (>) "" (&) "" (identifier) "" ()) "" (;) "" (#endif) ""
363
4
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 23.69, "nodes": 274, "errors": 0, "source_hash": "01e061936ca0017aae14c77c722dd2d1232902c3e5118273813331b4c371e5c8", "categorized_nodes": 155}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\r\n#i", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "preproc_arg", "text": "ce\r\n#", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 16}}, {"id": 3, "type": "preproc_ifdef", "text": "fndef _BUILDPACH_H_\r\n#define _BUILDPACH_H_\r\n\r\n#include <vector>\r\n#include \"Angel.h\"\r\n#include \"Recast\\Recast.h\"\r\n\r\nusing namespace std;\r\n\r\nstruct AStarNode\r\n{\r\n\tint iIndex;\r\n\tint iF_score;\r\n};\r\n\r\n// \u4f30\u7b97\u591a\u8fb9\u5f62\u7684\u9762\u79ef\r\nvoid CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid CalculateCentre(rcPolyMesh *PolyMesh, int *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint GetPloyIndex(vec3 vPoint);\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\r\nvoid CalculateContiguous(rcPolyMesh *PolyMesh, int ** con);\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nvoid CalculateContiguousAndCentre(rcPolyMesh *PolyMesh, bool ** con, vec3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\nvoid Dijkstra(int **con, int nploys, int v0, int *distance, int *path);\r\n\r\n// \u5bfb\u627e\u62d0\u70b9\r\nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartIndex, int *EndPoint, int EndIndex, \r\n\t\t\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect);\r\n\r\n// A*\u7b97\u6cd5\r\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from);\r\n\r\n// A*\u5bfb\u8def\r\nbool FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect);\r\n\r\n#endif", "parent": null, "children": [4, 5, 6, 9, 12, 15, 19, 24, 33, 48, 62, 70, 87, 109, 137, 176, 206, 237, 273], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "fndef _", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "UILDPACH_H_\r\n", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_def", "text": "efine _BUILDPACH_H_\r\n\r\n", "parent": 3, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#define", "text": "efine _", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 8, "type": "identifier", "text": "UILDPACH_H_\r\n", "parent": 6, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "nclude <vector>\r\n#i", "parent": 3, "children": [10, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 10, "type": "#include", "text": "nclude <", "parent": 9, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "ector>\r\n", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "nclude \"Angel.h\"\r\n#i", "parent": 3, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 13, "type": "#include", "text": "nclude \"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 14, "type": "string_literal", "text": "ngel.h\"\r\n", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "nclude \"Recast\\Recast.h\"\r\n\r\n", "parent": 3, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "nclude \"", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "string_literal", "text": "ecast\\Recast.h\"\r\n", "parent": 15, "children": [18], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 26}}, {"id": 18, "type": "escape_sequence", "text": "ec", "parent": 17, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 18}}, {"id": 19, "type": "declaration", "text": "ing namespace std;\r\n", "parent": 3, "children": [20, 21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 20}}, {"id": 20, "type": "type_identifier", "text": "ing n", "parent": 19, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 5}}, {"id": 21, "type": "identifier", "text": "mespace s", "parent": 19, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 15}}, {"id": 22, "type": "ERROR", "text": "d;\r", "parent": 19, "children": [23], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 19}}, {"id": 23, "type": "identifier", "text": "d;\r", "parent": 22, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 19}}, {"id": 24, "type": "struct_specifier", "text": "ruct AStarNode\r\n{\r\n\tint iIndex;\r\n\tint iF_score;\r\n};\r", "parent": 3, "children": [25, 26], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 25, "type": "struct", "text": "ruct A", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 26, "type": "type_identifier", "text": "tarNode\r\n", "parent": 24, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 16}}, {"id": 27, "type": "field_declaration", "text": "t iIndex;\r\n", "parent": 24, "children": [28, 29], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 12}}, {"id": 28, "type": "primitive_type", "text": "t i", "parent": 27, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}, {"id": 29, "type": "field_identifier", "text": "ndex;\r", "parent": 27, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 11}}, {"id": 30, "type": "field_declaration", "text": "t iF_score;\r\n", "parent": 24, "children": [31, 32], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 14}}, {"id": 31, "type": "primitive_type", "text": "t i", "parent": 30, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 32, "type": "field_identifier", "text": "_score;\r", "parent": 30, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 13}}, {"id": 33, "type": "declaration", "text": "(rcPolyMesh *PolyMesh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid C", "parent": 3, "children": [34, 35], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 56}}, {"id": 34, "type": "primitive_type", "text": "(rcP", "parent": 33, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 35, "type": "function_declarator", "text": "lyMesh *PolyMesh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid ", "parent": 33, "children": [36, 37], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 55}}, {"id": 36, "type": "identifier", "text": "lyMesh *PolyM", "parent": 35, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 18}}, {"id": 37, "type": "parameter_list", "text": "esh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid ", "parent": 35, "children": [38, 43], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 55}}, {"id": 38, "type": "parameter_declaration", "text": "sh, int *PolyArea);\r", "parent": 37, "children": [39, 40], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 39}}, {"id": 39, "type": "type_identifier", "text": "sh, int *P", "parent": 38, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 29}}, {"id": 40, "type": "pointer_declarator", "text": "lyArea);\r", "parent": 38, "children": [41, 42], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 39}}, {"id": 41, "type": "*", "text": "l", "parent": 40, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 31}}, {"id": 42, "type": "identifier", "text": "yArea);\r", "parent": 40, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 39}}, {"id": 43, "type": "parameter_declaration", "text": "\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid", "parent": 37, "children": [44, 45], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 54}}, {"id": 44, "type": "primitive_type", "text": "\n//", "parent": 43, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 44}}, {"id": 45, "type": "pointer_declarator", "text": "\u7b97\u91cd\u5fc3\r\nvoid", "parent": 43, "children": [46, 47], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 54}}, {"id": 46, "type": "*", "text": "\u7b97", "parent": 45, "children": [], "start_point": {"row": 17, "column": 45}, "end_point": {"row": 17, "column": 46}}, {"id": 47, "type": "identifier", "text": "\u91cd\u5fc3\r\nvoid", "parent": 45, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 54}}, {"id": 48, "type": "declaration", "text": "yMesh *PolyMesh, int *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint GetP", "parent": 3, "children": [49, 50], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 60}}, {"id": 49, "type": "primitive_type", "text": "yMes", "parent": 48, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 4}}, {"id": 50, "type": "function_declarator", "text": " *PolyMesh, int *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint Get", "parent": 48, "children": [51, 52], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 59}}, {"id": 51, "type": "identifier", "text": " *PolyMesh, int", "parent": 50, "children": [], "start_point": {"row": 20, "column": 5}, "end_point": {"row": 20, "column": 20}}, {"id": 52, "type": "parameter_list", "text": " *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint Get", "parent": 50, "children": [53, 57], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 59}}, {"id": 53, "type": "parameter_declaration", "text": "*PolyCentre);\r\n\r\n// ", "parent": 52, "children": [54, 55], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 41}}, {"id": 54, "type": "type_identifier", "text": "*PolyCentr", "parent": 53, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 31}}, {"id": 55, "type": "pointer_declarator", "text": ");\r\n\r\n// ", "parent": 53, "children": [56], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 41}}, {"id": 56, "type": "identifier", "text": ";\r\n\r\n// ", "parent": 55, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 41}}, {"id": 57, "type": "parameter_declaration", "text": "\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint Ge", "parent": 52, "children": [58, 59], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 58}}, {"id": 58, "type": "primitive_type", "text": "\u70b9\u6240\u5728", "parent": 57, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 46}}, {"id": 59, "type": "pointer_declarator", "text": "\u591a\u8fb9\u5f62\r\nint Ge", "parent": 57, "children": [60, 61], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 58}}, {"id": 60, "type": "*", "text": "\u591a", "parent": 59, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 48}}, {"id": 61, "type": "identifier", "text": "\u8fb9\u5f62\r\nint Ge", "parent": 59, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 58}}, {"id": 62, "type": "declaration", "text": "oid CalculateContiguous(rcPoly", "parent": 3, "children": [63, 64], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 30}}, {"id": 63, "type": "primitive_type", "text": "oid", "parent": 62, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 3}}, {"id": 64, "type": "function_declarator", "text": "CalculateContiguous(rcPol", "parent": 62, "children": [65, 66], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 29}}, {"id": 65, "type": "identifier", "text": "CalculateCon", "parent": 64, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 16}}, {"id": 66, "type": "parameter_list", "text": "tiguous(rcPol", "parent": 64, "children": [67], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 29}}, {"id": 67, "type": "parameter_declaration", "text": "iguous(rcPo", "parent": 66, "children": [68, 69], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 28}}, {"id": 68, "type": "type_identifier", "text": "iguo", "parent": 67, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 69, "type": "identifier", "text": "s(rcPo", "parent": 67, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 28}}, {"id": 70, "type": "declaration", "text": "* con);\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nvoid CalculateContiguousAndCentre(rc", "parent": 3, "children": [71, 72], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 59}}, {"id": 71, "type": "primitive_type", "text": "* co", "parent": 70, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 72, "type": "function_declarator", "text": ");\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nvoid CalculateContiguousAndCentre(r", "parent": 70, "children": [73, 74], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 58}}, {"id": 73, "type": "identifier", "text": ");\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nv", "parent": 72, "children": [], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 24}}, {"id": 74, "type": "parameter_list", "text": "oid CalculateContiguousAndCentre(r", "parent": 72, "children": [75, 80], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 58}}, {"id": 75, "type": "parameter_declaration", "text": "id CalculateContiguo", "parent": 74, "children": [76, 77], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 45}}, {"id": 76, "type": "type_identifier", "text": "id Calcula", "parent": 75, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 35}}, {"id": 77, "type": "pointer_declarator", "text": "eContiguo", "parent": 75, "children": [78, 79], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 45}}, {"id": 78, "type": "*", "text": "e", "parent": 77, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 37}}, {"id": 79, "type": "identifier", "text": "Contiguo", "parent": 77, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 45}}, {"id": 80, "type": "parameter_declaration", "text": "AndCentre(", "parent": 74, "children": [81, 82], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 57}}, {"id": 81, "type": "primitive_type", "text": "And", "parent": 80, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 50}}, {"id": 82, "type": "pointer_declarator", "text": "entre(", "parent": 80, "children": [83, 84], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 57}}, {"id": 83, "type": "*", "text": "e", "parent": 82, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 52}}, {"id": 84, "type": "pointer_declarator", "text": "ntre(", "parent": 82, "children": [85, 86], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 57}}, {"id": 85, "type": "*", "text": "n", "parent": 84, "children": [], "start_point": {"row": 26, "column": 52}, "end_point": {"row": 26, "column": 53}}, {"id": 86, "type": "identifier", "text": "re(", "parent": 84, "children": [], "start_point": {"row": 26, "column": 54}, "end_point": {"row": 26, "column": 57}}, {"id": 87, "type": "declaration", "text": "n, vec3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\nvoid Dijkstra(int **con, int nploys, int v0, int *", "parent": 3, "children": [88, 89], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 83}}, {"id": 88, "type": "primitive_type", "text": "n, v", "parent": 87, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 89, "type": "function_declarator", "text": "c3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\nvoid Dijkstra(int **con, int nploys, int v0, int ", "parent": 87, "children": [90, 91], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 82}}, {"id": 90, "type": "identifier", "text": "c3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\n", "parent": 89, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 33}}, {"id": 91, "type": "parameter_list", "text": "void Dijkstra(int **con, int nploys, int v0, int ", "parent": 89, "children": [92, 97, 104], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 82}}, {"id": 92, "type": "parameter_declaration", "text": "oid Dijkstra(int **c", "parent": 91, "children": [93, 94], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 54}}, {"id": 93, "type": "type_identifier", "text": "oid Dijkst", "parent": 92, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 44}}, {"id": 94, "type": "pointer_declarator", "text": "a(int **c", "parent": 92, "children": [95, 96], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 54}}, {"id": 95, "type": "*", "text": "a", "parent": 94, "children": [], "start_point": {"row": 29, "column": 45}, "end_point": {"row": 29, "column": 46}}, {"id": 96, "type": "identifier", "text": "(int **c", "parent": 94, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 54}}, {"id": 97, "type": "parameter_declaration", "text": ", int nploy", "parent": 91, "children": [98, 99], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 67}}, {"id": 98, "type": "primitive_type", "text": ", in", "parent": 97, "children": [], "start_point": {"row": 29, "column": 56}, "end_point": {"row": 29, "column": 60}}, {"id": 99, "type": "pointer_declarator", "text": " nploy", "parent": 97, "children": [100, 101], "start_point": {"row": 29, "column": 61}, "end_point": {"row": 29, "column": 67}}, {"id": 100, "type": "*", "text": " ", "parent": 99, "children": [], "start_point": {"row": 29, "column": 61}, "end_point": {"row": 29, "column": 62}}, {"id": 101, "type": "pointer_declarator", "text": "nploy", "parent": 99, "children": [102, 103], "start_point": {"row": 29, "column": 62}, "end_point": {"row": 29, "column": 67}}, {"id": 102, "type": "*", "text": "n", "parent": 101, "children": [], "start_point": {"row": 29, "column": 62}, "end_point": {"row": 29, "column": 63}}, {"id": 103, "type": "identifier", "text": "loy", "parent": 101, "children": [], "start_point": {"row": 29, "column": 64}, "end_point": {"row": 29, "column": 67}}, {"id": 104, "type": "parameter_declaration", "text": " int v0, int", "parent": 91, "children": [105, 106], "start_point": {"row": 29, "column": 69}, "end_point": {"row": 29, "column": 81}}, {"id": 105, "type": "type_identifier", "text": " int", "parent": 104, "children": [], "start_point": {"row": 29, "column": 69}, "end_point": {"row": 29, "column": 73}}, {"id": 106, "type": "pointer_declarator", "text": " v0, int", "parent": 104, "children": [107, 108], "start_point": {"row": 29, "column": 73}, "end_point": {"row": 29, "column": 81}}, {"id": 107, "type": "*", "text": " ", "parent": 106, "children": [], "start_point": {"row": 29, "column": 73}, "end_point": {"row": 29, "column": 74}}, {"id": 108, "type": "identifier", "text": "0, int", "parent": 106, "children": [], "start_point": {"row": 29, "column": 75}, "end_point": {"row": 29, "column": 81}}, {"id": 109, "type": "declaration", "text": "\u62d0\u70b9\r\nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartI", "parent": 3, "children": [110, 111], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 71}}, {"id": 110, "type": "primitive_type", "text": "\u62d0\u70b9\r\n", "parent": 109, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 4}}, {"id": 111, "type": "function_declarator", "text": "ool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int Start", "parent": 109, "children": [112, 113], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 70}}, {"id": 112, "type": "identifier", "text": "ool Find", "parent": 111, "children": [], "start_point": {"row": 32, "column": 5}, "end_point": {"row": 32, "column": 13}}, {"id": 113, "type": "parameter_list", "text": "NextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int Start", "parent": 111, "children": [114, 121, 124, 127, 132], "start_point": {"row": 32, "column": 13}, "end_point": {"row": 32, "column": 70}}, {"id": 114, "type": "parameter_declaration", "text": "extPoint(", "parent": 113, "children": [115, 116], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 23}}, {"id": 115, "type": "primitive_type", "text": "ext", "parent": 114, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 17}}, {"id": 116, "type": "pointer_declarator", "text": "oint(", "parent": 114, "children": [117, 118], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 23}}, {"id": 117, "type": "*", "text": "o", "parent": 116, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 19}}, {"id": 118, "type": "pointer_declarator", "text": "int(", "parent": 116, "children": [119, 120], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 23}}, {"id": 119, "type": "*", "text": "i", "parent": 118, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 120, "type": "identifier", "text": "nt(", "parent": 118, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 23}}, {"id": 121, "type": "parameter_declaration", "text": "PolyMesh *", "parent": 113, "children": [122, 123], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 35}}, {"id": 122, "type": "primitive_type", "text": "Pol", "parent": 121, "children": [], "start_point": {"row": 32, "column": 25}, "end_point": {"row": 32, "column": 28}}, {"id": 123, "type": "identifier", "text": "Mesh *", "parent": 121, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 35}}, {"id": 124, "type": "parameter_declaration", "text": "lyMesh", "parent": 113, "children": [125, 126], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 43}}, {"id": 125, "type": "primitive_type", "text": "lyM", "parent": 124, "children": [], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 40}}, {"id": 126, "type": "identifier", "text": "sh", "parent": 124, "children": [], "start_point": {"row": 32, "column": 41}, "end_point": {"row": 32, "column": 43}}, {"id": 127, "type": "parameter_declaration", "text": "nt *StartPoin", "parent": 113, "children": [128, 129], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 58}}, {"id": 128, "type": "primitive_type", "text": "nt ", "parent": 127, "children": [], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 48}}, {"id": 129, "type": "pointer_declarator", "text": "StartPoin", "parent": 127, "children": [130, 131], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 58}}, {"id": 130, "type": "*", "text": "S", "parent": 129, "children": [], "start_point": {"row": 32, "column": 49}, "end_point": {"row": 32, "column": 50}}, {"id": 131, "type": "identifier", "text": "tartPoin", "parent": 129, "children": [], "start_point": {"row": 32, "column": 50}, "end_point": {"row": 32, "column": 58}}, {"id": 132, "type": "parameter_declaration", "text": " int Star", "parent": 113, "children": [133, 134], "start_point": {"row": 32, "column": 60}, "end_point": {"row": 32, "column": 69}}, {"id": 133, "type": "primitive_type", "text": " in", "parent": 132, "children": [], "start_point": {"row": 32, "column": 60}, "end_point": {"row": 32, "column": 63}}, {"id": 134, "type": "pointer_declarator", "text": " Star", "parent": 132, "children": [135, 136], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 69}}, {"id": 135, "type": "*", "text": " ", "parent": 134, "children": [], "start_point": {"row": 32, "column": 64}, "end_point": {"row": 32, "column": 65}}, {"id": 136, "type": "identifier", "text": "Star", "parent": 134, "children": [], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 69}}, {"id": 137, "type": "declaration", "text": "int EndIndex, \r\n\t\t\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPo", "parent": 3, "children": [138, 139], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 50}}, {"id": 138, "type": "primitive_type", "text": "int ", "parent": 137, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 4}}, {"id": 139, "type": "function_declarator", "text": "ndIndex, \r\n\t\t\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndP", "parent": 137, "children": [140, 141], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 36, "column": 49}}, {"id": 140, "type": "identifier", "text": "ndIndex, \r\n\t\t", "parent": 139, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 18}}, {"id": 141, "type": "parameter_list", "text": "\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndP", "parent": 139, "children": [142, 147, 152, 155, 160, 163, 168, 173], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 36, "column": 49}}, {"id": 142, "type": "parameter_declaration", "text": "\t int *Path, int *", "parent": 141, "children": [143, 144], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 39}}, {"id": 143, "type": "type_identifier", "text": "\t int *P", "parent": 142, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 29}}, {"id": 144, "type": "pointer_declarator", "text": "th, int *", "parent": 142, "children": [145, 146], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 39}}, {"id": 145, "type": "*", "text": "t", "parent": 144, "children": [], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 31}}, {"id": 146, "type": "identifier", "text": "h, int *", "parent": 144, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 39}}, {"id": 147, "type": "parameter_declaration", "text": "extPoint, int &", "parent": 141, "children": [148, 149], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 55}}, {"id": 148, "type": "primitive_type", "text": "ext", "parent": 147, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 43}}, {"id": 149, "type": "pointer_declarator", "text": "oint, int &", "parent": 147, "children": [150, 151], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 55}}, {"id": 150, "type": "*", "text": "o", "parent": 149, "children": [], "start_point": {"row": 35, "column": 44}, "end_point": {"row": 35, "column": 45}}, {"id": 151, "type": "identifier", "text": "int, int &", "parent": 149, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 55}}, {"id": 152, "type": "parameter_declaration", "text": "xtIndex);\r\n\r\n/", "parent": 141, "children": [153, 154], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 71}}, {"id": 153, "type": "primitive_type", "text": "xtI", "parent": 152, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 60}}, {"id": 154, "type": "identifier", "text": "dex);\r\n\r\n/", "parent": 152, "children": [], "start_point": {"row": 35, "column": 61}, "end_point": {"row": 35, "column": 71}}, {"id": 155, "type": "parameter_declaration", "text": "\u83b7\u53d6\u6700\u77ed\u8def\r\nbool F", "parent": 141, "children": [156, 157], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 86}}, {"id": 156, "type": "primitive_type", "text": "\u83b7\u53d6\u6700", "parent": 155, "children": [], "start_point": {"row": 35, "column": 73}, "end_point": {"row": 35, "column": 76}}, {"id": 157, "type": "pointer_declarator", "text": "\u8def\r\nbool F", "parent": 155, "children": [158, 159], "start_point": {"row": 35, "column": 77}, "end_point": {"row": 35, "column": 86}}, {"id": 158, "type": "*", "text": "\u8def", "parent": 157, "children": [], "start_point": {"row": 35, "column": 77}, "end_point": {"row": 35, "column": 78}}, {"id": 159, "type": "identifier", "text": "\r\nbool F", "parent": 157, "children": [], "start_point": {"row": 35, "column": 78}, "end_point": {"row": 35, "column": 86}}, {"id": 160, "type": "parameter_declaration", "text": "dPath(rcPoly", "parent": 141, "children": [161, 162], "start_point": {"row": 35, "column": 88}, "end_point": {"row": 35, "column": 100}}, {"id": 161, "type": "primitive_type", "text": "dPa", "parent": 160, "children": [], "start_point": {"row": 35, "column": 88}, "end_point": {"row": 35, "column": 91}}, {"id": 162, "type": "identifier", "text": "h(rcPoly", "parent": 160, "children": [], "start_point": {"row": 35, "column": 92}, "end_point": {"row": 35, "column": 100}}, {"id": 163, "type": "parameter_declaration", "text": "esh, int ", "parent": 141, "children": [164, 165], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 16}}, {"id": 164, "type": "primitive_type", "text": "esh", "parent": 163, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 165, "type": "pointer_declarator", "text": " int ", "parent": 163, "children": [166, 167], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 16}}, {"id": 166, "type": "*", "text": " ", "parent": 165, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 12}}, {"id": 167, "type": "identifier", "text": "int ", "parent": 165, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 16}}, {"id": 168, "type": "parameter_declaration", "text": "con, vec3 Star", "parent": 141, "children": [169, 170], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 32}}, {"id": 169, "type": "primitive_type", "text": "con", "parent": 168, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 21}}, {"id": 170, "type": "pointer_declarator", "text": " vec3 Star", "parent": 168, "children": [171, 172], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 32}}, {"id": 171, "type": "*", "text": " ", "parent": 170, "children": [], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 23}}, {"id": 172, "type": "identifier", "text": "vec3 Star", "parent": 170, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 32}}, {"id": 173, "type": "parameter_declaration", "text": "oint, vec3 End", "parent": 141, "children": [174, 175], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 48}}, {"id": 174, "type": "primitive_type", "text": "oin", "parent": 173, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 37}}, {"id": 175, "type": "identifier", "text": " vec3 End", "parent": 173, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 48}}, {"id": 176, "type": "declaration", "text": ";\r\n\r\n// A*\u7b97\u6cd5\r\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from", "parent": 3, "children": [177], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 99}}, {"id": 177, "type": "function_declarator", "text": "// A*\u7b97\u6cd5\r\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_fro", "parent": 176, "children": [178, 179], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 98}}, {"id": 178, "type": "identifier", "text": "// A*\u7b97\u6cd5\r", "parent": 177, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 13}}, {"id": 179, "type": "parameter_list", "text": "\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_fro", "parent": 177, "children": [180, 185, 192, 195, 198], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 98}}, {"id": 180, "type": "parameter_declaration", "text": "void AStar(bool **co", "parent": 179, "children": [181, 182], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 34}}, {"id": 181, "type": "type_identifier", "text": "void AStar", "parent": 180, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 24}}, {"id": 182, "type": "pointer_declarator", "text": "bool **co", "parent": 180, "children": [183, 184], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 34}}, {"id": 183, "type": "*", "text": "b", "parent": 182, "children": [], "start_point": {"row": 39, "column": 25}, "end_point": {"row": 39, "column": 26}}, {"id": 184, "type": "identifier", "text": "ool **co", "parent": 182, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 34}}, {"id": 185, "type": "parameter_declaration", "text": " int npol", "parent": 179, "children": [186, 187], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 45}}, {"id": 186, "type": "primitive_type", "text": " in", "parent": 185, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 39}}, {"id": 187, "type": "pointer_declarator", "text": " npol", "parent": 185, "children": [188, 189], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 45}}, {"id": 188, "type": "*", "text": " ", "parent": 187, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 41}}, {"id": 189, "type": "pointer_declarator", "text": "npol", "parent": 187, "children": [190, 191], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 45}}, {"id": 190, "type": "*", "text": "n", "parent": 189, "children": [], "start_point": {"row": 39, "column": 41}, "end_point": {"row": 39, "column": 42}}, {"id": 191, "type": "identifier", "text": "pol", "parent": 189, "children": [], "start_point": {"row": 39, "column": 42}, "end_point": {"row": 39, "column": 45}}, {"id": 192, "type": "parameter_declaration", "text": ", int iStart, i", "parent": 179, "children": [193, 194], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 62}}, {"id": 193, "type": "type_identifier", "text": ", in", "parent": 192, "children": [], "start_point": {"row": 39, "column": 47}, "end_point": {"row": 39, "column": 51}}, {"id": 194, "type": "identifier", "text": " iStart, i", "parent": 192, "children": [], "start_point": {"row": 39, "column": 52}, "end_point": {"row": 39, "column": 62}}, {"id": 195, "type": "parameter_declaration", "text": " iEnd, vec3 *", "parent": 179, "children": [196, 197], "start_point": {"row": 39, "column": 64}, "end_point": {"row": 39, "column": 77}}, {"id": 196, "type": "type_identifier", "text": " iEn", "parent": 195, "children": [], "start_point": {"row": 39, "column": 64}, "end_point": {"row": 39, "column": 68}}, {"id": 197, "type": "identifier", "text": ", vec3 *", "parent": 195, "children": [], "start_point": {"row": 39, "column": 69}, "end_point": {"row": 39, "column": 77}}, {"id": 198, "type": "parameter_declaration", "text": "ntre, int *came_fr", "parent": 179, "children": [199, 200, 205], "start_point": {"row": 39, "column": 79}, "end_point": {"row": 39, "column": 97}}, {"id": 199, "type": "type_identifier", "text": "ntre, ", "parent": 198, "children": [], "start_point": {"row": 39, "column": 79}, "end_point": {"row": 39, "column": 85}}, {"id": 200, "type": "ERROR", "text": "int *cam", "parent": 198, "children": [201, 202, 203, 204], "start_point": {"row": 39, "column": 85}, "end_point": {"row": 39, "column": 93}}, {"id": 201, "type": "<", "text": "i", "parent": 200, "children": [], "start_point": {"row": 39, "column": 85}, "end_point": {"row": 39, "column": 86}}, {"id": 202, "type": "identifier", "text": "nt *", "parent": 200, "children": [], "start_point": {"row": 39, "column": 86}, "end_point": {"row": 39, "column": 90}}, {"id": 203, "type": ">", "text": "c", "parent": 200, "children": [], "start_point": {"row": 39, "column": 90}, "end_point": {"row": 39, "column": 91}}, {"id": 204, "type": "&", "text": "m", "parent": 200, "children": [], "start_point": {"row": 39, "column": 92}, "end_point": {"row": 39, "column": 93}}, {"id": 205, "type": "identifier", "text": "e_fr", "parent": 198, "children": [], "start_point": {"row": 39, "column": 93}, "end_point": {"row": 39, "column": 97}}, {"id": 206, "type": "declaration", "text": "ol FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec", "parent": 3, "children": [207, 208], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 87}}, {"id": 207, "type": "primitive_type", "text": "ol F", "parent": 206, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 208, "type": "function_declarator", "text": "ndPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, ve", "parent": 206, "children": [209, 210], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 86}}, {"id": 209, "type": "identifier", "text": "ndPac", "parent": 208, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 10}}, {"id": 210, "type": "parameter_list", "text": "hOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, ve", "parent": 208, "children": [211, 218, 221, 224, 227, 232], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 86}}, {"id": 211, "type": "parameter_declaration", "text": "OfAStar(rc", "parent": 210, "children": [212, 213], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 21}}, {"id": 212, "type": "primitive_type", "text": "OfAS", "parent": 211, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 15}}, {"id": 213, "type": "pointer_declarator", "text": "ar(rc", "parent": 211, "children": [214, 215], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 21}}, {"id": 214, "type": "*", "text": "a", "parent": 213, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 17}}, {"id": 215, "type": "pointer_declarator", "text": "r(rc", "parent": 213, "children": [216, 217], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 21}}, {"id": 216, "type": "*", "text": "r", "parent": 215, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 18}}, {"id": 217, "type": "identifier", "text": "(rc", "parent": 215, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 21}}, {"id": 218, "type": "parameter_declaration", "text": "lyMesh *Po", "parent": 210, "children": [219, 220], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 33}}, {"id": 219, "type": "primitive_type", "text": "lyM", "parent": 218, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 26}}, {"id": 220, "type": "identifier", "text": "sh *Po", "parent": 218, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 33}}, {"id": 221, "type": "parameter_declaration", "text": "Mesh, bool", "parent": 210, "children": [222, 223], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 45}}, {"id": 222, "type": "primitive_type", "text": "Mes", "parent": 221, "children": [], "start_point": {"row": 42, "column": 35}, "end_point": {"row": 42, "column": 38}}, {"id": 223, "type": "identifier", "text": ", bool", "parent": 221, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 45}}, {"id": 224, "type": "parameter_declaration", "text": "*con, ve", "parent": 210, "children": [225, 226], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 55}}, {"id": 225, "type": "primitive_type", "text": "*co", "parent": 224, "children": [], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 50}}, {"id": 226, "type": "identifier", "text": ", ve", "parent": 224, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 55}}, {"id": 227, "type": "parameter_declaration", "text": " *centre, ve", "parent": 210, "children": [228, 229], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 69}}, {"id": 228, "type": "type_identifier", "text": " *ce", "parent": 227, "children": [], "start_point": {"row": 42, "column": 57}, "end_point": {"row": 42, "column": 61}}, {"id": 229, "type": "pointer_declarator", "text": "tre, ve", "parent": 227, "children": [230, 231], "start_point": {"row": 42, "column": 62}, "end_point": {"row": 42, "column": 69}}, {"id": 230, "type": "*", "text": "t", "parent": 229, "children": [], "start_point": {"row": 42, "column": 62}, "end_point": {"row": 42, "column": 63}}, {"id": 231, "type": "identifier", "text": "re, ve", "parent": 229, "children": [], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 69}}, {"id": 232, "type": "parameter_declaration", "text": " StartPoint, v", "parent": 210, "children": [233, 234], "start_point": {"row": 42, "column": 71}, "end_point": {"row": 42, "column": 85}}, {"id": 233, "type": "primitive_type", "text": " St", "parent": 232, "children": [], "start_point": {"row": 42, "column": 71}, "end_point": {"row": 42, "column": 74}}, {"id": 234, "type": "pointer_declarator", "text": "rtPoint, v", "parent": 232, "children": [235, 236], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 85}}, {"id": 235, "type": "*", "text": "r", "parent": 234, "children": [], "start_point": {"row": 42, "column": 75}, "end_point": {"row": 42, "column": 76}}, {"id": 236, "type": "identifier", "text": "tPoint, v", "parent": 234, "children": [], "start_point": {"row": 42, "column": 76}, "end_point": {"row": 42, "column": 85}}, {"id": 237, "type": "declaration", "text": "r<vec3> &Vect);\r\n\r\n#endif", "parent": 3, "children": [238, 239], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 121}}, {"id": 238, "type": "primitive_type", "text": "r<ve", "parent": 237, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 4}}, {"id": 239, "type": "function_declarator", "text": "3> &Vect);\r\n\r\n#endif", "parent": 237, "children": [240, 241], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 120}}, {"id": 240, "type": "identifier", "text": "3> &Vect);\r\n\r\n#", "parent": 239, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 20}}, {"id": 241, "type": "parameter_list", "text": "endif", "parent": 239, "children": [242, 247, 254, 259, 262, 265], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 120}}, {"id": 242, "type": "parameter_declaration", "text": "ndif", "parent": 241, "children": [243, 244], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 41}}, {"id": 243, "type": "type_identifier", "text": "ndif", "parent": 242, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 31}}, {"id": 244, "type": "pointer_declarator", "text": "", "parent": 242, "children": [245, 246], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 41}}, {"id": 245, "type": "*", "text": "", "parent": 244, "children": [], "start_point": {"row": 45, "column": 32}, "end_point": {"row": 45, "column": 33}}, {"id": 246, "type": "identifier", "text": "", "parent": 244, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 41}}, {"id": 247, "type": "parameter_declaration", "text": "", "parent": 241, "children": [248, 249], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 53}}, {"id": 248, "type": "primitive_type", "text": "", "parent": 247, "children": [], "start_point": {"row": 45, "column": 43}, "end_point": {"row": 45, "column": 47}}, {"id": 249, "type": "pointer_declarator", "text": "", "parent": 247, "children": [250, 251], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 53}}, {"id": 250, "type": "*", "text": "", "parent": 249, "children": [], "start_point": {"row": 45, "column": 48}, "end_point": {"row": 45, "column": 49}}, {"id": 251, "type": "pointer_declarator", "text": "", "parent": 249, "children": [252, 253], "start_point": {"row": 45, "column": 49}, "end_point": {"row": 45, "column": 53}}, {"id": 252, "type": "*", "text": "", "parent": 251, "children": [], "start_point": {"row": 45, "column": 49}, "end_point": {"row": 45, "column": 50}}, {"id": 253, "type": "identifier", "text": "", "parent": 251, "children": [], "start_point": {"row": 45, "column": 50}, "end_point": {"row": 45, "column": 53}}, {"id": 254, "type": "parameter_declaration", "text": "", "parent": 241, "children": [255, 256], "start_point": {"row": 45, "column": 55}, "end_point": {"row": 45, "column": 67}}, {"id": 255, "type": "type_identifier", "text": "", "parent": 254, "children": [], "start_point": {"row": 45, "column": 55}, "end_point": {"row": 45, "column": 59}}, {"id": 256, "type": "pointer_declarator", "text": "", "parent": 254, "children": [257, 258], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 67}}, {"id": 257, "type": "*", "text": "", "parent": 256, "children": [], "start_point": {"row": 45, "column": 60}, "end_point": {"row": 45, "column": 61}}, {"id": 258, "type": "identifier", "text": "", "parent": 256, "children": [], "start_point": {"row": 45, "column": 61}, "end_point": {"row": 45, "column": 67}}, {"id": 259, "type": "parameter_declaration", "text": "", "parent": 241, "children": [260, 261], "start_point": {"row": 45, "column": 69}, "end_point": {"row": 45, "column": 84}}, {"id": 260, "type": "type_identifier", "text": "", "parent": 259, "children": [], "start_point": {"row": 45, "column": 69}, "end_point": {"row": 45, "column": 73}}, {"id": 261, "type": "identifier", "text": "", "parent": 259, "children": [], "start_point": {"row": 45, "column": 74}, "end_point": {"row": 45, "column": 84}}, {"id": 262, "type": "parameter_declaration", "text": "", "parent": 241, "children": [263, 264], "start_point": {"row": 45, "column": 86}, "end_point": {"row": 45, "column": 99}}, {"id": 263, "type": "type_identifier", "text": "", "parent": 262, "children": [], "start_point": {"row": 45, "column": 86}, "end_point": {"row": 45, "column": 90}}, {"id": 264, "type": "identifier", "text": "", "parent": 262, "children": [], "start_point": {"row": 45, "column": 91}, "end_point": {"row": 45, "column": 99}}, {"id": 265, "type": "parameter_declaration", "text": "", "parent": 241, "children": [266, 267, 272], "start_point": {"row": 45, "column": 101}, "end_point": {"row": 45, "column": 119}}, {"id": 266, "type": "type_identifier", "text": "", "parent": 265, "children": [], "start_point": {"row": 45, "column": 101}, "end_point": {"row": 45, "column": 107}}, {"id": 267, "type": "ERROR", "text": "", "parent": 265, "children": [268, 269, 270, 271], "start_point": {"row": 45, "column": 107}, "end_point": {"row": 45, "column": 115}}, {"id": 268, "type": "<", "text": "", "parent": 267, "children": [], "start_point": {"row": 45, "column": 107}, "end_point": {"row": 45, "column": 108}}, {"id": 269, "type": "identifier", "text": "", "parent": 267, "children": [], "start_point": {"row": 45, "column": 108}, "end_point": {"row": 45, "column": 112}}, {"id": 270, "type": ">", "text": "", "parent": 267, "children": [], "start_point": {"row": 45, "column": 112}, "end_point": {"row": 45, "column": 113}}, {"id": 271, "type": "&", "text": "", "parent": 267, "children": [], "start_point": {"row": 45, "column": 114}, "end_point": {"row": 45, "column": 115}}, {"id": 272, "type": "identifier", "text": "", "parent": 265, "children": [], "start_point": {"row": 45, "column": 115}, "end_point": {"row": 45, "column": 119}}, {"id": 273, "type": "#endif", "text": "", "parent": 3, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [35, 50, 64, 72, 89, 111, 139, 177, 208, 239], "variables": [19, 27, 30, 33, 38, 43, 48, 53, 57, 62, 67, 70, 75, 80, 87, 92, 97, 104, 109, 114, 121, 124, 127, 132, 137, 142, 147, 152, 155, 160, 163, 168, 173, 176, 180, 185, 192, 195, 198, 206, 211, 218, 221, 224, 227, 232, 237, 242, 247, 254, 259, 262, 265], "classes": [24, 25], "imports": [9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 20, 21, 23, 26, 29, 32, 36, 39, 42, 47, 51, 54, 56, 61, 65, 68, 69, 73, 76, 79, 86, 90, 93, 96, 103, 105, 108, 112, 120, 123, 126, 131, 136, 140, 143, 146, 151, 154, 159, 162, 167, 172, 175, 178, 181, 184, 191, 193, 194, 196, 197, 199, 202, 205, 209, 217, 220, 223, 226, 228, 231, 236, 240, 243, 246, 253, 255, 258, 260, 261, 263, 264, 266, 269, 272, 273], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 35, "universal_type": "function", "name": "*PolyArea);", "text_snippet": "lyMesh *PolyMesh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid "}, {"node_id": 50, "universal_type": "function", "name": "*PolyCentre);", "text_snippet": " *PolyMesh, int *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint Get"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "CalculateContiguous(rcPol"}, {"node_id": 72, "universal_type": "function", "name": "CalculateContiguousAndCentre", "text_snippet": ");\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nvoid CalculateContiguousAndCentre(r"}, {"node_id": 89, "universal_type": "function", "name": "Dijkstra", "text_snippet": "c3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\nvoid Dijkstra(int **con, int nploys, int v0, int "}, {"node_id": 111, "universal_type": "function", "name": "Start", "text_snippet": "ool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int Start"}, {"node_id": 139, "universal_type": "function", "name": "*Path,", "text_snippet": "ndIndex, \r\n\t\t\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh "}, {"node_id": 177, "universal_type": "function", "name": "AStar", "text_snippet": "// A*\u7b97\u6cd5\r\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_fro"}, {"node_id": 208, "universal_type": "function", "name": "**con,", "text_snippet": "ndPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, ve"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "3> &Vect);\r\n\r\n#endif"}], "class_declarations": [{"node_id": 24, "universal_type": "class", "name": "iIndex;", "text_snippet": "ruct AStarNode\r\n{\r\n\tint iIndex;\r\n\tint iF_score;\r\n};\r"}, {"node_id": 25, "universal_type": "class", "name": "unknown", "text_snippet": "ruct A"}], "import_statements": [{"node_id": 9, "text": "nclude <vector>\r\n#i"}, {"node_id": 10, "text": "nclude <"}, {"node_id": 12, "text": "nclude \"Angel.h\"\r\n#i"}, {"node_id": 13, "text": "nclude \""}, {"node_id": 15, "text": "nclude \"Recast\\Recast.h\"\r\n\r\n"}, {"node_id": 16, "text": "nclude \""}]}, "original_source_code": "\ufeff#pragma once\r\n#ifndef _BUILDPACH_H_\r\n#define _BUILDPACH_H_\r\n\r\n#include <vector>\r\n#include \"Angel.h\"\r\n#include \"Recast\\Recast.h\"\r\n\r\nusing namespace std;\r\n\r\nstruct AStarNode\r\n{\r\n\tint iIndex;\r\n\tint iF_score;\r\n};\r\n\r\n// \u4f30\u7b97\u591a\u8fb9\u5f62\u7684\u9762\u79ef\r\nvoid CalculateArea(rcPolyMesh *PolyMesh, int *PolyArea);\r\n\r\n//\u8ba1\u7b97\u91cd\u5fc3\r\nvoid CalculateCentre(rcPolyMesh *PolyMesh, int *PolyCentre);\r\n\r\n// \u83b7\u53d6\u70b9\u6240\u5728\u7684\u591a\u8fb9\u5f62\r\nint GetPloyIndex(vec3 vPoint);\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\r\nvoid CalculateContiguous(rcPolyMesh *PolyMesh, int ** con);\r\n\r\n// \u8ba1\u7b97\u90bb\u63a5\u548c\u91cd\u5fc3\r\nvoid CalculateContiguousAndCentre(rcPolyMesh *PolyMesh, bool ** con, vec3* centre);\r\n\r\n// \u8fea\u514b\u65af\u7279\u62c9\u7b97\u6cd5\r\nvoid Dijkstra(int **con, int nploys, int v0, int *distance, int *path);\r\n\r\n// \u5bfb\u627e\u62d0\u70b9\r\nbool FindNextPoint(rcPolyMesh *PolyMesh,int *StartPoint, int StartIndex, int *EndPoint, int EndIndex, \r\n\t\t\t\t int *Path, int *NextPoint, int &NextIndex);\r\n\r\n// \u83b7\u53d6\u6700\u77ed\u8def\r\nbool FindPath(rcPolyMesh *PolyMesh, int **con, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect);\r\n\r\n// A*\u7b97\u6cd5\r\nvoid AStar(bool **con, int npolys, int iStart, int iEnd, vec3 *centre, int *came_from);\r\n\r\n// A*\u5bfb\u8def\r\nbool FindPachOfAStar(rcPolyMesh *PolyMesh, bool **con, vec3 *centre, vec3 StartPoint, vec3 EndPoint, vector<vec3> &Vect);\r\n\r\n#endif"}
80,787
c
#import <Foundation/Foundation.h> #import "BSNullabilityCompat.h" NS_ASSUME_NONNULL_BEGIN /** * A representation of an Objective-C property */ @interface BSProperty : NSObject @property (nonatomic, strong, null_resettable) id injectionKey; @property (nonatomic, strong, readonly) Class returnType; @property (nonatomic, strong, readonly) NSString *propertyNameString; + (BSProperty *)propertyWithClass:(Class)owningClass propertyNameString:(NSString *)propertyNameString; - (_Nullable id)injectionKey; @end NS_ASSUME_NONNULL_END
36.93
14
(translation_unit) "#import <Foundation/Foundation.h>\n\n#import "BSNullabilityCompat.h"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * A representation of an Objective-C property\n */\n@interface BSProperty : NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;\n\n+ (BSProperty *)propertyWithClass:(Class)owningClass propertyNameString:(NSString *)propertyNameString;\n\n- (_Nullable id)injectionKey;\n@end\n\nNS_ASSUME_NONNULL_END\n" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (preproc_call) "#import "BSNullabilityCompat.h"\n" (preproc_directive) "#import" (preproc_arg) ""BSNullabilityCompat.h"" (declaration) "NS_ASSUME_NONNULL_BEGIN\n\n/**\n * A representation of an Objective-C property\n */\n@interface" (type_identifier) "NS_ASSUME_NONNULL_BEGIN" (comment) "/**\n * A representation of an Objective-C property\n */" (ERROR) "@" (ERROR) "@" (identifier) "interface" (;) "" (labeled_statement) "BSProperty : NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;" (statement_identifier) "BSProperty" (:) ":" (declaration) "NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;" (type_identifier) "NSObject" (ERROR) "@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString" (ERROR) "@" (function_declarator) "property (nonatomic, strong, null_resettable) id injectionKey" (identifier) "property" (parameter_list) "(nonatomic, strong, null_resettable)" (() "(" (parameter_declaration) "nonatomic" (type_identifier) "nonatomic" (,) "," (parameter_declaration) "strong" (type_identifier) "strong" (,) "," (parameter_declaration) "null_resettable" (type_identifier) "null_resettable" ()) ")" (identifier) "id" (identifier) "injectionKey" (;) ";" (ERROR) "@" (function_declarator) "property (nonatomic, strong, readonly) Class returnType" (identifier) "property" (parameter_list) "(nonatomic, strong, readonly)" (() "(" (parameter_declaration) "nonatomic" (type_identifier) "nonatomic" (,) "," (parameter_declaration) "strong" (type_identifier) "strong" (,) "," (parameter_declaration) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "Class" (identifier) "returnType" (;) ";" (ERROR) "@" (function_declarator) "property (nonatomic, strong, readonly) NSString" (identifier) "property" (parameter_list) "(nonatomic, strong, readonly)" (() "(" (parameter_declaration) "nonatomic" (type_identifier) "nonatomic" (,) "," (parameter_declaration) "strong" (type_identifier) "strong" (,) "," (parameter_declaration) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "NSString" (pointer_declarator) "*propertyNameString" (*) "*" (identifier) "propertyNameString" (;) ";" (ERROR) "+ (BSProperty *)propertyWithClass:(Class)" (unary_expression) "+ (BSProperty *)propertyWithClass" (+) "+" (cast_expression) "(BSProperty *)propertyWithClass" (() "(" (type_descriptor) "BSProperty *" (type_identifier) "BSProperty" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "propertyWithClass" (:) ":" (() "(" (identifier) "Class" ()) ")" (declaration) "owningClass propertyNameString:(NSString *)propertyNameString;" (type_identifier) "owningClass" (identifier) "propertyNameString" (ERROR) ":(NSString *)propertyNameString" (:) ":" (() "(" (identifier) "NSString" (*) "*" ()) ")" (identifier) "propertyNameString" (;) ";" (expression_statement) "- (_Nullable id)injectionKey;" (unary_expression) "- (_Nullable id)injectionKey" (-) "-" (cast_expression) "(_Nullable id)injectionKey" (() "(" (type_descriptor) "_Nullable" (type_identifier) "_Nullable" (ERROR) "id" (identifier) "id" ()) ")" (identifier) "injectionKey" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "end\n\nNS_ASSUME_NONNULL_END" (type_identifier) "end" (identifier) "NS_ASSUME_NONNULL_END" (;) ""
117
11
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 36.93, "nodes": 83, "errors": 0, "source_hash": "32b3d68dc1a650e44a1d167593b65176299bc631255eff69d431ef31a058636c", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 33}}, {"id": 3, "type": "preproc_call", "text": "#import \"BSNullabilityCompat.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"BSNullabilityCompat.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 31}}, {"id": 6, "type": "declaration", "text": "NS_ASSUME_NONNULL_BEGIN\n\n/**\n * A representation of an Objective-C property\n */\n@interface", "parent": null, "children": [7, 8, 10], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "column": 10}}, {"id": 7, "type": "type_identifier", "text": "NS_ASSUME_NONNULL_BEGIN", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 23}}, {"id": 8, "type": "ERROR", "text": "@", "parent": 6, "children": [9], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 9, "type": "ERROR", "text": "@", "parent": 8, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 10, "type": "identifier", "text": "interface", "parent": 6, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 10}}, {"id": 11, "type": "labeled_statement", "text": "BSProperty : NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;", "parent": null, "children": [12, 13], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 13, "column": 69}}, {"id": 12, "type": "statement_identifier", "text": "BSProperty", "parent": 11, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 21}}, {"id": 13, "type": "declaration", "text": "NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;", "parent": 11, "children": [14, 15, 51], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 13, "column": 69}}, {"id": 14, "type": "type_identifier", "text": "NSObject", "parent": 13, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 32}}, {"id": 15, "type": "ERROR", "text": "@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString", "parent": 13, "children": [16, 17, 28, 29, 40, 41], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 48}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 17, "type": "function_declarator", "text": "property (nonatomic, strong, null_resettable) id injectionKey", "parent": 15, "children": [18, 19, 26, 27], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 62}}, {"id": 18, "type": "identifier", "text": "property", "parent": 17, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 9}}, {"id": 19, "type": "parameter_list", "text": "(nonatomic, strong, null_resettable)", "parent": 17, "children": [20, 22, 24], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 46}}, {"id": 20, "type": "parameter_declaration", "text": "nonatomic", "parent": 19, "children": [21], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 20}}, {"id": 21, "type": "type_identifier", "text": "nonatomic", "parent": 20, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 20}}, {"id": 22, "type": "parameter_declaration", "text": "strong", "parent": 19, "children": [23], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 28}}, {"id": 23, "type": "type_identifier", "text": "strong", "parent": 22, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 28}}, {"id": 24, "type": "parameter_declaration", "text": "null_resettable", "parent": 19, "children": [25], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 45}}, {"id": 25, "type": "type_identifier", "text": "null_resettable", "parent": 24, "children": [], "start_point": {"row": 11, "column": 30}, "end_point": {"row": 11, "column": 45}}, {"id": 26, "type": "identifier", "text": "id", "parent": 17, "children": [], "start_point": {"row": 11, "column": 47}, "end_point": {"row": 11, "column": 49}}, {"id": 27, "type": "identifier", "text": "injectionKey", "parent": 17, "children": [], "start_point": {"row": 11, "column": 50}, "end_point": {"row": 11, "column": 62}}, {"id": 28, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 29, "type": "function_declarator", "text": "property (nonatomic, strong, readonly) Class returnType", "parent": 15, "children": [30, 31, 38, 39], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 56}}, {"id": 30, "type": "identifier", "text": "property", "parent": 29, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 9}}, {"id": 31, "type": "parameter_list", "text": "(nonatomic, strong, readonly)", "parent": 29, "children": [32, 34, 36], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 39}}, {"id": 32, "type": "parameter_declaration", "text": "nonatomic", "parent": 31, "children": [33], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 33, "type": "type_identifier", "text": "nonatomic", "parent": 32, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 20}}, {"id": 34, "type": "parameter_declaration", "text": "strong", "parent": 31, "children": [35], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 28}}, {"id": 35, "type": "type_identifier", "text": "strong", "parent": 34, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 28}}, {"id": 36, "type": "parameter_declaration", "text": "readonly", "parent": 31, "children": [37], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 38}}, {"id": 37, "type": "type_identifier", "text": "readonly", "parent": 36, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 38}}, {"id": 38, "type": "identifier", "text": "Class", "parent": 29, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 45}}, {"id": 39, "type": "identifier", "text": "returnType", "parent": 29, "children": [], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 56}}, {"id": 40, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 41, "type": "function_declarator", "text": "property (nonatomic, strong, readonly) NSString", "parent": 15, "children": [42, 43, 50], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 48}}, {"id": 42, "type": "identifier", "text": "property", "parent": 41, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 43, "type": "parameter_list", "text": "(nonatomic, strong, readonly)", "parent": 41, "children": [44, 46, 48], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 39}}, {"id": 44, "type": "parameter_declaration", "text": "nonatomic", "parent": 43, "children": [45], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 45, "type": "type_identifier", "text": "nonatomic", "parent": 44, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 46, "type": "parameter_declaration", "text": "strong", "parent": 43, "children": [47], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 47, "type": "type_identifier", "text": "strong", "parent": 46, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 28}}, {"id": 48, "type": "parameter_declaration", "text": "readonly", "parent": 43, "children": [49], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 38}}, {"id": 49, "type": "type_identifier", "text": "readonly", "parent": 48, "children": [], "start_point": {"row": 13, "column": 30}, "end_point": {"row": 13, "column": 38}}, {"id": 50, "type": "identifier", "text": "NSString", "parent": 41, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 48}}, {"id": 51, "type": "pointer_declarator", "text": "*propertyNameString", "parent": 13, "children": [52, 53], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 68}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 50}}, {"id": 53, "type": "identifier", "text": "propertyNameString", "parent": 51, "children": [], "start_point": {"row": 13, "column": 50}, "end_point": {"row": 13, "column": 68}}, {"id": 54, "type": "ERROR", "text": "+ (BSProperty *)propertyWithClass:(Class)", "parent": null, "children": [55, 63], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 41}}, {"id": 55, "type": "unary_expression", "text": "+ (BSProperty *)propertyWithClass", "parent": 54, "children": [56, 57], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 33}}, {"id": 56, "type": "+", "text": "+", "parent": 55, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 57, "type": "cast_expression", "text": "(BSProperty *)propertyWithClass", "parent": 55, "children": [58, 62], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 33}}, {"id": 58, "type": "type_descriptor", "text": "BSProperty *", "parent": 57, "children": [59, 60], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 15}}, {"id": 59, "type": "type_identifier", "text": "BSProperty", "parent": 58, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 13}}, {"id": 60, "type": "abstract_pointer_declarator", "text": "*", "parent": 58, "children": [61], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 15}}, {"id": 62, "type": "identifier", "text": "propertyWithClass", "parent": 57, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 33}}, {"id": 63, "type": "identifier", "text": "Class", "parent": 54, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 40}}, {"id": 64, "type": "declaration", "text": "owningClass propertyNameString:(NSString *)propertyNameString;", "parent": null, "children": [65, 66, 67], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 103}}, {"id": 65, "type": "type_identifier", "text": "owningClass", "parent": 64, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 52}}, {"id": 66, "type": "identifier", "text": "propertyNameString", "parent": 64, "children": [], "start_point": {"row": 15, "column": 53}, "end_point": {"row": 15, "column": 71}}, {"id": 67, "type": "ERROR", "text": ":(NSString *)propertyNameString", "parent": 64, "children": [68, 69, 70], "start_point": {"row": 15, "column": 71}, "end_point": {"row": 15, "column": 102}}, {"id": 68, "type": "identifier", "text": "NSString", "parent": 67, "children": [], "start_point": {"row": 15, "column": 73}, "end_point": {"row": 15, "column": 81}}, {"id": 69, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 15, "column": 82}, "end_point": {"row": 15, "column": 83}}, {"id": 70, "type": "identifier", "text": "propertyNameString", "parent": 67, "children": [], "start_point": {"row": 15, "column": 84}, "end_point": {"row": 15, "column": 102}}, {"id": 71, "type": "unary_expression", "text": "- (_Nullable id)injectionKey", "parent": null, "children": [72, 73], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 28}}, {"id": 72, "type": "-", "text": "-", "parent": 71, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 73, "type": "cast_expression", "text": "(_Nullable id)injectionKey", "parent": 71, "children": [74, 76, 78], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 28}}, {"id": 74, "type": "type_descriptor", "text": "_Nullable", "parent": 73, "children": [75], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 12}}, {"id": 75, "type": "type_identifier", "text": "_Nullable", "parent": 74, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 12}}, {"id": 76, "type": "ERROR", "text": "id", "parent": 73, "children": [77], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 77, "type": "identifier", "text": "id", "parent": 76, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 15}}, {"id": 78, "type": "identifier", "text": "injectionKey", "parent": 73, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 28}}, {"id": 79, "type": "ERROR", "text": "@", "parent": null, "children": [80], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 80, "type": "ERROR", "text": "@", "parent": 79, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 81, "type": "declaration", "text": "end\n\nNS_ASSUME_NONNULL_END", "parent": null, "children": [82], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 20, "column": 21}}, {"id": 82, "type": "identifier", "text": "NS_ASSUME_NONNULL_END", "parent": 81, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 21}}]}, "node_categories": {"declarations": {"functions": [17, 29, 41], "variables": [6, 13, 20, 22, 24, 32, 34, 36, 44, 46, 48, 64, 81], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [55, 57, 71, 73], "assignments": [], "loops": [], "conditionals": [7, 10, 12, 14, 18, 21, 23, 25, 26, 27, 30, 33, 35, 37, 38, 39, 42, 45, 47, 49, 50, 53, 59, 62, 63, 65, 66, 68, 70, 75, 77, 78, 82], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "property (nonatomic, strong, null_resettable) id injectionKey"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "property (nonatomic, strong, readonly) Class returnType"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "property (nonatomic, strong, readonly) NSString"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#import <Foundation/Foundation.h>\n\n#import \"BSNullabilityCompat.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n/**\n * A representation of an Objective-C property\n */\n@interface BSProperty : NSObject\n\n@property (nonatomic, strong, null_resettable) id injectionKey;\n@property (nonatomic, strong, readonly) Class returnType;\n@property (nonatomic, strong, readonly) NSString *propertyNameString;\n\n+ (BSProperty *)propertyWithClass:(Class)owningClass propertyNameString:(NSString *)propertyNameString;\n\n- (_Nullable id)injectionKey;\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,788
c
/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29 /// @note generated by fmh -infile "C:\rev\src\rpw.sqlite\manifest" -prefix "RPW_SQLITE_" #pragma once #ifndef RPW_SQLITE_MANIFEST_DATE #define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020" #endif
41
6
(translation_unit) "/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29\n/// @note generated by fmh -infile "C:\rev\src\rpw.sqlite\manifest" -prefix "RPW_SQLITE_"\n\n#pragma once\n\n#ifndef RPW_SQLITE_MANIFEST_DATE\n#define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020"\n#endif\n" (comment) "/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29" (comment) "/// @note generated by fmh -infile "C:\rev\src\rpw.sqlite\manifest" -prefix "RPW_SQLITE_"" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_ifdef) "#ifndef RPW_SQLITE_MANIFEST_DATE\n#define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020"\n#endif" (#ifndef) "#ifndef" (identifier) "RPW_SQLITE_MANIFEST_DATE" (preproc_def) "#define RPW_SQLITE_MANIFEST_DATE "2011-06-21 20:45:30.020"\n" (#define) "#define" (identifier) "RPW_SQLITE_MANIFEST_DATE" (preproc_arg) ""2011-06-21 20:45:30.020"" (#endif) "#endif"
14
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 41.0, "nodes": 11, "errors": 0, "source_hash": "a475f6e7dc1f545accb57c8e0fb71e0423761761c81a2224ea3b43b6f92041de", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 12}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef RPW_SQLITE_MANIFEST_DATE\n#define RPW_SQLITE_MANIFEST_DATE \"2011-06-21 20:45:30.020\"\n#endif", "parent": null, "children": [4, 5, 6, 10], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "RPW_SQLITE_MANIFEST_DATE", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 32}}, {"id": 6, "type": "preproc_def", "text": "#define RPW_SQLITE_MANIFEST_DATE \"2011-06-21 20:45:30.020\"\n", "parent": 3, "children": [7, 8, 9], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 8, "type": "identifier", "text": "RPW_SQLITE_MANIFEST_DATE", "parent": 6, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 32}}, {"id": 9, "type": "preproc_arg", "text": "\"2011-06-21 20:45:30.020\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 33}, "end_point": {"row": 6, "column": 58}}, {"id": 10, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/// @version fmh [7c6f0fef29] 2010-10-06 15:54:29\n/// @note generated by fmh -infile \"C:\\rev\\src\\rpw.sqlite\\manifest\" -prefix \"RPW_SQLITE_\"\n\n#pragma once\n\n#ifndef RPW_SQLITE_MANIFEST_DATE\n#define RPW_SQLITE_MANIFEST_DATE \"2011-06-21 20:45:30.020\"\n#endif\n"}
80,789
c
#pragma once #include <sys/timerfd.h> #include <chrono> #include "FD.h" namespace fileio { struct TimerFD : FD { TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC); ~TimerFD() = default; TimerFD(TimerFD& other) = delete; TimerFD& operator=(TimerFD &other) = delete; TimerFD(TimerFD &&other) noexcept = default; TimerFD& operator=(TimerFD &&other) noexcept = default; /* call getElapsed() after timer expires, this is important for EPOLLET! * otherwise the fd does not fire again */ uint64_t getElapsed() const; void cancel (); void reset(std::chrono::nanoseconds duration, bool oneshot = true); private: constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration); constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts); std::chrono::nanoseconds getMonotonicTime(); }; }
37.35
23
(translation_unit) "#pragma once\n\n#include <sys/timerfd.h>\n#include <chrono>\n#include "FD.h"\n\nnamespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n};\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <sys/timerfd.h>\n" (#include) "#include" (system_lib_string) "<sys/timerfd.h>" (preproc_include) "#include <chrono>\n" (#include) "#include" (system_lib_string) "<chrono>" (preproc_include) "#include "FD.h"\n" (#include) "#include" (string_literal) ""FD.h"" (") """ (string_content) "FD.h" (") """ (function_definition) "namespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n};\n\n}" (type_identifier) "namespace" (identifier) "fileio" (compound_statement) "{\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n};\n\n}" ({) "{" (function_definition) "struct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n}" (struct_specifier) "struct TimerFD" (struct) "struct" (type_identifier) "TimerFD" (ERROR) ":" (:) ":" (identifier) "FD" (compound_statement) "{\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n}" ({) "{" (declaration) "TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);" (macro_type_specifier) "TimerFD (int" (identifier) "TimerFD" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (init_declarator) "flags = TFD_NONBLOCK" (identifier) "flags" (=) "=" (identifier) "TFD_NONBLOCK" (,) "," (ERROR) "int" (identifier) "int" (init_declarator) "clockid = CLOCK_MONOTONIC" (identifier) "clockid" (=) "=" (identifier) "CLOCK_MONOTONIC" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "~TimerFD() = default;" (unary_expression) "~TimerFD() = default" (~) "~" (assignment_expression) "TimerFD() = default" (call_expression) "TimerFD()" (identifier) "TimerFD" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (expression_statement) "TimerFD(TimerFD& other) = delete;" (assignment_expression) "TimerFD(TimerFD& other) = delete" (call_expression) "TimerFD(TimerFD& other)" (identifier) "TimerFD" (argument_list) "(TimerFD& other)" (() "(" (binary_expression) "TimerFD& other" (identifier) "TimerFD" (&) "&" (identifier) "other" ()) ")" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "TimerFD& operator=(TimerFD &other) = delete;" (binary_expression) "TimerFD& operator=(TimerFD &other) = delete" (identifier) "TimerFD" (&) "&" (assignment_expression) "operator=(TimerFD &other) = delete" (identifier) "operator" (=) "=" (assignment_expression) "(TimerFD &other) = delete" (parenthesized_expression) "(TimerFD &other)" (() "(" (binary_expression) "TimerFD &other" (identifier) "TimerFD" (&) "&" (identifier) "other" ()) ")" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "TimerFD(TimerFD &&other) noexcept = default;" (assignment_expression) "TimerFD(TimerFD &&other) noexcept = default" (call_expression) "TimerFD(TimerFD &&other)" (identifier) "TimerFD" (argument_list) "(TimerFD &&other)" (() "(" (binary_expression) "TimerFD &&other" (identifier) "TimerFD" (&&) "&&" (identifier) "other" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (=) "=" (identifier) "default" (;) ";" (expression_statement) "TimerFD& operator=(TimerFD &&other) noexcept = default;" (binary_expression) "TimerFD& operator=(TimerFD &&other) noexcept = default" (identifier) "TimerFD" (&) "&" (assignment_expression) "operator=(TimerFD &&other) noexcept = default" (identifier) "operator" (=) "=" (assignment_expression) "(TimerFD &&other) noexcept = default" (parenthesized_expression) "(TimerFD &&other)" (() "(" (binary_expression) "TimerFD &&other" (identifier) "TimerFD" (&&) "&&" (identifier) "other" ()) ")" (ERROR) "noexcept" (identifier) "noexcept" (=) "=" (identifier) "default" (;) ";" (comment) "/* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */" (ERROR) "uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();" (primitive_type) "uint64_t" (function_declarator) "getElapsed()" (identifier) "getElapsed" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n void cancel ();" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "void" (function_declarator) "cancel ()" (identifier) "cancel" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void reset(std::chrono::nanoseconds duration, bool oneshot = true);" (primitive_type) "void" (init_declarator) "reset(std::chrono::nanoseconds duration, bool oneshot = true" (function_declarator) "reset(std::chrono::nanoseconds duration, bool oneshot" (identifier) "reset" (parameter_list) "(std::chrono::nanoseconds duration, bool oneshot" (() "(" (parameter_declaration) "std::chrono::nanoseconds duration" (type_identifier) "std" (ERROR) "::chrono::nanoseconds" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "nanoseconds" (identifier) "duration" (,) "," (parameter_declaration) "bool oneshot" (primitive_type) "bool" (identifier) "oneshot" ()) "" (=) "=" (true) "true" (ERROR) ")" ()) ")" (;) ";" (declaration) "private:\n constexpr struct" (type_identifier) "private" (ERROR) ":" (:) ":" (type_qualifier) "constexpr" (constexpr) "constexpr" (identifier) "struct" (;) "" (declaration) "timespec durationToTimespec(std::chrono::nanoseconds duration);" (type_identifier) "timespec" (function_declarator) "durationToTimespec(std::chrono::nanoseconds duration)" (identifier) "durationToTimespec" (parameter_list) "(std::chrono::nanoseconds duration)" (() "(" (parameter_declaration) "std::chrono::nanoseconds duration" (type_identifier) "std" (ERROR) "::chrono::nanoseconds" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "nanoseconds" (identifier) "duration" ()) ")" (;) ";" (declaration) "constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);" (type_qualifier) "constexpr" (constexpr) "constexpr" (type_identifier) "std" (ERROR) "::chrono::nanoseconds" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "nanoseconds" (function_declarator) "timespecToDuration(struct timespec ts)" (identifier) "timespecToDuration" (parameter_list) "(struct timespec ts)" (() "(" (parameter_declaration) "struct timespec ts" (struct_specifier) "struct timespec" (struct) "struct" (type_identifier) "timespec" (identifier) "ts" ()) ")" (;) ";" (declaration) "std::chrono::nanoseconds getMonotonicTime();" (type_identifier) "std" (ERROR) "::chrono::nanoseconds" (:) ":" (:) ":" (identifier) "chrono" (:) ":" (:) ":" (identifier) "nanoseconds" (function_declarator) "getMonotonicTime()" (identifier) "getMonotonicTime" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
245
13
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 37.35, "nodes": 154, "errors": 0, "source_hash": "0acc5fdba4a111ad1eb8da0dda724e1f4bef502ca4b49a3c48cd234b9360a8c2", "categorized_nodes": 110}, "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 <sys/timerfd.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<sys/timerfd.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <chrono>\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": "<chrono>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"FD.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": "\"FD.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 15}}, {"id": 12, "type": "function_definition", "text": "namespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n};\n\n}", "parent": null, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 28, "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": "fileio", "parent": 12, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 16}}, {"id": 15, "type": "function_definition", "text": "struct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n}", "parent": 12, "children": [16, 19], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 16, "type": "struct_specifier", "text": "struct TimerFD", "parent": 15, "children": [17, 18], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 14}}, {"id": 17, "type": "struct", "text": "struct", "parent": 16, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 18, "type": "type_identifier", "text": "TimerFD", "parent": 16, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 14}}, {"id": 19, "type": "identifier", "text": "FD", "parent": 15, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 19}}, {"id": 20, "type": "declaration", "text": "TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);", "parent": 15, "children": [21, 25, 29, 31], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 70}}, {"id": 21, "type": "macro_type_specifier", "text": "TimerFD (int", "parent": 20, "children": [22, 23], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 16}}, {"id": 22, "type": "identifier", "text": "TimerFD", "parent": 21, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 11}}, {"id": 23, "type": "type_descriptor", "text": "int", "parent": 21, "children": [24], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 16}}, {"id": 25, "type": "init_declarator", "text": "flags = TFD_NONBLOCK", "parent": 20, "children": [26, 27, 28], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 37}}, {"id": 26, "type": "identifier", "text": "flags", "parent": 25, "children": [], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 22}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 9, "column": 23}, "end_point": {"row": 9, "column": 24}}, {"id": 28, "type": "identifier", "text": "TFD_NONBLOCK", "parent": 25, "children": [], "start_point": {"row": 9, "column": 25}, "end_point": {"row": 9, "column": 37}}, {"id": 29, "type": "ERROR", "text": "int", "parent": 20, "children": [30], "start_point": {"row": 9, "column": 39}, "end_point": {"row": 9, "column": 42}}, {"id": 30, "type": "identifier", "text": "int", "parent": 29, "children": [], "start_point": {"row": 9, "column": 39}, "end_point": {"row": 9, "column": 42}}, {"id": 31, "type": "init_declarator", "text": "clockid = CLOCK_MONOTONIC", "parent": 20, "children": [32, 33, 34], "start_point": {"row": 9, "column": 43}, "end_point": {"row": 9, "column": 68}}, {"id": 32, "type": "identifier", "text": "clockid", "parent": 31, "children": [], "start_point": {"row": 9, "column": 43}, "end_point": {"row": 9, "column": 50}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 9, "column": 51}, "end_point": {"row": 9, "column": 52}}, {"id": 34, "type": "identifier", "text": "CLOCK_MONOTONIC", "parent": 31, "children": [], "start_point": {"row": 9, "column": 53}, "end_point": {"row": 9, "column": 68}}, {"id": 35, "type": "unary_expression", "text": "~TimerFD() = default", "parent": 15, "children": [36, 37], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 24}}, {"id": 36, "type": "~", "text": "~", "parent": 35, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 5}}, {"id": 37, "type": "assignment_expression", "text": "TimerFD() = default", "parent": 35, "children": [38, 41, 42], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 24}}, {"id": 38, "type": "call_expression", "text": "TimerFD()", "parent": 37, "children": [39, 40], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 14}}, {"id": 39, "type": "identifier", "text": "TimerFD", "parent": 38, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 12}}, {"id": 40, "type": "argument_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 14}}, {"id": 41, "type": "=", "text": "=", "parent": 37, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 42, "type": "identifier", "text": "default", "parent": 37, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 24}}, {"id": 43, "type": "assignment_expression", "text": "TimerFD(TimerFD& other) = delete", "parent": 15, "children": [44, 50], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 36}}, {"id": 44, "type": "call_expression", "text": "TimerFD(TimerFD& other)", "parent": 43, "children": [45, 46], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 27}}, {"id": 45, "type": "identifier", "text": "TimerFD", "parent": 44, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 46, "type": "argument_list", "text": "(TimerFD& other)", "parent": 44, "children": [47], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 27}}, {"id": 47, "type": "binary_expression", "text": "TimerFD& other", "parent": 46, "children": [48, 49], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 26}}, {"id": 48, "type": "identifier", "text": "TimerFD", "parent": 47, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 19}}, {"id": 49, "type": "identifier", "text": "other", "parent": 47, "children": [], "start_point": {"row": 11, "column": 21}, "end_point": {"row": 11, "column": 26}}, {"id": 50, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 29}}, {"id": 51, "type": "binary_expression", "text": "TimerFD& operator=(TimerFD &other) = delete", "parent": 15, "children": [52, 53], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 47}}, {"id": 52, "type": "identifier", "text": "TimerFD", "parent": 51, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 11}}, {"id": 53, "type": "assignment_expression", "text": "operator=(TimerFD &other) = delete", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 47}}, {"id": 54, "type": "identifier", "text": "operator", "parent": 53, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 21}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 22}}, {"id": 56, "type": "assignment_expression", "text": "(TimerFD &other) = delete", "parent": 53, "children": [57, 61], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 47}}, {"id": 57, "type": "parenthesized_expression", "text": "(TimerFD &other)", "parent": 56, "children": [58], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 38}}, {"id": 58, "type": "binary_expression", "text": "TimerFD &other", "parent": 57, "children": [59, 60], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 37}}, {"id": 59, "type": "identifier", "text": "TimerFD", "parent": 58, "children": [], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 30}}, {"id": 60, "type": "identifier", "text": "other", "parent": 58, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 37}}, {"id": 61, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 40}}, {"id": 62, "type": "assignment_expression", "text": "TimerFD(TimerFD &&other) noexcept = default", "parent": 15, "children": [63, 70, 72, 73], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 47}}, {"id": 63, "type": "call_expression", "text": "TimerFD(TimerFD &&other)", "parent": 62, "children": [64, 65], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 28}}, {"id": 64, "type": "identifier", "text": "TimerFD", "parent": 63, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 65, "type": "argument_list", "text": "(TimerFD &&other)", "parent": 63, "children": [66], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 28}}, {"id": 66, "type": "binary_expression", "text": "TimerFD &&other", "parent": 65, "children": [67, 68, 69], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 27}}, {"id": 67, "type": "identifier", "text": "TimerFD", "parent": 66, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 19}}, {"id": 68, "type": "&&", "text": "&&", "parent": 66, "children": [], "start_point": {"row": 13, "column": 20}, "end_point": {"row": 13, "column": 22}}, {"id": 69, "type": "identifier", "text": "other", "parent": 66, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 27}}, {"id": 70, "type": "ERROR", "text": "noexcept", "parent": 62, "children": [71], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 71, "type": "identifier", "text": "noexcept", "parent": 70, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 72, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 39}}, {"id": 73, "type": "identifier", "text": "default", "parent": 62, "children": [], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 47}}, {"id": 74, "type": "binary_expression", "text": "TimerFD& operator=(TimerFD &&other) noexcept = default", "parent": 15, "children": [75, 76], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 58}}, {"id": 75, "type": "identifier", "text": "TimerFD", "parent": 74, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 76, "type": "assignment_expression", "text": "operator=(TimerFD &&other) noexcept = default", "parent": 74, "children": [77, 78, 79], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 58}}, {"id": 77, "type": "identifier", "text": "operator", "parent": 76, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 21}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 79, "type": "assignment_expression", "text": "(TimerFD &&other) noexcept = default", "parent": 76, "children": [80, 85, 87, 88], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 58}}, {"id": 80, "type": "parenthesized_expression", "text": "(TimerFD &&other)", "parent": 79, "children": [81], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 39}}, {"id": 81, "type": "binary_expression", "text": "TimerFD &&other", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 38}}, {"id": 82, "type": "identifier", "text": "TimerFD", "parent": 81, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 30}}, {"id": 83, "type": "&&", "text": "&&", "parent": 81, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 33}}, {"id": 84, "type": "identifier", "text": "other", "parent": 81, "children": [], "start_point": {"row": 14, "column": 33}, "end_point": {"row": 14, "column": 38}}, {"id": 85, "type": "ERROR", "text": "noexcept", "parent": 79, "children": [86], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 48}}, {"id": 86, "type": "identifier", "text": "noexcept", "parent": 85, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 48}}, {"id": 87, "type": "=", "text": "=", "parent": 79, "children": [], "start_point": {"row": 14, "column": 49}, "end_point": {"row": 14, "column": 50}}, {"id": 88, "type": "identifier", "text": "default", "parent": 79, "children": [], "start_point": {"row": 14, "column": 51}, "end_point": {"row": 14, "column": 58}}, {"id": 89, "type": "ERROR", "text": "uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();", "parent": 15, "children": [90, 91, 94, 99, 116, 120, 131, 146], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 25, "column": 48}}, {"id": 90, "type": "primitive_type", "text": "uint64_t", "parent": 89, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 91, "type": "function_declarator", "text": "getElapsed()", "parent": 89, "children": [92, 93], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 25}}, {"id": 92, "type": "identifier", "text": "getElapsed", "parent": 91, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 23}}, {"id": 93, "type": "parameter_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 25}}, {"id": 94, "type": "declaration", "text": "const;\n void cancel ();", "parent": 89, "children": [95, 96], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 19, "column": 19}}, {"id": 95, "type": "primitive_type", "text": "void", "parent": 94, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 8}}, {"id": 96, "type": "function_declarator", "text": "cancel ()", "parent": 94, "children": [97, 98], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 18}}, {"id": 97, "type": "identifier", "text": "cancel", "parent": 96, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 15}}, {"id": 98, "type": "parameter_list", "text": "()", "parent": 96, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 18}}, {"id": 99, "type": "declaration", "text": "void reset(std::chrono::nanoseconds duration, bool oneshot = true);", "parent": 89, "children": [100, 101], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 71}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 8}}, {"id": 101, "type": "init_declarator", "text": "reset(std::chrono::nanoseconds duration, bool oneshot = true", "parent": 99, "children": [102, 114, 115], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 69}}, {"id": 102, "type": "function_declarator", "text": "reset(std::chrono::nanoseconds duration, bool oneshot", "parent": 101, "children": [103, 104], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 62}}, {"id": 103, "type": "identifier", "text": "reset", "parent": 102, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 14}}, {"id": 104, "type": "parameter_list", "text": "(std::chrono::nanoseconds duration, bool oneshot", "parent": 102, "children": [105, 111], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 62}}, {"id": 105, "type": "parameter_declaration", "text": "std::chrono::nanoseconds duration", "parent": 104, "children": [106, 107, 110], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 48}}, {"id": 106, "type": "type_identifier", "text": "std", "parent": 105, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 18}}, {"id": 107, "type": "ERROR", "text": "::chrono::nanoseconds", "parent": 105, "children": [108, 109], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 39}}, {"id": 108, "type": "identifier", "text": "chrono", "parent": 107, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 109, "type": "identifier", "text": "nanoseconds", "parent": 107, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 39}}, {"id": 110, "type": "identifier", "text": "duration", "parent": 105, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 48}}, {"id": 111, "type": "parameter_declaration", "text": "bool oneshot", "parent": 104, "children": [112, 113], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 62}}, {"id": 112, "type": "primitive_type", "text": "bool", "parent": 111, "children": [], "start_point": {"row": 20, "column": 50}, "end_point": {"row": 20, "column": 54}}, {"id": 113, "type": "identifier", "text": "oneshot", "parent": 111, "children": [], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 62}}, {"id": 114, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 64}}, {"id": 115, "type": "true", "text": "true", "parent": 101, "children": [], "start_point": {"row": 20, "column": 65}, "end_point": {"row": 20, "column": 69}}, {"id": 116, "type": "declaration", "text": "private:\n constexpr struct", "parent": 89, "children": [117, 119], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 20}}, {"id": 117, "type": "type_qualifier", "text": "constexpr", "parent": 116, "children": [118], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 118, "type": "constexpr", "text": "constexpr", "parent": 117, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 119, "type": "identifier", "text": "struct", "parent": 116, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 20}}, {"id": 120, "type": "declaration", "text": "timespec durationToTimespec(std::chrono::nanoseconds duration);", "parent": 89, "children": [121, 122], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 84}}, {"id": 121, "type": "type_identifier", "text": "timespec", "parent": 120, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 29}}, {"id": 122, "type": "function_declarator", "text": "durationToTimespec(std::chrono::nanoseconds duration)", "parent": 120, "children": [123, 124], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 83}}, {"id": 123, "type": "identifier", "text": "durationToTimespec", "parent": 122, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 48}}, {"id": 124, "type": "parameter_list", "text": "(std::chrono::nanoseconds duration)", "parent": 122, "children": [125], "start_point": {"row": 23, "column": 48}, "end_point": {"row": 23, "column": 83}}, {"id": 125, "type": "parameter_declaration", "text": "std::chrono::nanoseconds duration", "parent": 124, "children": [126, 127, 130], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 82}}, {"id": 126, "type": "type_identifier", "text": "std", "parent": 125, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 52}}, {"id": 127, "type": "ERROR", "text": "::chrono::nanoseconds", "parent": 125, "children": [128, 129], "start_point": {"row": 23, "column": 52}, "end_point": {"row": 23, "column": 73}}, {"id": 128, "type": "identifier", "text": "chrono", "parent": 127, "children": [], "start_point": {"row": 23, "column": 54}, "end_point": {"row": 23, "column": 60}}, {"id": 129, "type": "identifier", "text": "nanoseconds", "parent": 127, "children": [], "start_point": {"row": 23, "column": 62}, "end_point": {"row": 23, "column": 73}}, {"id": 130, "type": "identifier", "text": "duration", "parent": 125, "children": [], "start_point": {"row": 23, "column": 74}, "end_point": {"row": 23, "column": 82}}, {"id": 131, "type": "declaration", "text": "constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);", "parent": 89, "children": [132, 134, 135, 138], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 78}}, {"id": 132, "type": "type_qualifier", "text": "constexpr", "parent": 131, "children": [133], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 13}}, {"id": 133, "type": "constexpr", "text": "constexpr", "parent": 132, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 13}}, {"id": 134, "type": "type_identifier", "text": "std", "parent": 131, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 17}}, {"id": 135, "type": "ERROR", "text": "::chrono::nanoseconds", "parent": 131, "children": [136, 137], "start_point": {"row": 24, "column": 17}, "end_point": {"row": 24, "column": 38}}, {"id": 136, "type": "identifier", "text": "chrono", "parent": 135, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 25}}, {"id": 137, "type": "identifier", "text": "nanoseconds", "parent": 135, "children": [], "start_point": {"row": 24, "column": 27}, "end_point": {"row": 24, "column": 38}}, {"id": 138, "type": "function_declarator", "text": "timespecToDuration(struct timespec ts)", "parent": 131, "children": [139, 140], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 77}}, {"id": 139, "type": "identifier", "text": "timespecToDuration", "parent": 138, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 57}}, {"id": 140, "type": "parameter_list", "text": "(struct timespec ts)", "parent": 138, "children": [141], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 77}}, {"id": 141, "type": "parameter_declaration", "text": "struct timespec ts", "parent": 140, "children": [142, 145], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 76}}, {"id": 142, "type": "struct_specifier", "text": "struct timespec", "parent": 141, "children": [143, 144], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 73}}, {"id": 143, "type": "struct", "text": "struct", "parent": 142, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 64}}, {"id": 144, "type": "type_identifier", "text": "timespec", "parent": 142, "children": [], "start_point": {"row": 24, "column": 65}, "end_point": {"row": 24, "column": 73}}, {"id": 145, "type": "identifier", "text": "ts", "parent": 141, "children": [], "start_point": {"row": 24, "column": 74}, "end_point": {"row": 24, "column": 76}}, {"id": 146, "type": "declaration", "text": "std::chrono::nanoseconds getMonotonicTime();", "parent": 89, "children": [147, 148, 151], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 48}}, {"id": 147, "type": "type_identifier", "text": "std", "parent": 146, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 7}}, {"id": 148, "type": "ERROR", "text": "::chrono::nanoseconds", "parent": 146, "children": [149, 150], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 28}}, {"id": 149, "type": "identifier", "text": "chrono", "parent": 148, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 15}}, {"id": 150, "type": "identifier", "text": "nanoseconds", "parent": 148, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 28}}, {"id": 151, "type": "function_declarator", "text": "getMonotonicTime()", "parent": 146, "children": [152, 153], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 47}}, {"id": 152, "type": "identifier", "text": "getMonotonicTime", "parent": 151, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 45}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 47}}]}, "node_categories": {"declarations": {"functions": [12, 15, 91, 96, 102, 122, 138, 151], "variables": [20, 94, 99, 105, 111, 116, 120, 125, 131, 141, 146], "classes": [16, 17, 142, 143], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [35, 38, 44, 47, 51, 57, 58, 63, 66, 74, 80, 81], "assignments": [37, 43, 53, 56, 62, 76, 79], "loops": [], "conditionals": [13, 14, 18, 19, 21, 22, 26, 28, 30, 32, 34, 39, 42, 45, 48, 49, 52, 54, 59, 60, 64, 67, 69, 71, 73, 75, 77, 82, 84, 86, 88, 92, 97, 103, 106, 108, 109, 110, 113, 117, 119, 121, 123, 126, 128, 129, 130, 132, 134, 136, 137, 139, 144, 145, 147, 149, 150, 152], "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": "TimerFD", "text_snippet": "namespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK"}, {"node_id": 15, "universal_type": "function", "name": "TimerFD", "text_snippet": "struct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~Ti"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "getElapsed()"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "cancel ()"}, {"node_id": 102, "universal_type": "function", "name": "oneshot", "text_snippet": "reset(std::chrono::nanoseconds duration, bool oneshot"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "durationToTimespec(std::chrono::nanoseconds duration)"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "timespecToDuration(struct timespec ts)"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "getMonotonicTime()"}], "class_declarations": [{"node_id": 16, "universal_type": "class", "name": "TimerFD", "text_snippet": "struct TimerFD"}, {"node_id": 17, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 142, "universal_type": "class", "name": "timespec", "text_snippet": "struct timespec"}, {"node_id": 143, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include <sys/timerfd.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <chrono>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"FD.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <sys/timerfd.h>\n#include <chrono>\n#include \"FD.h\"\n\nnamespace fileio {\n\nstruct TimerFD : FD {\n TimerFD (int flags = TFD_NONBLOCK, int clockid = CLOCK_MONOTONIC);\n ~TimerFD() = default;\n TimerFD(TimerFD& other) = delete;\n TimerFD& operator=(TimerFD &other) = delete;\n TimerFD(TimerFD &&other) noexcept = default;\n TimerFD& operator=(TimerFD &&other) noexcept = default;\n\n /* call getElapsed() after timer expires, this is important for EPOLLET!\n * otherwise the fd does not fire again */\n uint64_t getElapsed() const;\n void cancel ();\n void reset(std::chrono::nanoseconds duration, bool oneshot = true);\n\nprivate:\n constexpr struct timespec durationToTimespec(std::chrono::nanoseconds duration);\n constexpr std::chrono::nanoseconds timespecToDuration(struct timespec ts);\n std::chrono::nanoseconds getMonotonicTime();\n};\n\n}\n"}
80,790
c
#include<stdio.h> #include <stdio.h> int sum(int a, int b); int main() { int a = 50, b = 60; int c = sum(a,b); return 0; } int sum(int a, int b) { return a+b; }
12.62
13
(translation_unit) "#include<stdio.h>\n#include <stdio.h>\n\nint sum(int a, int b);\n\nint main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}\n\nint sum(int a, int b)\n{\n return a+b;\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (declaration) "int sum(int a, int b);" (primitive_type) "int" (function_declarator) "sum(int a, int b)" (identifier) "sum" (parameter_list) "(int a, int b)" (() "(" (parameter_declaration) "int a" (primitive_type) "int" (identifier) "a" (,) "," (parameter_declaration) "int b" (primitive_type) "int" (identifier) "b" ()) ")" (;) ";" (function_definition) "int main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}" ({) "{" (declaration) "int a = 50, b = 60;" (primitive_type) "int" (init_declarator) "a = 50" (identifier) "a" (=) "=" (number_literal) "50" (,) "," (init_declarator) "b = 60" (identifier) "b" (=) "=" (number_literal) "60" (;) ";" (declaration) "int c = sum(a,b);" (primitive_type) "int" (init_declarator) "c = sum(a,b)" (identifier) "c" (=) "=" (call_expression) "sum(a,b)" (identifier) "sum" (argument_list) "(a,b)" (() "(" (identifier) "a" (,) "," (identifier) "b" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "int sum(int a, int b)\n{\n return a+b;\n}" (primitive_type) "int" (function_declarator) "sum(int a, int b)" (identifier) "sum" (parameter_list) "(int a, int b)" (() "(" (parameter_declaration) "int a" (primitive_type) "int" (identifier) "a" (,) "," (parameter_declaration) "int b" (primitive_type) "int" (identifier) "b" ()) ")" (compound_statement) "{\n return a+b;\n}" ({) "{" (return_statement) "return a+b;" (return) "return" (binary_expression) "a+b" (identifier) "a" (+) "+" (identifier) "b" (;) ";" (}) "}"
86
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 12.62, "nodes": 60, "errors": 0, "source_hash": "88b92c30fbb8ca68b9726e85090af011431829848b638f780134a461bcbe2ce1", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include<stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_include", "text": "#include <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": "declaration", "text": "int sum(int a, int b);", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 22}}, {"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": "sum(int a, int b)", "parent": 6, "children": [9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "identifier", "text": "sum", "parent": 8, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 7}}, {"id": 10, "type": "parameter_list", "text": "(int a, int b)", "parent": 8, "children": [11, 14], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 21}}, {"id": 11, "type": "parameter_declaration", "text": "int a", "parent": 10, "children": [12, 13], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 13}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 11}}, {"id": 13, "type": "identifier", "text": "a", "parent": 11, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 13}}, {"id": 14, "type": "parameter_declaration", "text": "int b", "parent": 10, "children": [15, 16], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 20}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 3, "column": 15}, "end_point": {"row": 3, "column": 18}}, {"id": 16, "type": "identifier", "text": "b", "parent": 14, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 20}}, {"id": 17, "type": "function_definition", "text": "int main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}", "parent": null, "children": [18, 19], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 3}}, {"id": 19, "type": "function_declarator", "text": "main()", "parent": 17, "children": [20, 21], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 10}}, {"id": 20, "type": "identifier", "text": "main", "parent": 19, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 21, "type": "parameter_list", "text": "()", "parent": 19, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 10}}, {"id": 22, "type": "declaration", "text": "int a = 50, b = 60;", "parent": 17, "children": [23, 24, 28], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 23}}, {"id": 23, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 7}}, {"id": 24, "type": "init_declarator", "text": "a = 50", "parent": 22, "children": [25, 26, 27], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 25, "type": "identifier", "text": "a", "parent": 24, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 9}}, {"id": 26, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 11}}, {"id": 27, "type": "number_literal", "text": "50", "parent": 24, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 14}}, {"id": 28, "type": "init_declarator", "text": "b = 60", "parent": 22, "children": [29, 30, 31], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 22}}, {"id": 29, "type": "identifier", "text": "b", "parent": 28, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 17}}, {"id": 30, "type": "=", "text": "=", "parent": 28, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 19}}, {"id": 31, "type": "number_literal", "text": "60", "parent": 28, "children": [], "start_point": {"row": 7, "column": 20}, "end_point": {"row": 7, "column": 22}}, {"id": 32, "type": "declaration", "text": "int c = sum(a,b);", "parent": 17, "children": [33, 34], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 21}}, {"id": 33, "type": "primitive_type", "text": "int", "parent": 32, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 34, "type": "init_declarator", "text": "c = sum(a,b)", "parent": 32, "children": [35, 36, 37], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 20}}, {"id": 35, "type": "identifier", "text": "c", "parent": 34, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 9}}, {"id": 36, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 37, "type": "call_expression", "text": "sum(a,b)", "parent": 34, "children": [38, 39], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 20}}, {"id": 38, "type": "identifier", "text": "sum", "parent": 37, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 15}}, {"id": 39, "type": "argument_list", "text": "(a,b)", "parent": 37, "children": [40, 41], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 20}}, {"id": 40, "type": "identifier", "text": "a", "parent": 39, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 41, "type": "identifier", "text": "b", "parent": 39, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 19}}, {"id": 42, "type": "return_statement", "text": "return 0;", "parent": 17, "children": [43], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 13}}, {"id": 43, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 44, "type": "function_definition", "text": "int sum(int a, int b)\n{\n return a+b;\n}", "parent": null, "children": [45, 46], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 3}}, {"id": 46, "type": "function_declarator", "text": "sum(int a, int b)", "parent": 44, "children": [47, 48], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 21}}, {"id": 47, "type": "identifier", "text": "sum", "parent": 46, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 48, "type": "parameter_list", "text": "(int a, int b)", "parent": 46, "children": [49, 52], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 21}}, {"id": 49, "type": "parameter_declaration", "text": "int a", "parent": 48, "children": [50, 51], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 13}}, {"id": 50, "type": "primitive_type", "text": "int", "parent": 49, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 11}}, {"id": 51, "type": "identifier", "text": "a", "parent": 49, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 52, "type": "parameter_declaration", "text": "int b", "parent": 48, "children": [53, 54], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 20}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 18}}, {"id": 54, "type": "identifier", "text": "b", "parent": 52, "children": [], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 20}}, {"id": 55, "type": "return_statement", "text": "return a+b;", "parent": 44, "children": [56], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 15}}, {"id": 56, "type": "binary_expression", "text": "a+b", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 14}}, {"id": 57, "type": "identifier", "text": "a", "parent": 56, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 58, "type": "+", "text": "+", "parent": 56, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 59, "type": "identifier", "text": "b", "parent": 56, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}]}, "node_categories": {"declarations": {"functions": [8, 17, 19, 44, 46], "variables": [6, 11, 14, 22, 32, 49, 52], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [37, 56], "assignments": [], "loops": [], "conditionals": [9, 13, 16, 20, 25, 29, 35, 38, 40, 41, 47, 51, 54, 57, 59], "returns": [42, 55], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 27, 31, 43], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "b)", "text_snippet": "sum(int a, int b)"}, {"node_id": 17, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}, {"node_id": 44, "universal_type": "function", "name": "sum", "text_snippet": "int sum(int a, int b)\n{\n return a+b;\n}"}, {"node_id": 46, "universal_type": "function", "name": "b)", "text_snippet": "sum(int a, int b)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include<stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include<stdio.h>\n#include <stdio.h>\n\nint sum(int a, int b);\n\nint main()\n{\n int a = 50, b = 60;\n int c = sum(a,b);\n return 0;\n}\n\nint sum(int a, int b)\n{\n return a+b;\n}\n"}
80,791
c
// OOP244 Workshop 9: Inheritance and Virtual Functions // File: Vehicle.h // Version: 1.0 // Date: Nov 16, 2016 ///////////////////////////////////////////// #ifndef SICT_VEHICLE_ #define SICT_VEHICLE_ #include <iostream> namespace sict { // complete the declaration of the class class Vehicle { public: // public members go here virtual void accelerate() = 0; virtual void brake() = 0; virtual std::ostream& display(std::ostream& ostr) const = 0; }; } #endif
23.71
21
(translation_unit) "// OOP244 Workshop 9: Inheritance and Virtual Functions\n// File: Vehicle.h\n// Version: 1.0\n// Date: Nov 16, 2016 \n/////////////////////////////////////////////\n\n#ifndef SICT_VEHICLE_\n#define SICT_VEHICLE_\n\n#include <iostream>\n\nnamespace sict\n{\n // complete the declaration of the class\n class Vehicle\n {\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n };\n}\n#endif" (comment) "// OOP244 Workshop 9: Inheritance and Virtual Functions" (comment) "// File: Vehicle.h" (comment) "// Version: 1.0" (comment) "// Date: Nov 16, 2016 " (comment) "/////////////////////////////////////////////" (preproc_ifdef) "#ifndef SICT_VEHICLE_\n#define SICT_VEHICLE_\n\n#include <iostream>\n\nnamespace sict\n{\n // complete the declaration of the class\n class Vehicle\n {\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n };\n}\n#endif" (#ifndef) "#ifndef" (identifier) "SICT_VEHICLE_" (preproc_def) "#define SICT_VEHICLE_\n" (#define) "#define" (identifier) "SICT_VEHICLE_" (preproc_include) "#include <iostream>\n" (#include) "#include" (system_lib_string) "<iostream>" (function_definition) "namespace sict\n{\n // complete the declaration of the class\n class Vehicle\n {\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n };\n}" (type_identifier) "namespace" (identifier) "sict" (compound_statement) "{\n // complete the declaration of the class\n class Vehicle\n {\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n };\n}" ({) "{" (comment) "// complete the declaration of the class" (function_definition) "class Vehicle\n {\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n }" (type_identifier) "class" (identifier) "Vehicle" (compound_statement) "{\n public:\n // public members go here\n virtual void accelerate() = 0;\n virtual void brake() = 0;\n virtual std::ostream& display(std::ostream& ostr) const = 0;\n }" ({) "{" (labeled_statement) "public:\n // public members go here\n virtual void accelerate() = 0;" (statement_identifier) "public" (:) ":" (comment) "// public members go here" (declaration) "virtual void accelerate() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "accelerate() = 0" (function_declarator) "accelerate()" (identifier) "accelerate" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void brake() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "brake() = 0" (function_declarator) "brake()" (identifier) "brake" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual std::ostream& display(std::ostream& ostr) const = 0;" (type_identifier) "virtual" (ERROR) "std::ostream&" (identifier) "std" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (init_declarator) "display(std::ostream& ostr) const = 0" (function_declarator) "display(std::ostream& ostr) const" (identifier) "display" (parameter_list) "(std::ostream& ostr)" (() "(" (parameter_declaration) "std::ostream& ostr" (type_identifier) "std" (ERROR) "::ostream&" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "ostr" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
87
4
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 23.71, "nodes": 52, "errors": 0, "source_hash": "006a5dceb4b5572ac3e6309a011288854953642f2176e3795b8f933f102a409d", "categorized_nodes": 36}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SICT_VEHICLE_\n#define SICT_VEHICLE_\n\n#include <iostream>\n\nnamespace sict\n{\n\t// complete the declaration of the class\n\tclass Vehicle\n\t{\n\tpublic:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;\n\t\tvirtual void brake() = 0;\n\t\tvirtual std::ostream& display(std::ostream& ostr) const = 0;\n\t};\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 51], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 23, "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": "SICT_VEHICLE_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define SICT_VEHICLE_\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": "SICT_VEHICLE_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<iostream>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 9, "type": "function_definition", "text": "namespace sict\n{\n\t// complete the declaration of the class\n\tclass Vehicle\n\t{\n\tpublic:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;\n\t\tvirtual void brake() = 0;\n\t\tvirtual std::ostream& display(std::ostream& ostr) const = 0;\n\t};\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 11, "type": "identifier", "text": "sict", "parent": 9, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 14}}, {"id": 12, "type": "function_definition", "text": "class Vehicle\n\t{\n\tpublic:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;\n\t\tvirtual void brake() = 0;\n\t\tvirtual std::ostream& display(std::ostream& ostr) const = 0;\n\t}", "parent": 9, "children": [13], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 21, "column": 2}}, {"id": 13, "type": "identifier", "text": "Vehicle", "parent": 12, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 14}}, {"id": 14, "type": "labeled_statement", "text": "public:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;", "parent": 12, "children": [15], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 18, "column": 32}}, {"id": 15, "type": "declaration", "text": "virtual void accelerate() = 0;", "parent": 14, "children": [16, 17, 19], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 32}}, {"id": 16, "type": "type_identifier", "text": "virtual", "parent": 15, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 17, "type": "ERROR", "text": "void", "parent": 15, "children": [18], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 18, "type": "identifier", "text": "void", "parent": 17, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 14}}, {"id": 19, "type": "init_declarator", "text": "accelerate() = 0", "parent": 15, "children": [20, 23, 24], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 31}}, {"id": 20, "type": "function_declarator", "text": "accelerate()", "parent": 19, "children": [21, 22], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 27}}, {"id": 21, "type": "identifier", "text": "accelerate", "parent": 20, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 25}}, {"id": 22, "type": "parameter_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 18, "column": 25}, "end_point": {"row": 18, "column": 27}}, {"id": 23, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 24, "type": "number_literal", "text": "0", "parent": 19, "children": [], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 18, "column": 31}}, {"id": 25, "type": "declaration", "text": "virtual void brake() = 0;", "parent": 12, "children": [26, 27, 29], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 27}}, {"id": 26, "type": "type_identifier", "text": "virtual", "parent": 25, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 27, "type": "ERROR", "text": "void", "parent": 25, "children": [28], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 28, "type": "identifier", "text": "void", "parent": 27, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 14}}, {"id": 29, "type": "init_declarator", "text": "brake() = 0", "parent": 25, "children": [30, 33, 34], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 26}}, {"id": 30, "type": "function_declarator", "text": "brake()", "parent": 29, "children": [31, 32], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 22}}, {"id": 31, "type": "identifier", "text": "brake", "parent": 30, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 20}}, {"id": 32, "type": "parameter_list", "text": "()", "parent": 30, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 22}}, {"id": 33, "type": "=", "text": "=", "parent": 29, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 34, "type": "number_literal", "text": "0", "parent": 29, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 35, "type": "declaration", "text": "virtual std::ostream& display(std::ostream& ostr) const = 0;", "parent": 12, "children": [36, 37, 40], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 62}}, {"id": 36, "type": "type_identifier", "text": "virtual", "parent": 35, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 9}}, {"id": 37, "type": "ERROR", "text": "std::ostream&", "parent": 35, "children": [38, 39], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 23}}, {"id": 38, "type": "identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 13}}, {"id": 39, "type": "identifier", "text": "ostream", "parent": 37, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 22}}, {"id": 40, "type": "init_declarator", "text": "display(std::ostream& ostr) const = 0", "parent": 35, "children": [41, 49, 50], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 61}}, {"id": 41, "type": "function_declarator", "text": "display(std::ostream& ostr) const", "parent": 40, "children": [42, 43], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 57}}, {"id": 42, "type": "identifier", "text": "display", "parent": 41, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 31}}, {"id": 43, "type": "parameter_list", "text": "(std::ostream& ostr)", "parent": 41, "children": [44], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 51}}, {"id": 44, "type": "parameter_declaration", "text": "std::ostream& ostr", "parent": 43, "children": [45, 46, 48], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 50}}, {"id": 45, "type": "type_identifier", "text": "std", "parent": 44, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 35}}, {"id": 46, "type": "ERROR", "text": "::ostream&", "parent": 44, "children": [47], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 45}}, {"id": 47, "type": "identifier", "text": "ostream", "parent": 46, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 44}}, {"id": 48, "type": "identifier", "text": "ostr", "parent": 44, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 50}}, {"id": 49, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 59}}, {"id": 50, "type": "number_literal", "text": "0", "parent": 40, "children": [], "start_point": {"row": 20, "column": 60}, "end_point": {"row": 20, "column": 61}}, {"id": 51, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12, 20, 30, 41], "variables": [15, 25, 35, 44], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 16, 18, 21, 26, 28, 31, 36, 38, 39, 42, 45, 47, 48, 51], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 24, 34, 50], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "class", "text_snippet": "namespace sict\n{\n\t// complete the declaration of the class\n\tclass Vehicle\n\t{\n\tpublic:\n\t\t// public me"}, {"node_id": 12, "universal_type": "function", "name": "Vehicle", "text_snippet": "class Vehicle\n\t{\n\tpublic:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;\n\t\tvirtual voi"}, {"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "accelerate()"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "brake()"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "display(std::ostream& ostr) const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <iostream>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// OOP244 Workshop 9: Inheritance and Virtual Functions\n// File: Vehicle.h\n// Version: 1.0\n// Date: Nov 16, 2016 \n/////////////////////////////////////////////\n\n#ifndef SICT_VEHICLE_\n#define SICT_VEHICLE_\n\n#include <iostream>\n\nnamespace sict\n{\n\t// complete the declaration of the class\n\tclass Vehicle\n\t{\n\tpublic:\n\t\t// public members go here\n\t\tvirtual void accelerate() = 0;\n\t\tvirtual void brake() = 0;\n\t\tvirtual std::ostream& display(std::ostream& ostr) const = 0;\n\t};\n}\n#endif"}
80,792
c
#ifndef KALI_SETTINGS_INCLUDED #define KALI_SETTINGS_INCLUDED #include <windows.h> #include "kali/dbgutils.h" // ............................................................................ struct Settings { void set(const char* name, int value) const { ::RegSetValueEx(handle, name, 0, REG_DWORD, (BYTE*) &value, sizeof(value)); } int get(const char* name, int default_) const { DWORD size = sizeof(default_); ::RegQueryValueEx(handle, name, 0, 0, (BYTE*) &default_, &size); return default_; } void set(const char* name, const char* value) const { ::RegSetValueEx(handle, name, 0, REG_SZ, (const BYTE*) value, (DWORD) strlen(value) + 1); } #ifdef KALI_STRING_INCLUDED kali::string get(const char* name, const char* default_) const { kali::string value = default_; DWORD size = value.size; ::RegQueryValueEx(handle, name, 0, 0, (BYTE*) value(), &size); return value; } kali::string subKey(int index) const { FILETIME unused; kali::string key; DWORD size = key.size; ::RegEnumKeyEx(handle, index, key(), &size, 0, 0, 0, &unused); return key; } #endif // ........................................................................ // some extensions (Windows only) bool exist(const char* key) // test for a subkey { Handle h; int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h); if (ret == 0) ::RegCloseKey(h); return !ret; } void deleteKey(const char* key) // delete subkey { ::RegDeleteKey(handle, key); } // ........................................................................ ~Settings() {::RegCloseKey(handle);} /*explicit*/ Settings(const char* key) : handle(ctor(HKEY_CURRENT_USER, key)) {} Settings(const Settings& root, const char* key) : handle(ctor(root.handle, key)) {} private: typedef ::HKEY Handle; Handle handle; Settings(const Settings&); Settings& operator = (const Settings&); static Handle ctor(Handle root, const char* key) { Handle handle = 0; REGSAM access = KEY_READ | KEY_WRITE | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS; if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key); return handle; } }; // ............................................................................ #endif // ~ KALI_SETTINGS_INCLUDED
25.95
100
(translation_unit) "#ifndef KALI_SETTINGS_INCLUDED \n#define KALI_SETTINGS_INCLUDED \n \n#include <windows.h> \n#include "kali/dbgutils.h" \n \n// ............................................................................ \n \nstruct Settings \n{ \n void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value)); \n } \n \n int get(const char* name, int default_) const \n { \n DWORD size = sizeof(default_); \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size); \n return default_; \n } \n \n void set(const char* name, const char* value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1); \n } \n \n #ifdef KALI_STRING_INCLUDED \n \n kali::string get(const char* name, const char* default_) const \n { \n kali::string value = default_; \n DWORD size = value.size; \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size); \n return value; \n } \n \n kali::string subKey(int index) const \n { \n FILETIME unused; \n kali::string key; \n DWORD size = key.size; \n ::RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused); \n return key; \n } \n \n #endif \n \n // ........................................................................ \n // some extensions (Windows only) \n \n bool exist(const char* key) // test for a subkey \n { \n Handle h; \n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h); \n if (ret == 0) \n ::RegCloseKey(h); \n return !ret; \n } \n \n void deleteKey(const char* key) // delete subkey \n { \n ::RegDeleteKey(handle, key); \n } \n \n // ........................................................................ \n \n ~Settings() {::RegCloseKey(handle);} \n \n /*explicit*/ Settings(const char* key) \n : handle(ctor(HKEY_CURRENT_USER, key)) {} \n \n Settings(const Settings& root, const char* key) \n : handle(ctor(root.handle, key)) {} \n \nprivate: \n typedef ::HKEY Handle; \n Handle handle; \n Settings(const Settings&); \n Settings& operator = (const Settings&); \n \n static Handle ctor(Handle root, const char* key) \n { \n Handle handle = 0; \n REGSAM access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS; \n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) \n trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key); \n return handle; \n } \n}; \n \n// ............................................................................ \n \n#endif // ~ KALI_SETTINGS_INCLUDED \n" (preproc_ifdef) "#ifndef KALI_SETTINGS_INCLUDED \n#define KALI_SETTINGS_INCLUDED \n \n#include <windows.h> \n#include "kali/dbgutils.h" \n \n// ............................................................................ \n \nstruct Settings \n{ \n void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value)); \n } \n \n int get(const char* name, int default_) const \n { \n DWORD size = sizeof(default_); \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size); \n return default_; \n } \n \n void set(const char* name, const char* value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1); \n } \n \n #ifdef KALI_STRING_INCLUDED \n \n kali::string get(const char* name, const char* default_) const \n { \n kali::string value = default_; \n DWORD size = value.size; \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size); \n return value; \n } \n \n kali::string subKey(int index) const \n { \n FILETIME unused; \n kali::string key; \n DWORD size = key.size; \n ::RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused); \n return key; \n } \n \n #endif \n \n // ........................................................................ \n // some extensions (Windows only) \n \n bool exist(const char* key) // test for a subkey \n { \n Handle h; \n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h); \n if (ret == 0) \n ::RegCloseKey(h); \n return !ret; \n } \n \n void deleteKey(const char* key) // delete subkey \n { \n ::RegDeleteKey(handle, key); \n } \n \n // ........................................................................ \n \n ~Settings() {::RegCloseKey(handle);} \n \n /*explicit*/ Settings(const char* key) \n : handle(ctor(HKEY_CURRENT_USER, key)) {} \n \n Settings(const Settings& root, const char* key) \n : handle(ctor(root.handle, key)) {} \n \nprivate: \n typedef ::HKEY Handle; \n Handle handle; \n Settings(const Settings&); \n Settings& operator = (const Settings&); \n \n static Handle ctor(Handle root, const char* key) \n { \n Handle handle = 0; \n REGSAM access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS; \n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) \n trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key); \n return handle; \n } \n}; \n \n// ............................................................................ \n \n#endif" (#ifndef) "#ifndef" (identifier) "KALI_SETTINGS_INCLUDED" (preproc_def) "#define KALI_SETTINGS_INCLUDED \n" (#define) "#define" (identifier) "KALI_SETTINGS_INCLUDED" (preproc_include) "#include <windows.h> \n" (#include) "#include" (system_lib_string) "<windows.h>" (preproc_include) "#include "kali/dbgutils.h" \n" (#include) "#include" (string_literal) ""kali/dbgutils.h"" (") """ (string_content) "kali/dbgutils.h" (") """ (comment) "// ............................................................................ " (function_definition) "struct Settings \n{ \n void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value)); \n } \n \n int get(const char* name, int default_) const \n { \n DWORD size = sizeof(default_); \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size); \n return default_; \n }" (struct_specifier) "struct Settings \n{ \n void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value)); \n }" (struct) "struct" (type_identifier) "Settings" (field_declaration_list) "{ \n void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value)); \n }" ({) "{" (field_declaration) "void set(const char* name, int value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value));" (primitive_type) "void" (function_declarator) "set(const char* name, int value)" (field_identifier) "set" (parameter_list) "(const char* name, int value)" (() "(" (parameter_declaration) "const char* name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "int value" (primitive_type) "int" (identifier) "value" ()) ")" (ERROR) "const \n { \n :" (identifier) "const" ({) "{" (:) ":" (bitfield_clause) ":RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value))" (:) ":" (call_expression) "RegSetValueEx(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value))" (identifier) "RegSetValueEx" (argument_list) "(handle, name, 0, REG_DWORD, \n (BYTE*) &value, sizeof(value))" (() "(" (identifier) "handle" (,) "," (identifier) "name" (,) "," (number_literal) "0" (,) "," (identifier) "REG_DWORD" (,) "," (cast_expression) "(BYTE*) &value" (() "(" (type_descriptor) "BYTE*" (type_identifier) "BYTE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&value" (&) "&" (identifier) "value" (,) "," (sizeof_expression) "sizeof(value)" (sizeof) "sizeof" (parenthesized_expression) "(value)" (() "(" (identifier) "value" ()) ")" ()) ")" (;) ";" (}) "}" (ERROR) "int" (identifier) "int" (function_declarator) "get(const char* name, int default_) const" (identifier) "get" (parameter_list) "(const char* name, int default_)" (() "(" (parameter_declaration) "const char* name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "int default_" (primitive_type) "int" (identifier) "default_" ()) ")" (identifier) "const" (compound_statement) "{ \n DWORD size = sizeof(default_); \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size); \n return default_; \n }" ({) "{" (declaration) "DWORD size = sizeof(default_);" (type_identifier) "DWORD" (init_declarator) "size = sizeof(default_)" (identifier) "size" (=) "=" (sizeof_expression) "sizeof(default_)" (sizeof) "sizeof" (parenthesized_expression) "(default_)" (() "(" (identifier) "default_" ()) ")" (;) ";" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size);" (call_expression) "RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) &default_, &size)" (identifier) "RegQueryValueEx" (argument_list) "(handle, name, \n 0, 0, (BYTE*) &default_, &size)" (() "(" (identifier) "handle" (,) "," (identifier) "name" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (cast_expression) "(BYTE*) &default_" (() "(" (type_descriptor) "BYTE*" (type_identifier) "BYTE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&default_" (&) "&" (identifier) "default_" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" ()) ")" (;) ";" (return_statement) "return default_;" (return) "return" (identifier) "default_" (;) ";" (}) "}" (function_definition) "void set(const char* name, const char* value) const \n { \n ::RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1); \n }" (primitive_type) "void" (function_declarator) "set(const char* name, const char* value) const" (identifier) "set" (parameter_list) "(const char* name, const char* value)" (() "(" (parameter_declaration) "const char* name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "const char* value" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* value" (*) "*" (identifier) "value" ()) ")" (identifier) "const" (compound_statement) "{ \n ::RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1); \n }" ({) "{" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1);" (call_expression) "RegSetValueEx(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1)" (identifier) "RegSetValueEx" (argument_list) "(handle, name, 0, REG_SZ, \n (const BYTE*) value, (DWORD) strlen(value) + 1)" (() "(" (identifier) "handle" (,) "," (identifier) "name" (,) "," (number_literal) "0" (,) "," (identifier) "REG_SZ" (,) "," (cast_expression) "(const BYTE*) value" (() "(" (type_descriptor) "const BYTE*" (type_qualifier) "const" (const) "const" (type_identifier) "BYTE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "value" (,) "," (binary_expression) "(DWORD) strlen(value) + 1" (cast_expression) "(DWORD) strlen(value)" (() "(" (type_descriptor) "DWORD" (type_identifier) "DWORD" ()) ")" (call_expression) "strlen(value)" (identifier) "strlen" (argument_list) "(value)" (() "(" (identifier) "value" ()) ")" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (preproc_ifdef) "#ifdef KALI_STRING_INCLUDED \n \n kali::string get(const char* name, const char* default_) const \n { \n kali::string value = default_; \n DWORD size = value.size; \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size); \n return value; \n } \n \n kali::string subKey(int index) const \n { \n FILETIME unused; \n kali::string key; \n DWORD size = key.size; \n ::RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused); \n return key; \n } \n \n #endif" (#ifdef) "#ifdef" (identifier) "KALI_STRING_INCLUDED" (labeled_statement) "kali::string get(const char* name, const char* default_) const \n { \n kali::string value = default_; \n DWORD size = value.size; \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size); \n return value; \n }" (statement_identifier) "kali" (:) ":" (ERROR) ":string get(const char* name, const char* default_) const" (:) ":" (type_identifier) "string" (function_declarator) "get(const char* name, const char* default_) const" (identifier) "get" (parameter_list) "(const char* name, const char* default_)" (() "(" (parameter_declaration) "const char* name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "const char* default_" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* default_" (*) "*" (identifier) "default_" ()) ")" (identifier) "const" (compound_statement) "{ \n kali::string value = default_; \n DWORD size = value.size; \n ::RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size); \n return value; \n }" ({) "{" (labeled_statement) "kali::string value = default_;" (statement_identifier) "kali" (:) ":" (ERROR) ":" (:) ":" (declaration) "string value = default_;" (type_identifier) "string" (init_declarator) "value = default_" (identifier) "value" (=) "=" (identifier) "default_" (;) ";" (declaration) "DWORD size = value.size;" (type_identifier) "DWORD" (init_declarator) "size = value.size" (identifier) "size" (=) "=" (field_expression) "value.size" (identifier) "value" (.) "." (field_identifier) "size" (;) ";" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size);" (call_expression) "RegQueryValueEx(handle, name, \n 0, 0, (BYTE*) value(), &size)" (identifier) "RegQueryValueEx" (argument_list) "(handle, name, \n 0, 0, (BYTE*) value(), &size)" (() "(" (identifier) "handle" (,) "," (identifier) "name" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (cast_expression) "(BYTE*) value()" (() "(" (type_descriptor) "BYTE*" (type_identifier) "BYTE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "value()" (identifier) "value" (argument_list) "()" (() "(" ()) ")" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" ()) ")" (;) ";" (return_statement) "return value;" (return) "return" (identifier) "value" (;) ";" (}) "}" (labeled_statement) "kali::string subKey(int index) const \n { \n FILETIME unused; \n kali::string key; \n DWORD size = key.size; \n ::RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused); \n return key; \n }" (statement_identifier) "kali" (:) ":" (ERROR) ":string subKey(int index) const" (:) ":" (type_identifier) "string" (function_declarator) "subKey(int index) const" (identifier) "subKey" (parameter_list) "(int index)" (() "(" (parameter_declaration) "int index" (primitive_type) "int" (identifier) "index" ()) ")" (identifier) "const" (compound_statement) "{ \n FILETIME unused; \n kali::string key; \n DWORD size = key.size; \n ::RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused); \n return key; \n }" ({) "{" (declaration) "FILETIME unused;" (type_identifier) "FILETIME" (identifier) "unused" (;) ";" (labeled_statement) "kali::string key;" (statement_identifier) "kali" (:) ":" (ERROR) ":" (:) ":" (declaration) "string key;" (type_identifier) "string" (identifier) "key" (;) ";" (declaration) "DWORD size = key.size;" (type_identifier) "DWORD" (init_declarator) "size = key.size" (identifier) "size" (=) "=" (field_expression) "key.size" (identifier) "key" (.) "." (field_identifier) "size" (;) ";" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused);" (call_expression) "RegEnumKeyEx(handle, index, \n key(), &size, 0, 0, 0, &unused)" (identifier) "RegEnumKeyEx" (argument_list) "(handle, index, \n key(), &size, 0, 0, 0, &unused)" (() "(" (identifier) "handle" (,) "," (identifier) "index" (,) "," (call_expression) "key()" (identifier) "key" (argument_list) "()" (() "(" ()) ")" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (pointer_expression) "&unused" (&) "&" (identifier) "unused" ()) ")" (;) ";" (return_statement) "return key;" (return) "return" (identifier) "key" (;) ";" (}) "}" (#endif) "#endif" (comment) "// ........................................................................ " (comment) "// some extensions (Windows only) " (function_definition) "bool exist(const char* key) // test for a subkey \n { \n Handle h; \n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h); \n if (ret == 0) \n ::RegCloseKey(h); \n return !ret; \n }" (primitive_type) "bool" (function_declarator) "exist(const char* key)" (identifier) "exist" (parameter_list) "(const char* key)" (() "(" (parameter_declaration) "const char* key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* key" (*) "*" (identifier) "key" ()) ")" (comment) "// test for a subkey " (compound_statement) "{ \n Handle h; \n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h); \n if (ret == 0) \n ::RegCloseKey(h); \n return !ret; \n }" ({) "{" (declaration) "Handle h;" (type_identifier) "Handle" (identifier) "h" (;) ";" (declaration) "int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h);" (primitive_type) "int" (init_declarator) "ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h)" (identifier) "ret" (=) "=" (ERROR) "::" (:) ":" (:) ":" (call_expression) "RegOpenKeyEx(handle, key, 0, KEY_READ, &h)" (identifier) "RegOpenKeyEx" (argument_list) "(handle, key, 0, KEY_READ, &h)" (() "(" (identifier) "handle" (,) "," (identifier) "key" (,) "," (number_literal) "0" (,) "," (identifier) "KEY_READ" (,) "," (pointer_expression) "&h" (&) "&" (identifier) "h" ()) ")" (;) ";" (if_statement) "if (ret == 0) \n ::RegCloseKey(h);" (if) "if" (parenthesized_expression) "(ret == 0)" (() "(" (binary_expression) "ret == 0" (identifier) "ret" (==) "==" (number_literal) "0" ()) ")" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegCloseKey(h);" (call_expression) "RegCloseKey(h)" (identifier) "RegCloseKey" (argument_list) "(h)" (() "(" (identifier) "h" ()) ")" (;) ";" (return_statement) "return !ret;" (return) "return" (unary_expression) "!ret" (!) "!" (identifier) "ret" (;) ";" (}) "}" (function_definition) "void deleteKey(const char* key) // delete subkey \n { \n ::RegDeleteKey(handle, key); \n }" (primitive_type) "void" (function_declarator) "deleteKey(const char* key)" (identifier) "deleteKey" (parameter_list) "(const char* key)" (() "(" (parameter_declaration) "const char* key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* key" (*) "*" (identifier) "key" ()) ")" (comment) "// delete subkey " (compound_statement) "{ \n ::RegDeleteKey(handle, key); \n }" ({) "{" (ERROR) "::" (:) ":" (:) ":" (expression_statement) "RegDeleteKey(handle, key);" (call_expression) "RegDeleteKey(handle, key)" (identifier) "RegDeleteKey" (argument_list) "(handle, key)" (() "(" (identifier) "handle" (,) "," (identifier) "key" ()) ")" (;) ";" (}) "}" (comment) "// ........................................................................ " (expression_statement) "~Settings() {::RegCloseKey(handle);" (unary_expression) "~Settings()" (~) "~" (call_expression) "Settings()" (identifier) "Settings" (argument_list) "()" (() "(" ()) ")" (ERROR) "{::RegCloseKey(handle)" ({) "{" (:) ":" (:) ":" (identifier) "RegCloseKey" (() "(" (identifier) "handle" ()) ")" (;) ";" (ERROR) "}" (}) "}" (comment) "/*explicit*/" (function_definition) "Settings(const char* key) \n : handle(ctor(HKEY_CURRENT_USER, key)) {}" (macro_type_specifier) "Settings(const char* key)" (identifier) "Settings" (() "(" (type_descriptor) "const char*" (type_qualifier) "const" (const) "const" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" (ERROR) "key" (identifier) "key" ()) ")" (ERROR) ":" (:) ":" (function_declarator) "handle(ctor(HKEY_CURRENT_USER, key))" (identifier) "handle" (parameter_list) "(ctor(HKEY_CURRENT_USER, key))" (() "(" (parameter_declaration) "ctor(HKEY_CURRENT_USER, key)" (type_identifier) "ctor" (abstract_function_declarator) "(HKEY_CURRENT_USER, key)" (parameter_list) "(HKEY_CURRENT_USER, key)" (() "(" (parameter_declaration) "HKEY_CURRENT_USER" (type_identifier) "HKEY_CURRENT_USER" (,) "," (parameter_declaration) "key" (type_identifier) "key" ()) ")" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (ERROR) "Settings(const Settings& root, const char* key) \n :" (comma_expression) "Settings(const Settings& root, const char* key" (binary_expression) "Settings(const Settings& root" (identifier) "Settings" (ERROR) "(const Settings" (() "(" (type_descriptor) "const Settings" (type_qualifier) "const" (const) "const" (type_identifier) "Settings" (&) "&" (identifier) "root" (,) "," (binary_expression) "const char* key" (identifier) "const" (ERROR) "char" (identifier) "char" (*) "*" (identifier) "key" ()) ")" (:) ":" (expression_statement) "handle(ctor(root.handle, key))" (call_expression) "handle(ctor(root.handle, key))" (identifier) "handle" (argument_list) "(ctor(root.handle, key))" (() "(" (call_expression) "ctor(root.handle, key)" (identifier) "ctor" (argument_list) "(root.handle, key)" (() "(" (field_expression) "root.handle" (identifier) "root" (.) "." (field_identifier) "handle" (,) "," (identifier) "key" ()) ")" ()) ")" (;) "" (compound_statement) "{}" ({) "{" (}) "}" (labeled_statement) "private: \n typedef ::HKEY Handle;" (statement_identifier) "private" (:) ":" (labeled_statement) "typedef ::HKEY Handle;" (statement_identifier) "typedef" (:) ":" (ERROR) ":" (:) ":" (declaration) "HKEY Handle;" (type_identifier) "HKEY" (identifier) "Handle" (;) ";" (declaration) "Handle handle;" (type_identifier) "Handle" (identifier) "handle" (;) ";" (macro_type_specifier) "Settings(const Settings&)" (identifier) "Settings" (() "(" (type_descriptor) "const Settings" (type_qualifier) "const" (const) "const" (type_identifier) "Settings" (ERROR) "&" (&) "&" ()) ")" (;) ";" (expression_statement) "Settings& operator = (const Settings&);" (binary_expression) "Settings& operator = (const Settings&)" (identifier) "Settings" (&) "&" (assignment_expression) "operator = (const Settings&)" (identifier) "operator" (=) "=" (cast_expression) "(const Settings&)" (() "(" (type_descriptor) "const Settings" (type_qualifier) "const" (const) "const" (type_identifier) "Settings" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (function_definition) "static Handle ctor(Handle root, const char* key) \n { \n Handle handle = 0; \n REGSAM access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS; \n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) \n trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key); \n return handle; \n }" (storage_class_specifier) "static" (static) "static" (type_identifier) "Handle" (function_declarator) "ctor(Handle root, const char* key)" (identifier) "ctor" (parameter_list) "(Handle root, const char* key)" (() "(" (parameter_declaration) "Handle root" (type_identifier) "Handle" (identifier) "root" (,) "," (parameter_declaration) "const char* key" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* key" (*) "*" (identifier) "key" ()) ")" (compound_statement) "{ \n Handle handle = 0; \n REGSAM access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS; \n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) \n trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key); \n return handle; \n }" ({) "{" (declaration) "Handle handle = 0;" (type_identifier) "Handle" (init_declarator) "handle = 0" (identifier) "handle" (=) "=" (number_literal) "0" (;) ";" (declaration) "REGSAM access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS;" (type_identifier) "REGSAM" (init_declarator) "access = KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS" (identifier) "access" (=) "=" (binary_expression) "KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS" (binary_expression) "KEY_READ | KEY_WRITE \n | KEY_CREATE_SUB_KEY" (binary_expression) "KEY_READ | KEY_WRITE" (identifier) "KEY_READ" (|) "|" (identifier) "KEY_WRITE" (|) "|" (identifier) "KEY_CREATE_SUB_KEY" (|) "|" (identifier) "KEY_ENUMERATE_SUB_KEYS" (;) ";" (if_statement) "if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)) \n trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key);" (if) "if" (parenthesized_expression) "(::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))" (() "(" (ERROR) "::" (:) ":" (:) ":" (call_expression) "RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)" (identifier) "RegCreateKeyEx" (argument_list) "(root, key, 0, 0, 0, access, 0, &handle, 0)" (() "(" (identifier) "root" (,) "," (identifier) "key" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (identifier) "access" (,) "," (number_literal) "0" (,) "," (pointer_expression) "&handle" (&) "&" (identifier) "handle" (,) "," (number_literal) "0" ()) ")" ()) ")" (expression_statement) "trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key);" (call_expression) "trace("%s: - cannot open %x\\%s\n", FUNCTION_, root, key)" (identifier) "trace" (argument_list) "("%s: - cannot open %x\\%s\n", FUNCTION_, root, key)" (() "(" (string_literal) ""%s: - cannot open %x\\%s\n"" (") """ (string_content) "%s: - cannot open %x" (escape_sequence) "\\" (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "FUNCTION_" (,) "," (identifier) "root" (,) "," (identifier) "key" ()) ")" (;) ";" (return_statement) "return handle;" (return) "return" (identifier) "handle" (;) ";" (}) "}" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "// ............................................................................ " (#endif) "#endif" (comment) "// ~ KALI_SETTINGS_INCLUDED "
747
25
{"language": "c", "success": true, "metadata": {"lines": 100, "avg_line_length": 25.95, "nodes": 411, "errors": 0, "source_hash": "1835b8eaefe46ed49dc1889c2196fe9bb9f8d541c64f0ea3e6808b6c4ff70ba7", "categorized_nodes": 291}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef KALI_SETTINGS_INCLUDED\r\n#define KALI_SETTINGS_INCLUDED\r\n\r\n#include <windows.h>\r\n#include \"kali/dbgutils.h\"\r\n\r\n// ............................................................................\r\n\r\nstruct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value));\r\n\t}\r\n\r\n int get(const char* name, int default_) const\r\n\t{\r\n\t\tDWORD size = sizeof(default_);\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) &default_, &size);\r\n\t\treturn default_;\r\n\t}\r\n\r\n void set(const char* name, const char* value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_SZ,\r\n (const BYTE*) value, (DWORD) strlen(value) + 1);\r\n\t}\r\n\r\n #ifdef KALI_STRING_INCLUDED\r\n\r\n kali::string get(const char* name, const char* default_) const\r\n\t{\r\n kali::string value = default_;\r\n\t\tDWORD size = value.size;\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) value(), &size);\r\n\t\treturn value;\r\n\t}\r\n\r\n kali::string subKey(int index) const\r\n {\r\n FILETIME unused;\r\n kali::string key;\r\n DWORD size = key.size;\r\n ::RegEnumKeyEx(handle, index,\r\n key(), &size, 0, 0, 0, &unused);\r\n return key;\r\n }\r\n\r\n #endif\r\n\r\n // ........................................................................\r\n // some extensions (Windows only)\r\n\r\n bool exist(const char* key) // test for a subkey\r\n {\r\n Handle h;\r\n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h);\r\n if (ret == 0)\r\n ::RegCloseKey(h);\r\n return !ret;\r\n }\r\n\r\n void deleteKey(const char* key) // delete subkey\r\n {\r\n ::RegDeleteKey(handle, key);\r\n }\r\n\r\n // ........................................................................\r\n\r\n ~Settings() {::RegCloseKey(handle);}\r\n\r\n /*explicit*/ Settings(const char* key)\r\n : handle(ctor(HKEY_CURRENT_USER, key)) {}\r\n\r\n Settings(const Settings& root, const char* key)\r\n : handle(ctor(root.handle, key)) {}\r\n\r\nprivate:\r\n typedef ::HKEY Handle;\r\n Handle handle;\r\n Settings(const Settings&);\r\n Settings& operator = (const Settings&);\r\n\r\n static Handle ctor(Handle root, const char* key)\r\n {\r\n Handle handle = 0;\r\n REGSAM access = KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS;\r\n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))\r\n trace(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key);\r\n return handle;\r\n\t}\r\n};\r\n\r\n// ............................................................................\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 87, 125, 224, 265, 288, 308, 331, 337, 340, 353, 410], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 100, "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": "KALI_SETTINGS_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 30}}, {"id": 3, "type": "preproc_def", "text": "#define KALI_SETTINGS_INCLUDED\r\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": "KALI_SETTINGS_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include <windows.h>\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<windows.h>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"kali/dbgutils.h\"\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": "string_literal", "text": "\"kali/dbgutils.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 26}}, {"id": 12, "type": "function_definition", "text": "struct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value));\r\n\t}\r\n\r\n int get(const char* name, int default_) const\r\n\t{\r\n\t\tDWORD size = sizeof(default_);\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) &default_, &size);\r\n\t\treturn default_;\r\n\t}", "parent": 0, "children": [13, 48, 50], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 23, "column": 2}}, {"id": 13, "type": "struct_specifier", "text": "struct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value));\r\n\t}", "parent": 12, "children": [14, 15], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 15, "column": 2}}, {"id": 14, "type": "struct", "text": "struct", "parent": 13, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 15, "type": "type_identifier", "text": "Settings", "parent": 13, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 15}}, {"id": 16, "type": "field_declaration", "text": "void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value));", "parent": 13, "children": [17, 18, 29, 30], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 14, "column": 43}}, {"id": 17, "type": "primitive_type", "text": "void", "parent": 16, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 18, "type": "function_declarator", "text": "set(const char* name, int value)", "parent": 16, "children": [19, 20], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 41}}, {"id": 19, "type": "field_identifier", "text": "set", "parent": 18, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 12}}, {"id": 20, "type": "parameter_list", "text": "(const char* name, int value)", "parent": 18, "children": [21, 26], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 41}}, {"id": 21, "type": "parameter_declaration", "text": "const char* name", "parent": 20, "children": [22, 23], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 29}}, {"id": 22, "type": "primitive_type", "text": "char", "parent": 21, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 23}}, {"id": 23, "type": "pointer_declarator", "text": "* name", "parent": 21, "children": [24, 25], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 29}}, {"id": 24, "type": "*", "text": "*", "parent": 23, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 24}}, {"id": 25, "type": "identifier", "text": "name", "parent": 23, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 29}}, {"id": 26, "type": "parameter_declaration", "text": "int value", "parent": 20, "children": [27, 28], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 40}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 34}}, {"id": 28, "type": "identifier", "text": "value", "parent": 26, "children": [], "start_point": {"row": 11, "column": 35}, "end_point": {"row": 11, "column": 40}}, {"id": 29, "type": "ERROR", "text": "const\r\n\t{\r\n\t\t:", "parent": 16, "children": [], "start_point": {"row": 11, "column": 42}, "end_point": {"row": 13, "column": 3}}, {"id": 30, "type": "bitfield_clause", "text": ":RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value))", "parent": 16, "children": [31], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 14, "column": 42}}, {"id": 31, "type": "call_expression", "text": "RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value))", "parent": 30, "children": [32, 33], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 14, "column": 42}}, {"id": 32, "type": "identifier", "text": "RegSetValueEx", "parent": 31, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 17}}, {"id": 33, "type": "argument_list", "text": "(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value))", "parent": 31, "children": [34, 35, 36, 37, 38, 45], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 14, "column": 42}}, {"id": 34, "type": "identifier", "text": "handle", "parent": 33, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 24}}, {"id": 35, "type": "identifier", "text": "name", "parent": 33, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 30}}, {"id": 36, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 33}}, {"id": 37, "type": "identifier", "text": "REG_DWORD", "parent": 33, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 44}}, {"id": 38, "type": "cast_expression", "text": "(BYTE*) &value", "parent": 33, "children": [39, 43], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 26}}, {"id": 39, "type": "type_descriptor", "text": "BYTE*", "parent": 38, "children": [40, 41], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 18}}, {"id": 40, "type": "type_identifier", "text": "BYTE", "parent": 39, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 17}}, {"id": 41, "type": "abstract_pointer_declarator", "text": "*", "parent": 39, "children": [42], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 18}}, {"id": 43, "type": "pointer_expression", "text": "&value", "parent": 38, "children": [44], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 26}}, {"id": 44, "type": "identifier", "text": "value", "parent": 43, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 26}}, {"id": 45, "type": "sizeof_expression", "text": "sizeof(value)", "parent": 33, "children": [46], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 41}}, {"id": 46, "type": "parenthesized_expression", "text": "(value)", "parent": 45, "children": [47], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 41}}, {"id": 47, "type": "identifier", "text": "value", "parent": 46, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 40}}, {"id": 48, "type": "ERROR", "text": "int", "parent": 12, "children": [49], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 7}}, {"id": 49, "type": "identifier", "text": "int", "parent": 48, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 7}}, {"id": 50, "type": "function_declarator", "text": "get(const char* name, int default_) const", "parent": 12, "children": [51, 52], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 49}}, {"id": 51, "type": "identifier", "text": "get", "parent": 50, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 11}}, {"id": 52, "type": "parameter_list", "text": "(const char* name, int default_)", "parent": 50, "children": [53, 58], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 43}}, {"id": 53, "type": "parameter_declaration", "text": "const char* name", "parent": 52, "children": [54, 55], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 28}}, {"id": 54, "type": "primitive_type", "text": "char", "parent": 53, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 22}}, {"id": 55, "type": "pointer_declarator", "text": "* name", "parent": 53, "children": [56, 57], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 23}}, {"id": 57, "type": "identifier", "text": "name", "parent": 55, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 28}}, {"id": 58, "type": "parameter_declaration", "text": "int default_", "parent": 52, "children": [59, 60], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 42}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 33}}, {"id": 60, "type": "identifier", "text": "default_", "parent": 58, "children": [], "start_point": {"row": 17, "column": 34}, "end_point": {"row": 17, "column": 42}}, {"id": 61, "type": "declaration", "text": "DWORD size = sizeof(default_);", "parent": 12, "children": [62, 63], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 32}}, {"id": 62, "type": "type_identifier", "text": "DWORD", "parent": 61, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 7}}, {"id": 63, "type": "init_declarator", "text": "size = sizeof(default_)", "parent": 61, "children": [64, 65, 66], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 31}}, {"id": 64, "type": "identifier", "text": "size", "parent": 63, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 12}}, {"id": 65, "type": "=", "text": "=", "parent": 63, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 66, "type": "sizeof_expression", "text": "sizeof(default_)", "parent": 63, "children": [67], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 31}}, {"id": 67, "type": "parenthesized_expression", "text": "(default_)", "parent": 66, "children": [68], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 31}}, {"id": 68, "type": "identifier", "text": "default_", "parent": 67, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 30}}, {"id": 69, "type": "call_expression", "text": "RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) &default_, &size)", "parent": 12, "children": [70, 71], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 21, "column": 43}}, {"id": 70, "type": "identifier", "text": "RegQueryValueEx", "parent": 69, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 19}}, {"id": 71, "type": "argument_list", "text": "(handle, name,\r\n 0, 0, (BYTE*) &default_, &size)", "parent": 69, "children": [72, 73, 74, 75, 76, 83], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 21, "column": 43}}, {"id": 72, "type": "identifier", "text": "handle", "parent": 71, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 73, "type": "identifier", "text": "name", "parent": 71, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 32}}, {"id": 74, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 13}}, {"id": 75, "type": "number_literal", "text": "0", "parent": 71, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 76, "type": "cast_expression", "text": "(BYTE*) &default_", "parent": 71, "children": [77, 81], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 35}}, {"id": 77, "type": "type_descriptor", "text": "BYTE*", "parent": 76, "children": [78, 79], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 24}}, {"id": 78, "type": "type_identifier", "text": "BYTE", "parent": 77, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 23}}, {"id": 79, "type": "abstract_pointer_declarator", "text": "*", "parent": 77, "children": [80], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 24}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 24}}, {"id": 81, "type": "pointer_expression", "text": "&default_", "parent": 76, "children": [82], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 35}}, {"id": 82, "type": "identifier", "text": "default_", "parent": 81, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 35}}, {"id": 83, "type": "pointer_expression", "text": "&size", "parent": 71, "children": [84], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 42}}, {"id": 84, "type": "identifier", "text": "size", "parent": 83, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 42}}, {"id": 85, "type": "return_statement", "text": "return default_;", "parent": 12, "children": [86], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 18}}, {"id": 86, "type": "identifier", "text": "default_", "parent": 85, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 17}}, {"id": 87, "type": "function_definition", "text": "void set(const char* name, const char* value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_SZ,\r\n (const BYTE*) value, (DWORD) strlen(value) + 1);\r\n\t}", "parent": 0, "children": [88, 89], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 29, "column": 2}}, {"id": 88, "type": "primitive_type", "text": "void", "parent": 87, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 89, "type": "function_declarator", "text": "set(const char* name, const char* value) const", "parent": 87, "children": [90, 91], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 55}}, {"id": 90, "type": "identifier", "text": "set", "parent": 89, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 12}}, {"id": 91, "type": "parameter_list", "text": "(const char* name, const char* value)", "parent": 89, "children": [92, 97], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 49}}, {"id": 92, "type": "parameter_declaration", "text": "const char* name", "parent": 91, "children": [93, 94], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 29}}, {"id": 93, "type": "primitive_type", "text": "char", "parent": 92, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 23}}, {"id": 94, "type": "pointer_declarator", "text": "* name", "parent": 92, "children": [95, 96], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 29}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 24}}, {"id": 96, "type": "identifier", "text": "name", "parent": 94, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 29}}, {"id": 97, "type": "parameter_declaration", "text": "const char* value", "parent": 91, "children": [98, 99], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 48}}, {"id": 98, "type": "primitive_type", "text": "char", "parent": 97, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 41}}, {"id": 99, "type": "pointer_declarator", "text": "* value", "parent": 97, "children": [100, 101], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 48}}, {"id": 100, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 42}}, {"id": 101, "type": "identifier", "text": "value", "parent": 99, "children": [], "start_point": {"row": 25, "column": 43}, "end_point": {"row": 25, "column": 48}}, {"id": 102, "type": "call_expression", "text": "RegSetValueEx(handle, name, 0, REG_SZ,\r\n (const BYTE*) value, (DWORD) strlen(value) + 1)", "parent": 87, "children": [103, 104], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 28, "column": 59}}, {"id": 103, "type": "identifier", "text": "RegSetValueEx", "parent": 102, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 17}}, {"id": 104, "type": "argument_list", "text": "(handle, name, 0, REG_SZ,\r\n (const BYTE*) value, (DWORD) strlen(value) + 1)", "parent": 102, "children": [105, 106, 107, 108, 109, 115], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 28, "column": 59}}, {"id": 105, "type": "identifier", "text": "handle", "parent": 104, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 24}}, {"id": 106, "type": "identifier", "text": "name", "parent": 104, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 30}}, {"id": 107, "type": "number_literal", "text": "0", "parent": 104, "children": [], "start_point": {"row": 27, "column": 32}, "end_point": {"row": 27, "column": 33}}, {"id": 108, "type": "identifier", "text": "REG_SZ", "parent": 104, "children": [], "start_point": {"row": 27, "column": 35}, "end_point": {"row": 27, "column": 41}}, {"id": 109, "type": "cast_expression", "text": "(const BYTE*) value", "parent": 104, "children": [110, 114], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 31}}, {"id": 110, "type": "type_descriptor", "text": "const BYTE*", "parent": 109, "children": [111, 112], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 24}}, {"id": 111, "type": "type_identifier", "text": "BYTE", "parent": 110, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 23}}, {"id": 112, "type": "abstract_pointer_declarator", "text": "*", "parent": 110, "children": [113], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 114, "type": "identifier", "text": "value", "parent": 109, "children": [], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 31}}, {"id": 115, "type": "binary_expression", "text": "(DWORD) strlen(value) + 1", "parent": 104, "children": [116, 123, 124], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 58}}, {"id": 116, "type": "cast_expression", "text": "(DWORD) strlen(value)", "parent": 115, "children": [117, 119], "start_point": {"row": 28, "column": 33}, "end_point": {"row": 28, "column": 54}}, {"id": 117, "type": "type_descriptor", "text": "DWORD", "parent": 116, "children": [118], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 39}}, {"id": 118, "type": "type_identifier", "text": "DWORD", "parent": 117, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 39}}, {"id": 119, "type": "call_expression", "text": "strlen(value)", "parent": 116, "children": [120, 121], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 54}}, {"id": 120, "type": "identifier", "text": "strlen", "parent": 119, "children": [], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 47}}, {"id": 121, "type": "argument_list", "text": "(value)", "parent": 119, "children": [122], "start_point": {"row": 28, "column": 47}, "end_point": {"row": 28, "column": 54}}, {"id": 122, "type": "identifier", "text": "value", "parent": 121, "children": [], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 53}}, {"id": 123, "type": "+", "text": "+", "parent": 115, "children": [], "start_point": {"row": 28, "column": 55}, "end_point": {"row": 28, "column": 56}}, {"id": 124, "type": "number_literal", "text": "1", "parent": 115, "children": [], "start_point": {"row": 28, "column": 57}, "end_point": {"row": 28, "column": 58}}, {"id": 125, "type": "preproc_ifdef", "text": "#ifdef KALI_STRING_INCLUDED\r\n\r\n kali::string get(const char* name, const char* default_) const\r\n\t{\r\n kali::string value = default_;\r\n\t\tDWORD size = value.size;\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) value(), &size);\r\n\t\treturn value;\r\n\t}\r\n\r\n kali::string subKey(int index) const\r\n {\r\n FILETIME unused;\r\n kali::string key;\r\n DWORD size = key.size;\r\n ::RegEnumKeyEx(handle, index,\r\n key(), &size, 0, 0, 0, &unused);\r\n return key;\r\n }\r\n\r\n #endif", "parent": 0, "children": [126, 127, 128, 180, 223], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 126, "type": "#ifdef", "text": "#ifdef", "parent": 125, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 127, "type": "identifier", "text": "KALI_STRING_INCLUDED", "parent": 125, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 31}}, {"id": 128, "type": "labeled_statement", "text": "kali::string get(const char* name, const char* default_) const\r\n\t{\r\n kali::string value = default_;\r\n\t\tDWORD size = value.size;\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) value(), &size);\r\n\t\treturn value;\r\n\t}", "parent": 125, "children": [129, 130], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 40, "column": 2}}, {"id": 129, "type": "statement_identifier", "text": "kali", "parent": 128, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 130, "type": "ERROR", "text": ":string get(const char* name, const char* default_) const", "parent": 128, "children": [131, 132], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 66}}, {"id": 131, "type": "type_identifier", "text": "string", "parent": 130, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 16}}, {"id": 132, "type": "function_declarator", "text": "get(const char* name, const char* default_) const", "parent": 130, "children": [133, 134], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 66}}, {"id": 133, "type": "identifier", "text": "get", "parent": 132, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 20}}, {"id": 134, "type": "parameter_list", "text": "(const char* name, const char* default_)", "parent": 132, "children": [135, 140], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 60}}, {"id": 135, "type": "parameter_declaration", "text": "const char* name", "parent": 134, "children": [136, 137], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 37}}, {"id": 136, "type": "primitive_type", "text": "char", "parent": 135, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 31}}, {"id": 137, "type": "pointer_declarator", "text": "* name", "parent": 135, "children": [138, 139], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 37}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 32}}, {"id": 139, "type": "identifier", "text": "name", "parent": 137, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 37}}, {"id": 140, "type": "parameter_declaration", "text": "const char* default_", "parent": 134, "children": [141, 142], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 59}}, {"id": 141, "type": "primitive_type", "text": "char", "parent": 140, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 49}}, {"id": 142, "type": "pointer_declarator", "text": "* default_", "parent": 140, "children": [143, 144], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 59}}, {"id": 143, "type": "*", "text": "*", "parent": 142, "children": [], "start_point": {"row": 33, "column": 49}, "end_point": {"row": 33, "column": 50}}, {"id": 144, "type": "identifier", "text": "default_", "parent": 142, "children": [], "start_point": {"row": 33, "column": 51}, "end_point": {"row": 33, "column": 59}}, {"id": 145, "type": "labeled_statement", "text": "kali::string value = default_;", "parent": 128, "children": [146, 147], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 38}}, {"id": 146, "type": "statement_identifier", "text": "kali", "parent": 145, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 12}}, {"id": 147, "type": "declaration", "text": "string value = default_;", "parent": 145, "children": [148, 149], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 38}}, {"id": 148, "type": "type_identifier", "text": "string", "parent": 147, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 20}}, {"id": 149, "type": "init_declarator", "text": "value = default_", "parent": 147, "children": [150, 151, 152], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 37}}, {"id": 150, "type": "identifier", "text": "value", "parent": 149, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 26}}, {"id": 151, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 35, "column": 27}, "end_point": {"row": 35, "column": 28}}, {"id": 152, "type": "identifier", "text": "default_", "parent": 149, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 37}}, {"id": 153, "type": "declaration", "text": "DWORD size = value.size;", "parent": 128, "children": [154, 155], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 26}}, {"id": 154, "type": "type_identifier", "text": "DWORD", "parent": 153, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 7}}, {"id": 155, "type": "init_declarator", "text": "size = value.size", "parent": 153, "children": [156, 157, 158], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 25}}, {"id": 156, "type": "identifier", "text": "size", "parent": 155, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 12}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 14}}, {"id": 158, "type": "field_expression", "text": "value.size", "parent": 155, "children": [159, 160], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 25}}, {"id": 159, "type": "identifier", "text": "value", "parent": 158, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 20}}, {"id": 160, "type": "field_identifier", "text": "size", "parent": 158, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 25}}, {"id": 161, "type": "call_expression", "text": "RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) value(), &size)", "parent": 128, "children": [162, 163], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 38, "column": 41}}, {"id": 162, "type": "identifier", "text": "RegQueryValueEx", "parent": 161, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 19}}, {"id": 163, "type": "argument_list", "text": "(handle, name,\r\n 0, 0, (BYTE*) value(), &size)", "parent": 161, "children": [164, 165, 166, 167, 168, 176], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 38, "column": 41}}, {"id": 164, "type": "identifier", "text": "handle", "parent": 163, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 26}}, {"id": 165, "type": "identifier", "text": "name", "parent": 163, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 32}}, {"id": 166, "type": "number_literal", "text": "0", "parent": 163, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 167, "type": "number_literal", "text": "0", "parent": 163, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 16}}, {"id": 168, "type": "cast_expression", "text": "(BYTE*) value()", "parent": 163, "children": [169, 173], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 33}}, {"id": 169, "type": "type_descriptor", "text": "BYTE*", "parent": 168, "children": [170, 171], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 24}}, {"id": 170, "type": "type_identifier", "text": "BYTE", "parent": 169, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 23}}, {"id": 171, "type": "abstract_pointer_declarator", "text": "*", "parent": 169, "children": [172], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 173, "type": "call_expression", "text": "value()", "parent": 168, "children": [174, 175], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 33}}, {"id": 174, "type": "identifier", "text": "value", "parent": 173, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 31}}, {"id": 175, "type": "argument_list", "text": "()", "parent": 173, "children": [], "start_point": {"row": 38, "column": 31}, "end_point": {"row": 38, "column": 33}}, {"id": 176, "type": "pointer_expression", "text": "&size", "parent": 163, "children": [177], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 40}}, {"id": 177, "type": "identifier", "text": "size", "parent": 176, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 40}}, {"id": 178, "type": "return_statement", "text": "return value;", "parent": 128, "children": [179], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 15}}, {"id": 179, "type": "identifier", "text": "value", "parent": 178, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 14}}, {"id": 180, "type": "labeled_statement", "text": "kali::string subKey(int index) const\r\n {\r\n FILETIME unused;\r\n kali::string key;\r\n DWORD size = key.size;\r\n ::RegEnumKeyEx(handle, index,\r\n key(), &size, 0, 0, 0, &unused);\r\n return key;\r\n }", "parent": 125, "children": [181, 182], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 50, "column": 5}}, {"id": 181, "type": "statement_identifier", "text": "kali", "parent": 180, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 182, "type": "ERROR", "text": ":string subKey(int index) const", "parent": 180, "children": [183, 184], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 40}}, {"id": 183, "type": "type_identifier", "text": "string", "parent": 182, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 16}}, {"id": 184, "type": "function_declarator", "text": "subKey(int index) const", "parent": 182, "children": [185, 186], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 40}}, {"id": 185, "type": "identifier", "text": "subKey", "parent": 184, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 23}}, {"id": 186, "type": "parameter_list", "text": "(int index)", "parent": 184, "children": [187], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 34}}, {"id": 187, "type": "parameter_declaration", "text": "int index", "parent": 186, "children": [188, 189], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 33}}, {"id": 188, "type": "primitive_type", "text": "int", "parent": 187, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 27}}, {"id": 189, "type": "identifier", "text": "index", "parent": 187, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 33}}, {"id": 190, "type": "declaration", "text": "FILETIME unused;", "parent": 180, "children": [191, 192], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 24}}, {"id": 191, "type": "type_identifier", "text": "FILETIME", "parent": 190, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 16}}, {"id": 192, "type": "identifier", "text": "unused", "parent": 190, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 23}}, {"id": 193, "type": "labeled_statement", "text": "kali::string key;", "parent": 180, "children": [194, 195], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 25}}, {"id": 194, "type": "statement_identifier", "text": "kali", "parent": 193, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 12}}, {"id": 195, "type": "declaration", "text": "string key;", "parent": 193, "children": [196, 197], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 25}}, {"id": 196, "type": "type_identifier", "text": "string", "parent": 195, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 20}}, {"id": 197, "type": "identifier", "text": "key", "parent": 195, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 24}}, {"id": 198, "type": "declaration", "text": "DWORD size = key.size;", "parent": 180, "children": [199, 200], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 30}}, {"id": 199, "type": "type_identifier", "text": "DWORD", "parent": 198, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 13}}, {"id": 200, "type": "init_declarator", "text": "size = key.size", "parent": 198, "children": [201, 202, 203], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 29}}, {"id": 201, "type": "identifier", "text": "size", "parent": 200, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 18}}, {"id": 202, "type": "=", "text": "=", "parent": 200, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 20}}, {"id": 203, "type": "field_expression", "text": "key.size", "parent": 200, "children": [204, 205], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 29}}, {"id": 204, "type": "identifier", "text": "key", "parent": 203, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 24}}, {"id": 205, "type": "field_identifier", "text": "size", "parent": 203, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 29}}, {"id": 206, "type": "call_expression", "text": "RegEnumKeyEx(handle, index,\r\n key(), &size, 0, 0, 0, &unused)", "parent": 180, "children": [207, 208], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 48, "column": 43}}, {"id": 207, "type": "identifier", "text": "RegEnumKeyEx", "parent": 206, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 22}}, {"id": 208, "type": "argument_list", "text": "(handle, index,\r\n key(), &size, 0, 0, 0, &unused)", "parent": 206, "children": [209, 210, 211, 214, 216, 217, 218, 219], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 48, "column": 43}}, {"id": 209, "type": "identifier", "text": "handle", "parent": 208, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 29}}, {"id": 210, "type": "identifier", "text": "index", "parent": 208, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 36}}, {"id": 211, "type": "call_expression", "text": "key()", "parent": 208, "children": [212, 213], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 17}}, {"id": 212, "type": "identifier", "text": "key", "parent": 211, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 15}}, {"id": 213, "type": "argument_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 17}}, {"id": 214, "type": "pointer_expression", "text": "&size", "parent": 208, "children": [215], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 24}}, {"id": 215, "type": "identifier", "text": "size", "parent": 214, "children": [], "start_point": {"row": 48, "column": 20}, "end_point": {"row": 48, "column": 24}}, {"id": 216, "type": "number_literal", "text": "0", "parent": 208, "children": [], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 27}}, {"id": 217, "type": "number_literal", "text": "0", "parent": 208, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 30}}, {"id": 218, "type": "number_literal", "text": "0", "parent": 208, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 33}}, {"id": 219, "type": "pointer_expression", "text": "&unused", "parent": 208, "children": [220], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 42}}, {"id": 220, "type": "identifier", "text": "unused", "parent": 219, "children": [], "start_point": {"row": 48, "column": 36}, "end_point": {"row": 48, "column": 42}}, {"id": 221, "type": "return_statement", "text": "return key;", "parent": 180, "children": [222], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 19}}, {"id": 222, "type": "identifier", "text": "key", "parent": 221, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 18}}, {"id": 223, "type": "#endif", "text": "#endif", "parent": 125, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 10}}, {"id": 224, "type": "function_definition", "text": "bool exist(const char* key) // test for a subkey\r\n {\r\n Handle h;\r\n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h);\r\n if (ret == 0)\r\n ::RegCloseKey(h);\r\n return !ret;\r\n }", "parent": 0, "children": [225, 226], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 64, "column": 5}}, {"id": 225, "type": "primitive_type", "text": "bool", "parent": 224, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 8}}, {"id": 226, "type": "function_declarator", "text": "exist(const char* key)", "parent": 224, "children": [227, 228], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 31}}, {"id": 227, "type": "identifier", "text": "exist", "parent": 226, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 14}}, {"id": 228, "type": "parameter_list", "text": "(const char* key)", "parent": 226, "children": [229], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 31}}, {"id": 229, "type": "parameter_declaration", "text": "const char* key", "parent": 228, "children": [230, 231], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 30}}, {"id": 230, "type": "primitive_type", "text": "char", "parent": 229, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 231, "type": "pointer_declarator", "text": "* key", "parent": 229, "children": [232, 233], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 30}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 233, "type": "identifier", "text": "key", "parent": 231, "children": [], "start_point": {"row": 57, "column": 27}, "end_point": {"row": 57, "column": 30}}, {"id": 234, "type": "declaration", "text": "Handle h;", "parent": 224, "children": [235, 236], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 17}}, {"id": 235, "type": "type_identifier", "text": "Handle", "parent": 234, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 14}}, {"id": 236, "type": "identifier", "text": "h", "parent": 234, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 237, "type": "declaration", "text": "int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h);", "parent": 224, "children": [238, 239], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 63}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 239, "type": "init_declarator", "text": "ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h)", "parent": 237, "children": [240, 241, 242], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 62}}, {"id": 240, "type": "identifier", "text": "ret", "parent": 239, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 15}}, {"id": 241, "type": "=", "text": "=", "parent": 239, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 242, "type": "call_expression", "text": "RegOpenKeyEx(handle, key, 0, KEY_READ, &h)", "parent": 239, "children": [243, 244], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 62}}, {"id": 243, "type": "identifier", "text": "RegOpenKeyEx", "parent": 242, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 32}}, {"id": 244, "type": "argument_list", "text": "(handle, key, 0, KEY_READ, &h)", "parent": 242, "children": [245, 246, 247, 248, 249], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 62}}, {"id": 245, "type": "identifier", "text": "handle", "parent": 244, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 39}}, {"id": 246, "type": "identifier", "text": "key", "parent": 244, "children": [], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 44}}, {"id": 247, "type": "number_literal", "text": "0", "parent": 244, "children": [], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 47}}, {"id": 248, "type": "identifier", "text": "KEY_READ", "parent": 244, "children": [], "start_point": {"row": 60, "column": 49}, "end_point": {"row": 60, "column": 57}}, {"id": 249, "type": "pointer_expression", "text": "&h", "parent": 244, "children": [250], "start_point": {"row": 60, "column": 59}, "end_point": {"row": 60, "column": 61}}, {"id": 250, "type": "identifier", "text": "h", "parent": 249, "children": [], "start_point": {"row": 60, "column": 60}, "end_point": {"row": 60, "column": 61}}, {"id": 251, "type": "if_statement", "text": "if (ret == 0)\r\n ::RegCloseKey(h);", "parent": 224, "children": [252], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 62, "column": 29}}, {"id": 252, "type": "parenthesized_expression", "text": "(ret == 0)", "parent": 251, "children": [253], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 21}}, {"id": 253, "type": "binary_expression", "text": "ret == 0", "parent": 252, "children": [254, 255, 256], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 20}}, {"id": 254, "type": "identifier", "text": "ret", "parent": 253, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 15}}, {"id": 255, "type": "==", "text": "==", "parent": 253, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 18}}, {"id": 256, "type": "number_literal", "text": "0", "parent": 253, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 20}}, {"id": 257, "type": "call_expression", "text": "RegCloseKey(h)", "parent": 251, "children": [258, 259], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 28}}, {"id": 258, "type": "identifier", "text": "RegCloseKey", "parent": 257, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 25}}, {"id": 259, "type": "argument_list", "text": "(h)", "parent": 257, "children": [260], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 28}}, {"id": 260, "type": "identifier", "text": "h", "parent": 259, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 27}}, {"id": 261, "type": "return_statement", "text": "return !ret;", "parent": 224, "children": [262], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 20}}, {"id": 262, "type": "unary_expression", "text": "!ret", "parent": 261, "children": [263, 264], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 19}}, {"id": 263, "type": "!", "text": "!", "parent": 262, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 16}}, {"id": 264, "type": "identifier", "text": "ret", "parent": 262, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 19}}, {"id": 265, "type": "function_definition", "text": "void deleteKey(const char* key) // delete subkey\r\n {\r\n ::RegDeleteKey(handle, key);\r\n }", "parent": 0, "children": [266, 267], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 266, "type": "primitive_type", "text": "void", "parent": 265, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 8}}, {"id": 267, "type": "function_declarator", "text": "deleteKey(const char* key)", "parent": 265, "children": [268, 269], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 35}}, {"id": 268, "type": "identifier", "text": "deleteKey", "parent": 267, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 18}}, {"id": 269, "type": "parameter_list", "text": "(const char* key)", "parent": 267, "children": [270], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 35}}, {"id": 270, "type": "parameter_declaration", "text": "const char* key", "parent": 269, "children": [271, 272], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 34}}, {"id": 271, "type": "primitive_type", "text": "char", "parent": 270, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 29}}, {"id": 272, "type": "pointer_declarator", "text": "* key", "parent": 270, "children": [273, 274], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 34}}, {"id": 273, "type": "*", "text": "*", "parent": 272, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 30}}, {"id": 274, "type": "identifier", "text": "key", "parent": 272, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 34}}, {"id": 275, "type": "call_expression", "text": "RegDeleteKey(handle, key)", "parent": 265, "children": [276, 277], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 35}}, {"id": 276, "type": "identifier", "text": "RegDeleteKey", "parent": 275, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 22}}, {"id": 277, "type": "argument_list", "text": "(handle, key)", "parent": 275, "children": [278, 279], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 35}}, {"id": 278, "type": "identifier", "text": "handle", "parent": 277, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 29}}, {"id": 279, "type": "identifier", "text": "key", "parent": 277, "children": [], "start_point": {"row": 68, "column": 31}, "end_point": {"row": 68, "column": 34}}, {"id": 280, "type": "unary_expression", "text": "~Settings()", "parent": 0, "children": [281, 282], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 15}}, {"id": 281, "type": "~", "text": "~", "parent": 280, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 282, "type": "call_expression", "text": "Settings()", "parent": 280, "children": [283, 284], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 15}}, {"id": 283, "type": "identifier", "text": "Settings", "parent": 282, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 13}}, {"id": 284, "type": "argument_list", "text": "()", "parent": 282, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 15}}, {"id": 285, "type": "ERROR", "text": "{::RegCloseKey(handle)", "parent": 0, "children": [286, 287], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 38}}, {"id": 286, "type": "identifier", "text": "RegCloseKey", "parent": 285, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 30}}, {"id": 287, "type": "identifier", "text": "handle", "parent": 285, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 37}}, {"id": 288, "type": "function_definition", "text": "Settings(const char* key)\r\n : handle(ctor(HKEY_CURRENT_USER, key)) {}", "parent": 0, "children": [289, 297], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 76, "column": 49}}, {"id": 289, "type": "macro_type_specifier", "text": "Settings(const char* key)", "parent": 288, "children": [290, 291, 295], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 42}}, {"id": 290, "type": "identifier", "text": "Settings", "parent": 289, "children": [], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 25}}, {"id": 291, "type": "type_descriptor", "text": "const char*", "parent": 289, "children": [292, 293], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 37}}, {"id": 292, "type": "primitive_type", "text": "char", "parent": 291, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 36}}, {"id": 293, "type": "abstract_pointer_declarator", "text": "*", "parent": 291, "children": [294], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 37}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 75, "column": 36}, "end_point": {"row": 75, "column": 37}}, {"id": 295, "type": "ERROR", "text": "key", "parent": 289, "children": [296], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 41}}, {"id": 296, "type": "identifier", "text": "key", "parent": 295, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 41}}, {"id": 297, "type": "function_declarator", "text": "handle(ctor(HKEY_CURRENT_USER, key))", "parent": 288, "children": [298, 299], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 46}}, {"id": 298, "type": "identifier", "text": "handle", "parent": 297, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 16}}, {"id": 299, "type": "parameter_list", "text": "(ctor(HKEY_CURRENT_USER, key))", "parent": 297, "children": [300], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 46}}, {"id": 300, "type": "parameter_declaration", "text": "ctor(HKEY_CURRENT_USER, key)", "parent": 299, "children": [301, 302], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 45}}, {"id": 301, "type": "type_identifier", "text": "ctor", "parent": 300, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 21}}, {"id": 302, "type": "abstract_function_declarator", "text": "(HKEY_CURRENT_USER, key)", "parent": 300, "children": [303], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 45}}, {"id": 303, "type": "parameter_list", "text": "(HKEY_CURRENT_USER, key)", "parent": 302, "children": [304, 306], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 45}}, {"id": 304, "type": "parameter_declaration", "text": "HKEY_CURRENT_USER", "parent": 303, "children": [305], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 39}}, {"id": 305, "type": "type_identifier", "text": "HKEY_CURRENT_USER", "parent": 304, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 39}}, {"id": 306, "type": "parameter_declaration", "text": "key", "parent": 303, "children": [307], "start_point": {"row": 76, "column": 41}, "end_point": {"row": 76, "column": 44}}, {"id": 307, "type": "type_identifier", "text": "key", "parent": 306, "children": [], "start_point": {"row": 76, "column": 41}, "end_point": {"row": 76, "column": 44}}, {"id": 308, "type": "ERROR", "text": "Settings(const Settings& root, const char* key)\r\n :", "parent": 0, "children": [309], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 309, "type": "comma_expression", "text": "Settings(const Settings& root, const char* key", "parent": 308, "children": [310, 316], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 50}}, {"id": 310, "type": "binary_expression", "text": "Settings(const Settings& root", "parent": 309, "children": [311, 312, 315], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 33}}, {"id": 311, "type": "identifier", "text": "Settings", "parent": 310, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 12}}, {"id": 312, "type": "ERROR", "text": "(const Settings", "parent": 310, "children": [313], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 27}}, {"id": 313, "type": "type_descriptor", "text": "const Settings", "parent": 312, "children": [314], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 27}}, {"id": 314, "type": "type_identifier", "text": "Settings", "parent": 313, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 27}}, {"id": 315, "type": "identifier", "text": "root", "parent": 310, "children": [], "start_point": {"row": 78, "column": 29}, "end_point": {"row": 78, "column": 33}}, {"id": 316, "type": "binary_expression", "text": "const char* key", "parent": 309, "children": [317, 319, 320], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 50}}, {"id": 317, "type": "ERROR", "text": "char", "parent": 316, "children": [318], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 45}}, {"id": 318, "type": "identifier", "text": "char", "parent": 317, "children": [], "start_point": {"row": 78, "column": 41}, "end_point": {"row": 78, "column": 45}}, {"id": 319, "type": "*", "text": "*", "parent": 316, "children": [], "start_point": {"row": 78, "column": 45}, "end_point": {"row": 78, "column": 46}}, {"id": 320, "type": "identifier", "text": "key", "parent": 316, "children": [], "start_point": {"row": 78, "column": 47}, "end_point": {"row": 78, "column": 50}}, {"id": 321, "type": "call_expression", "text": "handle(ctor(root.handle, key))", "parent": 0, "children": [322, 323], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 40}}, {"id": 322, "type": "identifier", "text": "handle", "parent": 321, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 16}}, {"id": 323, "type": "argument_list", "text": "(ctor(root.handle, key))", "parent": 321, "children": [324], "start_point": {"row": 79, "column": 16}, "end_point": {"row": 79, "column": 40}}, {"id": 324, "type": "call_expression", "text": "ctor(root.handle, key)", "parent": 323, "children": [325, 326], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 39}}, {"id": 325, "type": "identifier", "text": "ctor", "parent": 324, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 21}}, {"id": 326, "type": "argument_list", "text": "(root.handle, key)", "parent": 324, "children": [327, 330], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 39}}, {"id": 327, "type": "field_expression", "text": "root.handle", "parent": 326, "children": [328, 329], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 33}}, {"id": 328, "type": "identifier", "text": "root", "parent": 327, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 26}}, {"id": 329, "type": "field_identifier", "text": "handle", "parent": 327, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 33}}, {"id": 330, "type": "identifier", "text": "key", "parent": 326, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 38}}, {"id": 331, "type": "labeled_statement", "text": "private:\r\n typedef ::HKEY Handle;", "parent": 0, "children": [332], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 26}}, {"id": 332, "type": "labeled_statement", "text": "typedef ::HKEY Handle;", "parent": 331, "children": [333, 334], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 26}}, {"id": 333, "type": "statement_identifier", "text": "typedef", "parent": 332, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 11}}, {"id": 334, "type": "declaration", "text": "HKEY Handle;", "parent": 332, "children": [335, 336], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 26}}, {"id": 335, "type": "type_identifier", "text": "HKEY", "parent": 334, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 18}}, {"id": 336, "type": "identifier", "text": "Handle", "parent": 334, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 25}}, {"id": 337, "type": "declaration", "text": "Handle handle;", "parent": 0, "children": [338, 339], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 18}}, {"id": 338, "type": "type_identifier", "text": "Handle", "parent": 337, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 10}}, {"id": 339, "type": "identifier", "text": "handle", "parent": 337, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 17}}, {"id": 340, "type": "macro_type_specifier", "text": "Settings(const Settings&)", "parent": 0, "children": [341, 342], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 29}}, {"id": 341, "type": "identifier", "text": "Settings", "parent": 340, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 12}}, {"id": 342, "type": "type_descriptor", "text": "const Settings", "parent": 340, "children": [343], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 27}}, {"id": 343, "type": "type_identifier", "text": "Settings", "parent": 342, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 27}}, {"id": 344, "type": "binary_expression", "text": "Settings& operator = (const Settings&)", "parent": 0, "children": [345, 346], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 42}}, {"id": 345, "type": "identifier", "text": "Settings", "parent": 344, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 12}}, {"id": 346, "type": "assignment_expression", "text": "operator = (const Settings&)", "parent": 344, "children": [347, 348, 349], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 42}}, {"id": 347, "type": "identifier", "text": "operator", "parent": 346, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 22}}, {"id": 348, "type": "=", "text": "=", "parent": 346, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 24}}, {"id": 349, "type": "cast_expression", "text": "(const Settings&)", "parent": 346, "children": [350, 352], "start_point": {"row": 85, "column": 25}, "end_point": {"row": 85, "column": 42}}, {"id": 350, "type": "type_descriptor", "text": "const Settings", "parent": 349, "children": [351], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 40}}, {"id": 351, "type": "type_identifier", "text": "Settings", "parent": 350, "children": [], "start_point": {"row": 85, "column": 32}, "end_point": {"row": 85, "column": 40}}, {"id": 352, "type": "identifier", "text": "", "parent": 349, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 42}}, {"id": 353, "type": "function_definition", "text": "static Handle ctor(Handle root, const char* key)\r\n {\r\n Handle handle = 0;\r\n REGSAM access = KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS;\r\n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))\r\n trace(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key);\r\n return handle;\r\n\t}", "parent": 0, "children": [354, 355], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 95, "column": 2}}, {"id": 354, "type": "type_identifier", "text": "Handle", "parent": 353, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 17}}, {"id": 355, "type": "function_declarator", "text": "ctor(Handle root, const char* key)", "parent": 353, "children": [356, 357], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 52}}, {"id": 356, "type": "identifier", "text": "ctor", "parent": 355, "children": [], "start_point": {"row": 87, "column": 18}, "end_point": {"row": 87, "column": 22}}, {"id": 357, "type": "parameter_list", "text": "(Handle root, const char* key)", "parent": 355, "children": [358, 361], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 52}}, {"id": 358, "type": "parameter_declaration", "text": "Handle root", "parent": 357, "children": [359, 360], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 34}}, {"id": 359, "type": "type_identifier", "text": "Handle", "parent": 358, "children": [], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 29}}, {"id": 360, "type": "identifier", "text": "root", "parent": 358, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 34}}, {"id": 361, "type": "parameter_declaration", "text": "const char* key", "parent": 357, "children": [362, 363], "start_point": {"row": 87, "column": 36}, "end_point": {"row": 87, "column": 51}}, {"id": 362, "type": "primitive_type", "text": "char", "parent": 361, "children": [], "start_point": {"row": 87, "column": 42}, "end_point": {"row": 87, "column": 46}}, {"id": 363, "type": "pointer_declarator", "text": "* key", "parent": 361, "children": [364, 365], "start_point": {"row": 87, "column": 46}, "end_point": {"row": 87, "column": 51}}, {"id": 364, "type": "*", "text": "*", "parent": 363, "children": [], "start_point": {"row": 87, "column": 46}, "end_point": {"row": 87, "column": 47}}, {"id": 365, "type": "identifier", "text": "key", "parent": 363, "children": [], "start_point": {"row": 87, "column": 48}, "end_point": {"row": 87, "column": 51}}, {"id": 366, "type": "declaration", "text": "Handle handle = 0;", "parent": 353, "children": [367, 368], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 26}}, {"id": 367, "type": "type_identifier", "text": "Handle", "parent": 366, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 14}}, {"id": 368, "type": "init_declarator", "text": "handle = 0", "parent": 366, "children": [369, 370, 371], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 25}}, {"id": 369, "type": "identifier", "text": "handle", "parent": 368, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 21}}, {"id": 370, "type": "=", "text": "=", "parent": 368, "children": [], "start_point": {"row": 89, "column": 22}, "end_point": {"row": 89, "column": 23}}, {"id": 371, "type": "number_literal", "text": "0", "parent": 368, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 25}}, {"id": 372, "type": "declaration", "text": "REGSAM access = KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS;", "parent": 353, "children": [373, 374], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 91, "column": 58}}, {"id": 373, "type": "type_identifier", "text": "REGSAM", "parent": 372, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 14}}, {"id": 374, "type": "init_declarator", "text": "access = KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS", "parent": 372, "children": [375, 376, 377], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 91, "column": 57}}, {"id": 375, "type": "identifier", "text": "access", "parent": 374, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 21}}, {"id": 376, "type": "=", "text": "=", "parent": 374, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 23}}, {"id": 377, "type": "binary_expression", "text": "KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS", "parent": 374, "children": [378, 383], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 91, "column": 57}}, {"id": 378, "type": "binary_expression", "text": "KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY", "parent": 377, "children": [379, 382], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 91, "column": 32}}, {"id": 379, "type": "binary_expression", "text": "KEY_READ | KEY_WRITE", "parent": 378, "children": [380, 381], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 44}}, {"id": 380, "type": "identifier", "text": "KEY_READ", "parent": 379, "children": [], "start_point": {"row": 90, "column": 24}, "end_point": {"row": 90, "column": 32}}, {"id": 381, "type": "identifier", "text": "KEY_WRITE", "parent": 379, "children": [], "start_point": {"row": 90, "column": 35}, "end_point": {"row": 90, "column": 44}}, {"id": 382, "type": "identifier", "text": "KEY_CREATE_SUB_KEY", "parent": 378, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 32}}, {"id": 383, "type": "identifier", "text": "KEY_ENUMERATE_SUB_KEYS", "parent": 377, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 57}}, {"id": 384, "type": "if_statement", "text": "if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))\r\n trace(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key);", "parent": 353, "children": [385], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 93, "column": 70}}, {"id": 385, "type": "parenthesized_expression", "text": "(::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))", "parent": 384, "children": [386], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 72}}, {"id": 386, "type": "call_expression", "text": "RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0)", "parent": 385, "children": [387, 388], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 71}}, {"id": 387, "type": "identifier", "text": "RegCreateKeyEx", "parent": 386, "children": [], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 28}}, {"id": 388, "type": "argument_list", "text": "(root, key, 0, 0, 0, access, 0, &handle, 0)", "parent": 386, "children": [389, 390, 391, 392, 393, 394, 395, 396, 398], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 71}}, {"id": 389, "type": "identifier", "text": "root", "parent": 388, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 33}}, {"id": 390, "type": "identifier", "text": "key", "parent": 388, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 38}}, {"id": 391, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 92, "column": 40}, "end_point": {"row": 92, "column": 41}}, {"id": 392, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 44}}, {"id": 393, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 92, "column": 46}, "end_point": {"row": 92, "column": 47}}, {"id": 394, "type": "identifier", "text": "access", "parent": 388, "children": [], "start_point": {"row": 92, "column": 49}, "end_point": {"row": 92, "column": 55}}, {"id": 395, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 92, "column": 57}, "end_point": {"row": 92, "column": 58}}, {"id": 396, "type": "pointer_expression", "text": "&handle", "parent": 388, "children": [397], "start_point": {"row": 92, "column": 60}, "end_point": {"row": 92, "column": 67}}, {"id": 397, "type": "identifier", "text": "handle", "parent": 396, "children": [], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 67}}, {"id": 398, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 92, "column": 69}, "end_point": {"row": 92, "column": 70}}, {"id": 399, "type": "call_expression", "text": "trace(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key)", "parent": 384, "children": [400, 401], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 69}}, {"id": 400, "type": "identifier", "text": "trace", "parent": 399, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 17}}, {"id": 401, "type": "argument_list", "text": "(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key)", "parent": 399, "children": [402, 405, 406, 407], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 69}}, {"id": 402, "type": "string_literal", "text": "\"%s: - cannot open %x\\\\%s\\n\"", "parent": 401, "children": [403, 404], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 46}}, {"id": 403, "type": "escape_sequence", "text": "\\\\", "parent": 402, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 41}}, {"id": 404, "type": "escape_sequence", "text": "\\n", "parent": 402, "children": [], "start_point": {"row": 93, "column": 43}, "end_point": {"row": 93, "column": 45}}, {"id": 405, "type": "identifier", "text": "FUNCTION_", "parent": 401, "children": [], "start_point": {"row": 93, "column": 48}, "end_point": {"row": 93, "column": 57}}, {"id": 406, "type": "identifier", "text": "root", "parent": 401, "children": [], "start_point": {"row": 93, "column": 59}, "end_point": {"row": 93, "column": 63}}, {"id": 407, "type": "identifier", "text": "key", "parent": 401, "children": [], "start_point": {"row": 93, "column": 65}, "end_point": {"row": 93, "column": 68}}, {"id": 408, "type": "return_statement", "text": "return handle;", "parent": 353, "children": [409], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 22}}, {"id": 409, "type": "identifier", "text": "handle", "parent": 408, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 21}}, {"id": 410, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 18, 50, 87, 89, 132, 184, 224, 226, 265, 267, 288, 297, 302, 353, 355], "variables": [16, 21, 26, 53, 58, 61, 92, 97, 135, 140, 147, 153, 187, 190, 195, 198, 229, 234, 237, 270, 300, 304, 306, 334, 337, 358, 361, 366, 372], "classes": [13, 14], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [31, 38, 43, 45, 46, 66, 67, 69, 76, 81, 83, 102, 109, 115, 116, 119, 158, 161, 168, 173, 176, 203, 206, 211, 214, 219, 242, 249, 252, 253, 257, 262, 275, 280, 282, 309, 310, 316, 321, 324, 327, 344, 349, 377, 378, 379, 385, 386, 396, 399], "assignments": [346], "loops": [], "conditionals": [0, 1, 2, 5, 15, 19, 25, 28, 32, 34, 35, 37, 40, 44, 47, 49, 51, 57, 60, 62, 64, 68, 70, 72, 73, 78, 82, 84, 86, 90, 96, 101, 103, 105, 106, 108, 111, 114, 118, 120, 122, 125, 126, 127, 129, 131, 133, 139, 144, 146, 148, 150, 152, 154, 156, 159, 160, 162, 164, 165, 170, 174, 177, 179, 181, 183, 185, 189, 191, 192, 194, 196, 197, 199, 201, 204, 205, 207, 209, 210, 212, 215, 220, 222, 223, 227, 233, 235, 236, 240, 243, 245, 246, 248, 250, 251, 254, 258, 260, 264, 268, 274, 276, 278, 279, 283, 286, 287, 289, 290, 296, 298, 301, 305, 307, 311, 314, 315, 318, 320, 322, 325, 328, 329, 330, 333, 335, 336, 338, 339, 340, 341, 343, 345, 347, 351, 352, 354, 356, 359, 360, 365, 367, 369, 373, 375, 380, 381, 382, 383, 384, 387, 389, 390, 394, 397, 400, 405, 406, 407, 409, 410], "returns": [85, 178, 221, 261, 408], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 36, 74, 75, 107, 124, 166, 167, 216, 217, 218, 247, 256, 371, 391, 392, 393, 395, 398, 402], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [30]}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "Settings", "text_snippet": "struct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, n"}, {"node_id": 18, "universal_type": "function", "name": "value)", "text_snippet": "set(const char* name, int value)"}, {"node_id": 50, "universal_type": "function", "name": "default_)", "text_snippet": "get(const char* name, int default_) const"}, {"node_id": 87, "universal_type": "function", "name": "set", "text_snippet": "void set(const char* name, const char* value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_SZ,\r"}, {"node_id": 89, "universal_type": "function", "name": "unknown", "text_snippet": "set(const char* name, const char* value) const"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "get(const char* name, const char* default_) const"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "subKey(int index) const"}, {"node_id": 224, "universal_type": "function", "name": "exist", "text_snippet": "bool exist(const char* key) // test for a subkey\r\n {\r\n Handle h;\r\n int ret = ::RegO"}, {"node_id": 226, "universal_type": "function", "name": "unknown", "text_snippet": "exist(const char* key)"}, {"node_id": 265, "universal_type": "function", "name": "deleteKey", "text_snippet": "void deleteKey(const char* key) // delete subkey\r\n {\r\n ::RegDeleteKey(handle, key);\r\n }"}, {"node_id": 267, "universal_type": "function", "name": "unknown", "text_snippet": "deleteKey(const char* key)"}, {"node_id": 288, "universal_type": "function", "name": "unknown", "text_snippet": "Settings(const char* key)\r\n : handle(ctor(HKEY_CURRENT_USER, key)) {}"}, {"node_id": 297, "universal_type": "function", "name": "unknown", "text_snippet": "handle(ctor(HKEY_CURRENT_USER, key))"}, {"node_id": 302, "universal_type": "function", "name": "unknown", "text_snippet": "(HKEY_CURRENT_USER, key)"}, {"node_id": 353, "universal_type": "function", "name": "unknown", "text_snippet": "static Handle ctor(Handle root, const char* key)\r\n {\r\n Handle handle = 0;\r\n REGSAM "}, {"node_id": 355, "universal_type": "function", "name": "unknown", "text_snippet": "ctor(Handle root, const char* key)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "Settings", "text_snippet": "struct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, n"}, {"node_id": 14, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <windows.h>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"kali/dbgutils.h\"\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "\r\n#ifndef KALI_SETTINGS_INCLUDED\r\n#define KALI_SETTINGS_INCLUDED\r\n\r\n#include <windows.h>\r\n#include \"kali/dbgutils.h\"\r\n\r\n// ............................................................................\r\n\r\nstruct Settings\r\n{\r\n void set(const char* name, int value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_DWORD,\r\n (BYTE*) &value, sizeof(value));\r\n\t}\r\n\r\n int get(const char* name, int default_) const\r\n\t{\r\n\t\tDWORD size = sizeof(default_);\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) &default_, &size);\r\n\t\treturn default_;\r\n\t}\r\n\r\n void set(const char* name, const char* value) const\r\n\t{\r\n\t\t::RegSetValueEx(handle, name, 0, REG_SZ,\r\n (const BYTE*) value, (DWORD) strlen(value) + 1);\r\n\t}\r\n\r\n #ifdef KALI_STRING_INCLUDED\r\n\r\n kali::string get(const char* name, const char* default_) const\r\n\t{\r\n kali::string value = default_;\r\n\t\tDWORD size = value.size;\r\n\t\t::RegQueryValueEx(handle, name,\r\n 0, 0, (BYTE*) value(), &size);\r\n\t\treturn value;\r\n\t}\r\n\r\n kali::string subKey(int index) const\r\n {\r\n FILETIME unused;\r\n kali::string key;\r\n DWORD size = key.size;\r\n ::RegEnumKeyEx(handle, index,\r\n key(), &size, 0, 0, 0, &unused);\r\n return key;\r\n }\r\n\r\n #endif\r\n\r\n // ........................................................................\r\n // some extensions (Windows only)\r\n\r\n bool exist(const char* key) // test for a subkey\r\n {\r\n Handle h;\r\n int ret = ::RegOpenKeyEx(handle, key, 0, KEY_READ, &h);\r\n if (ret == 0)\r\n ::RegCloseKey(h);\r\n return !ret;\r\n }\r\n\r\n void deleteKey(const char* key) // delete subkey\r\n {\r\n ::RegDeleteKey(handle, key);\r\n }\r\n\r\n // ........................................................................\r\n\r\n ~Settings() {::RegCloseKey(handle);}\r\n\r\n /*explicit*/ Settings(const char* key)\r\n : handle(ctor(HKEY_CURRENT_USER, key)) {}\r\n\r\n Settings(const Settings& root, const char* key)\r\n : handle(ctor(root.handle, key)) {}\r\n\r\nprivate:\r\n typedef ::HKEY Handle;\r\n Handle handle;\r\n Settings(const Settings&);\r\n Settings& operator = (const Settings&);\r\n\r\n static Handle ctor(Handle root, const char* key)\r\n {\r\n Handle handle = 0;\r\n REGSAM access = KEY_READ | KEY_WRITE\r\n | KEY_CREATE_SUB_KEY | KEY_ENUMERATE_SUB_KEYS;\r\n if (::RegCreateKeyEx(root, key, 0, 0, 0, access, 0, &handle, 0))\r\n trace(\"%s: - cannot open %x\\\\%s\\n\", FUNCTION_, root, key);\r\n return handle;\r\n\t}\r\n};\r\n\r\n// ............................................................................\r\n\r\n#endif // ~ KALI_SETTINGS_INCLUDED\r\n"}
80,793
c
/* * Copyright 2017, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA61_BSD) */ #include <autoconf.h> #include <assert.h> #include <stdio.h> #include <stdbool.h> #include <stdio.h> #include <sel4/sel4.h> #include <sel4/arch/constants.h> #include <camkes.h> #include <platsupport/time_manager.h> #include <platsupport/local_time_manager.h> #include <utils/util.h> #include <sel4utils/sel4_zf_logif.h> #include <simple/simple.h> #include "time_server.h" #include "plat.h" /* ltimer for accessing timer devices */ static ltimer_t ltimer; /* time manager for timeout multiplexing */ static time_manager_t time_manager; /* declare the memory needed for the clients * this field tracks which timeouts have triggered * for a specific client */ uint32_t *client_state = NULL; /* Prototype for this function is not generated by the camkes templates yet */ seL4_Word the_timer_get_sender_id(); void the_timer_emit(unsigned int); int the_timer_largest_badge(void); static inline uint64_t current_time_ns() { uint64_t time; int error = ltimer_get_time(&ltimer, &time); ZF_LOGF_IF(error, "Failed to get time"); return time; } static inline unsigned int get_time_token(int cid, int tid) { return (unsigned int) cid * timers_per_client + tid; } static int signal_client(uintptr_t token) { int cid = ((int) token) / timers_per_client; int tid = ((int) token) % timers_per_client; assert(client_state != NULL); client_state[cid] |= BIT(tid); the_timer_emit(cid + 1); return 0; } void time_server_irq_handle(irq_ack_fn irq_acknowledge) { int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); error = irq_acknowledge(); ZF_LOGF_IF(error, "irq acknowledge failed"); error = tm_update(&time_manager); ZF_LOGF_IF(error, "Failed to update time manager"); error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); } static int _oneshot_relative(int cid, int tid, uint64_t ns) { if (tid >= timers_per_client || tid < 0) { ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client); return -1; } int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); unsigned int id = get_time_token(cid, tid); error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id); ZF_LOGF_IF(error, "Failed to set timeout"); error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); return 0; } static int _oneshot_absolute(int cid, int tid, uint64_t ns) { if (tid >= timers_per_client || tid < 0) { ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client); return -1; } int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); unsigned int token = get_time_token(cid, tid); error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token); if (error == ETIME) { signal_client(token); error = 0; } ZF_LOGF_IF(error, "Failed to set timeout"); error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); return 0; } static int _periodic(int cid, int tid, uint64_t ns) { if (tid >= timers_per_client || tid < 0) { ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client); return -1; } int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); unsigned int token = get_time_token(cid, tid); error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token); ZF_LOGF_IF(error, "Failed to set timeout"); error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); return 0; } static int _stop(int cid, int tid) { if (tid >= timers_per_client || tid < 0) { ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client); return -1; } int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); error = tm_deregister_cb(&time_manager, get_time_token(cid, tid)); ZF_LOGF_IF(error, "Failed to deregister callback"); error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); return 0; } static unsigned int _completed(int cid) { int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock time server"); assert(client_state != NULL); unsigned int ret = client_state[cid]; client_state[cid] = 0; error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock time server"); return ret; } static uint64_t _time(int cid) { return current_time_ns(); } /* substract 1 from the badge as we started counting badges at 1 * to avoid using the 0 badge */ int the_timer_oneshot_relative(int id, uint64_t ns) { return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns); } int the_timer_oneshot_absolute(int id, uint64_t ns) { return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns); } int the_timer_periodic(int id, uint64_t ns) { return _periodic(the_timer_get_sender_id() - 1, id, ns); } int the_timer_stop(int id) { return _stop(the_timer_get_sender_id() - 1, id); } unsigned int the_timer_completed() { return _completed(the_timer_get_sender_id() - 1); } uint64_t the_timer_time() { return _time(the_timer_get_sender_id() - 1); } void post_init() { int error = time_server_lock(); ZF_LOGF_IF(error, "Failed to lock timer server"); ps_io_ops_t ops; error = ps_new_stdlib_malloc_ops(&ops.malloc_ops); ZF_LOGF_IF(error, "Failed to get malloc ops"); error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state); ZF_LOGF_IF(error, "Failed to allocate client state") plat_post_init(&ltimer, ops); int num_timers = timers_per_client * the_timer_largest_badge(); tm_init(&time_manager, &ltimer, &ops, num_timers); for (unsigned int i = 0; i < num_timers; i++) { error = tm_alloc_id_at(&time_manager, i); ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i); } error = time_server_unlock(); ZF_LOGF_IF(error, "Failed to unlock timer server"); set_putchar(putchar_putchar); }
35.73
177
(translation_unit) "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" for details.\n *\n * @TAG(DATA61_BSD)\n */\n\n#include <autoconf.h>\n\n#include <assert.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <sel4/sel4.h>\n#include <sel4/arch/constants.h>\n#include <camkes.h>\n#include <platsupport/time_manager.h>\n#include <platsupport/local_time_manager.h>\n#include <utils/util.h>\n#include <sel4utils/sel4_zf_logif.h>\n#include <simple/simple.h>\n\n#include "time_server.h"\n#include "plat.h"\n\n/* ltimer for accessing timer devices */\nstatic ltimer_t ltimer;\n/* time manager for timeout multiplexing */\nstatic time_manager_t time_manager;\n\n/* declare the memory needed for the clients\n * this field tracks which timeouts have triggered\n * for a specific client */\nuint32_t *client_state = NULL;\n\n/* Prototype for this function is not generated by the camkes templates yet */\nseL4_Word the_timer_get_sender_id();\nvoid the_timer_emit(unsigned int);\nint the_timer_largest_badge(void);\n\nstatic inline uint64_t current_time_ns() {\n uint64_t time;\n int error = ltimer_get_time(&ltimer, &time);\n ZF_LOGF_IF(error, "Failed to get time");\n return time;\n}\n\nstatic inline unsigned int get_time_token(int cid, int tid)\n{\n return (unsigned int) cid * timers_per_client + tid;\n}\n\nstatic int signal_client(uintptr_t token) {\n\n int cid = ((int) token) / timers_per_client;\n int tid = ((int) token) % timers_per_client;\n\n assert(client_state != NULL);\n\n client_state[cid] |= BIT(tid);\n the_timer_emit(cid + 1);\n\n return 0;\n}\n\nvoid time_server_irq_handle(irq_ack_fn irq_acknowledge) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = irq_acknowledge();\n ZF_LOGF_IF(error, "irq acknowledge failed");\n\n error = tm_update(&time_manager);\n ZF_LOGF_IF(error, "Failed to update time manager");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n}\n\nstatic int _oneshot_relative(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int id = get_time_token(cid, tid);\n error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}\n\nstatic int _oneshot_absolute(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n\n error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);\n if (error == ETIME) {\n signal_client(token);\n error = 0;\n }\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}\n\nstatic int _periodic(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}\n\nstatic int _stop(int cid, int tid) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));\n ZF_LOGF_IF(error, "Failed to deregister callback");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}\n\nstatic unsigned int _completed(int cid) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n assert(client_state != NULL);\n unsigned int ret = client_state[cid];\n client_state[cid] = 0;\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n\n return ret;\n}\n\nstatic uint64_t _time(int cid) {\n return current_time_ns();\n}\n\n/* substract 1 from the badge as we started counting badges at 1\n * to avoid using the 0 badge */\nint the_timer_oneshot_relative(int id, uint64_t ns) {\n return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_oneshot_absolute(int id, uint64_t ns) {\n return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_periodic(int id, uint64_t ns) {\n return _periodic(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_stop(int id) {\n return _stop(the_timer_get_sender_id() - 1, id);\n}\n\nunsigned int the_timer_completed() {\n return _completed(the_timer_get_sender_id() - 1);\n}\n\nuint64_t the_timer_time() {\n return _time(the_timer_get_sender_id() - 1);\n}\n\nvoid post_init() {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock timer server");\n\n ps_io_ops_t ops;\n error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);\n ZF_LOGF_IF(error, "Failed to get malloc ops");\n\n error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);\n ZF_LOGF_IF(error, "Failed to allocate client state")\n\n plat_post_init(&ltimer, ops);\n\n int num_timers = timers_per_client * the_timer_largest_badge();\n tm_init(&time_manager, &ltimer, &ops, num_timers);\n for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);\n }\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock timer server");\n\n set_putchar(putchar_putchar);\n}\n" (comment) "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See "LICENSE_BSD2.txt" for details.\n *\n * @TAG(DATA61_BSD)\n */" (preproc_include) "#include <autoconf.h>\n" (#include) "#include" (system_lib_string) "<autoconf.h>" (preproc_include) "#include <assert.h>\n" (#include) "#include" (system_lib_string) "<assert.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <sel4/sel4.h>\n" (#include) "#include" (system_lib_string) "<sel4/sel4.h>" (preproc_include) "#include <sel4/arch/constants.h>\n" (#include) "#include" (system_lib_string) "<sel4/arch/constants.h>" (preproc_include) "#include <camkes.h>\n" (#include) "#include" (system_lib_string) "<camkes.h>" (preproc_include) "#include <platsupport/time_manager.h>\n" (#include) "#include" (system_lib_string) "<platsupport/time_manager.h>" (preproc_include) "#include <platsupport/local_time_manager.h>\n" (#include) "#include" (system_lib_string) "<platsupport/local_time_manager.h>" (preproc_include) "#include <utils/util.h>\n" (#include) "#include" (system_lib_string) "<utils/util.h>" (preproc_include) "#include <sel4utils/sel4_zf_logif.h>\n" (#include) "#include" (system_lib_string) "<sel4utils/sel4_zf_logif.h>" (preproc_include) "#include <simple/simple.h>\n" (#include) "#include" (system_lib_string) "<simple/simple.h>" (preproc_include) "#include "time_server.h"\n" (#include) "#include" (string_literal) ""time_server.h"" (") """ (string_content) "time_server.h" (") """ (preproc_include) "#include "plat.h"\n" (#include) "#include" (string_literal) ""plat.h"" (") """ (string_content) "plat.h" (") """ (comment) "/* ltimer for accessing timer devices */" (declaration) "static ltimer_t ltimer;" (storage_class_specifier) "static" (static) "static" (type_identifier) "ltimer_t" (identifier) "ltimer" (;) ";" (comment) "/* time manager for timeout multiplexing */" (declaration) "static time_manager_t time_manager;" (storage_class_specifier) "static" (static) "static" (type_identifier) "time_manager_t" (identifier) "time_manager" (;) ";" (comment) "/* declare the memory needed for the clients\n * this field tracks which timeouts have triggered\n * for a specific client */" (declaration) "uint32_t *client_state = NULL;" (primitive_type) "uint32_t" (init_declarator) "*client_state = NULL" (pointer_declarator) "*client_state" (*) "*" (identifier) "client_state" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "/* Prototype for this function is not generated by the camkes templates yet */" (declaration) "seL4_Word the_timer_get_sender_id();" (type_identifier) "seL4_Word" (function_declarator) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void the_timer_emit(unsigned int);" (primitive_type) "void" (function_declarator) "the_timer_emit(unsigned int)" (identifier) "the_timer_emit" (parameter_list) "(unsigned int)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (;) ";" (declaration) "int the_timer_largest_badge(void);" (primitive_type) "int" (function_declarator) "the_timer_largest_badge(void)" (identifier) "the_timer_largest_badge" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (function_definition) "static inline uint64_t current_time_ns() {\n uint64_t time;\n int error = ltimer_get_time(&ltimer, &time);\n ZF_LOGF_IF(error, "Failed to get time");\n return time;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "uint64_t" (function_declarator) "current_time_ns()" (identifier) "current_time_ns" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n uint64_t time;\n int error = ltimer_get_time(&ltimer, &time);\n ZF_LOGF_IF(error, "Failed to get time");\n return time;\n}" ({) "{" (declaration) "uint64_t time;" (primitive_type) "uint64_t" (identifier) "time" (;) ";" (declaration) "int error = ltimer_get_time(&ltimer, &time);" (primitive_type) "int" (init_declarator) "error = ltimer_get_time(&ltimer, &time)" (identifier) "error" (=) "=" (call_expression) "ltimer_get_time(&ltimer, &time)" (identifier) "ltimer_get_time" (argument_list) "(&ltimer, &time)" (() "(" (pointer_expression) "&ltimer" (&) "&" (identifier) "ltimer" (,) "," (pointer_expression) "&time" (&) "&" (identifier) "time" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to get time");" (call_expression) "ZF_LOGF_IF(error, "Failed to get time")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to get time")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to get time"" (") """ (string_content) "Failed to get time" (") """ ()) ")" (;) ";" (return_statement) "return time;" (return) "return" (identifier) "time" (;) ";" (}) "}" (function_definition) "static inline unsigned int get_time_token(int cid, int tid)\n{\n return (unsigned int) cid * timers_per_client + tid;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "get_time_token(int cid, int tid)" (identifier) "get_time_token" (parameter_list) "(int cid, int tid)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" ()) ")" (compound_statement) "{\n return (unsigned int) cid * timers_per_client + tid;\n}" ({) "{" (return_statement) "return (unsigned int) cid * timers_per_client + tid;" (return) "return" (binary_expression) "(unsigned int) cid * timers_per_client + tid" (binary_expression) "(unsigned int) cid * timers_per_client" (cast_expression) "(unsigned int) cid" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "cid" (*) "*" (identifier) "timers_per_client" (+) "+" (identifier) "tid" (;) ";" (}) "}" (function_definition) "static int signal_client(uintptr_t token) {\n\n int cid = ((int) token) / timers_per_client;\n int tid = ((int) token) % timers_per_client;\n\n assert(client_state != NULL);\n\n client_state[cid] |= BIT(tid);\n the_timer_emit(cid + 1);\n\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "signal_client(uintptr_t token)" (identifier) "signal_client" (parameter_list) "(uintptr_t token)" (() "(" (parameter_declaration) "uintptr_t token" (primitive_type) "uintptr_t" (identifier) "token" ()) ")" (compound_statement) "{\n\n int cid = ((int) token) / timers_per_client;\n int tid = ((int) token) % timers_per_client;\n\n assert(client_state != NULL);\n\n client_state[cid] |= BIT(tid);\n the_timer_emit(cid + 1);\n\n return 0;\n}" ({) "{" (declaration) "int cid = ((int) token) / timers_per_client;" (primitive_type) "int" (init_declarator) "cid = ((int) token) / timers_per_client" (identifier) "cid" (=) "=" (binary_expression) "((int) token) / timers_per_client" (parenthesized_expression) "((int) token)" (() "(" (cast_expression) "(int) token" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "token" ()) ")" (/) "/" (identifier) "timers_per_client" (;) ";" (declaration) "int tid = ((int) token) % timers_per_client;" (primitive_type) "int" (init_declarator) "tid = ((int) token) % timers_per_client" (identifier) "tid" (=) "=" (binary_expression) "((int) token) % timers_per_client" (parenthesized_expression) "((int) token)" (() "(" (cast_expression) "(int) token" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "token" ()) ")" (%) "%" (identifier) "timers_per_client" (;) ";" (expression_statement) "assert(client_state != NULL);" (call_expression) "assert(client_state != NULL)" (identifier) "assert" (argument_list) "(client_state != NULL)" (() "(" (binary_expression) "client_state != NULL" (identifier) "client_state" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "client_state[cid] |= BIT(tid);" (assignment_expression) "client_state[cid] |= BIT(tid)" (subscript_expression) "client_state[cid]" (identifier) "client_state" ([) "[" (identifier) "cid" (]) "]" (|=) "|=" (call_expression) "BIT(tid)" (identifier) "BIT" (argument_list) "(tid)" (() "(" (identifier) "tid" ()) ")" (;) ";" (expression_statement) "the_timer_emit(cid + 1);" (call_expression) "the_timer_emit(cid + 1)" (identifier) "the_timer_emit" (argument_list) "(cid + 1)" (() "(" (binary_expression) "cid + 1" (identifier) "cid" (+) "+" (number_literal) "1" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "void time_server_irq_handle(irq_ack_fn irq_acknowledge) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = irq_acknowledge();\n ZF_LOGF_IF(error, "irq acknowledge failed");\n\n error = tm_update(&time_manager);\n ZF_LOGF_IF(error, "Failed to update time manager");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n}" (primitive_type) "void" (function_declarator) "time_server_irq_handle(irq_ack_fn irq_acknowledge)" (identifier) "time_server_irq_handle" (parameter_list) "(irq_ack_fn irq_acknowledge)" (() "(" (parameter_declaration) "irq_ack_fn irq_acknowledge" (type_identifier) "irq_ack_fn" (identifier) "irq_acknowledge" ()) ")" (compound_statement) "{\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = irq_acknowledge();\n ZF_LOGF_IF(error, "irq acknowledge failed");\n\n error = tm_update(&time_manager);\n ZF_LOGF_IF(error, "Failed to update time manager");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n}" ({) "{" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (expression_statement) "error = irq_acknowledge();" (assignment_expression) "error = irq_acknowledge()" (identifier) "error" (=) "=" (call_expression) "irq_acknowledge()" (identifier) "irq_acknowledge" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "irq acknowledge failed");" (call_expression) "ZF_LOGF_IF(error, "irq acknowledge failed")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "irq acknowledge failed")" (() "(" (identifier) "error" (,) "," (string_literal) ""irq acknowledge failed"" (") """ (string_content) "irq acknowledge failed" (") """ ()) ")" (;) ";" (expression_statement) "error = tm_update(&time_manager);" (assignment_expression) "error = tm_update(&time_manager)" (identifier) "error" (=) "=" (call_expression) "tm_update(&time_manager)" (identifier) "tm_update" (argument_list) "(&time_manager)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to update time manager");" (call_expression) "ZF_LOGF_IF(error, "Failed to update time manager")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to update time manager")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to update time manager"" (") """ (string_content) "Failed to update time manager" (") """ ()) ")" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "static int _oneshot_relative(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int id = get_time_token(cid, tid);\n error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "_oneshot_relative(int cid, int tid, uint64_t ns)" (identifier) "_oneshot_relative" (parameter_list) "(int cid, int tid, uint64_t ns)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int id = get_time_token(cid, tid);\n error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" ({) "{" (if_statement) "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" (if) "if" (parenthesized_expression) "(tid >= timers_per_client || tid < 0)" (() "(" (binary_expression) "tid >= timers_per_client || tid < 0" (binary_expression) "tid >= timers_per_client" (identifier) "tid" (>=) ">=" (identifier) "timers_per_client" (||) "||" (binary_expression) "tid < 0" (identifier) "tid" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" ({) "{" (expression_statement) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);" (call_expression) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (identifier) "ZF_LOGE" (argument_list) "("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (() "(" (string_literal) ""invalid tid, 0 >= %d >= %d\n"" (") """ (string_content) "invalid tid, 0 >= %d >= %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "tid" (,) "," (identifier) "timers_per_client" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (declaration) "unsigned int id = get_time_token(cid, tid);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "id = get_time_token(cid, tid)" (identifier) "id" (=) "=" (call_expression) "get_time_token(cid, tid)" (identifier) "get_time_token" (argument_list) "(cid, tid)" (() "(" (identifier) "cid" (,) "," (identifier) "tid" ()) ")" (;) ";" (expression_statement) "error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);" (assignment_expression) "error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id)" (identifier) "error" (=) "=" (call_expression) "tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id)" (identifier) "tm_register_rel_cb" (argument_list) "(&time_manager, ns, id, signal_client, (uintptr_t) id)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (identifier) "ns" (,) "," (identifier) "id" (,) "," (identifier) "signal_client" (,) "," (cast_expression) "(uintptr_t) id" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "id" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to set timeout");" (call_expression) "ZF_LOGF_IF(error, "Failed to set timeout")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to set timeout")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to set timeout"" (") """ (string_content) "Failed to set timeout" (") """ ()) ")" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int _oneshot_absolute(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n\n error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);\n if (error == ETIME) {\n signal_client(token);\n error = 0;\n }\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "_oneshot_absolute(int cid, int tid, uint64_t ns)" (identifier) "_oneshot_absolute" (parameter_list) "(int cid, int tid, uint64_t ns)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n\n error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);\n if (error == ETIME) {\n signal_client(token);\n error = 0;\n }\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" ({) "{" (if_statement) "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" (if) "if" (parenthesized_expression) "(tid >= timers_per_client || tid < 0)" (() "(" (binary_expression) "tid >= timers_per_client || tid < 0" (binary_expression) "tid >= timers_per_client" (identifier) "tid" (>=) ">=" (identifier) "timers_per_client" (||) "||" (binary_expression) "tid < 0" (identifier) "tid" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" ({) "{" (expression_statement) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);" (call_expression) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (identifier) "ZF_LOGE" (argument_list) "("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (() "(" (string_literal) ""invalid tid, 0 >= %d >= %d\n"" (") """ (string_content) "invalid tid, 0 >= %d >= %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "tid" (,) "," (identifier) "timers_per_client" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (declaration) "unsigned int token = get_time_token(cid, tid);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "token = get_time_token(cid, tid)" (identifier) "token" (=) "=" (call_expression) "get_time_token(cid, tid)" (identifier) "get_time_token" (argument_list) "(cid, tid)" (() "(" (identifier) "cid" (,) "," (identifier) "tid" ()) ")" (;) ";" (expression_statement) "error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);" (assignment_expression) "error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token)" (identifier) "error" (=) "=" (call_expression) "tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token)" (identifier) "tm_register_abs_cb" (argument_list) "(&time_manager, ns, token, signal_client, (uintptr_t) token)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (identifier) "ns" (,) "," (identifier) "token" (,) "," (identifier) "signal_client" (,) "," (cast_expression) "(uintptr_t) token" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "token" ()) ")" (;) ";" (if_statement) "if (error == ETIME) {\n signal_client(token);\n error = 0;\n }" (if) "if" (parenthesized_expression) "(error == ETIME)" (() "(" (binary_expression) "error == ETIME" (identifier) "error" (==) "==" (identifier) "ETIME" ()) ")" (compound_statement) "{\n signal_client(token);\n error = 0;\n }" ({) "{" (expression_statement) "signal_client(token);" (call_expression) "signal_client(token)" (identifier) "signal_client" (argument_list) "(token)" (() "(" (identifier) "token" ()) ")" (;) ";" (expression_statement) "error = 0;" (assignment_expression) "error = 0" (identifier) "error" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "ZF_LOGF_IF(error, "Failed to set timeout");" (call_expression) "ZF_LOGF_IF(error, "Failed to set timeout")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to set timeout")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to set timeout"" (") """ (string_content) "Failed to set timeout" (") """ ()) ")" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int _periodic(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "_periodic(int cid, int tid, uint64_t ns)" (identifier) "_periodic" (parameter_list) "(int cid, int tid, uint64_t ns)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n unsigned int token = get_time_token(cid, tid);\n error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);\n ZF_LOGF_IF(error, "Failed to set timeout");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" ({) "{" (if_statement) "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" (if) "if" (parenthesized_expression) "(tid >= timers_per_client || tid < 0)" (() "(" (binary_expression) "tid >= timers_per_client || tid < 0" (binary_expression) "tid >= timers_per_client" (identifier) "tid" (>=) ">=" (identifier) "timers_per_client" (||) "||" (binary_expression) "tid < 0" (identifier) "tid" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" ({) "{" (expression_statement) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);" (call_expression) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (identifier) "ZF_LOGE" (argument_list) "("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (() "(" (string_literal) ""invalid tid, 0 >= %d >= %d\n"" (") """ (string_content) "invalid tid, 0 >= %d >= %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "tid" (,) "," (identifier) "timers_per_client" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (declaration) "unsigned int token = get_time_token(cid, tid);" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "token = get_time_token(cid, tid)" (identifier) "token" (=) "=" (call_expression) "get_time_token(cid, tid)" (identifier) "get_time_token" (argument_list) "(cid, tid)" (() "(" (identifier) "cid" (,) "," (identifier) "tid" ()) ")" (;) ";" (expression_statement) "error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);" (assignment_expression) "error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)" (identifier) "error" (=) "=" (call_expression) "tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)" (identifier) "tm_register_periodic_cb" (argument_list) "(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (identifier) "ns" (,) "," (number_literal) "0" (,) "," (identifier) "token" (,) "," (identifier) "signal_client" (,) "," (cast_expression) "(uintptr_t) token" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "token" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to set timeout");" (call_expression) "ZF_LOGF_IF(error, "Failed to set timeout")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to set timeout")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to set timeout"" (") """ (string_content) "Failed to set timeout" (") """ ()) ")" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static int _stop(int cid, int tid) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));\n ZF_LOGF_IF(error, "Failed to deregister callback");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "_stop(int cid, int tid)" (identifier) "_stop" (parameter_list) "(int cid, int tid)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" (,) "," (parameter_declaration) "int tid" (primitive_type) "int" (identifier) "tid" ()) ")" (compound_statement) "{\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));\n ZF_LOGF_IF(error, "Failed to deregister callback");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n return 0;\n}" ({) "{" (if_statement) "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" (if) "if" (parenthesized_expression) "(tid >= timers_per_client || tid < 0)" (() "(" (binary_expression) "tid >= timers_per_client || tid < 0" (binary_expression) "tid >= timers_per_client" (identifier) "tid" (>=) ">=" (identifier) "timers_per_client" (||) "||" (binary_expression) "tid < 0" (identifier) "tid" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);\n return -1;\n }" ({) "{" (expression_statement) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client);" (call_expression) "ZF_LOGE("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (identifier) "ZF_LOGE" (argument_list) "("invalid tid, 0 >= %d >= %d\n", tid, timers_per_client)" (() "(" (string_literal) ""invalid tid, 0 >= %d >= %d\n"" (") """ (string_content) "invalid tid, 0 >= %d >= %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "tid" (,) "," (identifier) "timers_per_client" ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (expression_statement) "error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));" (assignment_expression) "error = tm_deregister_cb(&time_manager, get_time_token(cid, tid))" (identifier) "error" (=) "=" (call_expression) "tm_deregister_cb(&time_manager, get_time_token(cid, tid))" (identifier) "tm_deregister_cb" (argument_list) "(&time_manager, get_time_token(cid, tid))" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (call_expression) "get_time_token(cid, tid)" (identifier) "get_time_token" (argument_list) "(cid, tid)" (() "(" (identifier) "cid" (,) "," (identifier) "tid" ()) ")" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to deregister callback");" (call_expression) "ZF_LOGF_IF(error, "Failed to deregister callback")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to deregister callback")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to deregister callback"" (") """ (string_content) "Failed to deregister callback" (") """ ()) ")" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static unsigned int _completed(int cid) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n assert(client_state != NULL);\n unsigned int ret = client_state[cid];\n client_state[cid] = 0;\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n\n return ret;\n}" (storage_class_specifier) "static" (static) "static" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "_completed(int cid)" (identifier) "_completed" (parameter_list) "(int cid)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" ()) ")" (compound_statement) "{\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock time server");\n\n assert(client_state != NULL);\n unsigned int ret = client_state[cid];\n client_state[cid] = 0;\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock time server");\n\n return ret;\n}" ({) "{" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock time server"" (") """ (string_content) "Failed to lock time server" (") """ ()) ")" (;) ";" (expression_statement) "assert(client_state != NULL);" (call_expression) "assert(client_state != NULL)" (identifier) "assert" (argument_list) "(client_state != NULL)" (() "(" (binary_expression) "client_state != NULL" (identifier) "client_state" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (declaration) "unsigned int ret = client_state[cid];" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "ret = client_state[cid]" (identifier) "ret" (=) "=" (subscript_expression) "client_state[cid]" (identifier) "client_state" ([) "[" (identifier) "cid" (]) "]" (;) ";" (expression_statement) "client_state[cid] = 0;" (assignment_expression) "client_state[cid] = 0" (subscript_expression) "client_state[cid]" (identifier) "client_state" ([) "[" (identifier) "cid" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock time server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock time server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock time server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock time server"" (") """ (string_content) "Failed to unlock time server" (") """ ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (function_definition) "static uint64_t _time(int cid) {\n return current_time_ns();\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint64_t" (function_declarator) "_time(int cid)" (identifier) "_time" (parameter_list) "(int cid)" (() "(" (parameter_declaration) "int cid" (primitive_type) "int" (identifier) "cid" ()) ")" (compound_statement) "{\n return current_time_ns();\n}" ({) "{" (return_statement) "return current_time_ns();" (return) "return" (call_expression) "current_time_ns()" (identifier) "current_time_ns" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "/* substract 1 from the badge as we started counting badges at 1\n * to avoid using the 0 badge */" (function_definition) "int the_timer_oneshot_relative(int id, uint64_t ns) {\n return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);\n}" (primitive_type) "int" (function_declarator) "the_timer_oneshot_relative(int id, uint64_t ns)" (identifier) "the_timer_oneshot_relative" (parameter_list) "(int id, uint64_t ns)" (() "(" (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);\n}" ({) "{" (return_statement) "return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);" (return) "return" (call_expression) "_oneshot_relative(the_timer_get_sender_id() - 1, id, ns)" (identifier) "_oneshot_relative" (argument_list) "(the_timer_get_sender_id() - 1, id, ns)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (,) "," (identifier) "id" (,) "," (identifier) "ns" ()) ")" (;) ";" (}) "}" (function_definition) "int the_timer_oneshot_absolute(int id, uint64_t ns) {\n return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);\n}" (primitive_type) "int" (function_declarator) "the_timer_oneshot_absolute(int id, uint64_t ns)" (identifier) "the_timer_oneshot_absolute" (parameter_list) "(int id, uint64_t ns)" (() "(" (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);\n}" ({) "{" (return_statement) "return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);" (return) "return" (call_expression) "_oneshot_absolute(the_timer_get_sender_id() - 1, id, ns)" (identifier) "_oneshot_absolute" (argument_list) "(the_timer_get_sender_id() - 1, id, ns)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (,) "," (identifier) "id" (,) "," (identifier) "ns" ()) ")" (;) ";" (}) "}" (function_definition) "int the_timer_periodic(int id, uint64_t ns) {\n return _periodic(the_timer_get_sender_id() - 1, id, ns);\n}" (primitive_type) "int" (function_declarator) "the_timer_periodic(int id, uint64_t ns)" (identifier) "the_timer_periodic" (parameter_list) "(int id, uint64_t ns)" (() "(" (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" (,) "," (parameter_declaration) "uint64_t ns" (primitive_type) "uint64_t" (identifier) "ns" ()) ")" (compound_statement) "{\n return _periodic(the_timer_get_sender_id() - 1, id, ns);\n}" ({) "{" (return_statement) "return _periodic(the_timer_get_sender_id() - 1, id, ns);" (return) "return" (call_expression) "_periodic(the_timer_get_sender_id() - 1, id, ns)" (identifier) "_periodic" (argument_list) "(the_timer_get_sender_id() - 1, id, ns)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (,) "," (identifier) "id" (,) "," (identifier) "ns" ()) ")" (;) ";" (}) "}" (function_definition) "int the_timer_stop(int id) {\n return _stop(the_timer_get_sender_id() - 1, id);\n}" (primitive_type) "int" (function_declarator) "the_timer_stop(int id)" (identifier) "the_timer_stop" (parameter_list) "(int id)" (() "(" (parameter_declaration) "int id" (primitive_type) "int" (identifier) "id" ()) ")" (compound_statement) "{\n return _stop(the_timer_get_sender_id() - 1, id);\n}" ({) "{" (return_statement) "return _stop(the_timer_get_sender_id() - 1, id);" (return) "return" (call_expression) "_stop(the_timer_get_sender_id() - 1, id)" (identifier) "_stop" (argument_list) "(the_timer_get_sender_id() - 1, id)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (,) "," (identifier) "id" ()) ")" (;) ";" (}) "}" (function_definition) "unsigned int the_timer_completed() {\n return _completed(the_timer_get_sender_id() - 1);\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "the_timer_completed()" (identifier) "the_timer_completed" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return _completed(the_timer_get_sender_id() - 1);\n}" ({) "{" (return_statement) "return _completed(the_timer_get_sender_id() - 1);" (return) "return" (call_expression) "_completed(the_timer_get_sender_id() - 1)" (identifier) "_completed" (argument_list) "(the_timer_get_sender_id() - 1)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "uint64_t the_timer_time() {\n return _time(the_timer_get_sender_id() - 1);\n}" (primitive_type) "uint64_t" (function_declarator) "the_timer_time()" (identifier) "the_timer_time" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return _time(the_timer_get_sender_id() - 1);\n}" ({) "{" (return_statement) "return _time(the_timer_get_sender_id() - 1);" (return) "return" (call_expression) "_time(the_timer_get_sender_id() - 1)" (identifier) "_time" (argument_list) "(the_timer_get_sender_id() - 1)" (() "(" (binary_expression) "the_timer_get_sender_id() - 1" (call_expression) "the_timer_get_sender_id()" (identifier) "the_timer_get_sender_id" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" ()) ")" (;) ";" (}) "}" (function_definition) "void post_init() {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock timer server");\n\n ps_io_ops_t ops;\n error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);\n ZF_LOGF_IF(error, "Failed to get malloc ops");\n\n error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);\n ZF_LOGF_IF(error, "Failed to allocate client state")\n\n plat_post_init(&ltimer, ops);\n\n int num_timers = timers_per_client * the_timer_largest_badge();\n tm_init(&time_manager, &ltimer, &ops, num_timers);\n for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);\n }\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock timer server");\n\n set_putchar(putchar_putchar);\n}" (primitive_type) "void" (function_declarator) "post_init()" (identifier) "post_init" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int error = time_server_lock();\n ZF_LOGF_IF(error, "Failed to lock timer server");\n\n ps_io_ops_t ops;\n error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);\n ZF_LOGF_IF(error, "Failed to get malloc ops");\n\n error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);\n ZF_LOGF_IF(error, "Failed to allocate client state")\n\n plat_post_init(&ltimer, ops);\n\n int num_timers = timers_per_client * the_timer_largest_badge();\n tm_init(&time_manager, &ltimer, &ops, num_timers);\n for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);\n }\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, "Failed to unlock timer server");\n\n set_putchar(putchar_putchar);\n}" ({) "{" (declaration) "int error = time_server_lock();" (primitive_type) "int" (init_declarator) "error = time_server_lock()" (identifier) "error" (=) "=" (call_expression) "time_server_lock()" (identifier) "time_server_lock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to lock timer server");" (call_expression) "ZF_LOGF_IF(error, "Failed to lock timer server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to lock timer server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to lock timer server"" (") """ (string_content) "Failed to lock timer server" (") """ ()) ")" (;) ";" (declaration) "ps_io_ops_t ops;" (type_identifier) "ps_io_ops_t" (identifier) "ops" (;) ";" (expression_statement) "error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);" (assignment_expression) "error = ps_new_stdlib_malloc_ops(&ops.malloc_ops)" (identifier) "error" (=) "=" (call_expression) "ps_new_stdlib_malloc_ops(&ops.malloc_ops)" (identifier) "ps_new_stdlib_malloc_ops" (argument_list) "(&ops.malloc_ops)" (() "(" (pointer_expression) "&ops.malloc_ops" (&) "&" (field_expression) "ops.malloc_ops" (identifier) "ops" (.) "." (field_identifier) "malloc_ops" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to get malloc ops");" (call_expression) "ZF_LOGF_IF(error, "Failed to get malloc ops")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to get malloc ops")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to get malloc ops"" (") """ (string_content) "Failed to get malloc ops" (") """ ()) ")" (;) ";" (expression_statement) "error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);" (assignment_expression) "error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)" (identifier) "error" (=) "=" (call_expression) "ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)" (identifier) "ps_calloc" (argument_list) "(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)" (() "(" (pointer_expression) "&ops.malloc_ops" (&) "&" (field_expression) "ops.malloc_ops" (identifier) "ops" (.) "." (field_identifier) "malloc_ops" (,) "," (call_expression) "the_timer_largest_badge()" (identifier) "the_timer_largest_badge" (argument_list) "()" (() "(" ()) ")" (,) "," (sizeof_expression) "sizeof(*client_state)" (sizeof) "sizeof" (parenthesized_expression) "(*client_state)" (() "(" (pointer_expression) "*client_state" (*) "*" (identifier) "client_state" ()) ")" (,) "," (cast_expression) "(void **) &client_state" (() "(" (type_descriptor) "void **" (primitive_type) "void" (abstract_pointer_declarator) "**" (*) "*" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&client_state" (&) "&" (identifier) "client_state" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to allocate client state")" (call_expression) "ZF_LOGF_IF(error, "Failed to allocate client state")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to allocate client state")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to allocate client state"" (") """ (string_content) "Failed to allocate client state" (") """ ()) ")" (;) "" (expression_statement) "plat_post_init(&ltimer, ops);" (call_expression) "plat_post_init(&ltimer, ops)" (identifier) "plat_post_init" (argument_list) "(&ltimer, ops)" (() "(" (pointer_expression) "&ltimer" (&) "&" (identifier) "ltimer" (,) "," (identifier) "ops" ()) ")" (;) ";" (declaration) "int num_timers = timers_per_client * the_timer_largest_badge();" (primitive_type) "int" (init_declarator) "num_timers = timers_per_client * the_timer_largest_badge()" (identifier) "num_timers" (=) "=" (binary_expression) "timers_per_client * the_timer_largest_badge()" (identifier) "timers_per_client" (*) "*" (call_expression) "the_timer_largest_badge()" (identifier) "the_timer_largest_badge" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "tm_init(&time_manager, &ltimer, &ops, num_timers);" (call_expression) "tm_init(&time_manager, &ltimer, &ops, num_timers)" (identifier) "tm_init" (argument_list) "(&time_manager, &ltimer, &ops, num_timers)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (pointer_expression) "&ltimer" (&) "&" (identifier) "ltimer" (,) "," (pointer_expression) "&ops" (&) "&" (identifier) "ops" (,) "," (identifier) "num_timers" ()) ")" (;) ";" (for_statement) "for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);\n }" (for) "for" (() "(" (declaration) "unsigned int i = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < num_timers" (identifier) "i" (<) "<" (identifier) "num_timers" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);\n }" ({) "{" (expression_statement) "error = tm_alloc_id_at(&time_manager, i);" (assignment_expression) "error = tm_alloc_id_at(&time_manager, i)" (identifier) "error" (=) "=" (call_expression) "tm_alloc_id_at(&time_manager, i)" (identifier) "tm_alloc_id_at" (argument_list) "(&time_manager, i)" (() "(" (pointer_expression) "&time_manager" (&) "&" (identifier) "time_manager" (,) "," (identifier) "i" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i);" (call_expression) "ZF_LOGF_IF(error, "Failed to alloc id at %u\n", i)" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to alloc id at %u\n", i)" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to alloc id at %u\n"" (") """ (string_content) "Failed to alloc id at %u" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (}) "}" (expression_statement) "error = time_server_unlock();" (assignment_expression) "error = time_server_unlock()" (identifier) "error" (=) "=" (call_expression) "time_server_unlock()" (identifier) "time_server_unlock" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ZF_LOGF_IF(error, "Failed to unlock timer server");" (call_expression) "ZF_LOGF_IF(error, "Failed to unlock timer server")" (identifier) "ZF_LOGF_IF" (argument_list) "(error, "Failed to unlock timer server")" (() "(" (identifier) "error" (,) "," (string_literal) ""Failed to unlock timer server"" (") """ (string_content) "Failed to unlock timer server" (") """ ()) ")" (;) ";" (expression_statement) "set_putchar(putchar_putchar);" (call_expression) "set_putchar(putchar_putchar)" (identifier) "set_putchar" (argument_list) "(putchar_putchar)" (() "(" (identifier) "putchar_putchar" ()) ")" (;) ";" (}) "}"
1,655
0
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 35.73, "nodes": 958, "errors": 0, "source_hash": "d5782c91d9681991a648541f08540e955571d5bc1ef0e2a4adc88572b911ac8e", "categorized_nodes": 671}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <autoconf.h>\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": "<autoconf.h>", "parent": 0, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include <assert.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<assert.h>", "parent": 3, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdio.h>", "parent": 6, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 9, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<stdio.h>", "parent": 12, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <sel4/sel4.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<sel4/sel4.h>", "parent": 15, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 22}}, {"id": 18, "type": "preproc_include", "text": "#include <sel4/arch/constants.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<sel4/arch/constants.h>", "parent": 18, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 32}}, {"id": 21, "type": "preproc_include", "text": "#include <camkes.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<camkes.h>", "parent": 21, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 24, "type": "preproc_include", "text": "#include <platsupport/time_manager.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<platsupport/time_manager.h>", "parent": 24, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 37}}, {"id": 27, "type": "preproc_include", "text": "#include <platsupport/local_time_manager.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<platsupport/local_time_manager.h>", "parent": 27, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 43}}, {"id": 30, "type": "preproc_include", "text": "#include <utils/util.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<utils/util.h>", "parent": 30, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 23}}, {"id": 33, "type": "preproc_include", "text": "#include <sel4utils/sel4_zf_logif.h>\n", "parent": null, "children": [34, 35], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 34, "type": "#include", "text": "#include", "parent": 33, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 35, "type": "system_lib_string", "text": "<sel4utils/sel4_zf_logif.h>", "parent": 33, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 36}}, {"id": 36, "type": "preproc_include", "text": "#include <simple/simple.h>\n", "parent": null, "children": [37, 38], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 37, "type": "#include", "text": "#include", "parent": 36, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 38, "type": "system_lib_string", "text": "<simple/simple.h>", "parent": 36, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 26}}, {"id": 39, "type": "preproc_include", "text": "#include \"time_server.h\"\n", "parent": null, "children": [40, 41], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 40, "type": "#include", "text": "#include", "parent": 39, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 41, "type": "string_literal", "text": "\"time_server.h\"", "parent": 39, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 24}}, {"id": 42, "type": "preproc_include", "text": "#include \"plat.h\"\n", "parent": null, "children": [43, 44], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 43, "type": "#include", "text": "#include", "parent": 42, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 44, "type": "string_literal", "text": "\"plat.h\"", "parent": 42, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 17}}, {"id": 45, "type": "declaration", "text": "static ltimer_t ltimer;", "parent": null, "children": [46, 47], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 23}}, {"id": 46, "type": "type_identifier", "text": "ltimer_t", "parent": 45, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 15}}, {"id": 47, "type": "identifier", "text": "ltimer", "parent": 45, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 22}}, {"id": 48, "type": "declaration", "text": "static time_manager_t time_manager;", "parent": null, "children": [49, 50], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 35}}, {"id": 49, "type": "type_identifier", "text": "time_manager_t", "parent": 48, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 21}}, {"id": 50, "type": "identifier", "text": "time_manager", "parent": 48, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 34}}, {"id": 51, "type": "declaration", "text": "uint32_t *client_state = NULL;", "parent": null, "children": [52, 53], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 30}}, {"id": 52, "type": "primitive_type", "text": "uint32_t", "parent": 51, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 53, "type": "init_declarator", "text": "*client_state = NULL", "parent": 51, "children": [54, 57, 58], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 29}}, {"id": 54, "type": "pointer_declarator", "text": "*client_state", "parent": 53, "children": [55, 56], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 22}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 56, "type": "identifier", "text": "client_state", "parent": 54, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 22}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 24}}, {"id": 58, "type": "null", "text": "NULL", "parent": 53, "children": [59], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 29}}, {"id": 59, "type": "NULL", "text": "NULL", "parent": 58, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 29}}, {"id": 60, "type": "declaration", "text": "seL4_Word the_timer_get_sender_id();", "parent": null, "children": [61, 62], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 36}}, {"id": 61, "type": "type_identifier", "text": "seL4_Word", "parent": 60, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 9}}, {"id": 62, "type": "function_declarator", "text": "the_timer_get_sender_id()", "parent": 60, "children": [63, 64], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 35}}, {"id": 63, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 62, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 33}}, {"id": 64, "type": "parameter_list", "text": "()", "parent": 62, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 35}}, {"id": 65, "type": "declaration", "text": "void the_timer_emit(unsigned int);", "parent": null, "children": [66, 67], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 34}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 4}}, {"id": 67, "type": "function_declarator", "text": "the_timer_emit(unsigned int)", "parent": 65, "children": [68, 69], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 33}}, {"id": 68, "type": "identifier", "text": "the_timer_emit", "parent": 67, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 19}}, {"id": 69, "type": "parameter_list", "text": "(unsigned int)", "parent": 67, "children": [70], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 33}}, {"id": 70, "type": "parameter_declaration", "text": "unsigned int", "parent": 69, "children": [71], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 32}}, {"id": 71, "type": "sized_type_specifier", "text": "unsigned int", "parent": 70, "children": [72, 73], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 32}}, {"id": 72, "type": "unsigned", "text": "unsigned", "parent": 71, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 28}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 71, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 32}}, {"id": 74, "type": "declaration", "text": "int the_timer_largest_badge(void);", "parent": null, "children": [75, 76], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 34}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 3}}, {"id": 76, "type": "function_declarator", "text": "the_timer_largest_badge(void)", "parent": 74, "children": [77, 78], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 33}}, {"id": 77, "type": "identifier", "text": "the_timer_largest_badge", "parent": 76, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 27}}, {"id": 78, "type": "parameter_list", "text": "(void)", "parent": 76, "children": [79], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 33}}, {"id": 79, "type": "parameter_declaration", "text": "void", "parent": 78, "children": [80], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 32}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 32}}, {"id": 81, "type": "function_definition", "text": "static inline uint64_t current_time_ns() {\n uint64_t time;\n int error = ltimer_get_time(&ltimer, &time);\n ZF_LOGF_IF(error, \"Failed to get time\");\n return time;\n}", "parent": null, "children": [82, 84, 85], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 50, "column": 1}}, {"id": 82, "type": "storage_class_specifier", "text": "inline", "parent": 81, "children": [83], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 13}}, {"id": 83, "type": "inline", "text": "inline", "parent": 82, "children": [], "start_point": {"row": 45, "column": 7}, "end_point": {"row": 45, "column": 13}}, {"id": 84, "type": "primitive_type", "text": "uint64_t", "parent": 81, "children": [], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 22}}, {"id": 85, "type": "function_declarator", "text": "current_time_ns()", "parent": 81, "children": [86, 87], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 40}}, {"id": 86, "type": "identifier", "text": "current_time_ns", "parent": 85, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 38}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 45, "column": 38}, "end_point": {"row": 45, "column": 40}}, {"id": 88, "type": "declaration", "text": "uint64_t time;", "parent": 81, "children": [89, 90], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 18}}, {"id": 89, "type": "primitive_type", "text": "uint64_t", "parent": 88, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 12}}, {"id": 90, "type": "identifier", "text": "time", "parent": 88, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 17}}, {"id": 91, "type": "declaration", "text": "int error = ltimer_get_time(&ltimer, &time);", "parent": 81, "children": [92, 93], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 48}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 7}}, {"id": 93, "type": "init_declarator", "text": "error = ltimer_get_time(&ltimer, &time)", "parent": 91, "children": [94, 95, 96], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 47}}, {"id": 94, "type": "identifier", "text": "error", "parent": 93, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 13}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 15}}, {"id": 96, "type": "call_expression", "text": "ltimer_get_time(&ltimer, &time)", "parent": 93, "children": [97, 98], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 47}}, {"id": 97, "type": "identifier", "text": "ltimer_get_time", "parent": 96, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 31}}, {"id": 98, "type": "argument_list", "text": "(&ltimer, &time)", "parent": 96, "children": [99, 101], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 47}}, {"id": 99, "type": "pointer_expression", "text": "&ltimer", "parent": 98, "children": [100], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 39}}, {"id": 100, "type": "identifier", "text": "ltimer", "parent": 99, "children": [], "start_point": {"row": 47, "column": 33}, "end_point": {"row": 47, "column": 39}}, {"id": 101, "type": "pointer_expression", "text": "&time", "parent": 98, "children": [102], "start_point": {"row": 47, "column": 41}, "end_point": {"row": 47, "column": 46}}, {"id": 102, "type": "identifier", "text": "time", "parent": 101, "children": [], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 46}}, {"id": 103, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to get time\")", "parent": 81, "children": [104, 105], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 43}}, {"id": 104, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 103, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 14}}, {"id": 105, "type": "argument_list", "text": "(error, \"Failed to get time\")", "parent": 103, "children": [106, 107], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 43}}, {"id": 106, "type": "identifier", "text": "error", "parent": 105, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 20}}, {"id": 107, "type": "string_literal", "text": "\"Failed to get time\"", "parent": 105, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 42}}, {"id": 108, "type": "return_statement", "text": "return time;", "parent": 81, "children": [109], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 16}}, {"id": 109, "type": "identifier", "text": "time", "parent": 108, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 15}}, {"id": 110, "type": "function_definition", "text": "static inline unsigned int get_time_token(int cid, int tid)\n{\n return (unsigned int) cid * timers_per_client + tid;\n}", "parent": null, "children": [111, 113, 116], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 111, "type": "storage_class_specifier", "text": "inline", "parent": 110, "children": [112], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 13}}, {"id": 112, "type": "inline", "text": "inline", "parent": 111, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 13}}, {"id": 113, "type": "sized_type_specifier", "text": "unsigned int", "parent": 110, "children": [114, 115], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 26}}, {"id": 114, "type": "unsigned", "text": "unsigned", "parent": 113, "children": [], "start_point": {"row": 52, "column": 14}, "end_point": {"row": 52, "column": 22}}, {"id": 115, "type": "primitive_type", "text": "int", "parent": 113, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 26}}, {"id": 116, "type": "function_declarator", "text": "get_time_token(int cid, int tid)", "parent": 110, "children": [117, 118], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 59}}, {"id": 117, "type": "identifier", "text": "get_time_token", "parent": 116, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 41}}, {"id": 118, "type": "parameter_list", "text": "(int cid, int tid)", "parent": 116, "children": [119, 122], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 59}}, {"id": 119, "type": "parameter_declaration", "text": "int cid", "parent": 118, "children": [120, 121], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 49}}, {"id": 120, "type": "primitive_type", "text": "int", "parent": 119, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 45}}, {"id": 121, "type": "identifier", "text": "cid", "parent": 119, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 49}}, {"id": 122, "type": "parameter_declaration", "text": "int tid", "parent": 118, "children": [123, 124], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 58}}, {"id": 123, "type": "primitive_type", "text": "int", "parent": 122, "children": [], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 54}}, {"id": 124, "type": "identifier", "text": "tid", "parent": 122, "children": [], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 58}}, {"id": 125, "type": "return_statement", "text": "return (unsigned int) cid * timers_per_client + tid;", "parent": 110, "children": [126], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 56}}, {"id": 126, "type": "binary_expression", "text": "(unsigned int) cid * timers_per_client + tid", "parent": 125, "children": [127, 136, 137], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 55}}, {"id": 127, "type": "binary_expression", "text": "(unsigned int) cid * timers_per_client", "parent": 126, "children": [128, 134, 135], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 49}}, {"id": 128, "type": "cast_expression", "text": "(unsigned int) cid", "parent": 127, "children": [129, 133], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 29}}, {"id": 129, "type": "type_descriptor", "text": "unsigned int", "parent": 128, "children": [130], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 24}}, {"id": 130, "type": "sized_type_specifier", "text": "unsigned int", "parent": 129, "children": [131, 132], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 24}}, {"id": 131, "type": "unsigned", "text": "unsigned", "parent": 130, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 132, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 24}}, {"id": 133, "type": "identifier", "text": "cid", "parent": 128, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 134, "type": "*", "text": "*", "parent": 127, "children": [], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 31}}, {"id": 135, "type": "identifier", "text": "timers_per_client", "parent": 127, "children": [], "start_point": {"row": 54, "column": 32}, "end_point": {"row": 54, "column": 49}}, {"id": 136, "type": "+", "text": "+", "parent": 126, "children": [], "start_point": {"row": 54, "column": 50}, "end_point": {"row": 54, "column": 51}}, {"id": 137, "type": "identifier", "text": "tid", "parent": 126, "children": [], "start_point": {"row": 54, "column": 52}, "end_point": {"row": 54, "column": 55}}, {"id": 138, "type": "function_definition", "text": "static int signal_client(uintptr_t token) {\n\n int cid = ((int) token) / timers_per_client;\n int tid = ((int) token) % timers_per_client;\n\n assert(client_state != NULL);\n\n client_state[cid] |= BIT(tid);\n the_timer_emit(cid + 1);\n\n return 0;\n}", "parent": null, "children": [139, 140], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 10}}, {"id": 140, "type": "function_declarator", "text": "signal_client(uintptr_t token)", "parent": 138, "children": [141, 142], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 41}}, {"id": 141, "type": "identifier", "text": "signal_client", "parent": 140, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 24}}, {"id": 142, "type": "parameter_list", "text": "(uintptr_t token)", "parent": 140, "children": [143], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 41}}, {"id": 143, "type": "parameter_declaration", "text": "uintptr_t token", "parent": 142, "children": [144, 145], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 40}}, {"id": 144, "type": "primitive_type", "text": "uintptr_t", "parent": 143, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 34}}, {"id": 145, "type": "identifier", "text": "token", "parent": 143, "children": [], "start_point": {"row": 57, "column": 35}, "end_point": {"row": 57, "column": 40}}, {"id": 146, "type": "declaration", "text": "int cid = ((int) token) / timers_per_client;", "parent": 138, "children": [147, 148], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 48}}, {"id": 147, "type": "primitive_type", "text": "int", "parent": 146, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 7}}, {"id": 148, "type": "init_declarator", "text": "cid = ((int) token) / timers_per_client", "parent": 146, "children": [149, 150, 151], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 47}}, {"id": 149, "type": "identifier", "text": "cid", "parent": 148, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 11}}, {"id": 150, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 13}}, {"id": 151, "type": "binary_expression", "text": "((int) token) / timers_per_client", "parent": 148, "children": [152, 157, 158], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 47}}, {"id": 152, "type": "parenthesized_expression", "text": "((int) token)", "parent": 151, "children": [153], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 27}}, {"id": 153, "type": "cast_expression", "text": "(int) token", "parent": 152, "children": [154, 156], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 26}}, {"id": 154, "type": "type_descriptor", "text": "int", "parent": 153, "children": [155], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 19}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 19}}, {"id": 156, "type": "identifier", "text": "token", "parent": 153, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 26}}, {"id": 157, "type": "/", "text": "/", "parent": 151, "children": [], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 29}}, {"id": 158, "type": "identifier", "text": "timers_per_client", "parent": 151, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 47}}, {"id": 159, "type": "declaration", "text": "int tid = ((int) token) % timers_per_client;", "parent": 138, "children": [160, 161], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 48}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 7}}, {"id": 161, "type": "init_declarator", "text": "tid = ((int) token) % timers_per_client", "parent": 159, "children": [162, 163, 164], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 47}}, {"id": 162, "type": "identifier", "text": "tid", "parent": 161, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 163, "type": "=", "text": "=", "parent": 161, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 13}}, {"id": 164, "type": "binary_expression", "text": "((int) token) % timers_per_client", "parent": 161, "children": [165, 170, 171], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 47}}, {"id": 165, "type": "parenthesized_expression", "text": "((int) token)", "parent": 164, "children": [166], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 27}}, {"id": 166, "type": "cast_expression", "text": "(int) token", "parent": 165, "children": [167, 169], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 26}}, {"id": 167, "type": "type_descriptor", "text": "int", "parent": 166, "children": [168], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 19}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 19}}, {"id": 169, "type": "identifier", "text": "token", "parent": 166, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 26}}, {"id": 170, "type": "%", "text": "%", "parent": 164, "children": [], "start_point": {"row": 60, "column": 28}, "end_point": {"row": 60, "column": 29}}, {"id": 171, "type": "identifier", "text": "timers_per_client", "parent": 164, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 47}}, {"id": 172, "type": "call_expression", "text": "assert(client_state != NULL)", "parent": 138, "children": [173, 174], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 32}}, {"id": 173, "type": "identifier", "text": "assert", "parent": 172, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 10}}, {"id": 174, "type": "argument_list", "text": "(client_state != NULL)", "parent": 172, "children": [175], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 32}}, {"id": 175, "type": "binary_expression", "text": "client_state != NULL", "parent": 174, "children": [176, 177, 178], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 31}}, {"id": 176, "type": "identifier", "text": "client_state", "parent": 175, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 23}}, {"id": 177, "type": "!=", "text": "!=", "parent": 175, "children": [], "start_point": {"row": 62, "column": 24}, "end_point": {"row": 62, "column": 26}}, {"id": 178, "type": "null", "text": "NULL", "parent": 175, "children": [179], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 31}}, {"id": 179, "type": "NULL", "text": "NULL", "parent": 178, "children": [], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 31}}, {"id": 180, "type": "assignment_expression", "text": "client_state[cid] |= BIT(tid)", "parent": 138, "children": [181, 184, 185], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 33}}, {"id": 181, "type": "subscript_expression", "text": "client_state[cid]", "parent": 180, "children": [182, 183], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 21}}, {"id": 182, "type": "identifier", "text": "client_state", "parent": 181, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 16}}, {"id": 183, "type": "identifier", "text": "cid", "parent": 181, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 20}}, {"id": 184, "type": "|=", "text": "|=", "parent": 180, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 24}}, {"id": 185, "type": "call_expression", "text": "BIT(tid)", "parent": 180, "children": [186, 187], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 33}}, {"id": 186, "type": "identifier", "text": "BIT", "parent": 185, "children": [], "start_point": {"row": 64, "column": 25}, "end_point": {"row": 64, "column": 28}}, {"id": 187, "type": "argument_list", "text": "(tid)", "parent": 185, "children": [188], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 33}}, {"id": 188, "type": "identifier", "text": "tid", "parent": 187, "children": [], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 32}}, {"id": 189, "type": "call_expression", "text": "the_timer_emit(cid + 1)", "parent": 138, "children": [190, 191], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 27}}, {"id": 190, "type": "identifier", "text": "the_timer_emit", "parent": 189, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 18}}, {"id": 191, "type": "argument_list", "text": "(cid + 1)", "parent": 189, "children": [192], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 27}}, {"id": 192, "type": "binary_expression", "text": "cid + 1", "parent": 191, "children": [193, 194, 195], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 26}}, {"id": 193, "type": "identifier", "text": "cid", "parent": 192, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 22}}, {"id": 194, "type": "+", "text": "+", "parent": 192, "children": [], "start_point": {"row": 65, "column": 23}, "end_point": {"row": 65, "column": 24}}, {"id": 195, "type": "number_literal", "text": "1", "parent": 192, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 26}}, {"id": 196, "type": "return_statement", "text": "return 0;", "parent": 138, "children": [197], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 13}}, {"id": 197, "type": "number_literal", "text": "0", "parent": 196, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 12}}, {"id": 198, "type": "function_definition", "text": "void time_server_irq_handle(irq_ack_fn irq_acknowledge) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n error = irq_acknowledge();\n ZF_LOGF_IF(error, \"irq acknowledge failed\");\n\n error = tm_update(&time_manager);\n ZF_LOGF_IF(error, \"Failed to update time manager\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n}", "parent": null, "children": [199, 200], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 199, "type": "primitive_type", "text": "void", "parent": 198, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 4}}, {"id": 200, "type": "function_declarator", "text": "time_server_irq_handle(irq_ack_fn irq_acknowledge)", "parent": 198, "children": [201, 202], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 55}}, {"id": 201, "type": "identifier", "text": "time_server_irq_handle", "parent": 200, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 27}}, {"id": 202, "type": "parameter_list", "text": "(irq_ack_fn irq_acknowledge)", "parent": 200, "children": [203], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 55}}, {"id": 203, "type": "parameter_declaration", "text": "irq_ack_fn irq_acknowledge", "parent": 202, "children": [204, 205], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 54}}, {"id": 204, "type": "type_identifier", "text": "irq_ack_fn", "parent": 203, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 38}}, {"id": 205, "type": "identifier", "text": "irq_acknowledge", "parent": 203, "children": [], "start_point": {"row": 70, "column": 39}, "end_point": {"row": 70, "column": 54}}, {"id": 206, "type": "declaration", "text": "int error = time_server_lock();", "parent": 198, "children": [207, 208], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 35}}, {"id": 207, "type": "primitive_type", "text": "int", "parent": 206, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 7}}, {"id": 208, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 206, "children": [209, 210, 211], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 34}}, {"id": 209, "type": "identifier", "text": "error", "parent": 208, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 13}}, {"id": 210, "type": "=", "text": "=", "parent": 208, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 15}}, {"id": 211, "type": "call_expression", "text": "time_server_lock()", "parent": 208, "children": [212, 213], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 34}}, {"id": 212, "type": "identifier", "text": "time_server_lock", "parent": 211, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 32}}, {"id": 213, "type": "argument_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 34}}, {"id": 214, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 198, "children": [215, 216], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 51}}, {"id": 215, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 214, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 14}}, {"id": 216, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 214, "children": [217, 218], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 51}}, {"id": 217, "type": "identifier", "text": "error", "parent": 216, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 20}}, {"id": 218, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 216, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 50}}, {"id": 219, "type": "assignment_expression", "text": "error = irq_acknowledge()", "parent": 198, "children": [220, 221, 222], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 29}}, {"id": 220, "type": "identifier", "text": "error", "parent": 219, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 9}}, {"id": 221, "type": "=", "text": "=", "parent": 219, "children": [], "start_point": {"row": 74, "column": 10}, "end_point": {"row": 74, "column": 11}}, {"id": 222, "type": "call_expression", "text": "irq_acknowledge()", "parent": 219, "children": [223, 224], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 29}}, {"id": 223, "type": "identifier", "text": "irq_acknowledge", "parent": 222, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 27}}, {"id": 224, "type": "argument_list", "text": "()", "parent": 222, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 29}}, {"id": 225, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"irq acknowledge failed\")", "parent": 198, "children": [226, 227], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 47}}, {"id": 226, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 225, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 14}}, {"id": 227, "type": "argument_list", "text": "(error, \"irq acknowledge failed\")", "parent": 225, "children": [228, 229], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 47}}, {"id": 228, "type": "identifier", "text": "error", "parent": 227, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 20}}, {"id": 229, "type": "string_literal", "text": "\"irq acknowledge failed\"", "parent": 227, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 46}}, {"id": 230, "type": "assignment_expression", "text": "error = tm_update(&time_manager)", "parent": 198, "children": [231, 232, 233], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 36}}, {"id": 231, "type": "identifier", "text": "error", "parent": 230, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 9}}, {"id": 232, "type": "=", "text": "=", "parent": 230, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 11}}, {"id": 233, "type": "call_expression", "text": "tm_update(&time_manager)", "parent": 230, "children": [234, 235], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 36}}, {"id": 234, "type": "identifier", "text": "tm_update", "parent": 233, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 21}}, {"id": 235, "type": "argument_list", "text": "(&time_manager)", "parent": 233, "children": [236], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 36}}, {"id": 236, "type": "pointer_expression", "text": "&time_manager", "parent": 235, "children": [237], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 35}}, {"id": 237, "type": "identifier", "text": "time_manager", "parent": 236, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 35}}, {"id": 238, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to update time manager\")", "parent": 198, "children": [239, 240], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 54}}, {"id": 239, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 238, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 14}}, {"id": 240, "type": "argument_list", "text": "(error, \"Failed to update time manager\")", "parent": 238, "children": [241, 242], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 54}}, {"id": 241, "type": "identifier", "text": "error", "parent": 240, "children": [], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 20}}, {"id": 242, "type": "string_literal", "text": "\"Failed to update time manager\"", "parent": 240, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 53}}, {"id": 243, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 198, "children": [244, 245, 246], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 32}}, {"id": 244, "type": "identifier", "text": "error", "parent": 243, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 9}}, {"id": 245, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 11}}, {"id": 246, "type": "call_expression", "text": "time_server_unlock()", "parent": 243, "children": [247, 248], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 32}}, {"id": 247, "type": "identifier", "text": "time_server_unlock", "parent": 246, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 30}}, {"id": 248, "type": "argument_list", "text": "()", "parent": 246, "children": [], "start_point": {"row": 80, "column": 30}, "end_point": {"row": 80, "column": 32}}, {"id": 249, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 198, "children": [250, 251], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 53}}, {"id": 250, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 249, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 14}}, {"id": 251, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 249, "children": [252, 253], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 53}}, {"id": 252, "type": "identifier", "text": "error", "parent": 251, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 20}}, {"id": 253, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 251, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 52}}, {"id": 254, "type": "function_definition", "text": "static int _oneshot_relative(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int id = get_time_token(cid, tid);\n error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}", "parent": null, "children": [255, 256], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 255, "type": "primitive_type", "text": "int", "parent": 254, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 10}}, {"id": 256, "type": "function_declarator", "text": "_oneshot_relative(int cid, int tid, uint64_t ns)", "parent": 254, "children": [257, 258], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 59}}, {"id": 257, "type": "identifier", "text": "_oneshot_relative", "parent": 256, "children": [], "start_point": {"row": 84, "column": 11}, "end_point": {"row": 84, "column": 28}}, {"id": 258, "type": "parameter_list", "text": "(int cid, int tid, uint64_t ns)", "parent": 256, "children": [259, 262, 265], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 59}}, {"id": 259, "type": "parameter_declaration", "text": "int cid", "parent": 258, "children": [260, 261], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 36}}, {"id": 260, "type": "primitive_type", "text": "int", "parent": 259, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 32}}, {"id": 261, "type": "identifier", "text": "cid", "parent": 259, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 36}}, {"id": 262, "type": "parameter_declaration", "text": "int tid", "parent": 258, "children": [263, 264], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 45}}, {"id": 263, "type": "primitive_type", "text": "int", "parent": 262, "children": [], "start_point": {"row": 84, "column": 38}, "end_point": {"row": 84, "column": 41}}, {"id": 264, "type": "identifier", "text": "tid", "parent": 262, "children": [], "start_point": {"row": 84, "column": 42}, "end_point": {"row": 84, "column": 45}}, {"id": 265, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 258, "children": [266, 267], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 58}}, {"id": 266, "type": "primitive_type", "text": "uint64_t", "parent": 265, "children": [], "start_point": {"row": 84, "column": 47}, "end_point": {"row": 84, "column": 55}}, {"id": 267, "type": "identifier", "text": "ns", "parent": 265, "children": [], "start_point": {"row": 84, "column": 56}, "end_point": {"row": 84, "column": 58}}, {"id": 268, "type": "if_statement", "text": "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }", "parent": 254, "children": [269], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 269, "type": "parenthesized_expression", "text": "(tid >= timers_per_client || tid < 0)", "parent": 268, "children": [270], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 44}}, {"id": 270, "type": "binary_expression", "text": "tid >= timers_per_client || tid < 0", "parent": 269, "children": [271, 275, 276], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 43}}, {"id": 271, "type": "binary_expression", "text": "tid >= timers_per_client", "parent": 270, "children": [272, 273, 274], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 32}}, {"id": 272, "type": "identifier", "text": "tid", "parent": 271, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 11}}, {"id": 273, "type": ">=", "text": ">=", "parent": 271, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 14}}, {"id": 274, "type": "identifier", "text": "timers_per_client", "parent": 271, "children": [], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 32}}, {"id": 275, "type": "||", "text": "||", "parent": 270, "children": [], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 35}}, {"id": 276, "type": "binary_expression", "text": "tid < 0", "parent": 270, "children": [277, 278, 279], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 43}}, {"id": 277, "type": "identifier", "text": "tid", "parent": 276, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 39}}, {"id": 278, "type": "<", "text": "<", "parent": 276, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 41}}, {"id": 279, "type": "number_literal", "text": "0", "parent": 276, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 43}}, {"id": 280, "type": "call_expression", "text": "ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 268, "children": [281, 282], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 71}}, {"id": 281, "type": "identifier", "text": "ZF_LOGE", "parent": 280, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 15}}, {"id": 282, "type": "argument_list", "text": "(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 280, "children": [283, 285, 286], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 71}}, {"id": 283, "type": "string_literal", "text": "\"invalid tid, 0 >= %d >= %d\\n\"", "parent": 282, "children": [284], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 46}}, {"id": 284, "type": "escape_sequence", "text": "\\n", "parent": 283, "children": [], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 45}}, {"id": 285, "type": "identifier", "text": "tid", "parent": 282, "children": [], "start_point": {"row": 86, "column": 48}, "end_point": {"row": 86, "column": 51}}, {"id": 286, "type": "identifier", "text": "timers_per_client", "parent": 282, "children": [], "start_point": {"row": 86, "column": 53}, "end_point": {"row": 86, "column": 70}}, {"id": 287, "type": "return_statement", "text": "return -1;", "parent": 268, "children": [288], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 18}}, {"id": 288, "type": "number_literal", "text": "-1", "parent": 287, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 17}}, {"id": 289, "type": "declaration", "text": "int error = time_server_lock();", "parent": 254, "children": [290, 291], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 35}}, {"id": 290, "type": "primitive_type", "text": "int", "parent": 289, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 7}}, {"id": 291, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 289, "children": [292, 293, 294], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 34}}, {"id": 292, "type": "identifier", "text": "error", "parent": 291, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 13}}, {"id": 293, "type": "=", "text": "=", "parent": 291, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 15}}, {"id": 294, "type": "call_expression", "text": "time_server_lock()", "parent": 291, "children": [295, 296], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 34}}, {"id": 295, "type": "identifier", "text": "time_server_lock", "parent": 294, "children": [], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 32}}, {"id": 296, "type": "argument_list", "text": "()", "parent": 294, "children": [], "start_point": {"row": 90, "column": 32}, "end_point": {"row": 90, "column": 34}}, {"id": 297, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 254, "children": [298, 299], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 51}}, {"id": 298, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 297, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 14}}, {"id": 299, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 297, "children": [300, 301], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 51}}, {"id": 300, "type": "identifier", "text": "error", "parent": 299, "children": [], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 20}}, {"id": 301, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 299, "children": [], "start_point": {"row": 91, "column": 22}, "end_point": {"row": 91, "column": 50}}, {"id": 302, "type": "declaration", "text": "unsigned int id = get_time_token(cid, tid);", "parent": 254, "children": [303, 306], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 47}}, {"id": 303, "type": "sized_type_specifier", "text": "unsigned int", "parent": 302, "children": [304, 305], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 16}}, {"id": 304, "type": "unsigned", "text": "unsigned", "parent": 303, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 12}}, {"id": 305, "type": "primitive_type", "text": "int", "parent": 303, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 16}}, {"id": 306, "type": "init_declarator", "text": "id = get_time_token(cid, tid)", "parent": 302, "children": [307, 308, 309], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 46}}, {"id": 307, "type": "identifier", "text": "id", "parent": 306, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 19}}, {"id": 308, "type": "=", "text": "=", "parent": 306, "children": [], "start_point": {"row": 93, "column": 20}, "end_point": {"row": 93, "column": 21}}, {"id": 309, "type": "call_expression", "text": "get_time_token(cid, tid)", "parent": 306, "children": [310, 311], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 46}}, {"id": 310, "type": "identifier", "text": "get_time_token", "parent": 309, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 36}}, {"id": 311, "type": "argument_list", "text": "(cid, tid)", "parent": 309, "children": [312, 313], "start_point": {"row": 93, "column": 36}, "end_point": {"row": 93, "column": 46}}, {"id": 312, "type": "identifier", "text": "cid", "parent": 311, "children": [], "start_point": {"row": 93, "column": 37}, "end_point": {"row": 93, "column": 40}}, {"id": 313, "type": "identifier", "text": "tid", "parent": 311, "children": [], "start_point": {"row": 93, "column": 42}, "end_point": {"row": 93, "column": 45}}, {"id": 314, "type": "assignment_expression", "text": "error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id)", "parent": 254, "children": [315, 316, 317], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 84}}, {"id": 315, "type": "identifier", "text": "error", "parent": 314, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 9}}, {"id": 316, "type": "=", "text": "=", "parent": 314, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 11}}, {"id": 317, "type": "call_expression", "text": "tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id)", "parent": 314, "children": [318, 319], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 84}}, {"id": 318, "type": "identifier", "text": "tm_register_rel_cb", "parent": 317, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 30}}, {"id": 319, "type": "argument_list", "text": "(&time_manager, ns, id, signal_client, (uintptr_t) id)", "parent": 317, "children": [320, 322, 323, 324, 325], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 84}}, {"id": 320, "type": "pointer_expression", "text": "&time_manager", "parent": 319, "children": [321], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 44}}, {"id": 321, "type": "identifier", "text": "time_manager", "parent": 320, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 44}}, {"id": 322, "type": "identifier", "text": "ns", "parent": 319, "children": [], "start_point": {"row": 94, "column": 46}, "end_point": {"row": 94, "column": 48}}, {"id": 323, "type": "identifier", "text": "id", "parent": 319, "children": [], "start_point": {"row": 94, "column": 50}, "end_point": {"row": 94, "column": 52}}, {"id": 324, "type": "identifier", "text": "signal_client", "parent": 319, "children": [], "start_point": {"row": 94, "column": 54}, "end_point": {"row": 94, "column": 67}}, {"id": 325, "type": "cast_expression", "text": "(uintptr_t) id", "parent": 319, "children": [326, 328], "start_point": {"row": 94, "column": 69}, "end_point": {"row": 94, "column": 83}}, {"id": 326, "type": "type_descriptor", "text": "uintptr_t", "parent": 325, "children": [327], "start_point": {"row": 94, "column": 70}, "end_point": {"row": 94, "column": 79}}, {"id": 327, "type": "primitive_type", "text": "uintptr_t", "parent": 326, "children": [], "start_point": {"row": 94, "column": 70}, "end_point": {"row": 94, "column": 79}}, {"id": 328, "type": "identifier", "text": "id", "parent": 325, "children": [], "start_point": {"row": 94, "column": 81}, "end_point": {"row": 94, "column": 83}}, {"id": 329, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to set timeout\")", "parent": 254, "children": [330, 331], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 46}}, {"id": 330, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 329, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 14}}, {"id": 331, "type": "argument_list", "text": "(error, \"Failed to set timeout\")", "parent": 329, "children": [332, 333], "start_point": {"row": 95, "column": 14}, "end_point": {"row": 95, "column": 46}}, {"id": 332, "type": "identifier", "text": "error", "parent": 331, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 20}}, {"id": 333, "type": "string_literal", "text": "\"Failed to set timeout\"", "parent": 331, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 45}}, {"id": 334, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 254, "children": [335, 336, 337], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 32}}, {"id": 335, "type": "identifier", "text": "error", "parent": 334, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 9}}, {"id": 336, "type": "=", "text": "=", "parent": 334, "children": [], "start_point": {"row": 97, "column": 10}, "end_point": {"row": 97, "column": 11}}, {"id": 337, "type": "call_expression", "text": "time_server_unlock()", "parent": 334, "children": [338, 339], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 32}}, {"id": 338, "type": "identifier", "text": "time_server_unlock", "parent": 337, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 30}}, {"id": 339, "type": "argument_list", "text": "()", "parent": 337, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 32}}, {"id": 340, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 254, "children": [341, 342], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 53}}, {"id": 341, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 340, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 14}}, {"id": 342, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 340, "children": [343, 344], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 53}}, {"id": 343, "type": "identifier", "text": "error", "parent": 342, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 20}}, {"id": 344, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 342, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 52}}, {"id": 345, "type": "return_statement", "text": "return 0;", "parent": 254, "children": [346], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 13}}, {"id": 346, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 12}}, {"id": 347, "type": "function_definition", "text": "static int _oneshot_absolute(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int token = get_time_token(cid, tid);\n\n error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);\n if (error == ETIME) {\n signal_client(token);\n error = 0;\n }\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}", "parent": null, "children": [348, 349], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 123, "column": 1}}, {"id": 348, "type": "primitive_type", "text": "int", "parent": 347, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 10}}, {"id": 349, "type": "function_declarator", "text": "_oneshot_absolute(int cid, int tid, uint64_t ns)", "parent": 347, "children": [350, 351], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 59}}, {"id": 350, "type": "identifier", "text": "_oneshot_absolute", "parent": 349, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 28}}, {"id": 351, "type": "parameter_list", "text": "(int cid, int tid, uint64_t ns)", "parent": 349, "children": [352, 355, 358], "start_point": {"row": 102, "column": 28}, "end_point": {"row": 102, "column": 59}}, {"id": 352, "type": "parameter_declaration", "text": "int cid", "parent": 351, "children": [353, 354], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 36}}, {"id": 353, "type": "primitive_type", "text": "int", "parent": 352, "children": [], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 32}}, {"id": 354, "type": "identifier", "text": "cid", "parent": 352, "children": [], "start_point": {"row": 102, "column": 33}, "end_point": {"row": 102, "column": 36}}, {"id": 355, "type": "parameter_declaration", "text": "int tid", "parent": 351, "children": [356, 357], "start_point": {"row": 102, "column": 38}, "end_point": {"row": 102, "column": 45}}, {"id": 356, "type": "primitive_type", "text": "int", "parent": 355, "children": [], "start_point": {"row": 102, "column": 38}, "end_point": {"row": 102, "column": 41}}, {"id": 357, "type": "identifier", "text": "tid", "parent": 355, "children": [], "start_point": {"row": 102, "column": 42}, "end_point": {"row": 102, "column": 45}}, {"id": 358, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 351, "children": [359, 360], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 58}}, {"id": 359, "type": "primitive_type", "text": "uint64_t", "parent": 358, "children": [], "start_point": {"row": 102, "column": 47}, "end_point": {"row": 102, "column": 55}}, {"id": 360, "type": "identifier", "text": "ns", "parent": 358, "children": [], "start_point": {"row": 102, "column": 56}, "end_point": {"row": 102, "column": 58}}, {"id": 361, "type": "if_statement", "text": "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }", "parent": 347, "children": [362], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 106, "column": 5}}, {"id": 362, "type": "parenthesized_expression", "text": "(tid >= timers_per_client || tid < 0)", "parent": 361, "children": [363], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 44}}, {"id": 363, "type": "binary_expression", "text": "tid >= timers_per_client || tid < 0", "parent": 362, "children": [364, 368, 369], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 43}}, {"id": 364, "type": "binary_expression", "text": "tid >= timers_per_client", "parent": 363, "children": [365, 366, 367], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 32}}, {"id": 365, "type": "identifier", "text": "tid", "parent": 364, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 11}}, {"id": 366, "type": ">=", "text": ">=", "parent": 364, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 14}}, {"id": 367, "type": "identifier", "text": "timers_per_client", "parent": 364, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 32}}, {"id": 368, "type": "||", "text": "||", "parent": 363, "children": [], "start_point": {"row": 103, "column": 33}, "end_point": {"row": 103, "column": 35}}, {"id": 369, "type": "binary_expression", "text": "tid < 0", "parent": 363, "children": [370, 371, 372], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 43}}, {"id": 370, "type": "identifier", "text": "tid", "parent": 369, "children": [], "start_point": {"row": 103, "column": 36}, "end_point": {"row": 103, "column": 39}}, {"id": 371, "type": "<", "text": "<", "parent": 369, "children": [], "start_point": {"row": 103, "column": 40}, "end_point": {"row": 103, "column": 41}}, {"id": 372, "type": "number_literal", "text": "0", "parent": 369, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 43}}, {"id": 373, "type": "call_expression", "text": "ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 361, "children": [374, 375], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 71}}, {"id": 374, "type": "identifier", "text": "ZF_LOGE", "parent": 373, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 15}}, {"id": 375, "type": "argument_list", "text": "(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 373, "children": [376, 378, 379], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 71}}, {"id": 376, "type": "string_literal", "text": "\"invalid tid, 0 >= %d >= %d\\n\"", "parent": 375, "children": [377], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 46}}, {"id": 377, "type": "escape_sequence", "text": "\\n", "parent": 376, "children": [], "start_point": {"row": 104, "column": 43}, "end_point": {"row": 104, "column": 45}}, {"id": 378, "type": "identifier", "text": "tid", "parent": 375, "children": [], "start_point": {"row": 104, "column": 48}, "end_point": {"row": 104, "column": 51}}, {"id": 379, "type": "identifier", "text": "timers_per_client", "parent": 375, "children": [], "start_point": {"row": 104, "column": 53}, "end_point": {"row": 104, "column": 70}}, {"id": 380, "type": "return_statement", "text": "return -1;", "parent": 361, "children": [381], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 18}}, {"id": 381, "type": "number_literal", "text": "-1", "parent": 380, "children": [], "start_point": {"row": 105, "column": 15}, "end_point": {"row": 105, "column": 17}}, {"id": 382, "type": "declaration", "text": "int error = time_server_lock();", "parent": 347, "children": [383, 384], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 35}}, {"id": 383, "type": "primitive_type", "text": "int", "parent": 382, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 7}}, {"id": 384, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 382, "children": [385, 386, 387], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 34}}, {"id": 385, "type": "identifier", "text": "error", "parent": 384, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 13}}, {"id": 386, "type": "=", "text": "=", "parent": 384, "children": [], "start_point": {"row": 108, "column": 14}, "end_point": {"row": 108, "column": 15}}, {"id": 387, "type": "call_expression", "text": "time_server_lock()", "parent": 384, "children": [388, 389], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 34}}, {"id": 388, "type": "identifier", "text": "time_server_lock", "parent": 387, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 32}}, {"id": 389, "type": "argument_list", "text": "()", "parent": 387, "children": [], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 34}}, {"id": 390, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 347, "children": [391, 392], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 51}}, {"id": 391, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 390, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 14}}, {"id": 392, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 390, "children": [393, 394], "start_point": {"row": 109, "column": 14}, "end_point": {"row": 109, "column": 51}}, {"id": 393, "type": "identifier", "text": "error", "parent": 392, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 20}}, {"id": 394, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 392, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 50}}, {"id": 395, "type": "declaration", "text": "unsigned int token = get_time_token(cid, tid);", "parent": 347, "children": [396, 399], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 50}}, {"id": 396, "type": "sized_type_specifier", "text": "unsigned int", "parent": 395, "children": [397, 398], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 16}}, {"id": 397, "type": "unsigned", "text": "unsigned", "parent": 396, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 12}}, {"id": 398, "type": "primitive_type", "text": "int", "parent": 396, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 16}}, {"id": 399, "type": "init_declarator", "text": "token = get_time_token(cid, tid)", "parent": 395, "children": [400, 401, 402], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 49}}, {"id": 400, "type": "identifier", "text": "token", "parent": 399, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 22}}, {"id": 401, "type": "=", "text": "=", "parent": 399, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 24}}, {"id": 402, "type": "call_expression", "text": "get_time_token(cid, tid)", "parent": 399, "children": [403, 404], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 49}}, {"id": 403, "type": "identifier", "text": "get_time_token", "parent": 402, "children": [], "start_point": {"row": 111, "column": 25}, "end_point": {"row": 111, "column": 39}}, {"id": 404, "type": "argument_list", "text": "(cid, tid)", "parent": 402, "children": [405, 406], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 49}}, {"id": 405, "type": "identifier", "text": "cid", "parent": 404, "children": [], "start_point": {"row": 111, "column": 40}, "end_point": {"row": 111, "column": 43}}, {"id": 406, "type": "identifier", "text": "tid", "parent": 404, "children": [], "start_point": {"row": 111, "column": 45}, "end_point": {"row": 111, "column": 48}}, {"id": 407, "type": "assignment_expression", "text": "error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token)", "parent": 347, "children": [408, 409, 410], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 90}}, {"id": 408, "type": "identifier", "text": "error", "parent": 407, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 9}}, {"id": 409, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 11}}, {"id": 410, "type": "call_expression", "text": "tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token)", "parent": 407, "children": [411, 412], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 90}}, {"id": 411, "type": "identifier", "text": "tm_register_abs_cb", "parent": 410, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 30}}, {"id": 412, "type": "argument_list", "text": "(&time_manager, ns, token, signal_client, (uintptr_t) token)", "parent": 410, "children": [413, 415, 416, 417, 418], "start_point": {"row": 113, "column": 30}, "end_point": {"row": 113, "column": 90}}, {"id": 413, "type": "pointer_expression", "text": "&time_manager", "parent": 412, "children": [414], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 44}}, {"id": 414, "type": "identifier", "text": "time_manager", "parent": 413, "children": [], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 44}}, {"id": 415, "type": "identifier", "text": "ns", "parent": 412, "children": [], "start_point": {"row": 113, "column": 46}, "end_point": {"row": 113, "column": 48}}, {"id": 416, "type": "identifier", "text": "token", "parent": 412, "children": [], "start_point": {"row": 113, "column": 50}, "end_point": {"row": 113, "column": 55}}, {"id": 417, "type": "identifier", "text": "signal_client", "parent": 412, "children": [], "start_point": {"row": 113, "column": 57}, "end_point": {"row": 113, "column": 70}}, {"id": 418, "type": "cast_expression", "text": "(uintptr_t) token", "parent": 412, "children": [419, 421], "start_point": {"row": 113, "column": 72}, "end_point": {"row": 113, "column": 89}}, {"id": 419, "type": "type_descriptor", "text": "uintptr_t", "parent": 418, "children": [420], "start_point": {"row": 113, "column": 73}, "end_point": {"row": 113, "column": 82}}, {"id": 420, "type": "primitive_type", "text": "uintptr_t", "parent": 419, "children": [], "start_point": {"row": 113, "column": 73}, "end_point": {"row": 113, "column": 82}}, {"id": 421, "type": "identifier", "text": "token", "parent": 418, "children": [], "start_point": {"row": 113, "column": 84}, "end_point": {"row": 113, "column": 89}}, {"id": 422, "type": "if_statement", "text": "if (error == ETIME) {\n signal_client(token);\n error = 0;\n }", "parent": 347, "children": [423], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 117, "column": 5}}, {"id": 423, "type": "parenthesized_expression", "text": "(error == ETIME)", "parent": 422, "children": [424], "start_point": {"row": 114, "column": 7}, "end_point": {"row": 114, "column": 23}}, {"id": 424, "type": "binary_expression", "text": "error == ETIME", "parent": 423, "children": [425, 426, 427], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 22}}, {"id": 425, "type": "identifier", "text": "error", "parent": 424, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 13}}, {"id": 426, "type": "==", "text": "==", "parent": 424, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 16}}, {"id": 427, "type": "identifier", "text": "ETIME", "parent": 424, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 22}}, {"id": 428, "type": "call_expression", "text": "signal_client(token)", "parent": 422, "children": [429, 430], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 28}}, {"id": 429, "type": "identifier", "text": "signal_client", "parent": 428, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 21}}, {"id": 430, "type": "argument_list", "text": "(token)", "parent": 428, "children": [431], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 28}}, {"id": 431, "type": "identifier", "text": "token", "parent": 430, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 27}}, {"id": 432, "type": "assignment_expression", "text": "error = 0", "parent": 422, "children": [433, 434, 435], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 17}}, {"id": 433, "type": "identifier", "text": "error", "parent": 432, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 13}}, {"id": 434, "type": "=", "text": "=", "parent": 432, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 15}}, {"id": 435, "type": "number_literal", "text": "0", "parent": 432, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 17}}, {"id": 436, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to set timeout\")", "parent": 347, "children": [437, 438], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 46}}, {"id": 437, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 436, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 14}}, {"id": 438, "type": "argument_list", "text": "(error, \"Failed to set timeout\")", "parent": 436, "children": [439, 440], "start_point": {"row": 118, "column": 14}, "end_point": {"row": 118, "column": 46}}, {"id": 439, "type": "identifier", "text": "error", "parent": 438, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 20}}, {"id": 440, "type": "string_literal", "text": "\"Failed to set timeout\"", "parent": 438, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 45}}, {"id": 441, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 347, "children": [442, 443, 444], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 32}}, {"id": 442, "type": "identifier", "text": "error", "parent": 441, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 9}}, {"id": 443, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 120, "column": 10}, "end_point": {"row": 120, "column": 11}}, {"id": 444, "type": "call_expression", "text": "time_server_unlock()", "parent": 441, "children": [445, 446], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 32}}, {"id": 445, "type": "identifier", "text": "time_server_unlock", "parent": 444, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 30}}, {"id": 446, "type": "argument_list", "text": "()", "parent": 444, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 32}}, {"id": 447, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 347, "children": [448, 449], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 53}}, {"id": 448, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 447, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 14}}, {"id": 449, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 447, "children": [450, 451], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 53}}, {"id": 450, "type": "identifier", "text": "error", "parent": 449, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 20}}, {"id": 451, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 449, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 52}}, {"id": 452, "type": "return_statement", "text": "return 0;", "parent": 347, "children": [453], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 13}}, {"id": 453, "type": "number_literal", "text": "0", "parent": 452, "children": [], "start_point": {"row": 122, "column": 11}, "end_point": {"row": 122, "column": 12}}, {"id": 454, "type": "function_definition", "text": "static int _periodic(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int token = get_time_token(cid, tid);\n error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}", "parent": null, "children": [455, 456], "start_point": {"row": 125, "column": 0}, "end_point": {"row": 141, "column": 1}}, {"id": 455, "type": "primitive_type", "text": "int", "parent": 454, "children": [], "start_point": {"row": 125, "column": 7}, "end_point": {"row": 125, "column": 10}}, {"id": 456, "type": "function_declarator", "text": "_periodic(int cid, int tid, uint64_t ns)", "parent": 454, "children": [457, 458], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 51}}, {"id": 457, "type": "identifier", "text": "_periodic", "parent": 456, "children": [], "start_point": {"row": 125, "column": 11}, "end_point": {"row": 125, "column": 20}}, {"id": 458, "type": "parameter_list", "text": "(int cid, int tid, uint64_t ns)", "parent": 456, "children": [459, 462, 465], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 51}}, {"id": 459, "type": "parameter_declaration", "text": "int cid", "parent": 458, "children": [460, 461], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 28}}, {"id": 460, "type": "primitive_type", "text": "int", "parent": 459, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 24}}, {"id": 461, "type": "identifier", "text": "cid", "parent": 459, "children": [], "start_point": {"row": 125, "column": 25}, "end_point": {"row": 125, "column": 28}}, {"id": 462, "type": "parameter_declaration", "text": "int tid", "parent": 458, "children": [463, 464], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 37}}, {"id": 463, "type": "primitive_type", "text": "int", "parent": 462, "children": [], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 33}}, {"id": 464, "type": "identifier", "text": "tid", "parent": 462, "children": [], "start_point": {"row": 125, "column": 34}, "end_point": {"row": 125, "column": 37}}, {"id": 465, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 458, "children": [466, 467], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 50}}, {"id": 466, "type": "primitive_type", "text": "uint64_t", "parent": 465, "children": [], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 47}}, {"id": 467, "type": "identifier", "text": "ns", "parent": 465, "children": [], "start_point": {"row": 125, "column": 48}, "end_point": {"row": 125, "column": 50}}, {"id": 468, "type": "if_statement", "text": "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }", "parent": 454, "children": [469], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 129, "column": 5}}, {"id": 469, "type": "parenthesized_expression", "text": "(tid >= timers_per_client || tid < 0)", "parent": 468, "children": [470], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 44}}, {"id": 470, "type": "binary_expression", "text": "tid >= timers_per_client || tid < 0", "parent": 469, "children": [471, 475, 476], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 43}}, {"id": 471, "type": "binary_expression", "text": "tid >= timers_per_client", "parent": 470, "children": [472, 473, 474], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 32}}, {"id": 472, "type": "identifier", "text": "tid", "parent": 471, "children": [], "start_point": {"row": 126, "column": 8}, "end_point": {"row": 126, "column": 11}}, {"id": 473, "type": ">=", "text": ">=", "parent": 471, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 14}}, {"id": 474, "type": "identifier", "text": "timers_per_client", "parent": 471, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 32}}, {"id": 475, "type": "||", "text": "||", "parent": 470, "children": [], "start_point": {"row": 126, "column": 33}, "end_point": {"row": 126, "column": 35}}, {"id": 476, "type": "binary_expression", "text": "tid < 0", "parent": 470, "children": [477, 478, 479], "start_point": {"row": 126, "column": 36}, "end_point": {"row": 126, "column": 43}}, {"id": 477, "type": "identifier", "text": "tid", "parent": 476, "children": [], "start_point": {"row": 126, "column": 36}, "end_point": {"row": 126, "column": 39}}, {"id": 478, "type": "<", "text": "<", "parent": 476, "children": [], "start_point": {"row": 126, "column": 40}, "end_point": {"row": 126, "column": 41}}, {"id": 479, "type": "number_literal", "text": "0", "parent": 476, "children": [], "start_point": {"row": 126, "column": 42}, "end_point": {"row": 126, "column": 43}}, {"id": 480, "type": "call_expression", "text": "ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 468, "children": [481, 482], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 71}}, {"id": 481, "type": "identifier", "text": "ZF_LOGE", "parent": 480, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 15}}, {"id": 482, "type": "argument_list", "text": "(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 480, "children": [483, 485, 486], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 71}}, {"id": 483, "type": "string_literal", "text": "\"invalid tid, 0 >= %d >= %d\\n\"", "parent": 482, "children": [484], "start_point": {"row": 127, "column": 16}, "end_point": {"row": 127, "column": 46}}, {"id": 484, "type": "escape_sequence", "text": "\\n", "parent": 483, "children": [], "start_point": {"row": 127, "column": 43}, "end_point": {"row": 127, "column": 45}}, {"id": 485, "type": "identifier", "text": "tid", "parent": 482, "children": [], "start_point": {"row": 127, "column": 48}, "end_point": {"row": 127, "column": 51}}, {"id": 486, "type": "identifier", "text": "timers_per_client", "parent": 482, "children": [], "start_point": {"row": 127, "column": 53}, "end_point": {"row": 127, "column": 70}}, {"id": 487, "type": "return_statement", "text": "return -1;", "parent": 468, "children": [488], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 18}}, {"id": 488, "type": "number_literal", "text": "-1", "parent": 487, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 17}}, {"id": 489, "type": "declaration", "text": "int error = time_server_lock();", "parent": 454, "children": [490, 491], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 35}}, {"id": 490, "type": "primitive_type", "text": "int", "parent": 489, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 7}}, {"id": 491, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 489, "children": [492, 493, 494], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 34}}, {"id": 492, "type": "identifier", "text": "error", "parent": 491, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 13}}, {"id": 493, "type": "=", "text": "=", "parent": 491, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 15}}, {"id": 494, "type": "call_expression", "text": "time_server_lock()", "parent": 491, "children": [495, 496], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 34}}, {"id": 495, "type": "identifier", "text": "time_server_lock", "parent": 494, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 32}}, {"id": 496, "type": "argument_list", "text": "()", "parent": 494, "children": [], "start_point": {"row": 131, "column": 32}, "end_point": {"row": 131, "column": 34}}, {"id": 497, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 454, "children": [498, 499], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 51}}, {"id": 498, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 497, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 14}}, {"id": 499, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 497, "children": [500, 501], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 51}}, {"id": 500, "type": "identifier", "text": "error", "parent": 499, "children": [], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 20}}, {"id": 501, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 499, "children": [], "start_point": {"row": 132, "column": 22}, "end_point": {"row": 132, "column": 50}}, {"id": 502, "type": "declaration", "text": "unsigned int token = get_time_token(cid, tid);", "parent": 454, "children": [503, 506], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 50}}, {"id": 503, "type": "sized_type_specifier", "text": "unsigned int", "parent": 502, "children": [504, 505], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 16}}, {"id": 504, "type": "unsigned", "text": "unsigned", "parent": 503, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 12}}, {"id": 505, "type": "primitive_type", "text": "int", "parent": 503, "children": [], "start_point": {"row": 134, "column": 13}, "end_point": {"row": 134, "column": 16}}, {"id": 506, "type": "init_declarator", "text": "token = get_time_token(cid, tid)", "parent": 502, "children": [507, 508, 509], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 49}}, {"id": 507, "type": "identifier", "text": "token", "parent": 506, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 22}}, {"id": 508, "type": "=", "text": "=", "parent": 506, "children": [], "start_point": {"row": 134, "column": 23}, "end_point": {"row": 134, "column": 24}}, {"id": 509, "type": "call_expression", "text": "get_time_token(cid, tid)", "parent": 506, "children": [510, 511], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 49}}, {"id": 510, "type": "identifier", "text": "get_time_token", "parent": 509, "children": [], "start_point": {"row": 134, "column": 25}, "end_point": {"row": 134, "column": 39}}, {"id": 511, "type": "argument_list", "text": "(cid, tid)", "parent": 509, "children": [512, 513], "start_point": {"row": 134, "column": 39}, "end_point": {"row": 134, "column": 49}}, {"id": 512, "type": "identifier", "text": "cid", "parent": 511, "children": [], "start_point": {"row": 134, "column": 40}, "end_point": {"row": 134, "column": 43}}, {"id": 513, "type": "identifier", "text": "tid", "parent": 511, "children": [], "start_point": {"row": 134, "column": 45}, "end_point": {"row": 134, "column": 48}}, {"id": 514, "type": "assignment_expression", "text": "error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)", "parent": 454, "children": [515, 516, 517], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 98}}, {"id": 515, "type": "identifier", "text": "error", "parent": 514, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 9}}, {"id": 516, "type": "=", "text": "=", "parent": 514, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 11}}, {"id": 517, "type": "call_expression", "text": "tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)", "parent": 514, "children": [518, 519], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 98}}, {"id": 518, "type": "identifier", "text": "tm_register_periodic_cb", "parent": 517, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 35}}, {"id": 519, "type": "argument_list", "text": "(&time_manager, ns, 0, token, signal_client, (uintptr_t) token)", "parent": 517, "children": [520, 522, 523, 524, 525, 526], "start_point": {"row": 135, "column": 35}, "end_point": {"row": 135, "column": 98}}, {"id": 520, "type": "pointer_expression", "text": "&time_manager", "parent": 519, "children": [521], "start_point": {"row": 135, "column": 36}, "end_point": {"row": 135, "column": 49}}, {"id": 521, "type": "identifier", "text": "time_manager", "parent": 520, "children": [], "start_point": {"row": 135, "column": 37}, "end_point": {"row": 135, "column": 49}}, {"id": 522, "type": "identifier", "text": "ns", "parent": 519, "children": [], "start_point": {"row": 135, "column": 51}, "end_point": {"row": 135, "column": 53}}, {"id": 523, "type": "number_literal", "text": "0", "parent": 519, "children": [], "start_point": {"row": 135, "column": 55}, "end_point": {"row": 135, "column": 56}}, {"id": 524, "type": "identifier", "text": "token", "parent": 519, "children": [], "start_point": {"row": 135, "column": 58}, "end_point": {"row": 135, "column": 63}}, {"id": 525, "type": "identifier", "text": "signal_client", "parent": 519, "children": [], "start_point": {"row": 135, "column": 65}, "end_point": {"row": 135, "column": 78}}, {"id": 526, "type": "cast_expression", "text": "(uintptr_t) token", "parent": 519, "children": [527, 529], "start_point": {"row": 135, "column": 80}, "end_point": {"row": 135, "column": 97}}, {"id": 527, "type": "type_descriptor", "text": "uintptr_t", "parent": 526, "children": [528], "start_point": {"row": 135, "column": 81}, "end_point": {"row": 135, "column": 90}}, {"id": 528, "type": "primitive_type", "text": "uintptr_t", "parent": 527, "children": [], "start_point": {"row": 135, "column": 81}, "end_point": {"row": 135, "column": 90}}, {"id": 529, "type": "identifier", "text": "token", "parent": 526, "children": [], "start_point": {"row": 135, "column": 92}, "end_point": {"row": 135, "column": 97}}, {"id": 530, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to set timeout\")", "parent": 454, "children": [531, 532], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 46}}, {"id": 531, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 530, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 14}}, {"id": 532, "type": "argument_list", "text": "(error, \"Failed to set timeout\")", "parent": 530, "children": [533, 534], "start_point": {"row": 136, "column": 14}, "end_point": {"row": 136, "column": 46}}, {"id": 533, "type": "identifier", "text": "error", "parent": 532, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 20}}, {"id": 534, "type": "string_literal", "text": "\"Failed to set timeout\"", "parent": 532, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 45}}, {"id": 535, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 454, "children": [536, 537, 538], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 32}}, {"id": 536, "type": "identifier", "text": "error", "parent": 535, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 9}}, {"id": 537, "type": "=", "text": "=", "parent": 535, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 11}}, {"id": 538, "type": "call_expression", "text": "time_server_unlock()", "parent": 535, "children": [539, 540], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 32}}, {"id": 539, "type": "identifier", "text": "time_server_unlock", "parent": 538, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 30}}, {"id": 540, "type": "argument_list", "text": "()", "parent": 538, "children": [], "start_point": {"row": 138, "column": 30}, "end_point": {"row": 138, "column": 32}}, {"id": 541, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 454, "children": [542, 543], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 53}}, {"id": 542, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 541, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 14}}, {"id": 543, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 541, "children": [544, 545], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 53}}, {"id": 544, "type": "identifier", "text": "error", "parent": 543, "children": [], "start_point": {"row": 139, "column": 15}, "end_point": {"row": 139, "column": 20}}, {"id": 545, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 543, "children": [], "start_point": {"row": 139, "column": 22}, "end_point": {"row": 139, "column": 52}}, {"id": 546, "type": "return_statement", "text": "return 0;", "parent": 454, "children": [547], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 13}}, {"id": 547, "type": "number_literal", "text": "0", "parent": 546, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 12}}, {"id": 548, "type": "function_definition", "text": "static int _stop(int cid, int tid) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));\n ZF_LOGF_IF(error, \"Failed to deregister callback\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}", "parent": null, "children": [549, 550], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 549, "type": "primitive_type", "text": "int", "parent": 548, "children": [], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 10}}, {"id": 550, "type": "function_declarator", "text": "_stop(int cid, int tid)", "parent": 548, "children": [551, 552], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 34}}, {"id": 551, "type": "identifier", "text": "_stop", "parent": 550, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 16}}, {"id": 552, "type": "parameter_list", "text": "(int cid, int tid)", "parent": 550, "children": [553, 556], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 34}}, {"id": 553, "type": "parameter_declaration", "text": "int cid", "parent": 552, "children": [554, 555], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 24}}, {"id": 554, "type": "primitive_type", "text": "int", "parent": 553, "children": [], "start_point": {"row": 143, "column": 17}, "end_point": {"row": 143, "column": 20}}, {"id": 555, "type": "identifier", "text": "cid", "parent": 553, "children": [], "start_point": {"row": 143, "column": 21}, "end_point": {"row": 143, "column": 24}}, {"id": 556, "type": "parameter_declaration", "text": "int tid", "parent": 552, "children": [557, 558], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 33}}, {"id": 557, "type": "primitive_type", "text": "int", "parent": 556, "children": [], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 29}}, {"id": 558, "type": "identifier", "text": "tid", "parent": 556, "children": [], "start_point": {"row": 143, "column": 30}, "end_point": {"row": 143, "column": 33}}, {"id": 559, "type": "if_statement", "text": "if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }", "parent": 548, "children": [560], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 147, "column": 5}}, {"id": 560, "type": "parenthesized_expression", "text": "(tid >= timers_per_client || tid < 0)", "parent": 559, "children": [561], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 44}}, {"id": 561, "type": "binary_expression", "text": "tid >= timers_per_client || tid < 0", "parent": 560, "children": [562, 566, 567], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 43}}, {"id": 562, "type": "binary_expression", "text": "tid >= timers_per_client", "parent": 561, "children": [563, 564, 565], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 32}}, {"id": 563, "type": "identifier", "text": "tid", "parent": 562, "children": [], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 11}}, {"id": 564, "type": ">=", "text": ">=", "parent": 562, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 14}}, {"id": 565, "type": "identifier", "text": "timers_per_client", "parent": 562, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 32}}, {"id": 566, "type": "||", "text": "||", "parent": 561, "children": [], "start_point": {"row": 144, "column": 33}, "end_point": {"row": 144, "column": 35}}, {"id": 567, "type": "binary_expression", "text": "tid < 0", "parent": 561, "children": [568, 569, 570], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 43}}, {"id": 568, "type": "identifier", "text": "tid", "parent": 567, "children": [], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 39}}, {"id": 569, "type": "<", "text": "<", "parent": 567, "children": [], "start_point": {"row": 144, "column": 40}, "end_point": {"row": 144, "column": 41}}, {"id": 570, "type": "number_literal", "text": "0", "parent": 567, "children": [], "start_point": {"row": 144, "column": 42}, "end_point": {"row": 144, "column": 43}}, {"id": 571, "type": "call_expression", "text": "ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 559, "children": [572, 573], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 71}}, {"id": 572, "type": "identifier", "text": "ZF_LOGE", "parent": 571, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 15}}, {"id": 573, "type": "argument_list", "text": "(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client)", "parent": 571, "children": [574, 576, 577], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 71}}, {"id": 574, "type": "string_literal", "text": "\"invalid tid, 0 >= %d >= %d\\n\"", "parent": 573, "children": [575], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 46}}, {"id": 575, "type": "escape_sequence", "text": "\\n", "parent": 574, "children": [], "start_point": {"row": 145, "column": 43}, "end_point": {"row": 145, "column": 45}}, {"id": 576, "type": "identifier", "text": "tid", "parent": 573, "children": [], "start_point": {"row": 145, "column": 48}, "end_point": {"row": 145, "column": 51}}, {"id": 577, "type": "identifier", "text": "timers_per_client", "parent": 573, "children": [], "start_point": {"row": 145, "column": 53}, "end_point": {"row": 145, "column": 70}}, {"id": 578, "type": "return_statement", "text": "return -1;", "parent": 559, "children": [579], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 18}}, {"id": 579, "type": "number_literal", "text": "-1", "parent": 578, "children": [], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 17}}, {"id": 580, "type": "declaration", "text": "int error = time_server_lock();", "parent": 548, "children": [581, 582], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 35}}, {"id": 581, "type": "primitive_type", "text": "int", "parent": 580, "children": [], "start_point": {"row": 148, "column": 4}, "end_point": {"row": 148, "column": 7}}, {"id": 582, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 580, "children": [583, 584, 585], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 34}}, {"id": 583, "type": "identifier", "text": "error", "parent": 582, "children": [], "start_point": {"row": 148, "column": 8}, "end_point": {"row": 148, "column": 13}}, {"id": 584, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 15}}, {"id": 585, "type": "call_expression", "text": "time_server_lock()", "parent": 582, "children": [586, 587], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 34}}, {"id": 586, "type": "identifier", "text": "time_server_lock", "parent": 585, "children": [], "start_point": {"row": 148, "column": 16}, "end_point": {"row": 148, "column": 32}}, {"id": 587, "type": "argument_list", "text": "()", "parent": 585, "children": [], "start_point": {"row": 148, "column": 32}, "end_point": {"row": 148, "column": 34}}, {"id": 588, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 548, "children": [589, 590], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 51}}, {"id": 589, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 588, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 14}}, {"id": 590, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 588, "children": [591, 592], "start_point": {"row": 149, "column": 14}, "end_point": {"row": 149, "column": 51}}, {"id": 591, "type": "identifier", "text": "error", "parent": 590, "children": [], "start_point": {"row": 149, "column": 15}, "end_point": {"row": 149, "column": 20}}, {"id": 592, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 590, "children": [], "start_point": {"row": 149, "column": 22}, "end_point": {"row": 149, "column": 50}}, {"id": 593, "type": "assignment_expression", "text": "error = tm_deregister_cb(&time_manager, get_time_token(cid, tid))", "parent": 548, "children": [594, 595, 596], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 69}}, {"id": 594, "type": "identifier", "text": "error", "parent": 593, "children": [], "start_point": {"row": 151, "column": 4}, "end_point": {"row": 151, "column": 9}}, {"id": 595, "type": "=", "text": "=", "parent": 593, "children": [], "start_point": {"row": 151, "column": 10}, "end_point": {"row": 151, "column": 11}}, {"id": 596, "type": "call_expression", "text": "tm_deregister_cb(&time_manager, get_time_token(cid, tid))", "parent": 593, "children": [597, 598], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 69}}, {"id": 597, "type": "identifier", "text": "tm_deregister_cb", "parent": 596, "children": [], "start_point": {"row": 151, "column": 12}, "end_point": {"row": 151, "column": 28}}, {"id": 598, "type": "argument_list", "text": "(&time_manager, get_time_token(cid, tid))", "parent": 596, "children": [599, 601], "start_point": {"row": 151, "column": 28}, "end_point": {"row": 151, "column": 69}}, {"id": 599, "type": "pointer_expression", "text": "&time_manager", "parent": 598, "children": [600], "start_point": {"row": 151, "column": 29}, "end_point": {"row": 151, "column": 42}}, {"id": 600, "type": "identifier", "text": "time_manager", "parent": 599, "children": [], "start_point": {"row": 151, "column": 30}, "end_point": {"row": 151, "column": 42}}, {"id": 601, "type": "call_expression", "text": "get_time_token(cid, tid)", "parent": 598, "children": [602, 603], "start_point": {"row": 151, "column": 44}, "end_point": {"row": 151, "column": 68}}, {"id": 602, "type": "identifier", "text": "get_time_token", "parent": 601, "children": [], "start_point": {"row": 151, "column": 44}, "end_point": {"row": 151, "column": 58}}, {"id": 603, "type": "argument_list", "text": "(cid, tid)", "parent": 601, "children": [604, 605], "start_point": {"row": 151, "column": 58}, "end_point": {"row": 151, "column": 68}}, {"id": 604, "type": "identifier", "text": "cid", "parent": 603, "children": [], "start_point": {"row": 151, "column": 59}, "end_point": {"row": 151, "column": 62}}, {"id": 605, "type": "identifier", "text": "tid", "parent": 603, "children": [], "start_point": {"row": 151, "column": 64}, "end_point": {"row": 151, "column": 67}}, {"id": 606, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to deregister callback\")", "parent": 548, "children": [607, 608], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 54}}, {"id": 607, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 606, "children": [], "start_point": {"row": 152, "column": 4}, "end_point": {"row": 152, "column": 14}}, {"id": 608, "type": "argument_list", "text": "(error, \"Failed to deregister callback\")", "parent": 606, "children": [609, 610], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 54}}, {"id": 609, "type": "identifier", "text": "error", "parent": 608, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 20}}, {"id": 610, "type": "string_literal", "text": "\"Failed to deregister callback\"", "parent": 608, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 53}}, {"id": 611, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 548, "children": [612, 613, 614], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 32}}, {"id": 612, "type": "identifier", "text": "error", "parent": 611, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 9}}, {"id": 613, "type": "=", "text": "=", "parent": 611, "children": [], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 154, "column": 11}}, {"id": 614, "type": "call_expression", "text": "time_server_unlock()", "parent": 611, "children": [615, 616], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 32}}, {"id": 615, "type": "identifier", "text": "time_server_unlock", "parent": 614, "children": [], "start_point": {"row": 154, "column": 12}, "end_point": {"row": 154, "column": 30}}, {"id": 616, "type": "argument_list", "text": "()", "parent": 614, "children": [], "start_point": {"row": 154, "column": 30}, "end_point": {"row": 154, "column": 32}}, {"id": 617, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 548, "children": [618, 619], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 53}}, {"id": 618, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 617, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 14}}, {"id": 619, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 617, "children": [620, 621], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 53}}, {"id": 620, "type": "identifier", "text": "error", "parent": 619, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 20}}, {"id": 621, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 619, "children": [], "start_point": {"row": 155, "column": 22}, "end_point": {"row": 155, "column": 52}}, {"id": 622, "type": "return_statement", "text": "return 0;", "parent": 548, "children": [623], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 13}}, {"id": 623, "type": "number_literal", "text": "0", "parent": 622, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 12}}, {"id": 624, "type": "function_definition", "text": "static unsigned int _completed(int cid) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n assert(client_state != NULL);\n unsigned int ret = client_state[cid];\n client_state[cid] = 0;\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n\n return ret;\n}", "parent": null, "children": [625, 628], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 625, "type": "sized_type_specifier", "text": "unsigned int", "parent": 624, "children": [626, 627], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 19}}, {"id": 626, "type": "unsigned", "text": "unsigned", "parent": 625, "children": [], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 15}}, {"id": 627, "type": "primitive_type", "text": "int", "parent": 625, "children": [], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 19}}, {"id": 628, "type": "function_declarator", "text": "_completed(int cid)", "parent": 624, "children": [629, 630], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 39}}, {"id": 629, "type": "identifier", "text": "_completed", "parent": 628, "children": [], "start_point": {"row": 159, "column": 20}, "end_point": {"row": 159, "column": 30}}, {"id": 630, "type": "parameter_list", "text": "(int cid)", "parent": 628, "children": [631], "start_point": {"row": 159, "column": 30}, "end_point": {"row": 159, "column": 39}}, {"id": 631, "type": "parameter_declaration", "text": "int cid", "parent": 630, "children": [632, 633], "start_point": {"row": 159, "column": 31}, "end_point": {"row": 159, "column": 38}}, {"id": 632, "type": "primitive_type", "text": "int", "parent": 631, "children": [], "start_point": {"row": 159, "column": 31}, "end_point": {"row": 159, "column": 34}}, {"id": 633, "type": "identifier", "text": "cid", "parent": 631, "children": [], "start_point": {"row": 159, "column": 35}, "end_point": {"row": 159, "column": 38}}, {"id": 634, "type": "declaration", "text": "int error = time_server_lock();", "parent": 624, "children": [635, 636], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 35}}, {"id": 635, "type": "primitive_type", "text": "int", "parent": 634, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 7}}, {"id": 636, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 634, "children": [637, 638, 639], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 34}}, {"id": 637, "type": "identifier", "text": "error", "parent": 636, "children": [], "start_point": {"row": 160, "column": 8}, "end_point": {"row": 160, "column": 13}}, {"id": 638, "type": "=", "text": "=", "parent": 636, "children": [], "start_point": {"row": 160, "column": 14}, "end_point": {"row": 160, "column": 15}}, {"id": 639, "type": "call_expression", "text": "time_server_lock()", "parent": 636, "children": [640, 641], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 34}}, {"id": 640, "type": "identifier", "text": "time_server_lock", "parent": 639, "children": [], "start_point": {"row": 160, "column": 16}, "end_point": {"row": 160, "column": 32}}, {"id": 641, "type": "argument_list", "text": "()", "parent": 639, "children": [], "start_point": {"row": 160, "column": 32}, "end_point": {"row": 160, "column": 34}}, {"id": 642, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock time server\")", "parent": 624, "children": [643, 644], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 51}}, {"id": 643, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 642, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 14}}, {"id": 644, "type": "argument_list", "text": "(error, \"Failed to lock time server\")", "parent": 642, "children": [645, 646], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 51}}, {"id": 645, "type": "identifier", "text": "error", "parent": 644, "children": [], "start_point": {"row": 161, "column": 15}, "end_point": {"row": 161, "column": 20}}, {"id": 646, "type": "string_literal", "text": "\"Failed to lock time server\"", "parent": 644, "children": [], "start_point": {"row": 161, "column": 22}, "end_point": {"row": 161, "column": 50}}, {"id": 647, "type": "call_expression", "text": "assert(client_state != NULL)", "parent": 624, "children": [648, 649], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 32}}, {"id": 648, "type": "identifier", "text": "assert", "parent": 647, "children": [], "start_point": {"row": 163, "column": 4}, "end_point": {"row": 163, "column": 10}}, {"id": 649, "type": "argument_list", "text": "(client_state != NULL)", "parent": 647, "children": [650], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 32}}, {"id": 650, "type": "binary_expression", "text": "client_state != NULL", "parent": 649, "children": [651, 652, 653], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 31}}, {"id": 651, "type": "identifier", "text": "client_state", "parent": 650, "children": [], "start_point": {"row": 163, "column": 11}, "end_point": {"row": 163, "column": 23}}, {"id": 652, "type": "!=", "text": "!=", "parent": 650, "children": [], "start_point": {"row": 163, "column": 24}, "end_point": {"row": 163, "column": 26}}, {"id": 653, "type": "null", "text": "NULL", "parent": 650, "children": [654], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 31}}, {"id": 654, "type": "NULL", "text": "NULL", "parent": 653, "children": [], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 31}}, {"id": 655, "type": "declaration", "text": "unsigned int ret = client_state[cid];", "parent": 624, "children": [656, 659], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 41}}, {"id": 656, "type": "sized_type_specifier", "text": "unsigned int", "parent": 655, "children": [657, 658], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 16}}, {"id": 657, "type": "unsigned", "text": "unsigned", "parent": 656, "children": [], "start_point": {"row": 164, "column": 4}, "end_point": {"row": 164, "column": 12}}, {"id": 658, "type": "primitive_type", "text": "int", "parent": 656, "children": [], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 16}}, {"id": 659, "type": "init_declarator", "text": "ret = client_state[cid]", "parent": 655, "children": [660, 661, 662], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 40}}, {"id": 660, "type": "identifier", "text": "ret", "parent": 659, "children": [], "start_point": {"row": 164, "column": 17}, "end_point": {"row": 164, "column": 20}}, {"id": 661, "type": "=", "text": "=", "parent": 659, "children": [], "start_point": {"row": 164, "column": 21}, "end_point": {"row": 164, "column": 22}}, {"id": 662, "type": "subscript_expression", "text": "client_state[cid]", "parent": 659, "children": [663, 664], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 40}}, {"id": 663, "type": "identifier", "text": "client_state", "parent": 662, "children": [], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 35}}, {"id": 664, "type": "identifier", "text": "cid", "parent": 662, "children": [], "start_point": {"row": 164, "column": 36}, "end_point": {"row": 164, "column": 39}}, {"id": 665, "type": "assignment_expression", "text": "client_state[cid] = 0", "parent": 624, "children": [666, 669, 670], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 25}}, {"id": 666, "type": "subscript_expression", "text": "client_state[cid]", "parent": 665, "children": [667, 668], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 21}}, {"id": 667, "type": "identifier", "text": "client_state", "parent": 666, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 16}}, {"id": 668, "type": "identifier", "text": "cid", "parent": 666, "children": [], "start_point": {"row": 165, "column": 17}, "end_point": {"row": 165, "column": 20}}, {"id": 669, "type": "=", "text": "=", "parent": 665, "children": [], "start_point": {"row": 165, "column": 22}, "end_point": {"row": 165, "column": 23}}, {"id": 670, "type": "number_literal", "text": "0", "parent": 665, "children": [], "start_point": {"row": 165, "column": 24}, "end_point": {"row": 165, "column": 25}}, {"id": 671, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 624, "children": [672, 673, 674], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 32}}, {"id": 672, "type": "identifier", "text": "error", "parent": 671, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 9}}, {"id": 673, "type": "=", "text": "=", "parent": 671, "children": [], "start_point": {"row": 167, "column": 10}, "end_point": {"row": 167, "column": 11}}, {"id": 674, "type": "call_expression", "text": "time_server_unlock()", "parent": 671, "children": [675, 676], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 32}}, {"id": 675, "type": "identifier", "text": "time_server_unlock", "parent": 674, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 30}}, {"id": 676, "type": "argument_list", "text": "()", "parent": 674, "children": [], "start_point": {"row": 167, "column": 30}, "end_point": {"row": 167, "column": 32}}, {"id": 677, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock time server\")", "parent": 624, "children": [678, 679], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 53}}, {"id": 678, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 677, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 14}}, {"id": 679, "type": "argument_list", "text": "(error, \"Failed to unlock time server\")", "parent": 677, "children": [680, 681], "start_point": {"row": 168, "column": 14}, "end_point": {"row": 168, "column": 53}}, {"id": 680, "type": "identifier", "text": "error", "parent": 679, "children": [], "start_point": {"row": 168, "column": 15}, "end_point": {"row": 168, "column": 20}}, {"id": 681, "type": "string_literal", "text": "\"Failed to unlock time server\"", "parent": 679, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 52}}, {"id": 682, "type": "return_statement", "text": "return ret;", "parent": 624, "children": [683], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 15}}, {"id": 683, "type": "identifier", "text": "ret", "parent": 682, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 14}}, {"id": 684, "type": "function_definition", "text": "static uint64_t _time(int cid) {\n return current_time_ns();\n}", "parent": null, "children": [685, 686], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 175, "column": 1}}, {"id": 685, "type": "primitive_type", "text": "uint64_t", "parent": 684, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 15}}, {"id": 686, "type": "function_declarator", "text": "_time(int cid)", "parent": 684, "children": [687, 688], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 30}}, {"id": 687, "type": "identifier", "text": "_time", "parent": 686, "children": [], "start_point": {"row": 173, "column": 16}, "end_point": {"row": 173, "column": 21}}, {"id": 688, "type": "parameter_list", "text": "(int cid)", "parent": 686, "children": [689], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 30}}, {"id": 689, "type": "parameter_declaration", "text": "int cid", "parent": 688, "children": [690, 691], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 29}}, {"id": 690, "type": "primitive_type", "text": "int", "parent": 689, "children": [], "start_point": {"row": 173, "column": 22}, "end_point": {"row": 173, "column": 25}}, {"id": 691, "type": "identifier", "text": "cid", "parent": 689, "children": [], "start_point": {"row": 173, "column": 26}, "end_point": {"row": 173, "column": 29}}, {"id": 692, "type": "return_statement", "text": "return current_time_ns();", "parent": 684, "children": [693], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 29}}, {"id": 693, "type": "call_expression", "text": "current_time_ns()", "parent": 692, "children": [694, 695], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 28}}, {"id": 694, "type": "identifier", "text": "current_time_ns", "parent": 693, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 26}}, {"id": 695, "type": "argument_list", "text": "()", "parent": 693, "children": [], "start_point": {"row": 174, "column": 26}, "end_point": {"row": 174, "column": 28}}, {"id": 696, "type": "function_definition", "text": "int the_timer_oneshot_relative(int id, uint64_t ns) {\n return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);\n}", "parent": null, "children": [697, 698], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 181, "column": 1}}, {"id": 697, "type": "primitive_type", "text": "int", "parent": 696, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 3}}, {"id": 698, "type": "function_declarator", "text": "the_timer_oneshot_relative(int id, uint64_t ns)", "parent": 696, "children": [699, 700], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 51}}, {"id": 699, "type": "identifier", "text": "the_timer_oneshot_relative", "parent": 698, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 30}}, {"id": 700, "type": "parameter_list", "text": "(int id, uint64_t ns)", "parent": 698, "children": [701, 704], "start_point": {"row": 179, "column": 30}, "end_point": {"row": 179, "column": 51}}, {"id": 701, "type": "parameter_declaration", "text": "int id", "parent": 700, "children": [702, 703], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 37}}, {"id": 702, "type": "primitive_type", "text": "int", "parent": 701, "children": [], "start_point": {"row": 179, "column": 31}, "end_point": {"row": 179, "column": 34}}, {"id": 703, "type": "identifier", "text": "id", "parent": 701, "children": [], "start_point": {"row": 179, "column": 35}, "end_point": {"row": 179, "column": 37}}, {"id": 704, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 700, "children": [705, 706], "start_point": {"row": 179, "column": 39}, "end_point": {"row": 179, "column": 50}}, {"id": 705, "type": "primitive_type", "text": "uint64_t", "parent": 704, "children": [], "start_point": {"row": 179, "column": 39}, "end_point": {"row": 179, "column": 47}}, {"id": 706, "type": "identifier", "text": "ns", "parent": 704, "children": [], "start_point": {"row": 179, "column": 48}, "end_point": {"row": 179, "column": 50}}, {"id": 707, "type": "return_statement", "text": "return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);", "parent": 696, "children": [708], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 68}}, {"id": 708, "type": "call_expression", "text": "_oneshot_relative(the_timer_get_sender_id() - 1, id, ns)", "parent": 707, "children": [709, 710], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 67}}, {"id": 709, "type": "identifier", "text": "_oneshot_relative", "parent": 708, "children": [], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 28}}, {"id": 710, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1, id, ns)", "parent": 708, "children": [711, 717, 718], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 67}}, {"id": 711, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 710, "children": [712, 715, 716], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 58}}, {"id": 712, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 711, "children": [713, 714], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 54}}, {"id": 713, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 712, "children": [], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 52}}, {"id": 714, "type": "argument_list", "text": "()", "parent": 712, "children": [], "start_point": {"row": 180, "column": 52}, "end_point": {"row": 180, "column": 54}}, {"id": 715, "type": "-", "text": "-", "parent": 711, "children": [], "start_point": {"row": 180, "column": 55}, "end_point": {"row": 180, "column": 56}}, {"id": 716, "type": "number_literal", "text": "1", "parent": 711, "children": [], "start_point": {"row": 180, "column": 57}, "end_point": {"row": 180, "column": 58}}, {"id": 717, "type": "identifier", "text": "id", "parent": 710, "children": [], "start_point": {"row": 180, "column": 60}, "end_point": {"row": 180, "column": 62}}, {"id": 718, "type": "identifier", "text": "ns", "parent": 710, "children": [], "start_point": {"row": 180, "column": 64}, "end_point": {"row": 180, "column": 66}}, {"id": 719, "type": "function_definition", "text": "int the_timer_oneshot_absolute(int id, uint64_t ns) {\n return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);\n}", "parent": null, "children": [720, 721], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 185, "column": 1}}, {"id": 720, "type": "primitive_type", "text": "int", "parent": 719, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 3}}, {"id": 721, "type": "function_declarator", "text": "the_timer_oneshot_absolute(int id, uint64_t ns)", "parent": 719, "children": [722, 723], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 51}}, {"id": 722, "type": "identifier", "text": "the_timer_oneshot_absolute", "parent": 721, "children": [], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 30}}, {"id": 723, "type": "parameter_list", "text": "(int id, uint64_t ns)", "parent": 721, "children": [724, 727], "start_point": {"row": 183, "column": 30}, "end_point": {"row": 183, "column": 51}}, {"id": 724, "type": "parameter_declaration", "text": "int id", "parent": 723, "children": [725, 726], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 37}}, {"id": 725, "type": "primitive_type", "text": "int", "parent": 724, "children": [], "start_point": {"row": 183, "column": 31}, "end_point": {"row": 183, "column": 34}}, {"id": 726, "type": "identifier", "text": "id", "parent": 724, "children": [], "start_point": {"row": 183, "column": 35}, "end_point": {"row": 183, "column": 37}}, {"id": 727, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 723, "children": [728, 729], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 50}}, {"id": 728, "type": "primitive_type", "text": "uint64_t", "parent": 727, "children": [], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 47}}, {"id": 729, "type": "identifier", "text": "ns", "parent": 727, "children": [], "start_point": {"row": 183, "column": 48}, "end_point": {"row": 183, "column": 50}}, {"id": 730, "type": "return_statement", "text": "return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);", "parent": 719, "children": [731], "start_point": {"row": 184, "column": 4}, "end_point": {"row": 184, "column": 68}}, {"id": 731, "type": "call_expression", "text": "_oneshot_absolute(the_timer_get_sender_id() - 1, id, ns)", "parent": 730, "children": [732, 733], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 67}}, {"id": 732, "type": "identifier", "text": "_oneshot_absolute", "parent": 731, "children": [], "start_point": {"row": 184, "column": 11}, "end_point": {"row": 184, "column": 28}}, {"id": 733, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1, id, ns)", "parent": 731, "children": [734, 740, 741], "start_point": {"row": 184, "column": 28}, "end_point": {"row": 184, "column": 67}}, {"id": 734, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 733, "children": [735, 738, 739], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 58}}, {"id": 735, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 734, "children": [736, 737], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 54}}, {"id": 736, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 735, "children": [], "start_point": {"row": 184, "column": 29}, "end_point": {"row": 184, "column": 52}}, {"id": 737, "type": "argument_list", "text": "()", "parent": 735, "children": [], "start_point": {"row": 184, "column": 52}, "end_point": {"row": 184, "column": 54}}, {"id": 738, "type": "-", "text": "-", "parent": 734, "children": [], "start_point": {"row": 184, "column": 55}, "end_point": {"row": 184, "column": 56}}, {"id": 739, "type": "number_literal", "text": "1", "parent": 734, "children": [], "start_point": {"row": 184, "column": 57}, "end_point": {"row": 184, "column": 58}}, {"id": 740, "type": "identifier", "text": "id", "parent": 733, "children": [], "start_point": {"row": 184, "column": 60}, "end_point": {"row": 184, "column": 62}}, {"id": 741, "type": "identifier", "text": "ns", "parent": 733, "children": [], "start_point": {"row": 184, "column": 64}, "end_point": {"row": 184, "column": 66}}, {"id": 742, "type": "function_definition", "text": "int the_timer_periodic(int id, uint64_t ns) {\n return _periodic(the_timer_get_sender_id() - 1, id, ns);\n}", "parent": null, "children": [743, 744], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 189, "column": 1}}, {"id": 743, "type": "primitive_type", "text": "int", "parent": 742, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 3}}, {"id": 744, "type": "function_declarator", "text": "the_timer_periodic(int id, uint64_t ns)", "parent": 742, "children": [745, 746], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 43}}, {"id": 745, "type": "identifier", "text": "the_timer_periodic", "parent": 744, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 22}}, {"id": 746, "type": "parameter_list", "text": "(int id, uint64_t ns)", "parent": 744, "children": [747, 750], "start_point": {"row": 187, "column": 22}, "end_point": {"row": 187, "column": 43}}, {"id": 747, "type": "parameter_declaration", "text": "int id", "parent": 746, "children": [748, 749], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 29}}, {"id": 748, "type": "primitive_type", "text": "int", "parent": 747, "children": [], "start_point": {"row": 187, "column": 23}, "end_point": {"row": 187, "column": 26}}, {"id": 749, "type": "identifier", "text": "id", "parent": 747, "children": [], "start_point": {"row": 187, "column": 27}, "end_point": {"row": 187, "column": 29}}, {"id": 750, "type": "parameter_declaration", "text": "uint64_t ns", "parent": 746, "children": [751, 752], "start_point": {"row": 187, "column": 31}, "end_point": {"row": 187, "column": 42}}, {"id": 751, "type": "primitive_type", "text": "uint64_t", "parent": 750, "children": [], "start_point": {"row": 187, "column": 31}, "end_point": {"row": 187, "column": 39}}, {"id": 752, "type": "identifier", "text": "ns", "parent": 750, "children": [], "start_point": {"row": 187, "column": 40}, "end_point": {"row": 187, "column": 42}}, {"id": 753, "type": "return_statement", "text": "return _periodic(the_timer_get_sender_id() - 1, id, ns);", "parent": 742, "children": [754], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 60}}, {"id": 754, "type": "call_expression", "text": "_periodic(the_timer_get_sender_id() - 1, id, ns)", "parent": 753, "children": [755, 756], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 59}}, {"id": 755, "type": "identifier", "text": "_periodic", "parent": 754, "children": [], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 20}}, {"id": 756, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1, id, ns)", "parent": 754, "children": [757, 763, 764], "start_point": {"row": 188, "column": 20}, "end_point": {"row": 188, "column": 59}}, {"id": 757, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 756, "children": [758, 761, 762], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 50}}, {"id": 758, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 757, "children": [759, 760], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 46}}, {"id": 759, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 758, "children": [], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 44}}, {"id": 760, "type": "argument_list", "text": "()", "parent": 758, "children": [], "start_point": {"row": 188, "column": 44}, "end_point": {"row": 188, "column": 46}}, {"id": 761, "type": "-", "text": "-", "parent": 757, "children": [], "start_point": {"row": 188, "column": 47}, "end_point": {"row": 188, "column": 48}}, {"id": 762, "type": "number_literal", "text": "1", "parent": 757, "children": [], "start_point": {"row": 188, "column": 49}, "end_point": {"row": 188, "column": 50}}, {"id": 763, "type": "identifier", "text": "id", "parent": 756, "children": [], "start_point": {"row": 188, "column": 52}, "end_point": {"row": 188, "column": 54}}, {"id": 764, "type": "identifier", "text": "ns", "parent": 756, "children": [], "start_point": {"row": 188, "column": 56}, "end_point": {"row": 188, "column": 58}}, {"id": 765, "type": "function_definition", "text": "int the_timer_stop(int id) {\n return _stop(the_timer_get_sender_id() - 1, id);\n}", "parent": null, "children": [766, 767], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 193, "column": 1}}, {"id": 766, "type": "primitive_type", "text": "int", "parent": 765, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 3}}, {"id": 767, "type": "function_declarator", "text": "the_timer_stop(int id)", "parent": 765, "children": [768, 769], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 26}}, {"id": 768, "type": "identifier", "text": "the_timer_stop", "parent": 767, "children": [], "start_point": {"row": 191, "column": 4}, "end_point": {"row": 191, "column": 18}}, {"id": 769, "type": "parameter_list", "text": "(int id)", "parent": 767, "children": [770], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 26}}, {"id": 770, "type": "parameter_declaration", "text": "int id", "parent": 769, "children": [771, 772], "start_point": {"row": 191, "column": 19}, "end_point": {"row": 191, "column": 25}}, {"id": 771, "type": "primitive_type", "text": "int", "parent": 770, "children": [], "start_point": {"row": 191, "column": 19}, "end_point": {"row": 191, "column": 22}}, {"id": 772, "type": "identifier", "text": "id", "parent": 770, "children": [], "start_point": {"row": 191, "column": 23}, "end_point": {"row": 191, "column": 25}}, {"id": 773, "type": "return_statement", "text": "return _stop(the_timer_get_sender_id() - 1, id);", "parent": 765, "children": [774], "start_point": {"row": 192, "column": 4}, "end_point": {"row": 192, "column": 52}}, {"id": 774, "type": "call_expression", "text": "_stop(the_timer_get_sender_id() - 1, id)", "parent": 773, "children": [775, 776], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 51}}, {"id": 775, "type": "identifier", "text": "_stop", "parent": 774, "children": [], "start_point": {"row": 192, "column": 11}, "end_point": {"row": 192, "column": 16}}, {"id": 776, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1, id)", "parent": 774, "children": [777, 783], "start_point": {"row": 192, "column": 16}, "end_point": {"row": 192, "column": 51}}, {"id": 777, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 776, "children": [778, 781, 782], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 46}}, {"id": 778, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 777, "children": [779, 780], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 42}}, {"id": 779, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 778, "children": [], "start_point": {"row": 192, "column": 17}, "end_point": {"row": 192, "column": 40}}, {"id": 780, "type": "argument_list", "text": "()", "parent": 778, "children": [], "start_point": {"row": 192, "column": 40}, "end_point": {"row": 192, "column": 42}}, {"id": 781, "type": "-", "text": "-", "parent": 777, "children": [], "start_point": {"row": 192, "column": 43}, "end_point": {"row": 192, "column": 44}}, {"id": 782, "type": "number_literal", "text": "1", "parent": 777, "children": [], "start_point": {"row": 192, "column": 45}, "end_point": {"row": 192, "column": 46}}, {"id": 783, "type": "identifier", "text": "id", "parent": 776, "children": [], "start_point": {"row": 192, "column": 48}, "end_point": {"row": 192, "column": 50}}, {"id": 784, "type": "function_definition", "text": "unsigned int the_timer_completed() {\n return _completed(the_timer_get_sender_id() - 1);\n}", "parent": null, "children": [785, 788], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 197, "column": 1}}, {"id": 785, "type": "sized_type_specifier", "text": "unsigned int", "parent": 784, "children": [786, 787], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 12}}, {"id": 786, "type": "unsigned", "text": "unsigned", "parent": 785, "children": [], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 8}}, {"id": 787, "type": "primitive_type", "text": "int", "parent": 785, "children": [], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 12}}, {"id": 788, "type": "function_declarator", "text": "the_timer_completed()", "parent": 784, "children": [789, 790], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 34}}, {"id": 789, "type": "identifier", "text": "the_timer_completed", "parent": 788, "children": [], "start_point": {"row": 195, "column": 13}, "end_point": {"row": 195, "column": 32}}, {"id": 790, "type": "parameter_list", "text": "()", "parent": 788, "children": [], "start_point": {"row": 195, "column": 32}, "end_point": {"row": 195, "column": 34}}, {"id": 791, "type": "return_statement", "text": "return _completed(the_timer_get_sender_id() - 1);", "parent": 784, "children": [792], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 53}}, {"id": 792, "type": "call_expression", "text": "_completed(the_timer_get_sender_id() - 1)", "parent": 791, "children": [793, 794], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 52}}, {"id": 793, "type": "identifier", "text": "_completed", "parent": 792, "children": [], "start_point": {"row": 196, "column": 11}, "end_point": {"row": 196, "column": 21}}, {"id": 794, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1)", "parent": 792, "children": [795], "start_point": {"row": 196, "column": 21}, "end_point": {"row": 196, "column": 52}}, {"id": 795, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 794, "children": [796, 799, 800], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 51}}, {"id": 796, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 795, "children": [797, 798], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 47}}, {"id": 797, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 796, "children": [], "start_point": {"row": 196, "column": 22}, "end_point": {"row": 196, "column": 45}}, {"id": 798, "type": "argument_list", "text": "()", "parent": 796, "children": [], "start_point": {"row": 196, "column": 45}, "end_point": {"row": 196, "column": 47}}, {"id": 799, "type": "-", "text": "-", "parent": 795, "children": [], "start_point": {"row": 196, "column": 48}, "end_point": {"row": 196, "column": 49}}, {"id": 800, "type": "number_literal", "text": "1", "parent": 795, "children": [], "start_point": {"row": 196, "column": 50}, "end_point": {"row": 196, "column": 51}}, {"id": 801, "type": "function_definition", "text": "uint64_t the_timer_time() {\n return _time(the_timer_get_sender_id() - 1);\n}", "parent": null, "children": [802, 803], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 802, "type": "primitive_type", "text": "uint64_t", "parent": 801, "children": [], "start_point": {"row": 199, "column": 0}, "end_point": {"row": 199, "column": 8}}, {"id": 803, "type": "function_declarator", "text": "the_timer_time()", "parent": 801, "children": [804, 805], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 25}}, {"id": 804, "type": "identifier", "text": "the_timer_time", "parent": 803, "children": [], "start_point": {"row": 199, "column": 9}, "end_point": {"row": 199, "column": 23}}, {"id": 805, "type": "parameter_list", "text": "()", "parent": 803, "children": [], "start_point": {"row": 199, "column": 23}, "end_point": {"row": 199, "column": 25}}, {"id": 806, "type": "return_statement", "text": "return _time(the_timer_get_sender_id() - 1);", "parent": 801, "children": [807], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 48}}, {"id": 807, "type": "call_expression", "text": "_time(the_timer_get_sender_id() - 1)", "parent": 806, "children": [808, 809], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 47}}, {"id": 808, "type": "identifier", "text": "_time", "parent": 807, "children": [], "start_point": {"row": 200, "column": 11}, "end_point": {"row": 200, "column": 16}}, {"id": 809, "type": "argument_list", "text": "(the_timer_get_sender_id() - 1)", "parent": 807, "children": [810], "start_point": {"row": 200, "column": 16}, "end_point": {"row": 200, "column": 47}}, {"id": 810, "type": "binary_expression", "text": "the_timer_get_sender_id() - 1", "parent": 809, "children": [811, 814, 815], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 46}}, {"id": 811, "type": "call_expression", "text": "the_timer_get_sender_id()", "parent": 810, "children": [812, 813], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 42}}, {"id": 812, "type": "identifier", "text": "the_timer_get_sender_id", "parent": 811, "children": [], "start_point": {"row": 200, "column": 17}, "end_point": {"row": 200, "column": 40}}, {"id": 813, "type": "argument_list", "text": "()", "parent": 811, "children": [], "start_point": {"row": 200, "column": 40}, "end_point": {"row": 200, "column": 42}}, {"id": 814, "type": "-", "text": "-", "parent": 810, "children": [], "start_point": {"row": 200, "column": 43}, "end_point": {"row": 200, "column": 44}}, {"id": 815, "type": "number_literal", "text": "1", "parent": 810, "children": [], "start_point": {"row": 200, "column": 45}, "end_point": {"row": 200, "column": 46}}, {"id": 816, "type": "function_definition", "text": "void post_init() {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock timer server\");\n\n ps_io_ops_t ops;\n error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);\n ZF_LOGF_IF(error, \"Failed to get malloc ops\");\n\n error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);\n ZF_LOGF_IF(error, \"Failed to allocate client state\")\n\n plat_post_init(&ltimer, ops);\n\n int num_timers = timers_per_client * the_timer_largest_badge();\n tm_init(&time_manager, &ltimer, &ops, num_timers);\n for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, \"Failed to alloc id at %u\\n\", i);\n }\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock timer server\");\n\n set_putchar(putchar_putchar);\n}", "parent": null, "children": [817, 818], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 227, "column": 1}}, {"id": 817, "type": "primitive_type", "text": "void", "parent": 816, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 4}}, {"id": 818, "type": "function_declarator", "text": "post_init()", "parent": 816, "children": [819, 820], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 16}}, {"id": 819, "type": "identifier", "text": "post_init", "parent": 818, "children": [], "start_point": {"row": 203, "column": 5}, "end_point": {"row": 203, "column": 14}}, {"id": 820, "type": "parameter_list", "text": "()", "parent": 818, "children": [], "start_point": {"row": 203, "column": 14}, "end_point": {"row": 203, "column": 16}}, {"id": 821, "type": "declaration", "text": "int error = time_server_lock();", "parent": 816, "children": [822, 823], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 35}}, {"id": 822, "type": "primitive_type", "text": "int", "parent": 821, "children": [], "start_point": {"row": 204, "column": 4}, "end_point": {"row": 204, "column": 7}}, {"id": 823, "type": "init_declarator", "text": "error = time_server_lock()", "parent": 821, "children": [824, 825, 826], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 34}}, {"id": 824, "type": "identifier", "text": "error", "parent": 823, "children": [], "start_point": {"row": 204, "column": 8}, "end_point": {"row": 204, "column": 13}}, {"id": 825, "type": "=", "text": "=", "parent": 823, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 15}}, {"id": 826, "type": "call_expression", "text": "time_server_lock()", "parent": 823, "children": [827, 828], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 34}}, {"id": 827, "type": "identifier", "text": "time_server_lock", "parent": 826, "children": [], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 32}}, {"id": 828, "type": "argument_list", "text": "()", "parent": 826, "children": [], "start_point": {"row": 204, "column": 32}, "end_point": {"row": 204, "column": 34}}, {"id": 829, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to lock timer server\")", "parent": 816, "children": [830, 831], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 52}}, {"id": 830, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 829, "children": [], "start_point": {"row": 205, "column": 4}, "end_point": {"row": 205, "column": 14}}, {"id": 831, "type": "argument_list", "text": "(error, \"Failed to lock timer server\")", "parent": 829, "children": [832, 833], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 52}}, {"id": 832, "type": "identifier", "text": "error", "parent": 831, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 20}}, {"id": 833, "type": "string_literal", "text": "\"Failed to lock timer server\"", "parent": 831, "children": [], "start_point": {"row": 205, "column": 22}, "end_point": {"row": 205, "column": 51}}, {"id": 834, "type": "declaration", "text": "ps_io_ops_t ops;", "parent": 816, "children": [835, 836], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 20}}, {"id": 835, "type": "type_identifier", "text": "ps_io_ops_t", "parent": 834, "children": [], "start_point": {"row": 207, "column": 4}, "end_point": {"row": 207, "column": 15}}, {"id": 836, "type": "identifier", "text": "ops", "parent": 834, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 19}}, {"id": 837, "type": "assignment_expression", "text": "error = ps_new_stdlib_malloc_ops(&ops.malloc_ops)", "parent": 816, "children": [838, 839, 840], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 53}}, {"id": 838, "type": "identifier", "text": "error", "parent": 837, "children": [], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 9}}, {"id": 839, "type": "=", "text": "=", "parent": 837, "children": [], "start_point": {"row": 208, "column": 10}, "end_point": {"row": 208, "column": 11}}, {"id": 840, "type": "call_expression", "text": "ps_new_stdlib_malloc_ops(&ops.malloc_ops)", "parent": 837, "children": [841, 842], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 53}}, {"id": 841, "type": "identifier", "text": "ps_new_stdlib_malloc_ops", "parent": 840, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 36}}, {"id": 842, "type": "argument_list", "text": "(&ops.malloc_ops)", "parent": 840, "children": [843], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 53}}, {"id": 843, "type": "pointer_expression", "text": "&ops.malloc_ops", "parent": 842, "children": [844], "start_point": {"row": 208, "column": 37}, "end_point": {"row": 208, "column": 52}}, {"id": 844, "type": "field_expression", "text": "ops.malloc_ops", "parent": 843, "children": [845, 846], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 52}}, {"id": 845, "type": "identifier", "text": "ops", "parent": 844, "children": [], "start_point": {"row": 208, "column": 38}, "end_point": {"row": 208, "column": 41}}, {"id": 846, "type": "field_identifier", "text": "malloc_ops", "parent": 844, "children": [], "start_point": {"row": 208, "column": 42}, "end_point": {"row": 208, "column": 52}}, {"id": 847, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to get malloc ops\")", "parent": 816, "children": [848, 849], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 49}}, {"id": 848, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 847, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 14}}, {"id": 849, "type": "argument_list", "text": "(error, \"Failed to get malloc ops\")", "parent": 847, "children": [850, 851], "start_point": {"row": 209, "column": 14}, "end_point": {"row": 209, "column": 49}}, {"id": 850, "type": "identifier", "text": "error", "parent": 849, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 20}}, {"id": 851, "type": "string_literal", "text": "\"Failed to get malloc ops\"", "parent": 849, "children": [], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 48}}, {"id": 852, "type": "assignment_expression", "text": "error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)", "parent": 816, "children": [853, 854, 855], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 113}}, {"id": 853, "type": "identifier", "text": "error", "parent": 852, "children": [], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 9}}, {"id": 854, "type": "=", "text": "=", "parent": 852, "children": [], "start_point": {"row": 211, "column": 10}, "end_point": {"row": 211, "column": 11}}, {"id": 855, "type": "call_expression", "text": "ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)", "parent": 852, "children": [856, 857], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 113}}, {"id": 856, "type": "identifier", "text": "ps_calloc", "parent": 855, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 21}}, {"id": 857, "type": "argument_list", "text": "(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state)", "parent": 855, "children": [858, 862, 865, 870], "start_point": {"row": 211, "column": 21}, "end_point": {"row": 211, "column": 113}}, {"id": 858, "type": "pointer_expression", "text": "&ops.malloc_ops", "parent": 857, "children": [859], "start_point": {"row": 211, "column": 22}, "end_point": {"row": 211, "column": 37}}, {"id": 859, "type": "field_expression", "text": "ops.malloc_ops", "parent": 858, "children": [860, 861], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 37}}, {"id": 860, "type": "identifier", "text": "ops", "parent": 859, "children": [], "start_point": {"row": 211, "column": 23}, "end_point": {"row": 211, "column": 26}}, {"id": 861, "type": "field_identifier", "text": "malloc_ops", "parent": 859, "children": [], "start_point": {"row": 211, "column": 27}, "end_point": {"row": 211, "column": 37}}, {"id": 862, "type": "call_expression", "text": "the_timer_largest_badge()", "parent": 857, "children": [863, 864], "start_point": {"row": 211, "column": 39}, "end_point": {"row": 211, "column": 64}}, {"id": 863, "type": "identifier", "text": "the_timer_largest_badge", "parent": 862, "children": [], "start_point": {"row": 211, "column": 39}, "end_point": {"row": 211, "column": 62}}, {"id": 864, "type": "argument_list", "text": "()", "parent": 862, "children": [], "start_point": {"row": 211, "column": 62}, "end_point": {"row": 211, "column": 64}}, {"id": 865, "type": "sizeof_expression", "text": "sizeof(*client_state)", "parent": 857, "children": [866], "start_point": {"row": 211, "column": 66}, "end_point": {"row": 211, "column": 87}}, {"id": 866, "type": "parenthesized_expression", "text": "(*client_state)", "parent": 865, "children": [867], "start_point": {"row": 211, "column": 72}, "end_point": {"row": 211, "column": 87}}, {"id": 867, "type": "pointer_expression", "text": "*client_state", "parent": 866, "children": [868, 869], "start_point": {"row": 211, "column": 73}, "end_point": {"row": 211, "column": 86}}, {"id": 868, "type": "*", "text": "*", "parent": 867, "children": [], "start_point": {"row": 211, "column": 73}, "end_point": {"row": 211, "column": 74}}, {"id": 869, "type": "identifier", "text": "client_state", "parent": 867, "children": [], "start_point": {"row": 211, "column": 74}, "end_point": {"row": 211, "column": 86}}, {"id": 870, "type": "cast_expression", "text": "(void **) &client_state", "parent": 857, "children": [871, 877], "start_point": {"row": 211, "column": 89}, "end_point": {"row": 211, "column": 112}}, {"id": 871, "type": "type_descriptor", "text": "void **", "parent": 870, "children": [872, 873], "start_point": {"row": 211, "column": 90}, "end_point": {"row": 211, "column": 97}}, {"id": 872, "type": "primitive_type", "text": "void", "parent": 871, "children": [], "start_point": {"row": 211, "column": 90}, "end_point": {"row": 211, "column": 94}}, {"id": 873, "type": "abstract_pointer_declarator", "text": "**", "parent": 871, "children": [874, 875], "start_point": {"row": 211, "column": 95}, "end_point": {"row": 211, "column": 97}}, {"id": 874, "type": "*", "text": "*", "parent": 873, "children": [], "start_point": {"row": 211, "column": 95}, "end_point": {"row": 211, "column": 96}}, {"id": 875, "type": "abstract_pointer_declarator", "text": "*", "parent": 873, "children": [876], "start_point": {"row": 211, "column": 96}, "end_point": {"row": 211, "column": 97}}, {"id": 876, "type": "*", "text": "*", "parent": 875, "children": [], "start_point": {"row": 211, "column": 96}, "end_point": {"row": 211, "column": 97}}, {"id": 877, "type": "pointer_expression", "text": "&client_state", "parent": 870, "children": [878], "start_point": {"row": 211, "column": 99}, "end_point": {"row": 211, "column": 112}}, {"id": 878, "type": "identifier", "text": "client_state", "parent": 877, "children": [], "start_point": {"row": 211, "column": 100}, "end_point": {"row": 211, "column": 112}}, {"id": 879, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to allocate client state\")", "parent": 816, "children": [880, 881], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 56}}, {"id": 880, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 879, "children": [], "start_point": {"row": 212, "column": 4}, "end_point": {"row": 212, "column": 14}}, {"id": 881, "type": "argument_list", "text": "(error, \"Failed to allocate client state\")", "parent": 879, "children": [882, 883], "start_point": {"row": 212, "column": 14}, "end_point": {"row": 212, "column": 56}}, {"id": 882, "type": "identifier", "text": "error", "parent": 881, "children": [], "start_point": {"row": 212, "column": 15}, "end_point": {"row": 212, "column": 20}}, {"id": 883, "type": "string_literal", "text": "\"Failed to allocate client state\"", "parent": 881, "children": [], "start_point": {"row": 212, "column": 22}, "end_point": {"row": 212, "column": 55}}, {"id": 884, "type": "call_expression", "text": "plat_post_init(&ltimer, ops)", "parent": 816, "children": [885, 886], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 32}}, {"id": 885, "type": "identifier", "text": "plat_post_init", "parent": 884, "children": [], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 18}}, {"id": 886, "type": "argument_list", "text": "(&ltimer, ops)", "parent": 884, "children": [887, 889], "start_point": {"row": 214, "column": 18}, "end_point": {"row": 214, "column": 32}}, {"id": 887, "type": "pointer_expression", "text": "&ltimer", "parent": 886, "children": [888], "start_point": {"row": 214, "column": 19}, "end_point": {"row": 214, "column": 26}}, {"id": 888, "type": "identifier", "text": "ltimer", "parent": 887, "children": [], "start_point": {"row": 214, "column": 20}, "end_point": {"row": 214, "column": 26}}, {"id": 889, "type": "identifier", "text": "ops", "parent": 886, "children": [], "start_point": {"row": 214, "column": 28}, "end_point": {"row": 214, "column": 31}}, {"id": 890, "type": "declaration", "text": "int num_timers = timers_per_client * the_timer_largest_badge();", "parent": 816, "children": [891, 892], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 67}}, {"id": 891, "type": "primitive_type", "text": "int", "parent": 890, "children": [], "start_point": {"row": 216, "column": 4}, "end_point": {"row": 216, "column": 7}}, {"id": 892, "type": "init_declarator", "text": "num_timers = timers_per_client * the_timer_largest_badge()", "parent": 890, "children": [893, 894, 895], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 66}}, {"id": 893, "type": "identifier", "text": "num_timers", "parent": 892, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 18}}, {"id": 894, "type": "=", "text": "=", "parent": 892, "children": [], "start_point": {"row": 216, "column": 19}, "end_point": {"row": 216, "column": 20}}, {"id": 895, "type": "binary_expression", "text": "timers_per_client * the_timer_largest_badge()", "parent": 892, "children": [896, 897, 898], "start_point": {"row": 216, "column": 21}, "end_point": {"row": 216, "column": 66}}, {"id": 896, "type": "identifier", "text": "timers_per_client", "parent": 895, "children": [], "start_point": {"row": 216, "column": 21}, "end_point": {"row": 216, "column": 38}}, {"id": 897, "type": "*", "text": "*", "parent": 895, "children": [], "start_point": {"row": 216, "column": 39}, "end_point": {"row": 216, "column": 40}}, {"id": 898, "type": "call_expression", "text": "the_timer_largest_badge()", "parent": 895, "children": [899, 900], "start_point": {"row": 216, "column": 41}, "end_point": {"row": 216, "column": 66}}, {"id": 899, "type": "identifier", "text": "the_timer_largest_badge", "parent": 898, "children": [], "start_point": {"row": 216, "column": 41}, "end_point": {"row": 216, "column": 64}}, {"id": 900, "type": "argument_list", "text": "()", "parent": 898, "children": [], "start_point": {"row": 216, "column": 64}, "end_point": {"row": 216, "column": 66}}, {"id": 901, "type": "call_expression", "text": "tm_init(&time_manager, &ltimer, &ops, num_timers)", "parent": 816, "children": [902, 903], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 53}}, {"id": 902, "type": "identifier", "text": "tm_init", "parent": 901, "children": [], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 11}}, {"id": 903, "type": "argument_list", "text": "(&time_manager, &ltimer, &ops, num_timers)", "parent": 901, "children": [904, 906, 908, 910], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 53}}, {"id": 904, "type": "pointer_expression", "text": "&time_manager", "parent": 903, "children": [905], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 25}}, {"id": 905, "type": "identifier", "text": "time_manager", "parent": 904, "children": [], "start_point": {"row": 217, "column": 13}, "end_point": {"row": 217, "column": 25}}, {"id": 906, "type": "pointer_expression", "text": "&ltimer", "parent": 903, "children": [907], "start_point": {"row": 217, "column": 27}, "end_point": {"row": 217, "column": 34}}, {"id": 907, "type": "identifier", "text": "ltimer", "parent": 906, "children": [], "start_point": {"row": 217, "column": 28}, "end_point": {"row": 217, "column": 34}}, {"id": 908, "type": "pointer_expression", "text": "&ops", "parent": 903, "children": [909], "start_point": {"row": 217, "column": 36}, "end_point": {"row": 217, "column": 40}}, {"id": 909, "type": "identifier", "text": "ops", "parent": 908, "children": [], "start_point": {"row": 217, "column": 37}, "end_point": {"row": 217, "column": 40}}, {"id": 910, "type": "identifier", "text": "num_timers", "parent": 903, "children": [], "start_point": {"row": 217, "column": 42}, "end_point": {"row": 217, "column": 52}}, {"id": 911, "type": "for_statement", "text": "for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, \"Failed to alloc id at %u\\n\", i);\n }", "parent": 816, "children": [912, 920, 924], "start_point": {"row": 218, "column": 4}, "end_point": {"row": 221, "column": 5}}, {"id": 912, "type": "declaration", "text": "unsigned int i = 0;", "parent": 911, "children": [913, 916], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 28}}, {"id": 913, "type": "sized_type_specifier", "text": "unsigned int", "parent": 912, "children": [914, 915], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 21}}, {"id": 914, "type": "unsigned", "text": "unsigned", "parent": 913, "children": [], "start_point": {"row": 218, "column": 9}, "end_point": {"row": 218, "column": 17}}, {"id": 915, "type": "primitive_type", "text": "int", "parent": 913, "children": [], "start_point": {"row": 218, "column": 18}, "end_point": {"row": 218, "column": 21}}, {"id": 916, "type": "init_declarator", "text": "i = 0", "parent": 912, "children": [917, 918, 919], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 27}}, {"id": 917, "type": "identifier", "text": "i", "parent": 916, "children": [], "start_point": {"row": 218, "column": 22}, "end_point": {"row": 218, "column": 23}}, {"id": 918, "type": "=", "text": "=", "parent": 916, "children": [], "start_point": {"row": 218, "column": 24}, "end_point": {"row": 218, "column": 25}}, {"id": 919, "type": "number_literal", "text": "0", "parent": 916, "children": [], "start_point": {"row": 218, "column": 26}, "end_point": {"row": 218, "column": 27}}, {"id": 920, "type": "binary_expression", "text": "i < num_timers", "parent": 911, "children": [921, 922, 923], "start_point": {"row": 218, "column": 29}, "end_point": {"row": 218, "column": 43}}, {"id": 921, "type": "identifier", "text": "i", "parent": 920, "children": [], "start_point": {"row": 218, "column": 29}, "end_point": {"row": 218, "column": 30}}, {"id": 922, "type": "<", "text": "<", "parent": 920, "children": [], "start_point": {"row": 218, "column": 31}, "end_point": {"row": 218, "column": 32}}, {"id": 923, "type": "identifier", "text": "num_timers", "parent": 920, "children": [], "start_point": {"row": 218, "column": 33}, "end_point": {"row": 218, "column": 43}}, {"id": 924, "type": "update_expression", "text": "i++", "parent": 911, "children": [925, 926], "start_point": {"row": 218, "column": 45}, "end_point": {"row": 218, "column": 48}}, {"id": 925, "type": "identifier", "text": "i", "parent": 924, "children": [], "start_point": {"row": 218, "column": 45}, "end_point": {"row": 218, "column": 46}}, {"id": 926, "type": "++", "text": "++", "parent": 924, "children": [], "start_point": {"row": 218, "column": 46}, "end_point": {"row": 218, "column": 48}}, {"id": 927, "type": "assignment_expression", "text": "error = tm_alloc_id_at(&time_manager, i)", "parent": 911, "children": [928, 929, 930], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 48}}, {"id": 928, "type": "identifier", "text": "error", "parent": 927, "children": [], "start_point": {"row": 219, "column": 8}, "end_point": {"row": 219, "column": 13}}, {"id": 929, "type": "=", "text": "=", "parent": 927, "children": [], "start_point": {"row": 219, "column": 14}, "end_point": {"row": 219, "column": 15}}, {"id": 930, "type": "call_expression", "text": "tm_alloc_id_at(&time_manager, i)", "parent": 927, "children": [931, 932], "start_point": {"row": 219, "column": 16}, "end_point": {"row": 219, "column": 48}}, {"id": 931, "type": "identifier", "text": "tm_alloc_id_at", "parent": 930, "children": [], "start_point": {"row": 219, "column": 16}, "end_point": {"row": 219, "column": 30}}, {"id": 932, "type": "argument_list", "text": "(&time_manager, i)", "parent": 930, "children": [933, 935], "start_point": {"row": 219, "column": 30}, "end_point": {"row": 219, "column": 48}}, {"id": 933, "type": "pointer_expression", "text": "&time_manager", "parent": 932, "children": [934], "start_point": {"row": 219, "column": 31}, "end_point": {"row": 219, "column": 44}}, {"id": 934, "type": "identifier", "text": "time_manager", "parent": 933, "children": [], "start_point": {"row": 219, "column": 32}, "end_point": {"row": 219, "column": 44}}, {"id": 935, "type": "identifier", "text": "i", "parent": 932, "children": [], "start_point": {"row": 219, "column": 46}, "end_point": {"row": 219, "column": 47}}, {"id": 936, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to alloc id at %u\\n\", i)", "parent": 911, "children": [937, 938], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 58}}, {"id": 937, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 936, "children": [], "start_point": {"row": 220, "column": 8}, "end_point": {"row": 220, "column": 18}}, {"id": 938, "type": "argument_list", "text": "(error, \"Failed to alloc id at %u\\n\", i)", "parent": 936, "children": [939, 940, 942], "start_point": {"row": 220, "column": 18}, "end_point": {"row": 220, "column": 58}}, {"id": 939, "type": "identifier", "text": "error", "parent": 938, "children": [], "start_point": {"row": 220, "column": 19}, "end_point": {"row": 220, "column": 24}}, {"id": 940, "type": "string_literal", "text": "\"Failed to alloc id at %u\\n\"", "parent": 938, "children": [941], "start_point": {"row": 220, "column": 26}, "end_point": {"row": 220, "column": 54}}, {"id": 941, "type": "escape_sequence", "text": "\\n", "parent": 940, "children": [], "start_point": {"row": 220, "column": 51}, "end_point": {"row": 220, "column": 53}}, {"id": 942, "type": "identifier", "text": "i", "parent": 938, "children": [], "start_point": {"row": 220, "column": 56}, "end_point": {"row": 220, "column": 57}}, {"id": 943, "type": "assignment_expression", "text": "error = time_server_unlock()", "parent": 816, "children": [944, 945, 946], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 32}}, {"id": 944, "type": "identifier", "text": "error", "parent": 943, "children": [], "start_point": {"row": 223, "column": 4}, "end_point": {"row": 223, "column": 9}}, {"id": 945, "type": "=", "text": "=", "parent": 943, "children": [], "start_point": {"row": 223, "column": 10}, "end_point": {"row": 223, "column": 11}}, {"id": 946, "type": "call_expression", "text": "time_server_unlock()", "parent": 943, "children": [947, 948], "start_point": {"row": 223, "column": 12}, "end_point": {"row": 223, "column": 32}}, {"id": 947, "type": "identifier", "text": "time_server_unlock", "parent": 946, "children": [], "start_point": {"row": 223, "column": 12}, "end_point": {"row": 223, "column": 30}}, {"id": 948, "type": "argument_list", "text": "()", "parent": 946, "children": [], "start_point": {"row": 223, "column": 30}, "end_point": {"row": 223, "column": 32}}, {"id": 949, "type": "call_expression", "text": "ZF_LOGF_IF(error, \"Failed to unlock timer server\")", "parent": 816, "children": [950, 951], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 54}}, {"id": 950, "type": "identifier", "text": "ZF_LOGF_IF", "parent": 949, "children": [], "start_point": {"row": 224, "column": 4}, "end_point": {"row": 224, "column": 14}}, {"id": 951, "type": "argument_list", "text": "(error, \"Failed to unlock timer server\")", "parent": 949, "children": [952, 953], "start_point": {"row": 224, "column": 14}, "end_point": {"row": 224, "column": 54}}, {"id": 952, "type": "identifier", "text": "error", "parent": 951, "children": [], "start_point": {"row": 224, "column": 15}, "end_point": {"row": 224, "column": 20}}, {"id": 953, "type": "string_literal", "text": "\"Failed to unlock timer server\"", "parent": 951, "children": [], "start_point": {"row": 224, "column": 22}, "end_point": {"row": 224, "column": 53}}, {"id": 954, "type": "call_expression", "text": "set_putchar(putchar_putchar)", "parent": 816, "children": [955, 956], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 32}}, {"id": 955, "type": "identifier", "text": "set_putchar", "parent": 954, "children": [], "start_point": {"row": 226, "column": 4}, "end_point": {"row": 226, "column": 15}}, {"id": 956, "type": "argument_list", "text": "(putchar_putchar)", "parent": 954, "children": [957], "start_point": {"row": 226, "column": 15}, "end_point": {"row": 226, "column": 32}}, {"id": 957, "type": "identifier", "text": "putchar_putchar", "parent": 956, "children": [], "start_point": {"row": 226, "column": 16}, "end_point": {"row": 226, "column": 31}}]}, "node_categories": {"declarations": {"functions": [62, 67, 76, 81, 85, 110, 116, 138, 140, 198, 200, 254, 256, 347, 349, 454, 456, 548, 550, 624, 628, 684, 686, 696, 698, 719, 721, 742, 744, 765, 767, 784, 788, 801, 803, 816, 818], "variables": [45, 48, 51, 60, 65, 70, 74, 79, 88, 91, 119, 122, 143, 146, 159, 203, 206, 259, 262, 265, 289, 302, 352, 355, 358, 382, 395, 459, 462, 465, 489, 502, 553, 556, 580, 631, 634, 655, 689, 701, 704, 724, 727, 747, 750, 770, 821, 834, 890, 912], "classes": [82, 111], "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], "modules": [], "enums": []}, "statements": {"expressions": [96, 99, 101, 103, 126, 127, 128, 151, 152, 153, 164, 165, 166, 172, 175, 181, 185, 189, 192, 211, 214, 222, 225, 233, 236, 238, 246, 249, 269, 270, 271, 276, 280, 294, 297, 309, 317, 320, 325, 329, 337, 340, 362, 363, 364, 369, 373, 387, 390, 402, 410, 413, 418, 423, 424, 428, 436, 444, 447, 469, 470, 471, 476, 480, 494, 497, 509, 517, 520, 526, 530, 538, 541, 560, 561, 562, 567, 571, 585, 588, 596, 599, 601, 606, 614, 617, 639, 642, 647, 650, 662, 666, 674, 677, 693, 708, 711, 712, 731, 734, 735, 754, 757, 758, 774, 777, 778, 792, 795, 796, 807, 810, 811, 826, 829, 840, 843, 844, 847, 855, 858, 859, 862, 865, 866, 867, 870, 877, 879, 884, 887, 895, 898, 901, 904, 906, 908, 920, 924, 930, 933, 936, 946, 949, 954], "assignments": [180, 219, 230, 243, 314, 334, 407, 432, 441, 514, 535, 593, 611, 665, 671, 837, 852, 927, 943], "loops": [911], "conditionals": [46, 47, 49, 50, 56, 61, 63, 68, 71, 77, 86, 90, 94, 97, 100, 102, 104, 106, 109, 113, 117, 121, 124, 130, 133, 135, 137, 141, 145, 149, 156, 158, 162, 169, 171, 173, 176, 182, 183, 186, 188, 190, 193, 201, 204, 205, 209, 212, 215, 217, 220, 223, 226, 228, 231, 234, 237, 239, 241, 244, 247, 250, 252, 257, 261, 264, 267, 268, 272, 274, 277, 281, 285, 286, 292, 295, 298, 300, 303, 307, 310, 312, 313, 315, 318, 321, 322, 323, 324, 328, 330, 332, 335, 338, 341, 343, 350, 354, 357, 360, 361, 365, 367, 370, 374, 378, 379, 385, 388, 391, 393, 396, 400, 403, 405, 406, 408, 411, 414, 415, 416, 417, 421, 422, 425, 427, 429, 431, 433, 437, 439, 442, 445, 448, 450, 457, 461, 464, 467, 468, 472, 474, 477, 481, 485, 486, 492, 495, 498, 500, 503, 507, 510, 512, 513, 515, 518, 521, 522, 524, 525, 529, 531, 533, 536, 539, 542, 544, 551, 555, 558, 559, 563, 565, 568, 572, 576, 577, 583, 586, 589, 591, 594, 597, 600, 602, 604, 605, 607, 609, 612, 615, 618, 620, 625, 629, 633, 637, 640, 643, 645, 648, 651, 656, 660, 663, 664, 667, 668, 672, 675, 678, 680, 683, 687, 691, 694, 699, 703, 706, 709, 713, 717, 718, 722, 726, 729, 732, 736, 740, 741, 745, 749, 752, 755, 759, 763, 764, 768, 772, 775, 779, 783, 785, 789, 793, 797, 804, 808, 812, 819, 824, 827, 830, 832, 835, 836, 838, 841, 845, 846, 848, 850, 853, 856, 860, 861, 863, 869, 878, 880, 882, 885, 888, 889, 893, 896, 899, 902, 905, 907, 909, 910, 913, 917, 921, 923, 925, 928, 931, 934, 935, 937, 939, 942, 944, 947, 950, 952, 955, 957], "returns": [108, 125, 196, 287, 345, 380, 452, 487, 546, 578, 622, 682, 692, 707, 730, 753, 773, 791, 806], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 38, 41, 44, 107, 195, 197, 218, 229, 242, 253, 279, 283, 288, 301, 333, 344, 346, 372, 376, 381, 394, 435, 440, 451, 453, 479, 483, 488, 501, 523, 534, 545, 547, 570, 574, 579, 592, 610, 621, 623, 646, 670, 681, 716, 739, 762, 782, 800, 815, 833, 851, 883, 919, 940, 953], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_get_sender_id()"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_emit(unsigned int)"}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_largest_badge(void)"}, {"node_id": 81, "universal_type": "function", "name": "error", "text_snippet": "static inline uint64_t current_time_ns() {\n uint64_t time;\n int error = ltimer_get_time(&ltime"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "current_time_ns()"}, {"node_id": 110, "universal_type": "function", "name": "get_time_token", "text_snippet": "static inline unsigned int get_time_token(int cid, int tid)\n{\n return (unsigned int) cid * timers"}, {"node_id": 116, "universal_type": "function", "name": "tid)", "text_snippet": "get_time_token(int cid, int tid)"}, {"node_id": 138, "universal_type": "function", "name": "signal_client", "text_snippet": "static int signal_client(uintptr_t token) {\n\n int cid = ((int) token) / timers_per_client;\n in"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "signal_client(uintptr_t token)"}, {"node_id": 198, "universal_type": "function", "name": "time_server_irq_handle", "text_snippet": "void time_server_irq_handle(irq_ack_fn irq_acknowledge) {\n int error = time_server_lock();\n ZF"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "time_server_irq_handle(irq_ack_fn irq_acknowledge)"}, {"node_id": 254, "universal_type": "function", "name": "_oneshot_relative", "text_snippet": "static int _oneshot_relative(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || ti"}, {"node_id": 256, "universal_type": "function", "name": "tid,", "text_snippet": "_oneshot_relative(int cid, int tid, uint64_t ns)"}, {"node_id": 347, "universal_type": "function", "name": "_oneshot_absolute", "text_snippet": "static int _oneshot_absolute(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || ti"}, {"node_id": 349, "universal_type": "function", "name": "tid,", "text_snippet": "_oneshot_absolute(int cid, int tid, uint64_t ns)"}, {"node_id": 454, "universal_type": "function", "name": "_periodic", "text_snippet": "static int _periodic(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {"}, {"node_id": 456, "universal_type": "function", "name": "tid,", "text_snippet": "_periodic(int cid, int tid, uint64_t ns)"}, {"node_id": 548, "universal_type": "function", "name": "_stop", "text_snippet": "static int _stop(int cid, int tid) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE("}, {"node_id": 550, "universal_type": "function", "name": "tid)", "text_snippet": "_stop(int cid, int tid)"}, {"node_id": 624, "universal_type": "function", "name": "_completed", "text_snippet": "static unsigned int _completed(int cid) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, "}, {"node_id": 628, "universal_type": "function", "name": "unknown", "text_snippet": "_completed(int cid)"}, {"node_id": 684, "universal_type": "function", "name": "unknown", "text_snippet": "static uint64_t _time(int cid) {\n return current_time_ns();\n}"}, {"node_id": 686, "universal_type": "function", "name": "unknown", "text_snippet": "_time(int cid)"}, {"node_id": 696, "universal_type": "function", "name": "the_timer_oneshot_relative", "text_snippet": "int the_timer_oneshot_relative(int id, uint64_t ns) {\n return _oneshot_relative(the_timer_get_sen"}, {"node_id": 698, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_oneshot_relative(int id, uint64_t ns)"}, {"node_id": 719, "universal_type": "function", "name": "the_timer_oneshot_absolute", "text_snippet": "int the_timer_oneshot_absolute(int id, uint64_t ns) {\n return _oneshot_absolute(the_timer_get_sen"}, {"node_id": 721, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_oneshot_absolute(int id, uint64_t ns)"}, {"node_id": 742, "universal_type": "function", "name": "the_timer_periodic", "text_snippet": "int the_timer_periodic(int id, uint64_t ns) {\n return _periodic(the_timer_get_sender_id() - 1, id"}, {"node_id": 744, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_periodic(int id, uint64_t ns)"}, {"node_id": 765, "universal_type": "function", "name": "the_timer_stop", "text_snippet": "int the_timer_stop(int id) {\n return _stop(the_timer_get_sender_id() - 1, id);\n}"}, {"node_id": 767, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_stop(int id)"}, {"node_id": 784, "universal_type": "function", "name": "the_timer_completed", "text_snippet": "unsigned int the_timer_completed() {\n return _completed(the_timer_get_sender_id() - 1);\n}"}, {"node_id": 788, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_completed()"}, {"node_id": 801, "universal_type": "function", "name": "unknown", "text_snippet": "uint64_t the_timer_time() {\n return _time(the_timer_get_sender_id() - 1);\n}"}, {"node_id": 803, "universal_type": "function", "name": "unknown", "text_snippet": "the_timer_time()"}, {"node_id": 816, "universal_type": "function", "name": "post_init", "text_snippet": "void post_init() {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock timer s"}, {"node_id": 818, "universal_type": "function", "name": "unknown", "text_snippet": "post_init()"}], "class_declarations": [{"node_id": 82, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 0, "text": "#include <autoconf.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <assert.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <stdio.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdbool.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 <sel4/sel4.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sel4/arch/constants.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <camkes.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <platsupport/time_manager.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <platsupport/local_time_manager.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <utils/util.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <sel4utils/sel4_zf_logif.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 36, "text": "#include <simple/simple.h>\n"}, {"node_id": 37, "text": "#include"}, {"node_id": 39, "text": "#include \"time_server.h\"\n"}, {"node_id": 40, "text": "#include"}, {"node_id": 42, "text": "#include \"plat.h\"\n"}, {"node_id": 43, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2017, Data61\n * Commonwealth Scientific and Industrial Research Organisation (CSIRO)\n * ABN 41 687 119 230.\n *\n * This software may be distributed and modified according to the terms of\n * the BSD 2-Clause license. Note that NO WARRANTY is provided.\n * See \"LICENSE_BSD2.txt\" for details.\n *\n * @TAG(DATA61_BSD)\n */\n\n#include <autoconf.h>\n\n#include <assert.h>\n#include <stdio.h>\n#include <stdbool.h>\n#include <stdio.h>\n#include <sel4/sel4.h>\n#include <sel4/arch/constants.h>\n#include <camkes.h>\n#include <platsupport/time_manager.h>\n#include <platsupport/local_time_manager.h>\n#include <utils/util.h>\n#include <sel4utils/sel4_zf_logif.h>\n#include <simple/simple.h>\n\n#include \"time_server.h\"\n#include \"plat.h\"\n\n/* ltimer for accessing timer devices */\nstatic ltimer_t ltimer;\n/* time manager for timeout multiplexing */\nstatic time_manager_t time_manager;\n\n/* declare the memory needed for the clients\n * this field tracks which timeouts have triggered\n * for a specific client */\nuint32_t *client_state = NULL;\n\n/* Prototype for this function is not generated by the camkes templates yet */\nseL4_Word the_timer_get_sender_id();\nvoid the_timer_emit(unsigned int);\nint the_timer_largest_badge(void);\n\nstatic inline uint64_t current_time_ns() {\n uint64_t time;\n int error = ltimer_get_time(&ltimer, &time);\n ZF_LOGF_IF(error, \"Failed to get time\");\n return time;\n}\n\nstatic inline unsigned int get_time_token(int cid, int tid)\n{\n return (unsigned int) cid * timers_per_client + tid;\n}\n\nstatic int signal_client(uintptr_t token) {\n\n int cid = ((int) token) / timers_per_client;\n int tid = ((int) token) % timers_per_client;\n\n assert(client_state != NULL);\n\n client_state[cid] |= BIT(tid);\n the_timer_emit(cid + 1);\n\n return 0;\n}\n\nvoid time_server_irq_handle(irq_ack_fn irq_acknowledge) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n error = irq_acknowledge();\n ZF_LOGF_IF(error, \"irq acknowledge failed\");\n\n error = tm_update(&time_manager);\n ZF_LOGF_IF(error, \"Failed to update time manager\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n}\n\nstatic int _oneshot_relative(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int id = get_time_token(cid, tid);\n error = tm_register_rel_cb(&time_manager, ns, id, signal_client, (uintptr_t) id);\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}\n\nstatic int _oneshot_absolute(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int token = get_time_token(cid, tid);\n\n error = tm_register_abs_cb(&time_manager, ns, token, signal_client, (uintptr_t) token);\n if (error == ETIME) {\n signal_client(token);\n error = 0;\n }\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}\n\nstatic int _periodic(int cid, int tid, uint64_t ns) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n unsigned int token = get_time_token(cid, tid);\n error = tm_register_periodic_cb(&time_manager, ns, 0, token, signal_client, (uintptr_t) token);\n ZF_LOGF_IF(error, \"Failed to set timeout\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}\n\nstatic int _stop(int cid, int tid) {\n if (tid >= timers_per_client || tid < 0) {\n ZF_LOGE(\"invalid tid, 0 >= %d >= %d\\n\", tid, timers_per_client);\n return -1;\n }\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n error = tm_deregister_cb(&time_manager, get_time_token(cid, tid));\n ZF_LOGF_IF(error, \"Failed to deregister callback\");\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n return 0;\n}\n\nstatic unsigned int _completed(int cid) {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock time server\");\n\n assert(client_state != NULL);\n unsigned int ret = client_state[cid];\n client_state[cid] = 0;\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock time server\");\n\n return ret;\n}\n\nstatic uint64_t _time(int cid) {\n return current_time_ns();\n}\n\n/* substract 1 from the badge as we started counting badges at 1\n * to avoid using the 0 badge */\nint the_timer_oneshot_relative(int id, uint64_t ns) {\n return _oneshot_relative(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_oneshot_absolute(int id, uint64_t ns) {\n return _oneshot_absolute(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_periodic(int id, uint64_t ns) {\n return _periodic(the_timer_get_sender_id() - 1, id, ns);\n}\n\nint the_timer_stop(int id) {\n return _stop(the_timer_get_sender_id() - 1, id);\n}\n\nunsigned int the_timer_completed() {\n return _completed(the_timer_get_sender_id() - 1);\n}\n\nuint64_t the_timer_time() {\n return _time(the_timer_get_sender_id() - 1);\n}\n\nvoid post_init() {\n int error = time_server_lock();\n ZF_LOGF_IF(error, \"Failed to lock timer server\");\n\n ps_io_ops_t ops;\n error = ps_new_stdlib_malloc_ops(&ops.malloc_ops);\n ZF_LOGF_IF(error, \"Failed to get malloc ops\");\n\n error = ps_calloc(&ops.malloc_ops, the_timer_largest_badge(), sizeof(*client_state), (void **) &client_state);\n ZF_LOGF_IF(error, \"Failed to allocate client state\")\n\n plat_post_init(&ltimer, ops);\n\n int num_timers = timers_per_client * the_timer_largest_badge();\n tm_init(&time_manager, &ltimer, &ops, num_timers);\n for (unsigned int i = 0; i < num_timers; i++) {\n error = tm_alloc_id_at(&time_manager, i);\n ZF_LOGF_IF(error, \"Failed to alloc id at %u\\n\", i);\n }\n\n error = time_server_unlock();\n ZF_LOGF_IF(error, \"Failed to unlock timer server\");\n\n set_putchar(putchar_putchar);\n}\n"}
80,794
c
#include <string.h> #include <gc.h> #define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type))) #include "wc.h" #ifdef USE_UNICODE #include "ucs.h" #endif wc_option WcOption = { WC_OPT_DETECT_ON, /* auto_detect */ WC_TRUE, /* use_combining */ WC_TRUE, /* use_language_tag */ WC_TRUE, /* ucs_conv */ WC_FALSE, /* pre_conv */ WC_TRUE, /* fix_width_conv */ WC_FALSE, /* use_gb12345_map */ WC_FALSE, /* use_jisx0201 */ WC_FALSE, /* use_jisc6226 */ WC_FALSE, /* use_jisx0201k */ WC_FALSE, /* use_jisx0212 */ WC_FALSE, /* use_jisx0213 */ WC_TRUE, /* strict_iso2022 */ WC_FALSE, /* gb18030_as_ucs */ WC_FALSE, /* no_replace */ WC_TRUE, /* use_wide */ WC_FALSE, /* east_asian_width */ }; static wc_status output_st; static wc_option output_option; static wc_bool output_set = WC_FALSE; #define wc_option_cmp(opt1, opt2) \ memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option)) void wc_input_init(wc_ces ces, wc_status *st) { wc_gset *gset; int i, g; st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]; gset = st->ces_info->gset; st->state = 0; st->g0_ccs = 0; st->g1_ccs = 0; st->design[0] = gset[0].ccs; st->design[1] = gset[1].ccs; /* for ISO-2022-JP/EUC-JP */ st->design[2] = 0; st->design[3] = 0; st->gl = 0; st->gr = 1; st->ss = 0; for (i = 0; gset[i].ccs; i++) { if (gset[i].init) { g = gset[i].g & 0x03; if (! st->design[g]) st->design[g] = gset[i].ccs; } } #ifdef USE_UNICODE st->tag = NULL; st->ntag = 0; #endif } void wc_output_init(wc_ces ces, wc_status *st) { wc_gset *gset; #ifdef USE_UNICODE size_t i, n, nw; #endif if (output_set && ces == output_st.ces_info->id && ! wc_option_cmp(&WcOption, &output_option)) { *st = output_st; return; } st->state = 0; st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]; gset = st->ces_info->gset; st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 || ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201) ? WC_CCS_JIS_X_0201 : gset[0].ccs; st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 || ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226) ? WC_CCS_JIS_C_6226 : gset[1].ccs; st->design[0] = st->g0_ccs; st->design[1] = 0; st->design[2] = 0; st->design[3] = 0; st->gl = 0; st->gr = 0; st->ss = 0; if (ces & WC_CES_T_ISO_2022) wc_create_gmap(st); #ifdef USE_UNICODE st->tag = NULL; st->ntag = 0; if (! WcOption.ucs_conv) { st->tlist = NULL; st->tlistw = NULL; } else { for (i = n = nw = 0; gset[i].ccs; i++) { if (WC_CCS_IS_WIDE(gset[i].ccs)) nw++; else n++; } st->tlist = New_N(wc_table *, n + 1); st->tlistw = New_N(wc_table *, nw + 1); for (i = n = nw = 0; gset[i].ccs; i++) { if (WC_CCS_IS_WIDE(gset[i].ccs)) { switch (gset[i].ccs) { case WC_CCS_JIS_X_0212: if (! WcOption.use_jisx0212) continue; break; case WC_CCS_JIS_X_0213_1: case WC_CCS_JIS_X_0213_2: if (! WcOption.use_jisx0213) continue; break; case WC_CCS_GB_2312: if (WcOption.use_gb12345_map && ces != WC_CES_GBK && ces != WC_CES_GB18030) { st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345); continue; } break; } st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs); } else { switch (gset[i].ccs) { case WC_CCS_JIS_X_0201K: if (! WcOption.use_jisx0201k) continue; break; } st->tlist[n++] = wc_get_ucs_table(gset[i].ccs); } } st->tlist[n] = NULL; st->tlistw[nw] = NULL; } #endif output_st = *st; output_set = WC_TRUE; output_option = WcOption; } wc_bool wc_ces_has_ccs(wc_ccs ccs, wc_status *st) { wc_gset *gset = st->ces_info->gset; int i; for (i = 0; gset[i].ccs; i++) { if (ccs == gset[i].ccs) return WC_TRUE; } return WC_FALSE; }
24.46
155
(translation_unit) "#include <string.h>\n#include <gc.h>\n#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n\n#include "wc.h"\n#ifdef USE_UNICODE\n#include "ucs.h"\n#endif\n\nwc_option WcOption = {\n WC_OPT_DETECT_ON, /* auto_detect */\n WC_TRUE, /* use_combining */\n WC_TRUE, /* use_language_tag */\n WC_TRUE, /* ucs_conv */\n WC_FALSE, /* pre_conv */\n WC_TRUE, /* fix_width_conv */\n WC_FALSE, /* use_gb12345_map */\n WC_FALSE, /* use_jisx0201 */\n WC_FALSE, /* use_jisc6226 */\n WC_FALSE, /* use_jisx0201k */\n WC_FALSE, /* use_jisx0212 */\n WC_FALSE, /* use_jisx0213 */\n WC_TRUE, /* strict_iso2022 */\n WC_FALSE, /* gb18030_as_ucs */\n WC_FALSE, /* no_replace */\n WC_TRUE, /* use_wide */\n WC_FALSE, /* east_asian_width */\n};\n\nstatic wc_status output_st;\nstatic wc_option output_option;\nstatic wc_bool output_set = WC_FALSE;\n\n#define wc_option_cmp(opt1, opt2) \\n memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))\n\nvoid\nwc_input_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n int i, g;\n\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->state = 0;\n st->g0_ccs = 0;\n st->g1_ccs = 0;\n st->design[0] = gset[0].ccs;\n st->design[1] = gset[1].ccs; /* for ISO-2022-JP/EUC-JP */ \n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 1;\n st->ss = 0;\n\n for (i = 0; gset[i].ccs; i++) {\n if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }\n }\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif\n}\n\nvoid\nwc_output_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif\n\n if (output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option)) {\n *st = output_st;\n return;\n }\n\n st->state = 0;\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs;\n st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs;\n st->design[0] = st->g0_ccs;\n st->design[1] = 0;\n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 0;\n st->ss = 0;\n\n if (ces & WC_CES_T_ISO_2022)\n wc_create_gmap(st);\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n st->tlist = NULL;\n st->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif\n\n output_st = *st;\n output_set = WC_TRUE;\n output_option = WcOption;\n}\n\nwc_bool\nwc_ces_has_ccs(wc_ccs ccs, wc_status *st)\n{\n wc_gset *gset = st->ces_info->gset;\n int i;\n\n for (i = 0; gset[i].ccs; i++) {\n if (ccs == gset[i].ccs)\n return WC_TRUE;\n }\n return WC_FALSE;\n}\n" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <gc.h>\n" (#include) "#include" (system_lib_string) "<gc.h>" (preproc_function_def) "#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n" (#define) "#define" (identifier) "New_N" (preproc_params) "(type,n)" (() "(" (identifier) "type" (,) "," (identifier) "n" ()) ")" (preproc_arg) "((type*)GC_MALLOC((n)*sizeof(type)))" (preproc_include) "#include "wc.h"\n" (#include) "#include" (string_literal) ""wc.h"" (") """ (string_content) "wc.h" (") """ (preproc_ifdef) "#ifdef USE_UNICODE\n#include "ucs.h"\n#endif" (#ifdef) "#ifdef" (identifier) "USE_UNICODE" (preproc_include) "#include "ucs.h"\n" (#include) "#include" (string_literal) ""ucs.h"" (") """ (string_content) "ucs.h" (") """ (#endif) "#endif" (declaration) "wc_option WcOption = {\n WC_OPT_DETECT_ON, /* auto_detect */\n WC_TRUE, /* use_combining */\n WC_TRUE, /* use_language_tag */\n WC_TRUE, /* ucs_conv */\n WC_FALSE, /* pre_conv */\n WC_TRUE, /* fix_width_conv */\n WC_FALSE, /* use_gb12345_map */\n WC_FALSE, /* use_jisx0201 */\n WC_FALSE, /* use_jisc6226 */\n WC_FALSE, /* use_jisx0201k */\n WC_FALSE, /* use_jisx0212 */\n WC_FALSE, /* use_jisx0213 */\n WC_TRUE, /* strict_iso2022 */\n WC_FALSE, /* gb18030_as_ucs */\n WC_FALSE, /* no_replace */\n WC_TRUE, /* use_wide */\n WC_FALSE, /* east_asian_width */\n};" (type_identifier) "wc_option" (init_declarator) "WcOption = {\n WC_OPT_DETECT_ON, /* auto_detect */\n WC_TRUE, /* use_combining */\n WC_TRUE, /* use_language_tag */\n WC_TRUE, /* ucs_conv */\n WC_FALSE, /* pre_conv */\n WC_TRUE, /* fix_width_conv */\n WC_FALSE, /* use_gb12345_map */\n WC_FALSE, /* use_jisx0201 */\n WC_FALSE, /* use_jisc6226 */\n WC_FALSE, /* use_jisx0201k */\n WC_FALSE, /* use_jisx0212 */\n WC_FALSE, /* use_jisx0213 */\n WC_TRUE, /* strict_iso2022 */\n WC_FALSE, /* gb18030_as_ucs */\n WC_FALSE, /* no_replace */\n WC_TRUE, /* use_wide */\n WC_FALSE, /* east_asian_width */\n}" (identifier) "WcOption" (=) "=" (initializer_list) "{\n WC_OPT_DETECT_ON, /* auto_detect */\n WC_TRUE, /* use_combining */\n WC_TRUE, /* use_language_tag */\n WC_TRUE, /* ucs_conv */\n WC_FALSE, /* pre_conv */\n WC_TRUE, /* fix_width_conv */\n WC_FALSE, /* use_gb12345_map */\n WC_FALSE, /* use_jisx0201 */\n WC_FALSE, /* use_jisc6226 */\n WC_FALSE, /* use_jisx0201k */\n WC_FALSE, /* use_jisx0212 */\n WC_FALSE, /* use_jisx0213 */\n WC_TRUE, /* strict_iso2022 */\n WC_FALSE, /* gb18030_as_ucs */\n WC_FALSE, /* no_replace */\n WC_TRUE, /* use_wide */\n WC_FALSE, /* east_asian_width */\n}" ({) "{" (identifier) "WC_OPT_DETECT_ON" (,) "," (comment) "/* auto_detect */" (identifier) "WC_TRUE" (,) "," (comment) "/* use_combining */" (identifier) "WC_TRUE" (,) "," (comment) "/* use_language_tag */" (identifier) "WC_TRUE" (,) "," (comment) "/* ucs_conv */" (identifier) "WC_FALSE" (,) "," (comment) "/* pre_conv */" (identifier) "WC_TRUE" (,) "," (comment) "/* fix_width_conv */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_gb12345_map */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_jisx0201 */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_jisc6226 */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_jisx0201k */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_jisx0212 */" (identifier) "WC_FALSE" (,) "," (comment) "/* use_jisx0213 */" (identifier) "WC_TRUE" (,) "," (comment) "/* strict_iso2022 */" (identifier) "WC_FALSE" (,) "," (comment) "/* gb18030_as_ucs */" (identifier) "WC_FALSE" (,) "," (comment) "/* no_replace */" (identifier) "WC_TRUE" (,) "," (comment) "/* use_wide */" (identifier) "WC_FALSE" (,) "," (comment) "/* east_asian_width */" (}) "}" (;) ";" (declaration) "static wc_status output_st;" (storage_class_specifier) "static" (static) "static" (type_identifier) "wc_status" (identifier) "output_st" (;) ";" (declaration) "static wc_option output_option;" (storage_class_specifier) "static" (static) "static" (type_identifier) "wc_option" (identifier) "output_option" (;) ";" (declaration) "static wc_bool output_set = WC_FALSE;" (storage_class_specifier) "static" (static) "static" (type_identifier) "wc_bool" (init_declarator) "output_set = WC_FALSE" (identifier) "output_set" (=) "=" (identifier) "WC_FALSE" (;) ";" (preproc_function_def) "#define wc_option_cmp(opt1, opt2) \\n memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))\n" (#define) "#define" (identifier) "wc_option_cmp" (preproc_params) "(opt1, opt2)" (() "(" (identifier) "opt1" (,) "," (identifier) "opt2" ()) ")" (preproc_arg) "memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))" (function_definition) "void\nwc_input_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n int i, g;\n\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->state = 0;\n st->g0_ccs = 0;\n st->g1_ccs = 0;\n st->design[0] = gset[0].ccs;\n st->design[1] = gset[1].ccs; /* for ISO-2022-JP/EUC-JP */ \n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 1;\n st->ss = 0;\n\n for (i = 0; gset[i].ccs; i++) {\n if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }\n }\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif\n}" (primitive_type) "void" (function_declarator) "wc_input_init(wc_ces ces, wc_status *st)" (identifier) "wc_input_init" (parameter_list) "(wc_ces ces, wc_status *st)" (() "(" (parameter_declaration) "wc_ces ces" (type_identifier) "wc_ces" (identifier) "ces" (,) "," (parameter_declaration) "wc_status *st" (type_identifier) "wc_status" (pointer_declarator) "*st" (*) "*" (identifier) "st" ()) ")" (compound_statement) "{\n wc_gset *gset;\n int i, g;\n\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->state = 0;\n st->g0_ccs = 0;\n st->g1_ccs = 0;\n st->design[0] = gset[0].ccs;\n st->design[1] = gset[1].ccs; /* for ISO-2022-JP/EUC-JP */ \n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 1;\n st->ss = 0;\n\n for (i = 0; gset[i].ccs; i++) {\n if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }\n }\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif\n}" ({) "{" (declaration) "wc_gset *gset;" (type_identifier) "wc_gset" (pointer_declarator) "*gset" (*) "*" (identifier) "gset" (;) ";" (declaration) "int i, g;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "g" (;) ";" (expression_statement) "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];" (assignment_expression) "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]" (field_expression) "st->ces_info" (identifier) "st" (->) "->" (field_identifier) "ces_info" (=) "=" (pointer_expression) "&WcCesInfo[WC_CES_INDEX(ces)]" (&) "&" (subscript_expression) "WcCesInfo[WC_CES_INDEX(ces)]" (identifier) "WcCesInfo" ([) "[" (call_expression) "WC_CES_INDEX(ces)" (identifier) "WC_CES_INDEX" (argument_list) "(ces)" (() "(" (identifier) "ces" ()) ")" (]) "]" (;) ";" (expression_statement) "gset = st->ces_info->gset;" (assignment_expression) "gset = st->ces_info->gset" (identifier) "gset" (=) "=" (field_expression) "st->ces_info->gset" (field_expression) "st->ces_info" (identifier) "st" (->) "->" (field_identifier) "ces_info" (->) "->" (field_identifier) "gset" (;) ";" (expression_statement) "st->state = 0;" (assignment_expression) "st->state = 0" (field_expression) "st->state" (identifier) "st" (->) "->" (field_identifier) "state" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->g0_ccs = 0;" (assignment_expression) "st->g0_ccs = 0" (field_expression) "st->g0_ccs" (identifier) "st" (->) "->" (field_identifier) "g0_ccs" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->g1_ccs = 0;" (assignment_expression) "st->g1_ccs = 0" (field_expression) "st->g1_ccs" (identifier) "st" (->) "->" (field_identifier) "g1_ccs" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->design[0] = gset[0].ccs;" (assignment_expression) "st->design[0] = gset[0].ccs" (subscript_expression) "st->design[0]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "0" (]) "]" (=) "=" (field_expression) "gset[0].ccs" (subscript_expression) "gset[0]" (identifier) "gset" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (expression_statement) "st->design[1] = gset[1].ccs;" (assignment_expression) "st->design[1] = gset[1].ccs" (subscript_expression) "st->design[1]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "1" (]) "]" (=) "=" (field_expression) "gset[1].ccs" (subscript_expression) "gset[1]" (identifier) "gset" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (comment) "/* for ISO-2022-JP/EUC-JP */" (expression_statement) "st->design[2] = 0;" (assignment_expression) "st->design[2] = 0" (subscript_expression) "st->design[2]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "2" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->design[3] = 0;" (assignment_expression) "st->design[3] = 0" (subscript_expression) "st->design[3]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "3" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->gl = 0;" (assignment_expression) "st->gl = 0" (field_expression) "st->gl" (identifier) "st" (->) "->" (field_identifier) "gl" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->gr = 1;" (assignment_expression) "st->gr = 1" (field_expression) "st->gr" (identifier) "st" (->) "->" (field_identifier) "gr" (=) "=" (number_literal) "1" (;) ";" (expression_statement) "st->ss = 0;" (assignment_expression) "st->ss = 0" (field_expression) "st->ss" (identifier) "st" (->) "->" (field_identifier) "ss" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for (i = 0; gset[i].ccs; i++) {\n if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }\n }" ({) "{" (if_statement) "if (gset[i].init) {\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }" (if) "if" (parenthesized_expression) "(gset[i].init)" (() "(" (field_expression) "gset[i].init" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "init" ()) ")" (compound_statement) "{\n g = gset[i].g & 0x03;\n if (! st->design[g])\n st->design[g] = gset[i].ccs;\n }" ({) "{" (expression_statement) "g = gset[i].g & 0x03;" (assignment_expression) "g = gset[i].g & 0x03" (identifier) "g" (=) "=" (binary_expression) "gset[i].g & 0x03" (field_expression) "gset[i].g" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "g" (&) "&" (number_literal) "0x03" (;) ";" (if_statement) "if (! st->design[g])\n st->design[g] = gset[i].ccs;" (if) "if" (parenthesized_expression) "(! st->design[g])" (() "(" (unary_expression) "! st->design[g]" (!) "!" (subscript_expression) "st->design[g]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (identifier) "g" (]) "]" ()) ")" (expression_statement) "st->design[g] = gset[i].ccs;" (assignment_expression) "st->design[g] = gset[i].ccs" (subscript_expression) "st->design[g]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (identifier) "g" (]) "]" (=) "=" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (}) "}" (}) "}" (preproc_ifdef) "#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif" (#ifdef) "#ifdef" (identifier) "USE_UNICODE" (expression_statement) "st->tag = NULL;" (assignment_expression) "st->tag = NULL" (field_expression) "st->tag" (identifier) "st" (->) "->" (field_identifier) "tag" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "st->ntag = 0;" (assignment_expression) "st->ntag = 0" (field_expression) "st->ntag" (identifier) "st" (->) "->" (field_identifier) "ntag" (=) "=" (number_literal) "0" (;) ";" (#endif) "#endif" (}) "}" (function_definition) "void\nwc_output_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif\n\n if (output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option)) {\n *st = output_st;\n return;\n }\n\n st->state = 0;\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs;\n st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs;\n st->design[0] = st->g0_ccs;\n st->design[1] = 0;\n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 0;\n st->ss = 0;\n\n if (ces & WC_CES_T_ISO_2022)\n wc_create_gmap(st);\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n st->tlist = NULL;\n st->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif\n\n output_st = *st;\n output_set = WC_TRUE;\n output_option = WcOption;\n}" (primitive_type) "void" (function_declarator) "wc_output_init(wc_ces ces, wc_status *st)" (identifier) "wc_output_init" (parameter_list) "(wc_ces ces, wc_status *st)" (() "(" (parameter_declaration) "wc_ces ces" (type_identifier) "wc_ces" (identifier) "ces" (,) "," (parameter_declaration) "wc_status *st" (type_identifier) "wc_status" (pointer_declarator) "*st" (*) "*" (identifier) "st" ()) ")" (compound_statement) "{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif\n\n if (output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option)) {\n *st = output_st;\n return;\n }\n\n st->state = 0;\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs;\n st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs;\n st->design[0] = st->g0_ccs;\n st->design[1] = 0;\n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 0;\n st->ss = 0;\n\n if (ces & WC_CES_T_ISO_2022)\n wc_create_gmap(st);\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n st->tlist = NULL;\n st->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif\n\n output_st = *st;\n output_set = WC_TRUE;\n output_option = WcOption;\n}" ({) "{" (declaration) "wc_gset *gset;" (type_identifier) "wc_gset" (pointer_declarator) "*gset" (*) "*" (identifier) "gset" (;) ";" (preproc_ifdef) "#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif" (#ifdef) "#ifdef" (identifier) "USE_UNICODE" (declaration) "size_t i, n, nw;" (primitive_type) "size_t" (identifier) "i" (,) "," (identifier) "n" (,) "," (identifier) "nw" (;) ";" (#endif) "#endif" (if_statement) "if (output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option)) {\n *st = output_st;\n return;\n }" (if) "if" (parenthesized_expression) "(output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option))" (() "(" (binary_expression) "output_set && ces == output_st.ces_info->id &&\n ! wc_option_cmp(&WcOption, &output_option)" (binary_expression) "output_set && ces == output_st.ces_info->id" (identifier) "output_set" (&&) "&&" (binary_expression) "ces == output_st.ces_info->id" (identifier) "ces" (==) "==" (field_expression) "output_st.ces_info->id" (field_expression) "output_st.ces_info" (identifier) "output_st" (.) "." (field_identifier) "ces_info" (->) "->" (field_identifier) "id" (&&) "&&" (unary_expression) "! wc_option_cmp(&WcOption, &output_option)" (!) "!" (call_expression) "wc_option_cmp(&WcOption, &output_option)" (identifier) "wc_option_cmp" (argument_list) "(&WcOption, &output_option)" (() "(" (pointer_expression) "&WcOption" (&) "&" (identifier) "WcOption" (,) "," (pointer_expression) "&output_option" (&) "&" (identifier) "output_option" ()) ")" ()) ")" (compound_statement) "{\n *st = output_st;\n return;\n }" ({) "{" (expression_statement) "*st = output_st;" (assignment_expression) "*st = output_st" (pointer_expression) "*st" (*) "*" (identifier) "st" (=) "=" (identifier) "output_st" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (expression_statement) "st->state = 0;" (assignment_expression) "st->state = 0" (field_expression) "st->state" (identifier) "st" (->) "->" (field_identifier) "state" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];" (assignment_expression) "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]" (field_expression) "st->ces_info" (identifier) "st" (->) "->" (field_identifier) "ces_info" (=) "=" (pointer_expression) "&WcCesInfo[WC_CES_INDEX(ces)]" (&) "&" (subscript_expression) "WcCesInfo[WC_CES_INDEX(ces)]" (identifier) "WcCesInfo" ([) "[" (call_expression) "WC_CES_INDEX(ces)" (identifier) "WC_CES_INDEX" (argument_list) "(ces)" (() "(" (identifier) "ces" ()) ")" (]) "]" (;) ";" (expression_statement) "gset = st->ces_info->gset;" (assignment_expression) "gset = st->ces_info->gset" (identifier) "gset" (=) "=" (field_expression) "st->ces_info->gset" (field_expression) "st->ces_info" (identifier) "st" (->) "->" (field_identifier) "ces_info" (->) "->" (field_identifier) "gset" (;) ";" (expression_statement) "st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs;" (assignment_expression) "st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs" (field_expression) "st->g0_ccs" (identifier) "st" (->) "->" (field_identifier) "g0_ccs" (=) "=" (conditional_expression) "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n ? WC_CCS_JIS_X_0201 : gset[0].ccs" (parenthesized_expression) "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)" (() "(" (binary_expression) "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201" (parenthesized_expression) "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3)" (() "(" (binary_expression) "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3" (binary_expression) "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2" (binary_expression) "ces == WC_CES_ISO_2022_JP" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP" (||) "||" (binary_expression) "ces == WC_CES_ISO_2022_JP_2" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP_2" (||) "||" (binary_expression) "ces == WC_CES_ISO_2022_JP_3" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP_3" ()) ")" (&&) "&&" (field_expression) "WcOption.use_jisx0201" (identifier) "WcOption" (.) "." (field_identifier) "use_jisx0201" ()) ")" (?) "?" (identifier) "WC_CCS_JIS_X_0201" (:) ":" (field_expression) "gset[0].ccs" (subscript_expression) "gset[0]" (identifier) "gset" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (expression_statement) "st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs;" (assignment_expression) "st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs" (field_expression) "st->g1_ccs" (identifier) "st" (->) "->" (field_identifier) "g1_ccs" (=) "=" (conditional_expression) "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n ? WC_CCS_JIS_C_6226 : gset[1].ccs" (parenthesized_expression) "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)" (() "(" (binary_expression) "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226" (parenthesized_expression) "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3)" (() "(" (binary_expression) "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n ces == WC_CES_ISO_2022_JP_3" (binary_expression) "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2" (binary_expression) "ces == WC_CES_ISO_2022_JP" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP" (||) "||" (binary_expression) "ces == WC_CES_ISO_2022_JP_2" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP_2" (||) "||" (binary_expression) "ces == WC_CES_ISO_2022_JP_3" (identifier) "ces" (==) "==" (identifier) "WC_CES_ISO_2022_JP_3" ()) ")" (&&) "&&" (field_expression) "WcOption.use_jisc6226" (identifier) "WcOption" (.) "." (field_identifier) "use_jisc6226" ()) ")" (?) "?" (identifier) "WC_CCS_JIS_C_6226" (:) ":" (field_expression) "gset[1].ccs" (subscript_expression) "gset[1]" (identifier) "gset" ([) "[" (number_literal) "1" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (expression_statement) "st->design[0] = st->g0_ccs;" (assignment_expression) "st->design[0] = st->g0_ccs" (subscript_expression) "st->design[0]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "0" (]) "]" (=) "=" (field_expression) "st->g0_ccs" (identifier) "st" (->) "->" (field_identifier) "g0_ccs" (;) ";" (expression_statement) "st->design[1] = 0;" (assignment_expression) "st->design[1] = 0" (subscript_expression) "st->design[1]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "1" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->design[2] = 0;" (assignment_expression) "st->design[2] = 0" (subscript_expression) "st->design[2]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "2" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->design[3] = 0;" (assignment_expression) "st->design[3] = 0" (subscript_expression) "st->design[3]" (field_expression) "st->design" (identifier) "st" (->) "->" (field_identifier) "design" ([) "[" (number_literal) "3" (]) "]" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->gl = 0;" (assignment_expression) "st->gl = 0" (field_expression) "st->gl" (identifier) "st" (->) "->" (field_identifier) "gl" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->gr = 0;" (assignment_expression) "st->gr = 0" (field_expression) "st->gr" (identifier) "st" (->) "->" (field_identifier) "gr" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "st->ss = 0;" (assignment_expression) "st->ss = 0" (field_expression) "st->ss" (identifier) "st" (->) "->" (field_identifier) "ss" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (ces & WC_CES_T_ISO_2022)\n wc_create_gmap(st);" (if) "if" (parenthesized_expression) "(ces & WC_CES_T_ISO_2022)" (() "(" (binary_expression) "ces & WC_CES_T_ISO_2022" (identifier) "ces" (&) "&" (identifier) "WC_CES_T_ISO_2022" ()) ")" (expression_statement) "wc_create_gmap(st);" (call_expression) "wc_create_gmap(st)" (identifier) "wc_create_gmap" (argument_list) "(st)" (() "(" (identifier) "st" ()) ")" (;) ";" (preproc_ifdef) "#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n st->tlist = NULL;\n st->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif" (#ifdef) "#ifdef" (identifier) "USE_UNICODE" (expression_statement) "st->tag = NULL;" (assignment_expression) "st->tag = NULL" (field_expression) "st->tag" (identifier) "st" (->) "->" (field_identifier) "tag" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "st->ntag = 0;" (assignment_expression) "st->ntag = 0" (field_expression) "st->ntag" (identifier) "st" (->) "->" (field_identifier) "ntag" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (! WcOption.ucs_conv) {\n st->tlist = NULL;\n st->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }" (if) "if" (parenthesized_expression) "(! WcOption.ucs_conv)" (() "(" (unary_expression) "! WcOption.ucs_conv" (!) "!" (field_expression) "WcOption.ucs_conv" (identifier) "WcOption" (.) "." (field_identifier) "ucs_conv" ()) ")" (compound_statement) "{\n st->tlist = NULL;\n st->tlistw = NULL;\n }" ({) "{" (expression_statement) "st->tlist = NULL;" (assignment_expression) "st->tlist = NULL" (field_expression) "st->tlist" (identifier) "st" (->) "->" (field_identifier) "tlist" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "st->tlistw = NULL;" (assignment_expression) "st->tlistw = NULL" (field_expression) "st->tlistw" (identifier) "st" (->) "->" (field_identifier) "tlistw" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (else_clause) "else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }" (else) "else" (compound_statement) "{\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }" ({) "{" (for_statement) "for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }" (for) "for" (() "(" (assignment_expression) "i = n = nw = 0" (identifier) "i" (=) "=" (assignment_expression) "n = nw = 0" (identifier) "n" (=) "=" (assignment_expression) "nw = 0" (identifier) "nw" (=) "=" (number_literal) "0" (;) ";" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;\n }" ({) "{" (if_statement) "if (WC_CCS_IS_WIDE(gset[i].ccs))\n nw++;\n else\n n++;" (if) "if" (parenthesized_expression) "(WC_CCS_IS_WIDE(gset[i].ccs))" (() "(" (call_expression) "WC_CCS_IS_WIDE(gset[i].ccs)" (identifier) "WC_CCS_IS_WIDE" (argument_list) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" ()) ")" (expression_statement) "nw++;" (update_expression) "nw++" (identifier) "nw" (++) "++" (;) ";" (else_clause) "else\n n++;" (else) "else" (expression_statement) "n++;" (update_expression) "n++" (identifier) "n" (++) "++" (;) ";" (}) "}" (expression_statement) "st->tlist = New_N(wc_table *, n + 1);" (assignment_expression) "st->tlist = New_N(wc_table *, n + 1)" (field_expression) "st->tlist" (identifier) "st" (->) "->" (field_identifier) "tlist" (=) "=" (call_expression) "New_N(wc_table *, n + 1)" (identifier) "New_N" (argument_list) "(wc_table *, n + 1)" (() "(" (binary_expression) "wc_table *, n + 1" (binary_expression) "wc_table *, n" (identifier) "wc_table" (*) "*" (ERROR) "," (,) "," (identifier) "n" (+) "+" (number_literal) "1" ()) ")" (;) ";" (expression_statement) "st->tlistw = New_N(wc_table *, nw + 1);" (assignment_expression) "st->tlistw = New_N(wc_table *, nw + 1)" (field_expression) "st->tlistw" (identifier) "st" (->) "->" (field_identifier) "tlistw" (=) "=" (call_expression) "New_N(wc_table *, nw + 1)" (identifier) "New_N" (argument_list) "(wc_table *, nw + 1)" (() "(" (binary_expression) "wc_table *, nw + 1" (binary_expression) "wc_table *, nw" (identifier) "wc_table" (*) "*" (ERROR) "," (,) "," (identifier) "nw" (+) "+" (number_literal) "1" ()) ")" (;) ";" (for_statement) "for (i = n = nw = 0; gset[i].ccs; i++) {\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }" (for) "for" (() "(" (assignment_expression) "i = n = nw = 0" (identifier) "i" (=) "=" (assignment_expression) "n = nw = 0" (identifier) "n" (=) "=" (assignment_expression) "nw = 0" (identifier) "nw" (=) "=" (number_literal) "0" (;) ";" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }\n }" ({) "{" (if_statement) "if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n } else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }" (if) "if" (parenthesized_expression) "(WC_CCS_IS_WIDE(gset[i].ccs))" (() "(" (call_expression) "WC_CCS_IS_WIDE(gset[i].ccs)" (identifier) "WC_CCS_IS_WIDE" (argument_list) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" ()) ")" (compound_statement) "{\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }\n st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n }" ({) "{" (switch_statement) "switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }" (switch) "switch" (parenthesized_expression) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" (compound_statement) "{\n case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;\n case WC_CCS_JIS_X_0213_1:\n case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;\n case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;\n }" ({) "{" (case_statement) "case WC_CCS_JIS_X_0212:\n if (! WcOption.use_jisx0212)\n continue;\n break;" (case) "case" (identifier) "WC_CCS_JIS_X_0212" (:) ":" (if_statement) "if (! WcOption.use_jisx0212)\n continue;" (if) "if" (parenthesized_expression) "(! WcOption.use_jisx0212)" (() "(" (unary_expression) "! WcOption.use_jisx0212" (!) "!" (field_expression) "WcOption.use_jisx0212" (identifier) "WcOption" (.) "." (field_identifier) "use_jisx0212" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case WC_CCS_JIS_X_0213_1:" (case) "case" (identifier) "WC_CCS_JIS_X_0213_1" (:) ":" (case_statement) "case WC_CCS_JIS_X_0213_2:\n if (! WcOption.use_jisx0213)\n continue;\n break;" (case) "case" (identifier) "WC_CCS_JIS_X_0213_2" (:) ":" (if_statement) "if (! WcOption.use_jisx0213)\n continue;" (if) "if" (parenthesized_expression) "(! WcOption.use_jisx0213)" (() "(" (unary_expression) "! WcOption.use_jisx0213" (!) "!" (field_expression) "WcOption.use_jisx0213" (identifier) "WcOption" (.) "." (field_identifier) "use_jisx0213" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case WC_CCS_GB_2312:\n if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }\n break;" (case) "case" (identifier) "WC_CCS_GB_2312" (:) ":" (if_statement) "if (WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }" (if) "if" (parenthesized_expression) "(WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030)" (() "(" (binary_expression) "WcOption.use_gb12345_map &&\n ces != WC_CES_GBK && ces != WC_CES_GB18030" (binary_expression) "WcOption.use_gb12345_map &&\n ces != WC_CES_GBK" (field_expression) "WcOption.use_gb12345_map" (identifier) "WcOption" (.) "." (field_identifier) "use_gb12345_map" (&&) "&&" (binary_expression) "ces != WC_CES_GBK" (identifier) "ces" (!=) "!=" (identifier) "WC_CES_GBK" (&&) "&&" (binary_expression) "ces != WC_CES_GB18030" (identifier) "ces" (!=) "!=" (identifier) "WC_CES_GB18030" ()) ")" (compound_statement) "{\n st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n continue;\n }" ({) "{" (expression_statement) "st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);" (assignment_expression) "st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345)" (subscript_expression) "st->tlistw[nw++]" (field_expression) "st->tlistw" (identifier) "st" (->) "->" (field_identifier) "tlistw" ([) "[" (update_expression) "nw++" (identifier) "nw" (++) "++" (]) "]" (=) "=" (call_expression) "wc_get_ucs_table(WC_CCS_GB_12345)" (identifier) "wc_get_ucs_table" (argument_list) "(WC_CCS_GB_12345)" (() "(" (identifier) "WC_CCS_GB_12345" ()) ")" (;) ";" (continue_statement) "continue;" (continue) "continue" (;) ";" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);" (assignment_expression) "st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs)" (subscript_expression) "st->tlistw[nw++]" (field_expression) "st->tlistw" (identifier) "st" (->) "->" (field_identifier) "tlistw" ([) "[" (update_expression) "nw++" (identifier) "nw" (++) "++" (]) "]" (=) "=" (call_expression) "wc_get_ucs_table(gset[i].ccs)" (identifier) "wc_get_ucs_table" (argument_list) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }" (else) "else" (compound_statement) "{\n switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }\n st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n }" ({) "{" (switch_statement) "switch (gset[i].ccs) {\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }" (switch) "switch" (parenthesized_expression) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" (compound_statement) "{\n case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;\n }" ({) "{" (case_statement) "case WC_CCS_JIS_X_0201K:\n if (! WcOption.use_jisx0201k)\n continue;\n break;" (case) "case" (identifier) "WC_CCS_JIS_X_0201K" (:) ":" (if_statement) "if (! WcOption.use_jisx0201k)\n continue;" (if) "if" (parenthesized_expression) "(! WcOption.use_jisx0201k)" (() "(" (unary_expression) "! WcOption.use_jisx0201k" (!) "!" (field_expression) "WcOption.use_jisx0201k" (identifier) "WcOption" (.) "." (field_identifier) "use_jisx0201k" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);" (assignment_expression) "st->tlist[n++] = wc_get_ucs_table(gset[i].ccs)" (subscript_expression) "st->tlist[n++]" (field_expression) "st->tlist" (identifier) "st" (->) "->" (field_identifier) "tlist" ([) "[" (update_expression) "n++" (identifier) "n" (++) "++" (]) "]" (=) "=" (call_expression) "wc_get_ucs_table(gset[i].ccs)" (identifier) "wc_get_ucs_table" (argument_list) "(gset[i].ccs)" (() "(" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "st->tlist[n] = NULL;" (assignment_expression) "st->tlist[n] = NULL" (subscript_expression) "st->tlist[n]" (field_expression) "st->tlist" (identifier) "st" (->) "->" (field_identifier) "tlist" ([) "[" (identifier) "n" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "st->tlistw[nw] = NULL;" (assignment_expression) "st->tlistw[nw] = NULL" (subscript_expression) "st->tlistw[nw]" (field_expression) "st->tlistw" (identifier) "st" (->) "->" (field_identifier) "tlistw" ([) "[" (identifier) "nw" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (#endif) "#endif" (expression_statement) "output_st = *st;" (assignment_expression) "output_st = *st" (identifier) "output_st" (=) "=" (pointer_expression) "*st" (*) "*" (identifier) "st" (;) ";" (expression_statement) "output_set = WC_TRUE;" (assignment_expression) "output_set = WC_TRUE" (identifier) "output_set" (=) "=" (identifier) "WC_TRUE" (;) ";" (expression_statement) "output_option = WcOption;" (assignment_expression) "output_option = WcOption" (identifier) "output_option" (=) "=" (identifier) "WcOption" (;) ";" (}) "}" (function_definition) "wc_bool\nwc_ces_has_ccs(wc_ccs ccs, wc_status *st)\n{\n wc_gset *gset = st->ces_info->gset;\n int i;\n\n for (i = 0; gset[i].ccs; i++) {\n if (ccs == gset[i].ccs)\n return WC_TRUE;\n }\n return WC_FALSE;\n}" (type_identifier) "wc_bool" (function_declarator) "wc_ces_has_ccs(wc_ccs ccs, wc_status *st)" (identifier) "wc_ces_has_ccs" (parameter_list) "(wc_ccs ccs, wc_status *st)" (() "(" (parameter_declaration) "wc_ccs ccs" (type_identifier) "wc_ccs" (identifier) "ccs" (,) "," (parameter_declaration) "wc_status *st" (type_identifier) "wc_status" (pointer_declarator) "*st" (*) "*" (identifier) "st" ()) ")" (compound_statement) "{\n wc_gset *gset = st->ces_info->gset;\n int i;\n\n for (i = 0; gset[i].ccs; i++) {\n if (ccs == gset[i].ccs)\n return WC_TRUE;\n }\n return WC_FALSE;\n}" ({) "{" (declaration) "wc_gset *gset = st->ces_info->gset;" (type_identifier) "wc_gset" (init_declarator) "*gset = st->ces_info->gset" (pointer_declarator) "*gset" (*) "*" (identifier) "gset" (=) "=" (field_expression) "st->ces_info->gset" (field_expression) "st->ces_info" (identifier) "st" (->) "->" (field_identifier) "ces_info" (->) "->" (field_identifier) "gset" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for (i = 0; gset[i].ccs; i++) {\n if (ccs == gset[i].ccs)\n return WC_TRUE;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if (ccs == gset[i].ccs)\n return WC_TRUE;\n }" ({) "{" (if_statement) "if (ccs == gset[i].ccs)\n return WC_TRUE;" (if) "if" (parenthesized_expression) "(ccs == gset[i].ccs)" (() "(" (binary_expression) "ccs == gset[i].ccs" (identifier) "ccs" (==) "==" (field_expression) "gset[i].ccs" (subscript_expression) "gset[i]" (identifier) "gset" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "ccs" ()) ")" (return_statement) "return WC_TRUE;" (return) "return" (identifier) "WC_TRUE" (;) ";" (}) "}" (return_statement) "return WC_FALSE;" (return) "return" (identifier) "WC_FALSE" (;) ";" (}) "}"
1,306
2
{"language": "c", "success": true, "metadata": {"lines": 155, "avg_line_length": 24.46, "nodes": 822, "errors": 0, "source_hash": "450efc2070b88b11609a62023b69912a96f828c3b111c33e54ac912ddae9c635", "categorized_nodes": 653}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<string.h>", "parent": 0, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <gc.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<gc.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 15}}, {"id": 6, "type": "preproc_function_def", "text": "#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n", "parent": null, "children": [7, 8, 9, 12], "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": "New_N", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 13}}, {"id": 9, "type": "preproc_params", "text": "(type,n)", "parent": 6, "children": [10, 11], "start_point": {"row": 3, "column": 13}, "end_point": {"row": 3, "column": 21}}, {"id": 10, "type": "identifier", "text": "type", "parent": 9, "children": [], "start_point": {"row": 3, "column": 14}, "end_point": {"row": 3, "column": 18}}, {"id": 11, "type": "identifier", "text": "n", "parent": 9, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 20}}, {"id": 12, "type": "preproc_arg", "text": "((type*)GC_MALLOC((n)*sizeof(type)))", "parent": 6, "children": [], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 58}}, {"id": 13, "type": "preproc_include", "text": "#include \"wc.h\"\n", "parent": null, "children": [14, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 15, "type": "string_literal", "text": "\"wc.h\"", "parent": 13, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 16, "type": "preproc_ifdef", "text": "#ifdef USE_UNICODE\n#include \"ucs.h\"\n#endif", "parent": null, "children": [17, 18, 19, 22], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 17, "type": "#ifdef", "text": "#ifdef", "parent": 16, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 18, "type": "identifier", "text": "USE_UNICODE", "parent": 16, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 18}}, {"id": 19, "type": "preproc_include", "text": "#include \"ucs.h\"\n", "parent": 16, "children": [20, 21], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 21, "type": "string_literal", "text": "\"ucs.h\"", "parent": 19, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 16}}, {"id": 22, "type": "#endif", "text": "#endif", "parent": 16, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 23, "type": "declaration", "text": "wc_option WcOption = {\n WC_OPT_DETECT_ON,\t/* auto_detect */\n WC_TRUE,\t\t/* use_combining */\n WC_TRUE,\t\t/* use_language_tag */\n WC_TRUE,\t\t/* ucs_conv */\n WC_FALSE,\t\t/* pre_conv */\n WC_TRUE,\t\t/* fix_width_conv */\n WC_FALSE,\t\t/* use_gb12345_map */\n WC_FALSE,\t\t/* use_jisx0201 */\n WC_FALSE,\t\t/* use_jisc6226 */\n WC_FALSE,\t\t/* use_jisx0201k */\n WC_FALSE,\t\t/* use_jisx0212 */\n WC_FALSE,\t\t/* use_jisx0213 */\n WC_TRUE,\t\t/* strict_iso2022 */\n WC_FALSE,\t\t/* gb18030_as_ucs */\n WC_FALSE,\t\t/* no_replace */\n WC_TRUE,\t\t/* use_wide */\n WC_FALSE,\t\t/* east_asian_width */\n};", "parent": null, "children": [24, 25], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 28, "column": 2}}, {"id": 24, "type": "type_identifier", "text": "wc_option", "parent": 23, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 25, "type": "init_declarator", "text": "WcOption = {\n WC_OPT_DETECT_ON,\t/* auto_detect */\n WC_TRUE,\t\t/* use_combining */\n WC_TRUE,\t\t/* use_language_tag */\n WC_TRUE,\t\t/* ucs_conv */\n WC_FALSE,\t\t/* pre_conv */\n WC_TRUE,\t\t/* fix_width_conv */\n WC_FALSE,\t\t/* use_gb12345_map */\n WC_FALSE,\t\t/* use_jisx0201 */\n WC_FALSE,\t\t/* use_jisc6226 */\n WC_FALSE,\t\t/* use_jisx0201k */\n WC_FALSE,\t\t/* use_jisx0212 */\n WC_FALSE,\t\t/* use_jisx0213 */\n WC_TRUE,\t\t/* strict_iso2022 */\n WC_FALSE,\t\t/* gb18030_as_ucs */\n WC_FALSE,\t\t/* no_replace */\n WC_TRUE,\t\t/* use_wide */\n WC_FALSE,\t\t/* east_asian_width */\n}", "parent": 23, "children": [26, 27, 28], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 28, "column": 1}}, {"id": 26, "type": "identifier", "text": "WcOption", "parent": 25, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 18}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 20}}, {"id": 28, "type": "initializer_list", "text": "{\n WC_OPT_DETECT_ON,\t/* auto_detect */\n WC_TRUE,\t\t/* use_combining */\n WC_TRUE,\t\t/* use_language_tag */\n WC_TRUE,\t\t/* ucs_conv */\n WC_FALSE,\t\t/* pre_conv */\n WC_TRUE,\t\t/* fix_width_conv */\n WC_FALSE,\t\t/* use_gb12345_map */\n WC_FALSE,\t\t/* use_jisx0201 */\n WC_FALSE,\t\t/* use_jisc6226 */\n WC_FALSE,\t\t/* use_jisx0201k */\n WC_FALSE,\t\t/* use_jisx0212 */\n WC_FALSE,\t\t/* use_jisx0213 */\n WC_TRUE,\t\t/* strict_iso2022 */\n WC_FALSE,\t\t/* gb18030_as_ucs */\n WC_FALSE,\t\t/* no_replace */\n WC_TRUE,\t\t/* use_wide */\n WC_FALSE,\t\t/* east_asian_width */\n}", "parent": 25, "children": [29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 28, "column": 1}}, {"id": 29, "type": "identifier", "text": "WC_OPT_DETECT_ON", "parent": 28, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 20}}, {"id": 30, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 11}}, {"id": 31, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 11}}, {"id": 32, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 11}}, {"id": 33, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 12}}, {"id": 34, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 11}}, {"id": 35, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 36, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 12}}, {"id": 37, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 12}}, {"id": 38, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 12}}, {"id": 39, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 12}}, {"id": 40, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 12}}, {"id": 41, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 42, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 43, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 44, "type": "identifier", "text": "WC_TRUE", "parent": 28, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 45, "type": "identifier", "text": "WC_FALSE", "parent": 28, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 46, "type": "declaration", "text": "static wc_status output_st;", "parent": null, "children": [47, 48], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 27}}, {"id": 47, "type": "type_identifier", "text": "wc_status", "parent": 46, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 16}}, {"id": 48, "type": "identifier", "text": "output_st", "parent": 46, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 26}}, {"id": 49, "type": "declaration", "text": "static wc_option output_option;", "parent": null, "children": [50, 51], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 31}}, {"id": 50, "type": "type_identifier", "text": "wc_option", "parent": 49, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 16}}, {"id": 51, "type": "identifier", "text": "output_option", "parent": 49, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 30}}, {"id": 52, "type": "declaration", "text": "static wc_bool output_set = WC_FALSE;", "parent": null, "children": [53, 54], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 37}}, {"id": 53, "type": "type_identifier", "text": "wc_bool", "parent": 52, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 14}}, {"id": 54, "type": "init_declarator", "text": "output_set = WC_FALSE", "parent": 52, "children": [55, 56, 57], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 36}}, {"id": 55, "type": "identifier", "text": "output_set", "parent": 54, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 25}}, {"id": 56, "type": "=", "text": "=", "parent": 54, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 27}}, {"id": 57, "type": "identifier", "text": "WC_FALSE", "parent": 54, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 36}}, {"id": 58, "type": "preproc_function_def", "text": "#define wc_option_cmp(opt1, opt2) \\\n memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))\n", "parent": null, "children": [59, 60, 61, 64], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 60, "type": "identifier", "text": "wc_option_cmp", "parent": 58, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 21}}, {"id": 61, "type": "preproc_params", "text": "(opt1, opt2)", "parent": 58, "children": [62, 63], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 33}}, {"id": 62, "type": "identifier", "text": "opt1", "parent": 61, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 26}}, {"id": 63, "type": "identifier", "text": "opt2", "parent": 61, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 32}}, {"id": 64, "type": "preproc_arg", "text": "memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))", "parent": 58, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 61}}, {"id": 65, "type": "function_definition", "text": "void\nwc_input_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n int i, g;\n\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->state = 0;\n st->g0_ccs = 0;\n st->g1_ccs = 0;\n st->design[0] = gset[0].ccs;\n st->design[1] = gset[1].ccs;\t/* for ISO-2022-JP/EUC-JP */ \n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 1;\n st->ss = 0;\n\n for (i = 0; gset[i].ccs; i++) {\n\tif (gset[i].init) {\n\t g = gset[i].g & 0x03;\n\t if (! st->design[g])\n\t\tst->design[g] = gset[i].ccs;\n\t}\n }\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif\n}", "parent": null, "children": [66, 67], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 66, "type": "primitive_type", "text": "void", "parent": 65, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 67, "type": "function_declarator", "text": "wc_input_init(wc_ces ces, wc_status *st)", "parent": 65, "children": [68, 69], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 40}}, {"id": 68, "type": "identifier", "text": "wc_input_init", "parent": 67, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 13}}, {"id": 69, "type": "parameter_list", "text": "(wc_ces ces, wc_status *st)", "parent": 67, "children": [70, 73], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 40}}, {"id": 70, "type": "parameter_declaration", "text": "wc_ces ces", "parent": 69, "children": [71, 72], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 24}}, {"id": 71, "type": "type_identifier", "text": "wc_ces", "parent": 70, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 20}}, {"id": 72, "type": "identifier", "text": "ces", "parent": 70, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 24}}, {"id": 73, "type": "parameter_declaration", "text": "wc_status *st", "parent": 69, "children": [74, 75], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 39}}, {"id": 74, "type": "type_identifier", "text": "wc_status", "parent": 73, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 35}}, {"id": 75, "type": "pointer_declarator", "text": "*st", "parent": 73, "children": [76, 77], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 39}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 37}}, {"id": 77, "type": "identifier", "text": "st", "parent": 75, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 39}}, {"id": 78, "type": "declaration", "text": "wc_gset *gset;", "parent": 65, "children": [79, 80], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 18}}, {"id": 79, "type": "type_identifier", "text": "wc_gset", "parent": 78, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 11}}, {"id": 80, "type": "pointer_declarator", "text": "*gset", "parent": 78, "children": [81, 82], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 17}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 13}}, {"id": 82, "type": "identifier", "text": "gset", "parent": 80, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 17}}, {"id": 83, "type": "declaration", "text": "int i, g;", "parent": 65, "children": [84, 85, 86], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 13}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 85, "type": "identifier", "text": "i", "parent": 83, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 9}}, {"id": 86, "type": "identifier", "text": "g", "parent": 83, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 87, "type": "assignment_expression", "text": "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]", "parent": 65, "children": [88, 91, 92], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 48}}, {"id": 88, "type": "field_expression", "text": "st->ces_info", "parent": 87, "children": [89, 90], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 16}}, {"id": 89, "type": "identifier", "text": "st", "parent": 88, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 6}}, {"id": 90, "type": "field_identifier", "text": "ces_info", "parent": 88, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 16}}, {"id": 91, "type": "=", "text": "=", "parent": 87, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 18}}, {"id": 92, "type": "pointer_expression", "text": "&WcCesInfo[WC_CES_INDEX(ces)]", "parent": 87, "children": [93], "start_point": {"row": 43, "column": 19}, "end_point": {"row": 43, "column": 48}}, {"id": 93, "type": "subscript_expression", "text": "WcCesInfo[WC_CES_INDEX(ces)]", "parent": 92, "children": [94, 95], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 48}}, {"id": 94, "type": "identifier", "text": "WcCesInfo", "parent": 93, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 29}}, {"id": 95, "type": "call_expression", "text": "WC_CES_INDEX(ces)", "parent": 93, "children": [96, 97], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 47}}, {"id": 96, "type": "identifier", "text": "WC_CES_INDEX", "parent": 95, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 42}}, {"id": 97, "type": "argument_list", "text": "(ces)", "parent": 95, "children": [98], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 47}}, {"id": 98, "type": "identifier", "text": "ces", "parent": 97, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 46}}, {"id": 99, "type": "assignment_expression", "text": "gset = st->ces_info->gset", "parent": 65, "children": [100, 101, 102], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 29}}, {"id": 100, "type": "identifier", "text": "gset", "parent": 99, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 101, "type": "=", "text": "=", "parent": 99, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 10}}, {"id": 102, "type": "field_expression", "text": "st->ces_info->gset", "parent": 99, "children": [103, 106], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 29}}, {"id": 103, "type": "field_expression", "text": "st->ces_info", "parent": 102, "children": [104, 105], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 23}}, {"id": 104, "type": "identifier", "text": "st", "parent": 103, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 13}}, {"id": 105, "type": "field_identifier", "text": "ces_info", "parent": 103, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 23}}, {"id": 106, "type": "field_identifier", "text": "gset", "parent": 102, "children": [], "start_point": {"row": 44, "column": 25}, "end_point": {"row": 44, "column": 29}}, {"id": 107, "type": "assignment_expression", "text": "st->state = 0", "parent": 65, "children": [108, 111, 112], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 17}}, {"id": 108, "type": "field_expression", "text": "st->state", "parent": 107, "children": [109, 110], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 13}}, {"id": 109, "type": "identifier", "text": "st", "parent": 108, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 6}}, {"id": 110, "type": "field_identifier", "text": "state", "parent": 108, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 13}}, {"id": 111, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 46, "column": 14}, "end_point": {"row": 46, "column": 15}}, {"id": 112, "type": "number_literal", "text": "0", "parent": 107, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 17}}, {"id": 113, "type": "assignment_expression", "text": "st->g0_ccs = 0", "parent": 65, "children": [114, 117, 118], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 18}}, {"id": 114, "type": "field_expression", "text": "st->g0_ccs", "parent": 113, "children": [115, 116], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 14}}, {"id": 115, "type": "identifier", "text": "st", "parent": 114, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 6}}, {"id": 116, "type": "field_identifier", "text": "g0_ccs", "parent": 114, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 14}}, {"id": 117, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 118, "type": "number_literal", "text": "0", "parent": 113, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 18}}, {"id": 119, "type": "assignment_expression", "text": "st->g1_ccs = 0", "parent": 65, "children": [120, 123, 124], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 18}}, {"id": 120, "type": "field_expression", "text": "st->g1_ccs", "parent": 119, "children": [121, 122], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 14}}, {"id": 121, "type": "identifier", "text": "st", "parent": 120, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 6}}, {"id": 122, "type": "field_identifier", "text": "g1_ccs", "parent": 120, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 14}}, {"id": 123, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 16}}, {"id": 124, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 125, "type": "assignment_expression", "text": "st->design[0] = gset[0].ccs", "parent": 65, "children": [126, 131, 132], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 31}}, {"id": 126, "type": "subscript_expression", "text": "st->design[0]", "parent": 125, "children": [127, 130], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 17}}, {"id": 127, "type": "field_expression", "text": "st->design", "parent": 126, "children": [128, 129], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 14}}, {"id": 128, "type": "identifier", "text": "st", "parent": 127, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 6}}, {"id": 129, "type": "field_identifier", "text": "design", "parent": 127, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 130, "type": "number_literal", "text": "0", "parent": 126, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 16}}, {"id": 131, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 19}}, {"id": 132, "type": "field_expression", "text": "gset[0].ccs", "parent": 125, "children": [133, 136], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 31}}, {"id": 133, "type": "subscript_expression", "text": "gset[0]", "parent": 132, "children": [134, 135], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 27}}, {"id": 134, "type": "identifier", "text": "gset", "parent": 133, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 24}}, {"id": 135, "type": "number_literal", "text": "0", "parent": 133, "children": [], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 26}}, {"id": 136, "type": "field_identifier", "text": "ccs", "parent": 132, "children": [], "start_point": {"row": 49, "column": 28}, "end_point": {"row": 49, "column": 31}}, {"id": 137, "type": "assignment_expression", "text": "st->design[1] = gset[1].ccs", "parent": 65, "children": [138, 143, 144], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 31}}, {"id": 138, "type": "subscript_expression", "text": "st->design[1]", "parent": 137, "children": [139, 142], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 17}}, {"id": 139, "type": "field_expression", "text": "st->design", "parent": 138, "children": [140, 141], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 14}}, {"id": 140, "type": "identifier", "text": "st", "parent": 139, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 6}}, {"id": 141, "type": "field_identifier", "text": "design", "parent": 139, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 14}}, {"id": 142, "type": "number_literal", "text": "1", "parent": 138, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 16}}, {"id": 143, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 19}}, {"id": 144, "type": "field_expression", "text": "gset[1].ccs", "parent": 137, "children": [145, 148], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 31}}, {"id": 145, "type": "subscript_expression", "text": "gset[1]", "parent": 144, "children": [146, 147], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 27}}, {"id": 146, "type": "identifier", "text": "gset", "parent": 145, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 24}}, {"id": 147, "type": "number_literal", "text": "1", "parent": 145, "children": [], "start_point": {"row": 50, "column": 25}, "end_point": {"row": 50, "column": 26}}, {"id": 148, "type": "field_identifier", "text": "ccs", "parent": 144, "children": [], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 31}}, {"id": 149, "type": "assignment_expression", "text": "st->design[2] = 0", "parent": 65, "children": [150, 155, 156], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 21}}, {"id": 150, "type": "subscript_expression", "text": "st->design[2]", "parent": 149, "children": [151, 154], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 17}}, {"id": 151, "type": "field_expression", "text": "st->design", "parent": 150, "children": [152, 153], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 14}}, {"id": 152, "type": "identifier", "text": "st", "parent": 151, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 6}}, {"id": 153, "type": "field_identifier", "text": "design", "parent": 151, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 154, "type": "number_literal", "text": "2", "parent": 150, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 16}}, {"id": 155, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 19}}, {"id": 156, "type": "number_literal", "text": "0", "parent": 149, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 21}}, {"id": 157, "type": "assignment_expression", "text": "st->design[3] = 0", "parent": 65, "children": [158, 163, 164], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 21}}, {"id": 158, "type": "subscript_expression", "text": "st->design[3]", "parent": 157, "children": [159, 162], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 17}}, {"id": 159, "type": "field_expression", "text": "st->design", "parent": 158, "children": [160, 161], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 14}}, {"id": 160, "type": "identifier", "text": "st", "parent": 159, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 6}}, {"id": 161, "type": "field_identifier", "text": "design", "parent": 159, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 14}}, {"id": 162, "type": "number_literal", "text": "3", "parent": 158, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 16}}, {"id": 163, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 164, "type": "number_literal", "text": "0", "parent": 157, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 165, "type": "assignment_expression", "text": "st->gl = 0", "parent": 65, "children": [166, 169, 170], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 14}}, {"id": 166, "type": "field_expression", "text": "st->gl", "parent": 165, "children": [167, 168], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 10}}, {"id": 167, "type": "identifier", "text": "st", "parent": 166, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 6}}, {"id": 168, "type": "field_identifier", "text": "gl", "parent": 166, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 10}}, {"id": 169, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 12}}, {"id": 170, "type": "number_literal", "text": "0", "parent": 165, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 171, "type": "assignment_expression", "text": "st->gr = 1", "parent": 65, "children": [172, 175, 176], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 14}}, {"id": 172, "type": "field_expression", "text": "st->gr", "parent": 171, "children": [173, 174], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 10}}, {"id": 173, "type": "identifier", "text": "st", "parent": 172, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 6}}, {"id": 174, "type": "field_identifier", "text": "gr", "parent": 172, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 10}}, {"id": 175, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 12}}, {"id": 176, "type": "number_literal", "text": "1", "parent": 171, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 14}}, {"id": 177, "type": "assignment_expression", "text": "st->ss = 0", "parent": 65, "children": [178, 181, 182], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 14}}, {"id": 178, "type": "field_expression", "text": "st->ss", "parent": 177, "children": [179, 180], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 10}}, {"id": 179, "type": "identifier", "text": "st", "parent": 178, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 6}}, {"id": 180, "type": "field_identifier", "text": "ss", "parent": 178, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 10}}, {"id": 181, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}, {"id": 182, "type": "number_literal", "text": "0", "parent": 177, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 14}}, {"id": 183, "type": "for_statement", "text": "for (i = 0; gset[i].ccs; i++) {\n\tif (gset[i].init) {\n\t g = gset[i].g & 0x03;\n\t if (! st->design[g])\n\t\tst->design[g] = gset[i].ccs;\n\t}\n }", "parent": 65, "children": [184, 188, 193], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 184, "type": "assignment_expression", "text": "i = 0", "parent": 183, "children": [185, 186, 187], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 14}}, {"id": 185, "type": "identifier", "text": "i", "parent": 184, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 10}}, {"id": 186, "type": "=", "text": "=", "parent": 184, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 12}}, {"id": 187, "type": "number_literal", "text": "0", "parent": 184, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 188, "type": "field_expression", "text": "gset[i].ccs", "parent": 183, "children": [189, 192], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 27}}, {"id": 189, "type": "subscript_expression", "text": "gset[i]", "parent": 188, "children": [190, 191], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 23}}, {"id": 190, "type": "identifier", "text": "gset", "parent": 189, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 20}}, {"id": 191, "type": "identifier", "text": "i", "parent": 189, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 22}}, {"id": 192, "type": "field_identifier", "text": "ccs", "parent": 188, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 27}}, {"id": 193, "type": "update_expression", "text": "i++", "parent": 183, "children": [194, 195], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 32}}, {"id": 194, "type": "identifier", "text": "i", "parent": 193, "children": [], "start_point": {"row": 57, "column": 29}, "end_point": {"row": 57, "column": 30}}, {"id": 195, "type": "++", "text": "++", "parent": 193, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 32}}, {"id": 196, "type": "if_statement", "text": "if (gset[i].init) {\n\t g = gset[i].g & 0x03;\n\t if (! st->design[g])\n\t\tst->design[g] = gset[i].ccs;\n\t}", "parent": 183, "children": [197], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 62, "column": 2}}, {"id": 197, "type": "parenthesized_expression", "text": "(gset[i].init)", "parent": 196, "children": [198], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 18}}, {"id": 198, "type": "field_expression", "text": "gset[i].init", "parent": 197, "children": [199, 202], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 17}}, {"id": 199, "type": "subscript_expression", "text": "gset[i]", "parent": 198, "children": [200, 201], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 12}}, {"id": 200, "type": "identifier", "text": "gset", "parent": 199, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 9}}, {"id": 201, "type": "identifier", "text": "i", "parent": 199, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 202, "type": "field_identifier", "text": "init", "parent": 198, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 17}}, {"id": 203, "type": "assignment_expression", "text": "g = gset[i].g & 0x03", "parent": 196, "children": [204, 205, 206], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 25}}, {"id": 204, "type": "identifier", "text": "g", "parent": 203, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 6}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 206, "type": "binary_expression", "text": "gset[i].g & 0x03", "parent": 203, "children": [207, 212], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 25}}, {"id": 207, "type": "field_expression", "text": "gset[i].g", "parent": 206, "children": [208, 211], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 18}}, {"id": 208, "type": "subscript_expression", "text": "gset[i]", "parent": 207, "children": [209, 210], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 16}}, {"id": 209, "type": "identifier", "text": "gset", "parent": 208, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 13}}, {"id": 210, "type": "identifier", "text": "i", "parent": 208, "children": [], "start_point": {"row": 59, "column": 14}, "end_point": {"row": 59, "column": 15}}, {"id": 211, "type": "field_identifier", "text": "g", "parent": 207, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 212, "type": "number_literal", "text": "0x03", "parent": 206, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 25}}, {"id": 213, "type": "if_statement", "text": "if (! st->design[g])\n\t\tst->design[g] = gset[i].ccs;", "parent": 196, "children": [214], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 61, "column": 30}}, {"id": 214, "type": "parenthesized_expression", "text": "(! st->design[g])", "parent": 213, "children": [215], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 25}}, {"id": 215, "type": "unary_expression", "text": "! st->design[g]", "parent": 214, "children": [216, 217], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 24}}, {"id": 216, "type": "!", "text": "!", "parent": 215, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 10}}, {"id": 217, "type": "subscript_expression", "text": "st->design[g]", "parent": 215, "children": [218, 221], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 24}}, {"id": 218, "type": "field_expression", "text": "st->design", "parent": 217, "children": [219, 220], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 21}}, {"id": 219, "type": "identifier", "text": "st", "parent": 218, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 13}}, {"id": 220, "type": "field_identifier", "text": "design", "parent": 218, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 21}}, {"id": 221, "type": "identifier", "text": "g", "parent": 217, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 222, "type": "assignment_expression", "text": "st->design[g] = gset[i].ccs", "parent": 213, "children": [223, 228, 229], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 29}}, {"id": 223, "type": "subscript_expression", "text": "st->design[g]", "parent": 222, "children": [224, 227], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 15}}, {"id": 224, "type": "field_expression", "text": "st->design", "parent": 223, "children": [225, 226], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 12}}, {"id": 225, "type": "identifier", "text": "st", "parent": 224, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 4}}, {"id": 226, "type": "field_identifier", "text": "design", "parent": 224, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 12}}, {"id": 227, "type": "identifier", "text": "g", "parent": 223, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 14}}, {"id": 228, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 229, "type": "field_expression", "text": "gset[i].ccs", "parent": 222, "children": [230, 233], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 29}}, {"id": 230, "type": "subscript_expression", "text": "gset[i]", "parent": 229, "children": [231, 232], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 25}}, {"id": 231, "type": "identifier", "text": "gset", "parent": 230, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 22}}, {"id": 232, "type": "identifier", "text": "i", "parent": 230, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 233, "type": "field_identifier", "text": "ccs", "parent": 229, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 29}}, {"id": 234, "type": "preproc_ifdef", "text": "#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif", "parent": 65, "children": [235, 236, 250], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 235, "type": "#ifdef", "text": "#ifdef", "parent": 234, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 236, "type": "identifier", "text": "USE_UNICODE", "parent": 234, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 18}}, {"id": 237, "type": "assignment_expression", "text": "st->tag = NULL", "parent": 234, "children": [238, 241, 242], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 18}}, {"id": 238, "type": "field_expression", "text": "st->tag", "parent": 237, "children": [239, 240], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 11}}, {"id": 239, "type": "identifier", "text": "st", "parent": 238, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 6}}, {"id": 240, "type": "field_identifier", "text": "tag", "parent": 238, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 11}}, {"id": 241, "type": "=", "text": "=", "parent": 237, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 242, "type": "null", "text": "NULL", "parent": 237, "children": [243], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 18}}, {"id": 243, "type": "NULL", "text": "NULL", "parent": 242, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 18}}, {"id": 244, "type": "assignment_expression", "text": "st->ntag = 0", "parent": 234, "children": [245, 248, 249], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 16}}, {"id": 245, "type": "field_expression", "text": "st->ntag", "parent": 244, "children": [246, 247], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 12}}, {"id": 246, "type": "identifier", "text": "st", "parent": 245, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 6}}, {"id": 247, "type": "field_identifier", "text": "ntag", "parent": 245, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 12}}, {"id": 248, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 67, "column": 13}, "end_point": {"row": 67, "column": 14}}, {"id": 249, "type": "number_literal", "text": "0", "parent": 244, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 16}}, {"id": 250, "type": "#endif", "text": "#endif", "parent": 234, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}, {"id": 251, "type": "function_definition", "text": "void\nwc_output_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif\n\n if (output_set && ces == output_st.ces_info->id &&\n\t! wc_option_cmp(&WcOption, &output_option)) {\n\t*st = output_st;\n\treturn;\n }\n\n st->state = 0;\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n\t? WC_CCS_JIS_X_0201 : gset[0].ccs;\n st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n\t? WC_CCS_JIS_C_6226 : gset[1].ccs;\n st->design[0] = st->g0_ccs;\n st->design[1] = 0;\n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 0;\n st->ss = 0;\n\n if (ces & WC_CES_T_ISO_2022)\n\twc_create_gmap(st);\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n\tst->tlist = NULL;\n\tst->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif\n\n output_st = *st;\n output_set = WC_TRUE;\n output_option = WcOption;\n}", "parent": null, "children": [252, 253], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 162, "column": 1}}, {"id": 252, "type": "primitive_type", "text": "void", "parent": 251, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 4}}, {"id": 253, "type": "function_declarator", "text": "wc_output_init(wc_ces ces, wc_status *st)", "parent": 251, "children": [254, 255], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 41}}, {"id": 254, "type": "identifier", "text": "wc_output_init", "parent": 253, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 14}}, {"id": 255, "type": "parameter_list", "text": "(wc_ces ces, wc_status *st)", "parent": 253, "children": [256, 259], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 41}}, {"id": 256, "type": "parameter_declaration", "text": "wc_ces ces", "parent": 255, "children": [257, 258], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 25}}, {"id": 257, "type": "type_identifier", "text": "wc_ces", "parent": 256, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 21}}, {"id": 258, "type": "identifier", "text": "ces", "parent": 256, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 25}}, {"id": 259, "type": "parameter_declaration", "text": "wc_status *st", "parent": 255, "children": [260, 261], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 40}}, {"id": 260, "type": "type_identifier", "text": "wc_status", "parent": 259, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 36}}, {"id": 261, "type": "pointer_declarator", "text": "*st", "parent": 259, "children": [262, 263], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 40}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 72, "column": 37}, "end_point": {"row": 72, "column": 38}}, {"id": 263, "type": "identifier", "text": "st", "parent": 261, "children": [], "start_point": {"row": 72, "column": 38}, "end_point": {"row": 72, "column": 40}}, {"id": 264, "type": "declaration", "text": "wc_gset *gset;", "parent": 251, "children": [265, 266], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 18}}, {"id": 265, "type": "type_identifier", "text": "wc_gset", "parent": 264, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 266, "type": "pointer_declarator", "text": "*gset", "parent": 264, "children": [267, 268], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 17}}, {"id": 267, "type": "*", "text": "*", "parent": 266, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 13}}, {"id": 268, "type": "identifier", "text": "gset", "parent": 266, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 17}}, {"id": 269, "type": "preproc_ifdef", "text": "#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif", "parent": 251, "children": [270, 271, 272, 277], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 270, "type": "#ifdef", "text": "#ifdef", "parent": 269, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 271, "type": "identifier", "text": "USE_UNICODE", "parent": 269, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 18}}, {"id": 272, "type": "declaration", "text": "size_t i, n, nw;", "parent": 269, "children": [273, 274, 275, 276], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 20}}, {"id": 273, "type": "primitive_type", "text": "size_t", "parent": 272, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 274, "type": "identifier", "text": "i", "parent": 272, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 12}}, {"id": 275, "type": "identifier", "text": "n", "parent": 272, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 15}}, {"id": 276, "type": "identifier", "text": "nw", "parent": 272, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 19}}, {"id": 277, "type": "#endif", "text": "#endif", "parent": 269, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 278, "type": "if_statement", "text": "if (output_set && ces == output_st.ces_info->id &&\n\t! wc_option_cmp(&WcOption, &output_option)) {\n\t*st = output_st;\n\treturn;\n }", "parent": 251, "children": [279], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 83, "column": 5}}, {"id": 279, "type": "parenthesized_expression", "text": "(output_set && ces == output_st.ces_info->id &&\n\t! wc_option_cmp(&WcOption, &output_option))", "parent": 278, "children": [280], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 80, "column": 44}}, {"id": 280, "type": "binary_expression", "text": "output_set && ces == output_st.ces_info->id &&\n\t! wc_option_cmp(&WcOption, &output_option)", "parent": 279, "children": [281, 292, 293], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 80, "column": 43}}, {"id": 281, "type": "binary_expression", "text": "output_set && ces == output_st.ces_info->id", "parent": 280, "children": [282, 283, 284], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 51}}, {"id": 282, "type": "identifier", "text": "output_set", "parent": 281, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 18}}, {"id": 283, "type": "&&", "text": "&&", "parent": 281, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 21}}, {"id": 284, "type": "binary_expression", "text": "ces == output_st.ces_info->id", "parent": 281, "children": [285, 286, 287], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 51}}, {"id": 285, "type": "identifier", "text": "ces", "parent": 284, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 25}}, {"id": 286, "type": "==", "text": "==", "parent": 284, "children": [], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 28}}, {"id": 287, "type": "field_expression", "text": "output_st.ces_info->id", "parent": 284, "children": [288, 291], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 51}}, {"id": 288, "type": "field_expression", "text": "output_st.ces_info", "parent": 287, "children": [289, 290], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 47}}, {"id": 289, "type": "identifier", "text": "output_st", "parent": 288, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 38}}, {"id": 290, "type": "field_identifier", "text": "ces_info", "parent": 288, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 47}}, {"id": 291, "type": "field_identifier", "text": "id", "parent": 287, "children": [], "start_point": {"row": 79, "column": 49}, "end_point": {"row": 79, "column": 51}}, {"id": 292, "type": "&&", "text": "&&", "parent": 280, "children": [], "start_point": {"row": 79, "column": 52}, "end_point": {"row": 79, "column": 54}}, {"id": 293, "type": "unary_expression", "text": "! wc_option_cmp(&WcOption, &output_option)", "parent": 280, "children": [294, 295], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 43}}, {"id": 294, "type": "!", "text": "!", "parent": 293, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 2}}, {"id": 295, "type": "call_expression", "text": "wc_option_cmp(&WcOption, &output_option)", "parent": 293, "children": [296, 297], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 43}}, {"id": 296, "type": "identifier", "text": "wc_option_cmp", "parent": 295, "children": [], "start_point": {"row": 80, "column": 3}, "end_point": {"row": 80, "column": 16}}, {"id": 297, "type": "argument_list", "text": "(&WcOption, &output_option)", "parent": 295, "children": [298, 300], "start_point": {"row": 80, "column": 16}, "end_point": {"row": 80, "column": 43}}, {"id": 298, "type": "pointer_expression", "text": "&WcOption", "parent": 297, "children": [299], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 26}}, {"id": 299, "type": "identifier", "text": "WcOption", "parent": 298, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 26}}, {"id": 300, "type": "pointer_expression", "text": "&output_option", "parent": 297, "children": [301], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 42}}, {"id": 301, "type": "identifier", "text": "output_option", "parent": 300, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 42}}, {"id": 302, "type": "assignment_expression", "text": "*st = output_st", "parent": 278, "children": [303, 306, 307], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 16}}, {"id": 303, "type": "pointer_expression", "text": "*st", "parent": 302, "children": [304, 305], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 4}}, {"id": 304, "type": "*", "text": "*", "parent": 303, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 2}}, {"id": 305, "type": "identifier", "text": "st", "parent": 303, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 4}}, {"id": 306, "type": "=", "text": "=", "parent": 302, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 6}}, {"id": 307, "type": "identifier", "text": "output_st", "parent": 302, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 16}}, {"id": 308, "type": "return_statement", "text": "return;", "parent": 278, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 8}}, {"id": 309, "type": "assignment_expression", "text": "st->state = 0", "parent": 251, "children": [310, 313, 314], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 17}}, {"id": 310, "type": "field_expression", "text": "st->state", "parent": 309, "children": [311, 312], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 13}}, {"id": 311, "type": "identifier", "text": "st", "parent": 310, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 6}}, {"id": 312, "type": "field_identifier", "text": "state", "parent": 310, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 13}}, {"id": 313, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 15}}, {"id": 314, "type": "number_literal", "text": "0", "parent": 309, "children": [], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 17}}, {"id": 315, "type": "assignment_expression", "text": "st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)]", "parent": 251, "children": [316, 319, 320], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 48}}, {"id": 316, "type": "field_expression", "text": "st->ces_info", "parent": 315, "children": [317, 318], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 16}}, {"id": 317, "type": "identifier", "text": "st", "parent": 316, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 6}}, {"id": 318, "type": "field_identifier", "text": "ces_info", "parent": 316, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 16}}, {"id": 319, "type": "=", "text": "=", "parent": 315, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 18}}, {"id": 320, "type": "pointer_expression", "text": "&WcCesInfo[WC_CES_INDEX(ces)]", "parent": 315, "children": [321], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 48}}, {"id": 321, "type": "subscript_expression", "text": "WcCesInfo[WC_CES_INDEX(ces)]", "parent": 320, "children": [322, 323], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 48}}, {"id": 322, "type": "identifier", "text": "WcCesInfo", "parent": 321, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 29}}, {"id": 323, "type": "call_expression", "text": "WC_CES_INDEX(ces)", "parent": 321, "children": [324, 325], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 47}}, {"id": 324, "type": "identifier", "text": "WC_CES_INDEX", "parent": 323, "children": [], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 42}}, {"id": 325, "type": "argument_list", "text": "(ces)", "parent": 323, "children": [326], "start_point": {"row": 86, "column": 42}, "end_point": {"row": 86, "column": 47}}, {"id": 326, "type": "identifier", "text": "ces", "parent": 325, "children": [], "start_point": {"row": 86, "column": 43}, "end_point": {"row": 86, "column": 46}}, {"id": 327, "type": "assignment_expression", "text": "gset = st->ces_info->gset", "parent": 251, "children": [328, 329, 330], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 29}}, {"id": 328, "type": "identifier", "text": "gset", "parent": 327, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 8}}, {"id": 329, "type": "=", "text": "=", "parent": 327, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 10}}, {"id": 330, "type": "field_expression", "text": "st->ces_info->gset", "parent": 327, "children": [331, 334], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 29}}, {"id": 331, "type": "field_expression", "text": "st->ces_info", "parent": 330, "children": [332, 333], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 23}}, {"id": 332, "type": "identifier", "text": "st", "parent": 331, "children": [], "start_point": {"row": 87, "column": 11}, "end_point": {"row": 87, "column": 13}}, {"id": 333, "type": "field_identifier", "text": "ces_info", "parent": 331, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 23}}, {"id": 334, "type": "field_identifier", "text": "gset", "parent": 330, "children": [], "start_point": {"row": 87, "column": 25}, "end_point": {"row": 87, "column": 29}}, {"id": 335, "type": "assignment_expression", "text": "st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n\t? WC_CCS_JIS_X_0201 : gset[0].ccs", "parent": 251, "children": [336, 339, 340], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 91, "column": 34}}, {"id": 336, "type": "field_expression", "text": "st->g0_ccs", "parent": 335, "children": [337, 338], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 14}}, {"id": 337, "type": "identifier", "text": "st", "parent": 336, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 6}}, {"id": 338, "type": "field_identifier", "text": "g0_ccs", "parent": 336, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 14}}, {"id": 339, "type": "=", "text": "=", "parent": 335, "children": [], "start_point": {"row": 89, "column": 15}, "end_point": {"row": 89, "column": 16}}, {"id": 340, "type": "conditional_expression", "text": "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n\t? WC_CCS_JIS_X_0201 : gset[0].ccs", "parent": 335, "children": [341, 364, 365, 366], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 91, "column": 34}}, {"id": 341, "type": "parenthesized_expression", "text": "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)", "parent": 340, "children": [342], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 90, "column": 55}}, {"id": 342, "type": "binary_expression", "text": "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201", "parent": 341, "children": [343, 360, 361], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 90, "column": 54}}, {"id": 343, "type": "parenthesized_expression", "text": "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3)", "parent": 342, "children": [344], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 90, "column": 29}}, {"id": 344, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3", "parent": 343, "children": [345, 355, 356], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 90, "column": 28}}, {"id": 345, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2", "parent": 344, "children": [346, 350, 351], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 75}}, {"id": 346, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP", "parent": 345, "children": [347, 348, 349], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 44}}, {"id": 347, "type": "identifier", "text": "ces", "parent": 346, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 22}}, {"id": 348, "type": "==", "text": "==", "parent": 346, "children": [], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 25}}, {"id": 349, "type": "identifier", "text": "WC_CES_ISO_2022_JP", "parent": 346, "children": [], "start_point": {"row": 89, "column": 26}, "end_point": {"row": 89, "column": 44}}, {"id": 350, "type": "||", "text": "||", "parent": 345, "children": [], "start_point": {"row": 89, "column": 45}, "end_point": {"row": 89, "column": 47}}, {"id": 351, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP_2", "parent": 345, "children": [352, 353, 354], "start_point": {"row": 89, "column": 48}, "end_point": {"row": 89, "column": 75}}, {"id": 352, "type": "identifier", "text": "ces", "parent": 351, "children": [], "start_point": {"row": 89, "column": 48}, "end_point": {"row": 89, "column": 51}}, {"id": 353, "type": "==", "text": "==", "parent": 351, "children": [], "start_point": {"row": 89, "column": 52}, "end_point": {"row": 89, "column": 54}}, {"id": 354, "type": "identifier", "text": "WC_CES_ISO_2022_JP_2", "parent": 351, "children": [], "start_point": {"row": 89, "column": 55}, "end_point": {"row": 89, "column": 75}}, {"id": 355, "type": "||", "text": "||", "parent": 344, "children": [], "start_point": {"row": 89, "column": 76}, "end_point": {"row": 89, "column": 78}}, {"id": 356, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP_3", "parent": 344, "children": [357, 358, 359], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 28}}, {"id": 357, "type": "identifier", "text": "ces", "parent": 356, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 4}}, {"id": 358, "type": "==", "text": "==", "parent": 356, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 7}}, {"id": 359, "type": "identifier", "text": "WC_CES_ISO_2022_JP_3", "parent": 356, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 28}}, {"id": 360, "type": "&&", "text": "&&", "parent": 342, "children": [], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 32}}, {"id": 361, "type": "field_expression", "text": "WcOption.use_jisx0201", "parent": 342, "children": [362, 363], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 54}}, {"id": 362, "type": "identifier", "text": "WcOption", "parent": 361, "children": [], "start_point": {"row": 90, "column": 33}, "end_point": {"row": 90, "column": 41}}, {"id": 363, "type": "field_identifier", "text": "use_jisx0201", "parent": 361, "children": [], "start_point": {"row": 90, "column": 42}, "end_point": {"row": 90, "column": 54}}, {"id": 364, "type": "?", "text": "?", "parent": 340, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 2}}, {"id": 365, "type": "identifier", "text": "WC_CCS_JIS_X_0201", "parent": 340, "children": [], "start_point": {"row": 91, "column": 3}, "end_point": {"row": 91, "column": 20}}, {"id": 366, "type": "field_expression", "text": "gset[0].ccs", "parent": 340, "children": [367, 370], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 34}}, {"id": 367, "type": "subscript_expression", "text": "gset[0]", "parent": 366, "children": [368, 369], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 30}}, {"id": 368, "type": "identifier", "text": "gset", "parent": 367, "children": [], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 27}}, {"id": 369, "type": "number_literal", "text": "0", "parent": 367, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 29}}, {"id": 370, "type": "field_identifier", "text": "ccs", "parent": 366, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 34}}, {"id": 371, "type": "assignment_expression", "text": "st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n\t? WC_CCS_JIS_C_6226 : gset[1].ccs", "parent": 251, "children": [372, 375, 376], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 94, "column": 34}}, {"id": 372, "type": "field_expression", "text": "st->g1_ccs", "parent": 371, "children": [373, 374], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 14}}, {"id": 373, "type": "identifier", "text": "st", "parent": 372, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 6}}, {"id": 374, "type": "field_identifier", "text": "g1_ccs", "parent": 372, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 14}}, {"id": 375, "type": "=", "text": "=", "parent": 371, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 16}}, {"id": 376, "type": "conditional_expression", "text": "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n\t? WC_CCS_JIS_C_6226 : gset[1].ccs", "parent": 371, "children": [377, 400, 401, 402], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 94, "column": 34}}, {"id": 377, "type": "parenthesized_expression", "text": "((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)", "parent": 376, "children": [378], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 93, "column": 55}}, {"id": 378, "type": "binary_expression", "text": "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226", "parent": 377, "children": [379, 396, 397], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 93, "column": 54}}, {"id": 379, "type": "parenthesized_expression", "text": "(ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3)", "parent": 378, "children": [380], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 93, "column": 29}}, {"id": 380, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3", "parent": 379, "children": [381, 391, 392], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 93, "column": 28}}, {"id": 381, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2", "parent": 380, "children": [382, 386, 387], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 75}}, {"id": 382, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP", "parent": 381, "children": [383, 384, 385], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 44}}, {"id": 383, "type": "identifier", "text": "ces", "parent": 382, "children": [], "start_point": {"row": 92, "column": 19}, "end_point": {"row": 92, "column": 22}}, {"id": 384, "type": "==", "text": "==", "parent": 382, "children": [], "start_point": {"row": 92, "column": 23}, "end_point": {"row": 92, "column": 25}}, {"id": 385, "type": "identifier", "text": "WC_CES_ISO_2022_JP", "parent": 382, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 44}}, {"id": 386, "type": "||", "text": "||", "parent": 381, "children": [], "start_point": {"row": 92, "column": 45}, "end_point": {"row": 92, "column": 47}}, {"id": 387, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP_2", "parent": 381, "children": [388, 389, 390], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 75}}, {"id": 388, "type": "identifier", "text": "ces", "parent": 387, "children": [], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 51}}, {"id": 389, "type": "==", "text": "==", "parent": 387, "children": [], "start_point": {"row": 92, "column": 52}, "end_point": {"row": 92, "column": 54}}, {"id": 390, "type": "identifier", "text": "WC_CES_ISO_2022_JP_2", "parent": 387, "children": [], "start_point": {"row": 92, "column": 55}, "end_point": {"row": 92, "column": 75}}, {"id": 391, "type": "||", "text": "||", "parent": 380, "children": [], "start_point": {"row": 92, "column": 76}, "end_point": {"row": 92, "column": 78}}, {"id": 392, "type": "binary_expression", "text": "ces == WC_CES_ISO_2022_JP_3", "parent": 380, "children": [393, 394, 395], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 28}}, {"id": 393, "type": "identifier", "text": "ces", "parent": 392, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 4}}, {"id": 394, "type": "==", "text": "==", "parent": 392, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 7}}, {"id": 395, "type": "identifier", "text": "WC_CES_ISO_2022_JP_3", "parent": 392, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 28}}, {"id": 396, "type": "&&", "text": "&&", "parent": 378, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 32}}, {"id": 397, "type": "field_expression", "text": "WcOption.use_jisc6226", "parent": 378, "children": [398, 399], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 54}}, {"id": 398, "type": "identifier", "text": "WcOption", "parent": 397, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 41}}, {"id": 399, "type": "field_identifier", "text": "use_jisc6226", "parent": 397, "children": [], "start_point": {"row": 93, "column": 42}, "end_point": {"row": 93, "column": 54}}, {"id": 400, "type": "?", "text": "?", "parent": 376, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 2}}, {"id": 401, "type": "identifier", "text": "WC_CCS_JIS_C_6226", "parent": 376, "children": [], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 20}}, {"id": 402, "type": "field_expression", "text": "gset[1].ccs", "parent": 376, "children": [403, 406], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 34}}, {"id": 403, "type": "subscript_expression", "text": "gset[1]", "parent": 402, "children": [404, 405], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 30}}, {"id": 404, "type": "identifier", "text": "gset", "parent": 403, "children": [], "start_point": {"row": 94, "column": 23}, "end_point": {"row": 94, "column": 27}}, {"id": 405, "type": "number_literal", "text": "1", "parent": 403, "children": [], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 29}}, {"id": 406, "type": "field_identifier", "text": "ccs", "parent": 402, "children": [], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 34}}, {"id": 407, "type": "assignment_expression", "text": "st->design[0] = st->g0_ccs", "parent": 251, "children": [408, 413, 414], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 30}}, {"id": 408, "type": "subscript_expression", "text": "st->design[0]", "parent": 407, "children": [409, 412], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 17}}, {"id": 409, "type": "field_expression", "text": "st->design", "parent": 408, "children": [410, 411], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 14}}, {"id": 410, "type": "identifier", "text": "st", "parent": 409, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 6}}, {"id": 411, "type": "field_identifier", "text": "design", "parent": 409, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 14}}, {"id": 412, "type": "number_literal", "text": "0", "parent": 408, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 16}}, {"id": 413, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 19}}, {"id": 414, "type": "field_expression", "text": "st->g0_ccs", "parent": 407, "children": [415, 416], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 30}}, {"id": 415, "type": "identifier", "text": "st", "parent": 414, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 22}}, {"id": 416, "type": "field_identifier", "text": "g0_ccs", "parent": 414, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 30}}, {"id": 417, "type": "assignment_expression", "text": "st->design[1] = 0", "parent": 251, "children": [418, 423, 424], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 21}}, {"id": 418, "type": "subscript_expression", "text": "st->design[1]", "parent": 417, "children": [419, 422], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 17}}, {"id": 419, "type": "field_expression", "text": "st->design", "parent": 418, "children": [420, 421], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 14}}, {"id": 420, "type": "identifier", "text": "st", "parent": 419, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 6}}, {"id": 421, "type": "field_identifier", "text": "design", "parent": 419, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 14}}, {"id": 422, "type": "number_literal", "text": "1", "parent": 418, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 16}}, {"id": 423, "type": "=", "text": "=", "parent": 417, "children": [], "start_point": {"row": 96, "column": 18}, "end_point": {"row": 96, "column": 19}}, {"id": 424, "type": "number_literal", "text": "0", "parent": 417, "children": [], "start_point": {"row": 96, "column": 20}, "end_point": {"row": 96, "column": 21}}, {"id": 425, "type": "assignment_expression", "text": "st->design[2] = 0", "parent": 251, "children": [426, 431, 432], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 21}}, {"id": 426, "type": "subscript_expression", "text": "st->design[2]", "parent": 425, "children": [427, 430], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 17}}, {"id": 427, "type": "field_expression", "text": "st->design", "parent": 426, "children": [428, 429], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 14}}, {"id": 428, "type": "identifier", "text": "st", "parent": 427, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 6}}, {"id": 429, "type": "field_identifier", "text": "design", "parent": 427, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 14}}, {"id": 430, "type": "number_literal", "text": "2", "parent": 426, "children": [], "start_point": {"row": 97, "column": 15}, "end_point": {"row": 97, "column": 16}}, {"id": 431, "type": "=", "text": "=", "parent": 425, "children": [], "start_point": {"row": 97, "column": 18}, "end_point": {"row": 97, "column": 19}}, {"id": 432, "type": "number_literal", "text": "0", "parent": 425, "children": [], "start_point": {"row": 97, "column": 20}, "end_point": {"row": 97, "column": 21}}, {"id": 433, "type": "assignment_expression", "text": "st->design[3] = 0", "parent": 251, "children": [434, 439, 440], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 21}}, {"id": 434, "type": "subscript_expression", "text": "st->design[3]", "parent": 433, "children": [435, 438], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 17}}, {"id": 435, "type": "field_expression", "text": "st->design", "parent": 434, "children": [436, 437], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 14}}, {"id": 436, "type": "identifier", "text": "st", "parent": 435, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 6}}, {"id": 437, "type": "field_identifier", "text": "design", "parent": 435, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 14}}, {"id": 438, "type": "number_literal", "text": "3", "parent": 434, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 16}}, {"id": 439, "type": "=", "text": "=", "parent": 433, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 19}}, {"id": 440, "type": "number_literal", "text": "0", "parent": 433, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 21}}, {"id": 441, "type": "assignment_expression", "text": "st->gl = 0", "parent": 251, "children": [442, 445, 446], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 14}}, {"id": 442, "type": "field_expression", "text": "st->gl", "parent": 441, "children": [443, 444], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 10}}, {"id": 443, "type": "identifier", "text": "st", "parent": 442, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 6}}, {"id": 444, "type": "field_identifier", "text": "gl", "parent": 442, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 10}}, {"id": 445, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 99, "column": 11}, "end_point": {"row": 99, "column": 12}}, {"id": 446, "type": "number_literal", "text": "0", "parent": 441, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 447, "type": "assignment_expression", "text": "st->gr = 0", "parent": 251, "children": [448, 451, 452], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 14}}, {"id": 448, "type": "field_expression", "text": "st->gr", "parent": 447, "children": [449, 450], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 10}}, {"id": 449, "type": "identifier", "text": "st", "parent": 448, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 6}}, {"id": 450, "type": "field_identifier", "text": "gr", "parent": 448, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 10}}, {"id": 451, "type": "=", "text": "=", "parent": 447, "children": [], "start_point": {"row": 100, "column": 11}, "end_point": {"row": 100, "column": 12}}, {"id": 452, "type": "number_literal", "text": "0", "parent": 447, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 14}}, {"id": 453, "type": "assignment_expression", "text": "st->ss = 0", "parent": 251, "children": [454, 457, 458], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 14}}, {"id": 454, "type": "field_expression", "text": "st->ss", "parent": 453, "children": [455, 456], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 10}}, {"id": 455, "type": "identifier", "text": "st", "parent": 454, "children": [], "start_point": {"row": 101, "column": 4}, "end_point": {"row": 101, "column": 6}}, {"id": 456, "type": "field_identifier", "text": "ss", "parent": 454, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 10}}, {"id": 457, "type": "=", "text": "=", "parent": 453, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 12}}, {"id": 458, "type": "number_literal", "text": "0", "parent": 453, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 14}}, {"id": 459, "type": "if_statement", "text": "if (ces & WC_CES_T_ISO_2022)\n\twc_create_gmap(st);", "parent": 251, "children": [460], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 104, "column": 20}}, {"id": 460, "type": "parenthesized_expression", "text": "(ces & WC_CES_T_ISO_2022)", "parent": 459, "children": [461], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 32}}, {"id": 461, "type": "binary_expression", "text": "ces & WC_CES_T_ISO_2022", "parent": 460, "children": [462, 463], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 31}}, {"id": 462, "type": "identifier", "text": "ces", "parent": 461, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 11}}, {"id": 463, "type": "identifier", "text": "WC_CES_T_ISO_2022", "parent": 461, "children": [], "start_point": {"row": 103, "column": 14}, "end_point": {"row": 103, "column": 31}}, {"id": 464, "type": "call_expression", "text": "wc_create_gmap(st)", "parent": 459, "children": [465, 466], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 19}}, {"id": 465, "type": "identifier", "text": "wc_create_gmap", "parent": 464, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 15}}, {"id": 466, "type": "argument_list", "text": "(st)", "parent": 464, "children": [467], "start_point": {"row": 104, "column": 15}, "end_point": {"row": 104, "column": 19}}, {"id": 467, "type": "identifier", "text": "st", "parent": 466, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 18}}, {"id": 468, "type": "preproc_ifdef", "text": "#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n\tst->tlist = NULL;\n\tst->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif", "parent": 251, "children": [469, 470, 484, 752], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 157, "column": 6}}, {"id": 469, "type": "#ifdef", "text": "#ifdef", "parent": 468, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 6}}, {"id": 470, "type": "identifier", "text": "USE_UNICODE", "parent": 468, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 18}}, {"id": 471, "type": "assignment_expression", "text": "st->tag = NULL", "parent": 468, "children": [472, 475, 476], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 18}}, {"id": 472, "type": "field_expression", "text": "st->tag", "parent": 471, "children": [473, 474], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 11}}, {"id": 473, "type": "identifier", "text": "st", "parent": 472, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 6}}, {"id": 474, "type": "field_identifier", "text": "tag", "parent": 472, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 11}}, {"id": 475, "type": "=", "text": "=", "parent": 471, "children": [], "start_point": {"row": 107, "column": 12}, "end_point": {"row": 107, "column": 13}}, {"id": 476, "type": "null", "text": "NULL", "parent": 471, "children": [477], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 18}}, {"id": 477, "type": "NULL", "text": "NULL", "parent": 476, "children": [], "start_point": {"row": 107, "column": 14}, "end_point": {"row": 107, "column": 18}}, {"id": 478, "type": "assignment_expression", "text": "st->ntag = 0", "parent": 468, "children": [479, 482, 483], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 16}}, {"id": 479, "type": "field_expression", "text": "st->ntag", "parent": 478, "children": [480, 481], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 12}}, {"id": 480, "type": "identifier", "text": "st", "parent": 479, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 6}}, {"id": 481, "type": "field_identifier", "text": "ntag", "parent": 479, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 12}}, {"id": 482, "type": "=", "text": "=", "parent": 478, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 14}}, {"id": 483, "type": "number_literal", "text": "0", "parent": 478, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 16}}, {"id": 484, "type": "if_statement", "text": "if (! WcOption.ucs_conv) {\n\tst->tlist = NULL;\n\tst->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }", "parent": 468, "children": [485, 505], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 156, "column": 5}}, {"id": 485, "type": "parenthesized_expression", "text": "(! WcOption.ucs_conv)", "parent": 484, "children": [486], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 28}}, {"id": 486, "type": "unary_expression", "text": "! WcOption.ucs_conv", "parent": 485, "children": [487, 488], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 27}}, {"id": 487, "type": "!", "text": "!", "parent": 486, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 488, "type": "field_expression", "text": "WcOption.ucs_conv", "parent": 486, "children": [489, 490], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 27}}, {"id": 489, "type": "identifier", "text": "WcOption", "parent": 488, "children": [], "start_point": {"row": 110, "column": 10}, "end_point": {"row": 110, "column": 18}}, {"id": 490, "type": "field_identifier", "text": "ucs_conv", "parent": 488, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 27}}, {"id": 491, "type": "assignment_expression", "text": "st->tlist = NULL", "parent": 484, "children": [492, 495, 496], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 17}}, {"id": 492, "type": "field_expression", "text": "st->tlist", "parent": 491, "children": [493, 494], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 10}}, {"id": 493, "type": "identifier", "text": "st", "parent": 492, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 3}}, {"id": 494, "type": "field_identifier", "text": "tlist", "parent": 492, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 10}}, {"id": 495, "type": "=", "text": "=", "parent": 491, "children": [], "start_point": {"row": 111, "column": 11}, "end_point": {"row": 111, "column": 12}}, {"id": 496, "type": "null", "text": "NULL", "parent": 491, "children": [497], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 17}}, {"id": 497, "type": "NULL", "text": "NULL", "parent": 496, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 17}}, {"id": 498, "type": "assignment_expression", "text": "st->tlistw = NULL", "parent": 484, "children": [499, 502, 503], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 18}}, {"id": 499, "type": "field_expression", "text": "st->tlistw", "parent": 498, "children": [500, 501], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 11}}, {"id": 500, "type": "identifier", "text": "st", "parent": 499, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 3}}, {"id": 501, "type": "field_identifier", "text": "tlistw", "parent": 499, "children": [], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 11}}, {"id": 502, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 13}}, {"id": 503, "type": "null", "text": "NULL", "parent": 498, "children": [504], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 18}}, {"id": 504, "type": "NULL", "text": "NULL", "parent": 503, "children": [], "start_point": {"row": 112, "column": 14}, "end_point": {"row": 112, "column": 18}}, {"id": 505, "type": "else_clause", "text": "else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }", "parent": 484, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 156, "column": 5}}, {"id": 506, "type": "for_statement", "text": "for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }", "parent": 505, "children": [507, 517, 522], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 120, "column": 5}}, {"id": 507, "type": "assignment_expression", "text": "i = n = nw = 0", "parent": 506, "children": [508, 509, 510], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 23}}, {"id": 508, "type": "identifier", "text": "i", "parent": 507, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 10}}, {"id": 509, "type": "=", "text": "=", "parent": 507, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 12}}, {"id": 510, "type": "assignment_expression", "text": "n = nw = 0", "parent": 507, "children": [511, 512, 513], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 23}}, {"id": 511, "type": "identifier", "text": "n", "parent": 510, "children": [], "start_point": {"row": 115, "column": 13}, "end_point": {"row": 115, "column": 14}}, {"id": 512, "type": "=", "text": "=", "parent": 510, "children": [], "start_point": {"row": 115, "column": 15}, "end_point": {"row": 115, "column": 16}}, {"id": 513, "type": "assignment_expression", "text": "nw = 0", "parent": 510, "children": [514, 515, 516], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 23}}, {"id": 514, "type": "identifier", "text": "nw", "parent": 513, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 19}}, {"id": 515, "type": "=", "text": "=", "parent": 513, "children": [], "start_point": {"row": 115, "column": 20}, "end_point": {"row": 115, "column": 21}}, {"id": 516, "type": "number_literal", "text": "0", "parent": 513, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 23}}, {"id": 517, "type": "field_expression", "text": "gset[i].ccs", "parent": 506, "children": [518, 521], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 36}}, {"id": 518, "type": "subscript_expression", "text": "gset[i]", "parent": 517, "children": [519, 520], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 32}}, {"id": 519, "type": "identifier", "text": "gset", "parent": 518, "children": [], "start_point": {"row": 115, "column": 25}, "end_point": {"row": 115, "column": 29}}, {"id": 520, "type": "identifier", "text": "i", "parent": 518, "children": [], "start_point": {"row": 115, "column": 30}, "end_point": {"row": 115, "column": 31}}, {"id": 521, "type": "field_identifier", "text": "ccs", "parent": 517, "children": [], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 36}}, {"id": 522, "type": "update_expression", "text": "i++", "parent": 506, "children": [523, 524], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 41}}, {"id": 523, "type": "identifier", "text": "i", "parent": 522, "children": [], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 39}}, {"id": 524, "type": "++", "text": "++", "parent": 522, "children": [], "start_point": {"row": 115, "column": 39}, "end_point": {"row": 115, "column": 41}}, {"id": 525, "type": "if_statement", "text": "if (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;", "parent": 506, "children": [526, 538], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 119, "column": 9}}, {"id": 526, "type": "parenthesized_expression", "text": "(WC_CCS_IS_WIDE(gset[i].ccs))", "parent": 525, "children": [527], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 33}}, {"id": 527, "type": "call_expression", "text": "WC_CCS_IS_WIDE(gset[i].ccs)", "parent": 526, "children": [528, 529], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 32}}, {"id": 528, "type": "identifier", "text": "WC_CCS_IS_WIDE", "parent": 527, "children": [], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 19}}, {"id": 529, "type": "argument_list", "text": "(gset[i].ccs)", "parent": 527, "children": [530], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 32}}, {"id": 530, "type": "field_expression", "text": "gset[i].ccs", "parent": 529, "children": [531, 534], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 31}}, {"id": 531, "type": "subscript_expression", "text": "gset[i]", "parent": 530, "children": [532, 533], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 27}}, {"id": 532, "type": "identifier", "text": "gset", "parent": 531, "children": [], "start_point": {"row": 116, "column": 20}, "end_point": {"row": 116, "column": 24}}, {"id": 533, "type": "identifier", "text": "i", "parent": 531, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 26}}, {"id": 534, "type": "field_identifier", "text": "ccs", "parent": 530, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 31}}, {"id": 535, "type": "update_expression", "text": "nw++", "parent": 525, "children": [536, 537], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 9}}, {"id": 536, "type": "identifier", "text": "nw", "parent": 535, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 7}}, {"id": 537, "type": "++", "text": "++", "parent": 535, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 9}}, {"id": 538, "type": "else_clause", "text": "else\n\t n++;", "parent": 525, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 119, "column": 9}}, {"id": 539, "type": "update_expression", "text": "n++", "parent": 538, "children": [540, 541], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 8}}, {"id": 540, "type": "identifier", "text": "n", "parent": 539, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 6}}, {"id": 541, "type": "++", "text": "++", "parent": 539, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 8}}, {"id": 542, "type": "assignment_expression", "text": "st->tlist = New_N(wc_table *, n + 1)", "parent": 505, "children": [543, 546, 547], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 40}}, {"id": 543, "type": "field_expression", "text": "st->tlist", "parent": 542, "children": [544, 545], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 13}}, {"id": 544, "type": "identifier", "text": "st", "parent": 543, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 6}}, {"id": 545, "type": "field_identifier", "text": "tlist", "parent": 543, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 13}}, {"id": 546, "type": "=", "text": "=", "parent": 542, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 15}}, {"id": 547, "type": "call_expression", "text": "New_N(wc_table *, n + 1)", "parent": 542, "children": [548, 549], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 40}}, {"id": 548, "type": "identifier", "text": "New_N", "parent": 547, "children": [], "start_point": {"row": 121, "column": 16}, "end_point": {"row": 121, "column": 21}}, {"id": 549, "type": "argument_list", "text": "(wc_table *, n + 1)", "parent": 547, "children": [550], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 40}}, {"id": 550, "type": "binary_expression", "text": "wc_table *, n + 1", "parent": 549, "children": [551, 555, 556], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 39}}, {"id": 551, "type": "binary_expression", "text": "wc_table *, n", "parent": 550, "children": [552, 553, 554], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 35}}, {"id": 552, "type": "identifier", "text": "wc_table", "parent": 551, "children": [], "start_point": {"row": 121, "column": 22}, "end_point": {"row": 121, "column": 30}}, {"id": 553, "type": "*", "text": "*", "parent": 551, "children": [], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 121, "column": 32}}, {"id": 554, "type": "identifier", "text": "n", "parent": 551, "children": [], "start_point": {"row": 121, "column": 34}, "end_point": {"row": 121, "column": 35}}, {"id": 555, "type": "+", "text": "+", "parent": 550, "children": [], "start_point": {"row": 121, "column": 36}, "end_point": {"row": 121, "column": 37}}, {"id": 556, "type": "number_literal", "text": "1", "parent": 550, "children": [], "start_point": {"row": 121, "column": 38}, "end_point": {"row": 121, "column": 39}}, {"id": 557, "type": "assignment_expression", "text": "st->tlistw = New_N(wc_table *, nw + 1)", "parent": 505, "children": [558, 561, 562], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 42}}, {"id": 558, "type": "field_expression", "text": "st->tlistw", "parent": 557, "children": [559, 560], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 14}}, {"id": 559, "type": "identifier", "text": "st", "parent": 558, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 6}}, {"id": 560, "type": "field_identifier", "text": "tlistw", "parent": 558, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 14}}, {"id": 561, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 16}}, {"id": 562, "type": "call_expression", "text": "New_N(wc_table *, nw + 1)", "parent": 557, "children": [563, 564], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 42}}, {"id": 563, "type": "identifier", "text": "New_N", "parent": 562, "children": [], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 22}}, {"id": 564, "type": "argument_list", "text": "(wc_table *, nw + 1)", "parent": 562, "children": [565], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 42}}, {"id": 565, "type": "binary_expression", "text": "wc_table *, nw + 1", "parent": 564, "children": [566, 570, 571], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 41}}, {"id": 566, "type": "binary_expression", "text": "wc_table *, nw", "parent": 565, "children": [567, 568, 569], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 37}}, {"id": 567, "type": "identifier", "text": "wc_table", "parent": 566, "children": [], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 31}}, {"id": 568, "type": "*", "text": "*", "parent": 566, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 33}}, {"id": 569, "type": "identifier", "text": "nw", "parent": 566, "children": [], "start_point": {"row": 122, "column": 35}, "end_point": {"row": 122, "column": 37}}, {"id": 570, "type": "+", "text": "+", "parent": 565, "children": [], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 39}}, {"id": 571, "type": "number_literal", "text": "1", "parent": 565, "children": [], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 41}}, {"id": 572, "type": "for_statement", "text": "for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }", "parent": 505, "children": [573, 583, 588], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 153, "column": 5}}, {"id": 573, "type": "assignment_expression", "text": "i = n = nw = 0", "parent": 572, "children": [574, 575, 576], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 23}}, {"id": 574, "type": "identifier", "text": "i", "parent": 573, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 10}}, {"id": 575, "type": "=", "text": "=", "parent": 573, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 12}}, {"id": 576, "type": "assignment_expression", "text": "n = nw = 0", "parent": 573, "children": [577, 578, 579], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 23}}, {"id": 577, "type": "identifier", "text": "n", "parent": 576, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 578, "type": "=", "text": "=", "parent": 576, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 16}}, {"id": 579, "type": "assignment_expression", "text": "nw = 0", "parent": 576, "children": [580, 581, 582], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 23}}, {"id": 580, "type": "identifier", "text": "nw", "parent": 579, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 19}}, {"id": 581, "type": "=", "text": "=", "parent": 579, "children": [], "start_point": {"row": 123, "column": 20}, "end_point": {"row": 123, "column": 21}}, {"id": 582, "type": "number_literal", "text": "0", "parent": 579, "children": [], "start_point": {"row": 123, "column": 22}, "end_point": {"row": 123, "column": 23}}, {"id": 583, "type": "field_expression", "text": "gset[i].ccs", "parent": 572, "children": [584, 587], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 36}}, {"id": 584, "type": "subscript_expression", "text": "gset[i]", "parent": 583, "children": [585, 586], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 32}}, {"id": 585, "type": "identifier", "text": "gset", "parent": 584, "children": [], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 29}}, {"id": 586, "type": "identifier", "text": "i", "parent": 584, "children": [], "start_point": {"row": 123, "column": 30}, "end_point": {"row": 123, "column": 31}}, {"id": 587, "type": "field_identifier", "text": "ccs", "parent": 583, "children": [], "start_point": {"row": 123, "column": 33}, "end_point": {"row": 123, "column": 36}}, {"id": 588, "type": "update_expression", "text": "i++", "parent": 572, "children": [589, 590], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 41}}, {"id": 589, "type": "identifier", "text": "i", "parent": 588, "children": [], "start_point": {"row": 123, "column": 38}, "end_point": {"row": 123, "column": 39}}, {"id": 590, "type": "++", "text": "++", "parent": 588, "children": [], "start_point": {"row": 123, "column": 39}, "end_point": {"row": 123, "column": 41}}, {"id": 591, "type": "if_statement", "text": "if (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}", "parent": 572, "children": [592, 694], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 152, "column": 2}}, {"id": 592, "type": "parenthesized_expression", "text": "(WC_CCS_IS_WIDE(gset[i].ccs))", "parent": 591, "children": [593], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 33}}, {"id": 593, "type": "call_expression", "text": "WC_CCS_IS_WIDE(gset[i].ccs)", "parent": 592, "children": [594, 595], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 32}}, {"id": 594, "type": "identifier", "text": "WC_CCS_IS_WIDE", "parent": 593, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 19}}, {"id": 595, "type": "argument_list", "text": "(gset[i].ccs)", "parent": 593, "children": [596], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 32}}, {"id": 596, "type": "field_expression", "text": "gset[i].ccs", "parent": 595, "children": [597, 600], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 31}}, {"id": 597, "type": "subscript_expression", "text": "gset[i]", "parent": 596, "children": [598, 599], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 27}}, {"id": 598, "type": "identifier", "text": "gset", "parent": 597, "children": [], "start_point": {"row": 124, "column": 20}, "end_point": {"row": 124, "column": 24}}, {"id": 599, "type": "identifier", "text": "i", "parent": 597, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 26}}, {"id": 600, "type": "field_identifier", "text": "ccs", "parent": 596, "children": [], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 31}}, {"id": 601, "type": "switch_statement", "text": "switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }", "parent": 591, "children": [602, 603], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 142, "column": 6}}, {"id": 602, "type": "switch", "text": "switch", "parent": 601, "children": [], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 11}}, {"id": 603, "type": "parenthesized_expression", "text": "(gset[i].ccs)", "parent": 601, "children": [604], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 25}}, {"id": 604, "type": "field_expression", "text": "gset[i].ccs", "parent": 603, "children": [605, 608], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 24}}, {"id": 605, "type": "subscript_expression", "text": "gset[i]", "parent": 604, "children": [606, 607], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 20}}, {"id": 606, "type": "identifier", "text": "gset", "parent": 605, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 17}}, {"id": 607, "type": "identifier", "text": "i", "parent": 605, "children": [], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 19}}, {"id": 608, "type": "field_identifier", "text": "ccs", "parent": 604, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 24}}, {"id": 609, "type": "case_statement", "text": "case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;", "parent": 601, "children": [610, 611, 612, 621], "start_point": {"row": 126, "column": 5}, "end_point": {"row": 129, "column": 8}}, {"id": 610, "type": "case", "text": "case", "parent": 609, "children": [], "start_point": {"row": 126, "column": 5}, "end_point": {"row": 126, "column": 9}}, {"id": 611, "type": "identifier", "text": "WC_CCS_JIS_X_0212", "parent": 609, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 27}}, {"id": 612, "type": "if_statement", "text": "if (! WcOption.use_jisx0212)\n\t\t continue;", "parent": 609, "children": [613, 619], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 128, "column": 15}}, {"id": 613, "type": "parenthesized_expression", "text": "(! WcOption.use_jisx0212)", "parent": 612, "children": [614], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 30}}, {"id": 614, "type": "unary_expression", "text": "! WcOption.use_jisx0212", "parent": 613, "children": [615, 616], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 29}}, {"id": 615, "type": "!", "text": "!", "parent": 614, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 7}}, {"id": 616, "type": "field_expression", "text": "WcOption.use_jisx0212", "parent": 614, "children": [617, 618], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 29}}, {"id": 617, "type": "identifier", "text": "WcOption", "parent": 616, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 16}}, {"id": 618, "type": "field_identifier", "text": "use_jisx0212", "parent": 616, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 29}}, {"id": 619, "type": "continue_statement", "text": "continue;", "parent": 612, "children": [620], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 15}}, {"id": 620, "type": "continue", "text": "continue", "parent": 619, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 14}}, {"id": 621, "type": "break_statement", "text": "break;", "parent": 609, "children": [622], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 8}}, {"id": 622, "type": "break", "text": "break", "parent": 621, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 7}}, {"id": 623, "type": "case_statement", "text": "case WC_CCS_JIS_X_0213_1:", "parent": 601, "children": [624, 625], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 30}}, {"id": 624, "type": "case", "text": "case", "parent": 623, "children": [], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 9}}, {"id": 625, "type": "identifier", "text": "WC_CCS_JIS_X_0213_1", "parent": 623, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 29}}, {"id": 626, "type": "case_statement", "text": "case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;", "parent": 601, "children": [627, 628, 629, 638], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 134, "column": 8}}, {"id": 627, "type": "case", "text": "case", "parent": 626, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 9}}, {"id": 628, "type": "identifier", "text": "WC_CCS_JIS_X_0213_2", "parent": 626, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 29}}, {"id": 629, "type": "if_statement", "text": "if (! WcOption.use_jisx0213)\n\t\t continue;", "parent": 626, "children": [630, 636], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 133, "column": 15}}, {"id": 630, "type": "parenthesized_expression", "text": "(! WcOption.use_jisx0213)", "parent": 629, "children": [631], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 30}}, {"id": 631, "type": "unary_expression", "text": "! WcOption.use_jisx0213", "parent": 630, "children": [632, 633], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 29}}, {"id": 632, "type": "!", "text": "!", "parent": 631, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 7}}, {"id": 633, "type": "field_expression", "text": "WcOption.use_jisx0213", "parent": 631, "children": [634, 635], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 29}}, {"id": 634, "type": "identifier", "text": "WcOption", "parent": 633, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 16}}, {"id": 635, "type": "field_identifier", "text": "use_jisx0213", "parent": 633, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 29}}, {"id": 636, "type": "continue_statement", "text": "continue;", "parent": 629, "children": [637], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 15}}, {"id": 637, "type": "continue", "text": "continue", "parent": 636, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 14}}, {"id": 638, "type": "break_statement", "text": "break;", "parent": 626, "children": [639], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 8}}, {"id": 639, "type": "break", "text": "break", "parent": 638, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 7}}, {"id": 640, "type": "case_statement", "text": "case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;", "parent": 601, "children": [641, 642, 643, 675], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 141, "column": 8}}, {"id": 641, "type": "case", "text": "case", "parent": 640, "children": [], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 135, "column": 9}}, {"id": 642, "type": "identifier", "text": "WC_CCS_GB_2312", "parent": 640, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 24}}, {"id": 643, "type": "if_statement", "text": "if (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}", "parent": 640, "children": [644], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 140, "column": 3}}, {"id": 644, "type": "parenthesized_expression", "text": "(WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030)", "parent": 643, "children": [645], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 137, "column": 49}}, {"id": 645, "type": "binary_expression", "text": "WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030", "parent": 644, "children": [646, 655, 656], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 137, "column": 48}}, {"id": 646, "type": "binary_expression", "text": "WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK", "parent": 645, "children": [647, 650, 651], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 137, "column": 23}}, {"id": 647, "type": "field_expression", "text": "WcOption.use_gb12345_map", "parent": 646, "children": [648, 649], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 30}}, {"id": 648, "type": "identifier", "text": "WcOption", "parent": 647, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 14}}, {"id": 649, "type": "field_identifier", "text": "use_gb12345_map", "parent": 647, "children": [], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 30}}, {"id": 650, "type": "&&", "text": "&&", "parent": 646, "children": [], "start_point": {"row": 136, "column": 31}, "end_point": {"row": 136, "column": 33}}, {"id": 651, "type": "binary_expression", "text": "ces != WC_CES_GBK", "parent": 646, "children": [652, 653, 654], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 23}}, {"id": 652, "type": "identifier", "text": "ces", "parent": 651, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 9}}, {"id": 653, "type": "!=", "text": "!=", "parent": 651, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 12}}, {"id": 654, "type": "identifier", "text": "WC_CES_GBK", "parent": 651, "children": [], "start_point": {"row": 137, "column": 13}, "end_point": {"row": 137, "column": 23}}, {"id": 655, "type": "&&", "text": "&&", "parent": 645, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 26}}, {"id": 656, "type": "binary_expression", "text": "ces != WC_CES_GB18030", "parent": 645, "children": [657, 658, 659], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 48}}, {"id": 657, "type": "identifier", "text": "ces", "parent": 656, "children": [], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 30}}, {"id": 658, "type": "!=", "text": "!=", "parent": 656, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 33}}, {"id": 659, "type": "identifier", "text": "WC_CES_GB18030", "parent": 656, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 48}}, {"id": 660, "type": "assignment_expression", "text": "st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345)", "parent": 643, "children": [661, 668, 669], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 58}}, {"id": 661, "type": "subscript_expression", "text": "st->tlistw[nw++]", "parent": 660, "children": [662, 665], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 22}}, {"id": 662, "type": "field_expression", "text": "st->tlistw", "parent": 661, "children": [663, 664], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 16}}, {"id": 663, "type": "identifier", "text": "st", "parent": 662, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 8}}, {"id": 664, "type": "field_identifier", "text": "tlistw", "parent": 662, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 16}}, {"id": 665, "type": "update_expression", "text": "nw++", "parent": 661, "children": [666, 667], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 21}}, {"id": 666, "type": "identifier", "text": "nw", "parent": 665, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 19}}, {"id": 667, "type": "++", "text": "++", "parent": 665, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 21}}, {"id": 668, "type": "=", "text": "=", "parent": 660, "children": [], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 24}}, {"id": 669, "type": "call_expression", "text": "wc_get_ucs_table(WC_CCS_GB_12345)", "parent": 660, "children": [670, 671], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 58}}, {"id": 670, "type": "identifier", "text": "wc_get_ucs_table", "parent": 669, "children": [], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 41}}, {"id": 671, "type": "argument_list", "text": "(WC_CCS_GB_12345)", "parent": 669, "children": [672], "start_point": {"row": 138, "column": 41}, "end_point": {"row": 138, "column": 58}}, {"id": 672, "type": "identifier", "text": "WC_CCS_GB_12345", "parent": 671, "children": [], "start_point": {"row": 138, "column": 42}, "end_point": {"row": 138, "column": 57}}, {"id": 673, "type": "continue_statement", "text": "continue;", "parent": 643, "children": [674], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 15}}, {"id": 674, "type": "continue", "text": "continue", "parent": 673, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 14}}, {"id": 675, "type": "break_statement", "text": "break;", "parent": 640, "children": [676], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 8}}, {"id": 676, "type": "break", "text": "break", "parent": 675, "children": [], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 7}}, {"id": 677, "type": "assignment_expression", "text": "st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs)", "parent": 591, "children": [678, 685, 686], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 53}}, {"id": 678, "type": "subscript_expression", "text": "st->tlistw[nw++]", "parent": 677, "children": [679, 682], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 21}}, {"id": 679, "type": "field_expression", "text": "st->tlistw", "parent": 678, "children": [680, 681], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 15}}, {"id": 680, "type": "identifier", "text": "st", "parent": 679, "children": [], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 7}}, {"id": 681, "type": "field_identifier", "text": "tlistw", "parent": 679, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 15}}, {"id": 682, "type": "update_expression", "text": "nw++", "parent": 678, "children": [683, 684], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 20}}, {"id": 683, "type": "identifier", "text": "nw", "parent": 682, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 18}}, {"id": 684, "type": "++", "text": "++", "parent": 682, "children": [], "start_point": {"row": 143, "column": 18}, "end_point": {"row": 143, "column": 20}}, {"id": 685, "type": "=", "text": "=", "parent": 677, "children": [], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 23}}, {"id": 686, "type": "call_expression", "text": "wc_get_ucs_table(gset[i].ccs)", "parent": 677, "children": [687, 688], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 53}}, {"id": 687, "type": "identifier", "text": "wc_get_ucs_table", "parent": 686, "children": [], "start_point": {"row": 143, "column": 24}, "end_point": {"row": 143, "column": 40}}, {"id": 688, "type": "argument_list", "text": "(gset[i].ccs)", "parent": 686, "children": [689], "start_point": {"row": 143, "column": 40}, "end_point": {"row": 143, "column": 53}}, {"id": 689, "type": "field_expression", "text": "gset[i].ccs", "parent": 688, "children": [690, 693], "start_point": {"row": 143, "column": 41}, "end_point": {"row": 143, "column": 52}}, {"id": 690, "type": "subscript_expression", "text": "gset[i]", "parent": 689, "children": [691, 692], "start_point": {"row": 143, "column": 41}, "end_point": {"row": 143, "column": 48}}, {"id": 691, "type": "identifier", "text": "gset", "parent": 690, "children": [], "start_point": {"row": 143, "column": 41}, "end_point": {"row": 143, "column": 45}}, {"id": 692, "type": "identifier", "text": "i", "parent": 690, "children": [], "start_point": {"row": 143, "column": 46}, "end_point": {"row": 143, "column": 47}}, {"id": 693, "type": "field_identifier", "text": "ccs", "parent": 689, "children": [], "start_point": {"row": 143, "column": 49}, "end_point": {"row": 143, "column": 52}}, {"id": 694, "type": "else_clause", "text": "else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}", "parent": 591, "children": [], "start_point": {"row": 144, "column": 3}, "end_point": {"row": 152, "column": 2}}, {"id": 695, "type": "switch_statement", "text": "switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }", "parent": 694, "children": [696, 697], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 150, "column": 6}}, {"id": 696, "type": "switch", "text": "switch", "parent": 695, "children": [], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 11}}, {"id": 697, "type": "parenthesized_expression", "text": "(gset[i].ccs)", "parent": 695, "children": [698], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 25}}, {"id": 698, "type": "field_expression", "text": "gset[i].ccs", "parent": 697, "children": [699, 702], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 24}}, {"id": 699, "type": "subscript_expression", "text": "gset[i]", "parent": 698, "children": [700, 701], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 20}}, {"id": 700, "type": "identifier", "text": "gset", "parent": 699, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 17}}, {"id": 701, "type": "identifier", "text": "i", "parent": 699, "children": [], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 19}}, {"id": 702, "type": "field_identifier", "text": "ccs", "parent": 698, "children": [], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 24}}, {"id": 703, "type": "case_statement", "text": "case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;", "parent": 695, "children": [704, 705, 706, 715], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 149, "column": 8}}, {"id": 704, "type": "case", "text": "case", "parent": 703, "children": [], "start_point": {"row": 146, "column": 5}, "end_point": {"row": 146, "column": 9}}, {"id": 705, "type": "identifier", "text": "WC_CCS_JIS_X_0201K", "parent": 703, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 28}}, {"id": 706, "type": "if_statement", "text": "if (! WcOption.use_jisx0201k)\n\t\t continue;", "parent": 703, "children": [707, 713], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 148, "column": 15}}, {"id": 707, "type": "parenthesized_expression", "text": "(! WcOption.use_jisx0201k)", "parent": 706, "children": [708], "start_point": {"row": 147, "column": 5}, "end_point": {"row": 147, "column": 31}}, {"id": 708, "type": "unary_expression", "text": "! WcOption.use_jisx0201k", "parent": 707, "children": [709, 710], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 30}}, {"id": 709, "type": "!", "text": "!", "parent": 708, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 7}}, {"id": 710, "type": "field_expression", "text": "WcOption.use_jisx0201k", "parent": 708, "children": [711, 712], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 30}}, {"id": 711, "type": "identifier", "text": "WcOption", "parent": 710, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 16}}, {"id": 712, "type": "field_identifier", "text": "use_jisx0201k", "parent": 710, "children": [], "start_point": {"row": 147, "column": 17}, "end_point": {"row": 147, "column": 30}}, {"id": 713, "type": "continue_statement", "text": "continue;", "parent": 706, "children": [714], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 15}}, {"id": 714, "type": "continue", "text": "continue", "parent": 713, "children": [], "start_point": {"row": 148, "column": 6}, "end_point": {"row": 148, "column": 14}}, {"id": 715, "type": "break_statement", "text": "break;", "parent": 703, "children": [716], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 8}}, {"id": 716, "type": "break", "text": "break", "parent": 715, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 7}}, {"id": 717, "type": "assignment_expression", "text": "st->tlist[n++] = wc_get_ucs_table(gset[i].ccs)", "parent": 694, "children": [718, 725, 726], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 51}}, {"id": 718, "type": "subscript_expression", "text": "st->tlist[n++]", "parent": 717, "children": [719, 722], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 19}}, {"id": 719, "type": "field_expression", "text": "st->tlist", "parent": 718, "children": [720, 721], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 14}}, {"id": 720, "type": "identifier", "text": "st", "parent": 719, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 7}}, {"id": 721, "type": "field_identifier", "text": "tlist", "parent": 719, "children": [], "start_point": {"row": 151, "column": 9}, "end_point": {"row": 151, "column": 14}}, {"id": 722, "type": "update_expression", "text": "n++", "parent": 718, "children": [723, 724], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 18}}, {"id": 723, "type": "identifier", "text": "n", "parent": 722, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 16}}, {"id": 724, "type": "++", "text": "++", "parent": 722, "children": [], "start_point": {"row": 151, "column": 16}, "end_point": {"row": 151, "column": 18}}, {"id": 725, "type": "=", "text": "=", "parent": 717, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 21}}, {"id": 726, "type": "call_expression", "text": "wc_get_ucs_table(gset[i].ccs)", "parent": 717, "children": [727, 728], "start_point": {"row": 151, "column": 22}, "end_point": {"row": 151, "column": 51}}, {"id": 727, "type": "identifier", "text": "wc_get_ucs_table", "parent": 726, "children": [], "start_point": {"row": 151, "column": 22}, "end_point": {"row": 151, "column": 38}}, {"id": 728, "type": "argument_list", "text": "(gset[i].ccs)", "parent": 726, "children": [729], "start_point": {"row": 151, "column": 38}, "end_point": {"row": 151, "column": 51}}, {"id": 729, "type": "field_expression", "text": "gset[i].ccs", "parent": 728, "children": [730, 733], "start_point": {"row": 151, "column": 39}, "end_point": {"row": 151, "column": 50}}, {"id": 730, "type": "subscript_expression", "text": "gset[i]", "parent": 729, "children": [731, 732], "start_point": {"row": 151, "column": 39}, "end_point": {"row": 151, "column": 46}}, {"id": 731, "type": "identifier", "text": "gset", "parent": 730, "children": [], "start_point": {"row": 151, "column": 39}, "end_point": {"row": 151, "column": 43}}, {"id": 732, "type": "identifier", "text": "i", "parent": 730, "children": [], "start_point": {"row": 151, "column": 44}, "end_point": {"row": 151, "column": 45}}, {"id": 733, "type": "field_identifier", "text": "ccs", "parent": 729, "children": [], "start_point": {"row": 151, "column": 47}, "end_point": {"row": 151, "column": 50}}, {"id": 734, "type": "assignment_expression", "text": "st->tlist[n] = NULL", "parent": 505, "children": [735, 740, 741], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 23}}, {"id": 735, "type": "subscript_expression", "text": "st->tlist[n]", "parent": 734, "children": [736, 739], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 16}}, {"id": 736, "type": "field_expression", "text": "st->tlist", "parent": 735, "children": [737, 738], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 13}}, {"id": 737, "type": "identifier", "text": "st", "parent": 736, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 6}}, {"id": 738, "type": "field_identifier", "text": "tlist", "parent": 736, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 13}}, {"id": 739, "type": "identifier", "text": "n", "parent": 735, "children": [], "start_point": {"row": 154, "column": 14}, "end_point": {"row": 154, "column": 15}}, {"id": 740, "type": "=", "text": "=", "parent": 734, "children": [], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 18}}, {"id": 741, "type": "null", "text": "NULL", "parent": 734, "children": [742], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 23}}, {"id": 742, "type": "NULL", "text": "NULL", "parent": 741, "children": [], "start_point": {"row": 154, "column": 19}, "end_point": {"row": 154, "column": 23}}, {"id": 743, "type": "assignment_expression", "text": "st->tlistw[nw] = NULL", "parent": 505, "children": [744, 749, 750], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 25}}, {"id": 744, "type": "subscript_expression", "text": "st->tlistw[nw]", "parent": 743, "children": [745, 748], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 18}}, {"id": 745, "type": "field_expression", "text": "st->tlistw", "parent": 744, "children": [746, 747], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 14}}, {"id": 746, "type": "identifier", "text": "st", "parent": 745, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 6}}, {"id": 747, "type": "field_identifier", "text": "tlistw", "parent": 745, "children": [], "start_point": {"row": 155, "column": 8}, "end_point": {"row": 155, "column": 14}}, {"id": 748, "type": "identifier", "text": "nw", "parent": 744, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 17}}, {"id": 749, "type": "=", "text": "=", "parent": 743, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 20}}, {"id": 750, "type": "null", "text": "NULL", "parent": 743, "children": [751], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 25}}, {"id": 751, "type": "NULL", "text": "NULL", "parent": 750, "children": [], "start_point": {"row": 155, "column": 21}, "end_point": {"row": 155, "column": 25}}, {"id": 752, "type": "#endif", "text": "#endif", "parent": 468, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 6}}, {"id": 753, "type": "assignment_expression", "text": "output_st = *st", "parent": 251, "children": [754, 755, 756], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 19}}, {"id": 754, "type": "identifier", "text": "output_st", "parent": 753, "children": [], "start_point": {"row": 159, "column": 4}, "end_point": {"row": 159, "column": 13}}, {"id": 755, "type": "=", "text": "=", "parent": 753, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 15}}, {"id": 756, "type": "pointer_expression", "text": "*st", "parent": 753, "children": [757, 758], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 19}}, {"id": 757, "type": "*", "text": "*", "parent": 756, "children": [], "start_point": {"row": 159, "column": 16}, "end_point": {"row": 159, "column": 17}}, {"id": 758, "type": "identifier", "text": "st", "parent": 756, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 19}}, {"id": 759, "type": "assignment_expression", "text": "output_set = WC_TRUE", "parent": 251, "children": [760, 761, 762], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 24}}, {"id": 760, "type": "identifier", "text": "output_set", "parent": 759, "children": [], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 14}}, {"id": 761, "type": "=", "text": "=", "parent": 759, "children": [], "start_point": {"row": 160, "column": 15}, "end_point": {"row": 160, "column": 16}}, {"id": 762, "type": "identifier", "text": "WC_TRUE", "parent": 759, "children": [], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 24}}, {"id": 763, "type": "assignment_expression", "text": "output_option = WcOption", "parent": 251, "children": [764, 765, 766], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 28}}, {"id": 764, "type": "identifier", "text": "output_option", "parent": 763, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 17}}, {"id": 765, "type": "=", "text": "=", "parent": 763, "children": [], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 19}}, {"id": 766, "type": "identifier", "text": "WcOption", "parent": 763, "children": [], "start_point": {"row": 161, "column": 20}, "end_point": {"row": 161, "column": 28}}, {"id": 767, "type": "function_definition", "text": "wc_bool\nwc_ces_has_ccs(wc_ccs ccs, wc_status *st)\n{\n wc_gset *gset = st->ces_info->gset;\n int i;\n\n for (i = 0; gset[i].ccs; i++) {\n\tif (ccs == gset[i].ccs)\n\t return WC_TRUE;\n }\n return WC_FALSE;\n}", "parent": null, "children": [768, 769], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 175, "column": 1}}, {"id": 768, "type": "type_identifier", "text": "wc_bool", "parent": 767, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 7}}, {"id": 769, "type": "function_declarator", "text": "wc_ces_has_ccs(wc_ccs ccs, wc_status *st)", "parent": 767, "children": [770, 771], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 41}}, {"id": 770, "type": "identifier", "text": "wc_ces_has_ccs", "parent": 769, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 14}}, {"id": 771, "type": "parameter_list", "text": "(wc_ccs ccs, wc_status *st)", "parent": 769, "children": [772, 775], "start_point": {"row": 165, "column": 14}, "end_point": {"row": 165, "column": 41}}, {"id": 772, "type": "parameter_declaration", "text": "wc_ccs ccs", "parent": 771, "children": [773, 774], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 25}}, {"id": 773, "type": "type_identifier", "text": "wc_ccs", "parent": 772, "children": [], "start_point": {"row": 165, "column": 15}, "end_point": {"row": 165, "column": 21}}, {"id": 774, "type": "identifier", "text": "ccs", "parent": 772, "children": [], "start_point": {"row": 165, "column": 22}, "end_point": {"row": 165, "column": 25}}, {"id": 775, "type": "parameter_declaration", "text": "wc_status *st", "parent": 771, "children": [776, 777], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 40}}, {"id": 776, "type": "type_identifier", "text": "wc_status", "parent": 775, "children": [], "start_point": {"row": 165, "column": 27}, "end_point": {"row": 165, "column": 36}}, {"id": 777, "type": "pointer_declarator", "text": "*st", "parent": 775, "children": [778, 779], "start_point": {"row": 165, "column": 37}, "end_point": {"row": 165, "column": 40}}, {"id": 778, "type": "*", "text": "*", "parent": 777, "children": [], "start_point": {"row": 165, "column": 37}, "end_point": {"row": 165, "column": 38}}, {"id": 779, "type": "identifier", "text": "st", "parent": 777, "children": [], "start_point": {"row": 165, "column": 38}, "end_point": {"row": 165, "column": 40}}, {"id": 780, "type": "declaration", "text": "wc_gset *gset = st->ces_info->gset;", "parent": 767, "children": [781, 782], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 39}}, {"id": 781, "type": "type_identifier", "text": "wc_gset", "parent": 780, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 11}}, {"id": 782, "type": "init_declarator", "text": "*gset = st->ces_info->gset", "parent": 780, "children": [783, 786, 787], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 38}}, {"id": 783, "type": "pointer_declarator", "text": "*gset", "parent": 782, "children": [784, 785], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 17}}, {"id": 784, "type": "*", "text": "*", "parent": 783, "children": [], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 13}}, {"id": 785, "type": "identifier", "text": "gset", "parent": 783, "children": [], "start_point": {"row": 167, "column": 13}, "end_point": {"row": 167, "column": 17}}, {"id": 786, "type": "=", "text": "=", "parent": 782, "children": [], "start_point": {"row": 167, "column": 18}, "end_point": {"row": 167, "column": 19}}, {"id": 787, "type": "field_expression", "text": "st->ces_info->gset", "parent": 782, "children": [788, 791], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 38}}, {"id": 788, "type": "field_expression", "text": "st->ces_info", "parent": 787, "children": [789, 790], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 32}}, {"id": 789, "type": "identifier", "text": "st", "parent": 788, "children": [], "start_point": {"row": 167, "column": 20}, "end_point": {"row": 167, "column": 22}}, {"id": 790, "type": "field_identifier", "text": "ces_info", "parent": 788, "children": [], "start_point": {"row": 167, "column": 24}, "end_point": {"row": 167, "column": 32}}, {"id": 791, "type": "field_identifier", "text": "gset", "parent": 787, "children": [], "start_point": {"row": 167, "column": 34}, "end_point": {"row": 167, "column": 38}}, {"id": 792, "type": "declaration", "text": "int i;", "parent": 767, "children": [793, 794], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 10}}, {"id": 793, "type": "primitive_type", "text": "int", "parent": 792, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 7}}, {"id": 794, "type": "identifier", "text": "i", "parent": 792, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 9}}, {"id": 795, "type": "for_statement", "text": "for (i = 0; gset[i].ccs; i++) {\n\tif (ccs == gset[i].ccs)\n\t return WC_TRUE;\n }", "parent": 767, "children": [796, 800, 805], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 173, "column": 5}}, {"id": 796, "type": "assignment_expression", "text": "i = 0", "parent": 795, "children": [797, 798, 799], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 14}}, {"id": 797, "type": "identifier", "text": "i", "parent": 796, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 10}}, {"id": 798, "type": "=", "text": "=", "parent": 796, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 12}}, {"id": 799, "type": "number_literal", "text": "0", "parent": 796, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 14}}, {"id": 800, "type": "field_expression", "text": "gset[i].ccs", "parent": 795, "children": [801, 804], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 27}}, {"id": 801, "type": "subscript_expression", "text": "gset[i]", "parent": 800, "children": [802, 803], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 23}}, {"id": 802, "type": "identifier", "text": "gset", "parent": 801, "children": [], "start_point": {"row": 170, "column": 16}, "end_point": {"row": 170, "column": 20}}, {"id": 803, "type": "identifier", "text": "i", "parent": 801, "children": [], "start_point": {"row": 170, "column": 21}, "end_point": {"row": 170, "column": 22}}, {"id": 804, "type": "field_identifier", "text": "ccs", "parent": 800, "children": [], "start_point": {"row": 170, "column": 24}, "end_point": {"row": 170, "column": 27}}, {"id": 805, "type": "update_expression", "text": "i++", "parent": 795, "children": [806, 807], "start_point": {"row": 170, "column": 29}, "end_point": {"row": 170, "column": 32}}, {"id": 806, "type": "identifier", "text": "i", "parent": 805, "children": [], "start_point": {"row": 170, "column": 29}, "end_point": {"row": 170, "column": 30}}, {"id": 807, "type": "++", "text": "++", "parent": 805, "children": [], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 32}}, {"id": 808, "type": "if_statement", "text": "if (ccs == gset[i].ccs)\n\t return WC_TRUE;", "parent": 795, "children": [809, 818], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 172, "column": 20}}, {"id": 809, "type": "parenthesized_expression", "text": "(ccs == gset[i].ccs)", "parent": 808, "children": [810], "start_point": {"row": 171, "column": 4}, "end_point": {"row": 171, "column": 24}}, {"id": 810, "type": "binary_expression", "text": "ccs == gset[i].ccs", "parent": 809, "children": [811, 812, 813], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 23}}, {"id": 811, "type": "identifier", "text": "ccs", "parent": 810, "children": [], "start_point": {"row": 171, "column": 5}, "end_point": {"row": 171, "column": 8}}, {"id": 812, "type": "==", "text": "==", "parent": 810, "children": [], "start_point": {"row": 171, "column": 9}, "end_point": {"row": 171, "column": 11}}, {"id": 813, "type": "field_expression", "text": "gset[i].ccs", "parent": 810, "children": [814, 817], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 23}}, {"id": 814, "type": "subscript_expression", "text": "gset[i]", "parent": 813, "children": [815, 816], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 19}}, {"id": 815, "type": "identifier", "text": "gset", "parent": 814, "children": [], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 16}}, {"id": 816, "type": "identifier", "text": "i", "parent": 814, "children": [], "start_point": {"row": 171, "column": 17}, "end_point": {"row": 171, "column": 18}}, {"id": 817, "type": "field_identifier", "text": "ccs", "parent": 813, "children": [], "start_point": {"row": 171, "column": 20}, "end_point": {"row": 171, "column": 23}}, {"id": 818, "type": "return_statement", "text": "return WC_TRUE;", "parent": 808, "children": [819], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 20}}, {"id": 819, "type": "identifier", "text": "WC_TRUE", "parent": 818, "children": [], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 19}}, {"id": 820, "type": "return_statement", "text": "return WC_FALSE;", "parent": 767, "children": [821], "start_point": {"row": 174, "column": 4}, "end_point": {"row": 174, "column": 20}}, {"id": 821, "type": "identifier", "text": "WC_FALSE", "parent": 820, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 19}}]}, "node_categories": {"declarations": {"functions": [6, 58, 65, 67, 251, 253, 767, 769], "variables": [23, 46, 49, 52, 70, 73, 78, 83, 256, 259, 264, 272, 772, 775, 780, 792], "classes": [], "imports": [0, 1, 3, 4, 13, 14, 19, 20], "modules": [], "enums": []}, "statements": {"expressions": [88, 92, 93, 95, 102, 103, 108, 114, 120, 126, 127, 132, 133, 138, 139, 144, 145, 150, 151, 158, 159, 166, 172, 178, 188, 189, 193, 197, 198, 199, 206, 207, 208, 214, 215, 217, 218, 223, 224, 229, 230, 238, 245, 279, 280, 281, 284, 287, 288, 293, 295, 298, 300, 303, 310, 316, 320, 321, 323, 330, 331, 336, 341, 342, 343, 344, 345, 346, 351, 356, 361, 366, 367, 372, 377, 378, 379, 380, 381, 382, 387, 392, 397, 402, 403, 408, 409, 414, 418, 419, 426, 427, 434, 435, 442, 448, 454, 460, 461, 464, 472, 479, 485, 486, 488, 492, 499, 517, 518, 522, 526, 527, 530, 531, 535, 539, 543, 547, 550, 551, 558, 562, 565, 566, 583, 584, 588, 592, 593, 596, 597, 603, 604, 605, 613, 614, 616, 630, 631, 633, 644, 645, 646, 647, 651, 656, 661, 662, 665, 669, 678, 679, 682, 686, 689, 690, 697, 698, 699, 707, 708, 710, 718, 719, 722, 726, 729, 730, 735, 736, 744, 745, 756, 787, 788, 800, 801, 805, 809, 810, 813, 814], "assignments": [87, 99, 107, 113, 119, 125, 137, 149, 157, 165, 171, 177, 184, 203, 222, 237, 244, 302, 309, 315, 327, 335, 371, 407, 417, 425, 433, 441, 447, 453, 471, 478, 491, 498, 507, 510, 513, 542, 557, 573, 576, 579, 660, 677, 717, 734, 743, 753, 759, 763, 796], "loops": [183, 506, 572, 795], "conditionals": [8, 10, 11, 16, 17, 18, 22, 24, 26, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 48, 50, 51, 53, 55, 57, 60, 62, 63, 68, 71, 72, 74, 77, 79, 82, 85, 86, 89, 90, 94, 96, 98, 100, 104, 105, 106, 109, 110, 115, 116, 121, 122, 128, 129, 134, 136, 140, 141, 146, 148, 152, 153, 160, 161, 167, 168, 173, 174, 179, 180, 185, 190, 191, 192, 194, 196, 200, 201, 202, 204, 209, 210, 211, 213, 219, 220, 221, 225, 226, 227, 231, 232, 233, 234, 235, 236, 239, 240, 246, 247, 250, 254, 257, 258, 260, 263, 265, 268, 269, 270, 271, 274, 275, 276, 277, 278, 282, 285, 289, 290, 291, 296, 299, 301, 305, 307, 311, 312, 317, 318, 322, 324, 326, 328, 332, 333, 334, 337, 338, 340, 347, 349, 352, 354, 357, 359, 362, 363, 365, 368, 370, 373, 374, 376, 383, 385, 388, 390, 393, 395, 398, 399, 401, 404, 406, 410, 411, 415, 416, 420, 421, 428, 429, 436, 437, 443, 444, 449, 450, 455, 456, 459, 462, 463, 465, 467, 468, 469, 470, 473, 474, 480, 481, 484, 489, 490, 493, 494, 500, 501, 508, 511, 514, 519, 520, 521, 523, 525, 528, 532, 533, 534, 536, 540, 544, 545, 548, 552, 554, 559, 560, 563, 567, 569, 574, 577, 580, 585, 586, 587, 589, 591, 594, 598, 599, 600, 601, 602, 606, 607, 608, 609, 610, 611, 612, 617, 618, 623, 624, 625, 626, 627, 628, 629, 634, 635, 640, 641, 642, 643, 648, 649, 652, 654, 657, 659, 663, 664, 666, 670, 672, 680, 681, 683, 687, 691, 692, 693, 695, 696, 700, 701, 702, 703, 704, 705, 706, 711, 712, 720, 721, 723, 727, 731, 732, 733, 737, 738, 739, 746, 747, 748, 752, 754, 758, 760, 762, 764, 766, 768, 770, 773, 774, 776, 779, 781, 785, 789, 790, 791, 794, 797, 802, 803, 804, 806, 808, 811, 815, 816, 817, 819, 821], "returns": [308, 818, 820], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 15, 21, 112, 118, 124, 130, 135, 142, 147, 154, 156, 162, 164, 170, 176, 182, 187, 212, 249, 314, 369, 405, 412, 422, 424, 430, 432, 438, 440, 446, 452, 458, 483, 516, 556, 571, 582, 799], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "unknown", "text_snippet": "#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "#define wc_option_cmp(opt1, opt2) \\\n memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))\n"}, {"node_id": 65, "universal_type": "function", "name": "wc_input_init", "text_snippet": "void\nwc_input_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n int i, g;\n\n st->ces_info ="}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "wc_input_init(wc_ces ces, wc_status *st)"}, {"node_id": 251, "universal_type": "function", "name": "wc_output_init", "text_snippet": "void\nwc_output_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i,"}, {"node_id": 253, "universal_type": "function", "name": "unknown", "text_snippet": "wc_output_init(wc_ces ces, wc_status *st)"}, {"node_id": 767, "universal_type": "function", "name": "i;", "text_snippet": "wc_bool\nwc_ces_has_ccs(wc_ccs ccs, wc_status *st)\n{\n wc_gset *gset = st->ces_info->gset;\n int "}, {"node_id": 769, "universal_type": "function", "name": "unknown", "text_snippet": "wc_ces_has_ccs(wc_ccs ccs, wc_status *st)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <string.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <gc.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 13, "text": "#include \"wc.h\"\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 19, "text": "#include \"ucs.h\"\n"}, {"node_id": 20, "text": "#include"}]}, "original_source_code": "\n#include <string.h>\n#include <gc.h>\n#define New_N(type,n) ((type*)GC_MALLOC((n)*sizeof(type)))\n\n#include \"wc.h\"\n#ifdef USE_UNICODE\n#include \"ucs.h\"\n#endif\n\nwc_option WcOption = {\n WC_OPT_DETECT_ON,\t/* auto_detect */\n WC_TRUE,\t\t/* use_combining */\n WC_TRUE,\t\t/* use_language_tag */\n WC_TRUE,\t\t/* ucs_conv */\n WC_FALSE,\t\t/* pre_conv */\n WC_TRUE,\t\t/* fix_width_conv */\n WC_FALSE,\t\t/* use_gb12345_map */\n WC_FALSE,\t\t/* use_jisx0201 */\n WC_FALSE,\t\t/* use_jisc6226 */\n WC_FALSE,\t\t/* use_jisx0201k */\n WC_FALSE,\t\t/* use_jisx0212 */\n WC_FALSE,\t\t/* use_jisx0213 */\n WC_TRUE,\t\t/* strict_iso2022 */\n WC_FALSE,\t\t/* gb18030_as_ucs */\n WC_FALSE,\t\t/* no_replace */\n WC_TRUE,\t\t/* use_wide */\n WC_FALSE,\t\t/* east_asian_width */\n};\n\nstatic wc_status output_st;\nstatic wc_option output_option;\nstatic wc_bool output_set = WC_FALSE;\n\n#define wc_option_cmp(opt1, opt2) \\\n memcmp((void *)(opt1), (void *)(opt2), sizeof(wc_option))\n\nvoid\nwc_input_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n int i, g;\n\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->state = 0;\n st->g0_ccs = 0;\n st->g1_ccs = 0;\n st->design[0] = gset[0].ccs;\n st->design[1] = gset[1].ccs;\t/* for ISO-2022-JP/EUC-JP */ \n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 1;\n st->ss = 0;\n\n for (i = 0; gset[i].ccs; i++) {\n\tif (gset[i].init) {\n\t g = gset[i].g & 0x03;\n\t if (! st->design[g])\n\t\tst->design[g] = gset[i].ccs;\n\t}\n }\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n#endif\n}\n\nvoid\nwc_output_init(wc_ces ces, wc_status *st)\n{\n wc_gset *gset;\n#ifdef USE_UNICODE\n size_t i, n, nw;\n#endif\n\n if (output_set && ces == output_st.ces_info->id &&\n\t! wc_option_cmp(&WcOption, &output_option)) {\n\t*st = output_st;\n\treturn;\n }\n\n st->state = 0;\n st->ces_info = &WcCesInfo[WC_CES_INDEX(ces)];\n gset = st->ces_info->gset;\n\n st->g0_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisx0201)\n\t? WC_CCS_JIS_X_0201 : gset[0].ccs;\n st->g1_ccs = ((ces == WC_CES_ISO_2022_JP || ces == WC_CES_ISO_2022_JP_2 ||\n\tces == WC_CES_ISO_2022_JP_3) && WcOption.use_jisc6226)\n\t? WC_CCS_JIS_C_6226 : gset[1].ccs;\n st->design[0] = st->g0_ccs;\n st->design[1] = 0;\n st->design[2] = 0;\n st->design[3] = 0;\n st->gl = 0;\n st->gr = 0;\n st->ss = 0;\n\n if (ces & WC_CES_T_ISO_2022)\n\twc_create_gmap(st);\n\n#ifdef USE_UNICODE\n st->tag = NULL;\n st->ntag = 0;\n\n if (! WcOption.ucs_conv) {\n\tst->tlist = NULL;\n\tst->tlistw = NULL;\n } else {\n\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs))\n\t nw++;\n\telse\n\t n++;\n }\n st->tlist = New_N(wc_table *, n + 1);\n st->tlistw = New_N(wc_table *, nw + 1);\n for (i = n = nw = 0; gset[i].ccs; i++) {\n\tif (WC_CCS_IS_WIDE(gset[i].ccs)) {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0212:\n\t\tif (! WcOption.use_jisx0212)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_JIS_X_0213_1:\n\t case WC_CCS_JIS_X_0213_2:\n\t\tif (! WcOption.use_jisx0213)\n\t\t continue;\n\t\tbreak;\n\t case WC_CCS_GB_2312:\n\t\tif (WcOption.use_gb12345_map &&\n\t\t ces != WC_CES_GBK && ces != WC_CES_GB18030) {\n\t\t st->tlistw[nw++] = wc_get_ucs_table(WC_CCS_GB_12345);\n\t\t continue;\n\t\t}\n\t\tbreak;\n\t }\n\t st->tlistw[nw++] = wc_get_ucs_table(gset[i].ccs);\n\t} else {\n\t switch (gset[i].ccs) {\n\t case WC_CCS_JIS_X_0201K:\n\t\tif (! WcOption.use_jisx0201k)\n\t\t continue;\n\t\tbreak;\n\t }\n\t st->tlist[n++] = wc_get_ucs_table(gset[i].ccs);\n\t}\n }\n st->tlist[n] = NULL;\n st->tlistw[nw] = NULL;\n }\n#endif\n\n output_st = *st;\n output_set = WC_TRUE;\n output_option = WcOption;\n}\n\nwc_bool\nwc_ces_has_ccs(wc_ccs ccs, wc_status *st)\n{\n wc_gset *gset = st->ces_info->gset;\n int i;\n\n for (i = 0; gset[i].ccs; i++) {\n\tif (ccs == gset[i].ccs)\n\t return WC_TRUE;\n }\n return WC_FALSE;\n}\n"}
80,795
c
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses this file to you 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. *****************************************************************************/ /***************************************************************************** icache.h -- Instruction Cache Unit. Original Author: <NAME>, Synopsys, Inc. *****************************************************************************/ /***************************************************************************** MODIFICATION LOG - modifiers, enter your name, affiliation, date and changes you are making here. Name, Affiliation, Date: Description of Modification: *****************************************************************************/ #define BOOT_LENGTH 5 #define MAX_CODE_LENGTH 500 struct icache : sc_module { sc_in<unsigned > datain; // modified instruction sc_in<bool> cs; // chip select sc_in<bool> we; // write enable for SMC sc_in<unsigned > addr; // address sc_in<bool> ld_valid; // load valid sc_in<signed> ld_data; // load data value sc_out<unsigned > dataout; // ram data out sc_out<bool> icache_valid; // output valid sc_out<bool> stall_fetch; // stall fetch if busy sc_in_clk CLK; // Parameter unsigned *icmemory; // icache data memory unsigned *ictagmemory; // icache tag memory signed int pid; // process ID int wait_cycles; // Number of cycles it takes to access imemory void init_param(int given_delay_cycles) { wait_cycles = given_delay_cycles; } //Constructor SC_CTOR(icache) { SC_CTHREAD(entry, CLK.pos()); // initialize instruction icmemory from external file pid = 0; FILE *fp = fopen("icache","r"); int size=0; int mem_word; icmemory = new unsigned[MAX_CODE_LENGTH]; ictagmemory = new unsigned[MAX_CODE_LENGTH]; for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data icmemory[size] = 0xeeeeeeee; ictagmemory[size] = 0xeeeeeeee; } size = 0; while (fscanf(fp,"%x", &mem_word) != EOF) { icmemory[size] = mem_word; ictagmemory[size] = size; size++; } } // Process functionality in member function below void entry(); };
37.58
78
(translation_unit) "/*****************************************************************************\n\n Licensed to Accellera Systems Initiative Inc. (Accellera) under one or\n more contributor license agreements. See the NOTICE file distributed\n with this work for additional information regarding copyright ownership.\n Accellera licenses this file to you under the Apache License, Version 2.0\n (the "License"); you may not use this file except in compliance with the\n License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied. See the License for the specific language governing\n permissions and limitations under the License.\n\n *****************************************************************************/\n\n/*****************************************************************************\n \n icache.h -- Instruction Cache Unit.\n \n Original Author: <NAME>, Synopsys, Inc.\n \n *****************************************************************************/\n \n/*****************************************************************************\n \n MODIFICATION LOG - modifiers, enter your name, affiliation, date and\n changes you are making here.\n \n Name, Affiliation, Date:\n Description of Modification:\n \n *****************************************************************************/\n \n\n#define BOOT_LENGTH 5\n#define MAX_CODE_LENGTH 500\n\nstruct icache : sc_module { \n sc_in<unsigned > datain; // modified instruction\n sc_in<bool> cs; // chip select\n sc_in<bool> we; // write enable for SMC\n sc_in<unsigned > addr; // address\n sc_in<bool> ld_valid; // load valid \n sc_in<signed> ld_data; // load data value\n sc_out<unsigned > dataout; // ram data out\n sc_out<bool> icache_valid; // output valid\n sc_out<bool> stall_fetch; // stall fetch if busy\n sc_in_clk CLK;\n\n // Parameter\n unsigned *icmemory; // icache data memory\n unsigned *ictagmemory; // icache tag memory\n signed int pid; // process ID\n\n int wait_cycles; // Number of cycles it takes to access imemory\n\n void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }\n \n //Constructor\n SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n // initialize instruction icmemory from external file\n pid = 0;\n FILE *fp = fopen("icache","r");\n int size=0;\n int mem_word;\n icmemory = new unsigned[MAX_CODE_LENGTH];\n ictagmemory = new unsigned[MAX_CODE_LENGTH];\n for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }\n size = 0;\n while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }\n }\n\n // Process functionality in member function below\n void entry();\n};\n\n\n" (comment) "/*****************************************************************************\n\n Licensed to Accellera Systems Initiative Inc. (Accellera) under one or\n more contributor license agreements. See the NOTICE file distributed\n with this work for additional information regarding copyright ownership.\n Accellera licenses this file to you under the Apache License, Version 2.0\n (the "License"); you may not use this file except in compliance with the\n License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an "AS IS" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied. See the License for the specific language governing\n permissions and limitations under the License.\n\n *****************************************************************************/" (comment) "/*****************************************************************************\n \n icache.h -- Instruction Cache Unit.\n \n Original Author: <NAME>, Synopsys, Inc.\n \n *****************************************************************************/" (comment) "/*****************************************************************************\n \n MODIFICATION LOG - modifiers, enter your name, affiliation, date and\n changes you are making here.\n \n Name, Affiliation, Date:\n Description of Modification:\n \n *****************************************************************************/" (preproc_def) "#define BOOT_LENGTH 5\n" (#define) "#define" (identifier) "BOOT_LENGTH" (preproc_arg) "5" (preproc_def) "#define MAX_CODE_LENGTH 500\n" (#define) "#define" (identifier) "MAX_CODE_LENGTH" (preproc_arg) "500" (function_definition) "struct icache : sc_module { \n sc_in<unsigned > datain; // modified instruction\n sc_in<bool> cs; // chip select\n sc_in<bool> we; // write enable for SMC\n sc_in<unsigned > addr; // address\n sc_in<bool> ld_valid; // load valid \n sc_in<signed> ld_data; // load data value\n sc_out<unsigned > dataout; // ram data out\n sc_out<bool> icache_valid; // output valid\n sc_out<bool> stall_fetch; // stall fetch if busy\n sc_in_clk CLK;\n\n // Parameter\n unsigned *icmemory; // icache data memory\n unsigned *ictagmemory; // icache tag memory\n signed int pid; // process ID\n\n int wait_cycles; // Number of cycles it takes to access imemory\n\n void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }\n \n //Constructor\n SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n // initialize instruction icmemory from external file\n pid = 0;\n FILE *fp = fopen("icache","r");\n int size=0;\n int mem_word;\n icmemory = new unsigned[MAX_CODE_LENGTH];\n ictagmemory = new unsigned[MAX_CODE_LENGTH];\n for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }\n size = 0;\n while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }\n }\n\n // Process functionality in member function below\n void entry();\n}" (struct_specifier) "struct icache" (struct) "struct" (type_identifier) "icache" (ERROR) ":" (:) ":" (identifier) "sc_module" (compound_statement) "{ \n sc_in<unsigned > datain; // modified instruction\n sc_in<bool> cs; // chip select\n sc_in<bool> we; // write enable for SMC\n sc_in<unsigned > addr; // address\n sc_in<bool> ld_valid; // load valid \n sc_in<signed> ld_data; // load data value\n sc_out<unsigned > dataout; // ram data out\n sc_out<bool> icache_valid; // output valid\n sc_out<bool> stall_fetch; // stall fetch if busy\n sc_in_clk CLK;\n\n // Parameter\n unsigned *icmemory; // icache data memory\n unsigned *ictagmemory; // icache tag memory\n signed int pid; // process ID\n\n int wait_cycles; // Number of cycles it takes to access imemory\n\n void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }\n \n //Constructor\n SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n // initialize instruction icmemory from external file\n pid = 0;\n FILE *fp = fopen("icache","r");\n int size=0;\n int mem_word;\n icmemory = new unsigned[MAX_CODE_LENGTH];\n ictagmemory = new unsigned[MAX_CODE_LENGTH];\n for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }\n size = 0;\n while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }\n }\n\n // Process functionality in member function below\n void entry();\n}" ({) "{" (expression_statement) "sc_in<unsigned > datain;" (binary_expression) "sc_in<unsigned > datain" (binary_expression) "sc_in<unsigned" (identifier) "sc_in" (<) "<" (identifier) "unsigned" (>) ">" (identifier) "datain" (;) ";" (comment) "// modified instruction" (expression_statement) "sc_in<bool> cs;" (binary_expression) "sc_in<bool> cs" (binary_expression) "sc_in<bool" (identifier) "sc_in" (<) "<" (identifier) "bool" (>) ">" (identifier) "cs" (;) ";" (comment) "// chip select" (expression_statement) "sc_in<bool> we;" (binary_expression) "sc_in<bool> we" (binary_expression) "sc_in<bool" (identifier) "sc_in" (<) "<" (identifier) "bool" (>) ">" (identifier) "we" (;) ";" (comment) "// write enable for SMC" (expression_statement) "sc_in<unsigned > addr;" (binary_expression) "sc_in<unsigned > addr" (binary_expression) "sc_in<unsigned" (identifier) "sc_in" (<) "<" (identifier) "unsigned" (>) ">" (identifier) "addr" (;) ";" (comment) "// address" (expression_statement) "sc_in<bool> ld_valid;" (binary_expression) "sc_in<bool> ld_valid" (binary_expression) "sc_in<bool" (identifier) "sc_in" (<) "<" (identifier) "bool" (>) ">" (identifier) "ld_valid" (;) ";" (comment) "// load valid " (expression_statement) "sc_in<signed> ld_data;" (binary_expression) "sc_in<signed> ld_data" (binary_expression) "sc_in<signed" (identifier) "sc_in" (<) "<" (identifier) "signed" (>) ">" (identifier) "ld_data" (;) ";" (comment) "// load data value" (expression_statement) "sc_out<unsigned > dataout;" (binary_expression) "sc_out<unsigned > dataout" (binary_expression) "sc_out<unsigned" (identifier) "sc_out" (<) "<" (identifier) "unsigned" (>) ">" (identifier) "dataout" (;) ";" (comment) "// ram data out" (expression_statement) "sc_out<bool> icache_valid;" (binary_expression) "sc_out<bool> icache_valid" (binary_expression) "sc_out<bool" (identifier) "sc_out" (<) "<" (identifier) "bool" (>) ">" (identifier) "icache_valid" (;) ";" (comment) "// output valid" (expression_statement) "sc_out<bool> stall_fetch;" (binary_expression) "sc_out<bool> stall_fetch" (binary_expression) "sc_out<bool" (identifier) "sc_out" (<) "<" (identifier) "bool" (>) ">" (identifier) "stall_fetch" (;) ";" (comment) "// stall fetch if busy" (declaration) "sc_in_clk CLK;" (type_identifier) "sc_in_clk" (identifier) "CLK" (;) ";" (comment) "// Parameter" (declaration) "unsigned *icmemory;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (pointer_declarator) "*icmemory" (*) "*" (identifier) "icmemory" (;) ";" (comment) "// icache data memory" (declaration) "unsigned *ictagmemory;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (pointer_declarator) "*ictagmemory" (*) "*" (identifier) "ictagmemory" (;) ";" (comment) "// icache tag memory" (declaration) "signed int pid;" (sized_type_specifier) "signed int" (signed) "signed" (primitive_type) "int" (identifier) "pid" (;) ";" (comment) "// process ID" (declaration) "int wait_cycles;" (primitive_type) "int" (identifier) "wait_cycles" (;) ";" (comment) "// Number of cycles it takes to access imemory" (function_definition) "void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }" (primitive_type) "void" (function_declarator) "init_param(int given_delay_cycles)" (identifier) "init_param" (parameter_list) "(int given_delay_cycles)" (() "(" (parameter_declaration) "int given_delay_cycles" (primitive_type) "int" (identifier) "given_delay_cycles" ()) ")" (compound_statement) "{\n wait_cycles = given_delay_cycles;\n }" ({) "{" (expression_statement) "wait_cycles = given_delay_cycles;" (assignment_expression) "wait_cycles = given_delay_cycles" (identifier) "wait_cycles" (=) "=" (identifier) "given_delay_cycles" (;) ";" (}) "}" (comment) "//Constructor" (function_definition) "SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n // initialize instruction icmemory from external file\n pid = 0;\n FILE *fp = fopen("icache","r");\n int size=0;\n int mem_word;\n icmemory = new unsigned[MAX_CODE_LENGTH];\n ictagmemory = new unsigned[MAX_CODE_LENGTH];\n for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }\n size = 0;\n while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }\n }" (type_identifier) "SC_CTOR" (parenthesized_declarator) "(icache)" (() "(" (identifier) "icache" ()) ")" (compound_statement) "{\n SC_CTHREAD(entry, CLK.pos());\n\n // initialize instruction icmemory from external file\n pid = 0;\n FILE *fp = fopen("icache","r");\n int size=0;\n int mem_word;\n icmemory = new unsigned[MAX_CODE_LENGTH];\n ictagmemory = new unsigned[MAX_CODE_LENGTH];\n for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }\n size = 0;\n while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }\n }" ({) "{" (expression_statement) "SC_CTHREAD(entry, CLK.pos());" (call_expression) "SC_CTHREAD(entry, CLK.pos())" (identifier) "SC_CTHREAD" (argument_list) "(entry, CLK.pos())" (() "(" (identifier) "entry" (,) "," (call_expression) "CLK.pos()" (field_expression) "CLK.pos" (identifier) "CLK" (.) "." (field_identifier) "pos" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (comment) "// initialize instruction icmemory from external file" (expression_statement) "pid = 0;" (assignment_expression) "pid = 0" (identifier) "pid" (=) "=" (number_literal) "0" (;) ";" (declaration) "FILE *fp = fopen("icache","r");" (type_identifier) "FILE" (init_declarator) "*fp = fopen("icache","r")" (pointer_declarator) "*fp" (*) "*" (identifier) "fp" (=) "=" (call_expression) "fopen("icache","r")" (identifier) "fopen" (argument_list) "("icache","r")" (() "(" (string_literal) ""icache"" (") """ (string_content) "icache" (") """ (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" (;) ";" (declaration) "int size=0;" (primitive_type) "int" (init_declarator) "size=0" (identifier) "size" (=) "=" (number_literal) "0" (;) ";" (declaration) "int mem_word;" (primitive_type) "int" (identifier) "mem_word" (;) ";" (expression_statement) "icmemory = new unsigned[MAX_CODE_LENGTH];" (assignment_expression) "icmemory = new unsigned[MAX_CODE_LENGTH]" (identifier) "icmemory" (=) "=" (ERROR) "new" (identifier) "new" (subscript_expression) "unsigned[MAX_CODE_LENGTH]" (identifier) "unsigned" ([) "[" (identifier) "MAX_CODE_LENGTH" (]) "]" (;) ";" (expression_statement) "ictagmemory = new unsigned[MAX_CODE_LENGTH];" (assignment_expression) "ictagmemory = new unsigned[MAX_CODE_LENGTH]" (identifier) "ictagmemory" (=) "=" (ERROR) "new" (identifier) "new" (subscript_expression) "unsigned[MAX_CODE_LENGTH]" (identifier) "unsigned" ([) "[" (identifier) "MAX_CODE_LENGTH" (]) "]" (;) ";" (for_statement) "for (size = 0; size < MAX_CODE_LENGTH; size++) { // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }" (for) "for" (() "(" (assignment_expression) "size = 0" (identifier) "size" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "size < MAX_CODE_LENGTH" (identifier) "size" (<) "<" (identifier) "MAX_CODE_LENGTH" (;) ";" (update_expression) "size++" (identifier) "size" (++) "++" ()) ")" (compound_statement) "{ // initialize bad data\n icmemory[size] = 0xeeeeeeee;\n ictagmemory[size] = 0xeeeeeeee;\n }" ({) "{" (comment) "// initialize bad data" (expression_statement) "icmemory[size] = 0xeeeeeeee;" (assignment_expression) "icmemory[size] = 0xeeeeeeee" (subscript_expression) "icmemory[size]" (identifier) "icmemory" ([) "[" (identifier) "size" (]) "]" (=) "=" (number_literal) "0xeeeeeeee" (;) ";" (expression_statement) "ictagmemory[size] = 0xeeeeeeee;" (assignment_expression) "ictagmemory[size] = 0xeeeeeeee" (subscript_expression) "ictagmemory[size]" (identifier) "ictagmemory" ([) "[" (identifier) "size" (]) "]" (=) "=" (number_literal) "0xeeeeeeee" (;) ";" (}) "}" (expression_statement) "size = 0;" (assignment_expression) "size = 0" (identifier) "size" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (fscanf(fp,"%x", &mem_word) != EOF) {\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }" (while) "while" (parenthesized_expression) "(fscanf(fp,"%x", &mem_word) != EOF)" (() "(" (binary_expression) "fscanf(fp,"%x", &mem_word) != EOF" (call_expression) "fscanf(fp,"%x", &mem_word)" (identifier) "fscanf" (argument_list) "(fp,"%x", &mem_word)" (() "(" (identifier) "fp" (,) "," (string_literal) ""%x"" (") """ (string_content) "%x" (") """ (,) "," (pointer_expression) "&mem_word" (&) "&" (identifier) "mem_word" ()) ")" (!=) "!=" (identifier) "EOF" ()) ")" (compound_statement) "{\n icmemory[size] = mem_word;\n ictagmemory[size] = size;\n size++;\n }" ({) "{" (expression_statement) "icmemory[size] = mem_word;" (assignment_expression) "icmemory[size] = mem_word" (subscript_expression) "icmemory[size]" (identifier) "icmemory" ([) "[" (identifier) "size" (]) "]" (=) "=" (identifier) "mem_word" (;) ";" (expression_statement) "ictagmemory[size] = size;" (assignment_expression) "ictagmemory[size] = size" (subscript_expression) "ictagmemory[size]" (identifier) "ictagmemory" ([) "[" (identifier) "size" (]) "]" (=) "=" (identifier) "size" (;) ";" (expression_statement) "size++;" (update_expression) "size++" (identifier) "size" (++) "++" (;) ";" (}) "}" (}) "}" (comment) "// Process functionality in member function below" (declaration) "void entry();" (primitive_type) "void" (function_declarator) "entry()" (identifier) "entry" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
364
3
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 37.58, "nodes": 221, "errors": 0, "source_hash": "ae7e93fb9e08fc4baba59a9d1980484fbca8cae00ba9cd43889ae730f4fcd888", "categorized_nodes": 156}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define BOOT_LENGTH 5\n", "parent": null, "children": [1, 2, 3], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 1, "type": "#define", "text": "#define", "parent": 0, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 2, "type": "identifier", "text": "BOOT_LENGTH", "parent": 0, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 19}}, {"id": 3, "type": "preproc_arg", "text": "5", "parent": 0, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 4, "type": "preproc_def", "text": "#define MAX_CODE_LENGTH 500\n", "parent": null, "children": [5, 6, 7], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 5, "type": "#define", "text": "#define", "parent": 4, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 6, "type": "identifier", "text": "MAX_CODE_LENGTH", "parent": 4, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 23}}, {"id": 7, "type": "preproc_arg", "text": "500", "parent": 4, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 27}}, {"id": 8, "type": "function_definition", "text": "struct icache : sc_module { \n \tsc_in<unsigned > \tdatain; \t// modified instruction\n \tsc_in<bool> \t\tcs; \t\t// chip select\n \tsc_in<bool> \t\twe; \t\t// write enable for SMC\n \tsc_in<unsigned > \taddr; \t\t// address\n \tsc_in<bool> \t\tld_valid;\t// load valid \n \tsc_in<signed> \t\tld_data; \t// load data value\n \tsc_out<unsigned > \tdataout; \t// ram data out\n \tsc_out<bool> \t\ticache_valid; \t// output valid\n \tsc_out<bool> \t\tstall_fetch; \t// stall fetch if busy\n \tsc_in_clk \t\tCLK;\n\n // Parameter\n unsigned *icmemory;\t \t\t\t\t// icache data memory\n unsigned *ictagmemory; \t\t\t\t// icache tag memory\n signed int pid;\t \t\t\t\t// process ID\n\n int wait_cycles; // Number of cycles it takes to access imemory\n\n void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }\n \n //Constructor\n SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n\t// initialize instruction icmemory from external file\n\tpid = 0;\n\tFILE *fp = fopen(\"icache\",\"r\");\n\tint size=0;\n\tint mem_word;\n \ticmemory \t= new unsigned[MAX_CODE_LENGTH];\n \tictagmemory \t= new unsigned[MAX_CODE_LENGTH];\n\tfor (size = 0; size < MAX_CODE_LENGTH; size++) {\t// initialize bad data\n\t\ticmemory[size] = 0xeeeeeeee;\n\t\tictagmemory[size] = 0xeeeeeeee;\n\t}\n\tsize = 0;\n\twhile (fscanf(fp,\"%x\", &mem_word) != EOF) {\n\t\ticmemory[size] = mem_word;\n\t\tictagmemory[size] = size;\n\t\tsize++;\n\t}\n }\n\n // Process functionality in member function below\n void entry();\n}", "parent": null, "children": [9, 12], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 89, "column": 1}}, {"id": 9, "type": "struct_specifier", "text": "struct icache", "parent": 8, "children": [10, 11], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 13}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 11, "type": "type_identifier", "text": "icache", "parent": 9, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 13}}, {"id": 12, "type": "identifier", "text": "sc_module", "parent": 8, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 25}}, {"id": 13, "type": "binary_expression", "text": "sc_in<unsigned > \tdatain", "parent": 8, "children": [14, 18, 19], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 28}}, {"id": 14, "type": "binary_expression", "text": "sc_in<unsigned", "parent": 13, "children": [15, 16, 17], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 17}}, {"id": 15, "type": "identifier", "text": "sc_in", "parent": 14, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 8}}, {"id": 16, "type": "<", "text": "<", "parent": 14, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 9}}, {"id": 17, "type": "identifier", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 17}}, {"id": 18, "type": ">", "text": ">", "parent": 13, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 19, "type": "identifier", "text": "datain", "parent": 13, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 28}}, {"id": 20, "type": "binary_expression", "text": "sc_in<bool> \t\tcs", "parent": 8, "children": [21, 25, 26], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 20}}, {"id": 21, "type": "binary_expression", "text": "sc_in<bool", "parent": 20, "children": [22, 23, 24], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 13}}, {"id": 22, "type": "identifier", "text": "sc_in", "parent": 21, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 8}}, {"id": 23, "type": "<", "text": "<", "parent": 21, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 9}}, {"id": 24, "type": "identifier", "text": "bool", "parent": 21, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 13}}, {"id": 25, "type": ">", "text": ">", "parent": 20, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 14}}, {"id": 26, "type": "identifier", "text": "cs", "parent": 20, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 20}}, {"id": 27, "type": "binary_expression", "text": "sc_in<bool> \t\twe", "parent": 8, "children": [28, 32, 33], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 20}}, {"id": 28, "type": "binary_expression", "text": "sc_in<bool", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 13}}, {"id": 29, "type": "identifier", "text": "sc_in", "parent": 28, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 8}}, {"id": 30, "type": "<", "text": "<", "parent": 28, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 31, "type": "identifier", "text": "bool", "parent": 28, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 13}}, {"id": 32, "type": ">", "text": ">", "parent": 27, "children": [], "start_point": {"row": 44, "column": 13}, "end_point": {"row": 44, "column": 14}}, {"id": 33, "type": "identifier", "text": "we", "parent": 27, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 20}}, {"id": 34, "type": "binary_expression", "text": "sc_in<unsigned > \taddr", "parent": 8, "children": [35, 39, 40], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 26}}, {"id": 35, "type": "binary_expression", "text": "sc_in<unsigned", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 17}}, {"id": 36, "type": "identifier", "text": "sc_in", "parent": 35, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 8}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 9}}, {"id": 38, "type": "identifier", "text": "unsigned", "parent": 35, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 17}}, {"id": 39, "type": ">", "text": ">", "parent": 34, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 19}}, {"id": 40, "type": "identifier", "text": "addr", "parent": 34, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 26}}, {"id": 41, "type": "binary_expression", "text": "sc_in<bool> \t\tld_valid", "parent": 8, "children": [42, 46, 47], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 26}}, {"id": 42, "type": "binary_expression", "text": "sc_in<bool", "parent": 41, "children": [43, 44, 45], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 13}}, {"id": 43, "type": "identifier", "text": "sc_in", "parent": 42, "children": [], "start_point": {"row": 46, "column": 3}, "end_point": {"row": 46, "column": 8}}, {"id": 44, "type": "<", "text": "<", "parent": 42, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 45, "type": "identifier", "text": "bool", "parent": 42, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 13}}, {"id": 46, "type": ">", "text": ">", "parent": 41, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 14}}, {"id": 47, "type": "identifier", "text": "ld_valid", "parent": 41, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 26}}, {"id": 48, "type": "binary_expression", "text": "sc_in<signed> \t\tld_data", "parent": 8, "children": [49, 53, 54], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 27}}, {"id": 49, "type": "binary_expression", "text": "sc_in<signed", "parent": 48, "children": [50, 51, 52], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 15}}, {"id": 50, "type": "identifier", "text": "sc_in", "parent": 49, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 8}}, {"id": 51, "type": "<", "text": "<", "parent": 49, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 52, "type": "identifier", "text": "signed", "parent": 49, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 53, "type": ">", "text": ">", "parent": 48, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 16}}, {"id": 54, "type": "identifier", "text": "ld_data", "parent": 48, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 27}}, {"id": 55, "type": "binary_expression", "text": "sc_out<unsigned > \tdataout", "parent": 8, "children": [56, 60, 61], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 30}}, {"id": 56, "type": "binary_expression", "text": "sc_out<unsigned", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 18}}, {"id": 57, "type": "identifier", "text": "sc_out", "parent": 56, "children": [], "start_point": {"row": 48, "column": 3}, "end_point": {"row": 48, "column": 9}}, {"id": 58, "type": "<", "text": "<", "parent": 56, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 10}}, {"id": 59, "type": "identifier", "text": "unsigned", "parent": 56, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 18}}, {"id": 60, "type": ">", "text": ">", "parent": 55, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 20}}, {"id": 61, "type": "identifier", "text": "dataout", "parent": 55, "children": [], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 30}}, {"id": 62, "type": "binary_expression", "text": "sc_out<bool> \t\ticache_valid", "parent": 8, "children": [63, 67, 68], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 31}}, {"id": 63, "type": "binary_expression", "text": "sc_out<bool", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 14}}, {"id": 64, "type": "identifier", "text": "sc_out", "parent": 63, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 9}}, {"id": 65, "type": "<", "text": "<", "parent": 63, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 10}}, {"id": 66, "type": "identifier", "text": "bool", "parent": 63, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 67, "type": ">", "text": ">", "parent": 62, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 15}}, {"id": 68, "type": "identifier", "text": "icache_valid", "parent": 62, "children": [], "start_point": {"row": 49, "column": 19}, "end_point": {"row": 49, "column": 31}}, {"id": 69, "type": "binary_expression", "text": "sc_out<bool> \t\tstall_fetch", "parent": 8, "children": [70, 74, 75], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 30}}, {"id": 70, "type": "binary_expression", "text": "sc_out<bool", "parent": 69, "children": [71, 72, 73], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 14}}, {"id": 71, "type": "identifier", "text": "sc_out", "parent": 70, "children": [], "start_point": {"row": 50, "column": 3}, "end_point": {"row": 50, "column": 9}}, {"id": 72, "type": "<", "text": "<", "parent": 70, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 73, "type": "identifier", "text": "bool", "parent": 70, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 14}}, {"id": 74, "type": ">", "text": ">", "parent": 69, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 15}}, {"id": 75, "type": "identifier", "text": "stall_fetch", "parent": 69, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 30}}, {"id": 76, "type": "declaration", "text": "sc_in_clk \t\tCLK;", "parent": 8, "children": [77, 78], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 19}}, {"id": 77, "type": "type_identifier", "text": "sc_in_clk", "parent": 76, "children": [], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 12}}, {"id": 78, "type": "identifier", "text": "CLK", "parent": 76, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 18}}, {"id": 79, "type": "declaration", "text": "unsigned *icmemory;", "parent": 8, "children": [80, 82], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 21}}, {"id": 80, "type": "sized_type_specifier", "text": "unsigned", "parent": 79, "children": [81], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 10}}, {"id": 81, "type": "unsigned", "text": "unsigned", "parent": 80, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 10}}, {"id": 82, "type": "pointer_declarator", "text": "*icmemory", "parent": 79, "children": [83, 84], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 20}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 12}}, {"id": 84, "type": "identifier", "text": "icmemory", "parent": 82, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 85, "type": "declaration", "text": "unsigned *ictagmemory;", "parent": 8, "children": [86, 88], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 24}}, {"id": 86, "type": "sized_type_specifier", "text": "unsigned", "parent": 85, "children": [87], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 10}}, {"id": 87, "type": "unsigned", "text": "unsigned", "parent": 86, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 10}}, {"id": 88, "type": "pointer_declarator", "text": "*ictagmemory", "parent": 85, "children": [89, 90], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 23}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 12}}, {"id": 90, "type": "identifier", "text": "ictagmemory", "parent": 88, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 23}}, {"id": 91, "type": "declaration", "text": "signed int pid;", "parent": 8, "children": [92, 95], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 17}}, {"id": 92, "type": "sized_type_specifier", "text": "signed int", "parent": 91, "children": [93, 94], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 12}}, {"id": 93, "type": "signed", "text": "signed", "parent": 92, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 8}}, {"id": 94, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 12}}, {"id": 95, "type": "identifier", "text": "pid", "parent": 91, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 16}}, {"id": 96, "type": "declaration", "text": "int wait_cycles;", "parent": 8, "children": [97, 98], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 18}}, {"id": 97, "type": "primitive_type", "text": "int", "parent": 96, "children": [], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 5}}, {"id": 98, "type": "identifier", "text": "wait_cycles", "parent": 96, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 17}}, {"id": 99, "type": "function_definition", "text": "void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }", "parent": 8, "children": [100, 101], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 62, "column": 3}}, {"id": 100, "type": "primitive_type", "text": "void", "parent": 99, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 6}}, {"id": 101, "type": "function_declarator", "text": "init_param(int given_delay_cycles)", "parent": 99, "children": [102, 103], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 41}}, {"id": 102, "type": "identifier", "text": "init_param", "parent": 101, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 17}}, {"id": 103, "type": "parameter_list", "text": "(int given_delay_cycles)", "parent": 101, "children": [104], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 41}}, {"id": 104, "type": "parameter_declaration", "text": "int given_delay_cycles", "parent": 103, "children": [105, 106], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 40}}, {"id": 105, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 21}}, {"id": 106, "type": "identifier", "text": "given_delay_cycles", "parent": 104, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 40}}, {"id": 107, "type": "assignment_expression", "text": "wait_cycles = given_delay_cycles", "parent": 99, "children": [108, 109, 110], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 36}}, {"id": 108, "type": "identifier", "text": "wait_cycles", "parent": 107, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 15}}, {"id": 109, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 110, "type": "identifier", "text": "given_delay_cycles", "parent": 107, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 36}}, {"id": 111, "type": "function_definition", "text": "SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n\t// initialize instruction icmemory from external file\n\tpid = 0;\n\tFILE *fp = fopen(\"icache\",\"r\");\n\tint size=0;\n\tint mem_word;\n \ticmemory \t= new unsigned[MAX_CODE_LENGTH];\n \tictagmemory \t= new unsigned[MAX_CODE_LENGTH];\n\tfor (size = 0; size < MAX_CODE_LENGTH; size++) {\t// initialize bad data\n\t\ticmemory[size] = 0xeeeeeeee;\n\t\tictagmemory[size] = 0xeeeeeeee;\n\t}\n\tsize = 0;\n\twhile (fscanf(fp,\"%x\", &mem_word) != EOF) {\n\t\ticmemory[size] = mem_word;\n\t\tictagmemory[size] = size;\n\t\tsize++;\n\t}\n }", "parent": 8, "children": [112, 113], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 112, "type": "type_identifier", "text": "SC_CTOR", "parent": 111, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 9}}, {"id": 113, "type": "parenthesized_declarator", "text": "(icache)", "parent": 111, "children": [114], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 17}}, {"id": 114, "type": "identifier", "text": "icache", "parent": 113, "children": [], "start_point": {"row": 65, "column": 10}, "end_point": {"row": 65, "column": 16}}, {"id": 115, "type": "call_expression", "text": "SC_CTHREAD(entry, CLK.pos())", "parent": 111, "children": [116, 117], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 36}}, {"id": 116, "type": "identifier", "text": "SC_CTHREAD", "parent": 115, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 18}}, {"id": 117, "type": "argument_list", "text": "(entry, CLK.pos())", "parent": 115, "children": [118, 119], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 36}}, {"id": 118, "type": "identifier", "text": "entry", "parent": 117, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 24}}, {"id": 119, "type": "call_expression", "text": "CLK.pos()", "parent": 117, "children": [120, 123], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 35}}, {"id": 120, "type": "field_expression", "text": "CLK.pos", "parent": 119, "children": [121, 122], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 33}}, {"id": 121, "type": "identifier", "text": "CLK", "parent": 120, "children": [], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 29}}, {"id": 122, "type": "field_identifier", "text": "pos", "parent": 120, "children": [], "start_point": {"row": 66, "column": 30}, "end_point": {"row": 66, "column": 33}}, {"id": 123, "type": "argument_list", "text": "()", "parent": 119, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 35}}, {"id": 124, "type": "assignment_expression", "text": "pid = 0", "parent": 111, "children": [125, 126, 127], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 8}}, {"id": 125, "type": "identifier", "text": "pid", "parent": 124, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 4}}, {"id": 126, "type": "=", "text": "=", "parent": 124, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 127, "type": "number_literal", "text": "0", "parent": 124, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 8}}, {"id": 128, "type": "declaration", "text": "FILE *fp = fopen(\"icache\",\"r\");", "parent": 111, "children": [129, 130], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 32}}, {"id": 129, "type": "type_identifier", "text": "FILE", "parent": 128, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 5}}, {"id": 130, "type": "init_declarator", "text": "*fp = fopen(\"icache\",\"r\")", "parent": 128, "children": [131, 134, 135], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 31}}, {"id": 131, "type": "pointer_declarator", "text": "*fp", "parent": 130, "children": [132, 133], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 9}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 133, "type": "identifier", "text": "fp", "parent": 131, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 9}}, {"id": 134, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 70, "column": 10}, "end_point": {"row": 70, "column": 11}}, {"id": 135, "type": "call_expression", "text": "fopen(\"icache\",\"r\")", "parent": 130, "children": [136, 137], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 31}}, {"id": 136, "type": "identifier", "text": "fopen", "parent": 135, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 17}}, {"id": 137, "type": "argument_list", "text": "(\"icache\",\"r\")", "parent": 135, "children": [138, 139], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 31}}, {"id": 138, "type": "string_literal", "text": "\"icache\"", "parent": 137, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 26}}, {"id": 139, "type": "string_literal", "text": "\"r\"", "parent": 137, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 30}}, {"id": 140, "type": "declaration", "text": "int size=0;", "parent": 111, "children": [141, 142], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 12}}, {"id": 141, "type": "primitive_type", "text": "int", "parent": 140, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 4}}, {"id": 142, "type": "init_declarator", "text": "size=0", "parent": 140, "children": [143, 144, 145], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 11}}, {"id": 143, "type": "identifier", "text": "size", "parent": 142, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 9}}, {"id": 144, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 145, "type": "number_literal", "text": "0", "parent": 142, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 11}}, {"id": 146, "type": "declaration", "text": "int mem_word;", "parent": 111, "children": [147, 148], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 14}}, {"id": 147, "type": "primitive_type", "text": "int", "parent": 146, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 4}}, {"id": 148, "type": "identifier", "text": "mem_word", "parent": 146, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 13}}, {"id": 149, "type": "assignment_expression", "text": "icmemory \t= new unsigned[MAX_CODE_LENGTH]", "parent": 111, "children": [150, 151, 152], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 44}}, {"id": 150, "type": "identifier", "text": "icmemory", "parent": 149, "children": [], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 73, "column": 11}}, {"id": 151, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 14}}, {"id": 152, "type": "subscript_expression", "text": "unsigned[MAX_CODE_LENGTH]", "parent": 149, "children": [153, 154], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 44}}, {"id": 153, "type": "identifier", "text": "unsigned", "parent": 152, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 27}}, {"id": 154, "type": "identifier", "text": "MAX_CODE_LENGTH", "parent": 152, "children": [], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 43}}, {"id": 155, "type": "assignment_expression", "text": "ictagmemory \t= new unsigned[MAX_CODE_LENGTH]", "parent": 111, "children": [156, 157, 158], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 47}}, {"id": 156, "type": "identifier", "text": "ictagmemory", "parent": 155, "children": [], "start_point": {"row": 74, "column": 3}, "end_point": {"row": 74, "column": 14}}, {"id": 157, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 17}}, {"id": 158, "type": "subscript_expression", "text": "unsigned[MAX_CODE_LENGTH]", "parent": 155, "children": [159, 160], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 47}}, {"id": 159, "type": "identifier", "text": "unsigned", "parent": 158, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 30}}, {"id": 160, "type": "identifier", "text": "MAX_CODE_LENGTH", "parent": 158, "children": [], "start_point": {"row": 74, "column": 31}, "end_point": {"row": 74, "column": 46}}, {"id": 161, "type": "for_statement", "text": "for (size = 0; size < MAX_CODE_LENGTH; size++) {\t// initialize bad data\n\t\ticmemory[size] = 0xeeeeeeee;\n\t\tictagmemory[size] = 0xeeeeeeee;\n\t}", "parent": 111, "children": [162, 166, 170], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 78, "column": 2}}, {"id": 162, "type": "assignment_expression", "text": "size = 0", "parent": 161, "children": [163, 164, 165], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 14}}, {"id": 163, "type": "identifier", "text": "size", "parent": 162, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 10}}, {"id": 164, "type": "=", "text": "=", "parent": 162, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 12}}, {"id": 165, "type": "number_literal", "text": "0", "parent": 162, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 14}}, {"id": 166, "type": "binary_expression", "text": "size < MAX_CODE_LENGTH", "parent": 161, "children": [167, 168, 169], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 38}}, {"id": 167, "type": "identifier", "text": "size", "parent": 166, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 20}}, {"id": 168, "type": "<", "text": "<", "parent": 166, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 22}}, {"id": 169, "type": "identifier", "text": "MAX_CODE_LENGTH", "parent": 166, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 38}}, {"id": 170, "type": "update_expression", "text": "size++", "parent": 161, "children": [171, 172], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 46}}, {"id": 171, "type": "identifier", "text": "size", "parent": 170, "children": [], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 44}}, {"id": 172, "type": "++", "text": "++", "parent": 170, "children": [], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 46}}, {"id": 173, "type": "assignment_expression", "text": "icmemory[size] = 0xeeeeeeee", "parent": 161, "children": [174, 177, 178], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 29}}, {"id": 174, "type": "subscript_expression", "text": "icmemory[size]", "parent": 173, "children": [175, 176], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 16}}, {"id": 175, "type": "identifier", "text": "icmemory", "parent": 174, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 10}}, {"id": 176, "type": "identifier", "text": "size", "parent": 174, "children": [], "start_point": {"row": 76, "column": 11}, "end_point": {"row": 76, "column": 15}}, {"id": 177, "type": "=", "text": "=", "parent": 173, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 18}}, {"id": 178, "type": "number_literal", "text": "0xeeeeeeee", "parent": 173, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 29}}, {"id": 179, "type": "assignment_expression", "text": "ictagmemory[size] = 0xeeeeeeee", "parent": 161, "children": [180, 183, 184], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 32}}, {"id": 180, "type": "subscript_expression", "text": "ictagmemory[size]", "parent": 179, "children": [181, 182], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 19}}, {"id": 181, "type": "identifier", "text": "ictagmemory", "parent": 180, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 13}}, {"id": 182, "type": "identifier", "text": "size", "parent": 180, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 18}}, {"id": 183, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 21}}, {"id": 184, "type": "number_literal", "text": "0xeeeeeeee", "parent": 179, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 32}}, {"id": 185, "type": "assignment_expression", "text": "size = 0", "parent": 111, "children": [186, 187, 188], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 9}}, {"id": 186, "type": "identifier", "text": "size", "parent": 185, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 5}}, {"id": 187, "type": "=", "text": "=", "parent": 185, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 7}}, {"id": 188, "type": "number_literal", "text": "0", "parent": 185, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 9}}, {"id": 189, "type": "while_statement", "text": "while (fscanf(fp,\"%x\", &mem_word) != EOF) {\n\t\ticmemory[size] = mem_word;\n\t\tictagmemory[size] = size;\n\t\tsize++;\n\t}", "parent": 111, "children": [190], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 84, "column": 2}}, {"id": 190, "type": "parenthesized_expression", "text": "(fscanf(fp,\"%x\", &mem_word) != EOF)", "parent": 189, "children": [191], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 42}}, {"id": 191, "type": "binary_expression", "text": "fscanf(fp,\"%x\", &mem_word) != EOF", "parent": 190, "children": [192, 199, 200], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 41}}, {"id": 192, "type": "call_expression", "text": "fscanf(fp,\"%x\", &mem_word)", "parent": 191, "children": [193, 194], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 34}}, {"id": 193, "type": "identifier", "text": "fscanf", "parent": 192, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 14}}, {"id": 194, "type": "argument_list", "text": "(fp,\"%x\", &mem_word)", "parent": 192, "children": [195, 196, 197], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 34}}, {"id": 195, "type": "identifier", "text": "fp", "parent": 194, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 17}}, {"id": 196, "type": "string_literal", "text": "\"%x\"", "parent": 194, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 22}}, {"id": 197, "type": "pointer_expression", "text": "&mem_word", "parent": 194, "children": [198], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 33}}, {"id": 198, "type": "identifier", "text": "mem_word", "parent": 197, "children": [], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 33}}, {"id": 199, "type": "!=", "text": "!=", "parent": 191, "children": [], "start_point": {"row": 80, "column": 35}, "end_point": {"row": 80, "column": 37}}, {"id": 200, "type": "identifier", "text": "EOF", "parent": 191, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 41}}, {"id": 201, "type": "assignment_expression", "text": "icmemory[size] = mem_word", "parent": 189, "children": [202, 205, 206], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 27}}, {"id": 202, "type": "subscript_expression", "text": "icmemory[size]", "parent": 201, "children": [203, 204], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 16}}, {"id": 203, "type": "identifier", "text": "icmemory", "parent": 202, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 10}}, {"id": 204, "type": "identifier", "text": "size", "parent": 202, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 15}}, {"id": 205, "type": "=", "text": "=", "parent": 201, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 18}}, {"id": 206, "type": "identifier", "text": "mem_word", "parent": 201, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 27}}, {"id": 207, "type": "assignment_expression", "text": "ictagmemory[size] = size", "parent": 189, "children": [208, 211, 212], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 26}}, {"id": 208, "type": "subscript_expression", "text": "ictagmemory[size]", "parent": 207, "children": [209, 210], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 19}}, {"id": 209, "type": "identifier", "text": "ictagmemory", "parent": 208, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 13}}, {"id": 210, "type": "identifier", "text": "size", "parent": 208, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 18}}, {"id": 211, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 21}}, {"id": 212, "type": "identifier", "text": "size", "parent": 207, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 26}}, {"id": 213, "type": "update_expression", "text": "size++", "parent": 189, "children": [214, 215], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 8}}, {"id": 214, "type": "identifier", "text": "size", "parent": 213, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 6}}, {"id": 215, "type": "++", "text": "++", "parent": 213, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 8}}, {"id": 216, "type": "declaration", "text": "void entry();", "parent": 8, "children": [217, 218], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 15}}, {"id": 217, "type": "primitive_type", "text": "void", "parent": 216, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 6}}, {"id": 218, "type": "function_declarator", "text": "entry()", "parent": 216, "children": [219, 220], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 14}}, {"id": 219, "type": "identifier", "text": "entry", "parent": 218, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 12}}, {"id": 220, "type": "parameter_list", "text": "()", "parent": 218, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 14}}]}, "node_categories": {"declarations": {"functions": [8, 99, 101, 111, 218], "variables": [76, 79, 85, 91, 96, 104, 128, 140, 146, 216], "classes": [9, 10], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [13, 14, 20, 21, 27, 28, 34, 35, 41, 42, 48, 49, 55, 56, 62, 63, 69, 70, 115, 119, 120, 135, 152, 158, 166, 170, 174, 180, 190, 191, 192, 197, 202, 208, 213], "assignments": [107, 124, 149, 155, 162, 173, 179, 185, 201, 207], "loops": [161, 189], "conditionals": [2, 6, 11, 12, 15, 17, 19, 22, 24, 26, 29, 31, 33, 36, 38, 40, 43, 45, 47, 50, 52, 54, 57, 59, 61, 64, 66, 68, 71, 73, 75, 77, 78, 80, 84, 86, 90, 92, 95, 98, 102, 106, 108, 110, 112, 114, 116, 118, 121, 122, 125, 129, 133, 136, 143, 148, 150, 153, 154, 156, 159, 160, 163, 167, 169, 171, 175, 176, 181, 182, 186, 193, 195, 198, 200, 203, 204, 206, 209, 210, 212, 214, 219], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [127, 138, 139, 145, 165, 178, 184, 188, 196], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "icache", "text_snippet": "struct icache : sc_module { \n \tsc_in<unsigned > \tdatain; \t// modified instruction\n \tsc_in<bool> "}, {"node_id": 99, "universal_type": "function", "name": "init_param", "text_snippet": "void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "init_param(int given_delay_cycles)"}, {"node_id": 111, "universal_type": "function", "name": "size=0;", "text_snippet": "SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n\t// initialize instruction icmemory from ex"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "entry()"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "icache", "text_snippet": "struct icache"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/*****************************************************************************\n\n Licensed to Accellera Systems Initiative Inc. (Accellera) under one or\n more contributor license agreements. See the NOTICE file distributed\n with this work for additional information regarding copyright ownership.\n Accellera licenses this file to you under the Apache License, Version 2.0\n (the \"License\"); you may not use this file except in compliance with the\n License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied. See the License for the specific language governing\n permissions and limitations under the License.\n\n *****************************************************************************/\n\n/*****************************************************************************\n \n icache.h -- Instruction Cache Unit.\n \n Original Author: <NAME>, Synopsys, Inc.\n \n *****************************************************************************/\n \n/*****************************************************************************\n \n MODIFICATION LOG - modifiers, enter your name, affiliation, date and\n changes you are making here.\n \n Name, Affiliation, Date:\n Description of Modification:\n \n *****************************************************************************/\n \n\n#define BOOT_LENGTH 5\n#define MAX_CODE_LENGTH 500\n\nstruct icache : sc_module { \n \tsc_in<unsigned > \tdatain; \t// modified instruction\n \tsc_in<bool> \t\tcs; \t\t// chip select\n \tsc_in<bool> \t\twe; \t\t// write enable for SMC\n \tsc_in<unsigned > \taddr; \t\t// address\n \tsc_in<bool> \t\tld_valid;\t// load valid \n \tsc_in<signed> \t\tld_data; \t// load data value\n \tsc_out<unsigned > \tdataout; \t// ram data out\n \tsc_out<bool> \t\ticache_valid; \t// output valid\n \tsc_out<bool> \t\tstall_fetch; \t// stall fetch if busy\n \tsc_in_clk \t\tCLK;\n\n // Parameter\n unsigned *icmemory;\t \t\t\t\t// icache data memory\n unsigned *ictagmemory; \t\t\t\t// icache tag memory\n signed int pid;\t \t\t\t\t// process ID\n\n int wait_cycles; // Number of cycles it takes to access imemory\n\n void init_param(int given_delay_cycles) {\n wait_cycles = given_delay_cycles;\n }\n \n //Constructor\n SC_CTOR(icache) {\n SC_CTHREAD(entry, CLK.pos());\n\n\t// initialize instruction icmemory from external file\n\tpid = 0;\n\tFILE *fp = fopen(\"icache\",\"r\");\n\tint size=0;\n\tint mem_word;\n \ticmemory \t= new unsigned[MAX_CODE_LENGTH];\n \tictagmemory \t= new unsigned[MAX_CODE_LENGTH];\n\tfor (size = 0; size < MAX_CODE_LENGTH; size++) {\t// initialize bad data\n\t\ticmemory[size] = 0xeeeeeeee;\n\t\tictagmemory[size] = 0xeeeeeeee;\n\t}\n\tsize = 0;\n\twhile (fscanf(fp,\"%x\", &mem_word) != EOF) {\n\t\ticmemory[size] = mem_word;\n\t\tictagmemory[size] = size;\n\t\tsize++;\n\t}\n }\n\n // Process functionality in member function below\n void entry();\n};\n\n\n"}
80,796
c
#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_ #define ADD_TO_ARRAY_FORM_OF_INTEGER_H_ #include <vector> namespace solution { std::vector<int> addToArrayForm(std::vector<int>& num, int k) { // direct // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer. // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer. // int carry{0}, p = num.size() - 1; while (k > 0 || carry) { auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry; carry = result > 9; if (carry) result -= 10; if (p > -1) { num[p--] = result; } else { num.insert(num.begin(), result); } k = k / 10; } return num; } } #endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_
29.72
25
(translation_unit) "#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n\n#include <vector>\n\nnamespace solution {\n\nstd::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}\n\n#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n" (ERROR) "#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n\n#include <vector>\n\nnamespace solution {\n\nstd::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}\n\n#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n" (#ifndef) "#ifndef" (identifier) "ADD_TO_ARRAY_FORM_OF_INTEGER_H_" (preproc_def) "#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n" (#define) "#define" (identifier) "ADD_TO_ARRAY_FORM_OF_INTEGER_H_" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (type_identifier) "namespace" (identifier) "solution" ({) "{" (labeled_statement) "std::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}" (statement_identifier) "std" (:) ":" (ERROR) ":vector<int> addToArrayForm(std::vector<int>& num, int k)" (:) ":" (binary_expression) "vector<int> addToArrayForm(std::vector<int>& num, int k)" (binary_expression) "vector<int" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (call_expression) "addToArrayForm(std::vector<int>& num, int k)" (identifier) "addToArrayForm" (argument_list) "(std::vector<int>& num, int k)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<int>& num" (binary_expression) "vector<int" (identifier) "vector" (<) "<" (identifier) "int" (>) ">" (pointer_expression) "& num" (&) "&" (identifier) "num" (,) "," (identifier) "int" (ERROR) "k" (identifier) "k" ()) ")" (compound_statement) "{\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}" ({) "{" (comment) "// direct" (comment) "// Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer." (comment) "// Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer." (comment) "//" (function_definition) "int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}" (primitive_type) "int" (identifier) "carry" (compound_statement) "{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}" ({) "{" (expression_statement) "0}, p = num.size() - 1;" (comma_expression) "0}, p = num.size() - 1" (number_literal) "0" (ERROR) "}" (}) "}" (,) "," (assignment_expression) "p = num.size() - 1" (identifier) "p" (=) "=" (binary_expression) "num.size() - 1" (call_expression) "num.size()" (field_expression) "num.size" (identifier) "num" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (-) "-" (number_literal) "1" (;) ";" (while_statement) "while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }" (while) "while" (parenthesized_expression) "(k > 0 || carry)" (() "(" (binary_expression) "k > 0 || carry" (binary_expression) "k > 0" (identifier) "k" (>) ">" (number_literal) "0" (||) "||" (identifier) "carry" ()) ")" (compound_statement) "{\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }" ({) "{" (declaration) "auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "n" (init_declarator) " = k % 10" (identifier) "" (=) "=" (binary_expression) "k % 10" (identifier) "k" (%) "%" (number_literal) "10" (,) "," (init_declarator) "result = n + (p > -1 ? num[p] : 0) + carry" (identifier) "result" (=) "=" (binary_expression) "n + (p > -1 ? num[p] : 0) + carry" (binary_expression) "n + (p > -1 ? num[p] : 0)" (identifier) "n" (+) "+" (parenthesized_expression) "(p > -1 ? num[p] : 0)" (() "(" (conditional_expression) "p > -1 ? num[p] : 0" (binary_expression) "p > -1" (identifier) "p" (>) ">" (number_literal) "-1" (?) "?" (subscript_expression) "num[p]" (identifier) "num" ([) "[" (identifier) "p" (]) "]" (:) ":" (number_literal) "0" ()) ")" (+) "+" (identifier) "carry" (;) ";" (expression_statement) "carry = result > 9;" (assignment_expression) "carry = result > 9" (identifier) "carry" (=) "=" (binary_expression) "result > 9" (identifier) "result" (>) ">" (number_literal) "9" (;) ";" (if_statement) "if (carry) result -= 10;" (if) "if" (parenthesized_expression) "(carry)" (() "(" (identifier) "carry" ()) ")" (expression_statement) "result -= 10;" (assignment_expression) "result -= 10" (identifier) "result" (-=) "-=" (number_literal) "10" (;) ";" (if_statement) "if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }" (if) "if" (parenthesized_expression) "(p > -1)" (() "(" (binary_expression) "p > -1" (identifier) "p" (>) ">" (number_literal) "-1" ()) ")" (compound_statement) "{\n num[p--] = result;\n }" ({) "{" (expression_statement) "num[p--] = result;" (assignment_expression) "num[p--] = result" (subscript_expression) "num[p--]" (identifier) "num" ([) "[" (update_expression) "p--" (identifier) "p" (--) "--" (]) "]" (=) "=" (identifier) "result" (;) ";" (}) "}" (else_clause) "else {\n num.insert(num.begin(), result);\n }" (else) "else" (compound_statement) "{\n num.insert(num.begin(), result);\n }" ({) "{" (expression_statement) "num.insert(num.begin(), result);" (call_expression) "num.insert(num.begin(), result)" (field_expression) "num.insert" (identifier) "num" (.) "." (field_identifier) "insert" (argument_list) "(num.begin(), result)" (() "(" (call_expression) "num.begin()" (field_expression) "num.begin" (identifier) "num" (.) "." (field_identifier) "begin" (argument_list) "()" (() "(" ()) ")" (,) "," (identifier) "result" ()) ")" (;) ";" (}) "}" (expression_statement) "k = k / 10;" (assignment_expression) "k = k / 10" (identifier) "k" (=) "=" (binary_expression) "k / 10" (identifier) "k" (/) "/" (number_literal) "10" (;) ";" (}) "}" (return_statement) "return num;" (return) "return" (identifier) "num" (;) ";" (}) "}" (}) "}" (preproc_call) "#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n" (preproc_directive) "#endif" (comment) "// ADD_TO_ARRAY_FORM_OF_INTEGER_H_"
219
5
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 29.72, "nodes": 142, "errors": 0, "source_hash": "b11bc90e5a47c1a2701a2f4bb00cfa3b3b98e61e4ab82efed99a79ba04316360", "categorized_nodes": 102}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n\n#include <vector>\n\nnamespace solution {\n\nstd::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}\n\n#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 10, 11, 140], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 32, "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": "ADD_TO_ARRAY_FORM_OF_INTEGER_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 39}}, {"id": 3, "type": "preproc_def", "text": "#define ADD_TO_ARRAY_FORM_OF_INTEGER_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": "ADD_TO_ARRAY_FORM_OF_INTEGER_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 39}}, {"id": 6, "type": "preproc_include", "text": "#include <vector>\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": "<vector>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"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": "solution", "parent": 0, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 18}}, {"id": 11, "type": "labeled_statement", "text": "std::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}", "parent": 0, "children": [12, 13], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 12, "type": "statement_identifier", "text": "std", "parent": 11, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 3}}, {"id": 13, "type": "ERROR", "text": ":vector<int> addToArrayForm(std::vector<int>& num, int k)", "parent": 11, "children": [14], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 61}}, {"id": 14, "type": "binary_expression", "text": "vector<int> addToArrayForm(std::vector<int>& num, int k)", "parent": 13, "children": [15, 19, 20], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 61}}, {"id": 15, "type": "binary_expression", "text": "vector<int", "parent": 14, "children": [16, 17, 18], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 15}}, {"id": 16, "type": "identifier", "text": "vector", "parent": 15, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 11}}, {"id": 17, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 18, "type": "identifier", "text": "int", "parent": 15, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 15}}, {"id": 19, "type": ">", "text": ">", "parent": 14, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 16}}, {"id": 20, "type": "call_expression", "text": "addToArrayForm(std::vector<int>& num, int k)", "parent": 14, "children": [21, 22], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 61}}, {"id": 21, "type": "identifier", "text": "addToArrayForm", "parent": 20, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 31}}, {"id": 22, "type": "argument_list", "text": "(std::vector<int>& num, int k)", "parent": 20, "children": [23, 25, 33, 34], "start_point": {"row": 7, "column": 31}, "end_point": {"row": 7, "column": 61}}, {"id": 23, "type": "ERROR", "text": "std::", "parent": 22, "children": [24], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 37}}, {"id": 24, "type": "identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 35}}, {"id": 25, "type": "binary_expression", "text": "vector<int>& num", "parent": 22, "children": [26, 30, 31], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 53}}, {"id": 26, "type": "binary_expression", "text": "vector<int", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 47}}, {"id": 27, "type": "identifier", "text": "vector", "parent": 26, "children": [], "start_point": {"row": 7, "column": 37}, "end_point": {"row": 7, "column": 43}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 44}}, {"id": 29, "type": "identifier", "text": "int", "parent": 26, "children": [], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 47}}, {"id": 30, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 7, "column": 47}, "end_point": {"row": 7, "column": 48}}, {"id": 31, "type": "pointer_expression", "text": "& num", "parent": 25, "children": [32], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 53}}, {"id": 32, "type": "identifier", "text": "num", "parent": 31, "children": [], "start_point": {"row": 7, "column": 50}, "end_point": {"row": 7, "column": 53}}, {"id": 33, "type": "identifier", "text": "int", "parent": 22, "children": [], "start_point": {"row": 7, "column": 55}, "end_point": {"row": 7, "column": 58}}, {"id": 34, "type": "ERROR", "text": "k", "parent": 22, "children": [35], "start_point": {"row": 7, "column": 59}, "end_point": {"row": 7, "column": 60}}, {"id": 35, "type": "identifier", "text": "k", "parent": 34, "children": [], "start_point": {"row": 7, "column": 59}, "end_point": {"row": 7, "column": 60}}, {"id": 36, "type": "function_definition", "text": "int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}", "parent": 11, "children": [37, 38], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 27, "column": 1}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 5}}, {"id": 38, "type": "identifier", "text": "carry", "parent": 36, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 11}}, {"id": 39, "type": "comma_expression", "text": "0}, p = num.size() - 1", "parent": 36, "children": [40, 41], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 34}}, {"id": 40, "type": "number_literal", "text": "0", "parent": 39, "children": [], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 13}}, {"id": 41, "type": "assignment_expression", "text": "p = num.size() - 1", "parent": 39, "children": [42, 43, 44], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 34}}, {"id": 42, "type": "identifier", "text": "p", "parent": 41, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 19}}, {"id": 44, "type": "binary_expression", "text": "num.size() - 1", "parent": 41, "children": [45, 50, 51], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 34}}, {"id": 45, "type": "call_expression", "text": "num.size()", "parent": 44, "children": [46, 49], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 30}}, {"id": 46, "type": "field_expression", "text": "num.size", "parent": 45, "children": [47, 48], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 28}}, {"id": 47, "type": "identifier", "text": "num", "parent": 46, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 23}}, {"id": 48, "type": "field_identifier", "text": "size", "parent": 46, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 28}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 30}}, {"id": 50, "type": "-", "text": "-", "parent": 44, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 32}}, {"id": 51, "type": "number_literal", "text": "1", "parent": 44, "children": [], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 34}}, {"id": 52, "type": "while_statement", "text": "while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }", "parent": 36, "children": [53], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 24, "column": 3}}, {"id": 53, "type": "parenthesized_expression", "text": "(k > 0 || carry)", "parent": 52, "children": [54], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 24}}, {"id": 54, "type": "binary_expression", "text": "k > 0 || carry", "parent": 53, "children": [55, 59, 60], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 23}}, {"id": 55, "type": "binary_expression", "text": "k > 0", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 14}}, {"id": 56, "type": "identifier", "text": "k", "parent": 55, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 57, "type": ">", "text": ">", "parent": 55, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}, {"id": 58, "type": "number_literal", "text": "0", "parent": 55, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 14}}, {"id": 59, "type": "||", "text": "||", "parent": 54, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 17}}, {"id": 60, "type": "identifier", "text": "carry", "parent": 54, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 23}}, {"id": 61, "type": "declaration", "text": "auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;", "parent": 52, "children": [62, 64, 65, 72], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 64}}, {"id": 62, "type": "storage_class_specifier", "text": "auto", "parent": 61, "children": [63], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 63, "type": "auto", "text": "auto", "parent": 62, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 64, "type": "type_identifier", "text": "n", "parent": 61, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 65, "type": "init_declarator", "text": " = k % 10", "parent": 61, "children": [66, 67, 68], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 66, "type": "identifier", "text": "", "parent": 65, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 10}}, {"id": 67, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 12}}, {"id": 68, "type": "binary_expression", "text": "k % 10", "parent": 65, "children": [69, 70, 71], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 19}}, {"id": 69, "type": "identifier", "text": "k", "parent": 68, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 14}}, {"id": 70, "type": "%", "text": "%", "parent": 68, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 71, "type": "number_literal", "text": "10", "parent": 68, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 19}}, {"id": 72, "type": "init_declarator", "text": "result = n + (p > -1 ? num[p] : 0) + carry", "parent": 61, "children": [73, 74, 75], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 63}}, {"id": 73, "type": "identifier", "text": "result", "parent": 72, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 27}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 29}}, {"id": 75, "type": "binary_expression", "text": "n + (p > -1 ? num[p] : 0) + carry", "parent": 72, "children": [76, 90, 91], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 63}}, {"id": 76, "type": "binary_expression", "text": "n + (p > -1 ? num[p] : 0)", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 55}}, {"id": 77, "type": "identifier", "text": "n", "parent": 76, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 31}}, {"id": 78, "type": "+", "text": "+", "parent": 76, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 33}}, {"id": 79, "type": "parenthesized_expression", "text": "(p > -1 ? num[p] : 0)", "parent": 76, "children": [80], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 55}}, {"id": 80, "type": "conditional_expression", "text": "p > -1 ? num[p] : 0", "parent": 79, "children": [81, 85, 86, 89], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 54}}, {"id": 81, "type": "binary_expression", "text": "p > -1", "parent": 80, "children": [82, 83, 84], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 41}}, {"id": 82, "type": "identifier", "text": "p", "parent": 81, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 36}}, {"id": 83, "type": ">", "text": ">", "parent": 81, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 38}}, {"id": 84, "type": "number_literal", "text": "-1", "parent": 81, "children": [], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 41}}, {"id": 85, "type": "?", "text": "?", "parent": 80, "children": [], "start_point": {"row": 14, "column": 42}, "end_point": {"row": 14, "column": 43}}, {"id": 86, "type": "subscript_expression", "text": "num[p]", "parent": 80, "children": [87, 88], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 50}}, {"id": 87, "type": "identifier", "text": "num", "parent": 86, "children": [], "start_point": {"row": 14, "column": 44}, "end_point": {"row": 14, "column": 47}}, {"id": 88, "type": "identifier", "text": "p", "parent": 86, "children": [], "start_point": {"row": 14, "column": 48}, "end_point": {"row": 14, "column": 49}}, {"id": 89, "type": "number_literal", "text": "0", "parent": 80, "children": [], "start_point": {"row": 14, "column": 53}, "end_point": {"row": 14, "column": 54}}, {"id": 90, "type": "+", "text": "+", "parent": 75, "children": [], "start_point": {"row": 14, "column": 56}, "end_point": {"row": 14, "column": 57}}, {"id": 91, "type": "identifier", "text": "carry", "parent": 75, "children": [], "start_point": {"row": 14, "column": 58}, "end_point": {"row": 14, "column": 63}}, {"id": 92, "type": "assignment_expression", "text": "carry = result > 9", "parent": 52, "children": [93, 94, 95], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 22}}, {"id": 93, "type": "identifier", "text": "carry", "parent": 92, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 9}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}, {"id": 95, "type": "binary_expression", "text": "result > 9", "parent": 92, "children": [96, 97, 98], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 22}}, {"id": 96, "type": "identifier", "text": "result", "parent": 95, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 18}}, {"id": 97, "type": ">", "text": ">", "parent": 95, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 98, "type": "number_literal", "text": "9", "parent": 95, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 99, "type": "if_statement", "text": "if (carry) result -= 10;", "parent": 52, "children": [100], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 28}}, {"id": 100, "type": "parenthesized_expression", "text": "(carry)", "parent": 99, "children": [101], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 14}}, {"id": 101, "type": "identifier", "text": "carry", "parent": 100, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 13}}, {"id": 102, "type": "assignment_expression", "text": "result -= 10", "parent": 99, "children": [103, 104, 105], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 27}}, {"id": 103, "type": "identifier", "text": "result", "parent": 102, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 21}}, {"id": 104, "type": "-=", "text": "-=", "parent": 102, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 24}}, {"id": 105, "type": "number_literal", "text": "10", "parent": 102, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 27}}, {"id": 106, "type": "if_statement", "text": "if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }", "parent": 52, "children": [107, 120], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 21, "column": 5}}, {"id": 107, "type": "parenthesized_expression", "text": "(p > -1)", "parent": 106, "children": [108], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 15}}, {"id": 108, "type": "binary_expression", "text": "p > -1", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 14}}, {"id": 109, "type": "identifier", "text": "p", "parent": 108, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 110, "type": ">", "text": ">", "parent": 108, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 111, "type": "number_literal", "text": "-1", "parent": 108, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 14}}, {"id": 112, "type": "assignment_expression", "text": "num[p--] = result", "parent": 106, "children": [113, 118, 119], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 23}}, {"id": 113, "type": "subscript_expression", "text": "num[p--]", "parent": 112, "children": [114, 115], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 14}}, {"id": 114, "type": "identifier", "text": "num", "parent": 113, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 9}}, {"id": 115, "type": "update_expression", "text": "p--", "parent": 113, "children": [116, 117], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 13}}, {"id": 116, "type": "identifier", "text": "p", "parent": 115, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 117, "type": "--", "text": "--", "parent": 115, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 13}}, {"id": 118, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 119, "type": "identifier", "text": "result", "parent": 112, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 23}}, {"id": 120, "type": "else_clause", "text": "else {\n num.insert(num.begin(), result);\n }", "parent": 106, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 21, "column": 5}}, {"id": 121, "type": "call_expression", "text": "num.insert(num.begin(), result)", "parent": 120, "children": [122, 125], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 37}}, {"id": 122, "type": "field_expression", "text": "num.insert", "parent": 121, "children": [123, 124], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 16}}, {"id": 123, "type": "identifier", "text": "num", "parent": 122, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 9}}, {"id": 124, "type": "field_identifier", "text": "insert", "parent": 122, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 16}}, {"id": 125, "type": "argument_list", "text": "(num.begin(), result)", "parent": 121, "children": [126, 130], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 37}}, {"id": 126, "type": "call_expression", "text": "num.begin()", "parent": 125, "children": [127, 129], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 28}}, {"id": 127, "type": "field_expression", "text": "num.begin", "parent": 126, "children": [128], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 26}}, {"id": 128, "type": "identifier", "text": "num", "parent": 127, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 20}}, {"id": 129, "type": "argument_list", "text": "()", "parent": 126, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 28}}, {"id": 130, "type": "identifier", "text": "result", "parent": 125, "children": [], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 36}}, {"id": 131, "type": "assignment_expression", "text": "k = k / 10", "parent": 52, "children": [132, 133, 134], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 14}}, {"id": 132, "type": "identifier", "text": "k", "parent": 131, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 133, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 7}}, {"id": 134, "type": "binary_expression", "text": "k / 10", "parent": 131, "children": [135, 136, 137], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 14}}, {"id": 135, "type": "identifier", "text": "k", "parent": 134, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 9}}, {"id": 136, "type": "/", "text": "/", "parent": 134, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 11}}, {"id": 137, "type": "number_literal", "text": "10", "parent": 134, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 14}}, {"id": 138, "type": "return_statement", "text": "return num;", "parent": 36, "children": [139], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 139, "type": "identifier", "text": "num", "parent": 138, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 12}}, {"id": 140, "type": "preproc_call", "text": "#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n", "parent": 0, "children": [141], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 141, "type": "preproc_directive", "text": "#endif", "parent": 140, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36], "variables": [61], "classes": [62], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14, 15, 20, 25, 26, 31, 39, 44, 45, 46, 53, 54, 55, 68, 75, 76, 79, 81, 86, 95, 100, 107, 108, 113, 115, 121, 122, 126, 127, 134], "assignments": [41, 92, 102, 112, 131], "loops": [52], "conditionals": [1, 2, 5, 9, 10, 12, 16, 18, 21, 24, 27, 29, 32, 33, 35, 38, 42, 47, 48, 56, 60, 64, 66, 69, 73, 77, 80, 82, 87, 88, 91, 93, 96, 99, 101, 103, 106, 109, 114, 116, 119, 123, 124, 128, 130, 132, 135, 139], "returns": [138], "exceptions": []}, "expressions": {"calls": [140], "literals": [8, 40, 51, 58, 71, 84, 89, 98, 105, 111, 137], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "carry{0},", "text_snippet": "int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > "}], "class_declarations": [{"node_id": 62, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include <vector>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n#define ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n\n#include <vector>\n\nnamespace solution {\n\nstd::vector<int> addToArrayForm(std::vector<int>& num, int k) {\n // direct\n // Runtime: 24 ms, faster than 79.31% of C++ online submissions for Add to Array-Form of Integer.\n // Memory Usage: 27.3 MB, less than 94.38% of C++ online submissions for Add to Array-Form of Integer.\n //\n int carry{0}, p = num.size() - 1;\n while (k > 0 || carry) {\n auto n = k % 10, result = n + (p > -1 ? num[p] : 0) + carry;\n carry = result > 9;\n if (carry) result -= 10;\n if (p > -1) {\n num[p--] = result;\n } else {\n num.insert(num.begin(), result);\n }\n\n k = k / 10;\n }\n\n return num;\n}\n\n}\n\n#endif // ADD_TO_ARRAY_FORM_OF_INTEGER_H_\n"}
80,797
c
//////////////////////////////////////////////////////////////////////////// // Module : alife_simulator_header.h // Created : 05.01.2003 // Modified : 12.05.2004 // Author : <NAME> // Description : ALife Simulator header //////////////////////////////////////////////////////////////////////////// #pragma once #include "object_interfaces.h" #include "alife_space.h" class CALifeSimulatorHeader { protected: u32 m_version; public: IC CALifeSimulatorHeader (LPCSTR section); virtual ~CALifeSimulatorHeader (); virtual void save (IWriter &tMemoryStream); virtual void load (IReader &tFileStream); IC u32 version () const; bool valid (IReader &file_stream) const; }; #include "alife_simulator_header_inline.h"
34.32
22
(translation_unit) "////////////////////////////////////////////////////////////////////////////\n// Module : alife_simulator_header.h\n// Created : 05.01.2003\n// Modified : 12.05.2004\n// Author : <NAME>\n// Description : ALife Simulator header\n////////////////////////////////////////////////////////////////////////////\n\n#pragma once\n\n#include "object_interfaces.h"\n#include "alife_space.h"\n\nclass CALifeSimulatorHeader {\nprotected:\n u32 m_version;\n\npublic:\n IC CALifeSimulatorHeader (LPCSTR section);\n virtual ~CALifeSimulatorHeader ();\n virtual void save (IWriter &tMemoryStream);\n virtual void load (IReader &tFileStream);\n IC u32 version () const;\n bool valid (IReader &file_stream) const;\n};\n\n#include "alife_simulator_header_inline.h"" (comment) "////////////////////////////////////////////////////////////////////////////" (comment) "// Module : alife_simulator_header.h" (comment) "// Created : 05.01.2003" (comment) "// Modified : 12.05.2004" (comment) "// Author : <NAME>" (comment) "// Description : ALife Simulator header" (comment) "////////////////////////////////////////////////////////////////////////////" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "object_interfaces.h"\n" (#include) "#include" (string_literal) ""object_interfaces.h"" (") """ (string_content) "object_interfaces.h" (") """ (preproc_include) "#include "alife_space.h"\n" (#include) "#include" (string_literal) ""alife_space.h"" (") """ (string_content) "alife_space.h" (") """ (function_definition) "class CALifeSimulatorHeader {\nprotected:\n u32 m_version;\n\npublic:\n IC CALifeSimulatorHeader (LPCSTR section);\n virtual ~CALifeSimulatorHeader ();\n virtual void save (IWriter &tMemoryStream);\n virtual void load (IReader &tFileStream);\n IC u32 version () const;\n bool valid (IReader &file_stream) const;\n}" (type_identifier) "class" (identifier) "CALifeSimulatorHeader" (compound_statement) "{\nprotected:\n u32 m_version;\n\npublic:\n IC CALifeSimulatorHeader (LPCSTR section);\n virtual ~CALifeSimulatorHeader ();\n virtual void save (IWriter &tMemoryStream);\n virtual void load (IReader &tFileStream);\n IC u32 version () const;\n bool valid (IReader &file_stream) const;\n}" ({) "{" (labeled_statement) "protected:\n u32 m_version;" (statement_identifier) "protected" (:) ":" (declaration) "u32 m_version;" (type_identifier) "u32" (identifier) "m_version" (;) ";" (labeled_statement) "public:\n IC CALifeSimulatorHeader (LPCSTR section);" (statement_identifier) "public" (:) ":" (declaration) "IC CALifeSimulatorHeader (LPCSTR section);" (type_identifier) "IC" (function_declarator) "CALifeSimulatorHeader (LPCSTR section)" (identifier) "CALifeSimulatorHeader" (parameter_list) "(LPCSTR section)" (() "(" (parameter_declaration) "LPCSTR section" (type_identifier) "LPCSTR" (identifier) "section" ()) ")" (;) ";" (declaration) "virtual ~CALifeSimulatorHeader ();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "CALifeSimulatorHeader ()" (identifier) "CALifeSimulatorHeader" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "save (IWriter &tMemoryStream);" (call_expression) "save (IWriter &tMemoryStream)" (identifier) "save" (argument_list) "(IWriter &tMemoryStream)" (() "(" (binary_expression) "IWriter &tMemoryStream" (identifier) "IWriter" (&) "&" (identifier) "tMemoryStream" ()) ")" (;) ";" (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "load (IReader &tFileStream);" (call_expression) "load (IReader &tFileStream)" (identifier) "load" (argument_list) "(IReader &tFileStream)" (() "(" (binary_expression) "IReader &tFileStream" (identifier) "IReader" (&) "&" (identifier) "tFileStream" ()) ")" (;) ";" (ERROR) "IC u32 version () const;\n bool valid (IReader &file_stream) const" (type_identifier) "IC" (ERROR) "u32" (identifier) "u32" (function_declarator) "version ()" (identifier) "version" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "bool" (function_declarator) "valid (IReader &file_stream) const" (identifier) "valid" (parameter_list) "(IReader &file_stream)" (() "(" (parameter_declaration) "IReader &file_stream" (type_identifier) "IReader" (ERROR) "&" (&) "&" (identifier) "file_stream" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_include) "#include "alife_simulator_header_inline.h"" (#include) "#include" (string_literal) ""alife_simulator_header_inline.h"" (") """ (string_content) "alife_simulator_header_inline.h" (") """
125
5
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 34.32, "nodes": 66, "errors": 0, "source_hash": "082dd3ca16e15c1bd689f5180a0740898b1e59ec360832483bf7f730b815eba5", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"object_interfaces.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": "string_literal", "text": "\"object_interfaces.h\"", "parent": 3, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 30}}, {"id": 6, "type": "preproc_include", "text": "#include \"alife_space.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": "string_literal", "text": "\"alife_space.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 24}}, {"id": 9, "type": "function_definition", "text": "class CALifeSimulatorHeader {\nprotected:\n\tu32\t\t\t\t\t\t\t\tm_version;\n\npublic:\n\tIC\t\t\t\t\t\t\t\tCALifeSimulatorHeader\t(LPCSTR section);\n\tvirtual\t\t\t\t\t\t\t~CALifeSimulatorHeader\t();\n\tvirtual void\t\t\t\t\tsave\t\t\t\t\t(IWriter &tMemoryStream);\n\tvirtual void\t\t\t\t\tload\t\t\t\t\t(IReader &tFileStream);\n\tIC\t\tu32\t\t\t\t\t\tversion\t\t\t\t\t() const;\n\t\t\tbool\t\t\t\t\tvalid\t\t\t\t\t(IReader &file_stream) const;\n}", "parent": null, "children": [10], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 10, "type": "identifier", "text": "CALifeSimulatorHeader", "parent": 9, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 27}}, {"id": 11, "type": "labeled_statement", "text": "protected:\n\tu32\t\t\t\t\t\t\t\tm_version;", "parent": 9, "children": [12], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 22}}, {"id": 12, "type": "declaration", "text": "u32\t\t\t\t\t\t\t\tm_version;", "parent": 11, "children": [13, 14], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 22}}, {"id": 13, "type": "type_identifier", "text": "u32", "parent": 12, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 14, "type": "identifier", "text": "m_version", "parent": 12, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 21}}, {"id": 15, "type": "labeled_statement", "text": "public:\n\tIC\t\t\t\t\t\t\t\tCALifeSimulatorHeader\t(LPCSTR section);", "parent": 9, "children": [16], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 50}}, {"id": 16, "type": "declaration", "text": "IC\t\t\t\t\t\t\t\tCALifeSimulatorHeader\t(LPCSTR section);", "parent": 15, "children": [17, 18], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 50}}, {"id": 17, "type": "type_identifier", "text": "IC", "parent": 16, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 3}}, {"id": 18, "type": "function_declarator", "text": "CALifeSimulatorHeader\t(LPCSTR section)", "parent": 16, "children": [19, 20], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 49}}, {"id": 19, "type": "identifier", "text": "CALifeSimulatorHeader", "parent": 18, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 32}}, {"id": 20, "type": "parameter_list", "text": "(LPCSTR section)", "parent": 18, "children": [21], "start_point": {"row": 18, "column": 33}, "end_point": {"row": 18, "column": 49}}, {"id": 21, "type": "parameter_declaration", "text": "LPCSTR section", "parent": 20, "children": [22, 23], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 48}}, {"id": 22, "type": "type_identifier", "text": "LPCSTR", "parent": 21, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 40}}, {"id": 23, "type": "identifier", "text": "section", "parent": 21, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 48}}, {"id": 24, "type": "declaration", "text": "virtual\t\t\t\t\t\t\t~CALifeSimulatorHeader\t();", "parent": 9, "children": [25, 26, 28], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 41}}, {"id": 25, "type": "type_identifier", "text": "virtual", "parent": 24, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 8}}, {"id": 26, "type": "ERROR", "text": "~", "parent": 24, "children": [27], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 27, "type": "~", "text": "~", "parent": 26, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 28, "type": "function_declarator", "text": "CALifeSimulatorHeader\t()", "parent": 24, "children": [29, 30], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 40}}, {"id": 29, "type": "identifier", "text": "CALifeSimulatorHeader", "parent": 28, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 37}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 40}}, {"id": 31, "type": "declaration", "text": "virtual void", "parent": 9, "children": [32, 33], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 13}}, {"id": 32, "type": "type_identifier", "text": "virtual", "parent": 31, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 8}}, {"id": 33, "type": "identifier", "text": "void", "parent": 31, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 13}}, {"id": 34, "type": "call_expression", "text": "save\t\t\t\t\t(IWriter &tMemoryStream)", "parent": 9, "children": [35, 36], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 51}}, {"id": 35, "type": "identifier", "text": "save", "parent": 34, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 22}}, {"id": 36, "type": "argument_list", "text": "(IWriter &tMemoryStream)", "parent": 34, "children": [37], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 51}}, {"id": 37, "type": "binary_expression", "text": "IWriter &tMemoryStream", "parent": 36, "children": [38, 39], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 50}}, {"id": 38, "type": "identifier", "text": "IWriter", "parent": 37, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 35}}, {"id": 39, "type": "identifier", "text": "tMemoryStream", "parent": 37, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 50}}, {"id": 40, "type": "declaration", "text": "virtual void", "parent": 9, "children": [41, 42], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 13}}, {"id": 41, "type": "type_identifier", "text": "virtual", "parent": 40, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 8}}, {"id": 42, "type": "identifier", "text": "void", "parent": 40, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 13}}, {"id": 43, "type": "call_expression", "text": "load\t\t\t\t\t(IReader &tFileStream)", "parent": 9, "children": [44, 45], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 49}}, {"id": 44, "type": "identifier", "text": "load", "parent": 43, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 22}}, {"id": 45, "type": "argument_list", "text": "(IReader &tFileStream)", "parent": 43, "children": [46], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 49}}, {"id": 46, "type": "binary_expression", "text": "IReader &tFileStream", "parent": 45, "children": [47, 48], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 48}}, {"id": 47, "type": "identifier", "text": "IReader", "parent": 46, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 35}}, {"id": 48, "type": "identifier", "text": "tFileStream", "parent": 46, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 48}}, {"id": 49, "type": "ERROR", "text": "IC\t\tu32\t\t\t\t\t\tversion\t\t\t\t\t() const;\n\t\t\tbool\t\t\t\t\tvalid\t\t\t\t\t(IReader &file_stream) const", "parent": 9, "children": [50, 51, 53, 56, 57], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 23, "column": 50}}, {"id": 50, "type": "type_identifier", "text": "IC", "parent": 49, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 3}}, {"id": 51, "type": "ERROR", "text": "u32", "parent": 49, "children": [52], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 8}}, {"id": 52, "type": "identifier", "text": "u32", "parent": 51, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 8}}, {"id": 53, "type": "function_declarator", "text": "version\t\t\t\t\t()", "parent": 49, "children": [54, 55], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 28}}, {"id": 54, "type": "identifier", "text": "version", "parent": 53, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 21}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 28}}, {"id": 56, "type": "primitive_type", "text": "bool", "parent": 49, "children": [], "start_point": {"row": 23, "column": 3}, "end_point": {"row": 23, "column": 7}}, {"id": 57, "type": "function_declarator", "text": "valid\t\t\t\t\t(IReader &file_stream) const", "parent": 49, "children": [58, 59], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 50}}, {"id": 58, "type": "identifier", "text": "valid", "parent": 57, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 17}}, {"id": 59, "type": "parameter_list", "text": "(IReader &file_stream)", "parent": 57, "children": [60], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 44}}, {"id": 60, "type": "parameter_declaration", "text": "IReader &file_stream", "parent": 59, "children": [61, 62], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 43}}, {"id": 61, "type": "type_identifier", "text": "IReader", "parent": 60, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 30}}, {"id": 62, "type": "identifier", "text": "file_stream", "parent": 60, "children": [], "start_point": {"row": 23, "column": 32}, "end_point": {"row": 23, "column": 43}}, {"id": 63, "type": "preproc_include", "text": "#include \"alife_simulator_header_inline.h\"", "parent": null, "children": [64, 65], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 42}}, {"id": 64, "type": "#include", "text": "#include", "parent": 63, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 65, "type": "string_literal", "text": "\"alife_simulator_header_inline.h\"", "parent": 63, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 42}}]}, "node_categories": {"declarations": {"functions": [9, 18, 28, 53, 57], "variables": [12, 16, 21, 24, 31, 40, 60], "classes": [], "imports": [3, 4, 6, 7, 63, 64], "modules": [], "enums": []}, "statements": {"expressions": [34, 37, 43, 46], "assignments": [], "loops": [], "conditionals": [10, 13, 14, 17, 19, 22, 23, 25, 29, 32, 33, 35, 38, 39, 41, 42, 44, 47, 48, 50, 52, 54, 58, 61, 62], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 65], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "CALifeSimulatorHeader", "text_snippet": "class CALifeSimulatorHeader {\nprotected:\n\tu32\t\t\t\t\t\t\t\tm_version;\n\npublic:\n\tIC\t\t\t\t\t\t\t\tCALifeSimulatorH"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "CALifeSimulatorHeader\t(LPCSTR section)"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "CALifeSimulatorHeader\t()"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "version\t\t\t\t\t()"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "valid\t\t\t\t\t(IReader &file_stream) const"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"object_interfaces.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"alife_space.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 63, "text": "#include \"alife_simulator_header_inline.h\""}, {"node_id": 64, "text": "#include"}]}, "original_source_code": "////////////////////////////////////////////////////////////////////////////\n//\tModule \t\t: alife_simulator_header.h\n//\tCreated \t: 05.01.2003\n// Modified \t: 12.05.2004\n//\tAuthor\t\t: <NAME>\n//\tDescription : ALife Simulator header\n////////////////////////////////////////////////////////////////////////////\n\n#pragma once\n\n#include \"object_interfaces.h\"\n#include \"alife_space.h\"\n\nclass CALifeSimulatorHeader {\nprotected:\n\tu32\t\t\t\t\t\t\t\tm_version;\n\npublic:\n\tIC\t\t\t\t\t\t\t\tCALifeSimulatorHeader\t(LPCSTR section);\n\tvirtual\t\t\t\t\t\t\t~CALifeSimulatorHeader\t();\n\tvirtual void\t\t\t\t\tsave\t\t\t\t\t(IWriter &tMemoryStream);\n\tvirtual void\t\t\t\t\tload\t\t\t\t\t(IReader &tFileStream);\n\tIC\t\tu32\t\t\t\t\t\tversion\t\t\t\t\t() const;\n\t\t\tbool\t\t\t\t\tvalid\t\t\t\t\t(IReader &file_stream) const;\n};\n\n#include \"alife_simulator_header_inline.h\""}
80,798
c
#include "libm.h" float coshf(float x) { union {float f; uint32_t i;} u = {.f = x}; uint32_t w; float t; /* |x| */ u.i &= 0x7fffffff; x = u.f; w = u.i; /* |x| < log(2) */ if (w < 0x3f317217) { if (w < 0x3f800000 - (12<<23)) { FORCE_EVAL(x + 0x1p120f); return 1; } t = expm1f(x); return 1 + t*t/(2*(1+t)); } /* |x| < log(FLT_MAX) */ if (w < 0x42b17217) { t = expf(x); return 0.5f*(t + 1/t); } /* |x| > log(FLT_MAX) or nan */ t = __expo2f(x); return t; }
14.88
33
(translation_unit) "#include "libm.h" \n \nfloat coshf(float x) \n{ \n union {float f; uint32_t i;} u = {.f = x}; \n uint32_t w; \n float t; \n \n /* |x| */ \n u.i &= 0x7fffffff; \n x = u.f; \n w = u.i; \n \n /* |x| < log(2) */ \n if (w < 0x3f317217) { \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n } \n t = expm1f(x); \n return 1 + t*t/(2*(1+t)); \n } \n \n /* |x| < log(FLT_MAX) */ \n if (w < 0x42b17217) { \n t = expf(x); \n return 0.5f*(t + 1/t); \n } \n \n /* |x| > log(FLT_MAX) or nan */ \n t = __expo2f(x); \n return t; \n} \n" (preproc_include) "#include "libm.h" \n" (#include) "#include" (string_literal) ""libm.h"" (") """ (string_content) "libm.h" (") """ (function_definition) "float coshf(float x) \n{ \n union {float f; uint32_t i;} u = {.f = x}; \n uint32_t w; \n float t; \n \n /* |x| */ \n u.i &= 0x7fffffff; \n x = u.f; \n w = u.i; \n \n /* |x| < log(2) */ \n if (w < 0x3f317217) { \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n } \n t = expm1f(x); \n return 1 + t*t/(2*(1+t)); \n } \n \n /* |x| < log(FLT_MAX) */ \n if (w < 0x42b17217) { \n t = expf(x); \n return 0.5f*(t + 1/t); \n } \n \n /* |x| > log(FLT_MAX) or nan */ \n t = __expo2f(x); \n return t; \n}" (primitive_type) "float" (function_declarator) "coshf(float x)" (identifier) "coshf" (parameter_list) "(float x)" (() "(" (parameter_declaration) "float x" (primitive_type) "float" (identifier) "x" ()) ")" (compound_statement) "{ \n union {float f; uint32_t i;} u = {.f = x}; \n uint32_t w; \n float t; \n \n /* |x| */ \n u.i &= 0x7fffffff; \n x = u.f; \n w = u.i; \n \n /* |x| < log(2) */ \n if (w < 0x3f317217) { \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n } \n t = expm1f(x); \n return 1 + t*t/(2*(1+t)); \n } \n \n /* |x| < log(FLT_MAX) */ \n if (w < 0x42b17217) { \n t = expf(x); \n return 0.5f*(t + 1/t); \n } \n \n /* |x| > log(FLT_MAX) or nan */ \n t = __expo2f(x); \n return t; \n}" ({) "{" (declaration) "union {float f; uint32_t i;} u = {.f = x};" (union_specifier) "union {float f; uint32_t i;}" (union) "union" (field_declaration_list) "{float f; uint32_t i;}" ({) "{" (field_declaration) "float f;" (primitive_type) "float" (field_identifier) "f" (;) ";" (field_declaration) "uint32_t i;" (primitive_type) "uint32_t" (field_identifier) "i" (;) ";" (}) "}" (init_declarator) "u = {.f = x}" (identifier) "u" (=) "=" (initializer_list) "{.f = x}" ({) "{" (initializer_pair) ".f = x" (field_designator) ".f" (.) "." (field_identifier) "f" (=) "=" (identifier) "x" (}) "}" (;) ";" (declaration) "uint32_t w;" (primitive_type) "uint32_t" (identifier) "w" (;) ";" (declaration) "float t;" (primitive_type) "float" (identifier) "t" (;) ";" (comment) "/* |x| */" (expression_statement) "u.i &= 0x7fffffff;" (assignment_expression) "u.i &= 0x7fffffff" (field_expression) "u.i" (identifier) "u" (.) "." (field_identifier) "i" (&=) "&=" (number_literal) "0x7fffffff" (;) ";" (expression_statement) "x = u.f;" (assignment_expression) "x = u.f" (identifier) "x" (=) "=" (field_expression) "u.f" (identifier) "u" (.) "." (field_identifier) "f" (;) ";" (expression_statement) "w = u.i;" (assignment_expression) "w = u.i" (identifier) "w" (=) "=" (field_expression) "u.i" (identifier) "u" (.) "." (field_identifier) "i" (;) ";" (comment) "/* |x| < log(2) */" (if_statement) "if (w < 0x3f317217) { \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n } \n t = expm1f(x); \n return 1 + t*t/(2*(1+t)); \n }" (if) "if" (parenthesized_expression) "(w < 0x3f317217)" (() "(" (binary_expression) "w < 0x3f317217" (identifier) "w" (<) "<" (number_literal) "0x3f317217" ()) ")" (compound_statement) "{ \n if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n } \n t = expm1f(x); \n return 1 + t*t/(2*(1+t)); \n }" ({) "{" (if_statement) "if (w < 0x3f800000 - (12<<23)) { \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n }" (if) "if" (parenthesized_expression) "(w < 0x3f800000 - (12<<23))" (() "(" (binary_expression) "w < 0x3f800000 - (12<<23)" (identifier) "w" (<) "<" (binary_expression) "0x3f800000 - (12<<23)" (number_literal) "0x3f800000" (-) "-" (parenthesized_expression) "(12<<23)" (() "(" (binary_expression) "12<<23" (number_literal) "12" (<<) "<<" (number_literal) "23" ()) ")" ()) ")" (compound_statement) "{ \n FORCE_EVAL(x + 0x1p120f); \n return 1; \n }" ({) "{" (expression_statement) "FORCE_EVAL(x + 0x1p120f);" (call_expression) "FORCE_EVAL(x + 0x1p120f)" (identifier) "FORCE_EVAL" (argument_list) "(x + 0x1p120f)" (() "(" (binary_expression) "x + 0x1p120f" (identifier) "x" (+) "+" (number_literal) "0x1p120f" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (expression_statement) "t = expm1f(x);" (assignment_expression) "t = expm1f(x)" (identifier) "t" (=) "=" (call_expression) "expm1f(x)" (identifier) "expm1f" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (return_statement) "return 1 + t*t/(2*(1+t));" (return) "return" (binary_expression) "1 + t*t/(2*(1+t))" (number_literal) "1" (+) "+" (binary_expression) "t*t/(2*(1+t))" (binary_expression) "t*t" (identifier) "t" (*) "*" (identifier) "t" (/) "/" (parenthesized_expression) "(2*(1+t))" (() "(" (binary_expression) "2*(1+t)" (number_literal) "2" (*) "*" (parenthesized_expression) "(1+t)" (() "(" (binary_expression) "1+t" (number_literal) "1" (+) "+" (identifier) "t" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "/* |x| < log(FLT_MAX) */" (if_statement) "if (w < 0x42b17217) { \n t = expf(x); \n return 0.5f*(t + 1/t); \n }" (if) "if" (parenthesized_expression) "(w < 0x42b17217)" (() "(" (binary_expression) "w < 0x42b17217" (identifier) "w" (<) "<" (number_literal) "0x42b17217" ()) ")" (compound_statement) "{ \n t = expf(x); \n return 0.5f*(t + 1/t); \n }" ({) "{" (expression_statement) "t = expf(x);" (assignment_expression) "t = expf(x)" (identifier) "t" (=) "=" (call_expression) "expf(x)" (identifier) "expf" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (return_statement) "return 0.5f*(t + 1/t);" (return) "return" (binary_expression) "0.5f*(t + 1/t)" (number_literal) "0.5f" (*) "*" (parenthesized_expression) "(t + 1/t)" (() "(" (binary_expression) "t + 1/t" (identifier) "t" (+) "+" (binary_expression) "1/t" (number_literal) "1" (/) "/" (identifier) "t" ()) ")" (;) ";" (}) "}" (comment) "/* |x| > log(FLT_MAX) or nan */" (expression_statement) "t = __expo2f(x);" (assignment_expression) "t = __expo2f(x)" (identifier) "t" (=) "=" (call_expression) "__expo2f(x)" (identifier) "__expo2f" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (;) ";" (return_statement) "return t;" (return) "return" (identifier) "t" (;) ";" (}) "}"
224
0
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 14.88, "nodes": 141, "errors": 0, "source_hash": "8485eff0fcc133a2baf27116d0c3a5506384d610354119ccbaa78071417ab6fa", "categorized_nodes": 105}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"libm.h\"\r\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": "\"libm.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "function_definition", "text": "float coshf(float x)\r\n{\r\n\tunion {float f; uint32_t i;} u = {.f = x};\r\n\tuint32_t w;\r\n\tfloat t;\r\n\r\n\t/* |x| */\r\n\tu.i &= 0x7fffffff;\r\n\tx = u.f;\r\n\tw = u.i;\r\n\r\n\t/* |x| < log(2) */\r\n\tif (w < 0x3f317217) {\r\n\t\tif (w < 0x3f800000 - (12<<23)) {\r\n\t\t\tFORCE_EVAL(x + 0x1p120f);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tt = expm1f(x);\r\n\t\treturn 1 + t*t/(2*(1+t));\r\n\t}\r\n\r\n\t/* |x| < log(FLT_MAX) */\r\n\tif (w < 0x42b17217) {\r\n\t\tt = expf(x);\r\n\t\treturn 0.5f*(t + 1/t);\r\n\t}\r\n\r\n\t/* |x| > log(FLT_MAX) or nan */\r\n\tt = __expo2f(x);\r\n\treturn t;\r\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "float", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 5}}, {"id": 5, "type": "function_declarator", "text": "coshf(float x)", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 20}}, {"id": 6, "type": "identifier", "text": "coshf", "parent": 5, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 11}}, {"id": 7, "type": "parameter_list", "text": "(float x)", "parent": 5, "children": [8], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 20}}, {"id": 8, "type": "parameter_declaration", "text": "float x", "parent": 7, "children": [9, 10], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "primitive_type", "text": "float", "parent": 8, "children": [], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 17}}, {"id": 10, "type": "identifier", "text": "x", "parent": 8, "children": [], "start_point": {"row": 2, "column": 18}, "end_point": {"row": 2, "column": 19}}, {"id": 11, "type": "declaration", "text": "union {float f; uint32_t i;} u = {.f = x};", "parent": 3, "children": [12, 20], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 43}}, {"id": 12, "type": "union_specifier", "text": "union {float f; uint32_t i;}", "parent": 11, "children": [13], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 29}}, {"id": 13, "type": "union", "text": "union", "parent": 12, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 6}}, {"id": 14, "type": "field_declaration", "text": "float f;", "parent": 12, "children": [15, 16], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 16}}, {"id": 15, "type": "primitive_type", "text": "float", "parent": 14, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 16, "type": "field_identifier", "text": "f", "parent": 14, "children": [], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 15}}, {"id": 17, "type": "field_declaration", "text": "uint32_t i;", "parent": 12, "children": [18, 19], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 28}}, {"id": 18, "type": "primitive_type", "text": "uint32_t", "parent": 17, "children": [], "start_point": {"row": 4, "column": 17}, "end_point": {"row": 4, "column": 25}}, {"id": 19, "type": "field_identifier", "text": "i", "parent": 17, "children": [], "start_point": {"row": 4, "column": 26}, "end_point": {"row": 4, "column": 27}}, {"id": 20, "type": "init_declarator", "text": "u = {.f = x}", "parent": 11, "children": [21, 22, 23], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 42}}, {"id": 21, "type": "identifier", "text": "u", "parent": 20, "children": [], "start_point": {"row": 4, "column": 30}, "end_point": {"row": 4, "column": 31}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 4, "column": 32}, "end_point": {"row": 4, "column": 33}}, {"id": 23, "type": "initializer_list", "text": "{.f = x}", "parent": 20, "children": [24], "start_point": {"row": 4, "column": 34}, "end_point": {"row": 4, "column": 42}}, {"id": 24, "type": "initializer_pair", "text": ".f = x", "parent": 23, "children": [25, 27, 28], "start_point": {"row": 4, "column": 35}, "end_point": {"row": 4, "column": 41}}, {"id": 25, "type": "field_designator", "text": ".f", "parent": 24, "children": [26], "start_point": {"row": 4, "column": 35}, "end_point": {"row": 4, "column": 37}}, {"id": 26, "type": "field_identifier", "text": "f", "parent": 25, "children": [], "start_point": {"row": 4, "column": 36}, "end_point": {"row": 4, "column": 37}}, {"id": 27, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 4, "column": 38}, "end_point": {"row": 4, "column": 39}}, {"id": 28, "type": "identifier", "text": "x", "parent": 24, "children": [], "start_point": {"row": 4, "column": 40}, "end_point": {"row": 4, "column": 41}}, {"id": 29, "type": "declaration", "text": "uint32_t w;", "parent": 3, "children": [30, 31], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 12}}, {"id": 30, "type": "primitive_type", "text": "uint32_t", "parent": 29, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 9}}, {"id": 31, "type": "identifier", "text": "w", "parent": 29, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 11}}, {"id": 32, "type": "declaration", "text": "float t;", "parent": 3, "children": [33, 34], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 9}}, {"id": 33, "type": "primitive_type", "text": "float", "parent": 32, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 6}}, {"id": 34, "type": "identifier", "text": "t", "parent": 32, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 8}}, {"id": 35, "type": "assignment_expression", "text": "u.i &= 0x7fffffff", "parent": 3, "children": [36, 39, 40], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 18}}, {"id": 36, "type": "field_expression", "text": "u.i", "parent": 35, "children": [37, 38], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 4}}, {"id": 37, "type": "identifier", "text": "u", "parent": 36, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 2}}, {"id": 38, "type": "field_identifier", "text": "i", "parent": 36, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 4}}, {"id": 39, "type": "&=", "text": "&=", "parent": 35, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 7}}, {"id": 40, "type": "number_literal", "text": "0x7fffffff", "parent": 35, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 18}}, {"id": 41, "type": "assignment_expression", "text": "x = u.f", "parent": 3, "children": [42, 43, 44], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 8}}, {"id": 42, "type": "identifier", "text": "x", "parent": 41, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 2}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 4}}, {"id": 44, "type": "field_expression", "text": "u.f", "parent": 41, "children": [45, 46], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 8}}, {"id": 45, "type": "identifier", "text": "u", "parent": 44, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 6}}, {"id": 46, "type": "field_identifier", "text": "f", "parent": 44, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 47, "type": "assignment_expression", "text": "w = u.i", "parent": 3, "children": [48, 49, 50], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 8}}, {"id": 48, "type": "identifier", "text": "w", "parent": 47, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 2}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 11, "column": 3}, "end_point": {"row": 11, "column": 4}}, {"id": 50, "type": "field_expression", "text": "u.i", "parent": 47, "children": [51, 52], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 8}}, {"id": 51, "type": "identifier", "text": "u", "parent": 50, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 6}}, {"id": 52, "type": "field_identifier", "text": "i", "parent": 50, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 53, "type": "if_statement", "text": "if (w < 0x3f317217) {\r\n\t\tif (w < 0x3f800000 - (12<<23)) {\r\n\t\t\tFORCE_EVAL(x + 0x1p120f);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tt = expm1f(x);\r\n\t\treturn 1 + t*t/(2*(1+t));\r\n\t}", "parent": 3, "children": [54], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 21, "column": 2}}, {"id": 54, "type": "parenthesized_expression", "text": "(w < 0x3f317217)", "parent": 53, "children": [55], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 20}}, {"id": 55, "type": "binary_expression", "text": "w < 0x3f317217", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 19}}, {"id": 56, "type": "identifier", "text": "w", "parent": 55, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 6}}, {"id": 57, "type": "<", "text": "<", "parent": 55, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 8}}, {"id": 58, "type": "number_literal", "text": "0x3f317217", "parent": 55, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 19}}, {"id": 59, "type": "if_statement", "text": "if (w < 0x3f800000 - (12<<23)) {\r\n\t\t\tFORCE_EVAL(x + 0x1p120f);\r\n\t\t\treturn 1;\r\n\t\t}", "parent": 53, "children": [60], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 60, "type": "parenthesized_expression", "text": "(w < 0x3f800000 - (12<<23))", "parent": 59, "children": [61], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 32}}, {"id": 61, "type": "binary_expression", "text": "w < 0x3f800000 - (12<<23)", "parent": 60, "children": [62, 63, 64], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 31}}, {"id": 62, "type": "identifier", "text": "w", "parent": 61, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 7}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 64, "type": "binary_expression", "text": "0x3f800000 - (12<<23)", "parent": 61, "children": [65, 66, 67], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 31}}, {"id": 65, "type": "number_literal", "text": "0x3f800000", "parent": 64, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 20}}, {"id": 66, "type": "-", "text": "-", "parent": 64, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 22}}, {"id": 67, "type": "parenthesized_expression", "text": "(12<<23)", "parent": 64, "children": [68], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 31}}, {"id": 68, "type": "binary_expression", "text": "12<<23", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 30}}, {"id": 69, "type": "number_literal", "text": "12", "parent": 68, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 26}}, {"id": 70, "type": "<<", "text": "<<", "parent": 68, "children": [], "start_point": {"row": 15, "column": 26}, "end_point": {"row": 15, "column": 28}}, {"id": 71, "type": "number_literal", "text": "23", "parent": 68, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 30}}, {"id": 72, "type": "call_expression", "text": "FORCE_EVAL(x + 0x1p120f)", "parent": 59, "children": [73, 74], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 27}}, {"id": 73, "type": "identifier", "text": "FORCE_EVAL", "parent": 72, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 13}}, {"id": 74, "type": "argument_list", "text": "(x + 0x1p120f)", "parent": 72, "children": [75], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 27}}, {"id": 75, "type": "binary_expression", "text": "x + 0x1p120f", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 26}}, {"id": 76, "type": "identifier", "text": "x", "parent": 75, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 77, "type": "+", "text": "+", "parent": 75, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 78, "type": "number_literal", "text": "0x1p120f", "parent": 75, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 26}}, {"id": 79, "type": "return_statement", "text": "return 1;", "parent": 59, "children": [80], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 12}}, {"id": 80, "type": "number_literal", "text": "1", "parent": 79, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 81, "type": "assignment_expression", "text": "t = expm1f(x)", "parent": 53, "children": [82, 83, 84], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 15}}, {"id": 82, "type": "identifier", "text": "t", "parent": 81, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 3}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 84, "type": "call_expression", "text": "expm1f(x)", "parent": 81, "children": [85, 86], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 15}}, {"id": 85, "type": "identifier", "text": "expm1f", "parent": 84, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 12}}, {"id": 86, "type": "argument_list", "text": "(x)", "parent": 84, "children": [87], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 15}}, {"id": 87, "type": "identifier", "text": "x", "parent": 86, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 88, "type": "return_statement", "text": "return 1 + t*t/(2*(1+t));", "parent": 53, "children": [89], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 27}}, {"id": 89, "type": "binary_expression", "text": "1 + t*t/(2*(1+t))", "parent": 88, "children": [90, 91, 92], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 26}}, {"id": 90, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 10}}, {"id": 91, "type": "+", "text": "+", "parent": 89, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 12}}, {"id": 92, "type": "binary_expression", "text": "t*t/(2*(1+t))", "parent": 89, "children": [93, 97, 98], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 26}}, {"id": 93, "type": "binary_expression", "text": "t*t", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 16}}, {"id": 94, "type": "identifier", "text": "t", "parent": 93, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 95, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 96, "type": "identifier", "text": "t", "parent": 93, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 16}}, {"id": 97, "type": "/", "text": "/", "parent": 92, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 98, "type": "parenthesized_expression", "text": "(2*(1+t))", "parent": 92, "children": [99], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 26}}, {"id": 99, "type": "binary_expression", "text": "2*(1+t)", "parent": 98, "children": [100, 101, 102], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 25}}, {"id": 100, "type": "number_literal", "text": "2", "parent": 99, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 101, "type": "*", "text": "*", "parent": 99, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 102, "type": "parenthesized_expression", "text": "(1+t)", "parent": 99, "children": [103], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 25}}, {"id": 103, "type": "binary_expression", "text": "1+t", "parent": 102, "children": [104, 105, 106], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 24}}, {"id": 104, "type": "number_literal", "text": "1", "parent": 103, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 22}}, {"id": 105, "type": "+", "text": "+", "parent": 103, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 106, "type": "identifier", "text": "t", "parent": 103, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 107, "type": "if_statement", "text": "if (w < 0x42b17217) {\r\n\t\tt = expf(x);\r\n\t\treturn 0.5f*(t + 1/t);\r\n\t}", "parent": 3, "children": [108], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 27, "column": 2}}, {"id": 108, "type": "parenthesized_expression", "text": "(w < 0x42b17217)", "parent": 107, "children": [109], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 20}}, {"id": 109, "type": "binary_expression", "text": "w < 0x42b17217", "parent": 108, "children": [110, 111, 112], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 19}}, {"id": 110, "type": "identifier", "text": "w", "parent": 109, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 6}}, {"id": 111, "type": "<", "text": "<", "parent": 109, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 8}}, {"id": 112, "type": "number_literal", "text": "0x42b17217", "parent": 109, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 113, "type": "assignment_expression", "text": "t = expf(x)", "parent": 107, "children": [114, 115, 116], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 13}}, {"id": 114, "type": "identifier", "text": "t", "parent": 113, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 116, "type": "call_expression", "text": "expf(x)", "parent": 113, "children": [117, 118], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 13}}, {"id": 117, "type": "identifier", "text": "expf", "parent": 116, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 10}}, {"id": 118, "type": "argument_list", "text": "(x)", "parent": 116, "children": [119], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 13}}, {"id": 119, "type": "identifier", "text": "x", "parent": 118, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 12}}, {"id": 120, "type": "return_statement", "text": "return 0.5f*(t + 1/t);", "parent": 107, "children": [121], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 24}}, {"id": 121, "type": "binary_expression", "text": "0.5f*(t + 1/t)", "parent": 120, "children": [122, 123, 124], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 23}}, {"id": 122, "type": "number_literal", "text": "0.5f", "parent": 121, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 13}}, {"id": 123, "type": "*", "text": "*", "parent": 121, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 124, "type": "parenthesized_expression", "text": "(t + 1/t)", "parent": 121, "children": [125], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 23}}, {"id": 125, "type": "binary_expression", "text": "t + 1/t", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 22}}, {"id": 126, "type": "identifier", "text": "t", "parent": 125, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 127, "type": "+", "text": "+", "parent": 125, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 18}}, {"id": 128, "type": "binary_expression", "text": "1/t", "parent": 125, "children": [129, 130, 131], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 22}}, {"id": 129, "type": "number_literal", "text": "1", "parent": 128, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 20}}, {"id": 130, "type": "/", "text": "/", "parent": 128, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 21}}, {"id": 131, "type": "identifier", "text": "t", "parent": 128, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 22}}, {"id": 132, "type": "assignment_expression", "text": "t = __expo2f(x)", "parent": 3, "children": [133, 134, 135], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 16}}, {"id": 133, "type": "identifier", "text": "t", "parent": 132, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 2}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 4}}, {"id": 135, "type": "call_expression", "text": "__expo2f(x)", "parent": 132, "children": [136, 137], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 16}}, {"id": 136, "type": "identifier", "text": "__expo2f", "parent": 135, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 13}}, {"id": 137, "type": "argument_list", "text": "(x)", "parent": 135, "children": [138], "start_point": {"row": 30, "column": 13}, "end_point": {"row": 30, "column": 16}}, {"id": 138, "type": "identifier", "text": "x", "parent": 137, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 15}}, {"id": 139, "type": "return_statement", "text": "return t;", "parent": 3, "children": [140], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 10}}, {"id": 140, "type": "identifier", "text": "t", "parent": 139, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 9}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11, 14, 17, 29, 32], "classes": [12, 13], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [36, 44, 50, 54, 55, 60, 61, 64, 67, 68, 72, 75, 84, 89, 92, 93, 98, 99, 102, 103, 108, 109, 116, 121, 124, 125, 128, 135], "assignments": [35, 41, 47, 81, 113, 132], "loops": [], "conditionals": [6, 10, 16, 19, 21, 26, 28, 31, 34, 37, 38, 42, 45, 46, 48, 51, 52, 53, 56, 59, 62, 73, 76, 82, 85, 87, 94, 96, 106, 107, 110, 114, 117, 119, 126, 131, 133, 136, 138, 140], "returns": [79, 88, 120, 139], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 40, 58, 65, 69, 71, 78, 80, 90, 100, 104, 112, 122, 129], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [25]}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "{float", "text_snippet": "float coshf(float x)\r\n{\r\n\tunion {float f; uint32_t i;} u = {.f = x};\r\n\tuint32_t w;\r\n\tfloat t;\r\n\r\n\t/*"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "coshf(float x)"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "{float", "text_snippet": "union {float f; uint32_t i;}"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "union"}], "import_statements": [{"node_id": 0, "text": "#include \"libm.h\"\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"libm.h\"\r\n\r\nfloat coshf(float x)\r\n{\r\n\tunion {float f; uint32_t i;} u = {.f = x};\r\n\tuint32_t w;\r\n\tfloat t;\r\n\r\n\t/* |x| */\r\n\tu.i &= 0x7fffffff;\r\n\tx = u.f;\r\n\tw = u.i;\r\n\r\n\t/* |x| < log(2) */\r\n\tif (w < 0x3f317217) {\r\n\t\tif (w < 0x3f800000 - (12<<23)) {\r\n\t\t\tFORCE_EVAL(x + 0x1p120f);\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tt = expm1f(x);\r\n\t\treturn 1 + t*t/(2*(1+t));\r\n\t}\r\n\r\n\t/* |x| < log(FLT_MAX) */\r\n\tif (w < 0x42b17217) {\r\n\t\tt = expf(x);\r\n\t\treturn 0.5f*(t + 1/t);\r\n\t}\r\n\r\n\t/* |x| > log(FLT_MAX) or nan */\r\n\tt = __expo2f(x);\r\n\treturn t;\r\n}\r\n"}
80,799